Skip to content

Commit

Permalink
Register ReleaseGold viewing methods (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
eelanagaraj committed Feb 24, 2021
1 parent f43c941 commit 518c792
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions airgap/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ var (
ReleaseGoldRevokeActiveVotes = registerMethod(ReleaseGold, "revokeActive", []argParser{addressParser, addressParser, bigIntParser})
ReleaseGoldMaxDistribution = registerMethod(ReleaseGold, "maxDistribution", nil)
ReleaseGoldTotalWithdrawn = registerMethod(ReleaseGold, "totalWithdrawn", nil)
ReleaseGoldBeneficiary = registerMethod(ReleaseGold, "beneficiary", nil)
ReleaseGoldReleaseOwner = registerMethod(ReleaseGold, "releaseOwner", nil)
ReleaseGoldRefundAddress = registerMethod(ReleaseGold, "refundAddress", nil)
ReleaseGoldRevocationInfo = registerMethod(ReleaseGold, "revocationInfo", nil)

// StableToken
StableTokenBalanceOf = registerMethod(registry.StableTokenContractID.String(), "balanceOf", []argParser{addressParser})
Expand Down
4 changes: 4 additions & 0 deletions airgap/server/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ var serverCallMethodDefinitions = map[*airgap.CeloMethod]argsPreProcessor{
airgap.GetActiveVotesForGroupByAccount: noopArgsPreProcessor,
airgap.ReleaseGoldMaxDistribution: noopArgsPreProcessor,
airgap.ReleaseGoldTotalWithdrawn: noopArgsPreProcessor,
airgap.ReleaseGoldBeneficiary: noopArgsPreProcessor,
airgap.ReleaseGoldReleaseOwner: noopArgsPreProcessor,
airgap.ReleaseGoldRefundAddress: noopArgsPreProcessor,
airgap.ReleaseGoldRevocationInfo: noopArgsPreProcessor,
airgap.StableTokenBalanceOf: noopArgsPreProcessor,
}

Expand Down

0 comments on commit 518c792

Please sign in to comment.