@agoric/cosmic-proto 0.5.0-u19.2 → 0.5.0-u21.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/dist/address-hooks.d.ts +4 -3
- package/dist/address-hooks.js +1 -217
- package/dist/address-hooks.js.map +1 -1
- package/dist/codegen/agoric/bundle.js +1 -51
- package/dist/codegen/agoric/lien/genesis.js +1 -143
- package/dist/codegen/agoric/lien/lien.js +1 -87
- package/dist/codegen/agoric/swingset/genesis.js +1 -181
- package/dist/codegen/agoric/swingset/msgs.js +1 -700
- package/dist/codegen/agoric/swingset/msgs.js.map +1 -1
- package/dist/codegen/agoric/swingset/query.js +1 -356
- package/dist/codegen/agoric/swingset/query.js.map +1 -1
- package/dist/codegen/agoric/swingset/swingset.js +1 -816
- package/dist/codegen/agoric/swingset/swingset.js.map +1 -1
- package/dist/codegen/agoric/vbank/genesis.js +1 -82
- package/dist/codegen/agoric/vbank/msgs.js +1 -2
- package/dist/codegen/agoric/vbank/query.js +1 -222
- package/dist/codegen/agoric/vbank/vbank.js +1 -237
- package/dist/codegen/agoric/vbank/vbank.js.map +1 -1
- package/dist/codegen/agoric/vibc/msgs.js +1 -127
- package/dist/codegen/agoric/vibc/msgs.js.map +1 -1
- package/dist/codegen/agoric/vlocalchain/vlocalchain.js +1 -307
- package/dist/codegen/agoric/vstorage/genesis.js +1 -138
- package/dist/codegen/agoric/vstorage/query.d.ts +4 -2
- package/dist/codegen/agoric/vstorage/query.js +1 -441
- package/dist/codegen/agoric/vstorage/query.js.map +1 -1
- package/dist/codegen/agoric/vstorage/vstorage.js +1 -128
- package/dist/codegen/agoric/vtransfer/genesis.js +1 -70
- package/dist/codegen/agoric/vtransfer/genesis.js.map +1 -1
- package/dist/codegen/amino/amino.js +1 -2
- package/dist/codegen/amino/bundle.js +1 -6
- package/dist/codegen/binary.d.ts +1 -1
- package/dist/codegen/binary.js +1 -367
- package/dist/codegen/circle/bundle.d.ts +0 -506
- package/dist/codegen/circle/bundle.js +1 -40
- package/dist/codegen/circle/cctp/v1/attester.js +1 -63
- package/dist/codegen/circle/cctp/v1/burn_message.js +1 -117
- package/dist/codegen/circle/cctp/v1/burn_message.js.map +1 -1
- package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +1 -63
- package/dist/codegen/circle/cctp/v1/events.js +1 -1612
- package/dist/codegen/circle/cctp/v1/events.js.map +1 -1
- package/dist/codegen/circle/cctp/v1/genesis.js +1 -295
- package/dist/codegen/circle/cctp/v1/max_message_body_size.js +1 -69
- package/dist/codegen/circle/cctp/v1/message.js +1 -160
- package/dist/codegen/circle/cctp/v1/message.js.map +1 -1
- package/dist/codegen/circle/cctp/v1/nonce.js +1 -80
- package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +1 -73
- package/dist/codegen/circle/cctp/v1/query.js +1 -2421
- package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +1 -77
- package/dist/codegen/circle/cctp/v1/remote_token_messenger.js.map +1 -1
- package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +1 -63
- package/dist/codegen/circle/cctp/v1/signature_threshold.js +1 -63
- package/dist/codegen/circle/cctp/v1/token_pair.js +1 -91
- package/dist/codegen/circle/cctp/v1/token_pair.js.map +1 -1
- package/dist/codegen/circle/cctp/v1/tx.d.ts +0 -998
- package/dist/codegen/circle/cctp/v1/tx.js +1 -3264
- package/dist/codegen/circle/cctp/v1/tx.js.map +1 -1
- package/dist/codegen/cosmos/app/runtime/v1alpha1/module.d.ts +100 -0
- package/dist/codegen/cosmos/app/runtime/v1alpha1/module.js +1 -0
- package/dist/codegen/cosmos/app/runtime/v1alpha1/module.js.map +1 -0
- package/dist/codegen/cosmos/app/v1alpha1/module.d.ts +145 -0
- package/dist/codegen/cosmos/app/v1alpha1/module.js +1 -0
- package/dist/codegen/cosmos/app/v1alpha1/module.js.map +1 -0
- package/dist/codegen/cosmos/auth/module/v1/module.d.ts +62 -0
- package/dist/codegen/cosmos/auth/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/auth/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/auth/v1beta1/auth.d.ts +38 -0
- package/dist/codegen/cosmos/auth/v1beta1/auth.js +1 -337
- package/dist/codegen/cosmos/auth/v1beta1/auth.js.map +1 -1
- package/dist/codegen/cosmos/auth/v1beta1/genesis.d.ts +1 -1
- package/dist/codegen/cosmos/auth/v1beta1/genesis.js +1 -86
- package/dist/codegen/cosmos/auth/v1beta1/query.d.ts +77 -2
- package/dist/codegen/cosmos/auth/v1beta1/query.js +1 -1113
- package/dist/codegen/cosmos/auth/v1beta1/query.js.map +1 -1
- package/dist/codegen/cosmos/auth/v1beta1/tx.d.ts +73 -0
- package/dist/codegen/cosmos/auth/v1beta1/tx.js +1 -0
- package/dist/codegen/cosmos/auth/v1beta1/tx.js.map +1 -0
- package/dist/codegen/cosmos/authz/module/v1/module.d.ts +23 -0
- package/dist/codegen/cosmos/authz/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/authz/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/authz/v1beta1/authz.d.ts +1 -1
- package/dist/codegen/cosmos/authz/v1beta1/authz.js +1 -334
- package/dist/codegen/cosmos/authz/v1beta1/authz.js.map +1 -1
- package/dist/codegen/cosmos/authz/v1beta1/event.js +1 -161
- package/dist/codegen/cosmos/authz/v1beta1/genesis.js +1 -71
- package/dist/codegen/cosmos/authz/v1beta1/query.js +1 -506
- package/dist/codegen/cosmos/authz/v1beta1/tx.d.ts +2 -3
- package/dist/codegen/cosmos/authz/v1beta1/tx.js +1 -415
- package/dist/codegen/cosmos/authz/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/bank/module/v1/module.d.ts +33 -0
- package/dist/codegen/cosmos/bank/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/bank/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/bank/v1beta1/authz.d.ts +8 -0
- package/dist/codegen/cosmos/bank/v1beta1/authz.js +1 -71
- package/dist/codegen/cosmos/bank/v1beta1/authz.js.map +1 -1
- package/dist/codegen/cosmos/bank/v1beta1/bank.d.ts +9 -0
- package/dist/codegen/cosmos/bank/v1beta1/bank.js +1 -592
- package/dist/codegen/cosmos/bank/v1beta1/bank.js.map +1 -1
- package/dist/codegen/cosmos/bank/v1beta1/genesis.d.ts +10 -3
- package/dist/codegen/cosmos/bank/v1beta1/genesis.js +1 -196
- package/dist/codegen/cosmos/bank/v1beta1/genesis.js.map +1 -1
- package/dist/codegen/cosmos/bank/v1beta1/query.d.ts +147 -1
- package/dist/codegen/cosmos/bank/v1beta1/query.js +1 -1347
- package/dist/codegen/cosmos/bank/v1beta1/query.js.map +1 -1
- package/dist/codegen/cosmos/bank/v1beta1/tx.d.ts +154 -1
- package/dist/codegen/cosmos/bank/v1beta1/tx.js +1 -267
- package/dist/codegen/cosmos/bank/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1012
- package/dist/codegen/cosmos/base/abci/v1beta1/abci.js.map +1 -1
- package/dist/codegen/cosmos/base/node/v1beta1/query.js +1 -112
- package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +1 -189
- package/dist/codegen/cosmos/base/query/v1beta1/pagination.js.map +1 -1
- package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1 -1755
- package/dist/codegen/cosmos/base/v1beta1/coin.js +1 -257
- package/dist/codegen/cosmos/base/v1beta1/coin.js.map +1 -1
- package/dist/codegen/cosmos/bundle.d.ts +5016 -4007
- package/dist/codegen/cosmos/bundle.js +1 -249
- package/dist/codegen/cosmos/bundle.js.map +1 -1
- package/dist/codegen/cosmos/capability/module/v1/module.d.ts +29 -0
- package/dist/codegen/cosmos/capability/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/capability/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/consensus/module/v1/module.d.ts +26 -0
- package/dist/codegen/cosmos/consensus/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/consensus/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/consensus/v1/query.d.ts +52 -0
- package/dist/codegen/cosmos/consensus/v1/query.js +1 -0
- package/dist/codegen/cosmos/consensus/v1/query.js.map +1 -0
- package/dist/codegen/cosmos/consensus/v1/tx.d.ts +67 -0
- package/dist/codegen/cosmos/consensus/v1/tx.js +1 -0
- package/dist/codegen/cosmos/consensus/v1/tx.js.map +1 -0
- package/dist/codegen/cosmos/crisis/module/v1/module.d.ts +29 -0
- package/dist/codegen/cosmos/crisis/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/crisis/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/crypto/ed25519/keys.js +1 -123
- package/dist/codegen/cosmos/crypto/ed25519/keys.js.map +1 -1
- package/dist/codegen/cosmos/crypto/hd/v1/hd.js +1 -109
- package/dist/codegen/cosmos/crypto/keyring/v1/record.js +1 -367
- package/dist/codegen/cosmos/crypto/multisig/keys.js +1 -82
- package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +1 -144
- package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js.map +1 -1
- package/dist/codegen/cosmos/crypto/secp256k1/keys.js +1 -123
- package/dist/codegen/cosmos/crypto/secp256k1/keys.js.map +1 -1
- package/dist/codegen/cosmos/crypto/secp256r1/keys.js +1 -125
- package/dist/codegen/cosmos/crypto/secp256r1/keys.js.map +1 -1
- package/dist/codegen/cosmos/distribution/module/v1/module.d.ts +28 -0
- package/dist/codegen/cosmos/distribution/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/distribution/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/distribution/v1beta1/distribution.d.ts +24 -0
- package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +1 -978
- package/dist/codegen/cosmos/distribution/v1beta1/distribution.js.map +1 -1
- package/dist/codegen/cosmos/distribution/v1beta1/genesis.d.ts +4 -4
- package/dist/codegen/cosmos/distribution/v1beta1/genesis.js +1 -837
- package/dist/codegen/cosmos/distribution/v1beta1/query.d.ts +55 -1
- package/dist/codegen/cosmos/distribution/v1beta1/query.js +1 -1207
- package/dist/codegen/cosmos/distribution/v1beta1/query.js.map +1 -1
- package/dist/codegen/cosmos/distribution/v1beta1/tx.d.ts +166 -6
- package/dist/codegen/cosmos/distribution/v1beta1/tx.js +1 -512
- package/dist/codegen/cosmos/distribution/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/evidence/module/v1/module.d.ts +23 -0
- package/dist/codegen/cosmos/evidence/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/evidence/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/feegrant/module/v1/module.d.ts +23 -0
- package/dist/codegen/cosmos/feegrant/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/feegrant/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +1 -412
- package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js.map +1 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js +1 -71
- package/dist/codegen/cosmos/feegrant/v1beta1/query.js +1 -461
- package/dist/codegen/cosmos/feegrant/v1beta1/tx.d.ts +1 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +1 -267
- package/dist/codegen/cosmos/feegrant/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/genutil/module/v1/module.d.ts +23 -0
- package/dist/codegen/cosmos/genutil/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/genutil/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/gov/module/v1/module.d.ts +32 -0
- package/dist/codegen/cosmos/gov/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/gov/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/gov/v1/genesis.d.ts +26 -4
- package/dist/codegen/cosmos/gov/v1/genesis.js +1 -177
- package/dist/codegen/cosmos/gov/v1/genesis.js.map +1 -1
- package/dist/codegen/cosmos/gov/v1/gov.d.ts +113 -4
- package/dist/codegen/cosmos/gov/v1/gov.js +1 -928
- package/dist/codegen/cosmos/gov/v1/gov.js.map +1 -1
- package/dist/codegen/cosmos/gov/v1/query.d.ts +31 -6
- package/dist/codegen/cosmos/gov/v1/query.js +1 -1216
- package/dist/codegen/cosmos/gov/v1/query.js.map +1 -1
- package/dist/codegen/cosmos/gov/v1/tx.d.ts +107 -4
- package/dist/codegen/cosmos/gov/v1/tx.js +1 -730
- package/dist/codegen/cosmos/gov/v1/tx.js.map +1 -1
- package/dist/codegen/cosmos/gov/v1beta1/genesis.d.ts +3 -3
- package/dist/codegen/cosmos/gov/v1beta1/genesis.js +1 -177
- package/dist/codegen/cosmos/gov/v1beta1/gov.d.ts +37 -8
- package/dist/codegen/cosmos/gov/v1beta1/gov.js +1 -1003
- package/dist/codegen/cosmos/gov/v1beta1/gov.js.map +1 -1
- package/dist/codegen/cosmos/gov/v1beta1/query.d.ts +4 -2
- package/dist/codegen/cosmos/gov/v1beta1/query.js +1 -1216
- package/dist/codegen/cosmos/gov/v1beta1/query.js.map +1 -1
- package/dist/codegen/cosmos/gov/v1beta1/tx.d.ts +20 -3
- package/dist/codegen/cosmos/gov/v1beta1/tx.js +1 -578
- package/dist/codegen/cosmos/gov/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/group/module/v1/module.d.ts +36 -0
- package/dist/codegen/cosmos/group/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/group/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/group/v1/events.d.ts +27 -0
- package/dist/codegen/cosmos/group/v1/events.js +1 -696
- package/dist/codegen/cosmos/group/v1/events.js.map +1 -1
- package/dist/codegen/cosmos/group/v1/genesis.js +1 -190
- package/dist/codegen/cosmos/group/v1/query.d.ts +2 -2
- package/dist/codegen/cosmos/group/v1/query.js +1 -2096
- package/dist/codegen/cosmos/group/v1/tx.d.ts +46 -32
- package/dist/codegen/cosmos/group/v1/tx.js +1 -2073
- package/dist/codegen/cosmos/group/v1/tx.js.map +1 -1
- package/dist/codegen/cosmos/group/v1/types.d.ts +32 -10
- package/dist/codegen/cosmos/group/v1/types.js +1 -1387
- package/dist/codegen/cosmos/group/v1/types.js.map +1 -1
- package/dist/codegen/{proofs.d.ts → cosmos/ics23/v1/proofs.d.ts} +31 -17
- package/dist/codegen/cosmos/ics23/v1/proofs.js +1 -0
- package/dist/codegen/cosmos/ics23/v1/proofs.js.map +1 -0
- package/dist/codegen/cosmos/mint/module/v1/module.d.ts +28 -0
- package/dist/codegen/cosmos/mint/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/mint/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/mint/v1beta1/genesis.d.ts +1 -1
- package/dist/codegen/cosmos/mint/v1beta1/genesis.js +1 -82
- package/dist/codegen/cosmos/mint/v1beta1/mint.d.ts +2 -2
- package/dist/codegen/cosmos/mint/v1beta1/mint.js +1 -211
- package/dist/codegen/cosmos/mint/v1beta1/mint.js.map +1 -1
- package/dist/codegen/cosmos/mint/v1beta1/query.js +1 -330
- package/dist/codegen/cosmos/mint/v1beta1/query.js.map +1 -1
- package/dist/codegen/cosmos/mint/v1beta1/tx.d.ts +73 -0
- package/dist/codegen/cosmos/mint/v1beta1/tx.js +1 -0
- package/dist/codegen/cosmos/mint/v1beta1/tx.js.map +1 -0
- package/dist/codegen/cosmos/msg/v1/msg.js +1 -2
- package/dist/codegen/cosmos/nft/module/v1/module.d.ts +23 -0
- package/dist/codegen/cosmos/nft/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/nft/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/params/module/v1/module.d.ts +23 -0
- package/dist/codegen/cosmos/params/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/params/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/params/v1beta1/params.js +1 -171
- package/dist/codegen/cosmos/params/v1beta1/query.js +1 -327
- package/dist/codegen/cosmos/query/v1/query.d.ts +1 -0
- package/dist/codegen/cosmos/query/v1/query.js +1 -0
- package/dist/codegen/cosmos/query/v1/query.js.map +1 -0
- package/dist/codegen/cosmos/reflection/v1/reflection.d.ts +48 -0
- package/dist/codegen/cosmos/reflection/v1/reflection.js +1 -0
- package/dist/codegen/cosmos/reflection/v1/reflection.js.map +1 -0
- package/dist/codegen/cosmos/slashing/module/v1/module.d.ts +26 -0
- package/dist/codegen/cosmos/slashing/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/slashing/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/staking/module/v1/module.d.ts +33 -0
- package/dist/codegen/cosmos/staking/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/staking/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/staking/v1beta1/authz.js +1 -240
- package/dist/codegen/cosmos/staking/v1beta1/genesis.d.ts +1 -1
- package/dist/codegen/cosmos/staking/v1beta1/genesis.js +1 -256
- package/dist/codegen/cosmos/staking/v1beta1/genesis.js.map +1 -1
- package/dist/codegen/cosmos/staking/v1beta1/query.js +1 -2069
- package/dist/codegen/cosmos/staking/v1beta1/staking.d.ts +63 -2
- package/dist/codegen/cosmos/staking/v1beta1/staking.js +1 -1915
- package/dist/codegen/cosmos/staking/v1beta1/staking.js.map +1 -1
- package/dist/codegen/cosmos/staking/v1beta1/tx.d.ts +71 -1
- package/dist/codegen/cosmos/staking/v1beta1/tx.js +1 -968
- package/dist/codegen/cosmos/staking/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/tx/config/v1/config.d.ts +35 -0
- package/dist/codegen/cosmos/tx/config/v1/config.js +1 -0
- package/dist/codegen/cosmos/tx/config/v1/config.js.map +1 -0
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -516
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js.map +1 -1
- package/dist/codegen/cosmos/tx/v1beta1/service.d.ts +270 -2
- package/dist/codegen/cosmos/tx/v1beta1/service.js +1 -975
- package/dist/codegen/cosmos/tx/v1beta1/service.js.map +1 -1
- package/dist/codegen/cosmos/tx/v1beta1/tx.js +1 -1256
- package/dist/codegen/cosmos/tx/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/upgrade/module/v1/module.d.ts +26 -0
- package/dist/codegen/cosmos/upgrade/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/upgrade/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/upgrade/v1beta1/query.js +1 -592
- package/dist/codegen/cosmos/upgrade/v1beta1/query.js.map +1 -1
- package/dist/codegen/cosmos/upgrade/v1beta1/tx.d.ts +2 -2
- package/dist/codegen/cosmos/upgrade/v1beta1/tx.js +1 -228
- package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -4
- package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +1 -352
- package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js.map +1 -1
- package/dist/codegen/cosmos/vesting/module/v1/module.d.ts +23 -0
- package/dist/codegen/cosmos/vesting/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/vesting/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/vesting/v1beta1/tx.js +1 -865
- package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +1 -674
- package/dist/codegen/cosmos_proto/bundle.js +1 -6
- package/dist/codegen/cosmos_proto/cosmos.js +1 -208
- package/dist/codegen/decimals.d.ts +20 -0
- package/dist/codegen/decimals.js +1 -0
- package/dist/codegen/decimals.js.map +1 -0
- package/dist/codegen/gogoproto/bundle.js +1 -6
- package/dist/codegen/gogoproto/bundle.js.map +1 -1
- package/dist/codegen/gogoproto/gogo.js +1 -2
- package/dist/codegen/google/api/annotations.js +1 -2
- package/dist/codegen/google/api/http.js +1 -319
- package/dist/codegen/google/bundle.d.ts +277 -277
- package/dist/codegen/google/bundle.js +1 -17
- package/dist/codegen/google/bundle.js.map +1 -1
- package/dist/codegen/google/protobuf/any.d.ts +10 -4
- package/dist/codegen/google/protobuf/any.js +1 -77
- package/dist/codegen/google/protobuf/any.js.map +1 -1
- package/dist/codegen/google/protobuf/descriptor.js +1 -3421
- package/dist/codegen/google/protobuf/descriptor.js.map +1 -1
- package/dist/codegen/google/protobuf/duration.js +1 -79
- package/dist/codegen/google/protobuf/empty.js +1 -50
- package/dist/codegen/google/protobuf/timestamp.js +1 -79
- package/dist/codegen/helpers.d.ts +2 -18
- package/dist/codegen/helpers.js +1 -196
- package/dist/codegen/helpers.js.map +1 -1
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +1 -66
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +1 -243
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +9 -4
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +1 -314
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js.map +1 -1
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +1 -503
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.d.ts +39 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +1 -83
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js.map +1 -1
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +1 -114
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.d.ts +57 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.js +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +1 -86
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +1 -119
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +1 -190
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js.map +1 -1
- package/dist/codegen/ibc/applications/transfer/v1/authz.d.ts +6 -0
- package/dist/codegen/ibc/applications/transfer/v1/authz.js +1 -178
- package/dist/codegen/ibc/applications/transfer/v1/authz.js.map +1 -1
- package/dist/codegen/ibc/applications/transfer/v1/genesis.d.ts +7 -0
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js +1 -96
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js.map +1 -1
- package/dist/codegen/ibc/applications/transfer/v1/query.d.ts +47 -0
- package/dist/codegen/ibc/applications/transfer/v1/query.js +1 -634
- package/dist/codegen/ibc/applications/transfer/v1/query.js.map +1 -1
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js +1 -147
- package/dist/codegen/ibc/applications/transfer/v1/tx.js +1 -220
- package/dist/codegen/ibc/applications/transfer/v2/packet.js +1 -103
- package/dist/codegen/ibc/bundle.d.ts +1823 -1662
- package/dist/codegen/ibc/bundle.js +1 -142
- package/dist/codegen/ibc/bundle.js.map +1 -1
- package/dist/codegen/ibc/core/channel/v1/channel.js +1 -845
- package/dist/codegen/ibc/core/channel/v1/channel.js.map +1 -1
- package/dist/codegen/ibc/core/channel/v1/genesis.js +1 -281
- package/dist/codegen/ibc/core/channel/v1/query.js +1 -2344
- package/dist/codegen/ibc/core/channel/v1/query.js.map +1 -1
- package/dist/codegen/ibc/core/channel/v1/tx.d.ts +2 -0
- package/dist/codegen/ibc/core/channel/v1/tx.js +1 -1745
- package/dist/codegen/ibc/core/channel/v1/tx.js.map +1 -1
- package/dist/codegen/ibc/core/client/v1/client.d.ts +5 -1
- package/dist/codegen/ibc/core/client/v1/client.js +1 -583
- package/dist/codegen/ibc/core/client/v1/client.js.map +1 -1
- package/dist/codegen/ibc/core/client/v1/genesis.js +1 -301
- package/dist/codegen/ibc/core/client/v1/genesis.js.map +1 -1
- package/dist/codegen/ibc/core/client/v1/query.js +1 -1283
- package/dist/codegen/ibc/core/client/v1/query.js.map +1 -1
- package/dist/codegen/ibc/core/client/v1/tx.d.ts +13 -5
- package/dist/codegen/ibc/core/client/v1/tx.js +1 -587
- package/dist/codegen/ibc/core/client/v1/tx.js.map +1 -1
- package/dist/codegen/ibc/core/commitment/v1/commitment.d.ts +1 -1
- package/dist/codegen/ibc/core/commitment/v1/commitment.js +1 -259
- package/dist/codegen/ibc/core/commitment/v1/commitment.js.map +1 -1
- package/dist/codegen/ibc/core/connection/v1/connection.js +1 -678
- package/dist/codegen/ibc/core/connection/v1/genesis.js +1 -122
- package/dist/codegen/ibc/core/connection/v1/query.js +1 -952
- package/dist/codegen/ibc/core/connection/v1/query.js.map +1 -1
- package/dist/codegen/ibc/core/connection/v1/tx.d.ts +16 -0
- package/dist/codegen/ibc/core/connection/v1/tx.js +1 -843
- package/dist/codegen/ibc/core/connection/v1/tx.js.map +1 -1
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +1 -78
- package/dist/codegen/ibc/lightclients/localhost/v2/localhost.d.ts +27 -0
- package/dist/codegen/ibc/lightclients/localhost/v2/localhost.js +1 -0
- package/dist/codegen/ibc/lightclients/localhost/v2/localhost.js.map +1 -0
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1 -1520
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js.map +1 -1
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1 -1514
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js.map +1 -1
- package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.d.ts +270 -0
- package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.js +1 -0
- package/dist/codegen/ibc/lightclients/solomachine/v3/solomachine.js.map +1 -0
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +4 -1
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +1 -628
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js.map +1 -1
- package/dist/codegen/icq/bundle.d.ts +85 -85
- package/dist/codegen/icq/bundle.js +1 -17
- package/dist/codegen/icq/v1/genesis.js +1 -78
- package/dist/codegen/icq/v1/icq.js +1 -83
- package/dist/codegen/icq/v1/packet.js +1 -270
- package/dist/codegen/icq/v1/packet.js.map +1 -1
- package/dist/codegen/icq/v1/query.js +1 -114
- package/dist/codegen/icq/v1/tx.js +1 -124
- package/dist/codegen/index.d.ts +3 -2
- package/dist/codegen/index.js +1 -23
- package/dist/codegen/index.js.map +1 -1
- package/dist/codegen/json-safe.d.ts +1 -1
- package/dist/codegen/json-safe.js +1 -8
- package/dist/codegen/noble/bundle.d.ts +326 -0
- package/dist/codegen/noble/bundle.js +1 -0
- package/dist/codegen/noble/bundle.js.map +1 -0
- package/dist/codegen/noble/dollar/vaults/v1/tx.d.ts +145 -0
- package/dist/codegen/noble/dollar/vaults/v1/tx.js +1 -0
- package/dist/codegen/noble/dollar/vaults/v1/tx.js.map +1 -0
- package/dist/codegen/noble/dollar/vaults/v1/vaults.d.ts +161 -0
- package/dist/codegen/noble/dollar/vaults/v1/vaults.js +1 -0
- package/dist/codegen/noble/dollar/vaults/v1/vaults.js.map +1 -0
- package/dist/codegen/noble/swap/v1/algorithm.d.ts +11 -0
- package/dist/codegen/noble/swap/v1/algorithm.js +1 -0
- package/dist/codegen/noble/swap/v1/algorithm.js.map +1 -0
- package/dist/codegen/noble/swap/v1/swap.d.ts +59 -0
- package/dist/codegen/noble/swap/v1/swap.js +1 -0
- package/dist/codegen/noble/swap/v1/swap.js.map +1 -0
- package/dist/codegen/noble/swap/v1/tx.d.ts +337 -0
- package/dist/codegen/noble/swap/v1/tx.js +1 -0
- package/dist/codegen/noble/swap/v1/tx.js.map +1 -0
- package/dist/codegen/stride/bundle.d.ts +1912 -1912
- package/dist/codegen/stride/bundle.js +1 -71
- package/dist/codegen/stride/epochs/genesis.js +1 -227
- package/dist/codegen/stride/epochs/query.js +1 -398
- package/dist/codegen/stride/records/callbacks.js +1 -136
- package/dist/codegen/stride/records/genesis.js +1 -186
- package/dist/codegen/stride/records/params.js +1 -50
- package/dist/codegen/stride/records/query.js +1 -1552
- package/dist/codegen/stride/records/records.js +1 -939
- package/dist/codegen/stride/stakedym/genesis.js +1 -312
- package/dist/codegen/stride/stakedym/query.js +1 -887
- package/dist/codegen/stride/stakedym/stakedym.js +1 -909
- package/dist/codegen/stride/stakedym/stakedym.js.map +1 -1
- package/dist/codegen/stride/stakedym/tx.js +1 -1661
- package/dist/codegen/stride/stakedym/tx.js.map +1 -1
- package/dist/codegen/stride/stakeibc/address_unbonding.js +1 -135
- package/dist/codegen/stride/stakeibc/callbacks.js +1 -1191
- package/dist/codegen/stride/stakeibc/epoch_tracker.js +1 -115
- package/dist/codegen/stride/stakeibc/genesis.js +1 -135
- package/dist/codegen/stride/stakeibc/gov.js +1 -212
- package/dist/codegen/stride/stakeibc/host_zone.js +1 -544
- package/dist/codegen/stride/stakeibc/host_zone.js.map +1 -1
- package/dist/codegen/stride/stakeibc/ica_account.js +1 -165
- package/dist/codegen/stride/stakeibc/packet.js +1 -113
- package/dist/codegen/stride/stakeibc/params.js +1 -317
- package/dist/codegen/stride/stakeibc/query.js +1 -1372
- package/dist/codegen/stride/stakeibc/trade_route.js +1 -377
- package/dist/codegen/stride/stakeibc/trade_route.js.map +1 -1
- package/dist/codegen/stride/stakeibc/tx.js +1 -3392
- package/dist/codegen/stride/stakeibc/tx.js.map +1 -1
- package/dist/codegen/stride/stakeibc/validator.js +1 -170
- package/dist/codegen/stride/stakeibc/validator.js.map +1 -1
- package/dist/codegen/stride/staketia/genesis.js +1 -312
- package/dist/codegen/stride/staketia/query.js +1 -887
- package/dist/codegen/stride/staketia/staketia.js +1 -819
- package/dist/codegen/stride/staketia/tx.js +1 -1671
- package/dist/codegen/stride/staketia/tx.js.map +1 -1
- package/dist/codegen/tendermint/abci/types.d.ts +264 -692
- package/dist/codegen/tendermint/abci/types.js +1 -4434
- package/dist/codegen/tendermint/abci/types.js.map +1 -1
- package/dist/codegen/tendermint/bundle.d.ts +517 -800
- package/dist/codegen/tendermint/bundle.js +1 -42
- package/dist/codegen/tendermint/crypto/keys.js +1 -85
- package/dist/codegen/tendermint/crypto/keys.js.map +1 -1
- package/dist/codegen/tendermint/crypto/proof.js +1 -409
- package/dist/codegen/tendermint/crypto/proof.js.map +1 -1
- package/dist/codegen/tendermint/libs/bits/types.js +1 -94
- package/dist/codegen/tendermint/p2p/types.d.ts +55 -83
- package/dist/codegen/tendermint/p2p/types.js +1 -506
- package/dist/codegen/tendermint/p2p/types.js.map +1 -1
- package/dist/codegen/tendermint/types/block.js +1 -119
- package/dist/codegen/tendermint/types/evidence.js +1 -415
- package/dist/codegen/tendermint/types/params.js +1 -529
- package/dist/codegen/tendermint/types/types.js +1 -1534
- package/dist/codegen/tendermint/types/types.js.map +1 -1
- package/dist/codegen/tendermint/types/validator.js +1 -299
- package/dist/codegen/tendermint/types/validator.js.map +1 -1
- package/dist/codegen/tendermint/version/types.js +1 -155
- package/dist/codegen/utf8.d.ts +1 -1
- package/dist/codegen/utf8.js +1 -138
- package/dist/codegen/varint.d.ts +1 -1
- package/dist/codegen/varint.js +1 -409
- package/dist/helpers.d.ts +5 -0
- package/dist/helpers.js +1 -22
- package/dist/helpers.js.map +1 -1
- package/dist/index.js +1 -6
- package/package.json +25 -20
- package/dist/codegen/ics23/bundle.d.ts +0 -154
- package/dist/codegen/ics23/bundle.js +0 -6
- package/dist/codegen/ics23/bundle.js.map +0 -1
- package/dist/codegen/proofs.js +0 -1436
- package/dist/codegen/proofs.js.map +0 -1
|
@@ -1,1207 +1 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { PageRequest, PageResponse, } from '../../base/query/v1beta1/pagination.js';
|
|
3
|
-
import { Params, ValidatorOutstandingRewards, ValidatorAccumulatedCommission, ValidatorSlashEvent, DelegationDelegatorReward, } from './distribution.js';
|
|
4
|
-
import { DecCoin } from '../../base/v1beta1/coin.js';
|
|
5
|
-
import { BinaryReader, BinaryWriter } from '../../../binary.js';
|
|
6
|
-
import {} from '../../../json-safe.js';
|
|
7
|
-
import { isSet } from '../../../helpers.js';
|
|
8
|
-
function createBaseQueryParamsRequest() {
|
|
9
|
-
return {};
|
|
10
|
-
}
|
|
11
|
-
export const QueryParamsRequest = {
|
|
12
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryParamsRequest',
|
|
13
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
14
|
-
return writer;
|
|
15
|
-
},
|
|
16
|
-
decode(input, length) {
|
|
17
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
18
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
19
|
-
const message = createBaseQueryParamsRequest();
|
|
20
|
-
while (reader.pos < end) {
|
|
21
|
-
const tag = reader.uint32();
|
|
22
|
-
switch (tag >>> 3) {
|
|
23
|
-
default:
|
|
24
|
-
reader.skipType(tag & 7);
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return message;
|
|
29
|
-
},
|
|
30
|
-
fromJSON(_) {
|
|
31
|
-
return {};
|
|
32
|
-
},
|
|
33
|
-
toJSON(_) {
|
|
34
|
-
const obj = {};
|
|
35
|
-
return obj;
|
|
36
|
-
},
|
|
37
|
-
fromPartial(_) {
|
|
38
|
-
const message = createBaseQueryParamsRequest();
|
|
39
|
-
return message;
|
|
40
|
-
},
|
|
41
|
-
fromProtoMsg(message) {
|
|
42
|
-
return QueryParamsRequest.decode(message.value);
|
|
43
|
-
},
|
|
44
|
-
toProto(message) {
|
|
45
|
-
return QueryParamsRequest.encode(message).finish();
|
|
46
|
-
},
|
|
47
|
-
toProtoMsg(message) {
|
|
48
|
-
return {
|
|
49
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryParamsRequest',
|
|
50
|
-
value: QueryParamsRequest.encode(message).finish(),
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
function createBaseQueryParamsResponse() {
|
|
55
|
-
return {
|
|
56
|
-
params: Params.fromPartial({}),
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
export const QueryParamsResponse = {
|
|
60
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryParamsResponse',
|
|
61
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
62
|
-
if (message.params !== undefined) {
|
|
63
|
-
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
64
|
-
}
|
|
65
|
-
return writer;
|
|
66
|
-
},
|
|
67
|
-
decode(input, length) {
|
|
68
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
69
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
70
|
-
const message = createBaseQueryParamsResponse();
|
|
71
|
-
while (reader.pos < end) {
|
|
72
|
-
const tag = reader.uint32();
|
|
73
|
-
switch (tag >>> 3) {
|
|
74
|
-
case 1:
|
|
75
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
76
|
-
break;
|
|
77
|
-
default:
|
|
78
|
-
reader.skipType(tag & 7);
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return message;
|
|
83
|
-
},
|
|
84
|
-
fromJSON(object) {
|
|
85
|
-
return {
|
|
86
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
toJSON(message) {
|
|
90
|
-
const obj = {};
|
|
91
|
-
message.params !== undefined &&
|
|
92
|
-
(obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
93
|
-
return obj;
|
|
94
|
-
},
|
|
95
|
-
fromPartial(object) {
|
|
96
|
-
const message = createBaseQueryParamsResponse();
|
|
97
|
-
message.params =
|
|
98
|
-
object.params !== undefined && object.params !== null
|
|
99
|
-
? Params.fromPartial(object.params)
|
|
100
|
-
: undefined;
|
|
101
|
-
return message;
|
|
102
|
-
},
|
|
103
|
-
fromProtoMsg(message) {
|
|
104
|
-
return QueryParamsResponse.decode(message.value);
|
|
105
|
-
},
|
|
106
|
-
toProto(message) {
|
|
107
|
-
return QueryParamsResponse.encode(message).finish();
|
|
108
|
-
},
|
|
109
|
-
toProtoMsg(message) {
|
|
110
|
-
return {
|
|
111
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryParamsResponse',
|
|
112
|
-
value: QueryParamsResponse.encode(message).finish(),
|
|
113
|
-
};
|
|
114
|
-
},
|
|
115
|
-
};
|
|
116
|
-
function createBaseQueryValidatorOutstandingRewardsRequest() {
|
|
117
|
-
return {
|
|
118
|
-
validatorAddress: '',
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
export const QueryValidatorOutstandingRewardsRequest = {
|
|
122
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest',
|
|
123
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
124
|
-
if (message.validatorAddress !== '') {
|
|
125
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
126
|
-
}
|
|
127
|
-
return writer;
|
|
128
|
-
},
|
|
129
|
-
decode(input, length) {
|
|
130
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
131
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
132
|
-
const message = createBaseQueryValidatorOutstandingRewardsRequest();
|
|
133
|
-
while (reader.pos < end) {
|
|
134
|
-
const tag = reader.uint32();
|
|
135
|
-
switch (tag >>> 3) {
|
|
136
|
-
case 1:
|
|
137
|
-
message.validatorAddress = reader.string();
|
|
138
|
-
break;
|
|
139
|
-
default:
|
|
140
|
-
reader.skipType(tag & 7);
|
|
141
|
-
break;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return message;
|
|
145
|
-
},
|
|
146
|
-
fromJSON(object) {
|
|
147
|
-
return {
|
|
148
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
149
|
-
? String(object.validatorAddress)
|
|
150
|
-
: '',
|
|
151
|
-
};
|
|
152
|
-
},
|
|
153
|
-
toJSON(message) {
|
|
154
|
-
const obj = {};
|
|
155
|
-
message.validatorAddress !== undefined &&
|
|
156
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
157
|
-
return obj;
|
|
158
|
-
},
|
|
159
|
-
fromPartial(object) {
|
|
160
|
-
const message = createBaseQueryValidatorOutstandingRewardsRequest();
|
|
161
|
-
message.validatorAddress = object.validatorAddress ?? '';
|
|
162
|
-
return message;
|
|
163
|
-
},
|
|
164
|
-
fromProtoMsg(message) {
|
|
165
|
-
return QueryValidatorOutstandingRewardsRequest.decode(message.value);
|
|
166
|
-
},
|
|
167
|
-
toProto(message) {
|
|
168
|
-
return QueryValidatorOutstandingRewardsRequest.encode(message).finish();
|
|
169
|
-
},
|
|
170
|
-
toProtoMsg(message) {
|
|
171
|
-
return {
|
|
172
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest',
|
|
173
|
-
value: QueryValidatorOutstandingRewardsRequest.encode(message).finish(),
|
|
174
|
-
};
|
|
175
|
-
},
|
|
176
|
-
};
|
|
177
|
-
function createBaseQueryValidatorOutstandingRewardsResponse() {
|
|
178
|
-
return {
|
|
179
|
-
rewards: ValidatorOutstandingRewards.fromPartial({}),
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
export const QueryValidatorOutstandingRewardsResponse = {
|
|
183
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse',
|
|
184
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
185
|
-
if (message.rewards !== undefined) {
|
|
186
|
-
ValidatorOutstandingRewards.encode(message.rewards, writer.uint32(10).fork()).ldelim();
|
|
187
|
-
}
|
|
188
|
-
return writer;
|
|
189
|
-
},
|
|
190
|
-
decode(input, length) {
|
|
191
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
192
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
193
|
-
const message = createBaseQueryValidatorOutstandingRewardsResponse();
|
|
194
|
-
while (reader.pos < end) {
|
|
195
|
-
const tag = reader.uint32();
|
|
196
|
-
switch (tag >>> 3) {
|
|
197
|
-
case 1:
|
|
198
|
-
message.rewards = ValidatorOutstandingRewards.decode(reader, reader.uint32());
|
|
199
|
-
break;
|
|
200
|
-
default:
|
|
201
|
-
reader.skipType(tag & 7);
|
|
202
|
-
break;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
return message;
|
|
206
|
-
},
|
|
207
|
-
fromJSON(object) {
|
|
208
|
-
return {
|
|
209
|
-
rewards: isSet(object.rewards)
|
|
210
|
-
? ValidatorOutstandingRewards.fromJSON(object.rewards)
|
|
211
|
-
: undefined,
|
|
212
|
-
};
|
|
213
|
-
},
|
|
214
|
-
toJSON(message) {
|
|
215
|
-
const obj = {};
|
|
216
|
-
message.rewards !== undefined &&
|
|
217
|
-
(obj.rewards = message.rewards
|
|
218
|
-
? ValidatorOutstandingRewards.toJSON(message.rewards)
|
|
219
|
-
: undefined);
|
|
220
|
-
return obj;
|
|
221
|
-
},
|
|
222
|
-
fromPartial(object) {
|
|
223
|
-
const message = createBaseQueryValidatorOutstandingRewardsResponse();
|
|
224
|
-
message.rewards =
|
|
225
|
-
object.rewards !== undefined && object.rewards !== null
|
|
226
|
-
? ValidatorOutstandingRewards.fromPartial(object.rewards)
|
|
227
|
-
: undefined;
|
|
228
|
-
return message;
|
|
229
|
-
},
|
|
230
|
-
fromProtoMsg(message) {
|
|
231
|
-
return QueryValidatorOutstandingRewardsResponse.decode(message.value);
|
|
232
|
-
},
|
|
233
|
-
toProto(message) {
|
|
234
|
-
return QueryValidatorOutstandingRewardsResponse.encode(message).finish();
|
|
235
|
-
},
|
|
236
|
-
toProtoMsg(message) {
|
|
237
|
-
return {
|
|
238
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse',
|
|
239
|
-
value: QueryValidatorOutstandingRewardsResponse.encode(message).finish(),
|
|
240
|
-
};
|
|
241
|
-
},
|
|
242
|
-
};
|
|
243
|
-
function createBaseQueryValidatorCommissionRequest() {
|
|
244
|
-
return {
|
|
245
|
-
validatorAddress: '',
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
export const QueryValidatorCommissionRequest = {
|
|
249
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest',
|
|
250
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
251
|
-
if (message.validatorAddress !== '') {
|
|
252
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
253
|
-
}
|
|
254
|
-
return writer;
|
|
255
|
-
},
|
|
256
|
-
decode(input, length) {
|
|
257
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
258
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
259
|
-
const message = createBaseQueryValidatorCommissionRequest();
|
|
260
|
-
while (reader.pos < end) {
|
|
261
|
-
const tag = reader.uint32();
|
|
262
|
-
switch (tag >>> 3) {
|
|
263
|
-
case 1:
|
|
264
|
-
message.validatorAddress = reader.string();
|
|
265
|
-
break;
|
|
266
|
-
default:
|
|
267
|
-
reader.skipType(tag & 7);
|
|
268
|
-
break;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
return message;
|
|
272
|
-
},
|
|
273
|
-
fromJSON(object) {
|
|
274
|
-
return {
|
|
275
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
276
|
-
? String(object.validatorAddress)
|
|
277
|
-
: '',
|
|
278
|
-
};
|
|
279
|
-
},
|
|
280
|
-
toJSON(message) {
|
|
281
|
-
const obj = {};
|
|
282
|
-
message.validatorAddress !== undefined &&
|
|
283
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
284
|
-
return obj;
|
|
285
|
-
},
|
|
286
|
-
fromPartial(object) {
|
|
287
|
-
const message = createBaseQueryValidatorCommissionRequest();
|
|
288
|
-
message.validatorAddress = object.validatorAddress ?? '';
|
|
289
|
-
return message;
|
|
290
|
-
},
|
|
291
|
-
fromProtoMsg(message) {
|
|
292
|
-
return QueryValidatorCommissionRequest.decode(message.value);
|
|
293
|
-
},
|
|
294
|
-
toProto(message) {
|
|
295
|
-
return QueryValidatorCommissionRequest.encode(message).finish();
|
|
296
|
-
},
|
|
297
|
-
toProtoMsg(message) {
|
|
298
|
-
return {
|
|
299
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest',
|
|
300
|
-
value: QueryValidatorCommissionRequest.encode(message).finish(),
|
|
301
|
-
};
|
|
302
|
-
},
|
|
303
|
-
};
|
|
304
|
-
function createBaseQueryValidatorCommissionResponse() {
|
|
305
|
-
return {
|
|
306
|
-
commission: ValidatorAccumulatedCommission.fromPartial({}),
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
export const QueryValidatorCommissionResponse = {
|
|
310
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse',
|
|
311
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
312
|
-
if (message.commission !== undefined) {
|
|
313
|
-
ValidatorAccumulatedCommission.encode(message.commission, writer.uint32(10).fork()).ldelim();
|
|
314
|
-
}
|
|
315
|
-
return writer;
|
|
316
|
-
},
|
|
317
|
-
decode(input, length) {
|
|
318
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
319
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
320
|
-
const message = createBaseQueryValidatorCommissionResponse();
|
|
321
|
-
while (reader.pos < end) {
|
|
322
|
-
const tag = reader.uint32();
|
|
323
|
-
switch (tag >>> 3) {
|
|
324
|
-
case 1:
|
|
325
|
-
message.commission = ValidatorAccumulatedCommission.decode(reader, reader.uint32());
|
|
326
|
-
break;
|
|
327
|
-
default:
|
|
328
|
-
reader.skipType(tag & 7);
|
|
329
|
-
break;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
return message;
|
|
333
|
-
},
|
|
334
|
-
fromJSON(object) {
|
|
335
|
-
return {
|
|
336
|
-
commission: isSet(object.commission)
|
|
337
|
-
? ValidatorAccumulatedCommission.fromJSON(object.commission)
|
|
338
|
-
: undefined,
|
|
339
|
-
};
|
|
340
|
-
},
|
|
341
|
-
toJSON(message) {
|
|
342
|
-
const obj = {};
|
|
343
|
-
message.commission !== undefined &&
|
|
344
|
-
(obj.commission = message.commission
|
|
345
|
-
? ValidatorAccumulatedCommission.toJSON(message.commission)
|
|
346
|
-
: undefined);
|
|
347
|
-
return obj;
|
|
348
|
-
},
|
|
349
|
-
fromPartial(object) {
|
|
350
|
-
const message = createBaseQueryValidatorCommissionResponse();
|
|
351
|
-
message.commission =
|
|
352
|
-
object.commission !== undefined && object.commission !== null
|
|
353
|
-
? ValidatorAccumulatedCommission.fromPartial(object.commission)
|
|
354
|
-
: undefined;
|
|
355
|
-
return message;
|
|
356
|
-
},
|
|
357
|
-
fromProtoMsg(message) {
|
|
358
|
-
return QueryValidatorCommissionResponse.decode(message.value);
|
|
359
|
-
},
|
|
360
|
-
toProto(message) {
|
|
361
|
-
return QueryValidatorCommissionResponse.encode(message).finish();
|
|
362
|
-
},
|
|
363
|
-
toProtoMsg(message) {
|
|
364
|
-
return {
|
|
365
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse',
|
|
366
|
-
value: QueryValidatorCommissionResponse.encode(message).finish(),
|
|
367
|
-
};
|
|
368
|
-
},
|
|
369
|
-
};
|
|
370
|
-
function createBaseQueryValidatorSlashesRequest() {
|
|
371
|
-
return {
|
|
372
|
-
validatorAddress: '',
|
|
373
|
-
startingHeight: BigInt(0),
|
|
374
|
-
endingHeight: BigInt(0),
|
|
375
|
-
pagination: undefined,
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
export const QueryValidatorSlashesRequest = {
|
|
379
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest',
|
|
380
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
381
|
-
if (message.validatorAddress !== '') {
|
|
382
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
383
|
-
}
|
|
384
|
-
if (message.startingHeight !== BigInt(0)) {
|
|
385
|
-
writer.uint32(16).uint64(message.startingHeight);
|
|
386
|
-
}
|
|
387
|
-
if (message.endingHeight !== BigInt(0)) {
|
|
388
|
-
writer.uint32(24).uint64(message.endingHeight);
|
|
389
|
-
}
|
|
390
|
-
if (message.pagination !== undefined) {
|
|
391
|
-
PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim();
|
|
392
|
-
}
|
|
393
|
-
return writer;
|
|
394
|
-
},
|
|
395
|
-
decode(input, length) {
|
|
396
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
397
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
398
|
-
const message = createBaseQueryValidatorSlashesRequest();
|
|
399
|
-
while (reader.pos < end) {
|
|
400
|
-
const tag = reader.uint32();
|
|
401
|
-
switch (tag >>> 3) {
|
|
402
|
-
case 1:
|
|
403
|
-
message.validatorAddress = reader.string();
|
|
404
|
-
break;
|
|
405
|
-
case 2:
|
|
406
|
-
message.startingHeight = reader.uint64();
|
|
407
|
-
break;
|
|
408
|
-
case 3:
|
|
409
|
-
message.endingHeight = reader.uint64();
|
|
410
|
-
break;
|
|
411
|
-
case 4:
|
|
412
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
413
|
-
break;
|
|
414
|
-
default:
|
|
415
|
-
reader.skipType(tag & 7);
|
|
416
|
-
break;
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
return message;
|
|
420
|
-
},
|
|
421
|
-
fromJSON(object) {
|
|
422
|
-
return {
|
|
423
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
424
|
-
? String(object.validatorAddress)
|
|
425
|
-
: '',
|
|
426
|
-
startingHeight: isSet(object.startingHeight)
|
|
427
|
-
? BigInt(object.startingHeight.toString())
|
|
428
|
-
: BigInt(0),
|
|
429
|
-
endingHeight: isSet(object.endingHeight)
|
|
430
|
-
? BigInt(object.endingHeight.toString())
|
|
431
|
-
: BigInt(0),
|
|
432
|
-
pagination: isSet(object.pagination)
|
|
433
|
-
? PageRequest.fromJSON(object.pagination)
|
|
434
|
-
: undefined,
|
|
435
|
-
};
|
|
436
|
-
},
|
|
437
|
-
toJSON(message) {
|
|
438
|
-
const obj = {};
|
|
439
|
-
message.validatorAddress !== undefined &&
|
|
440
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
441
|
-
message.startingHeight !== undefined &&
|
|
442
|
-
(obj.startingHeight = (message.startingHeight || BigInt(0)).toString());
|
|
443
|
-
message.endingHeight !== undefined &&
|
|
444
|
-
(obj.endingHeight = (message.endingHeight || BigInt(0)).toString());
|
|
445
|
-
message.pagination !== undefined &&
|
|
446
|
-
(obj.pagination = message.pagination
|
|
447
|
-
? PageRequest.toJSON(message.pagination)
|
|
448
|
-
: undefined);
|
|
449
|
-
return obj;
|
|
450
|
-
},
|
|
451
|
-
fromPartial(object) {
|
|
452
|
-
const message = createBaseQueryValidatorSlashesRequest();
|
|
453
|
-
message.validatorAddress = object.validatorAddress ?? '';
|
|
454
|
-
message.startingHeight =
|
|
455
|
-
object.startingHeight !== undefined && object.startingHeight !== null
|
|
456
|
-
? BigInt(object.startingHeight.toString())
|
|
457
|
-
: BigInt(0);
|
|
458
|
-
message.endingHeight =
|
|
459
|
-
object.endingHeight !== undefined && object.endingHeight !== null
|
|
460
|
-
? BigInt(object.endingHeight.toString())
|
|
461
|
-
: BigInt(0);
|
|
462
|
-
message.pagination =
|
|
463
|
-
object.pagination !== undefined && object.pagination !== null
|
|
464
|
-
? PageRequest.fromPartial(object.pagination)
|
|
465
|
-
: undefined;
|
|
466
|
-
return message;
|
|
467
|
-
},
|
|
468
|
-
fromProtoMsg(message) {
|
|
469
|
-
return QueryValidatorSlashesRequest.decode(message.value);
|
|
470
|
-
},
|
|
471
|
-
toProto(message) {
|
|
472
|
-
return QueryValidatorSlashesRequest.encode(message).finish();
|
|
473
|
-
},
|
|
474
|
-
toProtoMsg(message) {
|
|
475
|
-
return {
|
|
476
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest',
|
|
477
|
-
value: QueryValidatorSlashesRequest.encode(message).finish(),
|
|
478
|
-
};
|
|
479
|
-
},
|
|
480
|
-
};
|
|
481
|
-
function createBaseQueryValidatorSlashesResponse() {
|
|
482
|
-
return {
|
|
483
|
-
slashes: [],
|
|
484
|
-
pagination: undefined,
|
|
485
|
-
};
|
|
486
|
-
}
|
|
487
|
-
export const QueryValidatorSlashesResponse = {
|
|
488
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse',
|
|
489
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
490
|
-
for (const v of message.slashes) {
|
|
491
|
-
ValidatorSlashEvent.encode(v, writer.uint32(10).fork()).ldelim();
|
|
492
|
-
}
|
|
493
|
-
if (message.pagination !== undefined) {
|
|
494
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
495
|
-
}
|
|
496
|
-
return writer;
|
|
497
|
-
},
|
|
498
|
-
decode(input, length) {
|
|
499
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
500
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
501
|
-
const message = createBaseQueryValidatorSlashesResponse();
|
|
502
|
-
while (reader.pos < end) {
|
|
503
|
-
const tag = reader.uint32();
|
|
504
|
-
switch (tag >>> 3) {
|
|
505
|
-
case 1:
|
|
506
|
-
message.slashes.push(ValidatorSlashEvent.decode(reader, reader.uint32()));
|
|
507
|
-
break;
|
|
508
|
-
case 2:
|
|
509
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
510
|
-
break;
|
|
511
|
-
default:
|
|
512
|
-
reader.skipType(tag & 7);
|
|
513
|
-
break;
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
return message;
|
|
517
|
-
},
|
|
518
|
-
fromJSON(object) {
|
|
519
|
-
return {
|
|
520
|
-
slashes: Array.isArray(object?.slashes)
|
|
521
|
-
? object.slashes.map((e) => ValidatorSlashEvent.fromJSON(e))
|
|
522
|
-
: [],
|
|
523
|
-
pagination: isSet(object.pagination)
|
|
524
|
-
? PageResponse.fromJSON(object.pagination)
|
|
525
|
-
: undefined,
|
|
526
|
-
};
|
|
527
|
-
},
|
|
528
|
-
toJSON(message) {
|
|
529
|
-
const obj = {};
|
|
530
|
-
if (message.slashes) {
|
|
531
|
-
obj.slashes = message.slashes.map(e => e ? ValidatorSlashEvent.toJSON(e) : undefined);
|
|
532
|
-
}
|
|
533
|
-
else {
|
|
534
|
-
obj.slashes = [];
|
|
535
|
-
}
|
|
536
|
-
message.pagination !== undefined &&
|
|
537
|
-
(obj.pagination = message.pagination
|
|
538
|
-
? PageResponse.toJSON(message.pagination)
|
|
539
|
-
: undefined);
|
|
540
|
-
return obj;
|
|
541
|
-
},
|
|
542
|
-
fromPartial(object) {
|
|
543
|
-
const message = createBaseQueryValidatorSlashesResponse();
|
|
544
|
-
message.slashes =
|
|
545
|
-
object.slashes?.map(e => ValidatorSlashEvent.fromPartial(e)) || [];
|
|
546
|
-
message.pagination =
|
|
547
|
-
object.pagination !== undefined && object.pagination !== null
|
|
548
|
-
? PageResponse.fromPartial(object.pagination)
|
|
549
|
-
: undefined;
|
|
550
|
-
return message;
|
|
551
|
-
},
|
|
552
|
-
fromProtoMsg(message) {
|
|
553
|
-
return QueryValidatorSlashesResponse.decode(message.value);
|
|
554
|
-
},
|
|
555
|
-
toProto(message) {
|
|
556
|
-
return QueryValidatorSlashesResponse.encode(message).finish();
|
|
557
|
-
},
|
|
558
|
-
toProtoMsg(message) {
|
|
559
|
-
return {
|
|
560
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse',
|
|
561
|
-
value: QueryValidatorSlashesResponse.encode(message).finish(),
|
|
562
|
-
};
|
|
563
|
-
},
|
|
564
|
-
};
|
|
565
|
-
function createBaseQueryDelegationRewardsRequest() {
|
|
566
|
-
return {
|
|
567
|
-
delegatorAddress: '',
|
|
568
|
-
validatorAddress: '',
|
|
569
|
-
};
|
|
570
|
-
}
|
|
571
|
-
export const QueryDelegationRewardsRequest = {
|
|
572
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest',
|
|
573
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
574
|
-
if (message.delegatorAddress !== '') {
|
|
575
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
576
|
-
}
|
|
577
|
-
if (message.validatorAddress !== '') {
|
|
578
|
-
writer.uint32(18).string(message.validatorAddress);
|
|
579
|
-
}
|
|
580
|
-
return writer;
|
|
581
|
-
},
|
|
582
|
-
decode(input, length) {
|
|
583
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
584
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
585
|
-
const message = createBaseQueryDelegationRewardsRequest();
|
|
586
|
-
while (reader.pos < end) {
|
|
587
|
-
const tag = reader.uint32();
|
|
588
|
-
switch (tag >>> 3) {
|
|
589
|
-
case 1:
|
|
590
|
-
message.delegatorAddress = reader.string();
|
|
591
|
-
break;
|
|
592
|
-
case 2:
|
|
593
|
-
message.validatorAddress = reader.string();
|
|
594
|
-
break;
|
|
595
|
-
default:
|
|
596
|
-
reader.skipType(tag & 7);
|
|
597
|
-
break;
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
return message;
|
|
601
|
-
},
|
|
602
|
-
fromJSON(object) {
|
|
603
|
-
return {
|
|
604
|
-
delegatorAddress: isSet(object.delegatorAddress)
|
|
605
|
-
? String(object.delegatorAddress)
|
|
606
|
-
: '',
|
|
607
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
608
|
-
? String(object.validatorAddress)
|
|
609
|
-
: '',
|
|
610
|
-
};
|
|
611
|
-
},
|
|
612
|
-
toJSON(message) {
|
|
613
|
-
const obj = {};
|
|
614
|
-
message.delegatorAddress !== undefined &&
|
|
615
|
-
(obj.delegatorAddress = message.delegatorAddress);
|
|
616
|
-
message.validatorAddress !== undefined &&
|
|
617
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
618
|
-
return obj;
|
|
619
|
-
},
|
|
620
|
-
fromPartial(object) {
|
|
621
|
-
const message = createBaseQueryDelegationRewardsRequest();
|
|
622
|
-
message.delegatorAddress = object.delegatorAddress ?? '';
|
|
623
|
-
message.validatorAddress = object.validatorAddress ?? '';
|
|
624
|
-
return message;
|
|
625
|
-
},
|
|
626
|
-
fromProtoMsg(message) {
|
|
627
|
-
return QueryDelegationRewardsRequest.decode(message.value);
|
|
628
|
-
},
|
|
629
|
-
toProto(message) {
|
|
630
|
-
return QueryDelegationRewardsRequest.encode(message).finish();
|
|
631
|
-
},
|
|
632
|
-
toProtoMsg(message) {
|
|
633
|
-
return {
|
|
634
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest',
|
|
635
|
-
value: QueryDelegationRewardsRequest.encode(message).finish(),
|
|
636
|
-
};
|
|
637
|
-
},
|
|
638
|
-
};
|
|
639
|
-
function createBaseQueryDelegationRewardsResponse() {
|
|
640
|
-
return {
|
|
641
|
-
rewards: [],
|
|
642
|
-
};
|
|
643
|
-
}
|
|
644
|
-
export const QueryDelegationRewardsResponse = {
|
|
645
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse',
|
|
646
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
647
|
-
for (const v of message.rewards) {
|
|
648
|
-
DecCoin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
649
|
-
}
|
|
650
|
-
return writer;
|
|
651
|
-
},
|
|
652
|
-
decode(input, length) {
|
|
653
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
654
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
655
|
-
const message = createBaseQueryDelegationRewardsResponse();
|
|
656
|
-
while (reader.pos < end) {
|
|
657
|
-
const tag = reader.uint32();
|
|
658
|
-
switch (tag >>> 3) {
|
|
659
|
-
case 1:
|
|
660
|
-
message.rewards.push(DecCoin.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 {
|
|
671
|
-
rewards: Array.isArray(object?.rewards)
|
|
672
|
-
? object.rewards.map((e) => DecCoin.fromJSON(e))
|
|
673
|
-
: [],
|
|
674
|
-
};
|
|
675
|
-
},
|
|
676
|
-
toJSON(message) {
|
|
677
|
-
const obj = {};
|
|
678
|
-
if (message.rewards) {
|
|
679
|
-
obj.rewards = message.rewards.map(e => e ? DecCoin.toJSON(e) : undefined);
|
|
680
|
-
}
|
|
681
|
-
else {
|
|
682
|
-
obj.rewards = [];
|
|
683
|
-
}
|
|
684
|
-
return obj;
|
|
685
|
-
},
|
|
686
|
-
fromPartial(object) {
|
|
687
|
-
const message = createBaseQueryDelegationRewardsResponse();
|
|
688
|
-
message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || [];
|
|
689
|
-
return message;
|
|
690
|
-
},
|
|
691
|
-
fromProtoMsg(message) {
|
|
692
|
-
return QueryDelegationRewardsResponse.decode(message.value);
|
|
693
|
-
},
|
|
694
|
-
toProto(message) {
|
|
695
|
-
return QueryDelegationRewardsResponse.encode(message).finish();
|
|
696
|
-
},
|
|
697
|
-
toProtoMsg(message) {
|
|
698
|
-
return {
|
|
699
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse',
|
|
700
|
-
value: QueryDelegationRewardsResponse.encode(message).finish(),
|
|
701
|
-
};
|
|
702
|
-
},
|
|
703
|
-
};
|
|
704
|
-
function createBaseQueryDelegationTotalRewardsRequest() {
|
|
705
|
-
return {
|
|
706
|
-
delegatorAddress: '',
|
|
707
|
-
};
|
|
708
|
-
}
|
|
709
|
-
export const QueryDelegationTotalRewardsRequest = {
|
|
710
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest',
|
|
711
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
712
|
-
if (message.delegatorAddress !== '') {
|
|
713
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
714
|
-
}
|
|
715
|
-
return writer;
|
|
716
|
-
},
|
|
717
|
-
decode(input, length) {
|
|
718
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
719
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
720
|
-
const message = createBaseQueryDelegationTotalRewardsRequest();
|
|
721
|
-
while (reader.pos < end) {
|
|
722
|
-
const tag = reader.uint32();
|
|
723
|
-
switch (tag >>> 3) {
|
|
724
|
-
case 1:
|
|
725
|
-
message.delegatorAddress = reader.string();
|
|
726
|
-
break;
|
|
727
|
-
default:
|
|
728
|
-
reader.skipType(tag & 7);
|
|
729
|
-
break;
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
return message;
|
|
733
|
-
},
|
|
734
|
-
fromJSON(object) {
|
|
735
|
-
return {
|
|
736
|
-
delegatorAddress: isSet(object.delegatorAddress)
|
|
737
|
-
? String(object.delegatorAddress)
|
|
738
|
-
: '',
|
|
739
|
-
};
|
|
740
|
-
},
|
|
741
|
-
toJSON(message) {
|
|
742
|
-
const obj = {};
|
|
743
|
-
message.delegatorAddress !== undefined &&
|
|
744
|
-
(obj.delegatorAddress = message.delegatorAddress);
|
|
745
|
-
return obj;
|
|
746
|
-
},
|
|
747
|
-
fromPartial(object) {
|
|
748
|
-
const message = createBaseQueryDelegationTotalRewardsRequest();
|
|
749
|
-
message.delegatorAddress = object.delegatorAddress ?? '';
|
|
750
|
-
return message;
|
|
751
|
-
},
|
|
752
|
-
fromProtoMsg(message) {
|
|
753
|
-
return QueryDelegationTotalRewardsRequest.decode(message.value);
|
|
754
|
-
},
|
|
755
|
-
toProto(message) {
|
|
756
|
-
return QueryDelegationTotalRewardsRequest.encode(message).finish();
|
|
757
|
-
},
|
|
758
|
-
toProtoMsg(message) {
|
|
759
|
-
return {
|
|
760
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest',
|
|
761
|
-
value: QueryDelegationTotalRewardsRequest.encode(message).finish(),
|
|
762
|
-
};
|
|
763
|
-
},
|
|
764
|
-
};
|
|
765
|
-
function createBaseQueryDelegationTotalRewardsResponse() {
|
|
766
|
-
return {
|
|
767
|
-
rewards: [],
|
|
768
|
-
total: [],
|
|
769
|
-
};
|
|
770
|
-
}
|
|
771
|
-
export const QueryDelegationTotalRewardsResponse = {
|
|
772
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse',
|
|
773
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
774
|
-
for (const v of message.rewards) {
|
|
775
|
-
DelegationDelegatorReward.encode(v, writer.uint32(10).fork()).ldelim();
|
|
776
|
-
}
|
|
777
|
-
for (const v of message.total) {
|
|
778
|
-
DecCoin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
779
|
-
}
|
|
780
|
-
return writer;
|
|
781
|
-
},
|
|
782
|
-
decode(input, length) {
|
|
783
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
784
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
785
|
-
const message = createBaseQueryDelegationTotalRewardsResponse();
|
|
786
|
-
while (reader.pos < end) {
|
|
787
|
-
const tag = reader.uint32();
|
|
788
|
-
switch (tag >>> 3) {
|
|
789
|
-
case 1:
|
|
790
|
-
message.rewards.push(DelegationDelegatorReward.decode(reader, reader.uint32()));
|
|
791
|
-
break;
|
|
792
|
-
case 2:
|
|
793
|
-
message.total.push(DecCoin.decode(reader, reader.uint32()));
|
|
794
|
-
break;
|
|
795
|
-
default:
|
|
796
|
-
reader.skipType(tag & 7);
|
|
797
|
-
break;
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
return message;
|
|
801
|
-
},
|
|
802
|
-
fromJSON(object) {
|
|
803
|
-
return {
|
|
804
|
-
rewards: Array.isArray(object?.rewards)
|
|
805
|
-
? object.rewards.map((e) => DelegationDelegatorReward.fromJSON(e))
|
|
806
|
-
: [],
|
|
807
|
-
total: Array.isArray(object?.total)
|
|
808
|
-
? object.total.map((e) => DecCoin.fromJSON(e))
|
|
809
|
-
: [],
|
|
810
|
-
};
|
|
811
|
-
},
|
|
812
|
-
toJSON(message) {
|
|
813
|
-
const obj = {};
|
|
814
|
-
if (message.rewards) {
|
|
815
|
-
obj.rewards = message.rewards.map(e => e ? DelegationDelegatorReward.toJSON(e) : undefined);
|
|
816
|
-
}
|
|
817
|
-
else {
|
|
818
|
-
obj.rewards = [];
|
|
819
|
-
}
|
|
820
|
-
if (message.total) {
|
|
821
|
-
obj.total = message.total.map(e => (e ? DecCoin.toJSON(e) : undefined));
|
|
822
|
-
}
|
|
823
|
-
else {
|
|
824
|
-
obj.total = [];
|
|
825
|
-
}
|
|
826
|
-
return obj;
|
|
827
|
-
},
|
|
828
|
-
fromPartial(object) {
|
|
829
|
-
const message = createBaseQueryDelegationTotalRewardsResponse();
|
|
830
|
-
message.rewards =
|
|
831
|
-
object.rewards?.map(e => DelegationDelegatorReward.fromPartial(e)) || [];
|
|
832
|
-
message.total = object.total?.map(e => DecCoin.fromPartial(e)) || [];
|
|
833
|
-
return message;
|
|
834
|
-
},
|
|
835
|
-
fromProtoMsg(message) {
|
|
836
|
-
return QueryDelegationTotalRewardsResponse.decode(message.value);
|
|
837
|
-
},
|
|
838
|
-
toProto(message) {
|
|
839
|
-
return QueryDelegationTotalRewardsResponse.encode(message).finish();
|
|
840
|
-
},
|
|
841
|
-
toProtoMsg(message) {
|
|
842
|
-
return {
|
|
843
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse',
|
|
844
|
-
value: QueryDelegationTotalRewardsResponse.encode(message).finish(),
|
|
845
|
-
};
|
|
846
|
-
},
|
|
847
|
-
};
|
|
848
|
-
function createBaseQueryDelegatorValidatorsRequest() {
|
|
849
|
-
return {
|
|
850
|
-
delegatorAddress: '',
|
|
851
|
-
};
|
|
852
|
-
}
|
|
853
|
-
export const QueryDelegatorValidatorsRequest = {
|
|
854
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest',
|
|
855
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
856
|
-
if (message.delegatorAddress !== '') {
|
|
857
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
858
|
-
}
|
|
859
|
-
return writer;
|
|
860
|
-
},
|
|
861
|
-
decode(input, length) {
|
|
862
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
863
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
864
|
-
const message = createBaseQueryDelegatorValidatorsRequest();
|
|
865
|
-
while (reader.pos < end) {
|
|
866
|
-
const tag = reader.uint32();
|
|
867
|
-
switch (tag >>> 3) {
|
|
868
|
-
case 1:
|
|
869
|
-
message.delegatorAddress = reader.string();
|
|
870
|
-
break;
|
|
871
|
-
default:
|
|
872
|
-
reader.skipType(tag & 7);
|
|
873
|
-
break;
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
return message;
|
|
877
|
-
},
|
|
878
|
-
fromJSON(object) {
|
|
879
|
-
return {
|
|
880
|
-
delegatorAddress: isSet(object.delegatorAddress)
|
|
881
|
-
? String(object.delegatorAddress)
|
|
882
|
-
: '',
|
|
883
|
-
};
|
|
884
|
-
},
|
|
885
|
-
toJSON(message) {
|
|
886
|
-
const obj = {};
|
|
887
|
-
message.delegatorAddress !== undefined &&
|
|
888
|
-
(obj.delegatorAddress = message.delegatorAddress);
|
|
889
|
-
return obj;
|
|
890
|
-
},
|
|
891
|
-
fromPartial(object) {
|
|
892
|
-
const message = createBaseQueryDelegatorValidatorsRequest();
|
|
893
|
-
message.delegatorAddress = object.delegatorAddress ?? '';
|
|
894
|
-
return message;
|
|
895
|
-
},
|
|
896
|
-
fromProtoMsg(message) {
|
|
897
|
-
return QueryDelegatorValidatorsRequest.decode(message.value);
|
|
898
|
-
},
|
|
899
|
-
toProto(message) {
|
|
900
|
-
return QueryDelegatorValidatorsRequest.encode(message).finish();
|
|
901
|
-
},
|
|
902
|
-
toProtoMsg(message) {
|
|
903
|
-
return {
|
|
904
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest',
|
|
905
|
-
value: QueryDelegatorValidatorsRequest.encode(message).finish(),
|
|
906
|
-
};
|
|
907
|
-
},
|
|
908
|
-
};
|
|
909
|
-
function createBaseQueryDelegatorValidatorsResponse() {
|
|
910
|
-
return {
|
|
911
|
-
validators: [],
|
|
912
|
-
};
|
|
913
|
-
}
|
|
914
|
-
export const QueryDelegatorValidatorsResponse = {
|
|
915
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse',
|
|
916
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
917
|
-
for (const v of message.validators) {
|
|
918
|
-
writer.uint32(10).string(v);
|
|
919
|
-
}
|
|
920
|
-
return writer;
|
|
921
|
-
},
|
|
922
|
-
decode(input, length) {
|
|
923
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
924
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
925
|
-
const message = createBaseQueryDelegatorValidatorsResponse();
|
|
926
|
-
while (reader.pos < end) {
|
|
927
|
-
const tag = reader.uint32();
|
|
928
|
-
switch (tag >>> 3) {
|
|
929
|
-
case 1:
|
|
930
|
-
message.validators.push(reader.string());
|
|
931
|
-
break;
|
|
932
|
-
default:
|
|
933
|
-
reader.skipType(tag & 7);
|
|
934
|
-
break;
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
return message;
|
|
938
|
-
},
|
|
939
|
-
fromJSON(object) {
|
|
940
|
-
return {
|
|
941
|
-
validators: Array.isArray(object?.validators)
|
|
942
|
-
? object.validators.map((e) => String(e))
|
|
943
|
-
: [],
|
|
944
|
-
};
|
|
945
|
-
},
|
|
946
|
-
toJSON(message) {
|
|
947
|
-
const obj = {};
|
|
948
|
-
if (message.validators) {
|
|
949
|
-
obj.validators = message.validators.map(e => e);
|
|
950
|
-
}
|
|
951
|
-
else {
|
|
952
|
-
obj.validators = [];
|
|
953
|
-
}
|
|
954
|
-
return obj;
|
|
955
|
-
},
|
|
956
|
-
fromPartial(object) {
|
|
957
|
-
const message = createBaseQueryDelegatorValidatorsResponse();
|
|
958
|
-
message.validators = object.validators?.map(e => e) || [];
|
|
959
|
-
return message;
|
|
960
|
-
},
|
|
961
|
-
fromProtoMsg(message) {
|
|
962
|
-
return QueryDelegatorValidatorsResponse.decode(message.value);
|
|
963
|
-
},
|
|
964
|
-
toProto(message) {
|
|
965
|
-
return QueryDelegatorValidatorsResponse.encode(message).finish();
|
|
966
|
-
},
|
|
967
|
-
toProtoMsg(message) {
|
|
968
|
-
return {
|
|
969
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse',
|
|
970
|
-
value: QueryDelegatorValidatorsResponse.encode(message).finish(),
|
|
971
|
-
};
|
|
972
|
-
},
|
|
973
|
-
};
|
|
974
|
-
function createBaseQueryDelegatorWithdrawAddressRequest() {
|
|
975
|
-
return {
|
|
976
|
-
delegatorAddress: '',
|
|
977
|
-
};
|
|
978
|
-
}
|
|
979
|
-
export const QueryDelegatorWithdrawAddressRequest = {
|
|
980
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest',
|
|
981
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
982
|
-
if (message.delegatorAddress !== '') {
|
|
983
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
984
|
-
}
|
|
985
|
-
return writer;
|
|
986
|
-
},
|
|
987
|
-
decode(input, length) {
|
|
988
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
989
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
990
|
-
const message = createBaseQueryDelegatorWithdrawAddressRequest();
|
|
991
|
-
while (reader.pos < end) {
|
|
992
|
-
const tag = reader.uint32();
|
|
993
|
-
switch (tag >>> 3) {
|
|
994
|
-
case 1:
|
|
995
|
-
message.delegatorAddress = reader.string();
|
|
996
|
-
break;
|
|
997
|
-
default:
|
|
998
|
-
reader.skipType(tag & 7);
|
|
999
|
-
break;
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
return message;
|
|
1003
|
-
},
|
|
1004
|
-
fromJSON(object) {
|
|
1005
|
-
return {
|
|
1006
|
-
delegatorAddress: isSet(object.delegatorAddress)
|
|
1007
|
-
? String(object.delegatorAddress)
|
|
1008
|
-
: '',
|
|
1009
|
-
};
|
|
1010
|
-
},
|
|
1011
|
-
toJSON(message) {
|
|
1012
|
-
const obj = {};
|
|
1013
|
-
message.delegatorAddress !== undefined &&
|
|
1014
|
-
(obj.delegatorAddress = message.delegatorAddress);
|
|
1015
|
-
return obj;
|
|
1016
|
-
},
|
|
1017
|
-
fromPartial(object) {
|
|
1018
|
-
const message = createBaseQueryDelegatorWithdrawAddressRequest();
|
|
1019
|
-
message.delegatorAddress = object.delegatorAddress ?? '';
|
|
1020
|
-
return message;
|
|
1021
|
-
},
|
|
1022
|
-
fromProtoMsg(message) {
|
|
1023
|
-
return QueryDelegatorWithdrawAddressRequest.decode(message.value);
|
|
1024
|
-
},
|
|
1025
|
-
toProto(message) {
|
|
1026
|
-
return QueryDelegatorWithdrawAddressRequest.encode(message).finish();
|
|
1027
|
-
},
|
|
1028
|
-
toProtoMsg(message) {
|
|
1029
|
-
return {
|
|
1030
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest',
|
|
1031
|
-
value: QueryDelegatorWithdrawAddressRequest.encode(message).finish(),
|
|
1032
|
-
};
|
|
1033
|
-
},
|
|
1034
|
-
};
|
|
1035
|
-
function createBaseQueryDelegatorWithdrawAddressResponse() {
|
|
1036
|
-
return {
|
|
1037
|
-
withdrawAddress: '',
|
|
1038
|
-
};
|
|
1039
|
-
}
|
|
1040
|
-
export const QueryDelegatorWithdrawAddressResponse = {
|
|
1041
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse',
|
|
1042
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1043
|
-
if (message.withdrawAddress !== '') {
|
|
1044
|
-
writer.uint32(10).string(message.withdrawAddress);
|
|
1045
|
-
}
|
|
1046
|
-
return writer;
|
|
1047
|
-
},
|
|
1048
|
-
decode(input, length) {
|
|
1049
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1050
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1051
|
-
const message = createBaseQueryDelegatorWithdrawAddressResponse();
|
|
1052
|
-
while (reader.pos < end) {
|
|
1053
|
-
const tag = reader.uint32();
|
|
1054
|
-
switch (tag >>> 3) {
|
|
1055
|
-
case 1:
|
|
1056
|
-
message.withdrawAddress = reader.string();
|
|
1057
|
-
break;
|
|
1058
|
-
default:
|
|
1059
|
-
reader.skipType(tag & 7);
|
|
1060
|
-
break;
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
return message;
|
|
1064
|
-
},
|
|
1065
|
-
fromJSON(object) {
|
|
1066
|
-
return {
|
|
1067
|
-
withdrawAddress: isSet(object.withdrawAddress)
|
|
1068
|
-
? String(object.withdrawAddress)
|
|
1069
|
-
: '',
|
|
1070
|
-
};
|
|
1071
|
-
},
|
|
1072
|
-
toJSON(message) {
|
|
1073
|
-
const obj = {};
|
|
1074
|
-
message.withdrawAddress !== undefined &&
|
|
1075
|
-
(obj.withdrawAddress = message.withdrawAddress);
|
|
1076
|
-
return obj;
|
|
1077
|
-
},
|
|
1078
|
-
fromPartial(object) {
|
|
1079
|
-
const message = createBaseQueryDelegatorWithdrawAddressResponse();
|
|
1080
|
-
message.withdrawAddress = object.withdrawAddress ?? '';
|
|
1081
|
-
return message;
|
|
1082
|
-
},
|
|
1083
|
-
fromProtoMsg(message) {
|
|
1084
|
-
return QueryDelegatorWithdrawAddressResponse.decode(message.value);
|
|
1085
|
-
},
|
|
1086
|
-
toProto(message) {
|
|
1087
|
-
return QueryDelegatorWithdrawAddressResponse.encode(message).finish();
|
|
1088
|
-
},
|
|
1089
|
-
toProtoMsg(message) {
|
|
1090
|
-
return {
|
|
1091
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse',
|
|
1092
|
-
value: QueryDelegatorWithdrawAddressResponse.encode(message).finish(),
|
|
1093
|
-
};
|
|
1094
|
-
},
|
|
1095
|
-
};
|
|
1096
|
-
function createBaseQueryCommunityPoolRequest() {
|
|
1097
|
-
return {};
|
|
1098
|
-
}
|
|
1099
|
-
export const QueryCommunityPoolRequest = {
|
|
1100
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryCommunityPoolRequest',
|
|
1101
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
1102
|
-
return writer;
|
|
1103
|
-
},
|
|
1104
|
-
decode(input, length) {
|
|
1105
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1106
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1107
|
-
const message = createBaseQueryCommunityPoolRequest();
|
|
1108
|
-
while (reader.pos < end) {
|
|
1109
|
-
const tag = reader.uint32();
|
|
1110
|
-
switch (tag >>> 3) {
|
|
1111
|
-
default:
|
|
1112
|
-
reader.skipType(tag & 7);
|
|
1113
|
-
break;
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
return message;
|
|
1117
|
-
},
|
|
1118
|
-
fromJSON(_) {
|
|
1119
|
-
return {};
|
|
1120
|
-
},
|
|
1121
|
-
toJSON(_) {
|
|
1122
|
-
const obj = {};
|
|
1123
|
-
return obj;
|
|
1124
|
-
},
|
|
1125
|
-
fromPartial(_) {
|
|
1126
|
-
const message = createBaseQueryCommunityPoolRequest();
|
|
1127
|
-
return message;
|
|
1128
|
-
},
|
|
1129
|
-
fromProtoMsg(message) {
|
|
1130
|
-
return QueryCommunityPoolRequest.decode(message.value);
|
|
1131
|
-
},
|
|
1132
|
-
toProto(message) {
|
|
1133
|
-
return QueryCommunityPoolRequest.encode(message).finish();
|
|
1134
|
-
},
|
|
1135
|
-
toProtoMsg(message) {
|
|
1136
|
-
return {
|
|
1137
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryCommunityPoolRequest',
|
|
1138
|
-
value: QueryCommunityPoolRequest.encode(message).finish(),
|
|
1139
|
-
};
|
|
1140
|
-
},
|
|
1141
|
-
};
|
|
1142
|
-
function createBaseQueryCommunityPoolResponse() {
|
|
1143
|
-
return {
|
|
1144
|
-
pool: [],
|
|
1145
|
-
};
|
|
1146
|
-
}
|
|
1147
|
-
export const QueryCommunityPoolResponse = {
|
|
1148
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryCommunityPoolResponse',
|
|
1149
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1150
|
-
for (const v of message.pool) {
|
|
1151
|
-
DecCoin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1152
|
-
}
|
|
1153
|
-
return writer;
|
|
1154
|
-
},
|
|
1155
|
-
decode(input, length) {
|
|
1156
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1157
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1158
|
-
const message = createBaseQueryCommunityPoolResponse();
|
|
1159
|
-
while (reader.pos < end) {
|
|
1160
|
-
const tag = reader.uint32();
|
|
1161
|
-
switch (tag >>> 3) {
|
|
1162
|
-
case 1:
|
|
1163
|
-
message.pool.push(DecCoin.decode(reader, reader.uint32()));
|
|
1164
|
-
break;
|
|
1165
|
-
default:
|
|
1166
|
-
reader.skipType(tag & 7);
|
|
1167
|
-
break;
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
return message;
|
|
1171
|
-
},
|
|
1172
|
-
fromJSON(object) {
|
|
1173
|
-
return {
|
|
1174
|
-
pool: Array.isArray(object?.pool)
|
|
1175
|
-
? object.pool.map((e) => DecCoin.fromJSON(e))
|
|
1176
|
-
: [],
|
|
1177
|
-
};
|
|
1178
|
-
},
|
|
1179
|
-
toJSON(message) {
|
|
1180
|
-
const obj = {};
|
|
1181
|
-
if (message.pool) {
|
|
1182
|
-
obj.pool = message.pool.map(e => (e ? DecCoin.toJSON(e) : undefined));
|
|
1183
|
-
}
|
|
1184
|
-
else {
|
|
1185
|
-
obj.pool = [];
|
|
1186
|
-
}
|
|
1187
|
-
return obj;
|
|
1188
|
-
},
|
|
1189
|
-
fromPartial(object) {
|
|
1190
|
-
const message = createBaseQueryCommunityPoolResponse();
|
|
1191
|
-
message.pool = object.pool?.map(e => DecCoin.fromPartial(e)) || [];
|
|
1192
|
-
return message;
|
|
1193
|
-
},
|
|
1194
|
-
fromProtoMsg(message) {
|
|
1195
|
-
return QueryCommunityPoolResponse.decode(message.value);
|
|
1196
|
-
},
|
|
1197
|
-
toProto(message) {
|
|
1198
|
-
return QueryCommunityPoolResponse.encode(message).finish();
|
|
1199
|
-
},
|
|
1200
|
-
toProtoMsg(message) {
|
|
1201
|
-
return {
|
|
1202
|
-
typeUrl: '/cosmos.distribution.v1beta1.QueryCommunityPoolResponse',
|
|
1203
|
-
value: QueryCommunityPoolResponse.encode(message).finish(),
|
|
1204
|
-
};
|
|
1205
|
-
},
|
|
1206
|
-
};
|
|
1207
|
-
//# sourceMappingURL=query.js.map
|
|
1
|
+
import{PageRequest as e,PageResponse as o}from"../../base/query/v1beta1/pagination.js";import{Params as s,ValidatorOutstandingRewards as r,ValidatorAccumulatedCommission as t,ValidatorSlashEvent as i,DelegationDelegatorReward as a}from"./distribution.js";import{DecCoin as d}from"../../base/v1beta1/coin.js";import{BinaryReader as n,BinaryWriter as l}from"../../../binary.js";import{}from"../../../json-safe.js";import{isSet as u}from"../../../helpers.js";export const QueryParamsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryParamsRequest",encode:(e,o=l.create())=>o,decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={};for(;s.pos<r;){const e=s.uint32();s.skipType(7&e)}return t},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>QueryParamsRequest.decode(e.value),toProto:e=>QueryParamsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryParamsRequest",value:QueryParamsRequest.encode(e).finish()})};function c(){return{params:s.fromPartial({})}}export const QueryParamsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryParamsResponse",encode:(e,o=l.create())=>(void 0!==e.params&&s.encode(e.params,o.uint32(10).fork()).ldelim(),o),decode(e,o){const r=e instanceof n?e:new n(e);let t=void 0===o?r.len:r.pos+o;const i=c();for(;r.pos<t;){const e=r.uint32();if(e>>>3==1)i.params=s.decode(r,r.uint32());else r.skipType(7&e)}return i},fromJSON:e=>({params:u(e.params)?s.fromJSON(e.params):void 0}),toJSON(e){const o={};return void 0!==e.params&&(o.params=e.params?s.toJSON(e.params):void 0),o},fromPartial(e){const o=c();return o.params=void 0!==e.params&&null!==e.params?s.fromPartial(e.params):void 0,o},fromProtoMsg:e=>QueryParamsResponse.decode(e.value),toProto:e=>QueryParamsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryParamsResponse",value:QueryParamsResponse.encode(e).finish()})};export const QueryValidatorDistributionInfoRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest",encode:(e,o=l.create())=>(""!==e.validatorAddress&&o.uint32(10).string(e.validatorAddress),o),decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={validatorAddress:""};for(;s.pos<r;){const e=s.uint32();if(e>>>3==1)t.validatorAddress=s.string();else s.skipType(7&e)}return t},fromJSON:e=>({validatorAddress:u(e.validatorAddress)?String(e.validatorAddress):""}),toJSON(e){const o={};return void 0!==e.validatorAddress&&(o.validatorAddress=e.validatorAddress),o},fromPartial(e){const o={validatorAddress:""};return o.validatorAddress=e.validatorAddress??"",o},fromProtoMsg:e=>QueryValidatorDistributionInfoRequest.decode(e.value),toProto:e=>QueryValidatorDistributionInfoRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest",value:QueryValidatorDistributionInfoRequest.encode(e).finish()})};export const QueryValidatorDistributionInfoResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse",encode(e,o=l.create()){""!==e.operatorAddress&&o.uint32(10).string(e.operatorAddress);for(const s of e.selfBondRewards)d.encode(s,o.uint32(18).fork()).ldelim();for(const s of e.commission)d.encode(s,o.uint32(26).fork()).ldelim();return o},decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={operatorAddress:"",selfBondRewards:[],commission:[]};for(;s.pos<r;){const e=s.uint32();switch(e>>>3){case 1:t.operatorAddress=s.string();break;case 2:t.selfBondRewards.push(d.decode(s,s.uint32()));break;case 3:t.commission.push(d.decode(s,s.uint32()));break;default:s.skipType(7&e)}}return t},fromJSON:e=>({operatorAddress:u(e.operatorAddress)?String(e.operatorAddress):"",selfBondRewards:Array.isArray(e?.selfBondRewards)?e.selfBondRewards.map((e=>d.fromJSON(e))):[],commission:Array.isArray(e?.commission)?e.commission.map((e=>d.fromJSON(e))):[]}),toJSON(e){const o={};return void 0!==e.operatorAddress&&(o.operatorAddress=e.operatorAddress),e.selfBondRewards?o.selfBondRewards=e.selfBondRewards.map((e=>e?d.toJSON(e):void 0)):o.selfBondRewards=[],e.commission?o.commission=e.commission.map((e=>e?d.toJSON(e):void 0)):o.commission=[],o},fromPartial(e){const o={operatorAddress:"",selfBondRewards:[],commission:[]};return o.operatorAddress=e.operatorAddress??"",o.selfBondRewards=e.selfBondRewards?.map((e=>d.fromPartial(e)))||[],o.commission=e.commission?.map((e=>d.fromPartial(e)))||[],o},fromProtoMsg:e=>QueryValidatorDistributionInfoResponse.decode(e.value),toProto:e=>QueryValidatorDistributionInfoResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse",value:QueryValidatorDistributionInfoResponse.encode(e).finish()})};export const QueryValidatorOutstandingRewardsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest",encode:(e,o=l.create())=>(""!==e.validatorAddress&&o.uint32(10).string(e.validatorAddress),o),decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={validatorAddress:""};for(;s.pos<r;){const e=s.uint32();if(e>>>3==1)t.validatorAddress=s.string();else s.skipType(7&e)}return t},fromJSON:e=>({validatorAddress:u(e.validatorAddress)?String(e.validatorAddress):""}),toJSON(e){const o={};return void 0!==e.validatorAddress&&(o.validatorAddress=e.validatorAddress),o},fromPartial(e){const o={validatorAddress:""};return o.validatorAddress=e.validatorAddress??"",o},fromProtoMsg:e=>QueryValidatorOutstandingRewardsRequest.decode(e.value),toProto:e=>QueryValidatorOutstandingRewardsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest",value:QueryValidatorOutstandingRewardsRequest.encode(e).finish()})};function p(){return{rewards:r.fromPartial({})}}export const QueryValidatorOutstandingRewardsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse",encode:(e,o=l.create())=>(void 0!==e.rewards&&r.encode(e.rewards,o.uint32(10).fork()).ldelim(),o),decode(e,o){const s=e instanceof n?e:new n(e);let t=void 0===o?s.len:s.pos+o;const i=p();for(;s.pos<t;){const e=s.uint32();if(e>>>3==1)i.rewards=r.decode(s,s.uint32());else s.skipType(7&e)}return i},fromJSON:e=>({rewards:u(e.rewards)?r.fromJSON(e.rewards):void 0}),toJSON(e){const o={};return void 0!==e.rewards&&(o.rewards=e.rewards?r.toJSON(e.rewards):void 0),o},fromPartial(e){const o=p();return o.rewards=void 0!==e.rewards&&null!==e.rewards?r.fromPartial(e.rewards):void 0,o},fromProtoMsg:e=>QueryValidatorOutstandingRewardsResponse.decode(e.value),toProto:e=>QueryValidatorOutstandingRewardsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse",value:QueryValidatorOutstandingRewardsResponse.encode(e).finish()})};export const QueryValidatorCommissionRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest",encode:(e,o=l.create())=>(""!==e.validatorAddress&&o.uint32(10).string(e.validatorAddress),o),decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={validatorAddress:""};for(;s.pos<r;){const e=s.uint32();if(e>>>3==1)t.validatorAddress=s.string();else s.skipType(7&e)}return t},fromJSON:e=>({validatorAddress:u(e.validatorAddress)?String(e.validatorAddress):""}),toJSON(e){const o={};return void 0!==e.validatorAddress&&(o.validatorAddress=e.validatorAddress),o},fromPartial(e){const o={validatorAddress:""};return o.validatorAddress=e.validatorAddress??"",o},fromProtoMsg:e=>QueryValidatorCommissionRequest.decode(e.value),toProto:e=>QueryValidatorCommissionRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest",value:QueryValidatorCommissionRequest.encode(e).finish()})};function m(){return{commission:t.fromPartial({})}}export const QueryValidatorCommissionResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse",encode:(e,o=l.create())=>(void 0!==e.commission&&t.encode(e.commission,o.uint32(10).fork()).ldelim(),o),decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const i=m();for(;s.pos<r;){const e=s.uint32();if(e>>>3==1)i.commission=t.decode(s,s.uint32());else s.skipType(7&e)}return i},fromJSON:e=>({commission:u(e.commission)?t.fromJSON(e.commission):void 0}),toJSON(e){const o={};return void 0!==e.commission&&(o.commission=e.commission?t.toJSON(e.commission):void 0),o},fromPartial(e){const o=m();return o.commission=void 0!==e.commission&&null!==e.commission?t.fromPartial(e.commission):void 0,o},fromProtoMsg:e=>QueryValidatorCommissionResponse.decode(e.value),toProto:e=>QueryValidatorCommissionResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse",value:QueryValidatorCommissionResponse.encode(e).finish()})};function g(){return{validatorAddress:"",startingHeight:BigInt(0),endingHeight:BigInt(0),pagination:void 0}}export const QueryValidatorSlashesRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest",encode:(o,s=l.create())=>(""!==o.validatorAddress&&s.uint32(10).string(o.validatorAddress),o.startingHeight!==BigInt(0)&&s.uint32(16).uint64(o.startingHeight),o.endingHeight!==BigInt(0)&&s.uint32(24).uint64(o.endingHeight),void 0!==o.pagination&&e.encode(o.pagination,s.uint32(34).fork()).ldelim(),s),decode(o,s){const r=o instanceof n?o:new n(o);let t=void 0===s?r.len:r.pos+s;const i=g();for(;r.pos<t;){const o=r.uint32();switch(o>>>3){case 1:i.validatorAddress=r.string();break;case 2:i.startingHeight=r.uint64();break;case 3:i.endingHeight=r.uint64();break;case 4:i.pagination=e.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:o=>({validatorAddress:u(o.validatorAddress)?String(o.validatorAddress):"",startingHeight:u(o.startingHeight)?BigInt(o.startingHeight.toString()):BigInt(0),endingHeight:u(o.endingHeight)?BigInt(o.endingHeight.toString()):BigInt(0),pagination:u(o.pagination)?e.fromJSON(o.pagination):void 0}),toJSON(o){const s={};return void 0!==o.validatorAddress&&(s.validatorAddress=o.validatorAddress),void 0!==o.startingHeight&&(s.startingHeight=(o.startingHeight||BigInt(0)).toString()),void 0!==o.endingHeight&&(s.endingHeight=(o.endingHeight||BigInt(0)).toString()),void 0!==o.pagination&&(s.pagination=o.pagination?e.toJSON(o.pagination):void 0),s},fromPartial(o){const s=g();return s.validatorAddress=o.validatorAddress??"",s.startingHeight=void 0!==o.startingHeight&&null!==o.startingHeight?BigInt(o.startingHeight.toString()):BigInt(0),s.endingHeight=void 0!==o.endingHeight&&null!==o.endingHeight?BigInt(o.endingHeight.toString()):BigInt(0),s.pagination=void 0!==o.pagination&&null!==o.pagination?e.fromPartial(o.pagination):void 0,s},fromProtoMsg:e=>QueryValidatorSlashesRequest.decode(e.value),toProto:e=>QueryValidatorSlashesRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest",value:QueryValidatorSlashesRequest.encode(e).finish()})};export const QueryValidatorSlashesResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse",encode(e,s=l.create()){for(const o of e.slashes)i.encode(o,s.uint32(10).fork()).ldelim();return void 0!==e.pagination&&o.encode(e.pagination,s.uint32(18).fork()).ldelim(),s},decode(e,s){const r=e instanceof n?e:new n(e);let t=void 0===s?r.len:r.pos+s;const a={slashes:[],pagination:void 0};for(;r.pos<t;){const e=r.uint32();switch(e>>>3){case 1:a.slashes.push(i.decode(r,r.uint32()));break;case 2:a.pagination=o.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON:e=>({slashes:Array.isArray(e?.slashes)?e.slashes.map((e=>i.fromJSON(e))):[],pagination:u(e.pagination)?o.fromJSON(e.pagination):void 0}),toJSON(e){const s={};return e.slashes?s.slashes=e.slashes.map((e=>e?i.toJSON(e):void 0)):s.slashes=[],void 0!==e.pagination&&(s.pagination=e.pagination?o.toJSON(e.pagination):void 0),s},fromPartial(e){const s={slashes:[],pagination:void 0};return s.slashes=e.slashes?.map((e=>i.fromPartial(e)))||[],s.pagination=void 0!==e.pagination&&null!==e.pagination?o.fromPartial(e.pagination):void 0,s},fromProtoMsg:e=>QueryValidatorSlashesResponse.decode(e.value),toProto:e=>QueryValidatorSlashesResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse",value:QueryValidatorSlashesResponse.encode(e).finish()})};export const QueryDelegationRewardsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest",encode:(e,o=l.create())=>(""!==e.delegatorAddress&&o.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&o.uint32(18).string(e.validatorAddress),o),decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={delegatorAddress:"",validatorAddress:""};for(;s.pos<r;){const e=s.uint32();switch(e>>>3){case 1:t.delegatorAddress=s.string();break;case 2:t.validatorAddress=s.string();break;default:s.skipType(7&e)}}return t},fromJSON:e=>({delegatorAddress:u(e.delegatorAddress)?String(e.delegatorAddress):"",validatorAddress:u(e.validatorAddress)?String(e.validatorAddress):""}),toJSON(e){const o={};return void 0!==e.delegatorAddress&&(o.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(o.validatorAddress=e.validatorAddress),o},fromPartial(e){const o={delegatorAddress:"",validatorAddress:""};return o.delegatorAddress=e.delegatorAddress??"",o.validatorAddress=e.validatorAddress??"",o},fromProtoMsg:e=>QueryDelegationRewardsRequest.decode(e.value),toProto:e=>QueryDelegationRewardsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest",value:QueryDelegationRewardsRequest.encode(e).finish()})};export const QueryDelegationRewardsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse",encode(e,o=l.create()){for(const s of e.rewards)d.encode(s,o.uint32(10).fork()).ldelim();return o},decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={rewards:[]};for(;s.pos<r;){const e=s.uint32();if(e>>>3==1)t.rewards.push(d.decode(s,s.uint32()));else s.skipType(7&e)}return t},fromJSON:e=>({rewards:Array.isArray(e?.rewards)?e.rewards.map((e=>d.fromJSON(e))):[]}),toJSON(e){const o={};return e.rewards?o.rewards=e.rewards.map((e=>e?d.toJSON(e):void 0)):o.rewards=[],o},fromPartial(e){const o={rewards:[]};return o.rewards=e.rewards?.map((e=>d.fromPartial(e)))||[],o},fromProtoMsg:e=>QueryDelegationRewardsResponse.decode(e.value),toProto:e=>QueryDelegationRewardsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse",value:QueryDelegationRewardsResponse.encode(e).finish()})};export const QueryDelegationTotalRewardsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest",encode:(e,o=l.create())=>(""!==e.delegatorAddress&&o.uint32(10).string(e.delegatorAddress),o),decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={delegatorAddress:""};for(;s.pos<r;){const e=s.uint32();if(e>>>3==1)t.delegatorAddress=s.string();else s.skipType(7&e)}return t},fromJSON:e=>({delegatorAddress:u(e.delegatorAddress)?String(e.delegatorAddress):""}),toJSON(e){const o={};return void 0!==e.delegatorAddress&&(o.delegatorAddress=e.delegatorAddress),o},fromPartial(e){const o={delegatorAddress:""};return o.delegatorAddress=e.delegatorAddress??"",o},fromProtoMsg:e=>QueryDelegationTotalRewardsRequest.decode(e.value),toProto:e=>QueryDelegationTotalRewardsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest",value:QueryDelegationTotalRewardsRequest.encode(e).finish()})};export const QueryDelegationTotalRewardsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse",encode(e,o=l.create()){for(const s of e.rewards)a.encode(s,o.uint32(10).fork()).ldelim();for(const s of e.total)d.encode(s,o.uint32(18).fork()).ldelim();return o},decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={rewards:[],total:[]};for(;s.pos<r;){const e=s.uint32();switch(e>>>3){case 1:t.rewards.push(a.decode(s,s.uint32()));break;case 2:t.total.push(d.decode(s,s.uint32()));break;default:s.skipType(7&e)}}return t},fromJSON:e=>({rewards:Array.isArray(e?.rewards)?e.rewards.map((e=>a.fromJSON(e))):[],total:Array.isArray(e?.total)?e.total.map((e=>d.fromJSON(e))):[]}),toJSON(e){const o={};return e.rewards?o.rewards=e.rewards.map((e=>e?a.toJSON(e):void 0)):o.rewards=[],e.total?o.total=e.total.map((e=>e?d.toJSON(e):void 0)):o.total=[],o},fromPartial(e){const o={rewards:[],total:[]};return o.rewards=e.rewards?.map((e=>a.fromPartial(e)))||[],o.total=e.total?.map((e=>d.fromPartial(e)))||[],o},fromProtoMsg:e=>QueryDelegationTotalRewardsResponse.decode(e.value),toProto:e=>QueryDelegationTotalRewardsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse",value:QueryDelegationTotalRewardsResponse.encode(e).finish()})};export const QueryDelegatorValidatorsRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest",encode:(e,o=l.create())=>(""!==e.delegatorAddress&&o.uint32(10).string(e.delegatorAddress),o),decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={delegatorAddress:""};for(;s.pos<r;){const e=s.uint32();if(e>>>3==1)t.delegatorAddress=s.string();else s.skipType(7&e)}return t},fromJSON:e=>({delegatorAddress:u(e.delegatorAddress)?String(e.delegatorAddress):""}),toJSON(e){const o={};return void 0!==e.delegatorAddress&&(o.delegatorAddress=e.delegatorAddress),o},fromPartial(e){const o={delegatorAddress:""};return o.delegatorAddress=e.delegatorAddress??"",o},fromProtoMsg:e=>QueryDelegatorValidatorsRequest.decode(e.value),toProto:e=>QueryDelegatorValidatorsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest",value:QueryDelegatorValidatorsRequest.encode(e).finish()})};export const QueryDelegatorValidatorsResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse",encode(e,o=l.create()){for(const s of e.validators)o.uint32(10).string(s);return o},decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={validators:[]};for(;s.pos<r;){const e=s.uint32();if(e>>>3==1)t.validators.push(s.string());else s.skipType(7&e)}return t},fromJSON:e=>({validators:Array.isArray(e?.validators)?e.validators.map((e=>String(e))):[]}),toJSON(e){const o={};return e.validators?o.validators=e.validators.map((e=>e)):o.validators=[],o},fromPartial(e){const o={validators:[]};return o.validators=e.validators?.map((e=>e))||[],o},fromProtoMsg:e=>QueryDelegatorValidatorsResponse.decode(e.value),toProto:e=>QueryDelegatorValidatorsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse",value:QueryDelegatorValidatorsResponse.encode(e).finish()})};export const QueryDelegatorWithdrawAddressRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest",encode:(e,o=l.create())=>(""!==e.delegatorAddress&&o.uint32(10).string(e.delegatorAddress),o),decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={delegatorAddress:""};for(;s.pos<r;){const e=s.uint32();if(e>>>3==1)t.delegatorAddress=s.string();else s.skipType(7&e)}return t},fromJSON:e=>({delegatorAddress:u(e.delegatorAddress)?String(e.delegatorAddress):""}),toJSON(e){const o={};return void 0!==e.delegatorAddress&&(o.delegatorAddress=e.delegatorAddress),o},fromPartial(e){const o={delegatorAddress:""};return o.delegatorAddress=e.delegatorAddress??"",o},fromProtoMsg:e=>QueryDelegatorWithdrawAddressRequest.decode(e.value),toProto:e=>QueryDelegatorWithdrawAddressRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest",value:QueryDelegatorWithdrawAddressRequest.encode(e).finish()})};export const QueryDelegatorWithdrawAddressResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse",encode:(e,o=l.create())=>(""!==e.withdrawAddress&&o.uint32(10).string(e.withdrawAddress),o),decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={withdrawAddress:""};for(;s.pos<r;){const e=s.uint32();if(e>>>3==1)t.withdrawAddress=s.string();else s.skipType(7&e)}return t},fromJSON:e=>({withdrawAddress:u(e.withdrawAddress)?String(e.withdrawAddress):""}),toJSON(e){const o={};return void 0!==e.withdrawAddress&&(o.withdrawAddress=e.withdrawAddress),o},fromPartial(e){const o={withdrawAddress:""};return o.withdrawAddress=e.withdrawAddress??"",o},fromProtoMsg:e=>QueryDelegatorWithdrawAddressResponse.decode(e.value),toProto:e=>QueryDelegatorWithdrawAddressResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse",value:QueryDelegatorWithdrawAddressResponse.encode(e).finish()})};export const QueryCommunityPoolRequest={typeUrl:"/cosmos.distribution.v1beta1.QueryCommunityPoolRequest",encode:(e,o=l.create())=>o,decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={};for(;s.pos<r;){const e=s.uint32();s.skipType(7&e)}return t},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>QueryCommunityPoolRequest.decode(e.value),toProto:e=>QueryCommunityPoolRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryCommunityPoolRequest",value:QueryCommunityPoolRequest.encode(e).finish()})};export const QueryCommunityPoolResponse={typeUrl:"/cosmos.distribution.v1beta1.QueryCommunityPoolResponse",encode(e,o=l.create()){for(const s of e.pool)d.encode(s,o.uint32(10).fork()).ldelim();return o},decode(e,o){const s=e instanceof n?e:new n(e);let r=void 0===o?s.len:s.pos+o;const t={pool:[]};for(;s.pos<r;){const e=s.uint32();if(e>>>3==1)t.pool.push(d.decode(s,s.uint32()));else s.skipType(7&e)}return t},fromJSON:e=>({pool:Array.isArray(e?.pool)?e.pool.map((e=>d.fromJSON(e))):[]}),toJSON(e){const o={};return e.pool?o.pool=e.pool.map((e=>e?d.toJSON(e):void 0)):o.pool=[],o},fromPartial(e){const o={pool:[]};return o.pool=e.pool?.map((e=>d.fromPartial(e)))||[],o},fromProtoMsg:e=>QueryCommunityPoolResponse.decode(e.value),toProto:e=>QueryCommunityPoolResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.distribution.v1beta1.QueryCommunityPoolResponse",value:QueryCommunityPoolResponse.encode(e).finish()})};
|