@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,71 @@
|
|
|
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.GenericAuthorization = void 0;
|
|
19
|
+
var json_1 = require("../../../util/json");
|
|
20
|
+
var authz_1 = require("@initia/initia.proto/cosmos/authz/v1beta1/authz");
|
|
21
|
+
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
22
|
+
var GenericAuthorization = /** @class */ (function (_super) {
|
|
23
|
+
__extends(GenericAuthorization, _super);
|
|
24
|
+
function GenericAuthorization(msg) {
|
|
25
|
+
var _this = _super.call(this) || this;
|
|
26
|
+
_this.msg = msg;
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
GenericAuthorization.fromAmino = function (data) {
|
|
30
|
+
return new GenericAuthorization(data.value.msg);
|
|
31
|
+
};
|
|
32
|
+
GenericAuthorization.prototype.toAmino = function () {
|
|
33
|
+
var msg = this.msg;
|
|
34
|
+
return {
|
|
35
|
+
type: 'cosmos-sdk/GenericAuthorization',
|
|
36
|
+
value: {
|
|
37
|
+
msg: msg,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
GenericAuthorization.fromData = function (data) {
|
|
42
|
+
return new GenericAuthorization(data.msg);
|
|
43
|
+
};
|
|
44
|
+
GenericAuthorization.prototype.toData = function () {
|
|
45
|
+
var msg = this.msg;
|
|
46
|
+
return {
|
|
47
|
+
'@type': '/cosmos.authz.v1beta1.GenericAuthorization',
|
|
48
|
+
msg: msg,
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
GenericAuthorization.fromProto = function (data) {
|
|
52
|
+
return new GenericAuthorization(data.msg);
|
|
53
|
+
};
|
|
54
|
+
GenericAuthorization.prototype.toProto = function () {
|
|
55
|
+
return authz_1.GenericAuthorization.fromPartial({
|
|
56
|
+
msg: this.msg,
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
GenericAuthorization.prototype.packAny = function () {
|
|
60
|
+
return any_1.Any.fromPartial({
|
|
61
|
+
typeUrl: '/cosmos.authz.v1beta1.GenericAuthorization',
|
|
62
|
+
value: authz_1.GenericAuthorization.encode(this.toProto()).finish(),
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
GenericAuthorization.unpackAny = function (msgAny) {
|
|
66
|
+
return GenericAuthorization.fromProto(authz_1.GenericAuthorization.decode(msgAny.value));
|
|
67
|
+
};
|
|
68
|
+
return GenericAuthorization;
|
|
69
|
+
}(json_1.JSONSerializable));
|
|
70
|
+
exports.GenericAuthorization = GenericAuthorization;
|
|
71
|
+
//# sourceMappingURL=GenericAuthorization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericAuthorization.js","sourceRoot":"","sources":["../../../../src/core/authz/authorizations/GenericAuthorization.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,yEAAkH;AAClH,gEAA+D;AAE/D;IAA0C,wCAIzC;IACC,8BAAmB,GAAW;QAA9B,YACE,iBAAO,SACR;QAFkB,SAAG,GAAH,GAAG,CAAQ;;IAE9B,CAAC;IAEa,8BAAS,GAAvB,UACE,IAAgC;QAEhC,OAAO,IAAI,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAEM,sCAAO,GAAd;QACU,IAAA,GAAG,GAAK,IAAI,IAAT,CAAU;QACrB,OAAO;YACL,IAAI,EAAE,iCAAiC;YACvC,KAAK,EAAE;gBACL,GAAG,KAAA;aACJ;SACF,CAAC;IACJ,CAAC;IAEa,6BAAQ,GAAtB,UACE,IAA+B;QAE/B,OAAO,IAAI,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;IAEM,qCAAM,GAAb;QACU,IAAA,GAAG,GAAK,IAAI,IAAT,CAAU;QACrB,OAAO;YACL,OAAO,EAAE,4CAA4C;YACrD,GAAG,KAAA;SACJ,CAAC;IACJ,CAAC;IAEa,8BAAS,GAAvB,UACE,IAAgC;QAEhC,OAAO,IAAI,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;IAEM,sCAAO,GAAd;QACE,OAAO,4BAAuB,CAAC,WAAW,CAAC;YACzC,GAAG,EAAE,IAAI,CAAC,GAAG;SACd,CAAC,CAAC;IACL,CAAC;IAEM,sCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,4CAA4C;YACrD,KAAK,EAAE,4BAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAC/D,CAAC,CAAC;IACL,CAAC;IAEa,8BAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,oBAAoB,CAAC,SAAS,CACnC,4BAAuB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAC7C,CAAC;IACJ,CAAC;IACH,2BAAC;AAAD,CAAC,AA/DD,CAA0C,uBAAgB,GA+DzD;AA/DY,oDAAoB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { Coins } from '../../Coins';
|
|
3
|
+
import { SendAuthorization as SendAuthorization_pb } from '@initia/initia.proto/cosmos/bank/v1beta1/authz';
|
|
4
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
5
|
+
export declare class SendAuthorization extends JSONSerializable<SendAuthorization.Amino, SendAuthorization.Data, SendAuthorization.Proto> {
|
|
6
|
+
spend_limit: Coins;
|
|
7
|
+
constructor(spend_limit: Coins.Input);
|
|
8
|
+
static fromAmino(data: SendAuthorization.Amino): SendAuthorization;
|
|
9
|
+
toAmino(): SendAuthorization.Amino;
|
|
10
|
+
static fromData(data: SendAuthorization.Data): SendAuthorization;
|
|
11
|
+
toData(): SendAuthorization.Data;
|
|
12
|
+
static fromProto(proto: SendAuthorization.Proto): SendAuthorization;
|
|
13
|
+
toProto(): SendAuthorization.Proto;
|
|
14
|
+
packAny(): Any;
|
|
15
|
+
static unpackAny(msgAny: Any): SendAuthorization;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace SendAuthorization {
|
|
18
|
+
interface Amino {
|
|
19
|
+
type: 'cosmos-sdk/SendAuthorization';
|
|
20
|
+
value: {
|
|
21
|
+
spend_limit: Coins.Amino;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
interface Data {
|
|
25
|
+
'@type': '/cosmos.bank.v1beta1.SendAuthorization';
|
|
26
|
+
spend_limit: Coins.Data;
|
|
27
|
+
}
|
|
28
|
+
type Proto = SendAuthorization_pb;
|
|
29
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.SendAuthorization = void 0;
|
|
19
|
+
var json_1 = require("../../../util/json");
|
|
20
|
+
var Coins_1 = require("../../Coins");
|
|
21
|
+
var authz_1 = require("@initia/initia.proto/cosmos/bank/v1beta1/authz");
|
|
22
|
+
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
23
|
+
var SendAuthorization = /** @class */ (function (_super) {
|
|
24
|
+
__extends(SendAuthorization, _super);
|
|
25
|
+
function SendAuthorization(spend_limit) {
|
|
26
|
+
var _this = _super.call(this) || this;
|
|
27
|
+
_this.spend_limit = new Coins_1.Coins(spend_limit);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
SendAuthorization.fromAmino = function (data) {
|
|
31
|
+
return new SendAuthorization(Coins_1.Coins.fromAmino(data.value.spend_limit));
|
|
32
|
+
};
|
|
33
|
+
SendAuthorization.prototype.toAmino = function () {
|
|
34
|
+
var spend_limit = this.spend_limit;
|
|
35
|
+
return {
|
|
36
|
+
type: 'cosmos-sdk/SendAuthorization',
|
|
37
|
+
value: {
|
|
38
|
+
spend_limit: spend_limit.toAmino(),
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
SendAuthorization.fromData = function (data) {
|
|
43
|
+
return new SendAuthorization(Coins_1.Coins.fromData(data.spend_limit));
|
|
44
|
+
};
|
|
45
|
+
SendAuthorization.prototype.toData = function () {
|
|
46
|
+
var spend_limit = this.spend_limit;
|
|
47
|
+
return {
|
|
48
|
+
'@type': '/cosmos.bank.v1beta1.SendAuthorization',
|
|
49
|
+
spend_limit: spend_limit.toAmino(),
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
SendAuthorization.fromProto = function (proto) {
|
|
53
|
+
return new SendAuthorization(Coins_1.Coins.fromProto(proto.spendLimit));
|
|
54
|
+
};
|
|
55
|
+
SendAuthorization.prototype.toProto = function () {
|
|
56
|
+
return authz_1.SendAuthorization.fromPartial({
|
|
57
|
+
spendLimit: this.spend_limit.toProto(),
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
SendAuthorization.prototype.packAny = function () {
|
|
61
|
+
return any_1.Any.fromPartial({
|
|
62
|
+
typeUrl: '/cosmos.bank.v1beta1.SendAuthorization',
|
|
63
|
+
value: authz_1.SendAuthorization.encode(this.toProto()).finish(),
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
SendAuthorization.unpackAny = function (msgAny) {
|
|
67
|
+
return SendAuthorization.fromProto(authz_1.SendAuthorization.decode(msgAny.value));
|
|
68
|
+
};
|
|
69
|
+
return SendAuthorization;
|
|
70
|
+
}(json_1.JSONSerializable));
|
|
71
|
+
exports.SendAuthorization = SendAuthorization;
|
|
72
|
+
//# sourceMappingURL=SendAuthorization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendAuthorization.js","sourceRoot":"","sources":["../../../../src/core/authz/authorizations/SendAuthorization.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,qCAAoC;AACpC,wEAA2G;AAC3G,gEAA+D;AAE/D;IAAuC,qCAItC;IAEC,2BAAY,WAAwB;QAApC,YACE,iBAAO,SAER;QADC,KAAI,CAAC,WAAW,GAAG,IAAI,aAAK,CAAC,WAAW,CAAC,CAAC;;IAC5C,CAAC;IAEa,2BAAS,GAAvB,UAAwB,IAA6B;QACnD,OAAO,IAAI,iBAAiB,CAAC,aAAK,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IACxE,CAAC;IAEM,mCAAO,GAAd;QACU,IAAA,WAAW,GAAK,IAAI,YAAT,CAAU;QAC7B,OAAO;YACL,IAAI,EAAE,8BAA8B;YACpC,KAAK,EAAE;gBACL,WAAW,EAAE,WAAW,CAAC,OAAO,EAAE;aACnC;SACF,CAAC;IACJ,CAAC;IAEa,0BAAQ,GAAtB,UAAuB,IAA4B;QACjD,OAAO,IAAI,iBAAiB,CAAC,aAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IACjE,CAAC;IAEM,kCAAM,GAAb;QACU,IAAA,WAAW,GAAK,IAAI,YAAT,CAAU;QAC7B,OAAO;YACL,OAAO,EAAE,wCAAwC;YACjD,WAAW,EAAE,WAAW,CAAC,OAAO,EAAE;SACnC,CAAC;IACJ,CAAC;IAEa,2BAAS,GAAvB,UAAwB,KAA8B;QACpD,OAAO,IAAI,iBAAiB,CAAC,aAAK,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;IAClE,CAAC;IAEM,mCAAO,GAAd;QACE,OAAO,yBAAoB,CAAC,WAAW,CAAC;YACtC,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAEM,mCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,wCAAwC;YACjD,KAAK,EAAE,yBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAC5D,CAAC,CAAC;IACL,CAAC;IAEa,2BAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,iBAAiB,CAAC,SAAS,CAChC,yBAAoB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAC1C,CAAC;IACJ,CAAC;IACH,wBAAC;AAAD,CAAC,AA3DD,CAAuC,uBAAgB,GA2DtD;AA3DY,8CAAiB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { Coin } from '../../Coin';
|
|
3
|
+
import { AccAddress } from '../../bech32';
|
|
4
|
+
import { StakeAuthorization as StakeAuthorization_pb, AuthorizationType, StakeAuthorization_Validators as StakeAuthorizationValidators_pb } from '@initia/initia.proto/cosmos/staking/v1beta1/authz';
|
|
5
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
6
|
+
export declare class StakeAuthorization extends JSONSerializable<any, StakeAuthorization.Data, StakeAuthorization.Proto> {
|
|
7
|
+
authorization_type: AuthorizationType;
|
|
8
|
+
max_tokens?: Coin | undefined;
|
|
9
|
+
allow_list?: StakeAuthorizationValidators | undefined;
|
|
10
|
+
deny_list?: StakeAuthorizationValidators | undefined;
|
|
11
|
+
constructor(authorization_type: AuthorizationType, max_tokens?: Coin | undefined, allow_list?: StakeAuthorizationValidators | undefined, deny_list?: StakeAuthorizationValidators | undefined);
|
|
12
|
+
static fromAmino(_: any): StakeAuthorizationValidators;
|
|
13
|
+
toAmino(): any;
|
|
14
|
+
static fromData(data: StakeAuthorization.Data): StakeAuthorization;
|
|
15
|
+
toData(): StakeAuthorization.Data;
|
|
16
|
+
static fromProto(proto: StakeAuthorization.Proto): StakeAuthorization;
|
|
17
|
+
toProto(): StakeAuthorization.Proto;
|
|
18
|
+
packAny(): Any;
|
|
19
|
+
static unpackAny(msgAny: Any): StakeAuthorization;
|
|
20
|
+
}
|
|
21
|
+
export declare class StakeAuthorizationValidators extends JSONSerializable<any, StakeAuthorizationValidators.Data, StakeAuthorizationValidators.Proto> {
|
|
22
|
+
address: AccAddress[];
|
|
23
|
+
constructor(address: AccAddress[]);
|
|
24
|
+
static fromAmino(_: any): StakeAuthorizationValidators;
|
|
25
|
+
toAmino(): any;
|
|
26
|
+
static fromData(data: StakeAuthorizationValidators.Data): StakeAuthorizationValidators;
|
|
27
|
+
toData(): StakeAuthorizationValidators.Data;
|
|
28
|
+
static fromProto(proto: StakeAuthorizationValidators.Proto): StakeAuthorizationValidators;
|
|
29
|
+
toProto(): StakeAuthorizationValidators.Proto;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace StakeAuthorizationValidators {
|
|
32
|
+
interface Data {
|
|
33
|
+
address: AccAddress[];
|
|
34
|
+
}
|
|
35
|
+
type Proto = StakeAuthorizationValidators_pb;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace StakeAuthorization {
|
|
38
|
+
type Type = AuthorizationType;
|
|
39
|
+
const Type: typeof AuthorizationType;
|
|
40
|
+
interface Data {
|
|
41
|
+
'@type': '/cosmos.staking.v1beta1.StakeAuthorization';
|
|
42
|
+
max_tokens?: Coin.Data;
|
|
43
|
+
allow_list?: StakeAuthorizationValidators.Data;
|
|
44
|
+
deny_list?: StakeAuthorizationValidators.Data;
|
|
45
|
+
authorization_type: string;
|
|
46
|
+
}
|
|
47
|
+
type Proto = StakeAuthorization_pb;
|
|
48
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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.StakeAuthorizationValidators = exports.StakeAuthorization = void 0;
|
|
19
|
+
var json_1 = require("../../../util/json");
|
|
20
|
+
var Coin_1 = require("../../Coin");
|
|
21
|
+
var authz_1 = require("@initia/initia.proto/cosmos/staking/v1beta1/authz");
|
|
22
|
+
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
23
|
+
var StakeAuthorization = /** @class */ (function (_super) {
|
|
24
|
+
__extends(StakeAuthorization, _super);
|
|
25
|
+
function StakeAuthorization(authorization_type, max_tokens, allow_list, deny_list) {
|
|
26
|
+
var _this = _super.call(this) || this;
|
|
27
|
+
_this.authorization_type = authorization_type;
|
|
28
|
+
_this.max_tokens = max_tokens;
|
|
29
|
+
_this.allow_list = allow_list;
|
|
30
|
+
_this.deny_list = deny_list;
|
|
31
|
+
return _this;
|
|
32
|
+
}
|
|
33
|
+
StakeAuthorization.fromAmino = function (_) {
|
|
34
|
+
_;
|
|
35
|
+
throw new Error('Amino not supported');
|
|
36
|
+
};
|
|
37
|
+
StakeAuthorization.prototype.toAmino = function () {
|
|
38
|
+
throw new Error('Amino not supported');
|
|
39
|
+
};
|
|
40
|
+
StakeAuthorization.fromData = function (data) {
|
|
41
|
+
return new StakeAuthorization((0, authz_1.authorizationTypeFromJSON)(data.authorization_type), data.max_tokens ? Coin_1.Coin.fromProto(data.max_tokens) : undefined, data.allow_list
|
|
42
|
+
? StakeAuthorizationValidators.fromData(data.allow_list)
|
|
43
|
+
: undefined, data.deny_list
|
|
44
|
+
? StakeAuthorizationValidators.fromData(data.deny_list)
|
|
45
|
+
: undefined);
|
|
46
|
+
};
|
|
47
|
+
StakeAuthorization.prototype.toData = function () {
|
|
48
|
+
var _a = this, max_tokens = _a.max_tokens, allow_list = _a.allow_list, deny_list = _a.deny_list, authorization_type = _a.authorization_type;
|
|
49
|
+
return {
|
|
50
|
+
'@type': '/cosmos.staking.v1beta1.StakeAuthorization',
|
|
51
|
+
authorization_type: (0, authz_1.authorizationTypeToJSON)(authorization_type),
|
|
52
|
+
max_tokens: max_tokens === null || max_tokens === void 0 ? void 0 : max_tokens.toData(),
|
|
53
|
+
allow_list: allow_list === null || allow_list === void 0 ? void 0 : allow_list.toData(),
|
|
54
|
+
deny_list: deny_list === null || deny_list === void 0 ? void 0 : deny_list.toData(),
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
StakeAuthorization.fromProto = function (proto) {
|
|
58
|
+
return new StakeAuthorization(proto.authorizationType, proto.maxTokens ? Coin_1.Coin.fromProto(proto.maxTokens) : undefined, proto.allowList
|
|
59
|
+
? StakeAuthorizationValidators.fromProto(proto.allowList)
|
|
60
|
+
: undefined, proto.denyList
|
|
61
|
+
? StakeAuthorizationValidators.fromProto(proto.denyList)
|
|
62
|
+
: undefined);
|
|
63
|
+
};
|
|
64
|
+
StakeAuthorization.prototype.toProto = function () {
|
|
65
|
+
var _a = this, max_tokens = _a.max_tokens, allow_list = _a.allow_list, deny_list = _a.deny_list, authorization_type = _a.authorization_type;
|
|
66
|
+
return authz_1.StakeAuthorization.fromPartial({
|
|
67
|
+
allowList: allow_list === null || allow_list === void 0 ? void 0 : allow_list.toProto(),
|
|
68
|
+
authorizationType: authorization_type,
|
|
69
|
+
denyList: deny_list === null || deny_list === void 0 ? void 0 : deny_list.toProto(),
|
|
70
|
+
maxTokens: max_tokens === null || max_tokens === void 0 ? void 0 : max_tokens.toProto(),
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
StakeAuthorization.prototype.packAny = function () {
|
|
74
|
+
return any_1.Any.fromPartial({
|
|
75
|
+
typeUrl: '/cosmos.staking.v1beta1.StakeAuthorization',
|
|
76
|
+
value: authz_1.StakeAuthorization.encode(this.toProto()).finish(),
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
StakeAuthorization.unpackAny = function (msgAny) {
|
|
80
|
+
return StakeAuthorization.fromProto(authz_1.StakeAuthorization.decode(msgAny.value));
|
|
81
|
+
};
|
|
82
|
+
return StakeAuthorization;
|
|
83
|
+
}(json_1.JSONSerializable));
|
|
84
|
+
exports.StakeAuthorization = StakeAuthorization;
|
|
85
|
+
var StakeAuthorizationValidators = /** @class */ (function (_super) {
|
|
86
|
+
__extends(StakeAuthorizationValidators, _super);
|
|
87
|
+
function StakeAuthorizationValidators(address) {
|
|
88
|
+
var _this = _super.call(this) || this;
|
|
89
|
+
_this.address = address;
|
|
90
|
+
return _this;
|
|
91
|
+
}
|
|
92
|
+
StakeAuthorizationValidators.fromAmino = function (_) {
|
|
93
|
+
_;
|
|
94
|
+
throw new Error('Amino not supported');
|
|
95
|
+
};
|
|
96
|
+
StakeAuthorizationValidators.prototype.toAmino = function () {
|
|
97
|
+
throw new Error('Amino not supported');
|
|
98
|
+
};
|
|
99
|
+
StakeAuthorizationValidators.fromData = function (data) {
|
|
100
|
+
return new StakeAuthorizationValidators(data.address);
|
|
101
|
+
};
|
|
102
|
+
StakeAuthorizationValidators.prototype.toData = function () {
|
|
103
|
+
return {
|
|
104
|
+
address: this.address,
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
StakeAuthorizationValidators.fromProto = function (proto) {
|
|
108
|
+
return new StakeAuthorizationValidators(proto.address);
|
|
109
|
+
};
|
|
110
|
+
StakeAuthorizationValidators.prototype.toProto = function () {
|
|
111
|
+
return authz_1.StakeAuthorization_Validators.fromPartial({
|
|
112
|
+
address: this.address,
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
return StakeAuthorizationValidators;
|
|
116
|
+
}(json_1.JSONSerializable));
|
|
117
|
+
exports.StakeAuthorizationValidators = StakeAuthorizationValidators;
|
|
118
|
+
(function (StakeAuthorization) {
|
|
119
|
+
StakeAuthorization.Type = authz_1.AuthorizationType;
|
|
120
|
+
})(StakeAuthorization = exports.StakeAuthorization || (exports.StakeAuthorization = {}));
|
|
121
|
+
exports.StakeAuthorization = StakeAuthorization;
|
|
122
|
+
//# sourceMappingURL=StakeAuthorization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StakeAuthorization.js","sourceRoot":"","sources":["../../../../src/core/authz/authorizations/StakeAuthorization.ts"],"names":[],"mappings":"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"}
|
|
@@ -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("./StakeAuthorization"), exports);
|
|
18
|
+
__exportStar(require("./SendAuthorization"), exports);
|
|
19
|
+
__exportStar(require("./GenericAuthorization"), exports);
|
|
20
|
+
__exportStar(require("./Authorization"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/authz/authorizations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,sDAAoC;AACpC,yDAAuC;AACvC,kDAAgC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../bech32';
|
|
3
|
+
import { Msg } from '../../Msg';
|
|
4
|
+
import { MsgExec as MsgExec_pb } from '@initia/initia.proto/cosmos/authz/v1beta1/tx';
|
|
5
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
6
|
+
export declare class MsgExecAuthorized extends JSONSerializable<MsgExecAuthorized.Amino, MsgExecAuthorized.Data, MsgExecAuthorized.Proto> {
|
|
7
|
+
grantee: AccAddress;
|
|
8
|
+
msgs: Msg[];
|
|
9
|
+
/**
|
|
10
|
+
* @param grantee authorization grantee
|
|
11
|
+
* @param msgs list of messages to execute
|
|
12
|
+
*/
|
|
13
|
+
constructor(grantee: AccAddress, msgs: Msg[]);
|
|
14
|
+
static fromAmino(data: MsgExecAuthorized.Amino): MsgExecAuthorized;
|
|
15
|
+
toAmino(): MsgExecAuthorized.Amino;
|
|
16
|
+
static fromData(proto: MsgExecAuthorized.Data): MsgExecAuthorized;
|
|
17
|
+
toData(): MsgExecAuthorized.Data;
|
|
18
|
+
static fromProto(proto: MsgExecAuthorized.Proto): MsgExecAuthorized;
|
|
19
|
+
toProto(): MsgExecAuthorized.Proto;
|
|
20
|
+
packAny(): Any;
|
|
21
|
+
static unpackAny(msgAny: Any): MsgExecAuthorized;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace MsgExecAuthorized {
|
|
24
|
+
interface Amino {
|
|
25
|
+
type: 'cosmos-sdk/MsgExec';
|
|
26
|
+
value: {
|
|
27
|
+
grantee: AccAddress;
|
|
28
|
+
msgs: Msg.Amino[];
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
interface Data {
|
|
32
|
+
'@type': '/cosmos.authz.v1beta1.MsgExec';
|
|
33
|
+
grantee: AccAddress;
|
|
34
|
+
msgs: Msg.Data[];
|
|
35
|
+
}
|
|
36
|
+
type Proto = MsgExec_pb;
|
|
37
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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.MsgExecAuthorized = void 0;
|
|
19
|
+
var json_1 = require("../../../util/json");
|
|
20
|
+
var Msg_1 = require("../../Msg");
|
|
21
|
+
var tx_1 = require("@initia/initia.proto/cosmos/authz/v1beta1/tx");
|
|
22
|
+
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
23
|
+
var MsgExecAuthorized = /** @class */ (function (_super) {
|
|
24
|
+
__extends(MsgExecAuthorized, _super);
|
|
25
|
+
/**
|
|
26
|
+
* @param grantee authorization grantee
|
|
27
|
+
* @param msgs list of messages to execute
|
|
28
|
+
*/
|
|
29
|
+
function MsgExecAuthorized(grantee, msgs) {
|
|
30
|
+
var _this = _super.call(this) || this;
|
|
31
|
+
_this.grantee = grantee;
|
|
32
|
+
_this.msgs = msgs;
|
|
33
|
+
return _this;
|
|
34
|
+
}
|
|
35
|
+
MsgExecAuthorized.fromAmino = function (data) {
|
|
36
|
+
var _a = data.value, grantee = _a.grantee, msgs = _a.msgs;
|
|
37
|
+
return new MsgExecAuthorized(grantee, msgs.map(function (x) { return Msg_1.Msg.fromAmino(x); }));
|
|
38
|
+
};
|
|
39
|
+
MsgExecAuthorized.prototype.toAmino = function () {
|
|
40
|
+
var _a = this, grantee = _a.grantee, msgs = _a.msgs;
|
|
41
|
+
return {
|
|
42
|
+
type: 'cosmos-sdk/MsgExec',
|
|
43
|
+
value: {
|
|
44
|
+
grantee: grantee,
|
|
45
|
+
msgs: msgs.map(function (msg) {
|
|
46
|
+
return msg.toAmino();
|
|
47
|
+
}),
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
MsgExecAuthorized.fromData = function (proto) {
|
|
52
|
+
var grantee = proto.grantee, msgs = proto.msgs;
|
|
53
|
+
return new MsgExecAuthorized(grantee, msgs.map(function (x) { return Msg_1.Msg.fromData(x); }));
|
|
54
|
+
};
|
|
55
|
+
MsgExecAuthorized.prototype.toData = function () {
|
|
56
|
+
var _a = this, grantee = _a.grantee, msgs = _a.msgs;
|
|
57
|
+
return {
|
|
58
|
+
'@type': '/cosmos.authz.v1beta1.MsgExec',
|
|
59
|
+
grantee: grantee,
|
|
60
|
+
msgs: msgs.map(function (msg) { return msg.toData(); }),
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
MsgExecAuthorized.fromProto = function (proto) {
|
|
64
|
+
return new MsgExecAuthorized(proto.grantee, proto.msgs.map(function (x) { return Msg_1.Msg.fromProto(x); }));
|
|
65
|
+
};
|
|
66
|
+
MsgExecAuthorized.prototype.toProto = function () {
|
|
67
|
+
var _a = this, grantee = _a.grantee, msgs = _a.msgs;
|
|
68
|
+
return tx_1.MsgExec.fromPartial({
|
|
69
|
+
grantee: grantee,
|
|
70
|
+
msgs: msgs.map(function (m) { return m.packAny(); }),
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
MsgExecAuthorized.prototype.packAny = function () {
|
|
74
|
+
return any_1.Any.fromPartial({
|
|
75
|
+
typeUrl: '/cosmos.authz.v1beta1.MsgExec',
|
|
76
|
+
value: tx_1.MsgExec.encode(this.toProto()).finish(),
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
MsgExecAuthorized.unpackAny = function (msgAny) {
|
|
80
|
+
return MsgExecAuthorized.fromProto(tx_1.MsgExec.decode(msgAny.value));
|
|
81
|
+
};
|
|
82
|
+
return MsgExecAuthorized;
|
|
83
|
+
}(json_1.JSONSerializable));
|
|
84
|
+
exports.MsgExecAuthorized = MsgExecAuthorized;
|
|
85
|
+
//# sourceMappingURL=MsgExecAuthorized.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MsgExecAuthorized.js","sourceRoot":"","sources":["../../../../src/core/authz/msgs/MsgExecAuthorized.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AAEtD,iCAAgC;AAChC,mEAAqF;AACrF,gEAA+D;AAE/D;IAAuC,qCAItC;IACC;;;OAGG;IACH,2BAAmB,OAAmB,EAAS,IAAW;QAA1D,YACE,iBAAO,SACR;QAFkB,aAAO,GAAP,OAAO,CAAY;QAAS,UAAI,GAAJ,IAAI,CAAO;;IAE1D,CAAC;IAEa,2BAAS,GAAvB,UAAwB,IAA6B;QAEjD,IAAA,KACE,IAAI,MADkB,EAAf,OAAO,aAAA,EAAE,IAAI,UAAE,CACjB;QACT,OAAO,IAAI,iBAAiB,CAC1B,OAAO,EACP,IAAI,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,SAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAhB,CAAgB,CAAC,CAChC,CAAC;IACJ,CAAC;IAEM,mCAAO,GAAd;QACQ,IAAA,KAAoB,IAAI,EAAtB,OAAO,aAAA,EAAE,IAAI,UAAS,CAAC;QAC/B,OAAO;YACL,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE;gBACL,OAAO,SAAA;gBACP,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,UAAA,GAAG;oBAChB,OAAO,GAAG,CAAC,OAAO,EAAE,CAAC;gBACvB,CAAC,CAAC;aACH;SACF,CAAC;IACJ,CAAC;IAEa,0BAAQ,GAAtB,UAAuB,KAA6B;QAC1C,IAAA,OAAO,GAAW,KAAK,QAAhB,EAAE,IAAI,GAAK,KAAK,KAAV,CAAW;QAChC,OAAO,IAAI,iBAAiB,CAC1B,OAAO,EACP,IAAI,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,SAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAf,CAAe,CAAC,CAC/B,CAAC;IACJ,CAAC;IAEM,kCAAM,GAAb;QACQ,IAAA,KAAoB,IAAI,EAAtB,OAAO,aAAA,EAAE,IAAI,UAAS,CAAC;QAC/B,OAAO;YACL,OAAO,EAAE,+BAA+B;YACxC,OAAO,SAAA;YACP,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,MAAM,EAAE,EAAZ,CAAY,CAAC;SACpC,CAAC;IACJ,CAAC;IAEa,2BAAS,GAAvB,UAAwB,KAA8B;QACpD,OAAO,IAAI,iBAAiB,CAC1B,KAAK,CAAC,OAAO,EACb,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,SAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAhB,CAAgB,CAAC,CACtC,CAAC;IACJ,CAAC;IAEM,mCAAO,GAAd;QACQ,IAAA,KAAoB,IAAI,EAAtB,OAAO,aAAA,EAAE,IAAI,UAAS,CAAC;QAC/B,OAAO,YAAU,CAAC,WAAW,CAAC;YAC5B,OAAO,SAAA;YACP,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,OAAO,EAAE,EAAX,CAAW,CAAC;SACjC,CAAC,CAAC;IACL,CAAC;IAEM,mCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,+BAA+B;YACxC,KAAK,EAAE,YAAU,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAClD,CAAC,CAAC;IACL,CAAC;IAEa,2BAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,iBAAiB,CAAC,SAAS,CAAC,YAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,CAAC;IACH,wBAAC;AAAD,CAAC,AA9ED,CAAuC,uBAAgB,GA8EtD;AA9EY,8CAAiB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../bech32';
|
|
3
|
+
import { AuthorizationGrant } from '../authorizations';
|
|
4
|
+
import { MsgGrant as MsgGrant_pb } from '@initia/initia.proto/cosmos/authz/v1beta1/tx';
|
|
5
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
6
|
+
export declare class MsgGrantAuthorization extends JSONSerializable<MsgGrantAuthorization.Amino, MsgGrantAuthorization.Data, MsgGrantAuthorization.Proto> {
|
|
7
|
+
granter: AccAddress;
|
|
8
|
+
grantee: AccAddress;
|
|
9
|
+
grant: AuthorizationGrant;
|
|
10
|
+
/**
|
|
11
|
+
* @param depositor depositor's account address
|
|
12
|
+
* @param amount coins to fund the community pool
|
|
13
|
+
*/
|
|
14
|
+
constructor(granter: AccAddress, grantee: AccAddress, grant: AuthorizationGrant);
|
|
15
|
+
static fromAmino(data: MsgGrantAuthorization.Amino): MsgGrantAuthorization;
|
|
16
|
+
toAmino(): MsgGrantAuthorization.Amino;
|
|
17
|
+
static fromData(data: MsgGrantAuthorization.Data): MsgGrantAuthorization;
|
|
18
|
+
toData(): MsgGrantAuthorization.Data;
|
|
19
|
+
static fromProto(data: MsgGrantAuthorization.Proto): MsgGrantAuthorization;
|
|
20
|
+
toProto(): MsgGrantAuthorization.Proto;
|
|
21
|
+
packAny(): Any;
|
|
22
|
+
static unpackAny(msgAny: Any): MsgGrantAuthorization;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace MsgGrantAuthorization {
|
|
25
|
+
interface Amino {
|
|
26
|
+
type: 'cosmos-sdk/MsgGrant';
|
|
27
|
+
value: {
|
|
28
|
+
granter: AccAddress;
|
|
29
|
+
grantee: AccAddress;
|
|
30
|
+
grant: AuthorizationGrant.Amino;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
interface Data {
|
|
34
|
+
'@type': '/cosmos.authz.v1beta1.MsgGrant';
|
|
35
|
+
granter: AccAddress;
|
|
36
|
+
grantee: AccAddress;
|
|
37
|
+
grant: AuthorizationGrant.Data;
|
|
38
|
+
}
|
|
39
|
+
type Proto = MsgGrant_pb;
|
|
40
|
+
}
|
|
@@ -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.MsgGrantAuthorization = void 0;
|
|
19
|
+
var json_1 = require("../../../util/json");
|
|
20
|
+
var authorizations_1 = require("../authorizations");
|
|
21
|
+
var tx_1 = require("@initia/initia.proto/cosmos/authz/v1beta1/tx");
|
|
22
|
+
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
23
|
+
var MsgGrantAuthorization = /** @class */ (function (_super) {
|
|
24
|
+
__extends(MsgGrantAuthorization, _super);
|
|
25
|
+
/**
|
|
26
|
+
* @param depositor depositor's account address
|
|
27
|
+
* @param amount coins to fund the community pool
|
|
28
|
+
*/
|
|
29
|
+
function MsgGrantAuthorization(granter, grantee, grant) {
|
|
30
|
+
var _this = _super.call(this) || this;
|
|
31
|
+
_this.granter = granter;
|
|
32
|
+
_this.grantee = grantee;
|
|
33
|
+
_this.grant = grant;
|
|
34
|
+
return _this;
|
|
35
|
+
}
|
|
36
|
+
MsgGrantAuthorization.fromAmino = function (data) {
|
|
37
|
+
var _a = data.value, granter = _a.granter, grantee = _a.grantee, grant = _a.grant;
|
|
38
|
+
return new MsgGrantAuthorization(granter, grantee, authorizations_1.AuthorizationGrant.fromAmino(grant));
|
|
39
|
+
};
|
|
40
|
+
MsgGrantAuthorization.prototype.toAmino = function () {
|
|
41
|
+
var _a = this, granter = _a.granter, grantee = _a.grantee, grant = _a.grant;
|
|
42
|
+
return {
|
|
43
|
+
type: 'cosmos-sdk/MsgGrant',
|
|
44
|
+
value: {
|
|
45
|
+
granter: granter,
|
|
46
|
+
grantee: grantee,
|
|
47
|
+
grant: grant.toAmino(),
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
MsgGrantAuthorization.fromData = function (data) {
|
|
52
|
+
var granter = data.granter, grantee = data.grantee, grant = data.grant;
|
|
53
|
+
return new MsgGrantAuthorization(granter, grantee, authorizations_1.AuthorizationGrant.fromData(grant));
|
|
54
|
+
};
|
|
55
|
+
MsgGrantAuthorization.prototype.toData = function () {
|
|
56
|
+
var _a = this, granter = _a.granter, grantee = _a.grantee, grant = _a.grant;
|
|
57
|
+
return {
|
|
58
|
+
'@type': '/cosmos.authz.v1beta1.MsgGrant',
|
|
59
|
+
granter: granter,
|
|
60
|
+
grantee: grantee,
|
|
61
|
+
grant: grant.toData(),
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
MsgGrantAuthorization.fromProto = function (data) {
|
|
65
|
+
return new MsgGrantAuthorization(data.granter, data.grantee, authorizations_1.AuthorizationGrant.fromProto(data.grant));
|
|
66
|
+
};
|
|
67
|
+
MsgGrantAuthorization.prototype.toProto = function () {
|
|
68
|
+
var _a = this, grant = _a.grant, granter = _a.granter, grantee = _a.grantee;
|
|
69
|
+
return tx_1.MsgGrant.fromPartial({
|
|
70
|
+
grant: grant.toProto(),
|
|
71
|
+
grantee: grantee,
|
|
72
|
+
granter: granter,
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
MsgGrantAuthorization.prototype.packAny = function () {
|
|
76
|
+
return any_1.Any.fromPartial({
|
|
77
|
+
typeUrl: '/cosmos.authz.v1beta1.MsgGrant',
|
|
78
|
+
value: tx_1.MsgGrant.encode(this.toProto()).finish(),
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
MsgGrantAuthorization.unpackAny = function (msgAny) {
|
|
82
|
+
return MsgGrantAuthorization.fromProto(tx_1.MsgGrant.decode(msgAny.value));
|
|
83
|
+
};
|
|
84
|
+
return MsgGrantAuthorization;
|
|
85
|
+
}(json_1.JSONSerializable));
|
|
86
|
+
exports.MsgGrantAuthorization = MsgGrantAuthorization;
|
|
87
|
+
//# sourceMappingURL=MsgGrantAuthorization.js.map
|