@iconlake/client 0.0.2 → 0.1.0
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/client.ts +13 -12
- package/cosmos.auth.v1beta1/index.ts +0 -0
- package/cosmos.auth.v1beta1/module.ts +2 -0
- package/cosmos.auth.v1beta1/registry.ts +0 -0
- package/cosmos.auth.v1beta1/rest.ts +113 -3
- package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.auth.v1beta1/types.ts +2 -0
- package/cosmos.authz.v1beta1/index.ts +0 -0
- package/cosmos.authz.v1beta1/module.ts +24 -24
- package/cosmos.authz.v1beta1/registry.ts +2 -2
- package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.authz.v1beta1/types.ts +0 -0
- package/cosmos.bank.v1beta1/index.ts +0 -0
- package/cosmos.bank.v1beta1/module.ts +0 -0
- package/cosmos.bank.v1beta1/registry.ts +0 -0
- package/cosmos.bank.v1beta1/rest.ts +99 -6
- package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.bank.v1beta1/types.ts +0 -0
- package/cosmos.base.node.v1beta1/index.ts +0 -0
- package/cosmos.base.node.v1beta1/module.ts +0 -0
- package/cosmos.base.node.v1beta1/registry.ts +0 -0
- package/cosmos.base.node.v1beta1/types.ts +0 -0
- package/cosmos.base.tendermint.v1beta1/index.ts +0 -0
- package/cosmos.base.tendermint.v1beta1/module.ts +0 -0
- package/cosmos.base.tendermint.v1beta1/registry.ts +0 -0
- package/cosmos.base.tendermint.v1beta1/rest.ts +21 -30
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
- package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.ts +1 -1
- package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.ts +1 -1
- package/cosmos.base.tendermint.v1beta1/types.ts +0 -0
- package/cosmos.consensus.v1/index.ts +6 -0
- package/cosmos.consensus.v1/module.ts +129 -0
- package/cosmos.consensus.v1/registry.ts +9 -0
- package/cosmos.consensus.v1/rest.ts +268 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
- package/cosmos.consensus.v1/types.ts +5 -0
- package/cosmos.crisis.v1beta1/index.ts +0 -0
- package/cosmos.crisis.v1beta1/module.ts +34 -1
- package/cosmos.crisis.v1beta1/registry.ts +2 -0
- package/cosmos.crisis.v1beta1/rest.ts +19 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
- package/cosmos.crisis.v1beta1/types.ts +0 -0
- package/cosmos.distribution.v1beta1/index.ts +0 -0
- package/cosmos.distribution.v1beta1/module.ts +79 -13
- package/cosmos.distribution.v1beta1/registry.ts +6 -2
- package/cosmos.distribution.v1beta1/rest.ts +66 -7
- package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
- package/cosmos.distribution.v1beta1/types.ts +0 -0
- package/cosmos.evidence.v1beta1/index.ts +0 -0
- package/cosmos.evidence.v1beta1/module.ts +0 -0
- package/cosmos.evidence.v1beta1/registry.ts +0 -0
- package/cosmos.evidence.v1beta1/rest.ts +4 -3
- package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
- package/cosmos.evidence.v1beta1/types.ts +0 -0
- package/cosmos.feegrant.v1beta1/index.ts +0 -0
- package/cosmos.feegrant.v1beta1/module.ts +24 -24
- package/cosmos.feegrant.v1beta1/registry.ts +2 -2
- package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.feegrant.v1beta1/types.ts +0 -0
- package/cosmos.gov.v1/index.ts +0 -0
- package/cosmos.gov.v1/module.ts +67 -32
- package/cosmos.gov.v1/registry.ts +4 -2
- package/cosmos.gov.v1/rest.ts +155 -41
- package/cosmos.gov.v1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
- package/cosmos.gov.v1/types.ts +2 -0
- package/cosmos.gov.v1beta1/index.ts +0 -0
- package/cosmos.gov.v1beta1/module.ts +29 -29
- package/cosmos.gov.v1beta1/registry.ts +2 -2
- package/cosmos.gov.v1beta1/rest.ts +65 -96
- package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
- package/cosmos.gov.v1beta1/types.ts +0 -0
- package/cosmos.group.v1/index.ts +0 -0
- package/cosmos.group.v1/module.ts +160 -158
- package/cosmos.group.v1/registry.ts +14 -14
- package/cosmos.group.v1/rest.ts +68 -9
- package/cosmos.group.v1/types/amino/amino.ts +2 -0
- package/cosmos.group.v1/types/cosmos/group/v1/events.ts +89 -1
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +155 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
- package/cosmos.group.v1/types.ts +2 -0
- package/cosmos.mint.v1beta1/index.ts +0 -0
- package/cosmos.mint.v1beta1/module.ts +0 -0
- package/cosmos.mint.v1beta1/registry.ts +0 -0
- package/cosmos.mint.v1beta1/rest.ts +9 -1
- package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.mint.v1beta1/types.ts +0 -0
- package/cosmos.nft.v1beta1/index.ts +0 -0
- package/cosmos.nft.v1beta1/module.ts +0 -0
- package/cosmos.nft.v1beta1/registry.ts +0 -0
- package/cosmos.nft.v1beta1/rest.ts +18 -22
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.nft.v1beta1/types.ts +0 -0
- package/cosmos.params.v1beta1/index.ts +0 -0
- package/cosmos.params.v1beta1/module.ts +0 -0
- package/cosmos.params.v1beta1/registry.ts +0 -0
- package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.params.v1beta1/types.ts +0 -0
- package/cosmos.slashing.v1beta1/index.ts +0 -0
- package/cosmos.slashing.v1beta1/module.ts +0 -0
- package/cosmos.slashing.v1beta1/registry.ts +0 -0
- package/cosmos.slashing.v1beta1/rest.ts +8 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
- package/cosmos.slashing.v1beta1/types.ts +0 -0
- package/cosmos.staking.v1beta1/index.ts +0 -0
- package/cosmos.staking.v1beta1/module.ts +66 -64
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.ts +51 -10
- package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
- package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.ts +1 -1
- package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/types.ts +1 -1
- package/cosmos.staking.v1beta1/types.ts +2 -0
- package/cosmos.tx.v1beta1/index.ts +0 -0
- package/cosmos.tx.v1beta1/module.ts +0 -0
- package/cosmos.tx.v1beta1/registry.ts +0 -0
- package/cosmos.tx.v1beta1/rest.ts +180 -19
- package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +704 -333
- package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.ts +1 -1
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
- package/cosmos.tx.v1beta1/types/tendermint/types/types.ts +1 -1
- package/cosmos.tx.v1beta1/types.ts +0 -0
- package/cosmos.upgrade.v1beta1/index.ts +0 -0
- package/cosmos.upgrade.v1beta1/module.ts +0 -0
- package/cosmos.upgrade.v1beta1/registry.ts +0 -0
- package/cosmos.upgrade.v1beta1/rest.ts +0 -1
- package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/cosmos.upgrade.v1beta1/types.ts +0 -0
- package/cosmos.vesting.v1beta1/index.ts +0 -0
- package/cosmos.vesting.v1beta1/module.ts +24 -24
- package/cosmos.vesting.v1beta1/registry.ts +2 -2
- package/cosmos.vesting.v1beta1/rest.ts +4 -1
- package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.ts +6 -1
- package/cosmos.vesting.v1beta1/types.ts +0 -0
- package/dist/client.js +135 -0
- package/dist/cosmos.auth.v1beta1/index.js +5 -0
- package/dist/cosmos.auth.v1beta1/module.js +64 -0
- package/dist/cosmos.auth.v1beta1/registry.js +2 -0
- package/dist/cosmos.auth.v1beta1/rest.js +228 -0
- package/dist/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +344 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.js +67 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +969 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/dist/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.auth.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.auth.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.auth.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.auth.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.auth.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.auth.v1beta1/types.js +5 -0
- package/dist/cosmos.authz.v1beta1/index.js +5 -0
- package/dist/cosmos.authz.v1beta1/module.js +140 -0
- package/dist/cosmos.authz.v1beta1/registry.js +9 -0
- package/dist/cosmos.authz.v1beta1/rest.js +131 -0
- package/dist/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.js +244 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.js +128 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.js +54 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.js +394 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.js +362 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.authz.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.authz.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.authz.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.authz.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.authz.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.authz.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.authz.v1beta1/types.js +7 -0
- package/dist/cosmos.bank.v1beta1/index.js +5 -0
- package/dist/cosmos.bank.v1beta1/module.js +125 -0
- package/dist/cosmos.bank.v1beta1/registry.js +7 -0
- package/dist/cosmos.bank.v1beta1/rest.js +253 -0
- package/dist/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +66 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.js +455 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +170 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1243 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +424 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/dist/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.bank.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.bank.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.bank.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.bank.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.bank.v1beta1/types.js +11 -0
- package/dist/cosmos.base.node.v1beta1/index.js +5 -0
- package/dist/cosmos.base.node.v1beta1/module.js +55 -0
- package/dist/cosmos.base.node.v1beta1/registry.js +2 -0
- package/dist/cosmos.base.node.v1beta1/rest.js +100 -0
- package/dist/cosmos.base.node.v1beta1/types/cosmos/base/node/v1beta1/query.js +91 -0
- package/dist/cosmos.base.node.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.base.node.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.base.node.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.base.node.v1beta1/types.js +1 -0
- package/dist/cosmos.base.tendermint.v1beta1/index.js +5 -0
- package/dist/cosmos.base.tendermint.v1beta1/module.js +70 -0
- package/dist/cosmos.base.tendermint.v1beta1/registry.js +2 -0
- package/dist/cosmos.base.tendermint.v1beta1/rest.js +209 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.js +1281 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.js +350 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.js +100 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.js +356 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.js +352 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.js +86 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.js +343 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.js +1207 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.js +254 -0
- package/dist/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.js +133 -0
- package/dist/cosmos.base.tendermint.v1beta1/types.js +8 -0
- package/dist/cosmos.consensus.v1/index.js +5 -0
- package/dist/cosmos.consensus.v1/module.js +81 -0
- package/dist/cosmos.consensus.v1/registry.js +5 -0
- package/dist/cosmos.consensus.v1/rest.js +100 -0
- package/dist/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
- package/dist/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
- package/dist/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.consensus.v1/types/google/api/http.js +260 -0
- package/dist/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
- package/dist/cosmos.consensus.v1/types.js +1 -0
- package/dist/cosmos.crisis.v1beta1/index.js +5 -0
- package/dist/cosmos.crisis.v1beta1/module.js +104 -0
- package/dist/cosmos.crisis.v1beta1/registry.js +7 -0
- package/dist/cosmos.crisis.v1beta1/rest.js +83 -0
- package/dist/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.js +51 -0
- package/dist/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +206 -0
- package/dist/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.crisis.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.crisis.v1beta1/types.js +1 -0
- package/dist/cosmos.distribution.v1beta1/index.js +5 -0
- package/dist/cosmos.distribution.v1beta1/module.js +235 -0
- package/dist/cosmos.distribution.v1beta1/registry.js +15 -0
- package/dist/cosmos.distribution.v1beta1/rest.js +228 -0
- package/dist/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.js +737 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.js +656 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +1046 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +595 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.distribution.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.distribution.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.distribution.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.distribution.v1beta1/types.js +20 -0
- package/dist/cosmos.evidence.v1beta1/index.js +5 -0
- package/dist/cosmos.evidence.v1beta1/module.js +84 -0
- package/dist/cosmos.evidence.v1beta1/registry.js +5 -0
- package/dist/cosmos.evidence.v1beta1/rest.js +116 -0
- package/dist/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.js +124 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.js +50 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +265 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.js +154 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.evidence.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.evidence.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.evidence.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.evidence.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.evidence.v1beta1/types.js +2 -0
- package/dist/cosmos.feegrant.v1beta1/index.js +5 -0
- package/dist/cosmos.feegrant.v1beta1/module.js +113 -0
- package/dist/cosmos.feegrant.v1beta1/registry.js +7 -0
- package/dist/cosmos.feegrant.v1beta1/rest.js +130 -0
- package/dist/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.js +307 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.js +52 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.js +357 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.js +205 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.feegrant.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.feegrant.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.feegrant.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.feegrant.v1beta1/types.js +5 -0
- package/dist/cosmos.gov.v1/index.js +5 -0
- package/dist/cosmos.gov.v1/module.js +192 -0
- package/dist/cosmos.gov.v1/registry.js +13 -0
- package/dist/cosmos.gov.v1/rest.js +242 -0
- package/dist/cosmos.gov.v1/types/amino/amino.js +2 -0
- package/dist/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +174 -0
- package/dist/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +945 -0
- package/dist/cosmos.gov.v1/types/cosmos/gov/v1/query.js +928 -0
- package/dist/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +701 -0
- package/dist/cosmos.gov.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.gov.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.gov.v1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.gov.v1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.gov.v1/types/google/api/http.js +260 -0
- package/dist/cosmos.gov.v1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.gov.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.gov.v1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.gov.v1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.gov.v1/types.js +10 -0
- package/dist/cosmos.gov.v1beta1/index.js +5 -0
- package/dist/cosmos.gov.v1beta1/module.js +169 -0
- package/dist/cosmos.gov.v1beta1/registry.js +11 -0
- package/dist/cosmos.gov.v1beta1/rest.js +242 -0
- package/dist/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.js +162 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.js +832 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.js +917 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.js +467 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.gov.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.gov.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.gov.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.gov.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.gov.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.gov.v1beta1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.gov.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.gov.v1beta1/types.js +10 -0
- package/dist/cosmos.group.v1/index.js +5 -0
- package/dist/cosmos.group.v1/module.js +423 -0
- package/dist/cosmos.group.v1/registry.js +31 -0
- package/dist/cosmos.group.v1/rest.js +366 -0
- package/dist/cosmos.group.v1/types/amino/amino.js +2 -0
- package/dist/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.group.v1/types/cosmos/group/v1/events.js +497 -0
- package/dist/cosmos.group.v1/types/cosmos/group/v1/genesis.js +177 -0
- package/dist/cosmos.group.v1/types/cosmos/group/v1/query.js +1578 -0
- package/dist/cosmos.group.v1/types/cosmos/group/v1/tx.js +1639 -0
- package/dist/cosmos.group.v1/types/cosmos/group/v1/types.js +1125 -0
- package/dist/cosmos.group.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.group.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.group.v1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.group.v1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.group.v1/types/google/api/http.js +260 -0
- package/dist/cosmos.group.v1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.group.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.group.v1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.group.v1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.group.v1/types.js +22 -0
- package/dist/cosmos.mint.v1beta1/index.js +5 -0
- package/dist/cosmos.mint.v1beta1/module.js +60 -0
- package/dist/cosmos.mint.v1beta1/registry.js +2 -0
- package/dist/cosmos.mint.v1beta1/rest.js +128 -0
- package/dist/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.js +63 -0
- package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.js +179 -0
- package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.js +298 -0
- package/dist/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
- package/dist/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.mint.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.mint.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.mint.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.mint.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.mint.v1beta1/types.js +3 -0
- package/dist/cosmos.nft.v1beta1/index.js +5 -0
- package/dist/cosmos.nft.v1beta1/module.js +68 -0
- package/dist/cosmos.nft.v1beta1/registry.js +2 -0
- package/dist/cosmos.nft.v1beta1/rest.js +187 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.js +198 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.js +126 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.js +183 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.js +752 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.js +120 -0
- package/dist/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.nft.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.nft.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.nft.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.nft.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.nft.v1beta1/types.js +7 -0
- package/dist/cosmos.params.v1beta1/index.js +5 -0
- package/dist/cosmos.params.v1beta1/module.js +62 -0
- package/dist/cosmos.params.v1beta1/registry.js +2 -0
- package/dist/cosmos.params.v1beta1/rest.js +116 -0
- package/dist/cosmos.params.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.js +133 -0
- package/dist/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.js +257 -0
- package/dist/cosmos.params.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.params.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.params.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.params.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.params.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.params.v1beta1/types.js +4 -0
- package/dist/cosmos.slashing.v1beta1/index.js +5 -0
- package/dist/cosmos.slashing.v1beta1/module.js +92 -0
- package/dist/cosmos.slashing.v1beta1/registry.js +5 -0
- package/dist/cosmos.slashing.v1beta1/rest.js +129 -0
- package/dist/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.js +279 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.js +300 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.js +275 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +185 -0
- package/dist/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.slashing.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.slashing.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.slashing.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.slashing.v1beta1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.slashing.v1beta1/types.js +6 -0
- package/dist/cosmos.staking.v1beta1/index.js +5 -0
- package/dist/cosmos.staking.v1beta1/module.js +245 -0
- package/dist/cosmos.staking.v1beta1/registry.js +15 -0
- package/dist/cosmos.staking.v1beta1/rest.js +308 -0
- package/dist/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.js +184 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.js +259 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.js +1568 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +1614 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +861 -0
- package/dist/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.staking.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.staking.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.staking.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.staking.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.staking.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.staking.v1beta1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.staking.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/crypto/keys.js +100 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/crypto/proof.js +356 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/types/types.js +1207 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/types/validator.js +254 -0
- package/dist/cosmos.staking.v1beta1/types/tendermint/version/types.js +133 -0
- package/dist/cosmos.staking.v1beta1/types.js +25 -0
- package/dist/cosmos.tx.v1beta1/index.js +5 -0
- package/dist/cosmos.tx.v1beta1/module.js +82 -0
- package/dist/cosmos.tx.v1beta1/registry.js +2 -0
- package/dist/cosmos.tx.v1beta1/rest.js +320 -0
- package/dist/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.js +803 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.js +147 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.js +449 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +1160 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.js +959 -0
- package/dist/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.tx.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.tx.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.tx.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.tx.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.tx.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.tx.v1beta1/types/google/protobuf/duration.js +84 -0
- package/dist/cosmos.tx.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/abci/types.js +3812 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/crypto/keys.js +100 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/crypto/proof.js +356 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/block.js +86 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/evidence.js +343 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/params.js +369 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/types.js +1207 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/types/validator.js +254 -0
- package/dist/cosmos.tx.v1beta1/types/tendermint/version/types.js +133 -0
- package/dist/cosmos.tx.v1beta1/types.js +14 -0
- package/dist/cosmos.upgrade.v1beta1/index.js +5 -0
- package/dist/cosmos.upgrade.v1beta1/module.js +113 -0
- package/dist/cosmos.upgrade.v1beta1/registry.js +7 -0
- package/dist/cosmos.upgrade.v1beta1/rest.js +162 -0
- package/dist/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.js +501 -0
- package/dist/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.js +183 -0
- package/dist/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
- package/dist/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.upgrade.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.upgrade.v1beta1/types/google/api/annotations.js +2 -0
- package/dist/cosmos.upgrade.v1beta1/types/google/api/http.js +260 -0
- package/dist/cosmos.upgrade.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.js +84 -0
- package/dist/cosmos.upgrade.v1beta1/types.js +5 -0
- package/dist/cosmos.vesting.v1beta1/index.js +5 -0
- package/dist/cosmos.vesting.v1beta1/module.js +140 -0
- package/dist/cosmos.vesting.v1beta1/registry.js +9 -0
- package/dist/cosmos.vesting.v1beta1/rest.js +83 -0
- package/dist/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
- package/dist/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +344 -0
- package/dist/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.js +383 -0
- package/dist/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.js +422 -0
- package/dist/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/cosmos.vesting.v1beta1/types/gogoproto/gogo.js +2 -0
- package/dist/cosmos.vesting.v1beta1/types/google/protobuf/any.js +99 -0
- package/dist/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/cosmos.vesting.v1beta1/types.js +7 -0
- package/dist/env.js +1 -0
- package/dist/helpers.js +11 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/index.js +5 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/module.js +58 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/registry.js +2 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/rest.js +123 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.js +2 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.js +2 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.js +260 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.js +99 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.js +47 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.js +193 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +277 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.js +192 -0
- package/dist/ibc.applications.interchain_accounts.controller.v1/types.js +2 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/index.js +5 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/module.js +58 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/registry.js +2 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/rest.js +100 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.js +2 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.js +2 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types/google/api/http.js +260 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.js +63 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.js +94 -0
- package/dist/ibc.applications.interchain_accounts.host.v1/types.js +2 -0
- package/dist/ibc.applications.transfer.v1/index.js +5 -0
- package/dist/ibc.applications.transfer.v1/module.js +64 -0
- package/dist/ibc.applications.transfer.v1/registry.js +2 -0
- package/dist/ibc.applications.transfer.v1/rest.js +171 -0
- package/dist/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
- package/dist/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
- package/dist/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/ibc.applications.transfer.v1/types/gogoproto/gogo.js +2 -0
- package/dist/ibc.applications.transfer.v1/types/google/api/annotations.js +2 -0
- package/dist/ibc.applications.transfer.v1/types/google/api/http.js +260 -0
- package/dist/ibc.applications.transfer.v1/types/google/protobuf/any.js +99 -0
- package/dist/ibc.applications.transfer.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/ibc.applications.transfer.v1/types/google/protobuf/timestamp.js +84 -0
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +90 -0
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +574 -0
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.js +110 -0
- package/dist/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.js +204 -0
- package/dist/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.js +448 -0
- package/dist/ibc.applications.transfer.v1/types.js +5 -0
- package/dist/ibc.core.channel.v1/index.js +5 -0
- package/dist/ibc.core.channel.v1/module.js +72 -0
- package/dist/ibc.core.channel.v1/registry.js +2 -0
- package/dist/ibc.core.channel.v1/rest.js +323 -0
- package/dist/ibc.core.channel.v1/types/amino/amino.js +2 -0
- package/dist/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
- package/dist/ibc.core.channel.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/ibc.core.channel.v1/types/gogoproto/gogo.js +2 -0
- package/dist/ibc.core.channel.v1/types/google/api/annotations.js +2 -0
- package/dist/ibc.core.channel.v1/types/google/api/http.js +260 -0
- package/dist/ibc.core.channel.v1/types/google/protobuf/any.js +99 -0
- package/dist/ibc.core.channel.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/ibc.core.channel.v1/types/google/protobuf/timestamp.js +84 -0
- package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.js +714 -0
- package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.js +254 -0
- package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/query.js +1866 -0
- package/dist/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +1436 -0
- package/dist/ibc.core.channel.v1/types/ibc/core/client/v1/client.js +448 -0
- package/dist/ibc.core.channel.v1/types.js +9 -0
- package/dist/ibc.core.client.v1/index.js +5 -0
- package/dist/ibc.core.client.v1/module.js +74 -0
- package/dist/ibc.core.client.v1/registry.js +2 -0
- package/dist/ibc.core.client.v1/rest.js +218 -0
- package/dist/ibc.core.client.v1/types/amino/amino.js +2 -0
- package/dist/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
- package/dist/ibc.core.client.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/ibc.core.client.v1/types/gogoproto/gogo.js +2 -0
- package/dist/ibc.core.client.v1/types/google/api/annotations.js +2 -0
- package/dist/ibc.core.client.v1/types/google/api/http.js +260 -0
- package/dist/ibc.core.client.v1/types/google/protobuf/any.js +99 -0
- package/dist/ibc.core.client.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/ibc.core.client.v1/types/google/protobuf/timestamp.js +84 -0
- package/dist/ibc.core.client.v1/types/ibc/core/client/v1/client.js +448 -0
- package/dist/ibc.core.client.v1/types/ibc/core/client/v1/genesis.js +287 -0
- package/dist/ibc.core.client.v1/types/ibc/core/client/v1/query.js +1026 -0
- package/dist/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +510 -0
- package/dist/ibc.core.client.v1/types.js +10 -0
- package/dist/ibc.core.connection.v1/index.js +5 -0
- package/dist/ibc.core.connection.v1/module.js +70 -0
- package/dist/ibc.core.connection.v1/registry.js +2 -0
- package/dist/ibc.core.connection.v1/rest.js +191 -0
- package/dist/ibc.core.connection.v1/types/amino/amino.js +2 -0
- package/dist/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/ibc.core.connection.v1/types/cosmos/ics23/v1/proofs.js +1126 -0
- package/dist/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.js +302 -0
- package/dist/ibc.core.connection.v1/types/cosmos_proto/cosmos.js +171 -0
- package/dist/ibc.core.connection.v1/types/gogoproto/gogo.js +2 -0
- package/dist/ibc.core.connection.v1/types/google/api/annotations.js +2 -0
- package/dist/ibc.core.connection.v1/types/google/api/http.js +260 -0
- package/dist/ibc.core.connection.v1/types/google/protobuf/any.js +99 -0
- package/dist/ibc.core.connection.v1/types/google/protobuf/descriptor.js +2830 -0
- package/dist/ibc.core.connection.v1/types/google/protobuf/timestamp.js +84 -0
- package/dist/ibc.core.connection.v1/types/ibc/core/client/v1/client.js +448 -0
- package/dist/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +223 -0
- package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.js +537 -0
- package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.js +120 -0
- package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/query.js +766 -0
- package/dist/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +731 -0
- package/dist/ibc.core.connection.v1/types.js +8 -0
- package/dist/iconlake.drop/index.js +5 -0
- package/dist/iconlake.drop/module.js +86 -0
- package/dist/iconlake.drop/registry.js +5 -0
- package/dist/iconlake.drop/rest.js +128 -0
- package/dist/iconlake.drop/types/amino/amino.js +2 -0
- package/dist/iconlake.drop/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/iconlake.drop/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/iconlake.drop/types/cosmos_proto/cosmos.js +171 -0
- package/dist/iconlake.drop/types/gogoproto/gogo.js +2 -0
- package/dist/iconlake.drop/types/google/api/annotations.js +2 -0
- package/dist/iconlake.drop/types/google/api/http.js +260 -0
- package/dist/iconlake.drop/types/google/protobuf/descriptor.js +2830 -0
- package/dist/iconlake.drop/types/iconlake/drop/genesis.js +67 -0
- package/dist/iconlake.drop/types/iconlake/drop/info.js +84 -0
- package/dist/iconlake.drop/types/iconlake/drop/params.js +36 -0
- package/dist/iconlake.drop/types/iconlake/drop/query.js +294 -0
- package/dist/iconlake.drop/types/iconlake/drop/tx.js +152 -0
- package/dist/iconlake.drop/types.js +3 -0
- package/dist/iconlake.icon/index.js +5 -0
- package/dist/iconlake.icon/module.js +88 -0
- package/dist/iconlake.icon/registry.js +5 -0
- package/dist/iconlake.icon/rest.js +115 -0
- package/dist/iconlake.icon/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/iconlake.icon/types/gogoproto/gogo.js +2 -0
- package/dist/iconlake.icon/types/google/api/annotations.js +2 -0
- package/dist/iconlake.icon/types/google/api/http.js +260 -0
- package/dist/iconlake.icon/types/google/protobuf/descriptor.js +2830 -0
- package/dist/iconlake.icon/types/iconlake/icon/class_data.js +58 -0
- package/dist/iconlake.icon/types/iconlake/icon/genesis.js +50 -0
- package/dist/iconlake.icon/types/iconlake/icon/icon_data.js +76 -0
- package/dist/iconlake.icon/types/iconlake/icon/params.js +36 -0
- package/dist/iconlake.icon/types/iconlake/icon/query.js +204 -0
- package/dist/iconlake.icon/types/iconlake/icon/tx.js +174 -0
- package/dist/iconlake.icon/types.js +4 -0
- package/dist/iconlake.iconlake/index.js +5 -0
- package/dist/iconlake.iconlake/module.js +86 -0
- package/dist/iconlake.iconlake/registry.js +5 -0
- package/dist/iconlake.iconlake/rest.js +128 -0
- package/dist/iconlake.iconlake/types/amino/amino.js +2 -0
- package/dist/iconlake.iconlake/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/dist/iconlake.iconlake/types/cosmos/base/v1beta1/coin.js +192 -0
- package/dist/iconlake.iconlake/types/cosmos_proto/cosmos.js +171 -0
- package/dist/iconlake.iconlake/types/gogoproto/gogo.js +2 -0
- package/dist/iconlake.iconlake/types/google/api/annotations.js +2 -0
- package/dist/iconlake.iconlake/types/google/api/http.js +260 -0
- package/dist/iconlake.iconlake/types/google/protobuf/descriptor.js +2830 -0
- package/dist/iconlake.iconlake/types/iconlake/iconlake/account.js +84 -0
- package/dist/iconlake.iconlake/types/iconlake/iconlake/genesis.js +67 -0
- package/dist/iconlake.iconlake/types/iconlake/iconlake/params.js +36 -0
- package/dist/iconlake.iconlake/types/iconlake/iconlake/query.js +296 -0
- package/dist/iconlake.iconlake/types/iconlake/iconlake/tx.js +113 -0
- package/dist/iconlake.iconlake/types.js +3 -0
- package/dist/index.js +68 -0
- package/dist/modules.js +1 -0
- package/env.ts +0 -0
- package/helpers.ts +0 -0
- package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -0
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -0
- package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -0
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
- package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -0
- package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -0
- package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -0
- package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -0
- package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -0
- package/ibc.applications.transfer.v1/index.ts +0 -0
- package/ibc.applications.transfer.v1/module.ts +5 -34
- package/ibc.applications.transfer.v1/registry.ts +0 -2
- package/ibc.applications.transfer.v1/rest.ts +30 -1
- package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.applications.transfer.v1/types.ts +4 -0
- package/ibc.core.channel.v1/index.ts +0 -0
- package/ibc.core.channel.v1/module.ts +0 -0
- package/ibc.core.channel.v1/registry.ts +0 -0
- package/ibc.core.channel.v1/rest.ts +1 -0
- package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.channel.v1/types.ts +0 -0
- package/ibc.core.client.v1/index.ts +0 -0
- package/ibc.core.client.v1/module.ts +0 -0
- package/ibc.core.client.v1/registry.ts +0 -0
- package/ibc.core.client.v1/rest.ts +5 -1
- package/ibc.core.client.v1/types/amino/amino.ts +2 -0
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
- package/ibc.core.client.v1/types.ts +0 -0
- package/ibc.core.connection.v1/index.ts +0 -0
- package/ibc.core.connection.v1/module.ts +0 -0
- package/ibc.core.connection.v1/registry.ts +0 -0
- package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
- package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
- package/ibc.core.connection.v1/types.ts +0 -0
- package/iconlake.drop/index.ts +6 -0
- package/iconlake.drop/module.ts +133 -0
- package/iconlake.drop/registry.ts +9 -0
- package/iconlake.drop/rest.ts +339 -0
- package/iconlake.drop/types/amino/amino.ts +2 -0
- package/iconlake.drop/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/iconlake.drop/types/cosmos/base/v1beta1/coin.ts +261 -0
- package/iconlake.drop/types/cosmos_proto/cosmos.ts +247 -0
- package/iconlake.drop/types/gogoproto/gogo.ts +2 -0
- package/iconlake.drop/types/google/api/annotations.ts +2 -0
- package/iconlake.drop/types/google/api/http.ts +589 -0
- package/iconlake.drop/types/google/protobuf/descriptor.ts +3753 -0
- package/iconlake.drop/types/iconlake/drop/genesis.ts +91 -0
- package/iconlake.drop/types/iconlake/drop/info.ts +114 -0
- package/iconlake.drop/types/iconlake/drop/params.ts +58 -0
- package/iconlake.drop/types/iconlake/drop/query.ts +386 -0
- package/iconlake.drop/types/iconlake/drop/tx.ts +204 -0
- package/iconlake.drop/types.ts +9 -0
- package/iconlake.icon/index.ts +0 -0
- package/iconlake.icon/module.ts +2 -2
- package/iconlake.icon/registry.ts +0 -0
- package/iconlake.icon/rest.ts +6 -5
- package/iconlake.icon/types/iconlake/icon/class_data.ts +82 -0
- package/iconlake.icon/types/iconlake/icon/icon_data.ts +102 -0
- package/iconlake.icon/types/iconlake/icon/tx.ts +1 -146
- package/iconlake.icon/types.ts +3 -3
- package/iconlake.iconlake/index.ts +0 -0
- package/iconlake.iconlake/module.ts +0 -0
- package/iconlake.iconlake/registry.ts +0 -0
- package/iconlake.iconlake/rest.ts +2 -14
- package/iconlake.iconlake/types/amino/amino.ts +2 -0
- package/iconlake.iconlake/types/iconlake/iconlake/account.ts +10 -36
- package/iconlake.iconlake/types/iconlake/iconlake/tx.ts +8 -64
- package/iconlake.iconlake/types.ts +0 -0
- package/index.ts +5 -3
- package/modules.ts +0 -0
- package/package.json +15 -8
- package/tsconfig.json +11 -11
- package/types.d.ts +0 -0
|
@@ -0,0 +1,1614 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Any } from "../../../google/protobuf/any";
|
|
5
|
+
import { Duration } from "../../../google/protobuf/duration";
|
|
6
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
7
|
+
import { ValidatorUpdate } from "../../../tendermint/abci/types";
|
|
8
|
+
import { Header } from "../../../tendermint/types/types";
|
|
9
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
10
|
+
export const protobufPackage = "cosmos.staking.v1beta1";
|
|
11
|
+
/** BondStatus is the status of a validator. */
|
|
12
|
+
export var BondStatus;
|
|
13
|
+
(function (BondStatus) {
|
|
14
|
+
/** BOND_STATUS_UNSPECIFIED - UNSPECIFIED defines an invalid validator status. */
|
|
15
|
+
BondStatus[BondStatus["BOND_STATUS_UNSPECIFIED"] = 0] = "BOND_STATUS_UNSPECIFIED";
|
|
16
|
+
/** BOND_STATUS_UNBONDED - UNBONDED defines a validator that is not bonded. */
|
|
17
|
+
BondStatus[BondStatus["BOND_STATUS_UNBONDED"] = 1] = "BOND_STATUS_UNBONDED";
|
|
18
|
+
/** BOND_STATUS_UNBONDING - UNBONDING defines a validator that is unbonding. */
|
|
19
|
+
BondStatus[BondStatus["BOND_STATUS_UNBONDING"] = 2] = "BOND_STATUS_UNBONDING";
|
|
20
|
+
/** BOND_STATUS_BONDED - BONDED defines a validator that is bonded. */
|
|
21
|
+
BondStatus[BondStatus["BOND_STATUS_BONDED"] = 3] = "BOND_STATUS_BONDED";
|
|
22
|
+
BondStatus[BondStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
23
|
+
})(BondStatus || (BondStatus = {}));
|
|
24
|
+
export function bondStatusFromJSON(object) {
|
|
25
|
+
switch (object) {
|
|
26
|
+
case 0:
|
|
27
|
+
case "BOND_STATUS_UNSPECIFIED":
|
|
28
|
+
return BondStatus.BOND_STATUS_UNSPECIFIED;
|
|
29
|
+
case 1:
|
|
30
|
+
case "BOND_STATUS_UNBONDED":
|
|
31
|
+
return BondStatus.BOND_STATUS_UNBONDED;
|
|
32
|
+
case 2:
|
|
33
|
+
case "BOND_STATUS_UNBONDING":
|
|
34
|
+
return BondStatus.BOND_STATUS_UNBONDING;
|
|
35
|
+
case 3:
|
|
36
|
+
case "BOND_STATUS_BONDED":
|
|
37
|
+
return BondStatus.BOND_STATUS_BONDED;
|
|
38
|
+
case -1:
|
|
39
|
+
case "UNRECOGNIZED":
|
|
40
|
+
default:
|
|
41
|
+
return BondStatus.UNRECOGNIZED;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export function bondStatusToJSON(object) {
|
|
45
|
+
switch (object) {
|
|
46
|
+
case BondStatus.BOND_STATUS_UNSPECIFIED:
|
|
47
|
+
return "BOND_STATUS_UNSPECIFIED";
|
|
48
|
+
case BondStatus.BOND_STATUS_UNBONDED:
|
|
49
|
+
return "BOND_STATUS_UNBONDED";
|
|
50
|
+
case BondStatus.BOND_STATUS_UNBONDING:
|
|
51
|
+
return "BOND_STATUS_UNBONDING";
|
|
52
|
+
case BondStatus.BOND_STATUS_BONDED:
|
|
53
|
+
return "BOND_STATUS_BONDED";
|
|
54
|
+
case BondStatus.UNRECOGNIZED:
|
|
55
|
+
default:
|
|
56
|
+
return "UNRECOGNIZED";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/** Infraction indicates the infraction a validator commited. */
|
|
60
|
+
export var Infraction;
|
|
61
|
+
(function (Infraction) {
|
|
62
|
+
/** INFRACTION_UNSPECIFIED - UNSPECIFIED defines an empty infraction. */
|
|
63
|
+
Infraction[Infraction["INFRACTION_UNSPECIFIED"] = 0] = "INFRACTION_UNSPECIFIED";
|
|
64
|
+
/** INFRACTION_DOUBLE_SIGN - DOUBLE_SIGN defines a validator that double-signs a block. */
|
|
65
|
+
Infraction[Infraction["INFRACTION_DOUBLE_SIGN"] = 1] = "INFRACTION_DOUBLE_SIGN";
|
|
66
|
+
/** INFRACTION_DOWNTIME - DOWNTIME defines a validator that missed signing too many blocks. */
|
|
67
|
+
Infraction[Infraction["INFRACTION_DOWNTIME"] = 2] = "INFRACTION_DOWNTIME";
|
|
68
|
+
Infraction[Infraction["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
69
|
+
})(Infraction || (Infraction = {}));
|
|
70
|
+
export function infractionFromJSON(object) {
|
|
71
|
+
switch (object) {
|
|
72
|
+
case 0:
|
|
73
|
+
case "INFRACTION_UNSPECIFIED":
|
|
74
|
+
return Infraction.INFRACTION_UNSPECIFIED;
|
|
75
|
+
case 1:
|
|
76
|
+
case "INFRACTION_DOUBLE_SIGN":
|
|
77
|
+
return Infraction.INFRACTION_DOUBLE_SIGN;
|
|
78
|
+
case 2:
|
|
79
|
+
case "INFRACTION_DOWNTIME":
|
|
80
|
+
return Infraction.INFRACTION_DOWNTIME;
|
|
81
|
+
case -1:
|
|
82
|
+
case "UNRECOGNIZED":
|
|
83
|
+
default:
|
|
84
|
+
return Infraction.UNRECOGNIZED;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export function infractionToJSON(object) {
|
|
88
|
+
switch (object) {
|
|
89
|
+
case Infraction.INFRACTION_UNSPECIFIED:
|
|
90
|
+
return "INFRACTION_UNSPECIFIED";
|
|
91
|
+
case Infraction.INFRACTION_DOUBLE_SIGN:
|
|
92
|
+
return "INFRACTION_DOUBLE_SIGN";
|
|
93
|
+
case Infraction.INFRACTION_DOWNTIME:
|
|
94
|
+
return "INFRACTION_DOWNTIME";
|
|
95
|
+
case Infraction.UNRECOGNIZED:
|
|
96
|
+
default:
|
|
97
|
+
return "UNRECOGNIZED";
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function createBaseHistoricalInfo() {
|
|
101
|
+
return { header: undefined, valset: [] };
|
|
102
|
+
}
|
|
103
|
+
export const HistoricalInfo = {
|
|
104
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
105
|
+
if (message.header !== undefined) {
|
|
106
|
+
Header.encode(message.header, writer.uint32(10).fork()).ldelim();
|
|
107
|
+
}
|
|
108
|
+
for (const v of message.valset) {
|
|
109
|
+
Validator.encode(v, writer.uint32(18).fork()).ldelim();
|
|
110
|
+
}
|
|
111
|
+
return writer;
|
|
112
|
+
},
|
|
113
|
+
decode(input, length) {
|
|
114
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
115
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
116
|
+
const message = createBaseHistoricalInfo();
|
|
117
|
+
while (reader.pos < end) {
|
|
118
|
+
const tag = reader.uint32();
|
|
119
|
+
switch (tag >>> 3) {
|
|
120
|
+
case 1:
|
|
121
|
+
message.header = Header.decode(reader, reader.uint32());
|
|
122
|
+
break;
|
|
123
|
+
case 2:
|
|
124
|
+
message.valset.push(Validator.decode(reader, reader.uint32()));
|
|
125
|
+
break;
|
|
126
|
+
default:
|
|
127
|
+
reader.skipType(tag & 7);
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return message;
|
|
132
|
+
},
|
|
133
|
+
fromJSON(object) {
|
|
134
|
+
return {
|
|
135
|
+
header: isSet(object.header) ? Header.fromJSON(object.header) : undefined,
|
|
136
|
+
valset: Array.isArray(object?.valset) ? object.valset.map((e) => Validator.fromJSON(e)) : [],
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
toJSON(message) {
|
|
140
|
+
const obj = {};
|
|
141
|
+
message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined);
|
|
142
|
+
if (message.valset) {
|
|
143
|
+
obj.valset = message.valset.map((e) => e ? Validator.toJSON(e) : undefined);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
obj.valset = [];
|
|
147
|
+
}
|
|
148
|
+
return obj;
|
|
149
|
+
},
|
|
150
|
+
fromPartial(object) {
|
|
151
|
+
const message = createBaseHistoricalInfo();
|
|
152
|
+
message.header = (object.header !== undefined && object.header !== null)
|
|
153
|
+
? Header.fromPartial(object.header)
|
|
154
|
+
: undefined;
|
|
155
|
+
message.valset = object.valset?.map((e) => Validator.fromPartial(e)) || [];
|
|
156
|
+
return message;
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
function createBaseCommissionRates() {
|
|
160
|
+
return { rate: "", maxRate: "", maxChangeRate: "" };
|
|
161
|
+
}
|
|
162
|
+
export const CommissionRates = {
|
|
163
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
164
|
+
if (message.rate !== "") {
|
|
165
|
+
writer.uint32(10).string(message.rate);
|
|
166
|
+
}
|
|
167
|
+
if (message.maxRate !== "") {
|
|
168
|
+
writer.uint32(18).string(message.maxRate);
|
|
169
|
+
}
|
|
170
|
+
if (message.maxChangeRate !== "") {
|
|
171
|
+
writer.uint32(26).string(message.maxChangeRate);
|
|
172
|
+
}
|
|
173
|
+
return writer;
|
|
174
|
+
},
|
|
175
|
+
decode(input, length) {
|
|
176
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
177
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
178
|
+
const message = createBaseCommissionRates();
|
|
179
|
+
while (reader.pos < end) {
|
|
180
|
+
const tag = reader.uint32();
|
|
181
|
+
switch (tag >>> 3) {
|
|
182
|
+
case 1:
|
|
183
|
+
message.rate = reader.string();
|
|
184
|
+
break;
|
|
185
|
+
case 2:
|
|
186
|
+
message.maxRate = reader.string();
|
|
187
|
+
break;
|
|
188
|
+
case 3:
|
|
189
|
+
message.maxChangeRate = reader.string();
|
|
190
|
+
break;
|
|
191
|
+
default:
|
|
192
|
+
reader.skipType(tag & 7);
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return message;
|
|
197
|
+
},
|
|
198
|
+
fromJSON(object) {
|
|
199
|
+
return {
|
|
200
|
+
rate: isSet(object.rate) ? String(object.rate) : "",
|
|
201
|
+
maxRate: isSet(object.maxRate) ? String(object.maxRate) : "",
|
|
202
|
+
maxChangeRate: isSet(object.maxChangeRate) ? String(object.maxChangeRate) : "",
|
|
203
|
+
};
|
|
204
|
+
},
|
|
205
|
+
toJSON(message) {
|
|
206
|
+
const obj = {};
|
|
207
|
+
message.rate !== undefined && (obj.rate = message.rate);
|
|
208
|
+
message.maxRate !== undefined && (obj.maxRate = message.maxRate);
|
|
209
|
+
message.maxChangeRate !== undefined && (obj.maxChangeRate = message.maxChangeRate);
|
|
210
|
+
return obj;
|
|
211
|
+
},
|
|
212
|
+
fromPartial(object) {
|
|
213
|
+
const message = createBaseCommissionRates();
|
|
214
|
+
message.rate = object.rate ?? "";
|
|
215
|
+
message.maxRate = object.maxRate ?? "";
|
|
216
|
+
message.maxChangeRate = object.maxChangeRate ?? "";
|
|
217
|
+
return message;
|
|
218
|
+
},
|
|
219
|
+
};
|
|
220
|
+
function createBaseCommission() {
|
|
221
|
+
return { commissionRates: undefined, updateTime: undefined };
|
|
222
|
+
}
|
|
223
|
+
export const Commission = {
|
|
224
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
225
|
+
if (message.commissionRates !== undefined) {
|
|
226
|
+
CommissionRates.encode(message.commissionRates, writer.uint32(10).fork()).ldelim();
|
|
227
|
+
}
|
|
228
|
+
if (message.updateTime !== undefined) {
|
|
229
|
+
Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(18).fork()).ldelim();
|
|
230
|
+
}
|
|
231
|
+
return writer;
|
|
232
|
+
},
|
|
233
|
+
decode(input, length) {
|
|
234
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
235
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
236
|
+
const message = createBaseCommission();
|
|
237
|
+
while (reader.pos < end) {
|
|
238
|
+
const tag = reader.uint32();
|
|
239
|
+
switch (tag >>> 3) {
|
|
240
|
+
case 1:
|
|
241
|
+
message.commissionRates = CommissionRates.decode(reader, reader.uint32());
|
|
242
|
+
break;
|
|
243
|
+
case 2:
|
|
244
|
+
message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
245
|
+
break;
|
|
246
|
+
default:
|
|
247
|
+
reader.skipType(tag & 7);
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return message;
|
|
252
|
+
},
|
|
253
|
+
fromJSON(object) {
|
|
254
|
+
return {
|
|
255
|
+
commissionRates: isSet(object.commissionRates) ? CommissionRates.fromJSON(object.commissionRates) : undefined,
|
|
256
|
+
updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
|
|
257
|
+
};
|
|
258
|
+
},
|
|
259
|
+
toJSON(message) {
|
|
260
|
+
const obj = {};
|
|
261
|
+
message.commissionRates !== undefined
|
|
262
|
+
&& (obj.commissionRates = message.commissionRates ? CommissionRates.toJSON(message.commissionRates) : undefined);
|
|
263
|
+
message.updateTime !== undefined && (obj.updateTime = message.updateTime.toISOString());
|
|
264
|
+
return obj;
|
|
265
|
+
},
|
|
266
|
+
fromPartial(object) {
|
|
267
|
+
const message = createBaseCommission();
|
|
268
|
+
message.commissionRates = (object.commissionRates !== undefined && object.commissionRates !== null)
|
|
269
|
+
? CommissionRates.fromPartial(object.commissionRates)
|
|
270
|
+
: undefined;
|
|
271
|
+
message.updateTime = object.updateTime ?? undefined;
|
|
272
|
+
return message;
|
|
273
|
+
},
|
|
274
|
+
};
|
|
275
|
+
function createBaseDescription() {
|
|
276
|
+
return { moniker: "", identity: "", website: "", securityContact: "", details: "" };
|
|
277
|
+
}
|
|
278
|
+
export const Description = {
|
|
279
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
280
|
+
if (message.moniker !== "") {
|
|
281
|
+
writer.uint32(10).string(message.moniker);
|
|
282
|
+
}
|
|
283
|
+
if (message.identity !== "") {
|
|
284
|
+
writer.uint32(18).string(message.identity);
|
|
285
|
+
}
|
|
286
|
+
if (message.website !== "") {
|
|
287
|
+
writer.uint32(26).string(message.website);
|
|
288
|
+
}
|
|
289
|
+
if (message.securityContact !== "") {
|
|
290
|
+
writer.uint32(34).string(message.securityContact);
|
|
291
|
+
}
|
|
292
|
+
if (message.details !== "") {
|
|
293
|
+
writer.uint32(42).string(message.details);
|
|
294
|
+
}
|
|
295
|
+
return writer;
|
|
296
|
+
},
|
|
297
|
+
decode(input, length) {
|
|
298
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
299
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
300
|
+
const message = createBaseDescription();
|
|
301
|
+
while (reader.pos < end) {
|
|
302
|
+
const tag = reader.uint32();
|
|
303
|
+
switch (tag >>> 3) {
|
|
304
|
+
case 1:
|
|
305
|
+
message.moniker = reader.string();
|
|
306
|
+
break;
|
|
307
|
+
case 2:
|
|
308
|
+
message.identity = reader.string();
|
|
309
|
+
break;
|
|
310
|
+
case 3:
|
|
311
|
+
message.website = reader.string();
|
|
312
|
+
break;
|
|
313
|
+
case 4:
|
|
314
|
+
message.securityContact = reader.string();
|
|
315
|
+
break;
|
|
316
|
+
case 5:
|
|
317
|
+
message.details = reader.string();
|
|
318
|
+
break;
|
|
319
|
+
default:
|
|
320
|
+
reader.skipType(tag & 7);
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
return message;
|
|
325
|
+
},
|
|
326
|
+
fromJSON(object) {
|
|
327
|
+
return {
|
|
328
|
+
moniker: isSet(object.moniker) ? String(object.moniker) : "",
|
|
329
|
+
identity: isSet(object.identity) ? String(object.identity) : "",
|
|
330
|
+
website: isSet(object.website) ? String(object.website) : "",
|
|
331
|
+
securityContact: isSet(object.securityContact) ? String(object.securityContact) : "",
|
|
332
|
+
details: isSet(object.details) ? String(object.details) : "",
|
|
333
|
+
};
|
|
334
|
+
},
|
|
335
|
+
toJSON(message) {
|
|
336
|
+
const obj = {};
|
|
337
|
+
message.moniker !== undefined && (obj.moniker = message.moniker);
|
|
338
|
+
message.identity !== undefined && (obj.identity = message.identity);
|
|
339
|
+
message.website !== undefined && (obj.website = message.website);
|
|
340
|
+
message.securityContact !== undefined && (obj.securityContact = message.securityContact);
|
|
341
|
+
message.details !== undefined && (obj.details = message.details);
|
|
342
|
+
return obj;
|
|
343
|
+
},
|
|
344
|
+
fromPartial(object) {
|
|
345
|
+
const message = createBaseDescription();
|
|
346
|
+
message.moniker = object.moniker ?? "";
|
|
347
|
+
message.identity = object.identity ?? "";
|
|
348
|
+
message.website = object.website ?? "";
|
|
349
|
+
message.securityContact = object.securityContact ?? "";
|
|
350
|
+
message.details = object.details ?? "";
|
|
351
|
+
return message;
|
|
352
|
+
},
|
|
353
|
+
};
|
|
354
|
+
function createBaseValidator() {
|
|
355
|
+
return {
|
|
356
|
+
operatorAddress: "",
|
|
357
|
+
consensusPubkey: undefined,
|
|
358
|
+
jailed: false,
|
|
359
|
+
status: 0,
|
|
360
|
+
tokens: "",
|
|
361
|
+
delegatorShares: "",
|
|
362
|
+
description: undefined,
|
|
363
|
+
unbondingHeight: 0,
|
|
364
|
+
unbondingTime: undefined,
|
|
365
|
+
commission: undefined,
|
|
366
|
+
minSelfDelegation: "",
|
|
367
|
+
unbondingOnHoldRefCount: 0,
|
|
368
|
+
unbondingIds: [],
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
export const Validator = {
|
|
372
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
373
|
+
if (message.operatorAddress !== "") {
|
|
374
|
+
writer.uint32(10).string(message.operatorAddress);
|
|
375
|
+
}
|
|
376
|
+
if (message.consensusPubkey !== undefined) {
|
|
377
|
+
Any.encode(message.consensusPubkey, writer.uint32(18).fork()).ldelim();
|
|
378
|
+
}
|
|
379
|
+
if (message.jailed === true) {
|
|
380
|
+
writer.uint32(24).bool(message.jailed);
|
|
381
|
+
}
|
|
382
|
+
if (message.status !== 0) {
|
|
383
|
+
writer.uint32(32).int32(message.status);
|
|
384
|
+
}
|
|
385
|
+
if (message.tokens !== "") {
|
|
386
|
+
writer.uint32(42).string(message.tokens);
|
|
387
|
+
}
|
|
388
|
+
if (message.delegatorShares !== "") {
|
|
389
|
+
writer.uint32(50).string(message.delegatorShares);
|
|
390
|
+
}
|
|
391
|
+
if (message.description !== undefined) {
|
|
392
|
+
Description.encode(message.description, writer.uint32(58).fork()).ldelim();
|
|
393
|
+
}
|
|
394
|
+
if (message.unbondingHeight !== 0) {
|
|
395
|
+
writer.uint32(64).int64(message.unbondingHeight);
|
|
396
|
+
}
|
|
397
|
+
if (message.unbondingTime !== undefined) {
|
|
398
|
+
Timestamp.encode(toTimestamp(message.unbondingTime), writer.uint32(74).fork()).ldelim();
|
|
399
|
+
}
|
|
400
|
+
if (message.commission !== undefined) {
|
|
401
|
+
Commission.encode(message.commission, writer.uint32(82).fork()).ldelim();
|
|
402
|
+
}
|
|
403
|
+
if (message.minSelfDelegation !== "") {
|
|
404
|
+
writer.uint32(90).string(message.minSelfDelegation);
|
|
405
|
+
}
|
|
406
|
+
if (message.unbondingOnHoldRefCount !== 0) {
|
|
407
|
+
writer.uint32(96).int64(message.unbondingOnHoldRefCount);
|
|
408
|
+
}
|
|
409
|
+
writer.uint32(106).fork();
|
|
410
|
+
for (const v of message.unbondingIds) {
|
|
411
|
+
writer.uint64(v);
|
|
412
|
+
}
|
|
413
|
+
writer.ldelim();
|
|
414
|
+
return writer;
|
|
415
|
+
},
|
|
416
|
+
decode(input, length) {
|
|
417
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
418
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
419
|
+
const message = createBaseValidator();
|
|
420
|
+
while (reader.pos < end) {
|
|
421
|
+
const tag = reader.uint32();
|
|
422
|
+
switch (tag >>> 3) {
|
|
423
|
+
case 1:
|
|
424
|
+
message.operatorAddress = reader.string();
|
|
425
|
+
break;
|
|
426
|
+
case 2:
|
|
427
|
+
message.consensusPubkey = Any.decode(reader, reader.uint32());
|
|
428
|
+
break;
|
|
429
|
+
case 3:
|
|
430
|
+
message.jailed = reader.bool();
|
|
431
|
+
break;
|
|
432
|
+
case 4:
|
|
433
|
+
message.status = reader.int32();
|
|
434
|
+
break;
|
|
435
|
+
case 5:
|
|
436
|
+
message.tokens = reader.string();
|
|
437
|
+
break;
|
|
438
|
+
case 6:
|
|
439
|
+
message.delegatorShares = reader.string();
|
|
440
|
+
break;
|
|
441
|
+
case 7:
|
|
442
|
+
message.description = Description.decode(reader, reader.uint32());
|
|
443
|
+
break;
|
|
444
|
+
case 8:
|
|
445
|
+
message.unbondingHeight = longToNumber(reader.int64());
|
|
446
|
+
break;
|
|
447
|
+
case 9:
|
|
448
|
+
message.unbondingTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
449
|
+
break;
|
|
450
|
+
case 10:
|
|
451
|
+
message.commission = Commission.decode(reader, reader.uint32());
|
|
452
|
+
break;
|
|
453
|
+
case 11:
|
|
454
|
+
message.minSelfDelegation = reader.string();
|
|
455
|
+
break;
|
|
456
|
+
case 12:
|
|
457
|
+
message.unbondingOnHoldRefCount = longToNumber(reader.int64());
|
|
458
|
+
break;
|
|
459
|
+
case 13:
|
|
460
|
+
if ((tag & 7) === 2) {
|
|
461
|
+
const end2 = reader.uint32() + reader.pos;
|
|
462
|
+
while (reader.pos < end2) {
|
|
463
|
+
message.unbondingIds.push(longToNumber(reader.uint64()));
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
else {
|
|
467
|
+
message.unbondingIds.push(longToNumber(reader.uint64()));
|
|
468
|
+
}
|
|
469
|
+
break;
|
|
470
|
+
default:
|
|
471
|
+
reader.skipType(tag & 7);
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
return message;
|
|
476
|
+
},
|
|
477
|
+
fromJSON(object) {
|
|
478
|
+
return {
|
|
479
|
+
operatorAddress: isSet(object.operatorAddress) ? String(object.operatorAddress) : "",
|
|
480
|
+
consensusPubkey: isSet(object.consensusPubkey) ? Any.fromJSON(object.consensusPubkey) : undefined,
|
|
481
|
+
jailed: isSet(object.jailed) ? Boolean(object.jailed) : false,
|
|
482
|
+
status: isSet(object.status) ? bondStatusFromJSON(object.status) : 0,
|
|
483
|
+
tokens: isSet(object.tokens) ? String(object.tokens) : "",
|
|
484
|
+
delegatorShares: isSet(object.delegatorShares) ? String(object.delegatorShares) : "",
|
|
485
|
+
description: isSet(object.description) ? Description.fromJSON(object.description) : undefined,
|
|
486
|
+
unbondingHeight: isSet(object.unbondingHeight) ? Number(object.unbondingHeight) : 0,
|
|
487
|
+
unbondingTime: isSet(object.unbondingTime) ? fromJsonTimestamp(object.unbondingTime) : undefined,
|
|
488
|
+
commission: isSet(object.commission) ? Commission.fromJSON(object.commission) : undefined,
|
|
489
|
+
minSelfDelegation: isSet(object.minSelfDelegation) ? String(object.minSelfDelegation) : "",
|
|
490
|
+
unbondingOnHoldRefCount: isSet(object.unbondingOnHoldRefCount) ? Number(object.unbondingOnHoldRefCount) : 0,
|
|
491
|
+
unbondingIds: Array.isArray(object?.unbondingIds) ? object.unbondingIds.map((e) => Number(e)) : [],
|
|
492
|
+
};
|
|
493
|
+
},
|
|
494
|
+
toJSON(message) {
|
|
495
|
+
const obj = {};
|
|
496
|
+
message.operatorAddress !== undefined && (obj.operatorAddress = message.operatorAddress);
|
|
497
|
+
message.consensusPubkey !== undefined
|
|
498
|
+
&& (obj.consensusPubkey = message.consensusPubkey ? Any.toJSON(message.consensusPubkey) : undefined);
|
|
499
|
+
message.jailed !== undefined && (obj.jailed = message.jailed);
|
|
500
|
+
message.status !== undefined && (obj.status = bondStatusToJSON(message.status));
|
|
501
|
+
message.tokens !== undefined && (obj.tokens = message.tokens);
|
|
502
|
+
message.delegatorShares !== undefined && (obj.delegatorShares = message.delegatorShares);
|
|
503
|
+
message.description !== undefined
|
|
504
|
+
&& (obj.description = message.description ? Description.toJSON(message.description) : undefined);
|
|
505
|
+
message.unbondingHeight !== undefined && (obj.unbondingHeight = Math.round(message.unbondingHeight));
|
|
506
|
+
message.unbondingTime !== undefined && (obj.unbondingTime = message.unbondingTime.toISOString());
|
|
507
|
+
message.commission !== undefined
|
|
508
|
+
&& (obj.commission = message.commission ? Commission.toJSON(message.commission) : undefined);
|
|
509
|
+
message.minSelfDelegation !== undefined && (obj.minSelfDelegation = message.minSelfDelegation);
|
|
510
|
+
message.unbondingOnHoldRefCount !== undefined
|
|
511
|
+
&& (obj.unbondingOnHoldRefCount = Math.round(message.unbondingOnHoldRefCount));
|
|
512
|
+
if (message.unbondingIds) {
|
|
513
|
+
obj.unbondingIds = message.unbondingIds.map((e) => Math.round(e));
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
obj.unbondingIds = [];
|
|
517
|
+
}
|
|
518
|
+
return obj;
|
|
519
|
+
},
|
|
520
|
+
fromPartial(object) {
|
|
521
|
+
const message = createBaseValidator();
|
|
522
|
+
message.operatorAddress = object.operatorAddress ?? "";
|
|
523
|
+
message.consensusPubkey = (object.consensusPubkey !== undefined && object.consensusPubkey !== null)
|
|
524
|
+
? Any.fromPartial(object.consensusPubkey)
|
|
525
|
+
: undefined;
|
|
526
|
+
message.jailed = object.jailed ?? false;
|
|
527
|
+
message.status = object.status ?? 0;
|
|
528
|
+
message.tokens = object.tokens ?? "";
|
|
529
|
+
message.delegatorShares = object.delegatorShares ?? "";
|
|
530
|
+
message.description = (object.description !== undefined && object.description !== null)
|
|
531
|
+
? Description.fromPartial(object.description)
|
|
532
|
+
: undefined;
|
|
533
|
+
message.unbondingHeight = object.unbondingHeight ?? 0;
|
|
534
|
+
message.unbondingTime = object.unbondingTime ?? undefined;
|
|
535
|
+
message.commission = (object.commission !== undefined && object.commission !== null)
|
|
536
|
+
? Commission.fromPartial(object.commission)
|
|
537
|
+
: undefined;
|
|
538
|
+
message.minSelfDelegation = object.minSelfDelegation ?? "";
|
|
539
|
+
message.unbondingOnHoldRefCount = object.unbondingOnHoldRefCount ?? 0;
|
|
540
|
+
message.unbondingIds = object.unbondingIds?.map((e) => e) || [];
|
|
541
|
+
return message;
|
|
542
|
+
},
|
|
543
|
+
};
|
|
544
|
+
function createBaseValAddresses() {
|
|
545
|
+
return { addresses: [] };
|
|
546
|
+
}
|
|
547
|
+
export const ValAddresses = {
|
|
548
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
549
|
+
for (const v of message.addresses) {
|
|
550
|
+
writer.uint32(10).string(v);
|
|
551
|
+
}
|
|
552
|
+
return writer;
|
|
553
|
+
},
|
|
554
|
+
decode(input, length) {
|
|
555
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
556
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
557
|
+
const message = createBaseValAddresses();
|
|
558
|
+
while (reader.pos < end) {
|
|
559
|
+
const tag = reader.uint32();
|
|
560
|
+
switch (tag >>> 3) {
|
|
561
|
+
case 1:
|
|
562
|
+
message.addresses.push(reader.string());
|
|
563
|
+
break;
|
|
564
|
+
default:
|
|
565
|
+
reader.skipType(tag & 7);
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
return message;
|
|
570
|
+
},
|
|
571
|
+
fromJSON(object) {
|
|
572
|
+
return { addresses: Array.isArray(object?.addresses) ? object.addresses.map((e) => String(e)) : [] };
|
|
573
|
+
},
|
|
574
|
+
toJSON(message) {
|
|
575
|
+
const obj = {};
|
|
576
|
+
if (message.addresses) {
|
|
577
|
+
obj.addresses = message.addresses.map((e) => e);
|
|
578
|
+
}
|
|
579
|
+
else {
|
|
580
|
+
obj.addresses = [];
|
|
581
|
+
}
|
|
582
|
+
return obj;
|
|
583
|
+
},
|
|
584
|
+
fromPartial(object) {
|
|
585
|
+
const message = createBaseValAddresses();
|
|
586
|
+
message.addresses = object.addresses?.map((e) => e) || [];
|
|
587
|
+
return message;
|
|
588
|
+
},
|
|
589
|
+
};
|
|
590
|
+
function createBaseDVPair() {
|
|
591
|
+
return { delegatorAddress: "", validatorAddress: "" };
|
|
592
|
+
}
|
|
593
|
+
export const DVPair = {
|
|
594
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
595
|
+
if (message.delegatorAddress !== "") {
|
|
596
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
597
|
+
}
|
|
598
|
+
if (message.validatorAddress !== "") {
|
|
599
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
600
|
+
}
|
|
601
|
+
return writer;
|
|
602
|
+
},
|
|
603
|
+
decode(input, length) {
|
|
604
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
605
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
606
|
+
const message = createBaseDVPair();
|
|
607
|
+
while (reader.pos < end) {
|
|
608
|
+
const tag = reader.uint32();
|
|
609
|
+
switch (tag >>> 3) {
|
|
610
|
+
case 1:
|
|
611
|
+
message.delegatorAddress = reader.string();
|
|
612
|
+
break;
|
|
613
|
+
case 2:
|
|
614
|
+
message.validatorAddress = reader.string();
|
|
615
|
+
break;
|
|
616
|
+
default:
|
|
617
|
+
reader.skipType(tag & 7);
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
return message;
|
|
622
|
+
},
|
|
623
|
+
fromJSON(object) {
|
|
624
|
+
return {
|
|
625
|
+
delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "",
|
|
626
|
+
validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "",
|
|
627
|
+
};
|
|
628
|
+
},
|
|
629
|
+
toJSON(message) {
|
|
630
|
+
const obj = {};
|
|
631
|
+
message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
|
|
632
|
+
message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
|
|
633
|
+
return obj;
|
|
634
|
+
},
|
|
635
|
+
fromPartial(object) {
|
|
636
|
+
const message = createBaseDVPair();
|
|
637
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
638
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
639
|
+
return message;
|
|
640
|
+
},
|
|
641
|
+
};
|
|
642
|
+
function createBaseDVPairs() {
|
|
643
|
+
return { pairs: [] };
|
|
644
|
+
}
|
|
645
|
+
export const DVPairs = {
|
|
646
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
647
|
+
for (const v of message.pairs) {
|
|
648
|
+
DVPair.encode(v, writer.uint32(10).fork()).ldelim();
|
|
649
|
+
}
|
|
650
|
+
return writer;
|
|
651
|
+
},
|
|
652
|
+
decode(input, length) {
|
|
653
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
654
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
655
|
+
const message = createBaseDVPairs();
|
|
656
|
+
while (reader.pos < end) {
|
|
657
|
+
const tag = reader.uint32();
|
|
658
|
+
switch (tag >>> 3) {
|
|
659
|
+
case 1:
|
|
660
|
+
message.pairs.push(DVPair.decode(reader, reader.uint32()));
|
|
661
|
+
break;
|
|
662
|
+
default:
|
|
663
|
+
reader.skipType(tag & 7);
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
return message;
|
|
668
|
+
},
|
|
669
|
+
fromJSON(object) {
|
|
670
|
+
return { pairs: Array.isArray(object?.pairs) ? object.pairs.map((e) => DVPair.fromJSON(e)) : [] };
|
|
671
|
+
},
|
|
672
|
+
toJSON(message) {
|
|
673
|
+
const obj = {};
|
|
674
|
+
if (message.pairs) {
|
|
675
|
+
obj.pairs = message.pairs.map((e) => e ? DVPair.toJSON(e) : undefined);
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
obj.pairs = [];
|
|
679
|
+
}
|
|
680
|
+
return obj;
|
|
681
|
+
},
|
|
682
|
+
fromPartial(object) {
|
|
683
|
+
const message = createBaseDVPairs();
|
|
684
|
+
message.pairs = object.pairs?.map((e) => DVPair.fromPartial(e)) || [];
|
|
685
|
+
return message;
|
|
686
|
+
},
|
|
687
|
+
};
|
|
688
|
+
function createBaseDVVTriplet() {
|
|
689
|
+
return { delegatorAddress: "", validatorSrcAddress: "", validatorDstAddress: "" };
|
|
690
|
+
}
|
|
691
|
+
export const DVVTriplet = {
|
|
692
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
693
|
+
if (message.delegatorAddress !== "") {
|
|
694
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
695
|
+
}
|
|
696
|
+
if (message.validatorSrcAddress !== "") {
|
|
697
|
+
writer.uint32(18).string(message.validatorSrcAddress);
|
|
698
|
+
}
|
|
699
|
+
if (message.validatorDstAddress !== "") {
|
|
700
|
+
writer.uint32(26).string(message.validatorDstAddress);
|
|
701
|
+
}
|
|
702
|
+
return writer;
|
|
703
|
+
},
|
|
704
|
+
decode(input, length) {
|
|
705
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
706
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
707
|
+
const message = createBaseDVVTriplet();
|
|
708
|
+
while (reader.pos < end) {
|
|
709
|
+
const tag = reader.uint32();
|
|
710
|
+
switch (tag >>> 3) {
|
|
711
|
+
case 1:
|
|
712
|
+
message.delegatorAddress = reader.string();
|
|
713
|
+
break;
|
|
714
|
+
case 2:
|
|
715
|
+
message.validatorSrcAddress = reader.string();
|
|
716
|
+
break;
|
|
717
|
+
case 3:
|
|
718
|
+
message.validatorDstAddress = reader.string();
|
|
719
|
+
break;
|
|
720
|
+
default:
|
|
721
|
+
reader.skipType(tag & 7);
|
|
722
|
+
break;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
return message;
|
|
726
|
+
},
|
|
727
|
+
fromJSON(object) {
|
|
728
|
+
return {
|
|
729
|
+
delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "",
|
|
730
|
+
validatorSrcAddress: isSet(object.validatorSrcAddress) ? String(object.validatorSrcAddress) : "",
|
|
731
|
+
validatorDstAddress: isSet(object.validatorDstAddress) ? String(object.validatorDstAddress) : "",
|
|
732
|
+
};
|
|
733
|
+
},
|
|
734
|
+
toJSON(message) {
|
|
735
|
+
const obj = {};
|
|
736
|
+
message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
|
|
737
|
+
message.validatorSrcAddress !== undefined && (obj.validatorSrcAddress = message.validatorSrcAddress);
|
|
738
|
+
message.validatorDstAddress !== undefined && (obj.validatorDstAddress = message.validatorDstAddress);
|
|
739
|
+
return obj;
|
|
740
|
+
},
|
|
741
|
+
fromPartial(object) {
|
|
742
|
+
const message = createBaseDVVTriplet();
|
|
743
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
744
|
+
message.validatorSrcAddress = object.validatorSrcAddress ?? "";
|
|
745
|
+
message.validatorDstAddress = object.validatorDstAddress ?? "";
|
|
746
|
+
return message;
|
|
747
|
+
},
|
|
748
|
+
};
|
|
749
|
+
function createBaseDVVTriplets() {
|
|
750
|
+
return { triplets: [] };
|
|
751
|
+
}
|
|
752
|
+
export const DVVTriplets = {
|
|
753
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
754
|
+
for (const v of message.triplets) {
|
|
755
|
+
DVVTriplet.encode(v, writer.uint32(10).fork()).ldelim();
|
|
756
|
+
}
|
|
757
|
+
return writer;
|
|
758
|
+
},
|
|
759
|
+
decode(input, length) {
|
|
760
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
761
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
762
|
+
const message = createBaseDVVTriplets();
|
|
763
|
+
while (reader.pos < end) {
|
|
764
|
+
const tag = reader.uint32();
|
|
765
|
+
switch (tag >>> 3) {
|
|
766
|
+
case 1:
|
|
767
|
+
message.triplets.push(DVVTriplet.decode(reader, reader.uint32()));
|
|
768
|
+
break;
|
|
769
|
+
default:
|
|
770
|
+
reader.skipType(tag & 7);
|
|
771
|
+
break;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
return message;
|
|
775
|
+
},
|
|
776
|
+
fromJSON(object) {
|
|
777
|
+
return { triplets: Array.isArray(object?.triplets) ? object.triplets.map((e) => DVVTriplet.fromJSON(e)) : [] };
|
|
778
|
+
},
|
|
779
|
+
toJSON(message) {
|
|
780
|
+
const obj = {};
|
|
781
|
+
if (message.triplets) {
|
|
782
|
+
obj.triplets = message.triplets.map((e) => e ? DVVTriplet.toJSON(e) : undefined);
|
|
783
|
+
}
|
|
784
|
+
else {
|
|
785
|
+
obj.triplets = [];
|
|
786
|
+
}
|
|
787
|
+
return obj;
|
|
788
|
+
},
|
|
789
|
+
fromPartial(object) {
|
|
790
|
+
const message = createBaseDVVTriplets();
|
|
791
|
+
message.triplets = object.triplets?.map((e) => DVVTriplet.fromPartial(e)) || [];
|
|
792
|
+
return message;
|
|
793
|
+
},
|
|
794
|
+
};
|
|
795
|
+
function createBaseDelegation() {
|
|
796
|
+
return { delegatorAddress: "", validatorAddress: "", shares: "" };
|
|
797
|
+
}
|
|
798
|
+
export const Delegation = {
|
|
799
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
800
|
+
if (message.delegatorAddress !== "") {
|
|
801
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
802
|
+
}
|
|
803
|
+
if (message.validatorAddress !== "") {
|
|
804
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
805
|
+
}
|
|
806
|
+
if (message.shares !== "") {
|
|
807
|
+
writer.uint32(26).string(message.shares);
|
|
808
|
+
}
|
|
809
|
+
return writer;
|
|
810
|
+
},
|
|
811
|
+
decode(input, length) {
|
|
812
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
813
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
814
|
+
const message = createBaseDelegation();
|
|
815
|
+
while (reader.pos < end) {
|
|
816
|
+
const tag = reader.uint32();
|
|
817
|
+
switch (tag >>> 3) {
|
|
818
|
+
case 1:
|
|
819
|
+
message.delegatorAddress = reader.string();
|
|
820
|
+
break;
|
|
821
|
+
case 2:
|
|
822
|
+
message.validatorAddress = reader.string();
|
|
823
|
+
break;
|
|
824
|
+
case 3:
|
|
825
|
+
message.shares = reader.string();
|
|
826
|
+
break;
|
|
827
|
+
default:
|
|
828
|
+
reader.skipType(tag & 7);
|
|
829
|
+
break;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
return message;
|
|
833
|
+
},
|
|
834
|
+
fromJSON(object) {
|
|
835
|
+
return {
|
|
836
|
+
delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "",
|
|
837
|
+
validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "",
|
|
838
|
+
shares: isSet(object.shares) ? String(object.shares) : "",
|
|
839
|
+
};
|
|
840
|
+
},
|
|
841
|
+
toJSON(message) {
|
|
842
|
+
const obj = {};
|
|
843
|
+
message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
|
|
844
|
+
message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
|
|
845
|
+
message.shares !== undefined && (obj.shares = message.shares);
|
|
846
|
+
return obj;
|
|
847
|
+
},
|
|
848
|
+
fromPartial(object) {
|
|
849
|
+
const message = createBaseDelegation();
|
|
850
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
851
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
852
|
+
message.shares = object.shares ?? "";
|
|
853
|
+
return message;
|
|
854
|
+
},
|
|
855
|
+
};
|
|
856
|
+
function createBaseUnbondingDelegation() {
|
|
857
|
+
return { delegatorAddress: "", validatorAddress: "", entries: [] };
|
|
858
|
+
}
|
|
859
|
+
export const UnbondingDelegation = {
|
|
860
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
861
|
+
if (message.delegatorAddress !== "") {
|
|
862
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
863
|
+
}
|
|
864
|
+
if (message.validatorAddress !== "") {
|
|
865
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
866
|
+
}
|
|
867
|
+
for (const v of message.entries) {
|
|
868
|
+
UnbondingDelegationEntry.encode(v, writer.uint32(26).fork()).ldelim();
|
|
869
|
+
}
|
|
870
|
+
return writer;
|
|
871
|
+
},
|
|
872
|
+
decode(input, length) {
|
|
873
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
874
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
875
|
+
const message = createBaseUnbondingDelegation();
|
|
876
|
+
while (reader.pos < end) {
|
|
877
|
+
const tag = reader.uint32();
|
|
878
|
+
switch (tag >>> 3) {
|
|
879
|
+
case 1:
|
|
880
|
+
message.delegatorAddress = reader.string();
|
|
881
|
+
break;
|
|
882
|
+
case 2:
|
|
883
|
+
message.validatorAddress = reader.string();
|
|
884
|
+
break;
|
|
885
|
+
case 3:
|
|
886
|
+
message.entries.push(UnbondingDelegationEntry.decode(reader, reader.uint32()));
|
|
887
|
+
break;
|
|
888
|
+
default:
|
|
889
|
+
reader.skipType(tag & 7);
|
|
890
|
+
break;
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
return message;
|
|
894
|
+
},
|
|
895
|
+
fromJSON(object) {
|
|
896
|
+
return {
|
|
897
|
+
delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "",
|
|
898
|
+
validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "",
|
|
899
|
+
entries: Array.isArray(object?.entries)
|
|
900
|
+
? object.entries.map((e) => UnbondingDelegationEntry.fromJSON(e))
|
|
901
|
+
: [],
|
|
902
|
+
};
|
|
903
|
+
},
|
|
904
|
+
toJSON(message) {
|
|
905
|
+
const obj = {};
|
|
906
|
+
message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
|
|
907
|
+
message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
|
|
908
|
+
if (message.entries) {
|
|
909
|
+
obj.entries = message.entries.map((e) => e ? UnbondingDelegationEntry.toJSON(e) : undefined);
|
|
910
|
+
}
|
|
911
|
+
else {
|
|
912
|
+
obj.entries = [];
|
|
913
|
+
}
|
|
914
|
+
return obj;
|
|
915
|
+
},
|
|
916
|
+
fromPartial(object) {
|
|
917
|
+
const message = createBaseUnbondingDelegation();
|
|
918
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
919
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
920
|
+
message.entries = object.entries?.map((e) => UnbondingDelegationEntry.fromPartial(e)) || [];
|
|
921
|
+
return message;
|
|
922
|
+
},
|
|
923
|
+
};
|
|
924
|
+
function createBaseUnbondingDelegationEntry() {
|
|
925
|
+
return {
|
|
926
|
+
creationHeight: 0,
|
|
927
|
+
completionTime: undefined,
|
|
928
|
+
initialBalance: "",
|
|
929
|
+
balance: "",
|
|
930
|
+
unbondingId: 0,
|
|
931
|
+
unbondingOnHoldRefCount: 0,
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
export const UnbondingDelegationEntry = {
|
|
935
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
936
|
+
if (message.creationHeight !== 0) {
|
|
937
|
+
writer.uint32(8).int64(message.creationHeight);
|
|
938
|
+
}
|
|
939
|
+
if (message.completionTime !== undefined) {
|
|
940
|
+
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(18).fork()).ldelim();
|
|
941
|
+
}
|
|
942
|
+
if (message.initialBalance !== "") {
|
|
943
|
+
writer.uint32(26).string(message.initialBalance);
|
|
944
|
+
}
|
|
945
|
+
if (message.balance !== "") {
|
|
946
|
+
writer.uint32(34).string(message.balance);
|
|
947
|
+
}
|
|
948
|
+
if (message.unbondingId !== 0) {
|
|
949
|
+
writer.uint32(40).uint64(message.unbondingId);
|
|
950
|
+
}
|
|
951
|
+
if (message.unbondingOnHoldRefCount !== 0) {
|
|
952
|
+
writer.uint32(48).int64(message.unbondingOnHoldRefCount);
|
|
953
|
+
}
|
|
954
|
+
return writer;
|
|
955
|
+
},
|
|
956
|
+
decode(input, length) {
|
|
957
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
958
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
959
|
+
const message = createBaseUnbondingDelegationEntry();
|
|
960
|
+
while (reader.pos < end) {
|
|
961
|
+
const tag = reader.uint32();
|
|
962
|
+
switch (tag >>> 3) {
|
|
963
|
+
case 1:
|
|
964
|
+
message.creationHeight = longToNumber(reader.int64());
|
|
965
|
+
break;
|
|
966
|
+
case 2:
|
|
967
|
+
message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
968
|
+
break;
|
|
969
|
+
case 3:
|
|
970
|
+
message.initialBalance = reader.string();
|
|
971
|
+
break;
|
|
972
|
+
case 4:
|
|
973
|
+
message.balance = reader.string();
|
|
974
|
+
break;
|
|
975
|
+
case 5:
|
|
976
|
+
message.unbondingId = longToNumber(reader.uint64());
|
|
977
|
+
break;
|
|
978
|
+
case 6:
|
|
979
|
+
message.unbondingOnHoldRefCount = longToNumber(reader.int64());
|
|
980
|
+
break;
|
|
981
|
+
default:
|
|
982
|
+
reader.skipType(tag & 7);
|
|
983
|
+
break;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
return message;
|
|
987
|
+
},
|
|
988
|
+
fromJSON(object) {
|
|
989
|
+
return {
|
|
990
|
+
creationHeight: isSet(object.creationHeight) ? Number(object.creationHeight) : 0,
|
|
991
|
+
completionTime: isSet(object.completionTime) ? fromJsonTimestamp(object.completionTime) : undefined,
|
|
992
|
+
initialBalance: isSet(object.initialBalance) ? String(object.initialBalance) : "",
|
|
993
|
+
balance: isSet(object.balance) ? String(object.balance) : "",
|
|
994
|
+
unbondingId: isSet(object.unbondingId) ? Number(object.unbondingId) : 0,
|
|
995
|
+
unbondingOnHoldRefCount: isSet(object.unbondingOnHoldRefCount) ? Number(object.unbondingOnHoldRefCount) : 0,
|
|
996
|
+
};
|
|
997
|
+
},
|
|
998
|
+
toJSON(message) {
|
|
999
|
+
const obj = {};
|
|
1000
|
+
message.creationHeight !== undefined && (obj.creationHeight = Math.round(message.creationHeight));
|
|
1001
|
+
message.completionTime !== undefined && (obj.completionTime = message.completionTime.toISOString());
|
|
1002
|
+
message.initialBalance !== undefined && (obj.initialBalance = message.initialBalance);
|
|
1003
|
+
message.balance !== undefined && (obj.balance = message.balance);
|
|
1004
|
+
message.unbondingId !== undefined && (obj.unbondingId = Math.round(message.unbondingId));
|
|
1005
|
+
message.unbondingOnHoldRefCount !== undefined
|
|
1006
|
+
&& (obj.unbondingOnHoldRefCount = Math.round(message.unbondingOnHoldRefCount));
|
|
1007
|
+
return obj;
|
|
1008
|
+
},
|
|
1009
|
+
fromPartial(object) {
|
|
1010
|
+
const message = createBaseUnbondingDelegationEntry();
|
|
1011
|
+
message.creationHeight = object.creationHeight ?? 0;
|
|
1012
|
+
message.completionTime = object.completionTime ?? undefined;
|
|
1013
|
+
message.initialBalance = object.initialBalance ?? "";
|
|
1014
|
+
message.balance = object.balance ?? "";
|
|
1015
|
+
message.unbondingId = object.unbondingId ?? 0;
|
|
1016
|
+
message.unbondingOnHoldRefCount = object.unbondingOnHoldRefCount ?? 0;
|
|
1017
|
+
return message;
|
|
1018
|
+
},
|
|
1019
|
+
};
|
|
1020
|
+
function createBaseRedelegationEntry() {
|
|
1021
|
+
return {
|
|
1022
|
+
creationHeight: 0,
|
|
1023
|
+
completionTime: undefined,
|
|
1024
|
+
initialBalance: "",
|
|
1025
|
+
sharesDst: "",
|
|
1026
|
+
unbondingId: 0,
|
|
1027
|
+
unbondingOnHoldRefCount: 0,
|
|
1028
|
+
};
|
|
1029
|
+
}
|
|
1030
|
+
export const RedelegationEntry = {
|
|
1031
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1032
|
+
if (message.creationHeight !== 0) {
|
|
1033
|
+
writer.uint32(8).int64(message.creationHeight);
|
|
1034
|
+
}
|
|
1035
|
+
if (message.completionTime !== undefined) {
|
|
1036
|
+
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(18).fork()).ldelim();
|
|
1037
|
+
}
|
|
1038
|
+
if (message.initialBalance !== "") {
|
|
1039
|
+
writer.uint32(26).string(message.initialBalance);
|
|
1040
|
+
}
|
|
1041
|
+
if (message.sharesDst !== "") {
|
|
1042
|
+
writer.uint32(34).string(message.sharesDst);
|
|
1043
|
+
}
|
|
1044
|
+
if (message.unbondingId !== 0) {
|
|
1045
|
+
writer.uint32(40).uint64(message.unbondingId);
|
|
1046
|
+
}
|
|
1047
|
+
if (message.unbondingOnHoldRefCount !== 0) {
|
|
1048
|
+
writer.uint32(48).int64(message.unbondingOnHoldRefCount);
|
|
1049
|
+
}
|
|
1050
|
+
return writer;
|
|
1051
|
+
},
|
|
1052
|
+
decode(input, length) {
|
|
1053
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1054
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1055
|
+
const message = createBaseRedelegationEntry();
|
|
1056
|
+
while (reader.pos < end) {
|
|
1057
|
+
const tag = reader.uint32();
|
|
1058
|
+
switch (tag >>> 3) {
|
|
1059
|
+
case 1:
|
|
1060
|
+
message.creationHeight = longToNumber(reader.int64());
|
|
1061
|
+
break;
|
|
1062
|
+
case 2:
|
|
1063
|
+
message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1064
|
+
break;
|
|
1065
|
+
case 3:
|
|
1066
|
+
message.initialBalance = reader.string();
|
|
1067
|
+
break;
|
|
1068
|
+
case 4:
|
|
1069
|
+
message.sharesDst = reader.string();
|
|
1070
|
+
break;
|
|
1071
|
+
case 5:
|
|
1072
|
+
message.unbondingId = longToNumber(reader.uint64());
|
|
1073
|
+
break;
|
|
1074
|
+
case 6:
|
|
1075
|
+
message.unbondingOnHoldRefCount = longToNumber(reader.int64());
|
|
1076
|
+
break;
|
|
1077
|
+
default:
|
|
1078
|
+
reader.skipType(tag & 7);
|
|
1079
|
+
break;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
return message;
|
|
1083
|
+
},
|
|
1084
|
+
fromJSON(object) {
|
|
1085
|
+
return {
|
|
1086
|
+
creationHeight: isSet(object.creationHeight) ? Number(object.creationHeight) : 0,
|
|
1087
|
+
completionTime: isSet(object.completionTime) ? fromJsonTimestamp(object.completionTime) : undefined,
|
|
1088
|
+
initialBalance: isSet(object.initialBalance) ? String(object.initialBalance) : "",
|
|
1089
|
+
sharesDst: isSet(object.sharesDst) ? String(object.sharesDst) : "",
|
|
1090
|
+
unbondingId: isSet(object.unbondingId) ? Number(object.unbondingId) : 0,
|
|
1091
|
+
unbondingOnHoldRefCount: isSet(object.unbondingOnHoldRefCount) ? Number(object.unbondingOnHoldRefCount) : 0,
|
|
1092
|
+
};
|
|
1093
|
+
},
|
|
1094
|
+
toJSON(message) {
|
|
1095
|
+
const obj = {};
|
|
1096
|
+
message.creationHeight !== undefined && (obj.creationHeight = Math.round(message.creationHeight));
|
|
1097
|
+
message.completionTime !== undefined && (obj.completionTime = message.completionTime.toISOString());
|
|
1098
|
+
message.initialBalance !== undefined && (obj.initialBalance = message.initialBalance);
|
|
1099
|
+
message.sharesDst !== undefined && (obj.sharesDst = message.sharesDst);
|
|
1100
|
+
message.unbondingId !== undefined && (obj.unbondingId = Math.round(message.unbondingId));
|
|
1101
|
+
message.unbondingOnHoldRefCount !== undefined
|
|
1102
|
+
&& (obj.unbondingOnHoldRefCount = Math.round(message.unbondingOnHoldRefCount));
|
|
1103
|
+
return obj;
|
|
1104
|
+
},
|
|
1105
|
+
fromPartial(object) {
|
|
1106
|
+
const message = createBaseRedelegationEntry();
|
|
1107
|
+
message.creationHeight = object.creationHeight ?? 0;
|
|
1108
|
+
message.completionTime = object.completionTime ?? undefined;
|
|
1109
|
+
message.initialBalance = object.initialBalance ?? "";
|
|
1110
|
+
message.sharesDst = object.sharesDst ?? "";
|
|
1111
|
+
message.unbondingId = object.unbondingId ?? 0;
|
|
1112
|
+
message.unbondingOnHoldRefCount = object.unbondingOnHoldRefCount ?? 0;
|
|
1113
|
+
return message;
|
|
1114
|
+
},
|
|
1115
|
+
};
|
|
1116
|
+
function createBaseRedelegation() {
|
|
1117
|
+
return { delegatorAddress: "", validatorSrcAddress: "", validatorDstAddress: "", entries: [] };
|
|
1118
|
+
}
|
|
1119
|
+
export const Redelegation = {
|
|
1120
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1121
|
+
if (message.delegatorAddress !== "") {
|
|
1122
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
1123
|
+
}
|
|
1124
|
+
if (message.validatorSrcAddress !== "") {
|
|
1125
|
+
writer.uint32(18).string(message.validatorSrcAddress);
|
|
1126
|
+
}
|
|
1127
|
+
if (message.validatorDstAddress !== "") {
|
|
1128
|
+
writer.uint32(26).string(message.validatorDstAddress);
|
|
1129
|
+
}
|
|
1130
|
+
for (const v of message.entries) {
|
|
1131
|
+
RedelegationEntry.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1132
|
+
}
|
|
1133
|
+
return writer;
|
|
1134
|
+
},
|
|
1135
|
+
decode(input, length) {
|
|
1136
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1137
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1138
|
+
const message = createBaseRedelegation();
|
|
1139
|
+
while (reader.pos < end) {
|
|
1140
|
+
const tag = reader.uint32();
|
|
1141
|
+
switch (tag >>> 3) {
|
|
1142
|
+
case 1:
|
|
1143
|
+
message.delegatorAddress = reader.string();
|
|
1144
|
+
break;
|
|
1145
|
+
case 2:
|
|
1146
|
+
message.validatorSrcAddress = reader.string();
|
|
1147
|
+
break;
|
|
1148
|
+
case 3:
|
|
1149
|
+
message.validatorDstAddress = reader.string();
|
|
1150
|
+
break;
|
|
1151
|
+
case 4:
|
|
1152
|
+
message.entries.push(RedelegationEntry.decode(reader, reader.uint32()));
|
|
1153
|
+
break;
|
|
1154
|
+
default:
|
|
1155
|
+
reader.skipType(tag & 7);
|
|
1156
|
+
break;
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
return message;
|
|
1160
|
+
},
|
|
1161
|
+
fromJSON(object) {
|
|
1162
|
+
return {
|
|
1163
|
+
delegatorAddress: isSet(object.delegatorAddress) ? String(object.delegatorAddress) : "",
|
|
1164
|
+
validatorSrcAddress: isSet(object.validatorSrcAddress) ? String(object.validatorSrcAddress) : "",
|
|
1165
|
+
validatorDstAddress: isSet(object.validatorDstAddress) ? String(object.validatorDstAddress) : "",
|
|
1166
|
+
entries: Array.isArray(object?.entries) ? object.entries.map((e) => RedelegationEntry.fromJSON(e)) : [],
|
|
1167
|
+
};
|
|
1168
|
+
},
|
|
1169
|
+
toJSON(message) {
|
|
1170
|
+
const obj = {};
|
|
1171
|
+
message.delegatorAddress !== undefined && (obj.delegatorAddress = message.delegatorAddress);
|
|
1172
|
+
message.validatorSrcAddress !== undefined && (obj.validatorSrcAddress = message.validatorSrcAddress);
|
|
1173
|
+
message.validatorDstAddress !== undefined && (obj.validatorDstAddress = message.validatorDstAddress);
|
|
1174
|
+
if (message.entries) {
|
|
1175
|
+
obj.entries = message.entries.map((e) => e ? RedelegationEntry.toJSON(e) : undefined);
|
|
1176
|
+
}
|
|
1177
|
+
else {
|
|
1178
|
+
obj.entries = [];
|
|
1179
|
+
}
|
|
1180
|
+
return obj;
|
|
1181
|
+
},
|
|
1182
|
+
fromPartial(object) {
|
|
1183
|
+
const message = createBaseRedelegation();
|
|
1184
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1185
|
+
message.validatorSrcAddress = object.validatorSrcAddress ?? "";
|
|
1186
|
+
message.validatorDstAddress = object.validatorDstAddress ?? "";
|
|
1187
|
+
message.entries = object.entries?.map((e) => RedelegationEntry.fromPartial(e)) || [];
|
|
1188
|
+
return message;
|
|
1189
|
+
},
|
|
1190
|
+
};
|
|
1191
|
+
function createBaseParams() {
|
|
1192
|
+
return {
|
|
1193
|
+
unbondingTime: undefined,
|
|
1194
|
+
maxValidators: 0,
|
|
1195
|
+
maxEntries: 0,
|
|
1196
|
+
historicalEntries: 0,
|
|
1197
|
+
bondDenom: "",
|
|
1198
|
+
minCommissionRate: "",
|
|
1199
|
+
};
|
|
1200
|
+
}
|
|
1201
|
+
export const Params = {
|
|
1202
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1203
|
+
if (message.unbondingTime !== undefined) {
|
|
1204
|
+
Duration.encode(message.unbondingTime, writer.uint32(10).fork()).ldelim();
|
|
1205
|
+
}
|
|
1206
|
+
if (message.maxValidators !== 0) {
|
|
1207
|
+
writer.uint32(16).uint32(message.maxValidators);
|
|
1208
|
+
}
|
|
1209
|
+
if (message.maxEntries !== 0) {
|
|
1210
|
+
writer.uint32(24).uint32(message.maxEntries);
|
|
1211
|
+
}
|
|
1212
|
+
if (message.historicalEntries !== 0) {
|
|
1213
|
+
writer.uint32(32).uint32(message.historicalEntries);
|
|
1214
|
+
}
|
|
1215
|
+
if (message.bondDenom !== "") {
|
|
1216
|
+
writer.uint32(42).string(message.bondDenom);
|
|
1217
|
+
}
|
|
1218
|
+
if (message.minCommissionRate !== "") {
|
|
1219
|
+
writer.uint32(50).string(message.minCommissionRate);
|
|
1220
|
+
}
|
|
1221
|
+
return writer;
|
|
1222
|
+
},
|
|
1223
|
+
decode(input, length) {
|
|
1224
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1225
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1226
|
+
const message = createBaseParams();
|
|
1227
|
+
while (reader.pos < end) {
|
|
1228
|
+
const tag = reader.uint32();
|
|
1229
|
+
switch (tag >>> 3) {
|
|
1230
|
+
case 1:
|
|
1231
|
+
message.unbondingTime = Duration.decode(reader, reader.uint32());
|
|
1232
|
+
break;
|
|
1233
|
+
case 2:
|
|
1234
|
+
message.maxValidators = reader.uint32();
|
|
1235
|
+
break;
|
|
1236
|
+
case 3:
|
|
1237
|
+
message.maxEntries = reader.uint32();
|
|
1238
|
+
break;
|
|
1239
|
+
case 4:
|
|
1240
|
+
message.historicalEntries = reader.uint32();
|
|
1241
|
+
break;
|
|
1242
|
+
case 5:
|
|
1243
|
+
message.bondDenom = reader.string();
|
|
1244
|
+
break;
|
|
1245
|
+
case 6:
|
|
1246
|
+
message.minCommissionRate = reader.string();
|
|
1247
|
+
break;
|
|
1248
|
+
default:
|
|
1249
|
+
reader.skipType(tag & 7);
|
|
1250
|
+
break;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
return message;
|
|
1254
|
+
},
|
|
1255
|
+
fromJSON(object) {
|
|
1256
|
+
return {
|
|
1257
|
+
unbondingTime: isSet(object.unbondingTime) ? Duration.fromJSON(object.unbondingTime) : undefined,
|
|
1258
|
+
maxValidators: isSet(object.maxValidators) ? Number(object.maxValidators) : 0,
|
|
1259
|
+
maxEntries: isSet(object.maxEntries) ? Number(object.maxEntries) : 0,
|
|
1260
|
+
historicalEntries: isSet(object.historicalEntries) ? Number(object.historicalEntries) : 0,
|
|
1261
|
+
bondDenom: isSet(object.bondDenom) ? String(object.bondDenom) : "",
|
|
1262
|
+
minCommissionRate: isSet(object.minCommissionRate) ? String(object.minCommissionRate) : "",
|
|
1263
|
+
};
|
|
1264
|
+
},
|
|
1265
|
+
toJSON(message) {
|
|
1266
|
+
const obj = {};
|
|
1267
|
+
message.unbondingTime !== undefined
|
|
1268
|
+
&& (obj.unbondingTime = message.unbondingTime ? Duration.toJSON(message.unbondingTime) : undefined);
|
|
1269
|
+
message.maxValidators !== undefined && (obj.maxValidators = Math.round(message.maxValidators));
|
|
1270
|
+
message.maxEntries !== undefined && (obj.maxEntries = Math.round(message.maxEntries));
|
|
1271
|
+
message.historicalEntries !== undefined && (obj.historicalEntries = Math.round(message.historicalEntries));
|
|
1272
|
+
message.bondDenom !== undefined && (obj.bondDenom = message.bondDenom);
|
|
1273
|
+
message.minCommissionRate !== undefined && (obj.minCommissionRate = message.minCommissionRate);
|
|
1274
|
+
return obj;
|
|
1275
|
+
},
|
|
1276
|
+
fromPartial(object) {
|
|
1277
|
+
const message = createBaseParams();
|
|
1278
|
+
message.unbondingTime = (object.unbondingTime !== undefined && object.unbondingTime !== null)
|
|
1279
|
+
? Duration.fromPartial(object.unbondingTime)
|
|
1280
|
+
: undefined;
|
|
1281
|
+
message.maxValidators = object.maxValidators ?? 0;
|
|
1282
|
+
message.maxEntries = object.maxEntries ?? 0;
|
|
1283
|
+
message.historicalEntries = object.historicalEntries ?? 0;
|
|
1284
|
+
message.bondDenom = object.bondDenom ?? "";
|
|
1285
|
+
message.minCommissionRate = object.minCommissionRate ?? "";
|
|
1286
|
+
return message;
|
|
1287
|
+
},
|
|
1288
|
+
};
|
|
1289
|
+
function createBaseDelegationResponse() {
|
|
1290
|
+
return { delegation: undefined, balance: undefined };
|
|
1291
|
+
}
|
|
1292
|
+
export const DelegationResponse = {
|
|
1293
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1294
|
+
if (message.delegation !== undefined) {
|
|
1295
|
+
Delegation.encode(message.delegation, writer.uint32(10).fork()).ldelim();
|
|
1296
|
+
}
|
|
1297
|
+
if (message.balance !== undefined) {
|
|
1298
|
+
Coin.encode(message.balance, writer.uint32(18).fork()).ldelim();
|
|
1299
|
+
}
|
|
1300
|
+
return writer;
|
|
1301
|
+
},
|
|
1302
|
+
decode(input, length) {
|
|
1303
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1304
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1305
|
+
const message = createBaseDelegationResponse();
|
|
1306
|
+
while (reader.pos < end) {
|
|
1307
|
+
const tag = reader.uint32();
|
|
1308
|
+
switch (tag >>> 3) {
|
|
1309
|
+
case 1:
|
|
1310
|
+
message.delegation = Delegation.decode(reader, reader.uint32());
|
|
1311
|
+
break;
|
|
1312
|
+
case 2:
|
|
1313
|
+
message.balance = Coin.decode(reader, reader.uint32());
|
|
1314
|
+
break;
|
|
1315
|
+
default:
|
|
1316
|
+
reader.skipType(tag & 7);
|
|
1317
|
+
break;
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
return message;
|
|
1321
|
+
},
|
|
1322
|
+
fromJSON(object) {
|
|
1323
|
+
return {
|
|
1324
|
+
delegation: isSet(object.delegation) ? Delegation.fromJSON(object.delegation) : undefined,
|
|
1325
|
+
balance: isSet(object.balance) ? Coin.fromJSON(object.balance) : undefined,
|
|
1326
|
+
};
|
|
1327
|
+
},
|
|
1328
|
+
toJSON(message) {
|
|
1329
|
+
const obj = {};
|
|
1330
|
+
message.delegation !== undefined
|
|
1331
|
+
&& (obj.delegation = message.delegation ? Delegation.toJSON(message.delegation) : undefined);
|
|
1332
|
+
message.balance !== undefined && (obj.balance = message.balance ? Coin.toJSON(message.balance) : undefined);
|
|
1333
|
+
return obj;
|
|
1334
|
+
},
|
|
1335
|
+
fromPartial(object) {
|
|
1336
|
+
const message = createBaseDelegationResponse();
|
|
1337
|
+
message.delegation = (object.delegation !== undefined && object.delegation !== null)
|
|
1338
|
+
? Delegation.fromPartial(object.delegation)
|
|
1339
|
+
: undefined;
|
|
1340
|
+
message.balance = (object.balance !== undefined && object.balance !== null)
|
|
1341
|
+
? Coin.fromPartial(object.balance)
|
|
1342
|
+
: undefined;
|
|
1343
|
+
return message;
|
|
1344
|
+
},
|
|
1345
|
+
};
|
|
1346
|
+
function createBaseRedelegationEntryResponse() {
|
|
1347
|
+
return { redelegationEntry: undefined, balance: "" };
|
|
1348
|
+
}
|
|
1349
|
+
export const RedelegationEntryResponse = {
|
|
1350
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1351
|
+
if (message.redelegationEntry !== undefined) {
|
|
1352
|
+
RedelegationEntry.encode(message.redelegationEntry, writer.uint32(10).fork()).ldelim();
|
|
1353
|
+
}
|
|
1354
|
+
if (message.balance !== "") {
|
|
1355
|
+
writer.uint32(34).string(message.balance);
|
|
1356
|
+
}
|
|
1357
|
+
return writer;
|
|
1358
|
+
},
|
|
1359
|
+
decode(input, length) {
|
|
1360
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1361
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1362
|
+
const message = createBaseRedelegationEntryResponse();
|
|
1363
|
+
while (reader.pos < end) {
|
|
1364
|
+
const tag = reader.uint32();
|
|
1365
|
+
switch (tag >>> 3) {
|
|
1366
|
+
case 1:
|
|
1367
|
+
message.redelegationEntry = RedelegationEntry.decode(reader, reader.uint32());
|
|
1368
|
+
break;
|
|
1369
|
+
case 4:
|
|
1370
|
+
message.balance = reader.string();
|
|
1371
|
+
break;
|
|
1372
|
+
default:
|
|
1373
|
+
reader.skipType(tag & 7);
|
|
1374
|
+
break;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
return message;
|
|
1378
|
+
},
|
|
1379
|
+
fromJSON(object) {
|
|
1380
|
+
return {
|
|
1381
|
+
redelegationEntry: isSet(object.redelegationEntry)
|
|
1382
|
+
? RedelegationEntry.fromJSON(object.redelegationEntry)
|
|
1383
|
+
: undefined,
|
|
1384
|
+
balance: isSet(object.balance) ? String(object.balance) : "",
|
|
1385
|
+
};
|
|
1386
|
+
},
|
|
1387
|
+
toJSON(message) {
|
|
1388
|
+
const obj = {};
|
|
1389
|
+
message.redelegationEntry !== undefined && (obj.redelegationEntry = message.redelegationEntry
|
|
1390
|
+
? RedelegationEntry.toJSON(message.redelegationEntry)
|
|
1391
|
+
: undefined);
|
|
1392
|
+
message.balance !== undefined && (obj.balance = message.balance);
|
|
1393
|
+
return obj;
|
|
1394
|
+
},
|
|
1395
|
+
fromPartial(object) {
|
|
1396
|
+
const message = createBaseRedelegationEntryResponse();
|
|
1397
|
+
message.redelegationEntry = (object.redelegationEntry !== undefined && object.redelegationEntry !== null)
|
|
1398
|
+
? RedelegationEntry.fromPartial(object.redelegationEntry)
|
|
1399
|
+
: undefined;
|
|
1400
|
+
message.balance = object.balance ?? "";
|
|
1401
|
+
return message;
|
|
1402
|
+
},
|
|
1403
|
+
};
|
|
1404
|
+
function createBaseRedelegationResponse() {
|
|
1405
|
+
return { redelegation: undefined, entries: [] };
|
|
1406
|
+
}
|
|
1407
|
+
export const RedelegationResponse = {
|
|
1408
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1409
|
+
if (message.redelegation !== undefined) {
|
|
1410
|
+
Redelegation.encode(message.redelegation, writer.uint32(10).fork()).ldelim();
|
|
1411
|
+
}
|
|
1412
|
+
for (const v of message.entries) {
|
|
1413
|
+
RedelegationEntryResponse.encode(v, writer.uint32(18).fork()).ldelim();
|
|
1414
|
+
}
|
|
1415
|
+
return writer;
|
|
1416
|
+
},
|
|
1417
|
+
decode(input, length) {
|
|
1418
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1419
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1420
|
+
const message = createBaseRedelegationResponse();
|
|
1421
|
+
while (reader.pos < end) {
|
|
1422
|
+
const tag = reader.uint32();
|
|
1423
|
+
switch (tag >>> 3) {
|
|
1424
|
+
case 1:
|
|
1425
|
+
message.redelegation = Redelegation.decode(reader, reader.uint32());
|
|
1426
|
+
break;
|
|
1427
|
+
case 2:
|
|
1428
|
+
message.entries.push(RedelegationEntryResponse.decode(reader, reader.uint32()));
|
|
1429
|
+
break;
|
|
1430
|
+
default:
|
|
1431
|
+
reader.skipType(tag & 7);
|
|
1432
|
+
break;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
return message;
|
|
1436
|
+
},
|
|
1437
|
+
fromJSON(object) {
|
|
1438
|
+
return {
|
|
1439
|
+
redelegation: isSet(object.redelegation) ? Redelegation.fromJSON(object.redelegation) : undefined,
|
|
1440
|
+
entries: Array.isArray(object?.entries)
|
|
1441
|
+
? object.entries.map((e) => RedelegationEntryResponse.fromJSON(e))
|
|
1442
|
+
: [],
|
|
1443
|
+
};
|
|
1444
|
+
},
|
|
1445
|
+
toJSON(message) {
|
|
1446
|
+
const obj = {};
|
|
1447
|
+
message.redelegation !== undefined
|
|
1448
|
+
&& (obj.redelegation = message.redelegation ? Redelegation.toJSON(message.redelegation) : undefined);
|
|
1449
|
+
if (message.entries) {
|
|
1450
|
+
obj.entries = message.entries.map((e) => e ? RedelegationEntryResponse.toJSON(e) : undefined);
|
|
1451
|
+
}
|
|
1452
|
+
else {
|
|
1453
|
+
obj.entries = [];
|
|
1454
|
+
}
|
|
1455
|
+
return obj;
|
|
1456
|
+
},
|
|
1457
|
+
fromPartial(object) {
|
|
1458
|
+
const message = createBaseRedelegationResponse();
|
|
1459
|
+
message.redelegation = (object.redelegation !== undefined && object.redelegation !== null)
|
|
1460
|
+
? Redelegation.fromPartial(object.redelegation)
|
|
1461
|
+
: undefined;
|
|
1462
|
+
message.entries = object.entries?.map((e) => RedelegationEntryResponse.fromPartial(e)) || [];
|
|
1463
|
+
return message;
|
|
1464
|
+
},
|
|
1465
|
+
};
|
|
1466
|
+
function createBasePool() {
|
|
1467
|
+
return { notBondedTokens: "", bondedTokens: "" };
|
|
1468
|
+
}
|
|
1469
|
+
export const Pool = {
|
|
1470
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1471
|
+
if (message.notBondedTokens !== "") {
|
|
1472
|
+
writer.uint32(10).string(message.notBondedTokens);
|
|
1473
|
+
}
|
|
1474
|
+
if (message.bondedTokens !== "") {
|
|
1475
|
+
writer.uint32(18).string(message.bondedTokens);
|
|
1476
|
+
}
|
|
1477
|
+
return writer;
|
|
1478
|
+
},
|
|
1479
|
+
decode(input, length) {
|
|
1480
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1481
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1482
|
+
const message = createBasePool();
|
|
1483
|
+
while (reader.pos < end) {
|
|
1484
|
+
const tag = reader.uint32();
|
|
1485
|
+
switch (tag >>> 3) {
|
|
1486
|
+
case 1:
|
|
1487
|
+
message.notBondedTokens = reader.string();
|
|
1488
|
+
break;
|
|
1489
|
+
case 2:
|
|
1490
|
+
message.bondedTokens = reader.string();
|
|
1491
|
+
break;
|
|
1492
|
+
default:
|
|
1493
|
+
reader.skipType(tag & 7);
|
|
1494
|
+
break;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
return message;
|
|
1498
|
+
},
|
|
1499
|
+
fromJSON(object) {
|
|
1500
|
+
return {
|
|
1501
|
+
notBondedTokens: isSet(object.notBondedTokens) ? String(object.notBondedTokens) : "",
|
|
1502
|
+
bondedTokens: isSet(object.bondedTokens) ? String(object.bondedTokens) : "",
|
|
1503
|
+
};
|
|
1504
|
+
},
|
|
1505
|
+
toJSON(message) {
|
|
1506
|
+
const obj = {};
|
|
1507
|
+
message.notBondedTokens !== undefined && (obj.notBondedTokens = message.notBondedTokens);
|
|
1508
|
+
message.bondedTokens !== undefined && (obj.bondedTokens = message.bondedTokens);
|
|
1509
|
+
return obj;
|
|
1510
|
+
},
|
|
1511
|
+
fromPartial(object) {
|
|
1512
|
+
const message = createBasePool();
|
|
1513
|
+
message.notBondedTokens = object.notBondedTokens ?? "";
|
|
1514
|
+
message.bondedTokens = object.bondedTokens ?? "";
|
|
1515
|
+
return message;
|
|
1516
|
+
},
|
|
1517
|
+
};
|
|
1518
|
+
function createBaseValidatorUpdates() {
|
|
1519
|
+
return { updates: [] };
|
|
1520
|
+
}
|
|
1521
|
+
export const ValidatorUpdates = {
|
|
1522
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1523
|
+
for (const v of message.updates) {
|
|
1524
|
+
ValidatorUpdate.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1525
|
+
}
|
|
1526
|
+
return writer;
|
|
1527
|
+
},
|
|
1528
|
+
decode(input, length) {
|
|
1529
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1530
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1531
|
+
const message = createBaseValidatorUpdates();
|
|
1532
|
+
while (reader.pos < end) {
|
|
1533
|
+
const tag = reader.uint32();
|
|
1534
|
+
switch (tag >>> 3) {
|
|
1535
|
+
case 1:
|
|
1536
|
+
message.updates.push(ValidatorUpdate.decode(reader, reader.uint32()));
|
|
1537
|
+
break;
|
|
1538
|
+
default:
|
|
1539
|
+
reader.skipType(tag & 7);
|
|
1540
|
+
break;
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
return message;
|
|
1544
|
+
},
|
|
1545
|
+
fromJSON(object) {
|
|
1546
|
+
return {
|
|
1547
|
+
updates: Array.isArray(object?.updates) ? object.updates.map((e) => ValidatorUpdate.fromJSON(e)) : [],
|
|
1548
|
+
};
|
|
1549
|
+
},
|
|
1550
|
+
toJSON(message) {
|
|
1551
|
+
const obj = {};
|
|
1552
|
+
if (message.updates) {
|
|
1553
|
+
obj.updates = message.updates.map((e) => e ? ValidatorUpdate.toJSON(e) : undefined);
|
|
1554
|
+
}
|
|
1555
|
+
else {
|
|
1556
|
+
obj.updates = [];
|
|
1557
|
+
}
|
|
1558
|
+
return obj;
|
|
1559
|
+
},
|
|
1560
|
+
fromPartial(object) {
|
|
1561
|
+
const message = createBaseValidatorUpdates();
|
|
1562
|
+
message.updates = object.updates?.map((e) => ValidatorUpdate.fromPartial(e)) || [];
|
|
1563
|
+
return message;
|
|
1564
|
+
},
|
|
1565
|
+
};
|
|
1566
|
+
var globalThis = (() => {
|
|
1567
|
+
if (typeof globalThis !== "undefined") {
|
|
1568
|
+
return globalThis;
|
|
1569
|
+
}
|
|
1570
|
+
if (typeof self !== "undefined") {
|
|
1571
|
+
return self;
|
|
1572
|
+
}
|
|
1573
|
+
if (typeof window !== "undefined") {
|
|
1574
|
+
return window;
|
|
1575
|
+
}
|
|
1576
|
+
if (typeof global !== "undefined") {
|
|
1577
|
+
return global;
|
|
1578
|
+
}
|
|
1579
|
+
throw "Unable to locate global object";
|
|
1580
|
+
})();
|
|
1581
|
+
function toTimestamp(date) {
|
|
1582
|
+
const seconds = date.getTime() / 1000;
|
|
1583
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
1584
|
+
return { seconds, nanos };
|
|
1585
|
+
}
|
|
1586
|
+
function fromTimestamp(t) {
|
|
1587
|
+
let millis = t.seconds * 1000;
|
|
1588
|
+
millis += t.nanos / 1000000;
|
|
1589
|
+
return new Date(millis);
|
|
1590
|
+
}
|
|
1591
|
+
function fromJsonTimestamp(o) {
|
|
1592
|
+
if (o instanceof Date) {
|
|
1593
|
+
return o;
|
|
1594
|
+
}
|
|
1595
|
+
else if (typeof o === "string") {
|
|
1596
|
+
return new Date(o);
|
|
1597
|
+
}
|
|
1598
|
+
else {
|
|
1599
|
+
return fromTimestamp(Timestamp.fromJSON(o));
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
function longToNumber(long) {
|
|
1603
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1604
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1605
|
+
}
|
|
1606
|
+
return long.toNumber();
|
|
1607
|
+
}
|
|
1608
|
+
if (_m0.util.Long !== Long) {
|
|
1609
|
+
_m0.util.Long = Long;
|
|
1610
|
+
_m0.configure();
|
|
1611
|
+
}
|
|
1612
|
+
function isSet(value) {
|
|
1613
|
+
return value !== null && value !== undefined;
|
|
1614
|
+
}
|