@initia/initia.js 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +2 -0
- package/dist/bundle.js +3 -0
- package/dist/bundle.js.LICENSE.txt +39 -0
- package/dist/bundle.js.map +1 -0
- package/dist/bundle.node.js +3 -0
- package/dist/bundle.node.js.LICENSE.txt +33 -0
- package/dist/bundle.node.js.map +1 -0
- package/dist/client/LocalInitia.d.ts +18 -0
- package/dist/client/LocalInitia.js +59 -0
- package/dist/client/LocalInitia.js.map +1 -0
- package/dist/client/WebSocketClient.d.ts +83 -0
- package/dist/client/WebSocketClient.js +216 -0
- package/dist/client/WebSocketClient.js.map +1 -0
- package/dist/client/index.d.ts +5 -0
- package/dist/client/index.js +25 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/lcd/APIRequester.d.ts +25 -0
- package/dist/client/lcd/APIRequester.js +95 -0
- package/dist/client/lcd/APIRequester.js.map +1 -0
- package/dist/client/lcd/LCDClient.d.ts +67 -0
- package/dist/client/lcd/LCDClient.js +77 -0
- package/dist/client/lcd/LCDClient.js.map +1 -0
- package/dist/client/lcd/LCDUtils.d.ts +18 -0
- package/dist/client/lcd/LCDUtils.js +93 -0
- package/dist/client/lcd/LCDUtils.js.map +1 -0
- package/dist/client/lcd/Wallet.d.ts +24 -0
- package/dist/client/lcd/Wallet.js +127 -0
- package/dist/client/lcd/Wallet.js.map +1 -0
- package/dist/client/lcd/api/AuthAPI.d.ts +29 -0
- package/dist/client/lcd/api/AuthAPI.js +104 -0
- package/dist/client/lcd/api/AuthAPI.js.map +1 -0
- package/dist/client/lcd/api/AuthzAPI.d.ts +18 -0
- package/dist/client/lcd/api/AuthzAPI.js +108 -0
- package/dist/client/lcd/api/AuthzAPI.js.map +1 -0
- package/dist/client/lcd/api/BankAPI.d.ts +40 -0
- package/dist/client/lcd/api/BankAPI.js +122 -0
- package/dist/client/lcd/api/BankAPI.js.map +1 -0
- package/dist/client/lcd/api/BaseAPI.d.ts +5 -0
- package/dist/client/lcd/api/BaseAPI.js +11 -0
- package/dist/client/lcd/api/BaseAPI.js.map +1 -0
- package/dist/client/lcd/api/DistributionAPI.d.ts +78 -0
- package/dist/client/lcd/api/DistributionAPI.js +156 -0
- package/dist/client/lcd/api/DistributionAPI.js.map +1 -0
- package/dist/client/lcd/api/FeeGrantAPI.d.ts +23 -0
- package/dist/client/lcd/api/FeeGrantAPI.js +108 -0
- package/dist/client/lcd/api/FeeGrantAPI.js.map +1 -0
- package/dist/client/lcd/api/GovAPI.d.ts +119 -0
- package/dist/client/lcd/api/GovAPI.js +343 -0
- package/dist/client/lcd/api/GovAPI.js.map +1 -0
- package/dist/client/lcd/api/IbcAPI.d.ts +87 -0
- package/dist/client/lcd/api/IbcAPI.js +229 -0
- package/dist/client/lcd/api/IbcAPI.js.map +1 -0
- package/dist/client/lcd/api/IbcTransferAPI.d.ts +25 -0
- package/dist/client/lcd/api/IbcTransferAPI.js +117 -0
- package/dist/client/lcd/api/IbcTransferAPI.js.map +1 -0
- package/dist/client/lcd/api/MintAPI.d.ts +35 -0
- package/dist/client/lcd/api/MintAPI.js +113 -0
- package/dist/client/lcd/api/MintAPI.js.map +1 -0
- package/dist/client/lcd/api/MoveAPI.d.ts +29 -0
- package/dist/client/lcd/api/MoveAPI.js +148 -0
- package/dist/client/lcd/api/MoveAPI.js.map +1 -0
- package/dist/client/lcd/api/SlashingAPI.d.ts +56 -0
- package/dist/client/lcd/api/SlashingAPI.js +125 -0
- package/dist/client/lcd/api/SlashingAPI.js.map +1 -0
- package/dist/client/lcd/api/StakingAPI.d.ts +98 -0
- package/dist/client/lcd/api/StakingAPI.js +296 -0
- package/dist/client/lcd/api/StakingAPI.js.map +1 -0
- package/dist/client/lcd/api/TendermintAPI.d.ts +23 -0
- package/dist/client/lcd/api/TendermintAPI.js +122 -0
- package/dist/client/lcd/api/TendermintAPI.js.map +1 -0
- package/dist/client/lcd/api/TxAPI.d.ts +243 -0
- package/dist/client/lcd/api/TxAPI.js +491 -0
- package/dist/client/lcd/api/TxAPI.js.map +1 -0
- package/dist/client/lcd/api/UpgradeAPI.d.ts +28 -0
- package/dist/client/lcd/api/UpgradeAPI.js +109 -0
- package/dist/client/lcd/api/UpgradeAPI.js.map +1 -0
- package/dist/client/lcd/api/index.d.ts +15 -0
- package/dist/client/lcd/api/index.js +32 -0
- package/dist/client/lcd/api/index.js.map +1 -0
- package/dist/core/Block.d.ts +58 -0
- package/dist/core/Block.js +3 -0
- package/dist/core/Block.js.map +1 -0
- package/dist/core/Coin.d.ts +87 -0
- package/dist/core/Coin.js +195 -0
- package/dist/core/Coin.js.map +1 -0
- package/dist/core/Coins.d.ts +120 -0
- package/dist/core/Coins.js +259 -0
- package/dist/core/Coins.js.map +1 -0
- package/dist/core/CompactBitArray.d.ts +23 -0
- package/dist/core/CompactBitArray.js +94 -0
- package/dist/core/CompactBitArray.js.map +1 -0
- package/dist/core/Denom.d.ts +1 -0
- package/dist/core/Denom.js +3 -0
- package/dist/core/Denom.js.map +1 -0
- package/dist/core/Deposit.d.ts +37 -0
- package/dist/core/Deposit.js +81 -0
- package/dist/core/Deposit.js.map +1 -0
- package/dist/core/Fee.d.ts +42 -0
- package/dist/core/Fee.js +88 -0
- package/dist/core/Fee.js.map +1 -0
- package/dist/core/Msg.d.ts +24 -0
- package/dist/core/Msg.js +335 -0
- package/dist/core/Msg.js.map +1 -0
- package/dist/core/MultiSignature.d.ts +17 -0
- package/dist/core/MultiSignature.js +57 -0
- package/dist/core/MultiSignature.js.map +1 -0
- package/dist/core/PublicKey.d.ts +99 -0
- package/dist/core/PublicKey.js +274 -0
- package/dist/core/PublicKey.js.map +1 -0
- package/dist/core/SignDoc.d.ts +54 -0
- package/dist/core/SignDoc.js +96 -0
- package/dist/core/SignDoc.js.map +1 -0
- package/dist/core/SignatureV2.d.ts +66 -0
- package/dist/core/SignatureV2.js +131 -0
- package/dist/core/SignatureV2.js.map +1 -0
- package/dist/core/Tx.d.ts +147 -0
- package/dist/core/Tx.js +279 -0
- package/dist/core/Tx.js.map +1 -0
- package/dist/core/TxInfo.d.ts +91 -0
- package/dist/core/TxInfo.js +115 -0
- package/dist/core/TxInfo.js.map +1 -0
- package/dist/core/ValidatorSet.d.ts +11 -0
- package/dist/core/ValidatorSet.js +3 -0
- package/dist/core/ValidatorSet.js.map +1 -0
- package/dist/core/auth/Account.d.ts +18 -0
- package/dist/core/auth/Account.js +62 -0
- package/dist/core/auth/Account.js.map +1 -0
- package/dist/core/auth/BaseAccount.d.ts +57 -0
- package/dist/core/auth/BaseAccount.js +113 -0
- package/dist/core/auth/BaseAccount.js.map +1 -0
- package/dist/core/auth/BaseVestingAccount.d.ts +58 -0
- package/dist/core/auth/BaseVestingAccount.js +123 -0
- package/dist/core/auth/BaseVestingAccount.js.map +1 -0
- package/dist/core/auth/ContinuousVestingAccount.d.ts +45 -0
- package/dist/core/auth/ContinuousVestingAccount.js +116 -0
- package/dist/core/auth/ContinuousVestingAccount.js.map +1 -0
- package/dist/core/auth/DelayedVestingAccount.d.ts +42 -0
- package/dist/core/auth/DelayedVestingAccount.js +108 -0
- package/dist/core/auth/DelayedVestingAccount.js.map +1 -0
- package/dist/core/auth/PeriodicVestingAccount.d.ts +72 -0
- package/dist/core/auth/PeriodicVestingAccount.js +170 -0
- package/dist/core/auth/PeriodicVestingAccount.js.map +1 -0
- package/dist/core/auth/index.d.ts +6 -0
- package/dist/core/auth/index.js +23 -0
- package/dist/core/auth/index.js.map +1 -0
- package/dist/core/authz/authorizations/Authorization.d.ts +37 -0
- package/dist/core/authz/authorizations/Authorization.js +103 -0
- package/dist/core/authz/authorizations/Authorization.js.map +1 -0
- package/dist/core/authz/authorizations/GenericAuthorization.d.ts +28 -0
- package/dist/core/authz/authorizations/GenericAuthorization.js +71 -0
- package/dist/core/authz/authorizations/GenericAuthorization.js.map +1 -0
- package/dist/core/authz/authorizations/SendAuthorization.d.ts +29 -0
- package/dist/core/authz/authorizations/SendAuthorization.js +72 -0
- package/dist/core/authz/authorizations/SendAuthorization.js.map +1 -0
- package/dist/core/authz/authorizations/StakeAuthorization.d.ts +48 -0
- package/dist/core/authz/authorizations/StakeAuthorization.js +122 -0
- package/dist/core/authz/authorizations/StakeAuthorization.js.map +1 -0
- package/dist/core/authz/authorizations/index.d.ts +4 -0
- package/dist/core/authz/authorizations/index.js +21 -0
- package/dist/core/authz/authorizations/index.js.map +1 -0
- package/dist/core/authz/msgs/MsgExecAuthorized.d.ts +37 -0
- package/dist/core/authz/msgs/MsgExecAuthorized.js +85 -0
- package/dist/core/authz/msgs/MsgExecAuthorized.js.map +1 -0
- package/dist/core/authz/msgs/MsgGrantAuthorization.d.ts +40 -0
- package/dist/core/authz/msgs/MsgGrantAuthorization.js +87 -0
- package/dist/core/authz/msgs/MsgGrantAuthorization.js.map +1 -0
- package/dist/core/authz/msgs/MsgRevokeAuthorization.d.ts +40 -0
- package/dist/core/authz/msgs/MsgRevokeAuthorization.js +87 -0
- package/dist/core/authz/msgs/MsgRevokeAuthorization.js.map +1 -0
- package/dist/core/authz/msgs/index.d.ts +12 -0
- package/dist/core/authz/msgs/index.js +20 -0
- package/dist/core/authz/msgs/index.js.map +1 -0
- package/dist/core/bank/msgs/MsgMultiSend.d.ts +136 -0
- package/dist/core/bank/msgs/MsgMultiSend.js +221 -0
- package/dist/core/bank/msgs/MsgMultiSend.js.map +1 -0
- package/dist/core/bank/msgs/MsgSend.d.ts +47 -0
- package/dist/core/bank/msgs/MsgSend.js +91 -0
- package/dist/core/bank/msgs/MsgSend.js.map +1 -0
- package/dist/core/bank/msgs/index.d.ts +10 -0
- package/dist/core/bank/msgs/index.js +19 -0
- package/dist/core/bank/msgs/index.js.map +1 -0
- package/dist/core/bech32.d.ts +68 -0
- package/dist/core/bech32.js +108 -0
- package/dist/core/bech32.js.map +1 -0
- package/dist/core/crisis/MsgVerifyInvariant.d.ts +43 -0
- package/dist/core/crisis/MsgVerifyInvariant.js +77 -0
- package/dist/core/crisis/MsgVerifyInvariant.js.map +1 -0
- package/dist/core/crisis/index.d.ts +8 -0
- package/dist/core/crisis/index.js +18 -0
- package/dist/core/crisis/index.js.map +1 -0
- package/dist/core/distribution/msgs/MsgFundCommunityPool.d.ts +37 -0
- package/dist/core/distribution/msgs/MsgFundCommunityPool.js +83 -0
- package/dist/core/distribution/msgs/MsgFundCommunityPool.js.map +1 -0
- package/dist/core/distribution/msgs/MsgSetWithdrawAddress.d.ts +41 -0
- package/dist/core/distribution/msgs/MsgSetWithdrawAddress.js +87 -0
- package/dist/core/distribution/msgs/MsgSetWithdrawAddress.js.map +1 -0
- package/dist/core/distribution/msgs/MsgWithdrawDelegatorReward.d.ts +43 -0
- package/dist/core/distribution/msgs/MsgWithdrawDelegatorReward.js +89 -0
- package/dist/core/distribution/msgs/MsgWithdrawDelegatorReward.js.map +1 -0
- package/dist/core/distribution/msgs/MsgWithdrawValidatorCommission.d.ts +37 -0
- package/dist/core/distribution/msgs/MsgWithdrawValidatorCommission.js +82 -0
- package/dist/core/distribution/msgs/MsgWithdrawValidatorCommission.js.map +1 -0
- package/dist/core/distribution/msgs/index.d.ts +14 -0
- package/dist/core/distribution/msgs/index.js +21 -0
- package/dist/core/distribution/msgs/index.js.map +1 -0
- package/dist/core/distribution/proposals/CommunityPoolSpendProposal.d.ts +49 -0
- package/dist/core/distribution/proposals/CommunityPoolSpendProposal.js +97 -0
- package/dist/core/distribution/proposals/CommunityPoolSpendProposal.js.map +1 -0
- package/dist/core/distribution/proposals/index.d.ts +1 -0
- package/dist/core/distribution/proposals/index.js +18 -0
- package/dist/core/distribution/proposals/index.js.map +1 -0
- package/dist/core/feegrant/allowances/AllowedMsgAllowance.d.ts +40 -0
- package/dist/core/feegrant/allowances/AllowedMsgAllowance.js +94 -0
- package/dist/core/feegrant/allowances/AllowedMsgAllowance.js.map +1 -0
- package/dist/core/feegrant/allowances/BasicAllowance.d.ts +40 -0
- package/dist/core/feegrant/allowances/BasicAllowance.js +103 -0
- package/dist/core/feegrant/allowances/BasicAllowance.js.map +1 -0
- package/dist/core/feegrant/allowances/PeriodicAllowance.d.ts +53 -0
- package/dist/core/feegrant/allowances/PeriodicAllowance.js +108 -0
- package/dist/core/feegrant/allowances/PeriodicAllowance.js.map +1 -0
- package/dist/core/feegrant/allowances/index.d.ts +16 -0
- package/dist/core/feegrant/allowances/index.js +61 -0
- package/dist/core/feegrant/allowances/index.js.map +1 -0
- package/dist/core/feegrant/msgs/MsgGrantAllowance.d.ts +46 -0
- package/dist/core/feegrant/msgs/MsgGrantAllowance.js +93 -0
- package/dist/core/feegrant/msgs/MsgGrantAllowance.js.map +1 -0
- package/dist/core/feegrant/msgs/MsgRevokeAllowance.d.ts +40 -0
- package/dist/core/feegrant/msgs/MsgRevokeAllowance.js +86 -0
- package/dist/core/feegrant/msgs/MsgRevokeAllowance.js.map +1 -0
- package/dist/core/feegrant/msgs/index.d.ts +10 -0
- package/dist/core/feegrant/msgs/index.js +19 -0
- package/dist/core/feegrant/msgs/index.js.map +1 -0
- package/dist/core/gov/Proposal.d.ts +96 -0
- package/dist/core/gov/Proposal.js +232 -0
- package/dist/core/gov/Proposal.js.map +1 -0
- package/dist/core/gov/Vote.d.ts +61 -0
- package/dist/core/gov/Vote.js +131 -0
- package/dist/core/gov/Vote.js.map +1 -0
- package/dist/core/gov/msgs/MsgDeposit.d.ts +44 -0
- package/dist/core/gov/msgs/MsgDeposit.js +95 -0
- package/dist/core/gov/msgs/MsgDeposit.js.map +1 -0
- package/dist/core/gov/msgs/MsgSubmitProposal.d.ts +45 -0
- package/dist/core/gov/msgs/MsgSubmitProposal.js +92 -0
- package/dist/core/gov/msgs/MsgSubmitProposal.js.map +1 -0
- package/dist/core/gov/msgs/MsgVote.d.ts +46 -0
- package/dist/core/gov/msgs/MsgVote.js +99 -0
- package/dist/core/gov/msgs/MsgVote.js.map +1 -0
- package/dist/core/gov/msgs/MsgVoteWeighted.d.ts +44 -0
- package/dist/core/gov/msgs/MsgVoteWeighted.js +95 -0
- package/dist/core/gov/msgs/MsgVoteWeighted.js.map +1 -0
- package/dist/core/gov/msgs/index.d.ts +14 -0
- package/dist/core/gov/msgs/index.js +21 -0
- package/dist/core/gov/msgs/index.js.map +1 -0
- package/dist/core/gov/proposals/TextProposal.d.ts +40 -0
- package/dist/core/gov/proposals/TextProposal.js +87 -0
- package/dist/core/gov/proposals/TextProposal.js.map +1 -0
- package/dist/core/gov/proposals/index.d.ts +1 -0
- package/dist/core/gov/proposals/index.js +18 -0
- package/dist/core/gov/proposals/index.js.map +1 -0
- package/dist/core/ibc/applications/fee/Fee.d.ts +39 -0
- package/dist/core/ibc/applications/fee/Fee.js +79 -0
- package/dist/core/ibc/applications/fee/Fee.js.map +1 -0
- package/dist/core/ibc/applications/fee/IdentifiedPacketFee.d.ts +33 -0
- package/dist/core/ibc/applications/fee/IdentifiedPacketFee.js +76 -0
- package/dist/core/ibc/applications/fee/IdentifiedPacketFee.js.map +1 -0
- package/dist/core/ibc/applications/fee/Metadata.d.ts +32 -0
- package/dist/core/ibc/applications/fee/Metadata.js +74 -0
- package/dist/core/ibc/applications/fee/Metadata.js.map +1 -0
- package/dist/core/ibc/applications/fee/PacketFee.d.ts +37 -0
- package/dist/core/ibc/applications/fee/PacketFee.js +80 -0
- package/dist/core/ibc/applications/fee/PacketFee.js.map +1 -0
- package/dist/core/ibc/applications/fee/index.d.ts +7 -0
- package/dist/core/ibc/applications/fee/index.js +24 -0
- package/dist/core/ibc/applications/fee/index.js.map +1 -0
- package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFee.d.ts +42 -0
- package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFee.js +92 -0
- package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFee.js.map +1 -0
- package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFeeAsync.d.ts +34 -0
- package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFeeAsync.js +81 -0
- package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFeeAsync.js.map +1 -0
- package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.d.ts +34 -0
- package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.js +82 -0
- package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.js.map +1 -0
- package/dist/core/ibc/applications/interchain-account/Account.d.ts +32 -0
- package/dist/core/ibc/applications/interchain-account/Account.js +74 -0
- package/dist/core/ibc/applications/interchain-account/Account.js.map +1 -0
- package/dist/core/ibc/applications/interchain-account/Metadata.d.ts +48 -0
- package/dist/core/ibc/applications/interchain-account/Metadata.js +94 -0
- package/dist/core/ibc/applications/interchain-account/Metadata.js.map +1 -0
- package/dist/core/ibc/applications/interchain-account/controller/Params.d.ts +28 -0
- package/dist/core/ibc/applications/interchain-account/controller/Params.js +69 -0
- package/dist/core/ibc/applications/interchain-account/controller/Params.js.map +1 -0
- package/dist/core/ibc/applications/interchain-account/host/Params.d.ts +31 -0
- package/dist/core/ibc/applications/interchain-account/host/Params.js +73 -0
- package/dist/core/ibc/applications/interchain-account/host/Params.js.map +1 -0
- package/dist/core/ibc/applications/interchain-account/index.d.ts +4 -0
- package/dist/core/ibc/applications/interchain-account/index.js +24 -0
- package/dist/core/ibc/applications/interchain-account/index.js.map +1 -0
- package/dist/core/ibc/applications/transfer/index.d.ts +10 -0
- package/dist/core/ibc/applications/transfer/index.js +20 -0
- package/dist/core/ibc/applications/transfer/index.js.map +1 -0
- package/dist/core/ibc/applications/transfer/v1/DenomTrace.d.ts +40 -0
- package/dist/core/ibc/applications/transfer/v1/DenomTrace.js +79 -0
- package/dist/core/ibc/applications/transfer/v1/DenomTrace.js.map +1 -0
- package/dist/core/ibc/applications/transfer/v1/msgs/MsgTransfer.d.ts +61 -0
- package/dist/core/ibc/applications/transfer/v1/msgs/MsgTransfer.js +130 -0
- package/dist/core/ibc/applications/transfer/v1/msgs/MsgTransfer.js.map +1 -0
- package/dist/core/ibc/applications/transfer/v2/FungibleTokenPacketData.d.ts +41 -0
- package/dist/core/ibc/applications/transfer/v2/FungibleTokenPacketData.js +85 -0
- package/dist/core/ibc/applications/transfer/v2/FungibleTokenPacketData.js.map +1 -0
- package/dist/core/ibc/core/channel/Channel.d.ts +53 -0
- package/dist/core/ibc/core/channel/Channel.js +100 -0
- package/dist/core/ibc/core/channel/Channel.js.map +1 -0
- package/dist/core/ibc/core/channel/Counterparty.d.ts +29 -0
- package/dist/core/ibc/core/channel/Counterparty.js +71 -0
- package/dist/core/ibc/core/channel/Counterparty.js.map +1 -0
- package/dist/core/ibc/core/channel/Packet.d.ts +48 -0
- package/dist/core/ibc/core/channel/Packet.js +100 -0
- package/dist/core/ibc/core/channel/Packet.js.map +1 -0
- package/dist/core/ibc/core/channel/PacketId.d.ts +37 -0
- package/dist/core/ibc/core/channel/PacketId.js +84 -0
- package/dist/core/ibc/core/channel/PacketId.js.map +1 -0
- package/dist/core/ibc/core/channel/index.d.ts +2 -0
- package/dist/core/ibc/core/channel/index.js +19 -0
- package/dist/core/ibc/core/channel/index.js.map +1 -0
- package/dist/core/ibc/core/client/ClientConsensusStates.d.ts +32 -0
- package/dist/core/ibc/core/client/ClientConsensusStates.js +76 -0
- package/dist/core/ibc/core/client/ClientConsensusStates.js.map +1 -0
- package/dist/core/ibc/core/client/ConsensusStateWithHeight.d.ts +32 -0
- package/dist/core/ibc/core/client/ConsensusStateWithHeight.js +74 -0
- package/dist/core/ibc/core/client/ConsensusStateWithHeight.js.map +1 -0
- package/dist/core/ibc/core/client/Height.d.ts +40 -0
- package/dist/core/ibc/core/client/Height.js +86 -0
- package/dist/core/ibc/core/client/Height.js.map +1 -0
- package/dist/core/ibc/core/client/IdentifiedClient.d.ts +31 -0
- package/dist/core/ibc/core/client/IdentifiedClient.js +73 -0
- package/dist/core/ibc/core/client/IdentifiedClient.js.map +1 -0
- package/dist/core/ibc/core/commitment/MerklePrefix.d.ts +24 -0
- package/dist/core/ibc/core/commitment/MerklePrefix.js +70 -0
- package/dist/core/ibc/core/commitment/MerklePrefix.js.map +1 -0
- package/dist/core/ibc/core/commitment/MerkleRoot.d.ts +24 -0
- package/dist/core/ibc/core/commitment/MerkleRoot.js +60 -0
- package/dist/core/ibc/core/commitment/MerkleRoot.js.map +1 -0
- package/dist/core/ibc/core/commitment/index.d.ts +2 -0
- package/dist/core/ibc/core/commitment/index.js +19 -0
- package/dist/core/ibc/core/commitment/index.js.map +1 -0
- package/dist/core/ibc/core/connection/Counterparty.d.ts +34 -0
- package/dist/core/ibc/core/connection/Counterparty.js +77 -0
- package/dist/core/ibc/core/connection/Counterparty.js.map +1 -0
- package/dist/core/ibc/core/connection/IdentifiedConnection.d.ts +51 -0
- package/dist/core/ibc/core/connection/IdentifiedConnection.js +105 -0
- package/dist/core/ibc/core/connection/IdentifiedConnection.js.map +1 -0
- package/dist/core/ibc/core/connection/Version.d.ts +28 -0
- package/dist/core/ibc/core/connection/Version.js +70 -0
- package/dist/core/ibc/core/connection/Version.js.map +1 -0
- package/dist/core/ibc/core/connection/index.d.ts +3 -0
- package/dist/core/ibc/core/connection/index.js +20 -0
- package/dist/core/ibc/core/connection/index.js.map +1 -0
- package/dist/core/ibc/core/index.d.ts +3 -0
- package/dist/core/ibc/core/index.js +20 -0
- package/dist/core/ibc/core/index.js.map +1 -0
- package/dist/core/ibc/lightclient/index.d.ts +1 -0
- package/dist/core/ibc/lightclient/index.js +18 -0
- package/dist/core/ibc/lightclient/index.js.map +1 -0
- package/dist/core/ibc/lightclient/tendermint/Header.d.ts +49 -0
- package/dist/core/ibc/lightclient/tendermint/Header.js +99 -0
- package/dist/core/ibc/lightclient/tendermint/Header.js.map +1 -0
- package/dist/core/ibc/msgs/channel/MsgChannelCloseConfirm.d.ts +42 -0
- package/dist/core/ibc/msgs/channel/MsgChannelCloseConfirm.js +91 -0
- package/dist/core/ibc/msgs/channel/MsgChannelCloseConfirm.js.map +1 -0
- package/dist/core/ibc/msgs/channel/MsgChannelCloseInit.d.ts +35 -0
- package/dist/core/ibc/msgs/channel/MsgChannelCloseInit.js +82 -0
- package/dist/core/ibc/msgs/channel/MsgChannelCloseInit.js.map +1 -0
- package/dist/core/ibc/msgs/channel/MsgChannelOpenAck.d.ts +48 -0
- package/dist/core/ibc/msgs/channel/MsgChannelOpenAck.js +99 -0
- package/dist/core/ibc/msgs/channel/MsgChannelOpenAck.js.map +1 -0
- package/dist/core/ibc/msgs/channel/MsgChannelOpenConfirm.d.ts +42 -0
- package/dist/core/ibc/msgs/channel/MsgChannelOpenConfirm.js +91 -0
- package/dist/core/ibc/msgs/channel/MsgChannelOpenConfirm.js.map +1 -0
- package/dist/core/ibc/msgs/channel/MsgChannelOpenInit.d.ts +36 -0
- package/dist/core/ibc/msgs/channel/MsgChannelOpenInit.js +83 -0
- package/dist/core/ibc/msgs/channel/MsgChannelOpenInit.js.map +1 -0
- package/dist/core/ibc/msgs/channel/MsgChannelOpenTry.d.ts +49 -0
- package/dist/core/ibc/msgs/channel/MsgChannelOpenTry.js +100 -0
- package/dist/core/ibc/msgs/channel/MsgChannelOpenTry.js.map +1 -0
- package/dist/core/ibc/msgs/channel/MsgRecvAcknowledgement.d.ts +43 -0
- package/dist/core/ibc/msgs/channel/MsgRecvAcknowledgement.js +92 -0
- package/dist/core/ibc/msgs/channel/MsgRecvAcknowledgement.js.map +1 -0
- package/dist/core/ibc/msgs/channel/MsgRecvPacket.d.ts +40 -0
- package/dist/core/ibc/msgs/channel/MsgRecvPacket.js +88 -0
- package/dist/core/ibc/msgs/channel/MsgRecvPacket.js.map +1 -0
- package/dist/core/ibc/msgs/channel/MsgTimeout.d.ts +43 -0
- package/dist/core/ibc/msgs/channel/MsgTimeout.js +96 -0
- package/dist/core/ibc/msgs/channel/MsgTimeout.js.map +1 -0
- package/dist/core/ibc/msgs/channel/MsgTimeoutClose.d.ts +46 -0
- package/dist/core/ibc/msgs/channel/MsgTimeoutClose.js +100 -0
- package/dist/core/ibc/msgs/channel/MsgTimeoutClose.js.map +1 -0
- package/dist/core/ibc/msgs/channel/index.d.ts +25 -0
- package/dist/core/ibc/msgs/channel/index.js +27 -0
- package/dist/core/ibc/msgs/channel/index.js.map +1 -0
- package/dist/core/ibc/msgs/client/MsgCreateClient.d.ts +35 -0
- package/dist/core/ibc/msgs/client/MsgCreateClient.js +82 -0
- package/dist/core/ibc/msgs/client/MsgCreateClient.js.map +1 -0
- package/dist/core/ibc/msgs/client/MsgSubmitMisbehaviour.d.ts +35 -0
- package/dist/core/ibc/msgs/client/MsgSubmitMisbehaviour.js +82 -0
- package/dist/core/ibc/msgs/client/MsgSubmitMisbehaviour.js.map +1 -0
- package/dist/core/ibc/msgs/client/MsgUpdateClient.d.ts +36 -0
- package/dist/core/ibc/msgs/client/MsgUpdateClient.js +83 -0
- package/dist/core/ibc/msgs/client/MsgUpdateClient.js.map +1 -0
- package/dist/core/ibc/msgs/client/MsgUpgradeClient.d.ts +44 -0
- package/dist/core/ibc/msgs/client/MsgUpgradeClient.js +94 -0
- package/dist/core/ibc/msgs/client/MsgUpgradeClient.js.map +1 -0
- package/dist/core/ibc/msgs/client/Params.d.ts +27 -0
- package/dist/core/ibc/msgs/client/Params.js +68 -0
- package/dist/core/ibc/msgs/client/Params.js.map +1 -0
- package/dist/core/ibc/msgs/client/index.d.ts +13 -0
- package/dist/core/ibc/msgs/client/index.js +21 -0
- package/dist/core/ibc/msgs/client/index.js.map +1 -0
- package/dist/core/ibc/msgs/client/tendermint/crypto.d.ts +54 -0
- package/dist/core/ibc/msgs/client/tendermint/crypto.js +124 -0
- package/dist/core/ibc/msgs/client/tendermint/crypto.js.map +1 -0
- package/dist/core/ibc/msgs/client/tendermint/types.d.ts +233 -0
- package/dist/core/ibc/msgs/client/tendermint/types.js +461 -0
- package/dist/core/ibc/msgs/client/tendermint/types.js.map +1 -0
- package/dist/core/ibc/msgs/client/tendermint/version.d.ts +57 -0
- package/dist/core/ibc/msgs/client/tendermint/version.js +124 -0
- package/dist/core/ibc/msgs/client/tendermint/version.js.map +1 -0
- package/dist/core/ibc/msgs/connection/MsgConnectionOpenAck.d.ts +59 -0
- package/dist/core/ibc/msgs/connection/MsgConnectionOpenAck.js +119 -0
- package/dist/core/ibc/msgs/connection/MsgConnectionOpenAck.js.map +1 -0
- package/dist/core/ibc/msgs/connection/MsgConnectionOpenConfirm.d.ts +40 -0
- package/dist/core/ibc/msgs/connection/MsgConnectionOpenConfirm.js +88 -0
- package/dist/core/ibc/msgs/connection/MsgConnectionOpenConfirm.js.map +1 -0
- package/dist/core/ibc/msgs/connection/MsgConnectionOpenInit.d.ts +43 -0
- package/dist/core/ibc/msgs/connection/MsgConnectionOpenInit.js +98 -0
- package/dist/core/ibc/msgs/connection/MsgConnectionOpenInit.js.map +1 -0
- package/dist/core/ibc/msgs/connection/MsgConnectionOpenTry.d.ts +65 -0
- package/dist/core/ibc/msgs/connection/MsgConnectionOpenTry.js +141 -0
- package/dist/core/ibc/msgs/connection/MsgConnectionOpenTry.js.map +1 -0
- package/dist/core/ibc/msgs/connection/index.d.ts +13 -0
- package/dist/core/ibc/msgs/connection/index.js +21 -0
- package/dist/core/ibc/msgs/connection/index.js.map +1 -0
- package/dist/core/ibc/proposals/ClientUpdateProposal.d.ts +47 -0
- package/dist/core/ibc/proposals/ClientUpdateProposal.js +96 -0
- package/dist/core/ibc/proposals/ClientUpdateProposal.js.map +1 -0
- package/dist/core/ibc/proposals/index.d.ts +1 -0
- package/dist/core/ibc/proposals/index.js +18 -0
- package/dist/core/ibc/proposals/index.js.map +1 -0
- package/dist/core/index.d.ts +48 -0
- package/dist/core/index.js +80 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/move/MoveCoin.d.ts +28 -0
- package/dist/core/move/MoveCoin.js +67 -0
- package/dist/core/move/MoveCoin.js.map +1 -0
- package/dist/core/move/msgs/MsgConvertMoveCoin.d.ts +37 -0
- package/dist/core/move/msgs/MsgConvertMoveCoin.js +83 -0
- package/dist/core/move/msgs/MsgConvertMoveCoin.js.map +1 -0
- package/dist/core/move/msgs/MsgConvertNativeCoin.d.ts +37 -0
- package/dist/core/move/msgs/MsgConvertNativeCoin.js +83 -0
- package/dist/core/move/msgs/MsgConvertNativeCoin.js.map +1 -0
- package/dist/core/move/msgs/MsgExecuteEntryFunction.d.ts +52 -0
- package/dist/core/move/msgs/MsgExecuteEntryFunction.js +102 -0
- package/dist/core/move/msgs/MsgExecuteEntryFunction.js.map +1 -0
- package/dist/core/move/msgs/MsgExecuteScript.d.ts +44 -0
- package/dist/core/move/msgs/MsgExecuteScript.js +92 -0
- package/dist/core/move/msgs/MsgExecuteScript.js.map +1 -0
- package/dist/core/move/msgs/MsgPublishModuleBundle.d.ts +36 -0
- package/dist/core/move/msgs/MsgPublishModuleBundle.js +82 -0
- package/dist/core/move/msgs/MsgPublishModuleBundle.js.map +1 -0
- package/dist/core/move/msgs/index.d.ts +16 -0
- package/dist/core/move/msgs/index.js +22 -0
- package/dist/core/move/msgs/index.js.map +1 -0
- package/dist/core/move/proposals/PublishStdModuleProposal.d.ts +42 -0
- package/dist/core/move/proposals/PublishStdModuleProposal.js +90 -0
- package/dist/core/move/proposals/PublishStdModuleProposal.js.map +1 -0
- package/dist/core/move/proposals/index.d.ts +1 -0
- package/dist/core/move/proposals/index.js +18 -0
- package/dist/core/move/proposals/index.js.map +1 -0
- package/dist/core/num.d.ts +4 -0
- package/dist/core/num.js +28 -0
- package/dist/core/num.js.map +1 -0
- package/dist/core/params/ParamChange.d.ts +42 -0
- package/dist/core/params/ParamChange.js +96 -0
- package/dist/core/params/ParamChange.js.map +1 -0
- package/dist/core/params/proposals/ParameterChangeProposal.d.ts +68 -0
- package/dist/core/params/proposals/ParameterChangeProposal.js +121 -0
- package/dist/core/params/proposals/ParameterChangeProposal.js.map +1 -0
- package/dist/core/params/proposals/index.d.ts +1 -0
- package/dist/core/params/proposals/index.js +18 -0
- package/dist/core/params/proposals/index.js.map +1 -0
- package/dist/core/slashing/msgs/MsgUnjail.d.ts +40 -0
- package/dist/core/slashing/msgs/MsgUnjail.js +85 -0
- package/dist/core/slashing/msgs/MsgUnjail.js.map +1 -0
- package/dist/core/slashing/msgs/index.d.ts +8 -0
- package/dist/core/slashing/msgs/index.js +18 -0
- package/dist/core/slashing/msgs/index.js.map +1 -0
- package/dist/core/staking/Delegation.d.ts +45 -0
- package/dist/core/staking/Delegation.js +91 -0
- package/dist/core/staking/Delegation.js.map +1 -0
- package/dist/core/staking/Redelegation.d.ts +96 -0
- package/dist/core/staking/Redelegation.js +177 -0
- package/dist/core/staking/Redelegation.js.map +1 -0
- package/dist/core/staking/UnbondingDelegation.d.ts +74 -0
- package/dist/core/staking/UnbondingDelegation.js +145 -0
- package/dist/core/staking/UnbondingDelegation.js.map +1 -0
- package/dist/core/staking/Validator.d.ts +169 -0
- package/dist/core/staking/Validator.js +283 -0
- package/dist/core/staking/Validator.js.map +1 -0
- package/dist/core/staking/msgs/MsgBeginRedelegate.d.ts +51 -0
- package/dist/core/staking/msgs/MsgBeginRedelegate.js +99 -0
- package/dist/core/staking/msgs/MsgBeginRedelegate.js.map +1 -0
- package/dist/core/staking/msgs/MsgCreateValidator.d.ts +64 -0
- package/dist/core/staking/msgs/MsgCreateValidator.js +117 -0
- package/dist/core/staking/msgs/MsgCreateValidator.js.map +1 -0
- package/dist/core/staking/msgs/MsgDelegate.d.ts +46 -0
- package/dist/core/staking/msgs/MsgDelegate.js +93 -0
- package/dist/core/staking/msgs/MsgDelegate.js.map +1 -0
- package/dist/core/staking/msgs/MsgEditValidator.d.ts +54 -0
- package/dist/core/staking/msgs/MsgEditValidator.js +120 -0
- package/dist/core/staking/msgs/MsgEditValidator.js.map +1 -0
- package/dist/core/staking/msgs/MsgUndelegate.d.ts +46 -0
- package/dist/core/staking/msgs/MsgUndelegate.js +93 -0
- package/dist/core/staking/msgs/MsgUndelegate.js.map +1 -0
- package/dist/core/staking/msgs/index.d.ts +16 -0
- package/dist/core/staking/msgs/index.js +22 -0
- package/dist/core/staking/msgs/index.js.map +1 -0
- package/dist/core/upgrade/Plan.d.ts +40 -0
- package/dist/core/upgrade/Plan.js +92 -0
- package/dist/core/upgrade/Plan.js.map +1 -0
- package/dist/core/upgrade/index.d.ts +2 -0
- package/dist/core/upgrade/index.js +19 -0
- package/dist/core/upgrade/index.js.map +1 -0
- package/dist/core/upgrade/proposals/CancelSoftwareUpgradeProposal.d.ts +39 -0
- package/dist/core/upgrade/proposals/CancelSoftwareUpgradeProposal.js +86 -0
- package/dist/core/upgrade/proposals/CancelSoftwareUpgradeProposal.js.map +1 -0
- package/dist/core/upgrade/proposals/SoftwareUpgradeProposal.d.ts +44 -0
- package/dist/core/upgrade/proposals/SoftwareUpgradeProposal.js +92 -0
- package/dist/core/upgrade/proposals/SoftwareUpgradeProposal.js.map +1 -0
- package/dist/core/upgrade/proposals/index.d.ts +2 -0
- package/dist/core/upgrade/proposals/index.js +19 -0
- package/dist/core/upgrade/proposals/index.js.map +1 -0
- package/dist/core/vesting/Period.d.ts +32 -0
- package/dist/core/vesting/Period.js +78 -0
- package/dist/core/vesting/Period.js.map +1 -0
- package/dist/core/vesting/index.d.ts +2 -0
- package/dist/core/vesting/index.js +19 -0
- package/dist/core/vesting/index.js.map +1 -0
- package/dist/core/vesting/msgs/MsgCreatePeriodicVestingAccount.d.ts +46 -0
- package/dist/core/vesting/msgs/MsgCreatePeriodicVestingAccount.js +98 -0
- package/dist/core/vesting/msgs/MsgCreatePeriodicVestingAccount.js.map +1 -0
- package/dist/core/vesting/msgs/MsgCreateVestingAccount.d.ts +50 -0
- package/dist/core/vesting/msgs/MsgCreateVestingAccount.js +103 -0
- package/dist/core/vesting/msgs/MsgCreateVestingAccount.js.map +1 -0
- package/dist/core/vesting/msgs/MsgDonateAllVestingTokens.d.ts +35 -0
- package/dist/core/vesting/msgs/MsgDonateAllVestingTokens.js +75 -0
- package/dist/core/vesting/msgs/MsgDonateAllVestingTokens.js.map +1 -0
- package/dist/core/vesting/msgs/index.d.ts +12 -0
- package/dist/core/vesting/msgs/index.js +20 -0
- package/dist/core/vesting/msgs/index.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/key/CLIKey.d.ts +44 -0
- package/dist/key/CLIKey.js +164 -0
- package/dist/key/CLIKey.js.map +1 -0
- package/dist/key/Key.d.ts +60 -0
- package/dist/key/Key.js +185 -0
- package/dist/key/Key.js.map +1 -0
- package/dist/key/MnemonicKey.d.ts +55 -0
- package/dist/key/MnemonicKey.js +114 -0
- package/dist/key/MnemonicKey.js.map +1 -0
- package/dist/key/RawKey.d.ts +17 -0
- package/dist/key/RawKey.js +110 -0
- package/dist/key/RawKey.js.map +1 -0
- package/dist/key/index.d.ts +4 -0
- package/dist/key/index.js +21 -0
- package/dist/key/index.js.map +1 -0
- package/dist/util/bcs.d.ts +11 -0
- package/dist/util/bcs.js +102 -0
- package/dist/util/bcs.js.map +1 -0
- package/dist/util/contract.d.ts +9 -0
- package/dist/util/contract.js +57 -0
- package/dist/util/contract.js.map +1 -0
- package/dist/util/convert.d.ts +8 -0
- package/dist/util/convert.js +12 -0
- package/dist/util/convert.js.map +1 -0
- package/dist/util/hash.d.ts +11 -0
- package/dist/util/hash.js +37 -0
- package/dist/util/hash.js.map +1 -0
- package/dist/util/index.d.ts +2 -0
- package/dist/util/index.js +19 -0
- package/dist/util/index.js.map +1 -0
- package/dist/util/json.d.ts +9 -0
- package/dist/util/json.js +62 -0
- package/dist/util/json.js.map +1 -0
- package/package.json +110 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.MsgSetWithdrawAddress = void 0;
|
|
19
|
+
var json_1 = require("../../../util/json");
|
|
20
|
+
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
21
|
+
var tx_1 = require("@initia/initia.proto/cosmos/distribution/v1beta1/tx");
|
|
22
|
+
/**
|
|
23
|
+
* A validator can withdraw their outstanding commission rewards accrued from all
|
|
24
|
+
* delegations (not including its self-delegation) into their associated account's
|
|
25
|
+
* withdraw address.
|
|
26
|
+
*/
|
|
27
|
+
var MsgSetWithdrawAddress = /** @class */ (function (_super) {
|
|
28
|
+
__extends(MsgSetWithdrawAddress, _super);
|
|
29
|
+
/**
|
|
30
|
+
* @param delegator_address delegator's account address
|
|
31
|
+
* @param withdraw_address desired new withdraw address
|
|
32
|
+
*/
|
|
33
|
+
function MsgSetWithdrawAddress(delegator_address, withdraw_address) {
|
|
34
|
+
var _this = _super.call(this) || this;
|
|
35
|
+
_this.delegator_address = delegator_address;
|
|
36
|
+
_this.withdraw_address = withdraw_address;
|
|
37
|
+
return _this;
|
|
38
|
+
}
|
|
39
|
+
MsgSetWithdrawAddress.fromAmino = function (data) {
|
|
40
|
+
var _a = data.value, delegator_address = _a.delegator_address, withdraw_address = _a.withdraw_address;
|
|
41
|
+
return new MsgSetWithdrawAddress(delegator_address, withdraw_address);
|
|
42
|
+
};
|
|
43
|
+
MsgSetWithdrawAddress.prototype.toAmino = function () {
|
|
44
|
+
var _a = this, delegator_address = _a.delegator_address, withdraw_address = _a.withdraw_address;
|
|
45
|
+
return {
|
|
46
|
+
type: 'cosmos-sdk/MsgModifyWithdrawAddress',
|
|
47
|
+
value: {
|
|
48
|
+
delegator_address: delegator_address,
|
|
49
|
+
withdraw_address: withdraw_address,
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
MsgSetWithdrawAddress.fromData = function (data) {
|
|
54
|
+
var delegator_address = data.delegator_address, withdraw_address = data.withdraw_address;
|
|
55
|
+
return new MsgSetWithdrawAddress(delegator_address, withdraw_address);
|
|
56
|
+
};
|
|
57
|
+
MsgSetWithdrawAddress.prototype.toData = function () {
|
|
58
|
+
var _a = this, delegator_address = _a.delegator_address, withdraw_address = _a.withdraw_address;
|
|
59
|
+
return {
|
|
60
|
+
'@type': '/cosmos.distribution.v1beta1.MsgSetWithdrawAddress',
|
|
61
|
+
delegator_address: delegator_address,
|
|
62
|
+
withdraw_address: withdraw_address,
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
MsgSetWithdrawAddress.fromProto = function (proto) {
|
|
66
|
+
return new MsgSetWithdrawAddress(proto.delegatorAddress, proto.withdrawAddress);
|
|
67
|
+
};
|
|
68
|
+
MsgSetWithdrawAddress.prototype.toProto = function () {
|
|
69
|
+
var _a = this, delegator_address = _a.delegator_address, withdraw_address = _a.withdraw_address;
|
|
70
|
+
return tx_1.MsgSetWithdrawAddress.fromPartial({
|
|
71
|
+
delegatorAddress: delegator_address,
|
|
72
|
+
withdrawAddress: withdraw_address,
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
MsgSetWithdrawAddress.prototype.packAny = function () {
|
|
76
|
+
return any_1.Any.fromPartial({
|
|
77
|
+
typeUrl: '/cosmos.distribution.v1beta1.MsgSetWithdrawAddress',
|
|
78
|
+
value: tx_1.MsgSetWithdrawAddress.encode(this.toProto()).finish(),
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
MsgSetWithdrawAddress.unpackAny = function (msgAny) {
|
|
82
|
+
return MsgSetWithdrawAddress.fromProto(tx_1.MsgSetWithdrawAddress.decode(msgAny.value));
|
|
83
|
+
};
|
|
84
|
+
return MsgSetWithdrawAddress;
|
|
85
|
+
}(json_1.JSONSerializable));
|
|
86
|
+
exports.MsgSetWithdrawAddress = MsgSetWithdrawAddress;
|
|
87
|
+
//# sourceMappingURL=MsgSetWithdrawAddress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MsgSetWithdrawAddress.js","sourceRoot":"","sources":["../../../../src/core/distribution/msgs/MsgSetWithdrawAddress.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AAEtD,gEAA+D;AAC/D,0EAAwH;AAExH;;;;GAIG;AACH;IAA2C,yCAI1C;IACC;;;OAGG;IACH,+BACS,iBAA6B,EAC7B,gBAA4B;QAFrC,YAIE,iBAAO,SACR;QAJQ,uBAAiB,GAAjB,iBAAiB,CAAY;QAC7B,sBAAgB,GAAhB,gBAAgB,CAAY;;IAGrC,CAAC;IAEa,+BAAS,GAAvB,UACE,IAAiC;QAG/B,IAAA,KACE,IAAI,MADwC,EAArC,iBAAiB,uBAAA,EAAE,gBAAgB,sBAAE,CACvC;QACT,OAAO,IAAI,qBAAqB,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;IACxE,CAAC;IAEM,uCAAO,GAAd;QACQ,IAAA,KAA0C,IAAI,EAA5C,iBAAiB,uBAAA,EAAE,gBAAgB,sBAAS,CAAC;QACrD,OAAO;YACL,IAAI,EAAE,qCAAqC;YAC3C,KAAK,EAAE;gBACL,iBAAiB,mBAAA;gBACjB,gBAAgB,kBAAA;aACjB;SACF,CAAC;IACJ,CAAC;IAEa,8BAAQ,GAAtB,UACE,IAAgC;QAExB,IAAA,iBAAiB,GAAuB,IAAI,kBAA3B,EAAE,gBAAgB,GAAK,IAAI,iBAAT,CAAU;QACrD,OAAO,IAAI,qBAAqB,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;IACxE,CAAC;IAEM,sCAAM,GAAb;QACQ,IAAA,KAA0C,IAAI,EAA5C,iBAAiB,uBAAA,EAAE,gBAAgB,sBAAS,CAAC;QACrD,OAAO;YACL,OAAO,EAAE,oDAAoD;YAC7D,iBAAiB,mBAAA;YACjB,gBAAgB,kBAAA;SACjB,CAAC;IACJ,CAAC;IAEa,+BAAS,GAAvB,UACE,KAAkC;QAElC,OAAO,IAAI,qBAAqB,CAC9B,KAAK,CAAC,gBAAgB,EACtB,KAAK,CAAC,eAAe,CACtB,CAAC;IACJ,CAAC;IAEM,uCAAO,GAAd;QACQ,IAAA,KAA0C,IAAI,EAA5C,iBAAiB,uBAAA,EAAE,gBAAgB,sBAAS,CAAC;QACrD,OAAO,0BAAwB,CAAC,WAAW,CAAC;YAC1C,gBAAgB,EAAE,iBAAiB;YACnC,eAAe,EAAE,gBAAgB;SAClC,CAAC,CAAC;IACL,CAAC;IAEM,uCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,oDAAoD;YAC7D,KAAK,EAAE,0BAAwB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAChE,CAAC,CAAC;IACL,CAAC;IAEa,+BAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,qBAAqB,CAAC,SAAS,CACpC,0BAAwB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAC9C,CAAC;IACJ,CAAC;IACH,4BAAC;AAAD,CAAC,AAjFD,CAA2C,uBAAgB,GAiF1D;AAjFY,sDAAqB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { AccAddress, ValAddress } from '../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgWithdrawDelegatorReward as MsgWithdrawDelegatorReward_pb } from '@initia/initia.proto/cosmos/distribution/v1beta1/tx';
|
|
5
|
+
/**
|
|
6
|
+
* A delegator can withdraw currently outstanding rewards accrued from their delegation
|
|
7
|
+
* toward a validator by submitting the following message.
|
|
8
|
+
*
|
|
9
|
+
* The rewards will be deposited to their Withdraw Address.
|
|
10
|
+
*/
|
|
11
|
+
export declare class MsgWithdrawDelegatorReward extends JSONSerializable<MsgWithdrawDelegatorReward.Amino, MsgWithdrawDelegatorReward.Data, MsgWithdrawDelegatorReward.Proto> {
|
|
12
|
+
delegator_address: AccAddress;
|
|
13
|
+
validator_address: ValAddress;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @param delegator_address delegator's account address
|
|
17
|
+
* @param validator_address validator's operator address
|
|
18
|
+
*/
|
|
19
|
+
constructor(delegator_address: AccAddress, validator_address: ValAddress);
|
|
20
|
+
static fromAmino(data: MsgWithdrawDelegatorReward.Amino): MsgWithdrawDelegatorReward;
|
|
21
|
+
toAmino(): MsgWithdrawDelegatorReward.Amino;
|
|
22
|
+
static fromData(proto: MsgWithdrawDelegatorReward.Data): MsgWithdrawDelegatorReward;
|
|
23
|
+
toData(): MsgWithdrawDelegatorReward.Data;
|
|
24
|
+
static fromProto(proto: MsgWithdrawDelegatorReward.Proto): MsgWithdrawDelegatorReward;
|
|
25
|
+
toProto(): MsgWithdrawDelegatorReward.Proto;
|
|
26
|
+
packAny(): Any;
|
|
27
|
+
static unpackAny(msgAny: Any): MsgWithdrawDelegatorReward;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace MsgWithdrawDelegatorReward {
|
|
30
|
+
interface Amino {
|
|
31
|
+
type: 'cosmos-sdk/MsgWithdrawDelegationReward';
|
|
32
|
+
value: {
|
|
33
|
+
delegator_address: AccAddress;
|
|
34
|
+
validator_address: ValAddress;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
interface Data {
|
|
38
|
+
'@type': '/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward';
|
|
39
|
+
delegator_address: AccAddress;
|
|
40
|
+
validator_address: ValAddress;
|
|
41
|
+
}
|
|
42
|
+
type Proto = MsgWithdrawDelegatorReward_pb;
|
|
43
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.MsgWithdrawDelegatorReward = void 0;
|
|
19
|
+
var json_1 = require("../../../util/json");
|
|
20
|
+
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
21
|
+
var tx_1 = require("@initia/initia.proto/cosmos/distribution/v1beta1/tx");
|
|
22
|
+
/**
|
|
23
|
+
* A delegator can withdraw currently outstanding rewards accrued from their delegation
|
|
24
|
+
* toward a validator by submitting the following message.
|
|
25
|
+
*
|
|
26
|
+
* The rewards will be deposited to their Withdraw Address.
|
|
27
|
+
*/
|
|
28
|
+
var MsgWithdrawDelegatorReward = /** @class */ (function (_super) {
|
|
29
|
+
__extends(MsgWithdrawDelegatorReward, _super);
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @param delegator_address delegator's account address
|
|
33
|
+
* @param validator_address validator's operator address
|
|
34
|
+
*/
|
|
35
|
+
function MsgWithdrawDelegatorReward(delegator_address, validator_address) {
|
|
36
|
+
var _this = _super.call(this) || this;
|
|
37
|
+
_this.delegator_address = delegator_address;
|
|
38
|
+
_this.validator_address = validator_address;
|
|
39
|
+
return _this;
|
|
40
|
+
}
|
|
41
|
+
MsgWithdrawDelegatorReward.fromAmino = function (data) {
|
|
42
|
+
var _a = data.value, delegator_address = _a.delegator_address, validator_address = _a.validator_address;
|
|
43
|
+
return new MsgWithdrawDelegatorReward(delegator_address, validator_address);
|
|
44
|
+
};
|
|
45
|
+
MsgWithdrawDelegatorReward.prototype.toAmino = function () {
|
|
46
|
+
var _a = this, delegator_address = _a.delegator_address, validator_address = _a.validator_address;
|
|
47
|
+
return {
|
|
48
|
+
type: 'cosmos-sdk/MsgWithdrawDelegationReward',
|
|
49
|
+
value: {
|
|
50
|
+
delegator_address: delegator_address,
|
|
51
|
+
validator_address: validator_address,
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
MsgWithdrawDelegatorReward.fromData = function (proto) {
|
|
56
|
+
var delegator_address = proto.delegator_address, validator_address = proto.validator_address;
|
|
57
|
+
return new MsgWithdrawDelegatorReward(delegator_address, validator_address);
|
|
58
|
+
};
|
|
59
|
+
MsgWithdrawDelegatorReward.prototype.toData = function () {
|
|
60
|
+
var _a = this, delegator_address = _a.delegator_address, validator_address = _a.validator_address;
|
|
61
|
+
return {
|
|
62
|
+
'@type': '/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward',
|
|
63
|
+
delegator_address: delegator_address,
|
|
64
|
+
validator_address: validator_address,
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
MsgWithdrawDelegatorReward.fromProto = function (proto) {
|
|
68
|
+
return new MsgWithdrawDelegatorReward(proto.delegatorAddress, proto.validatorAddress);
|
|
69
|
+
};
|
|
70
|
+
MsgWithdrawDelegatorReward.prototype.toProto = function () {
|
|
71
|
+
var _a = this, delegator_address = _a.delegator_address, validator_address = _a.validator_address;
|
|
72
|
+
return tx_1.MsgWithdrawDelegatorReward.fromPartial({
|
|
73
|
+
delegatorAddress: delegator_address,
|
|
74
|
+
validatorAddress: validator_address,
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
MsgWithdrawDelegatorReward.prototype.packAny = function () {
|
|
78
|
+
return any_1.Any.fromPartial({
|
|
79
|
+
typeUrl: '/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward',
|
|
80
|
+
value: tx_1.MsgWithdrawDelegatorReward.encode(this.toProto()).finish(),
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
MsgWithdrawDelegatorReward.unpackAny = function (msgAny) {
|
|
84
|
+
return MsgWithdrawDelegatorReward.fromProto(tx_1.MsgWithdrawDelegatorReward.decode(msgAny.value));
|
|
85
|
+
};
|
|
86
|
+
return MsgWithdrawDelegatorReward;
|
|
87
|
+
}(json_1.JSONSerializable));
|
|
88
|
+
exports.MsgWithdrawDelegatorReward = MsgWithdrawDelegatorReward;
|
|
89
|
+
//# sourceMappingURL=MsgWithdrawDelegatorReward.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MsgWithdrawDelegatorReward.js","sourceRoot":"","sources":["../../../../src/core/distribution/msgs/MsgWithdrawDelegatorReward.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AAEtD,gEAA+D;AAC/D,0EAAkI;AAElI;;;;;GAKG;AACH;IAAgD,8CAI/C;IACC;;;;OAIG;IACH,oCACS,iBAA6B,EAC7B,iBAA6B;QAFtC,YAIE,iBAAO,SACR;QAJQ,uBAAiB,GAAjB,iBAAiB,CAAY;QAC7B,uBAAiB,GAAjB,iBAAiB,CAAY;;IAGtC,CAAC;IAEa,oCAAS,GAAvB,UACE,IAAsC;QAGpC,IAAA,KACE,IAAI,MADyC,EAAtC,iBAAiB,uBAAA,EAAE,iBAAiB,uBAAE,CACxC;QACT,OAAO,IAAI,0BAA0B,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAC;IAC9E,CAAC;IAEM,4CAAO,GAAd;QACQ,IAAA,KAA2C,IAAI,EAA7C,iBAAiB,uBAAA,EAAE,iBAAiB,uBAAS,CAAC;QACtD,OAAO;YACL,IAAI,EAAE,wCAAwC;YAC9C,KAAK,EAAE;gBACL,iBAAiB,mBAAA;gBACjB,iBAAiB,mBAAA;aAClB;SACF,CAAC;IACJ,CAAC;IAEa,mCAAQ,GAAtB,UACE,KAAsC;QAE9B,IAAA,iBAAiB,GAAwB,KAAK,kBAA7B,EAAE,iBAAiB,GAAK,KAAK,kBAAV,CAAW;QACvD,OAAO,IAAI,0BAA0B,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAC;IAC9E,CAAC;IAEM,2CAAM,GAAb;QACQ,IAAA,KAA2C,IAAI,EAA7C,iBAAiB,uBAAA,EAAE,iBAAiB,uBAAS,CAAC;QACtD,OAAO;YACL,OAAO,EAAE,yDAAyD;YAClE,iBAAiB,mBAAA;YACjB,iBAAiB,mBAAA;SAClB,CAAC;IACJ,CAAC;IAEa,oCAAS,GAAvB,UACE,KAAuC;QAEvC,OAAO,IAAI,0BAA0B,CACnC,KAAK,CAAC,gBAAgB,EACtB,KAAK,CAAC,gBAAgB,CACvB,CAAC;IACJ,CAAC;IAEM,4CAAO,GAAd;QACQ,IAAA,KAA2C,IAAI,EAA7C,iBAAiB,uBAAA,EAAE,iBAAiB,uBAAS,CAAC;QACtD,OAAO,+BAA6B,CAAC,WAAW,CAAC;YAC/C,gBAAgB,EAAE,iBAAiB;YACnC,gBAAgB,EAAE,iBAAiB;SACpC,CAAC,CAAC;IACL,CAAC;IAEM,4CAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,yDAAyD;YAClE,KAAK,EAAE,+BAA6B,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACrE,CAAC,CAAC;IACL,CAAC;IAEa,oCAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,0BAA0B,CAAC,SAAS,CACzC,+BAA6B,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACnD,CAAC;IACJ,CAAC;IACH,iCAAC;AAAD,CAAC,AAlFD,CAAgD,uBAAgB,GAkF/D;AAlFY,gEAA0B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { ValAddress } from '../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgWithdrawValidatorCommission as MsgWithdrawValidatorCommission_pb } from '@initia/initia.proto/cosmos/distribution/v1beta1/tx';
|
|
5
|
+
/**
|
|
6
|
+
* A validator can withdraw their outstanding commission rewards accrued from all
|
|
7
|
+
* delegations (not including its self-delegation) into their associated account's
|
|
8
|
+
* withdraw address.
|
|
9
|
+
*/
|
|
10
|
+
export declare class MsgWithdrawValidatorCommission extends JSONSerializable<MsgWithdrawValidatorCommission.Amino, MsgWithdrawValidatorCommission.Data, MsgWithdrawValidatorCommission.Proto> {
|
|
11
|
+
validator_address: ValAddress;
|
|
12
|
+
/**
|
|
13
|
+
* @param validator_address validator's operator address
|
|
14
|
+
*/
|
|
15
|
+
constructor(validator_address: ValAddress);
|
|
16
|
+
static fromAmino(data: MsgWithdrawValidatorCommission.Amino): MsgWithdrawValidatorCommission;
|
|
17
|
+
toAmino(): MsgWithdrawValidatorCommission.Amino;
|
|
18
|
+
static fromData(proto: MsgWithdrawValidatorCommission.Data): MsgWithdrawValidatorCommission;
|
|
19
|
+
toData(): MsgWithdrawValidatorCommission.Data;
|
|
20
|
+
static fromProto(proto: MsgWithdrawValidatorCommission.Proto): MsgWithdrawValidatorCommission;
|
|
21
|
+
toProto(): MsgWithdrawValidatorCommission.Proto;
|
|
22
|
+
packAny(): Any;
|
|
23
|
+
static unpackAny(msgAny: Any): MsgWithdrawValidatorCommission;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace MsgWithdrawValidatorCommission {
|
|
26
|
+
interface Amino {
|
|
27
|
+
type: 'cosmos-sdk/MsgWithdrawValidatorCommission';
|
|
28
|
+
value: {
|
|
29
|
+
validator_address: ValAddress;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
interface Data {
|
|
33
|
+
'@type': '/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission';
|
|
34
|
+
validator_address: ValAddress;
|
|
35
|
+
}
|
|
36
|
+
type Proto = MsgWithdrawValidatorCommission_pb;
|
|
37
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.MsgWithdrawValidatorCommission = void 0;
|
|
19
|
+
var json_1 = require("../../../util/json");
|
|
20
|
+
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
21
|
+
var tx_1 = require("@initia/initia.proto/cosmos/distribution/v1beta1/tx");
|
|
22
|
+
/**
|
|
23
|
+
* A validator can withdraw their outstanding commission rewards accrued from all
|
|
24
|
+
* delegations (not including its self-delegation) into their associated account's
|
|
25
|
+
* withdraw address.
|
|
26
|
+
*/
|
|
27
|
+
var MsgWithdrawValidatorCommission = /** @class */ (function (_super) {
|
|
28
|
+
__extends(MsgWithdrawValidatorCommission, _super);
|
|
29
|
+
/**
|
|
30
|
+
* @param validator_address validator's operator address
|
|
31
|
+
*/
|
|
32
|
+
function MsgWithdrawValidatorCommission(validator_address) {
|
|
33
|
+
var _this = _super.call(this) || this;
|
|
34
|
+
_this.validator_address = validator_address;
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
MsgWithdrawValidatorCommission.fromAmino = function (data) {
|
|
38
|
+
var validator_address = data.value.validator_address;
|
|
39
|
+
return new MsgWithdrawValidatorCommission(validator_address);
|
|
40
|
+
};
|
|
41
|
+
MsgWithdrawValidatorCommission.prototype.toAmino = function () {
|
|
42
|
+
var validator_address = this.validator_address;
|
|
43
|
+
return {
|
|
44
|
+
type: 'cosmos-sdk/MsgWithdrawValidatorCommission',
|
|
45
|
+
value: {
|
|
46
|
+
validator_address: validator_address,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
MsgWithdrawValidatorCommission.fromData = function (proto) {
|
|
51
|
+
var validator_address = proto.validator_address;
|
|
52
|
+
return new MsgWithdrawValidatorCommission(validator_address);
|
|
53
|
+
};
|
|
54
|
+
MsgWithdrawValidatorCommission.prototype.toData = function () {
|
|
55
|
+
var validator_address = this.validator_address;
|
|
56
|
+
return {
|
|
57
|
+
'@type': '/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission',
|
|
58
|
+
validator_address: validator_address,
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
MsgWithdrawValidatorCommission.fromProto = function (proto) {
|
|
62
|
+
return new MsgWithdrawValidatorCommission(proto.validatorAddress);
|
|
63
|
+
};
|
|
64
|
+
MsgWithdrawValidatorCommission.prototype.toProto = function () {
|
|
65
|
+
var validator_address = this.validator_address;
|
|
66
|
+
return tx_1.MsgWithdrawValidatorCommission.fromPartial({
|
|
67
|
+
validatorAddress: validator_address,
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
MsgWithdrawValidatorCommission.prototype.packAny = function () {
|
|
71
|
+
return any_1.Any.fromPartial({
|
|
72
|
+
typeUrl: '/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission',
|
|
73
|
+
value: tx_1.MsgWithdrawValidatorCommission.encode(this.toProto()).finish(),
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
MsgWithdrawValidatorCommission.unpackAny = function (msgAny) {
|
|
77
|
+
return MsgWithdrawValidatorCommission.fromProto(tx_1.MsgWithdrawValidatorCommission.decode(msgAny.value));
|
|
78
|
+
};
|
|
79
|
+
return MsgWithdrawValidatorCommission;
|
|
80
|
+
}(json_1.JSONSerializable));
|
|
81
|
+
exports.MsgWithdrawValidatorCommission = MsgWithdrawValidatorCommission;
|
|
82
|
+
//# sourceMappingURL=MsgWithdrawValidatorCommission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MsgWithdrawValidatorCommission.js","sourceRoot":"","sources":["../../../../src/core/distribution/msgs/MsgWithdrawValidatorCommission.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AAEtD,gEAA+D;AAC/D,0EAA0I;AAE1I;;;;GAIG;AACH;IAAoD,kDAInD;IACC;;OAEG;IACH,wCAAmB,iBAA6B;QAAhD,YACE,iBAAO,SACR;QAFkB,uBAAiB,GAAjB,iBAAiB,CAAY;;IAEhD,CAAC;IAEa,wCAAS,GAAvB,UACE,IAA0C;QAG/B,IAAA,iBAAiB,GACxB,IAAI,wBADoB,CACnB;QACT,OAAO,IAAI,8BAA8B,CAAC,iBAAiB,CAAC,CAAC;IAC/D,CAAC;IAEM,gDAAO,GAAd;QACU,IAAA,iBAAiB,GAAK,IAAI,kBAAT,CAAU;QACnC,OAAO;YACL,IAAI,EAAE,2CAA2C;YACjD,KAAK,EAAE;gBACL,iBAAiB,mBAAA;aAClB;SACF,CAAC;IACJ,CAAC;IAEa,uCAAQ,GAAtB,UACE,KAA0C;QAElC,IAAA,iBAAiB,GAAK,KAAK,kBAAV,CAAW;QACpC,OAAO,IAAI,8BAA8B,CAAC,iBAAiB,CAAC,CAAC;IAC/D,CAAC;IAEM,+CAAM,GAAb;QACU,IAAA,iBAAiB,GAAK,IAAI,kBAAT,CAAU;QACnC,OAAO;YACL,OAAO,EAAE,6DAA6D;YACtE,iBAAiB,mBAAA;SAClB,CAAC;IACJ,CAAC;IAEa,wCAAS,GAAvB,UACE,KAA2C;QAE3C,OAAO,IAAI,8BAA8B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACpE,CAAC;IAEM,gDAAO,GAAd;QACU,IAAA,iBAAiB,GAAK,IAAI,kBAAT,CAAU;QACnC,OAAO,mCAAiC,CAAC,WAAW,CAAC;YACnD,gBAAgB,EAAE,iBAAiB;SACpC,CAAC,CAAC;IACL,CAAC;IAEM,gDAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,6DAA6D;YACtE,KAAK,EAAE,mCAAiC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACzE,CAAC,CAAC;IACL,CAAC;IAEa,wCAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,8BAA8B,CAAC,SAAS,CAC7C,mCAAiC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACvD,CAAC;IACJ,CAAC;IACH,qCAAC;AAAD,CAAC,AAvED,CAAoD,uBAAgB,GAuEnE;AAvEY,wEAA8B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MsgSetWithdrawAddress } from './MsgSetWithdrawAddress';
|
|
2
|
+
import { MsgWithdrawDelegatorReward } from './MsgWithdrawDelegatorReward';
|
|
3
|
+
import { MsgWithdrawValidatorCommission } from './MsgWithdrawValidatorCommission';
|
|
4
|
+
import { MsgFundCommunityPool } from './MsgFundCommunityPool';
|
|
5
|
+
export * from './MsgSetWithdrawAddress';
|
|
6
|
+
export * from './MsgWithdrawDelegatorReward';
|
|
7
|
+
export * from './MsgWithdrawValidatorCommission';
|
|
8
|
+
export * from './MsgFundCommunityPool';
|
|
9
|
+
export declare type DistributionMsg = MsgSetWithdrawAddress | MsgWithdrawDelegatorReward | MsgWithdrawValidatorCommission | MsgFundCommunityPool;
|
|
10
|
+
export declare namespace DistributionMsg {
|
|
11
|
+
type Amino = MsgSetWithdrawAddress.Amino | MsgWithdrawDelegatorReward.Amino | MsgWithdrawValidatorCommission.Amino | MsgFundCommunityPool.Amino;
|
|
12
|
+
type Data = MsgSetWithdrawAddress.Data | MsgWithdrawDelegatorReward.Data | MsgWithdrawValidatorCommission.Data | MsgFundCommunityPool.Data;
|
|
13
|
+
type Proto = MsgSetWithdrawAddress.Proto | MsgWithdrawDelegatorReward.Proto | MsgWithdrawValidatorCommission.Proto | MsgFundCommunityPool.Proto;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./MsgSetWithdrawAddress"), exports);
|
|
18
|
+
__exportStar(require("./MsgWithdrawDelegatorReward"), exports);
|
|
19
|
+
__exportStar(require("./MsgWithdrawValidatorCommission"), exports);
|
|
20
|
+
__exportStar(require("./MsgFundCommunityPool"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/distribution/msgs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,0DAAwC;AACxC,+DAA6C;AAC7C,mEAAiD;AACjD,yDAAuC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { Coins } from '../../Coins';
|
|
3
|
+
import { AccAddress } from '../../bech32';
|
|
4
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
5
|
+
import { CommunityPoolSpendProposal as CommunityPoolSpendProposal_pb } from '@initia/initia.proto/cosmos/distribution/v1beta1/distribution';
|
|
6
|
+
/**
|
|
7
|
+
* Proposal that disburses funds from the Distribution module's community pool to the
|
|
8
|
+
* specified recipient if passed.
|
|
9
|
+
*/
|
|
10
|
+
export declare class CommunityPoolSpendProposal extends JSONSerializable<CommunityPoolSpendProposal.Amino, CommunityPoolSpendProposal.Data, CommunityPoolSpendProposal.Proto> {
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
recipient: AccAddress;
|
|
14
|
+
amount: Coins;
|
|
15
|
+
/**
|
|
16
|
+
* @param title proposal's title
|
|
17
|
+
* @param description proposal's description
|
|
18
|
+
* @param recipient recipient address
|
|
19
|
+
* @param amount amount to give recipient
|
|
20
|
+
*/
|
|
21
|
+
constructor(title: string, description: string, recipient: AccAddress, amount: Coins.Input);
|
|
22
|
+
static fromAmino(data: CommunityPoolSpendProposal.Amino): CommunityPoolSpendProposal;
|
|
23
|
+
toAmino(): CommunityPoolSpendProposal.Amino;
|
|
24
|
+
static fromData(data: CommunityPoolSpendProposal.Data): CommunityPoolSpendProposal;
|
|
25
|
+
toData(): CommunityPoolSpendProposal.Data;
|
|
26
|
+
static fromProto(proto: CommunityPoolSpendProposal.Proto): CommunityPoolSpendProposal;
|
|
27
|
+
toProto(): CommunityPoolSpendProposal.Proto;
|
|
28
|
+
packAny(): Any;
|
|
29
|
+
static unpackAny(msgAny: Any): CommunityPoolSpendProposal;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace CommunityPoolSpendProposal {
|
|
32
|
+
interface Amino {
|
|
33
|
+
type: 'cosmos-sdk/CommunityPoolSpendProposal';
|
|
34
|
+
value: {
|
|
35
|
+
title: string;
|
|
36
|
+
description: string;
|
|
37
|
+
recipient: AccAddress;
|
|
38
|
+
amount: Coins.Amino;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
interface Data {
|
|
42
|
+
'@type': '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal';
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
recipient: AccAddress;
|
|
46
|
+
amount: Coins.Data;
|
|
47
|
+
}
|
|
48
|
+
type Proto = CommunityPoolSpendProposal_pb;
|
|
49
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CommunityPoolSpendProposal = void 0;
|
|
19
|
+
var json_1 = require("../../../util/json");
|
|
20
|
+
var Coins_1 = require("../../Coins");
|
|
21
|
+
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
22
|
+
var distribution_1 = require("@initia/initia.proto/cosmos/distribution/v1beta1/distribution");
|
|
23
|
+
/**
|
|
24
|
+
* Proposal that disburses funds from the Distribution module's community pool to the
|
|
25
|
+
* specified recipient if passed.
|
|
26
|
+
*/
|
|
27
|
+
var CommunityPoolSpendProposal = /** @class */ (function (_super) {
|
|
28
|
+
__extends(CommunityPoolSpendProposal, _super);
|
|
29
|
+
/**
|
|
30
|
+
* @param title proposal's title
|
|
31
|
+
* @param description proposal's description
|
|
32
|
+
* @param recipient recipient address
|
|
33
|
+
* @param amount amount to give recipient
|
|
34
|
+
*/
|
|
35
|
+
function CommunityPoolSpendProposal(title, description, recipient, amount) {
|
|
36
|
+
var _this = _super.call(this) || this;
|
|
37
|
+
_this.title = title;
|
|
38
|
+
_this.description = description;
|
|
39
|
+
_this.recipient = recipient;
|
|
40
|
+
_this.amount = new Coins_1.Coins(amount);
|
|
41
|
+
return _this;
|
|
42
|
+
}
|
|
43
|
+
CommunityPoolSpendProposal.fromAmino = function (data) {
|
|
44
|
+
var _a = data.value, title = _a.title, description = _a.description, recipient = _a.recipient, amount = _a.amount;
|
|
45
|
+
return new CommunityPoolSpendProposal(title, description, recipient, Coins_1.Coins.fromAmino(amount));
|
|
46
|
+
};
|
|
47
|
+
CommunityPoolSpendProposal.prototype.toAmino = function () {
|
|
48
|
+
var _a = this, title = _a.title, description = _a.description, recipient = _a.recipient, amount = _a.amount;
|
|
49
|
+
return {
|
|
50
|
+
type: 'cosmos-sdk/CommunityPoolSpendProposal',
|
|
51
|
+
value: {
|
|
52
|
+
title: title,
|
|
53
|
+
description: description,
|
|
54
|
+
recipient: recipient,
|
|
55
|
+
amount: amount.toAmino(),
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
CommunityPoolSpendProposal.fromData = function (data) {
|
|
60
|
+
var title = data.title, description = data.description, recipient = data.recipient, amount = data.amount;
|
|
61
|
+
return new CommunityPoolSpendProposal(title, description, recipient, Coins_1.Coins.fromData(amount));
|
|
62
|
+
};
|
|
63
|
+
CommunityPoolSpendProposal.prototype.toData = function () {
|
|
64
|
+
var _a = this, title = _a.title, description = _a.description, recipient = _a.recipient, amount = _a.amount;
|
|
65
|
+
return {
|
|
66
|
+
'@type': '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal',
|
|
67
|
+
title: title,
|
|
68
|
+
description: description,
|
|
69
|
+
recipient: recipient,
|
|
70
|
+
amount: amount.toData(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
CommunityPoolSpendProposal.fromProto = function (proto) {
|
|
74
|
+
return new CommunityPoolSpendProposal(proto.title, proto.description, proto.recipient, Coins_1.Coins.fromProto(proto.amount));
|
|
75
|
+
};
|
|
76
|
+
CommunityPoolSpendProposal.prototype.toProto = function () {
|
|
77
|
+
var _a = this, title = _a.title, description = _a.description, recipient = _a.recipient, amount = _a.amount;
|
|
78
|
+
return distribution_1.CommunityPoolSpendProposal.fromPartial({
|
|
79
|
+
amount: amount.toProto(),
|
|
80
|
+
description: description,
|
|
81
|
+
recipient: recipient,
|
|
82
|
+
title: title,
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
CommunityPoolSpendProposal.prototype.packAny = function () {
|
|
86
|
+
return any_1.Any.fromPartial({
|
|
87
|
+
typeUrl: '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal',
|
|
88
|
+
value: distribution_1.CommunityPoolSpendProposal.encode(this.toProto()).finish(),
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
CommunityPoolSpendProposal.unpackAny = function (msgAny) {
|
|
92
|
+
return CommunityPoolSpendProposal.fromProto(distribution_1.CommunityPoolSpendProposal.decode(msgAny.value));
|
|
93
|
+
};
|
|
94
|
+
return CommunityPoolSpendProposal;
|
|
95
|
+
}(json_1.JSONSerializable));
|
|
96
|
+
exports.CommunityPoolSpendProposal = CommunityPoolSpendProposal;
|
|
97
|
+
//# sourceMappingURL=CommunityPoolSpendProposal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommunityPoolSpendProposal.js","sourceRoot":"","sources":["../../../../src/core/distribution/proposals/CommunityPoolSpendProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,qCAAoC;AAEpC,gEAA+D;AAC/D,8FAA4I;AAE5I;;;GAGG;AACH;IAAgD,8CAI/C;IAEC;;;;;OAKG;IACH,oCACS,KAAa,EACb,WAAmB,EACnB,SAAqB,EAC5B,MAAmB;QAJrB,YAME,iBAAO,SAER;QAPQ,WAAK,GAAL,KAAK,CAAQ;QACb,iBAAW,GAAX,WAAW,CAAQ;QACnB,eAAS,GAAT,SAAS,CAAY;QAI5B,KAAI,CAAC,MAAM,GAAG,IAAI,aAAK,CAAC,MAAM,CAAC,CAAC;;IAClC,CAAC;IAEa,oCAAS,GAAvB,UACE,IAAsC;QAGpC,IAAA,KACE,IAAI,MAD0C,EAAvC,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,SAAS,eAAA,EAAE,MAAM,YAAE,CACzC;QACT,OAAO,IAAI,0BAA0B,CACnC,KAAK,EACL,WAAW,EACX,SAAS,EACT,aAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CACxB,CAAC;IACJ,CAAC;IAEM,4CAAO,GAAd;QACQ,IAAA,KAA4C,IAAI,EAA9C,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,SAAS,eAAA,EAAE,MAAM,YAAS,CAAC;QACvD,OAAO;YACL,IAAI,EAAE,uCAAuC;YAC7C,KAAK,EAAE;gBACL,KAAK,OAAA;gBACL,WAAW,aAAA;gBACX,SAAS,WAAA;gBACT,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE;aACzB;SACF,CAAC;IACJ,CAAC;IAEa,mCAAQ,GAAtB,UACE,IAAqC;QAE7B,IAAA,KAAK,GAAqC,IAAI,MAAzC,EAAE,WAAW,GAAwB,IAAI,YAA5B,EAAE,SAAS,GAAa,IAAI,UAAjB,EAAE,MAAM,GAAK,IAAI,OAAT,CAAU;QACvD,OAAO,IAAI,0BAA0B,CACnC,KAAK,EACL,WAAW,EACX,SAAS,EACT,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CACvB,CAAC;IACJ,CAAC;IAEM,2CAAM,GAAb;QACQ,IAAA,KAA4C,IAAI,EAA9C,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,SAAS,eAAA,EAAE,MAAM,YAAS,CAAC;QACvD,OAAO;YACL,OAAO,EAAE,yDAAyD;YAClE,KAAK,OAAA;YACL,WAAW,aAAA;YACX,SAAS,WAAA;YACT,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;SACxB,CAAC;IACJ,CAAC;IAEa,oCAAS,GAAvB,UACE,KAAuC;QAEvC,OAAO,IAAI,0BAA0B,CACnC,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,WAAW,EACjB,KAAK,CAAC,SAAS,EACf,aAAK,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAC9B,CAAC;IACJ,CAAC;IAEM,4CAAO,GAAd;QACQ,IAAA,KAA4C,IAAI,EAA9C,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,SAAS,eAAA,EAAE,MAAM,YAAS,CAAC;QACvD,OAAO,yCAA6B,CAAC,WAAW,CAAC;YAC/C,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE;YACxB,WAAW,aAAA;YACX,SAAS,WAAA;YACT,KAAK,OAAA;SACN,CAAC,CAAC;IACL,CAAC;IAEM,4CAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,yDAAyD;YAClE,KAAK,EAAE,yCAA6B,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACrE,CAAC,CAAC;IACL,CAAC;IAEa,oCAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,0BAA0B,CAAC,SAAS,CACzC,yCAA6B,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACnD,CAAC;IACJ,CAAC;IACH,iCAAC;AAAD,CAAC,AAzGD,CAAgD,uBAAgB,GAyG/D;AAzGY,gEAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CommunityPoolSpendProposal';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CommunityPoolSpendProposal"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/distribution/proposals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { BasicAllowance } from './BasicAllowance';
|
|
3
|
+
import { PeriodicAllowance } from './PeriodicAllowance';
|
|
4
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
5
|
+
import { AllowedMsgAllowance as AllowedMsgAllowance_pb } from '@initia/initia.proto/cosmos/feegrant/v1beta1/feegrant';
|
|
6
|
+
/**
|
|
7
|
+
* AllowedMsgAllowance creates allowance only for specified message types.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AllowedMsgAllowance extends JSONSerializable<AllowedMsgAllowance.Amino, AllowedMsgAllowance.Data, AllowedMsgAllowance.Proto> {
|
|
10
|
+
allowance: BasicAllowance | PeriodicAllowance;
|
|
11
|
+
allowed_messages: string[];
|
|
12
|
+
/**
|
|
13
|
+
* @param allowance any of basic and periodic fee allowance.
|
|
14
|
+
* @param allowed_messages the messages for which the grantee has the access.
|
|
15
|
+
*/
|
|
16
|
+
constructor(allowance: BasicAllowance | PeriodicAllowance, allowed_messages: string[]);
|
|
17
|
+
static fromAmino(data: AllowedMsgAllowance.Amino): AllowedMsgAllowance;
|
|
18
|
+
toAmino(): AllowedMsgAllowance.Amino;
|
|
19
|
+
static fromData(proto: AllowedMsgAllowance.Data): AllowedMsgAllowance;
|
|
20
|
+
toData(): AllowedMsgAllowance.Data;
|
|
21
|
+
static fromProto(proto: AllowedMsgAllowance.Proto): AllowedMsgAllowance;
|
|
22
|
+
toProto(): AllowedMsgAllowance.Proto;
|
|
23
|
+
packAny(): Any;
|
|
24
|
+
static unpackAny(msgAny: Any): AllowedMsgAllowance;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace AllowedMsgAllowance {
|
|
27
|
+
interface Amino {
|
|
28
|
+
type: 'cosmos-sdk/AllowedMsgAllowance';
|
|
29
|
+
value: {
|
|
30
|
+
allowance: BasicAllowance.Amino | PeriodicAllowance.Amino;
|
|
31
|
+
allowed_messages: string[];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
interface Data {
|
|
35
|
+
'@type': '/cosmos.feegrant.v1beta1.AllowedMsgAllowance';
|
|
36
|
+
allowance: BasicAllowance.Data | PeriodicAllowance.Data;
|
|
37
|
+
allowed_messages: string[];
|
|
38
|
+
}
|
|
39
|
+
type Proto = AllowedMsgAllowance_pb;
|
|
40
|
+
}
|