@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,837 +1 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { DecCoin } from '../../base/v1beta1/coin.js';
|
|
3
|
-
import { ValidatorAccumulatedCommission, ValidatorHistoricalRewards, ValidatorCurrentRewards, DelegatorStartingInfo, ValidatorSlashEvent, Params, FeePool, } from './distribution.js';
|
|
4
|
-
import { BinaryReader, BinaryWriter } from '../../../binary.js';
|
|
5
|
-
import { isSet } from '../../../helpers.js';
|
|
6
|
-
import {} from '../../../json-safe.js';
|
|
7
|
-
function createBaseDelegatorWithdrawInfo() {
|
|
8
|
-
return {
|
|
9
|
-
delegatorAddress: '',
|
|
10
|
-
withdrawAddress: '',
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export const DelegatorWithdrawInfo = {
|
|
14
|
-
typeUrl: '/cosmos.distribution.v1beta1.DelegatorWithdrawInfo',
|
|
15
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
16
|
-
if (message.delegatorAddress !== '') {
|
|
17
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
18
|
-
}
|
|
19
|
-
if (message.withdrawAddress !== '') {
|
|
20
|
-
writer.uint32(18).string(message.withdrawAddress);
|
|
21
|
-
}
|
|
22
|
-
return writer;
|
|
23
|
-
},
|
|
24
|
-
decode(input, length) {
|
|
25
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
26
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
27
|
-
const message = createBaseDelegatorWithdrawInfo();
|
|
28
|
-
while (reader.pos < end) {
|
|
29
|
-
const tag = reader.uint32();
|
|
30
|
-
switch (tag >>> 3) {
|
|
31
|
-
case 1:
|
|
32
|
-
message.delegatorAddress = reader.string();
|
|
33
|
-
break;
|
|
34
|
-
case 2:
|
|
35
|
-
message.withdrawAddress = reader.string();
|
|
36
|
-
break;
|
|
37
|
-
default:
|
|
38
|
-
reader.skipType(tag & 7);
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return message;
|
|
43
|
-
},
|
|
44
|
-
fromJSON(object) {
|
|
45
|
-
return {
|
|
46
|
-
delegatorAddress: isSet(object.delegatorAddress)
|
|
47
|
-
? String(object.delegatorAddress)
|
|
48
|
-
: '',
|
|
49
|
-
withdrawAddress: isSet(object.withdrawAddress)
|
|
50
|
-
? String(object.withdrawAddress)
|
|
51
|
-
: '',
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
toJSON(message) {
|
|
55
|
-
const obj = {};
|
|
56
|
-
message.delegatorAddress !== undefined &&
|
|
57
|
-
(obj.delegatorAddress = message.delegatorAddress);
|
|
58
|
-
message.withdrawAddress !== undefined &&
|
|
59
|
-
(obj.withdrawAddress = message.withdrawAddress);
|
|
60
|
-
return obj;
|
|
61
|
-
},
|
|
62
|
-
fromPartial(object) {
|
|
63
|
-
const message = createBaseDelegatorWithdrawInfo();
|
|
64
|
-
message.delegatorAddress = object.delegatorAddress ?? '';
|
|
65
|
-
message.withdrawAddress = object.withdrawAddress ?? '';
|
|
66
|
-
return message;
|
|
67
|
-
},
|
|
68
|
-
fromProtoMsg(message) {
|
|
69
|
-
return DelegatorWithdrawInfo.decode(message.value);
|
|
70
|
-
},
|
|
71
|
-
toProto(message) {
|
|
72
|
-
return DelegatorWithdrawInfo.encode(message).finish();
|
|
73
|
-
},
|
|
74
|
-
toProtoMsg(message) {
|
|
75
|
-
return {
|
|
76
|
-
typeUrl: '/cosmos.distribution.v1beta1.DelegatorWithdrawInfo',
|
|
77
|
-
value: DelegatorWithdrawInfo.encode(message).finish(),
|
|
78
|
-
};
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
function createBaseValidatorOutstandingRewardsRecord() {
|
|
82
|
-
return {
|
|
83
|
-
validatorAddress: '',
|
|
84
|
-
outstandingRewards: [],
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
export const ValidatorOutstandingRewardsRecord = {
|
|
88
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord',
|
|
89
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
90
|
-
if (message.validatorAddress !== '') {
|
|
91
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
92
|
-
}
|
|
93
|
-
for (const v of message.outstandingRewards) {
|
|
94
|
-
DecCoin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
95
|
-
}
|
|
96
|
-
return writer;
|
|
97
|
-
},
|
|
98
|
-
decode(input, length) {
|
|
99
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
100
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
101
|
-
const message = createBaseValidatorOutstandingRewardsRecord();
|
|
102
|
-
while (reader.pos < end) {
|
|
103
|
-
const tag = reader.uint32();
|
|
104
|
-
switch (tag >>> 3) {
|
|
105
|
-
case 1:
|
|
106
|
-
message.validatorAddress = reader.string();
|
|
107
|
-
break;
|
|
108
|
-
case 2:
|
|
109
|
-
message.outstandingRewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
110
|
-
break;
|
|
111
|
-
default:
|
|
112
|
-
reader.skipType(tag & 7);
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return message;
|
|
117
|
-
},
|
|
118
|
-
fromJSON(object) {
|
|
119
|
-
return {
|
|
120
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
121
|
-
? String(object.validatorAddress)
|
|
122
|
-
: '',
|
|
123
|
-
outstandingRewards: Array.isArray(object?.outstandingRewards)
|
|
124
|
-
? object.outstandingRewards.map((e) => DecCoin.fromJSON(e))
|
|
125
|
-
: [],
|
|
126
|
-
};
|
|
127
|
-
},
|
|
128
|
-
toJSON(message) {
|
|
129
|
-
const obj = {};
|
|
130
|
-
message.validatorAddress !== undefined &&
|
|
131
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
132
|
-
if (message.outstandingRewards) {
|
|
133
|
-
obj.outstandingRewards = message.outstandingRewards.map(e => e ? DecCoin.toJSON(e) : undefined);
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
obj.outstandingRewards = [];
|
|
137
|
-
}
|
|
138
|
-
return obj;
|
|
139
|
-
},
|
|
140
|
-
fromPartial(object) {
|
|
141
|
-
const message = createBaseValidatorOutstandingRewardsRecord();
|
|
142
|
-
message.validatorAddress = object.validatorAddress ?? '';
|
|
143
|
-
message.outstandingRewards =
|
|
144
|
-
object.outstandingRewards?.map(e => DecCoin.fromPartial(e)) || [];
|
|
145
|
-
return message;
|
|
146
|
-
},
|
|
147
|
-
fromProtoMsg(message) {
|
|
148
|
-
return ValidatorOutstandingRewardsRecord.decode(message.value);
|
|
149
|
-
},
|
|
150
|
-
toProto(message) {
|
|
151
|
-
return ValidatorOutstandingRewardsRecord.encode(message).finish();
|
|
152
|
-
},
|
|
153
|
-
toProtoMsg(message) {
|
|
154
|
-
return {
|
|
155
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord',
|
|
156
|
-
value: ValidatorOutstandingRewardsRecord.encode(message).finish(),
|
|
157
|
-
};
|
|
158
|
-
},
|
|
159
|
-
};
|
|
160
|
-
function createBaseValidatorAccumulatedCommissionRecord() {
|
|
161
|
-
return {
|
|
162
|
-
validatorAddress: '',
|
|
163
|
-
accumulated: ValidatorAccumulatedCommission.fromPartial({}),
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
export const ValidatorAccumulatedCommissionRecord = {
|
|
167
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord',
|
|
168
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
169
|
-
if (message.validatorAddress !== '') {
|
|
170
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
171
|
-
}
|
|
172
|
-
if (message.accumulated !== undefined) {
|
|
173
|
-
ValidatorAccumulatedCommission.encode(message.accumulated, writer.uint32(18).fork()).ldelim();
|
|
174
|
-
}
|
|
175
|
-
return writer;
|
|
176
|
-
},
|
|
177
|
-
decode(input, length) {
|
|
178
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
179
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
180
|
-
const message = createBaseValidatorAccumulatedCommissionRecord();
|
|
181
|
-
while (reader.pos < end) {
|
|
182
|
-
const tag = reader.uint32();
|
|
183
|
-
switch (tag >>> 3) {
|
|
184
|
-
case 1:
|
|
185
|
-
message.validatorAddress = reader.string();
|
|
186
|
-
break;
|
|
187
|
-
case 2:
|
|
188
|
-
message.accumulated = ValidatorAccumulatedCommission.decode(reader, reader.uint32());
|
|
189
|
-
break;
|
|
190
|
-
default:
|
|
191
|
-
reader.skipType(tag & 7);
|
|
192
|
-
break;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
return message;
|
|
196
|
-
},
|
|
197
|
-
fromJSON(object) {
|
|
198
|
-
return {
|
|
199
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
200
|
-
? String(object.validatorAddress)
|
|
201
|
-
: '',
|
|
202
|
-
accumulated: isSet(object.accumulated)
|
|
203
|
-
? ValidatorAccumulatedCommission.fromJSON(object.accumulated)
|
|
204
|
-
: undefined,
|
|
205
|
-
};
|
|
206
|
-
},
|
|
207
|
-
toJSON(message) {
|
|
208
|
-
const obj = {};
|
|
209
|
-
message.validatorAddress !== undefined &&
|
|
210
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
211
|
-
message.accumulated !== undefined &&
|
|
212
|
-
(obj.accumulated = message.accumulated
|
|
213
|
-
? ValidatorAccumulatedCommission.toJSON(message.accumulated)
|
|
214
|
-
: undefined);
|
|
215
|
-
return obj;
|
|
216
|
-
},
|
|
217
|
-
fromPartial(object) {
|
|
218
|
-
const message = createBaseValidatorAccumulatedCommissionRecord();
|
|
219
|
-
message.validatorAddress = object.validatorAddress ?? '';
|
|
220
|
-
message.accumulated =
|
|
221
|
-
object.accumulated !== undefined && object.accumulated !== null
|
|
222
|
-
? ValidatorAccumulatedCommission.fromPartial(object.accumulated)
|
|
223
|
-
: undefined;
|
|
224
|
-
return message;
|
|
225
|
-
},
|
|
226
|
-
fromProtoMsg(message) {
|
|
227
|
-
return ValidatorAccumulatedCommissionRecord.decode(message.value);
|
|
228
|
-
},
|
|
229
|
-
toProto(message) {
|
|
230
|
-
return ValidatorAccumulatedCommissionRecord.encode(message).finish();
|
|
231
|
-
},
|
|
232
|
-
toProtoMsg(message) {
|
|
233
|
-
return {
|
|
234
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord',
|
|
235
|
-
value: ValidatorAccumulatedCommissionRecord.encode(message).finish(),
|
|
236
|
-
};
|
|
237
|
-
},
|
|
238
|
-
};
|
|
239
|
-
function createBaseValidatorHistoricalRewardsRecord() {
|
|
240
|
-
return {
|
|
241
|
-
validatorAddress: '',
|
|
242
|
-
period: BigInt(0),
|
|
243
|
-
rewards: ValidatorHistoricalRewards.fromPartial({}),
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
export const ValidatorHistoricalRewardsRecord = {
|
|
247
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord',
|
|
248
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
249
|
-
if (message.validatorAddress !== '') {
|
|
250
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
251
|
-
}
|
|
252
|
-
if (message.period !== BigInt(0)) {
|
|
253
|
-
writer.uint32(16).uint64(message.period);
|
|
254
|
-
}
|
|
255
|
-
if (message.rewards !== undefined) {
|
|
256
|
-
ValidatorHistoricalRewards.encode(message.rewards, writer.uint32(26).fork()).ldelim();
|
|
257
|
-
}
|
|
258
|
-
return writer;
|
|
259
|
-
},
|
|
260
|
-
decode(input, length) {
|
|
261
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
262
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
263
|
-
const message = createBaseValidatorHistoricalRewardsRecord();
|
|
264
|
-
while (reader.pos < end) {
|
|
265
|
-
const tag = reader.uint32();
|
|
266
|
-
switch (tag >>> 3) {
|
|
267
|
-
case 1:
|
|
268
|
-
message.validatorAddress = reader.string();
|
|
269
|
-
break;
|
|
270
|
-
case 2:
|
|
271
|
-
message.period = reader.uint64();
|
|
272
|
-
break;
|
|
273
|
-
case 3:
|
|
274
|
-
message.rewards = ValidatorHistoricalRewards.decode(reader, reader.uint32());
|
|
275
|
-
break;
|
|
276
|
-
default:
|
|
277
|
-
reader.skipType(tag & 7);
|
|
278
|
-
break;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
return message;
|
|
282
|
-
},
|
|
283
|
-
fromJSON(object) {
|
|
284
|
-
return {
|
|
285
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
286
|
-
? String(object.validatorAddress)
|
|
287
|
-
: '',
|
|
288
|
-
period: isSet(object.period)
|
|
289
|
-
? BigInt(object.period.toString())
|
|
290
|
-
: BigInt(0),
|
|
291
|
-
rewards: isSet(object.rewards)
|
|
292
|
-
? ValidatorHistoricalRewards.fromJSON(object.rewards)
|
|
293
|
-
: undefined,
|
|
294
|
-
};
|
|
295
|
-
},
|
|
296
|
-
toJSON(message) {
|
|
297
|
-
const obj = {};
|
|
298
|
-
message.validatorAddress !== undefined &&
|
|
299
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
300
|
-
message.period !== undefined &&
|
|
301
|
-
(obj.period = (message.period || BigInt(0)).toString());
|
|
302
|
-
message.rewards !== undefined &&
|
|
303
|
-
(obj.rewards = message.rewards
|
|
304
|
-
? ValidatorHistoricalRewards.toJSON(message.rewards)
|
|
305
|
-
: undefined);
|
|
306
|
-
return obj;
|
|
307
|
-
},
|
|
308
|
-
fromPartial(object) {
|
|
309
|
-
const message = createBaseValidatorHistoricalRewardsRecord();
|
|
310
|
-
message.validatorAddress = object.validatorAddress ?? '';
|
|
311
|
-
message.period =
|
|
312
|
-
object.period !== undefined && object.period !== null
|
|
313
|
-
? BigInt(object.period.toString())
|
|
314
|
-
: BigInt(0);
|
|
315
|
-
message.rewards =
|
|
316
|
-
object.rewards !== undefined && object.rewards !== null
|
|
317
|
-
? ValidatorHistoricalRewards.fromPartial(object.rewards)
|
|
318
|
-
: undefined;
|
|
319
|
-
return message;
|
|
320
|
-
},
|
|
321
|
-
fromProtoMsg(message) {
|
|
322
|
-
return ValidatorHistoricalRewardsRecord.decode(message.value);
|
|
323
|
-
},
|
|
324
|
-
toProto(message) {
|
|
325
|
-
return ValidatorHistoricalRewardsRecord.encode(message).finish();
|
|
326
|
-
},
|
|
327
|
-
toProtoMsg(message) {
|
|
328
|
-
return {
|
|
329
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord',
|
|
330
|
-
value: ValidatorHistoricalRewardsRecord.encode(message).finish(),
|
|
331
|
-
};
|
|
332
|
-
},
|
|
333
|
-
};
|
|
334
|
-
function createBaseValidatorCurrentRewardsRecord() {
|
|
335
|
-
return {
|
|
336
|
-
validatorAddress: '',
|
|
337
|
-
rewards: ValidatorCurrentRewards.fromPartial({}),
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
export const ValidatorCurrentRewardsRecord = {
|
|
341
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord',
|
|
342
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
343
|
-
if (message.validatorAddress !== '') {
|
|
344
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
345
|
-
}
|
|
346
|
-
if (message.rewards !== undefined) {
|
|
347
|
-
ValidatorCurrentRewards.encode(message.rewards, writer.uint32(18).fork()).ldelim();
|
|
348
|
-
}
|
|
349
|
-
return writer;
|
|
350
|
-
},
|
|
351
|
-
decode(input, length) {
|
|
352
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
353
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
354
|
-
const message = createBaseValidatorCurrentRewardsRecord();
|
|
355
|
-
while (reader.pos < end) {
|
|
356
|
-
const tag = reader.uint32();
|
|
357
|
-
switch (tag >>> 3) {
|
|
358
|
-
case 1:
|
|
359
|
-
message.validatorAddress = reader.string();
|
|
360
|
-
break;
|
|
361
|
-
case 2:
|
|
362
|
-
message.rewards = ValidatorCurrentRewards.decode(reader, reader.uint32());
|
|
363
|
-
break;
|
|
364
|
-
default:
|
|
365
|
-
reader.skipType(tag & 7);
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
return message;
|
|
370
|
-
},
|
|
371
|
-
fromJSON(object) {
|
|
372
|
-
return {
|
|
373
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
374
|
-
? String(object.validatorAddress)
|
|
375
|
-
: '',
|
|
376
|
-
rewards: isSet(object.rewards)
|
|
377
|
-
? ValidatorCurrentRewards.fromJSON(object.rewards)
|
|
378
|
-
: undefined,
|
|
379
|
-
};
|
|
380
|
-
},
|
|
381
|
-
toJSON(message) {
|
|
382
|
-
const obj = {};
|
|
383
|
-
message.validatorAddress !== undefined &&
|
|
384
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
385
|
-
message.rewards !== undefined &&
|
|
386
|
-
(obj.rewards = message.rewards
|
|
387
|
-
? ValidatorCurrentRewards.toJSON(message.rewards)
|
|
388
|
-
: undefined);
|
|
389
|
-
return obj;
|
|
390
|
-
},
|
|
391
|
-
fromPartial(object) {
|
|
392
|
-
const message = createBaseValidatorCurrentRewardsRecord();
|
|
393
|
-
message.validatorAddress = object.validatorAddress ?? '';
|
|
394
|
-
message.rewards =
|
|
395
|
-
object.rewards !== undefined && object.rewards !== null
|
|
396
|
-
? ValidatorCurrentRewards.fromPartial(object.rewards)
|
|
397
|
-
: undefined;
|
|
398
|
-
return message;
|
|
399
|
-
},
|
|
400
|
-
fromProtoMsg(message) {
|
|
401
|
-
return ValidatorCurrentRewardsRecord.decode(message.value);
|
|
402
|
-
},
|
|
403
|
-
toProto(message) {
|
|
404
|
-
return ValidatorCurrentRewardsRecord.encode(message).finish();
|
|
405
|
-
},
|
|
406
|
-
toProtoMsg(message) {
|
|
407
|
-
return {
|
|
408
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord',
|
|
409
|
-
value: ValidatorCurrentRewardsRecord.encode(message).finish(),
|
|
410
|
-
};
|
|
411
|
-
},
|
|
412
|
-
};
|
|
413
|
-
function createBaseDelegatorStartingInfoRecord() {
|
|
414
|
-
return {
|
|
415
|
-
delegatorAddress: '',
|
|
416
|
-
validatorAddress: '',
|
|
417
|
-
startingInfo: DelegatorStartingInfo.fromPartial({}),
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
export const DelegatorStartingInfoRecord = {
|
|
421
|
-
typeUrl: '/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord',
|
|
422
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
423
|
-
if (message.delegatorAddress !== '') {
|
|
424
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
425
|
-
}
|
|
426
|
-
if (message.validatorAddress !== '') {
|
|
427
|
-
writer.uint32(18).string(message.validatorAddress);
|
|
428
|
-
}
|
|
429
|
-
if (message.startingInfo !== undefined) {
|
|
430
|
-
DelegatorStartingInfo.encode(message.startingInfo, writer.uint32(26).fork()).ldelim();
|
|
431
|
-
}
|
|
432
|
-
return writer;
|
|
433
|
-
},
|
|
434
|
-
decode(input, length) {
|
|
435
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
436
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
437
|
-
const message = createBaseDelegatorStartingInfoRecord();
|
|
438
|
-
while (reader.pos < end) {
|
|
439
|
-
const tag = reader.uint32();
|
|
440
|
-
switch (tag >>> 3) {
|
|
441
|
-
case 1:
|
|
442
|
-
message.delegatorAddress = reader.string();
|
|
443
|
-
break;
|
|
444
|
-
case 2:
|
|
445
|
-
message.validatorAddress = reader.string();
|
|
446
|
-
break;
|
|
447
|
-
case 3:
|
|
448
|
-
message.startingInfo = DelegatorStartingInfo.decode(reader, reader.uint32());
|
|
449
|
-
break;
|
|
450
|
-
default:
|
|
451
|
-
reader.skipType(tag & 7);
|
|
452
|
-
break;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
return message;
|
|
456
|
-
},
|
|
457
|
-
fromJSON(object) {
|
|
458
|
-
return {
|
|
459
|
-
delegatorAddress: isSet(object.delegatorAddress)
|
|
460
|
-
? String(object.delegatorAddress)
|
|
461
|
-
: '',
|
|
462
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
463
|
-
? String(object.validatorAddress)
|
|
464
|
-
: '',
|
|
465
|
-
startingInfo: isSet(object.startingInfo)
|
|
466
|
-
? DelegatorStartingInfo.fromJSON(object.startingInfo)
|
|
467
|
-
: undefined,
|
|
468
|
-
};
|
|
469
|
-
},
|
|
470
|
-
toJSON(message) {
|
|
471
|
-
const obj = {};
|
|
472
|
-
message.delegatorAddress !== undefined &&
|
|
473
|
-
(obj.delegatorAddress = message.delegatorAddress);
|
|
474
|
-
message.validatorAddress !== undefined &&
|
|
475
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
476
|
-
message.startingInfo !== undefined &&
|
|
477
|
-
(obj.startingInfo = message.startingInfo
|
|
478
|
-
? DelegatorStartingInfo.toJSON(message.startingInfo)
|
|
479
|
-
: undefined);
|
|
480
|
-
return obj;
|
|
481
|
-
},
|
|
482
|
-
fromPartial(object) {
|
|
483
|
-
const message = createBaseDelegatorStartingInfoRecord();
|
|
484
|
-
message.delegatorAddress = object.delegatorAddress ?? '';
|
|
485
|
-
message.validatorAddress = object.validatorAddress ?? '';
|
|
486
|
-
message.startingInfo =
|
|
487
|
-
object.startingInfo !== undefined && object.startingInfo !== null
|
|
488
|
-
? DelegatorStartingInfo.fromPartial(object.startingInfo)
|
|
489
|
-
: undefined;
|
|
490
|
-
return message;
|
|
491
|
-
},
|
|
492
|
-
fromProtoMsg(message) {
|
|
493
|
-
return DelegatorStartingInfoRecord.decode(message.value);
|
|
494
|
-
},
|
|
495
|
-
toProto(message) {
|
|
496
|
-
return DelegatorStartingInfoRecord.encode(message).finish();
|
|
497
|
-
},
|
|
498
|
-
toProtoMsg(message) {
|
|
499
|
-
return {
|
|
500
|
-
typeUrl: '/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord',
|
|
501
|
-
value: DelegatorStartingInfoRecord.encode(message).finish(),
|
|
502
|
-
};
|
|
503
|
-
},
|
|
504
|
-
};
|
|
505
|
-
function createBaseValidatorSlashEventRecord() {
|
|
506
|
-
return {
|
|
507
|
-
validatorAddress: '',
|
|
508
|
-
height: BigInt(0),
|
|
509
|
-
period: BigInt(0),
|
|
510
|
-
validatorSlashEvent: ValidatorSlashEvent.fromPartial({}),
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
|
-
export const ValidatorSlashEventRecord = {
|
|
514
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorSlashEventRecord',
|
|
515
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
516
|
-
if (message.validatorAddress !== '') {
|
|
517
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
518
|
-
}
|
|
519
|
-
if (message.height !== BigInt(0)) {
|
|
520
|
-
writer.uint32(16).uint64(message.height);
|
|
521
|
-
}
|
|
522
|
-
if (message.period !== BigInt(0)) {
|
|
523
|
-
writer.uint32(24).uint64(message.period);
|
|
524
|
-
}
|
|
525
|
-
if (message.validatorSlashEvent !== undefined) {
|
|
526
|
-
ValidatorSlashEvent.encode(message.validatorSlashEvent, writer.uint32(34).fork()).ldelim();
|
|
527
|
-
}
|
|
528
|
-
return writer;
|
|
529
|
-
},
|
|
530
|
-
decode(input, length) {
|
|
531
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
532
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
533
|
-
const message = createBaseValidatorSlashEventRecord();
|
|
534
|
-
while (reader.pos < end) {
|
|
535
|
-
const tag = reader.uint32();
|
|
536
|
-
switch (tag >>> 3) {
|
|
537
|
-
case 1:
|
|
538
|
-
message.validatorAddress = reader.string();
|
|
539
|
-
break;
|
|
540
|
-
case 2:
|
|
541
|
-
message.height = reader.uint64();
|
|
542
|
-
break;
|
|
543
|
-
case 3:
|
|
544
|
-
message.period = reader.uint64();
|
|
545
|
-
break;
|
|
546
|
-
case 4:
|
|
547
|
-
message.validatorSlashEvent = ValidatorSlashEvent.decode(reader, reader.uint32());
|
|
548
|
-
break;
|
|
549
|
-
default:
|
|
550
|
-
reader.skipType(tag & 7);
|
|
551
|
-
break;
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
return message;
|
|
555
|
-
},
|
|
556
|
-
fromJSON(object) {
|
|
557
|
-
return {
|
|
558
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
559
|
-
? String(object.validatorAddress)
|
|
560
|
-
: '',
|
|
561
|
-
height: isSet(object.height)
|
|
562
|
-
? BigInt(object.height.toString())
|
|
563
|
-
: BigInt(0),
|
|
564
|
-
period: isSet(object.period)
|
|
565
|
-
? BigInt(object.period.toString())
|
|
566
|
-
: BigInt(0),
|
|
567
|
-
validatorSlashEvent: isSet(object.validatorSlashEvent)
|
|
568
|
-
? ValidatorSlashEvent.fromJSON(object.validatorSlashEvent)
|
|
569
|
-
: undefined,
|
|
570
|
-
};
|
|
571
|
-
},
|
|
572
|
-
toJSON(message) {
|
|
573
|
-
const obj = {};
|
|
574
|
-
message.validatorAddress !== undefined &&
|
|
575
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
576
|
-
message.height !== undefined &&
|
|
577
|
-
(obj.height = (message.height || BigInt(0)).toString());
|
|
578
|
-
message.period !== undefined &&
|
|
579
|
-
(obj.period = (message.period || BigInt(0)).toString());
|
|
580
|
-
message.validatorSlashEvent !== undefined &&
|
|
581
|
-
(obj.validatorSlashEvent = message.validatorSlashEvent
|
|
582
|
-
? ValidatorSlashEvent.toJSON(message.validatorSlashEvent)
|
|
583
|
-
: undefined);
|
|
584
|
-
return obj;
|
|
585
|
-
},
|
|
586
|
-
fromPartial(object) {
|
|
587
|
-
const message = createBaseValidatorSlashEventRecord();
|
|
588
|
-
message.validatorAddress = object.validatorAddress ?? '';
|
|
589
|
-
message.height =
|
|
590
|
-
object.height !== undefined && object.height !== null
|
|
591
|
-
? BigInt(object.height.toString())
|
|
592
|
-
: BigInt(0);
|
|
593
|
-
message.period =
|
|
594
|
-
object.period !== undefined && object.period !== null
|
|
595
|
-
? BigInt(object.period.toString())
|
|
596
|
-
: BigInt(0);
|
|
597
|
-
message.validatorSlashEvent =
|
|
598
|
-
object.validatorSlashEvent !== undefined &&
|
|
599
|
-
object.validatorSlashEvent !== null
|
|
600
|
-
? ValidatorSlashEvent.fromPartial(object.validatorSlashEvent)
|
|
601
|
-
: undefined;
|
|
602
|
-
return message;
|
|
603
|
-
},
|
|
604
|
-
fromProtoMsg(message) {
|
|
605
|
-
return ValidatorSlashEventRecord.decode(message.value);
|
|
606
|
-
},
|
|
607
|
-
toProto(message) {
|
|
608
|
-
return ValidatorSlashEventRecord.encode(message).finish();
|
|
609
|
-
},
|
|
610
|
-
toProtoMsg(message) {
|
|
611
|
-
return {
|
|
612
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorSlashEventRecord',
|
|
613
|
-
value: ValidatorSlashEventRecord.encode(message).finish(),
|
|
614
|
-
};
|
|
615
|
-
},
|
|
616
|
-
};
|
|
617
|
-
function createBaseGenesisState() {
|
|
618
|
-
return {
|
|
619
|
-
params: Params.fromPartial({}),
|
|
620
|
-
feePool: FeePool.fromPartial({}),
|
|
621
|
-
delegatorWithdrawInfos: [],
|
|
622
|
-
previousProposer: '',
|
|
623
|
-
outstandingRewards: [],
|
|
624
|
-
validatorAccumulatedCommissions: [],
|
|
625
|
-
validatorHistoricalRewards: [],
|
|
626
|
-
validatorCurrentRewards: [],
|
|
627
|
-
delegatorStartingInfos: [],
|
|
628
|
-
validatorSlashEvents: [],
|
|
629
|
-
};
|
|
630
|
-
}
|
|
631
|
-
export const GenesisState = {
|
|
632
|
-
typeUrl: '/cosmos.distribution.v1beta1.GenesisState',
|
|
633
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
634
|
-
if (message.params !== undefined) {
|
|
635
|
-
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
636
|
-
}
|
|
637
|
-
if (message.feePool !== undefined) {
|
|
638
|
-
FeePool.encode(message.feePool, writer.uint32(18).fork()).ldelim();
|
|
639
|
-
}
|
|
640
|
-
for (const v of message.delegatorWithdrawInfos) {
|
|
641
|
-
DelegatorWithdrawInfo.encode(v, writer.uint32(26).fork()).ldelim();
|
|
642
|
-
}
|
|
643
|
-
if (message.previousProposer !== '') {
|
|
644
|
-
writer.uint32(34).string(message.previousProposer);
|
|
645
|
-
}
|
|
646
|
-
for (const v of message.outstandingRewards) {
|
|
647
|
-
ValidatorOutstandingRewardsRecord.encode(v, writer.uint32(42).fork()).ldelim();
|
|
648
|
-
}
|
|
649
|
-
for (const v of message.validatorAccumulatedCommissions) {
|
|
650
|
-
ValidatorAccumulatedCommissionRecord.encode(v, writer.uint32(50).fork()).ldelim();
|
|
651
|
-
}
|
|
652
|
-
for (const v of message.validatorHistoricalRewards) {
|
|
653
|
-
ValidatorHistoricalRewardsRecord.encode(v, writer.uint32(58).fork()).ldelim();
|
|
654
|
-
}
|
|
655
|
-
for (const v of message.validatorCurrentRewards) {
|
|
656
|
-
ValidatorCurrentRewardsRecord.encode(v, writer.uint32(66).fork()).ldelim();
|
|
657
|
-
}
|
|
658
|
-
for (const v of message.delegatorStartingInfos) {
|
|
659
|
-
DelegatorStartingInfoRecord.encode(v, writer.uint32(74).fork()).ldelim();
|
|
660
|
-
}
|
|
661
|
-
for (const v of message.validatorSlashEvents) {
|
|
662
|
-
ValidatorSlashEventRecord.encode(v, writer.uint32(82).fork()).ldelim();
|
|
663
|
-
}
|
|
664
|
-
return writer;
|
|
665
|
-
},
|
|
666
|
-
decode(input, length) {
|
|
667
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
668
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
669
|
-
const message = createBaseGenesisState();
|
|
670
|
-
while (reader.pos < end) {
|
|
671
|
-
const tag = reader.uint32();
|
|
672
|
-
switch (tag >>> 3) {
|
|
673
|
-
case 1:
|
|
674
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
675
|
-
break;
|
|
676
|
-
case 2:
|
|
677
|
-
message.feePool = FeePool.decode(reader, reader.uint32());
|
|
678
|
-
break;
|
|
679
|
-
case 3:
|
|
680
|
-
message.delegatorWithdrawInfos.push(DelegatorWithdrawInfo.decode(reader, reader.uint32()));
|
|
681
|
-
break;
|
|
682
|
-
case 4:
|
|
683
|
-
message.previousProposer = reader.string();
|
|
684
|
-
break;
|
|
685
|
-
case 5:
|
|
686
|
-
message.outstandingRewards.push(ValidatorOutstandingRewardsRecord.decode(reader, reader.uint32()));
|
|
687
|
-
break;
|
|
688
|
-
case 6:
|
|
689
|
-
message.validatorAccumulatedCommissions.push(ValidatorAccumulatedCommissionRecord.decode(reader, reader.uint32()));
|
|
690
|
-
break;
|
|
691
|
-
case 7:
|
|
692
|
-
message.validatorHistoricalRewards.push(ValidatorHistoricalRewardsRecord.decode(reader, reader.uint32()));
|
|
693
|
-
break;
|
|
694
|
-
case 8:
|
|
695
|
-
message.validatorCurrentRewards.push(ValidatorCurrentRewardsRecord.decode(reader, reader.uint32()));
|
|
696
|
-
break;
|
|
697
|
-
case 9:
|
|
698
|
-
message.delegatorStartingInfos.push(DelegatorStartingInfoRecord.decode(reader, reader.uint32()));
|
|
699
|
-
break;
|
|
700
|
-
case 10:
|
|
701
|
-
message.validatorSlashEvents.push(ValidatorSlashEventRecord.decode(reader, reader.uint32()));
|
|
702
|
-
break;
|
|
703
|
-
default:
|
|
704
|
-
reader.skipType(tag & 7);
|
|
705
|
-
break;
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
return message;
|
|
709
|
-
},
|
|
710
|
-
fromJSON(object) {
|
|
711
|
-
return {
|
|
712
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
713
|
-
feePool: isSet(object.feePool)
|
|
714
|
-
? FeePool.fromJSON(object.feePool)
|
|
715
|
-
: undefined,
|
|
716
|
-
delegatorWithdrawInfos: Array.isArray(object?.delegatorWithdrawInfos)
|
|
717
|
-
? object.delegatorWithdrawInfos.map((e) => DelegatorWithdrawInfo.fromJSON(e))
|
|
718
|
-
: [],
|
|
719
|
-
previousProposer: isSet(object.previousProposer)
|
|
720
|
-
? String(object.previousProposer)
|
|
721
|
-
: '',
|
|
722
|
-
outstandingRewards: Array.isArray(object?.outstandingRewards)
|
|
723
|
-
? object.outstandingRewards.map((e) => ValidatorOutstandingRewardsRecord.fromJSON(e))
|
|
724
|
-
: [],
|
|
725
|
-
validatorAccumulatedCommissions: Array.isArray(object?.validatorAccumulatedCommissions)
|
|
726
|
-
? object.validatorAccumulatedCommissions.map((e) => ValidatorAccumulatedCommissionRecord.fromJSON(e))
|
|
727
|
-
: [],
|
|
728
|
-
validatorHistoricalRewards: Array.isArray(object?.validatorHistoricalRewards)
|
|
729
|
-
? object.validatorHistoricalRewards.map((e) => ValidatorHistoricalRewardsRecord.fromJSON(e))
|
|
730
|
-
: [],
|
|
731
|
-
validatorCurrentRewards: Array.isArray(object?.validatorCurrentRewards)
|
|
732
|
-
? object.validatorCurrentRewards.map((e) => ValidatorCurrentRewardsRecord.fromJSON(e))
|
|
733
|
-
: [],
|
|
734
|
-
delegatorStartingInfos: Array.isArray(object?.delegatorStartingInfos)
|
|
735
|
-
? object.delegatorStartingInfos.map((e) => DelegatorStartingInfoRecord.fromJSON(e))
|
|
736
|
-
: [],
|
|
737
|
-
validatorSlashEvents: Array.isArray(object?.validatorSlashEvents)
|
|
738
|
-
? object.validatorSlashEvents.map((e) => ValidatorSlashEventRecord.fromJSON(e))
|
|
739
|
-
: [],
|
|
740
|
-
};
|
|
741
|
-
},
|
|
742
|
-
toJSON(message) {
|
|
743
|
-
const obj = {};
|
|
744
|
-
message.params !== undefined &&
|
|
745
|
-
(obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
746
|
-
message.feePool !== undefined &&
|
|
747
|
-
(obj.feePool = message.feePool
|
|
748
|
-
? FeePool.toJSON(message.feePool)
|
|
749
|
-
: undefined);
|
|
750
|
-
if (message.delegatorWithdrawInfos) {
|
|
751
|
-
obj.delegatorWithdrawInfos = message.delegatorWithdrawInfos.map(e => e ? DelegatorWithdrawInfo.toJSON(e) : undefined);
|
|
752
|
-
}
|
|
753
|
-
else {
|
|
754
|
-
obj.delegatorWithdrawInfos = [];
|
|
755
|
-
}
|
|
756
|
-
message.previousProposer !== undefined &&
|
|
757
|
-
(obj.previousProposer = message.previousProposer);
|
|
758
|
-
if (message.outstandingRewards) {
|
|
759
|
-
obj.outstandingRewards = message.outstandingRewards.map(e => e ? ValidatorOutstandingRewardsRecord.toJSON(e) : undefined);
|
|
760
|
-
}
|
|
761
|
-
else {
|
|
762
|
-
obj.outstandingRewards = [];
|
|
763
|
-
}
|
|
764
|
-
if (message.validatorAccumulatedCommissions) {
|
|
765
|
-
obj.validatorAccumulatedCommissions =
|
|
766
|
-
message.validatorAccumulatedCommissions.map(e => e ? ValidatorAccumulatedCommissionRecord.toJSON(e) : undefined);
|
|
767
|
-
}
|
|
768
|
-
else {
|
|
769
|
-
obj.validatorAccumulatedCommissions = [];
|
|
770
|
-
}
|
|
771
|
-
if (message.validatorHistoricalRewards) {
|
|
772
|
-
obj.validatorHistoricalRewards = message.validatorHistoricalRewards.map(e => (e ? ValidatorHistoricalRewardsRecord.toJSON(e) : undefined));
|
|
773
|
-
}
|
|
774
|
-
else {
|
|
775
|
-
obj.validatorHistoricalRewards = [];
|
|
776
|
-
}
|
|
777
|
-
if (message.validatorCurrentRewards) {
|
|
778
|
-
obj.validatorCurrentRewards = message.validatorCurrentRewards.map(e => e ? ValidatorCurrentRewardsRecord.toJSON(e) : undefined);
|
|
779
|
-
}
|
|
780
|
-
else {
|
|
781
|
-
obj.validatorCurrentRewards = [];
|
|
782
|
-
}
|
|
783
|
-
if (message.delegatorStartingInfos) {
|
|
784
|
-
obj.delegatorStartingInfos = message.delegatorStartingInfos.map(e => e ? DelegatorStartingInfoRecord.toJSON(e) : undefined);
|
|
785
|
-
}
|
|
786
|
-
else {
|
|
787
|
-
obj.delegatorStartingInfos = [];
|
|
788
|
-
}
|
|
789
|
-
if (message.validatorSlashEvents) {
|
|
790
|
-
obj.validatorSlashEvents = message.validatorSlashEvents.map(e => e ? ValidatorSlashEventRecord.toJSON(e) : undefined);
|
|
791
|
-
}
|
|
792
|
-
else {
|
|
793
|
-
obj.validatorSlashEvents = [];
|
|
794
|
-
}
|
|
795
|
-
return obj;
|
|
796
|
-
},
|
|
797
|
-
fromPartial(object) {
|
|
798
|
-
const message = createBaseGenesisState();
|
|
799
|
-
message.params =
|
|
800
|
-
object.params !== undefined && object.params !== null
|
|
801
|
-
? Params.fromPartial(object.params)
|
|
802
|
-
: undefined;
|
|
803
|
-
message.feePool =
|
|
804
|
-
object.feePool !== undefined && object.feePool !== null
|
|
805
|
-
? FeePool.fromPartial(object.feePool)
|
|
806
|
-
: undefined;
|
|
807
|
-
message.delegatorWithdrawInfos =
|
|
808
|
-
object.delegatorWithdrawInfos?.map(e => DelegatorWithdrawInfo.fromPartial(e)) || [];
|
|
809
|
-
message.previousProposer = object.previousProposer ?? '';
|
|
810
|
-
message.outstandingRewards =
|
|
811
|
-
object.outstandingRewards?.map(e => ValidatorOutstandingRewardsRecord.fromPartial(e)) || [];
|
|
812
|
-
message.validatorAccumulatedCommissions =
|
|
813
|
-
object.validatorAccumulatedCommissions?.map(e => ValidatorAccumulatedCommissionRecord.fromPartial(e)) || [];
|
|
814
|
-
message.validatorHistoricalRewards =
|
|
815
|
-
object.validatorHistoricalRewards?.map(e => ValidatorHistoricalRewardsRecord.fromPartial(e)) || [];
|
|
816
|
-
message.validatorCurrentRewards =
|
|
817
|
-
object.validatorCurrentRewards?.map(e => ValidatorCurrentRewardsRecord.fromPartial(e)) || [];
|
|
818
|
-
message.delegatorStartingInfos =
|
|
819
|
-
object.delegatorStartingInfos?.map(e => DelegatorStartingInfoRecord.fromPartial(e)) || [];
|
|
820
|
-
message.validatorSlashEvents =
|
|
821
|
-
object.validatorSlashEvents?.map(e => ValidatorSlashEventRecord.fromPartial(e)) || [];
|
|
822
|
-
return message;
|
|
823
|
-
},
|
|
824
|
-
fromProtoMsg(message) {
|
|
825
|
-
return GenesisState.decode(message.value);
|
|
826
|
-
},
|
|
827
|
-
toProto(message) {
|
|
828
|
-
return GenesisState.encode(message).finish();
|
|
829
|
-
},
|
|
830
|
-
toProtoMsg(message) {
|
|
831
|
-
return {
|
|
832
|
-
typeUrl: '/cosmos.distribution.v1beta1.GenesisState',
|
|
833
|
-
value: GenesisState.encode(message).finish(),
|
|
834
|
-
};
|
|
835
|
-
},
|
|
836
|
-
};
|
|
837
|
-
//# sourceMappingURL=genesis.js.map
|
|
1
|
+
import{DecCoin as r}from"../../base/v1beta1/coin.js";import{ValidatorAccumulatedCommission as o,ValidatorHistoricalRewards as a,ValidatorCurrentRewards as t,DelegatorStartingInfo as e,ValidatorSlashEvent as d,Params as s,FeePool as i}from"./distribution.js";import{BinaryReader as n,BinaryWriter as l}from"../../../binary.js";import{isSet as c}from"../../../helpers.js";import{}from"../../../json-safe.js";export const DelegatorWithdrawInfo={typeUrl:"/cosmos.distribution.v1beta1.DelegatorWithdrawInfo",encode:(r,o=l.create())=>(""!==r.delegatorAddress&&o.uint32(10).string(r.delegatorAddress),""!==r.withdrawAddress&&o.uint32(18).string(r.withdrawAddress),o),decode(r,o){const a=r instanceof n?r:new n(r);let t=void 0===o?a.len:a.pos+o;const e={delegatorAddress:"",withdrawAddress:""};for(;a.pos<t;){const r=a.uint32();switch(r>>>3){case 1:e.delegatorAddress=a.string();break;case 2:e.withdrawAddress=a.string();break;default:a.skipType(7&r)}}return e},fromJSON:r=>({delegatorAddress:c(r.delegatorAddress)?String(r.delegatorAddress):"",withdrawAddress:c(r.withdrawAddress)?String(r.withdrawAddress):""}),toJSON(r){const o={};return void 0!==r.delegatorAddress&&(o.delegatorAddress=r.delegatorAddress),void 0!==r.withdrawAddress&&(o.withdrawAddress=r.withdrawAddress),o},fromPartial(r){const o={delegatorAddress:"",withdrawAddress:""};return o.delegatorAddress=r.delegatorAddress??"",o.withdrawAddress=r.withdrawAddress??"",o},fromProtoMsg:r=>DelegatorWithdrawInfo.decode(r.value),toProto:r=>DelegatorWithdrawInfo.encode(r).finish(),toProtoMsg:r=>({typeUrl:"/cosmos.distribution.v1beta1.DelegatorWithdrawInfo",value:DelegatorWithdrawInfo.encode(r).finish()})};export const ValidatorOutstandingRewardsRecord={typeUrl:"/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord",encode(o,a=l.create()){""!==o.validatorAddress&&a.uint32(10).string(o.validatorAddress);for(const t of o.outstandingRewards)r.encode(t,a.uint32(18).fork()).ldelim();return a},decode(o,a){const t=o instanceof n?o:new n(o);let e=void 0===a?t.len:t.pos+a;const d={validatorAddress:"",outstandingRewards:[]};for(;t.pos<e;){const o=t.uint32();switch(o>>>3){case 1:d.validatorAddress=t.string();break;case 2:d.outstandingRewards.push(r.decode(t,t.uint32()));break;default:t.skipType(7&o)}}return d},fromJSON:o=>({validatorAddress:c(o.validatorAddress)?String(o.validatorAddress):"",outstandingRewards:Array.isArray(o?.outstandingRewards)?o.outstandingRewards.map((o=>r.fromJSON(o))):[]}),toJSON(o){const a={};return void 0!==o.validatorAddress&&(a.validatorAddress=o.validatorAddress),o.outstandingRewards?a.outstandingRewards=o.outstandingRewards.map((o=>o?r.toJSON(o):void 0)):a.outstandingRewards=[],a},fromPartial(o){const a={validatorAddress:"",outstandingRewards:[]};return a.validatorAddress=o.validatorAddress??"",a.outstandingRewards=o.outstandingRewards?.map((o=>r.fromPartial(o)))||[],a},fromProtoMsg:r=>ValidatorOutstandingRewardsRecord.decode(r.value),toProto:r=>ValidatorOutstandingRewardsRecord.encode(r).finish(),toProtoMsg:r=>({typeUrl:"/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord",value:ValidatorOutstandingRewardsRecord.encode(r).finish()})};function u(){return{validatorAddress:"",accumulated:o.fromPartial({})}}export const ValidatorAccumulatedCommissionRecord={typeUrl:"/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord",encode:(r,a=l.create())=>(""!==r.validatorAddress&&a.uint32(10).string(r.validatorAddress),void 0!==r.accumulated&&o.encode(r.accumulated,a.uint32(18).fork()).ldelim(),a),decode(r,a){const t=r instanceof n?r:new n(r);let e=void 0===a?t.len:t.pos+a;const d=u();for(;t.pos<e;){const r=t.uint32();switch(r>>>3){case 1:d.validatorAddress=t.string();break;case 2:d.accumulated=o.decode(t,t.uint32());break;default:t.skipType(7&r)}}return d},fromJSON:r=>({validatorAddress:c(r.validatorAddress)?String(r.validatorAddress):"",accumulated:c(r.accumulated)?o.fromJSON(r.accumulated):void 0}),toJSON(r){const a={};return void 0!==r.validatorAddress&&(a.validatorAddress=r.validatorAddress),void 0!==r.accumulated&&(a.accumulated=r.accumulated?o.toJSON(r.accumulated):void 0),a},fromPartial(r){const a=u();return a.validatorAddress=r.validatorAddress??"",a.accumulated=void 0!==r.accumulated&&null!==r.accumulated?o.fromPartial(r.accumulated):void 0,a},fromProtoMsg:r=>ValidatorAccumulatedCommissionRecord.decode(r.value),toProto:r=>ValidatorAccumulatedCommissionRecord.encode(r).finish(),toProtoMsg:r=>({typeUrl:"/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord",value:ValidatorAccumulatedCommissionRecord.encode(r).finish()})};function v(){return{validatorAddress:"",period:BigInt(0),rewards:a.fromPartial({})}}export const ValidatorHistoricalRewardsRecord={typeUrl:"/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord",encode:(r,o=l.create())=>(""!==r.validatorAddress&&o.uint32(10).string(r.validatorAddress),r.period!==BigInt(0)&&o.uint32(16).uint64(r.period),void 0!==r.rewards&&a.encode(r.rewards,o.uint32(26).fork()).ldelim(),o),decode(r,o){const t=r instanceof n?r:new n(r);let e=void 0===o?t.len:t.pos+o;const d=v();for(;t.pos<e;){const r=t.uint32();switch(r>>>3){case 1:d.validatorAddress=t.string();break;case 2:d.period=t.uint64();break;case 3:d.rewards=a.decode(t,t.uint32());break;default:t.skipType(7&r)}}return d},fromJSON:r=>({validatorAddress:c(r.validatorAddress)?String(r.validatorAddress):"",period:c(r.period)?BigInt(r.period.toString()):BigInt(0),rewards:c(r.rewards)?a.fromJSON(r.rewards):void 0}),toJSON(r){const o={};return void 0!==r.validatorAddress&&(o.validatorAddress=r.validatorAddress),void 0!==r.period&&(o.period=(r.period||BigInt(0)).toString()),void 0!==r.rewards&&(o.rewards=r.rewards?a.toJSON(r.rewards):void 0),o},fromPartial(r){const o=v();return o.validatorAddress=r.validatorAddress??"",o.period=void 0!==r.period&&null!==r.period?BigInt(r.period.toString()):BigInt(0),o.rewards=void 0!==r.rewards&&null!==r.rewards?a.fromPartial(r.rewards):void 0,o},fromProtoMsg:r=>ValidatorHistoricalRewardsRecord.decode(r.value),toProto:r=>ValidatorHistoricalRewardsRecord.encode(r).finish(),toProtoMsg:r=>({typeUrl:"/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord",value:ValidatorHistoricalRewardsRecord.encode(r).finish()})};function g(){return{validatorAddress:"",rewards:t.fromPartial({})}}export const ValidatorCurrentRewardsRecord={typeUrl:"/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord",encode:(r,o=l.create())=>(""!==r.validatorAddress&&o.uint32(10).string(r.validatorAddress),void 0!==r.rewards&&t.encode(r.rewards,o.uint32(18).fork()).ldelim(),o),decode(r,o){const a=r instanceof n?r:new n(r);let e=void 0===o?a.len:a.pos+o;const d=g();for(;a.pos<e;){const r=a.uint32();switch(r>>>3){case 1:d.validatorAddress=a.string();break;case 2:d.rewards=t.decode(a,a.uint32());break;default:a.skipType(7&r)}}return d},fromJSON:r=>({validatorAddress:c(r.validatorAddress)?String(r.validatorAddress):"",rewards:c(r.rewards)?t.fromJSON(r.rewards):void 0}),toJSON(r){const o={};return void 0!==r.validatorAddress&&(o.validatorAddress=r.validatorAddress),void 0!==r.rewards&&(o.rewards=r.rewards?t.toJSON(r.rewards):void 0),o},fromPartial(r){const o=g();return o.validatorAddress=r.validatorAddress??"",o.rewards=void 0!==r.rewards&&null!==r.rewards?t.fromPartial(r.rewards):void 0,o},fromProtoMsg:r=>ValidatorCurrentRewardsRecord.decode(r.value),toProto:r=>ValidatorCurrentRewardsRecord.encode(r).finish(),toProtoMsg:r=>({typeUrl:"/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord",value:ValidatorCurrentRewardsRecord.encode(r).finish()})};function m(){return{delegatorAddress:"",validatorAddress:"",startingInfo:e.fromPartial({})}}export const DelegatorStartingInfoRecord={typeUrl:"/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord",encode:(r,o=l.create())=>(""!==r.delegatorAddress&&o.uint32(10).string(r.delegatorAddress),""!==r.validatorAddress&&o.uint32(18).string(r.validatorAddress),void 0!==r.startingInfo&&e.encode(r.startingInfo,o.uint32(26).fork()).ldelim(),o),decode(r,o){const a=r instanceof n?r:new n(r);let t=void 0===o?a.len:a.pos+o;const d=m();for(;a.pos<t;){const r=a.uint32();switch(r>>>3){case 1:d.delegatorAddress=a.string();break;case 2:d.validatorAddress=a.string();break;case 3:d.startingInfo=e.decode(a,a.uint32());break;default:a.skipType(7&r)}}return d},fromJSON:r=>({delegatorAddress:c(r.delegatorAddress)?String(r.delegatorAddress):"",validatorAddress:c(r.validatorAddress)?String(r.validatorAddress):"",startingInfo:c(r.startingInfo)?e.fromJSON(r.startingInfo):void 0}),toJSON(r){const o={};return void 0!==r.delegatorAddress&&(o.delegatorAddress=r.delegatorAddress),void 0!==r.validatorAddress&&(o.validatorAddress=r.validatorAddress),void 0!==r.startingInfo&&(o.startingInfo=r.startingInfo?e.toJSON(r.startingInfo):void 0),o},fromPartial(r){const o=m();return o.delegatorAddress=r.delegatorAddress??"",o.validatorAddress=r.validatorAddress??"",o.startingInfo=void 0!==r.startingInfo&&null!==r.startingInfo?e.fromPartial(r.startingInfo):void 0,o},fromProtoMsg:r=>DelegatorStartingInfoRecord.decode(r.value),toProto:r=>DelegatorStartingInfoRecord.encode(r).finish(),toProtoMsg:r=>({typeUrl:"/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord",value:DelegatorStartingInfoRecord.encode(r).finish()})};function f(){return{validatorAddress:"",height:BigInt(0),period:BigInt(0),validatorSlashEvent:d.fromPartial({})}}export const ValidatorSlashEventRecord={typeUrl:"/cosmos.distribution.v1beta1.ValidatorSlashEventRecord",encode:(r,o=l.create())=>(""!==r.validatorAddress&&o.uint32(10).string(r.validatorAddress),r.height!==BigInt(0)&&o.uint32(16).uint64(r.height),r.period!==BigInt(0)&&o.uint32(24).uint64(r.period),void 0!==r.validatorSlashEvent&&d.encode(r.validatorSlashEvent,o.uint32(34).fork()).ldelim(),o),decode(r,o){const a=r instanceof n?r:new n(r);let t=void 0===o?a.len:a.pos+o;const e=f();for(;a.pos<t;){const r=a.uint32();switch(r>>>3){case 1:e.validatorAddress=a.string();break;case 2:e.height=a.uint64();break;case 3:e.period=a.uint64();break;case 4:e.validatorSlashEvent=d.decode(a,a.uint32());break;default:a.skipType(7&r)}}return e},fromJSON:r=>({validatorAddress:c(r.validatorAddress)?String(r.validatorAddress):"",height:c(r.height)?BigInt(r.height.toString()):BigInt(0),period:c(r.period)?BigInt(r.period.toString()):BigInt(0),validatorSlashEvent:c(r.validatorSlashEvent)?d.fromJSON(r.validatorSlashEvent):void 0}),toJSON(r){const o={};return void 0!==r.validatorAddress&&(o.validatorAddress=r.validatorAddress),void 0!==r.height&&(o.height=(r.height||BigInt(0)).toString()),void 0!==r.period&&(o.period=(r.period||BigInt(0)).toString()),void 0!==r.validatorSlashEvent&&(o.validatorSlashEvent=r.validatorSlashEvent?d.toJSON(r.validatorSlashEvent):void 0),o},fromPartial(r){const o=f();return o.validatorAddress=r.validatorAddress??"",o.height=void 0!==r.height&&null!==r.height?BigInt(r.height.toString()):BigInt(0),o.period=void 0!==r.period&&null!==r.period?BigInt(r.period.toString()):BigInt(0),o.validatorSlashEvent=void 0!==r.validatorSlashEvent&&null!==r.validatorSlashEvent?d.fromPartial(r.validatorSlashEvent):void 0,o},fromProtoMsg:r=>ValidatorSlashEventRecord.decode(r.value),toProto:r=>ValidatorSlashEventRecord.encode(r).finish(),toProtoMsg:r=>({typeUrl:"/cosmos.distribution.v1beta1.ValidatorSlashEventRecord",value:ValidatorSlashEventRecord.encode(r).finish()})};function w(){return{params:s.fromPartial({}),feePool:i.fromPartial({}),delegatorWithdrawInfos:[],previousProposer:"",outstandingRewards:[],validatorAccumulatedCommissions:[],validatorHistoricalRewards:[],validatorCurrentRewards:[],delegatorStartingInfos:[],validatorSlashEvents:[]}}export const GenesisState={typeUrl:"/cosmos.distribution.v1beta1.GenesisState",encode(r,o=l.create()){void 0!==r.params&&s.encode(r.params,o.uint32(10).fork()).ldelim(),void 0!==r.feePool&&i.encode(r.feePool,o.uint32(18).fork()).ldelim();for(const a of r.delegatorWithdrawInfos)DelegatorWithdrawInfo.encode(a,o.uint32(26).fork()).ldelim();""!==r.previousProposer&&o.uint32(34).string(r.previousProposer);for(const a of r.outstandingRewards)ValidatorOutstandingRewardsRecord.encode(a,o.uint32(42).fork()).ldelim();for(const a of r.validatorAccumulatedCommissions)ValidatorAccumulatedCommissionRecord.encode(a,o.uint32(50).fork()).ldelim();for(const a of r.validatorHistoricalRewards)ValidatorHistoricalRewardsRecord.encode(a,o.uint32(58).fork()).ldelim();for(const a of r.validatorCurrentRewards)ValidatorCurrentRewardsRecord.encode(a,o.uint32(66).fork()).ldelim();for(const a of r.delegatorStartingInfos)DelegatorStartingInfoRecord.encode(a,o.uint32(74).fork()).ldelim();for(const a of r.validatorSlashEvents)ValidatorSlashEventRecord.encode(a,o.uint32(82).fork()).ldelim();return o},decode(r,o){const a=r instanceof n?r:new n(r);let t=void 0===o?a.len:a.pos+o;const e=w();for(;a.pos<t;){const r=a.uint32();switch(r>>>3){case 1:e.params=s.decode(a,a.uint32());break;case 2:e.feePool=i.decode(a,a.uint32());break;case 3:e.delegatorWithdrawInfos.push(DelegatorWithdrawInfo.decode(a,a.uint32()));break;case 4:e.previousProposer=a.string();break;case 5:e.outstandingRewards.push(ValidatorOutstandingRewardsRecord.decode(a,a.uint32()));break;case 6:e.validatorAccumulatedCommissions.push(ValidatorAccumulatedCommissionRecord.decode(a,a.uint32()));break;case 7:e.validatorHistoricalRewards.push(ValidatorHistoricalRewardsRecord.decode(a,a.uint32()));break;case 8:e.validatorCurrentRewards.push(ValidatorCurrentRewardsRecord.decode(a,a.uint32()));break;case 9:e.delegatorStartingInfos.push(DelegatorStartingInfoRecord.decode(a,a.uint32()));break;case 10:e.validatorSlashEvents.push(ValidatorSlashEventRecord.decode(a,a.uint32()));break;default:a.skipType(7&r)}}return e},fromJSON:r=>({params:c(r.params)?s.fromJSON(r.params):void 0,feePool:c(r.feePool)?i.fromJSON(r.feePool):void 0,delegatorWithdrawInfos:Array.isArray(r?.delegatorWithdrawInfos)?r.delegatorWithdrawInfos.map((r=>DelegatorWithdrawInfo.fromJSON(r))):[],previousProposer:c(r.previousProposer)?String(r.previousProposer):"",outstandingRewards:Array.isArray(r?.outstandingRewards)?r.outstandingRewards.map((r=>ValidatorOutstandingRewardsRecord.fromJSON(r))):[],validatorAccumulatedCommissions:Array.isArray(r?.validatorAccumulatedCommissions)?r.validatorAccumulatedCommissions.map((r=>ValidatorAccumulatedCommissionRecord.fromJSON(r))):[],validatorHistoricalRewards:Array.isArray(r?.validatorHistoricalRewards)?r.validatorHistoricalRewards.map((r=>ValidatorHistoricalRewardsRecord.fromJSON(r))):[],validatorCurrentRewards:Array.isArray(r?.validatorCurrentRewards)?r.validatorCurrentRewards.map((r=>ValidatorCurrentRewardsRecord.fromJSON(r))):[],delegatorStartingInfos:Array.isArray(r?.delegatorStartingInfos)?r.delegatorStartingInfos.map((r=>DelegatorStartingInfoRecord.fromJSON(r))):[],validatorSlashEvents:Array.isArray(r?.validatorSlashEvents)?r.validatorSlashEvents.map((r=>ValidatorSlashEventRecord.fromJSON(r))):[]}),toJSON(r){const o={};return void 0!==r.params&&(o.params=r.params?s.toJSON(r.params):void 0),void 0!==r.feePool&&(o.feePool=r.feePool?i.toJSON(r.feePool):void 0),r.delegatorWithdrawInfos?o.delegatorWithdrawInfos=r.delegatorWithdrawInfos.map((r=>r?DelegatorWithdrawInfo.toJSON(r):void 0)):o.delegatorWithdrawInfos=[],void 0!==r.previousProposer&&(o.previousProposer=r.previousProposer),r.outstandingRewards?o.outstandingRewards=r.outstandingRewards.map((r=>r?ValidatorOutstandingRewardsRecord.toJSON(r):void 0)):o.outstandingRewards=[],r.validatorAccumulatedCommissions?o.validatorAccumulatedCommissions=r.validatorAccumulatedCommissions.map((r=>r?ValidatorAccumulatedCommissionRecord.toJSON(r):void 0)):o.validatorAccumulatedCommissions=[],r.validatorHistoricalRewards?o.validatorHistoricalRewards=r.validatorHistoricalRewards.map((r=>r?ValidatorHistoricalRewardsRecord.toJSON(r):void 0)):o.validatorHistoricalRewards=[],r.validatorCurrentRewards?o.validatorCurrentRewards=r.validatorCurrentRewards.map((r=>r?ValidatorCurrentRewardsRecord.toJSON(r):void 0)):o.validatorCurrentRewards=[],r.delegatorStartingInfos?o.delegatorStartingInfos=r.delegatorStartingInfos.map((r=>r?DelegatorStartingInfoRecord.toJSON(r):void 0)):o.delegatorStartingInfos=[],r.validatorSlashEvents?o.validatorSlashEvents=r.validatorSlashEvents.map((r=>r?ValidatorSlashEventRecord.toJSON(r):void 0)):o.validatorSlashEvents=[],o},fromPartial(r){const o=w();return o.params=void 0!==r.params&&null!==r.params?s.fromPartial(r.params):void 0,o.feePool=void 0!==r.feePool&&null!==r.feePool?i.fromPartial(r.feePool):void 0,o.delegatorWithdrawInfos=r.delegatorWithdrawInfos?.map((r=>DelegatorWithdrawInfo.fromPartial(r)))||[],o.previousProposer=r.previousProposer??"",o.outstandingRewards=r.outstandingRewards?.map((r=>ValidatorOutstandingRewardsRecord.fromPartial(r)))||[],o.validatorAccumulatedCommissions=r.validatorAccumulatedCommissions?.map((r=>ValidatorAccumulatedCommissionRecord.fromPartial(r)))||[],o.validatorHistoricalRewards=r.validatorHistoricalRewards?.map((r=>ValidatorHistoricalRewardsRecord.fromPartial(r)))||[],o.validatorCurrentRewards=r.validatorCurrentRewards?.map((r=>ValidatorCurrentRewardsRecord.fromPartial(r)))||[],o.delegatorStartingInfos=r.delegatorStartingInfos?.map((r=>DelegatorStartingInfoRecord.fromPartial(r)))||[],o.validatorSlashEvents=r.validatorSlashEvents?.map((r=>ValidatorSlashEventRecord.fromPartial(r)))||[],o},fromProtoMsg:r=>GenesisState.decode(r.value),toProto:r=>GenesisState.encode(r).finish(),toProtoMsg:r=>({typeUrl:"/cosmos.distribution.v1beta1.GenesisState",value:GenesisState.encode(r).finish()})};
|