@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,978 +1 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { DecCoin, Coin, } from '../../base/v1beta1/coin.js';
|
|
3
|
-
import { BinaryReader, BinaryWriter } from '../../../binary.js';
|
|
4
|
-
import { Decimal, isSet } from '../../../helpers.js';
|
|
5
|
-
import {} from '../../../json-safe.js';
|
|
6
|
-
function createBaseParams() {
|
|
7
|
-
return {
|
|
8
|
-
communityTax: '',
|
|
9
|
-
baseProposerReward: '',
|
|
10
|
-
bonusProposerReward: '',
|
|
11
|
-
withdrawAddrEnabled: false,
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export const Params = {
|
|
15
|
-
typeUrl: '/cosmos.distribution.v1beta1.Params',
|
|
16
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
17
|
-
if (message.communityTax !== '') {
|
|
18
|
-
writer
|
|
19
|
-
.uint32(10)
|
|
20
|
-
.string(Decimal.fromUserInput(message.communityTax, 18).atomics);
|
|
21
|
-
}
|
|
22
|
-
if (message.baseProposerReward !== '') {
|
|
23
|
-
writer
|
|
24
|
-
.uint32(18)
|
|
25
|
-
.string(Decimal.fromUserInput(message.baseProposerReward, 18).atomics);
|
|
26
|
-
}
|
|
27
|
-
if (message.bonusProposerReward !== '') {
|
|
28
|
-
writer
|
|
29
|
-
.uint32(26)
|
|
30
|
-
.string(Decimal.fromUserInput(message.bonusProposerReward, 18).atomics);
|
|
31
|
-
}
|
|
32
|
-
if (message.withdrawAddrEnabled === true) {
|
|
33
|
-
writer.uint32(32).bool(message.withdrawAddrEnabled);
|
|
34
|
-
}
|
|
35
|
-
return writer;
|
|
36
|
-
},
|
|
37
|
-
decode(input, length) {
|
|
38
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
39
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
40
|
-
const message = createBaseParams();
|
|
41
|
-
while (reader.pos < end) {
|
|
42
|
-
const tag = reader.uint32();
|
|
43
|
-
switch (tag >>> 3) {
|
|
44
|
-
case 1:
|
|
45
|
-
message.communityTax = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
46
|
-
break;
|
|
47
|
-
case 2:
|
|
48
|
-
message.baseProposerReward = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
49
|
-
break;
|
|
50
|
-
case 3:
|
|
51
|
-
message.bonusProposerReward = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
52
|
-
break;
|
|
53
|
-
case 4:
|
|
54
|
-
message.withdrawAddrEnabled = reader.bool();
|
|
55
|
-
break;
|
|
56
|
-
default:
|
|
57
|
-
reader.skipType(tag & 7);
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return message;
|
|
62
|
-
},
|
|
63
|
-
fromJSON(object) {
|
|
64
|
-
return {
|
|
65
|
-
communityTax: isSet(object.communityTax)
|
|
66
|
-
? String(object.communityTax)
|
|
67
|
-
: '',
|
|
68
|
-
baseProposerReward: isSet(object.baseProposerReward)
|
|
69
|
-
? String(object.baseProposerReward)
|
|
70
|
-
: '',
|
|
71
|
-
bonusProposerReward: isSet(object.bonusProposerReward)
|
|
72
|
-
? String(object.bonusProposerReward)
|
|
73
|
-
: '',
|
|
74
|
-
withdrawAddrEnabled: isSet(object.withdrawAddrEnabled)
|
|
75
|
-
? Boolean(object.withdrawAddrEnabled)
|
|
76
|
-
: false,
|
|
77
|
-
};
|
|
78
|
-
},
|
|
79
|
-
toJSON(message) {
|
|
80
|
-
const obj = {};
|
|
81
|
-
message.communityTax !== undefined &&
|
|
82
|
-
(obj.communityTax = message.communityTax);
|
|
83
|
-
message.baseProposerReward !== undefined &&
|
|
84
|
-
(obj.baseProposerReward = message.baseProposerReward);
|
|
85
|
-
message.bonusProposerReward !== undefined &&
|
|
86
|
-
(obj.bonusProposerReward = message.bonusProposerReward);
|
|
87
|
-
message.withdrawAddrEnabled !== undefined &&
|
|
88
|
-
(obj.withdrawAddrEnabled = message.withdrawAddrEnabled);
|
|
89
|
-
return obj;
|
|
90
|
-
},
|
|
91
|
-
fromPartial(object) {
|
|
92
|
-
const message = createBaseParams();
|
|
93
|
-
message.communityTax = object.communityTax ?? '';
|
|
94
|
-
message.baseProposerReward = object.baseProposerReward ?? '';
|
|
95
|
-
message.bonusProposerReward = object.bonusProposerReward ?? '';
|
|
96
|
-
message.withdrawAddrEnabled = object.withdrawAddrEnabled ?? false;
|
|
97
|
-
return message;
|
|
98
|
-
},
|
|
99
|
-
fromProtoMsg(message) {
|
|
100
|
-
return Params.decode(message.value);
|
|
101
|
-
},
|
|
102
|
-
toProto(message) {
|
|
103
|
-
return Params.encode(message).finish();
|
|
104
|
-
},
|
|
105
|
-
toProtoMsg(message) {
|
|
106
|
-
return {
|
|
107
|
-
typeUrl: '/cosmos.distribution.v1beta1.Params',
|
|
108
|
-
value: Params.encode(message).finish(),
|
|
109
|
-
};
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
|
-
function createBaseValidatorHistoricalRewards() {
|
|
113
|
-
return {
|
|
114
|
-
cumulativeRewardRatio: [],
|
|
115
|
-
referenceCount: 0,
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
export const ValidatorHistoricalRewards = {
|
|
119
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorHistoricalRewards',
|
|
120
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
121
|
-
for (const v of message.cumulativeRewardRatio) {
|
|
122
|
-
DecCoin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
123
|
-
}
|
|
124
|
-
if (message.referenceCount !== 0) {
|
|
125
|
-
writer.uint32(16).uint32(message.referenceCount);
|
|
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 = createBaseValidatorHistoricalRewards();
|
|
133
|
-
while (reader.pos < end) {
|
|
134
|
-
const tag = reader.uint32();
|
|
135
|
-
switch (tag >>> 3) {
|
|
136
|
-
case 1:
|
|
137
|
-
message.cumulativeRewardRatio.push(DecCoin.decode(reader, reader.uint32()));
|
|
138
|
-
break;
|
|
139
|
-
case 2:
|
|
140
|
-
message.referenceCount = reader.uint32();
|
|
141
|
-
break;
|
|
142
|
-
default:
|
|
143
|
-
reader.skipType(tag & 7);
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return message;
|
|
148
|
-
},
|
|
149
|
-
fromJSON(object) {
|
|
150
|
-
return {
|
|
151
|
-
cumulativeRewardRatio: Array.isArray(object?.cumulativeRewardRatio)
|
|
152
|
-
? object.cumulativeRewardRatio.map((e) => DecCoin.fromJSON(e))
|
|
153
|
-
: [],
|
|
154
|
-
referenceCount: isSet(object.referenceCount)
|
|
155
|
-
? Number(object.referenceCount)
|
|
156
|
-
: 0,
|
|
157
|
-
};
|
|
158
|
-
},
|
|
159
|
-
toJSON(message) {
|
|
160
|
-
const obj = {};
|
|
161
|
-
if (message.cumulativeRewardRatio) {
|
|
162
|
-
obj.cumulativeRewardRatio = message.cumulativeRewardRatio.map(e => e ? DecCoin.toJSON(e) : undefined);
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
obj.cumulativeRewardRatio = [];
|
|
166
|
-
}
|
|
167
|
-
message.referenceCount !== undefined &&
|
|
168
|
-
(obj.referenceCount = Math.round(message.referenceCount));
|
|
169
|
-
return obj;
|
|
170
|
-
},
|
|
171
|
-
fromPartial(object) {
|
|
172
|
-
const message = createBaseValidatorHistoricalRewards();
|
|
173
|
-
message.cumulativeRewardRatio =
|
|
174
|
-
object.cumulativeRewardRatio?.map(e => DecCoin.fromPartial(e)) || [];
|
|
175
|
-
message.referenceCount = object.referenceCount ?? 0;
|
|
176
|
-
return message;
|
|
177
|
-
},
|
|
178
|
-
fromProtoMsg(message) {
|
|
179
|
-
return ValidatorHistoricalRewards.decode(message.value);
|
|
180
|
-
},
|
|
181
|
-
toProto(message) {
|
|
182
|
-
return ValidatorHistoricalRewards.encode(message).finish();
|
|
183
|
-
},
|
|
184
|
-
toProtoMsg(message) {
|
|
185
|
-
return {
|
|
186
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorHistoricalRewards',
|
|
187
|
-
value: ValidatorHistoricalRewards.encode(message).finish(),
|
|
188
|
-
};
|
|
189
|
-
},
|
|
190
|
-
};
|
|
191
|
-
function createBaseValidatorCurrentRewards() {
|
|
192
|
-
return {
|
|
193
|
-
rewards: [],
|
|
194
|
-
period: BigInt(0),
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
export const ValidatorCurrentRewards = {
|
|
198
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorCurrentRewards',
|
|
199
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
200
|
-
for (const v of message.rewards) {
|
|
201
|
-
DecCoin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
202
|
-
}
|
|
203
|
-
if (message.period !== BigInt(0)) {
|
|
204
|
-
writer.uint32(16).uint64(message.period);
|
|
205
|
-
}
|
|
206
|
-
return writer;
|
|
207
|
-
},
|
|
208
|
-
decode(input, length) {
|
|
209
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
210
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
211
|
-
const message = createBaseValidatorCurrentRewards();
|
|
212
|
-
while (reader.pos < end) {
|
|
213
|
-
const tag = reader.uint32();
|
|
214
|
-
switch (tag >>> 3) {
|
|
215
|
-
case 1:
|
|
216
|
-
message.rewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
217
|
-
break;
|
|
218
|
-
case 2:
|
|
219
|
-
message.period = reader.uint64();
|
|
220
|
-
break;
|
|
221
|
-
default:
|
|
222
|
-
reader.skipType(tag & 7);
|
|
223
|
-
break;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
return message;
|
|
227
|
-
},
|
|
228
|
-
fromJSON(object) {
|
|
229
|
-
return {
|
|
230
|
-
rewards: Array.isArray(object?.rewards)
|
|
231
|
-
? object.rewards.map((e) => DecCoin.fromJSON(e))
|
|
232
|
-
: [],
|
|
233
|
-
period: isSet(object.period)
|
|
234
|
-
? BigInt(object.period.toString())
|
|
235
|
-
: BigInt(0),
|
|
236
|
-
};
|
|
237
|
-
},
|
|
238
|
-
toJSON(message) {
|
|
239
|
-
const obj = {};
|
|
240
|
-
if (message.rewards) {
|
|
241
|
-
obj.rewards = message.rewards.map(e => e ? DecCoin.toJSON(e) : undefined);
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
obj.rewards = [];
|
|
245
|
-
}
|
|
246
|
-
message.period !== undefined &&
|
|
247
|
-
(obj.period = (message.period || BigInt(0)).toString());
|
|
248
|
-
return obj;
|
|
249
|
-
},
|
|
250
|
-
fromPartial(object) {
|
|
251
|
-
const message = createBaseValidatorCurrentRewards();
|
|
252
|
-
message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || [];
|
|
253
|
-
message.period =
|
|
254
|
-
object.period !== undefined && object.period !== null
|
|
255
|
-
? BigInt(object.period.toString())
|
|
256
|
-
: BigInt(0);
|
|
257
|
-
return message;
|
|
258
|
-
},
|
|
259
|
-
fromProtoMsg(message) {
|
|
260
|
-
return ValidatorCurrentRewards.decode(message.value);
|
|
261
|
-
},
|
|
262
|
-
toProto(message) {
|
|
263
|
-
return ValidatorCurrentRewards.encode(message).finish();
|
|
264
|
-
},
|
|
265
|
-
toProtoMsg(message) {
|
|
266
|
-
return {
|
|
267
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorCurrentRewards',
|
|
268
|
-
value: ValidatorCurrentRewards.encode(message).finish(),
|
|
269
|
-
};
|
|
270
|
-
},
|
|
271
|
-
};
|
|
272
|
-
function createBaseValidatorAccumulatedCommission() {
|
|
273
|
-
return {
|
|
274
|
-
commission: [],
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
export const ValidatorAccumulatedCommission = {
|
|
278
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission',
|
|
279
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
280
|
-
for (const v of message.commission) {
|
|
281
|
-
DecCoin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
282
|
-
}
|
|
283
|
-
return writer;
|
|
284
|
-
},
|
|
285
|
-
decode(input, length) {
|
|
286
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
287
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
288
|
-
const message = createBaseValidatorAccumulatedCommission();
|
|
289
|
-
while (reader.pos < end) {
|
|
290
|
-
const tag = reader.uint32();
|
|
291
|
-
switch (tag >>> 3) {
|
|
292
|
-
case 1:
|
|
293
|
-
message.commission.push(DecCoin.decode(reader, reader.uint32()));
|
|
294
|
-
break;
|
|
295
|
-
default:
|
|
296
|
-
reader.skipType(tag & 7);
|
|
297
|
-
break;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
return message;
|
|
301
|
-
},
|
|
302
|
-
fromJSON(object) {
|
|
303
|
-
return {
|
|
304
|
-
commission: Array.isArray(object?.commission)
|
|
305
|
-
? object.commission.map((e) => DecCoin.fromJSON(e))
|
|
306
|
-
: [],
|
|
307
|
-
};
|
|
308
|
-
},
|
|
309
|
-
toJSON(message) {
|
|
310
|
-
const obj = {};
|
|
311
|
-
if (message.commission) {
|
|
312
|
-
obj.commission = message.commission.map(e => e ? DecCoin.toJSON(e) : undefined);
|
|
313
|
-
}
|
|
314
|
-
else {
|
|
315
|
-
obj.commission = [];
|
|
316
|
-
}
|
|
317
|
-
return obj;
|
|
318
|
-
},
|
|
319
|
-
fromPartial(object) {
|
|
320
|
-
const message = createBaseValidatorAccumulatedCommission();
|
|
321
|
-
message.commission =
|
|
322
|
-
object.commission?.map(e => DecCoin.fromPartial(e)) || [];
|
|
323
|
-
return message;
|
|
324
|
-
},
|
|
325
|
-
fromProtoMsg(message) {
|
|
326
|
-
return ValidatorAccumulatedCommission.decode(message.value);
|
|
327
|
-
},
|
|
328
|
-
toProto(message) {
|
|
329
|
-
return ValidatorAccumulatedCommission.encode(message).finish();
|
|
330
|
-
},
|
|
331
|
-
toProtoMsg(message) {
|
|
332
|
-
return {
|
|
333
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission',
|
|
334
|
-
value: ValidatorAccumulatedCommission.encode(message).finish(),
|
|
335
|
-
};
|
|
336
|
-
},
|
|
337
|
-
};
|
|
338
|
-
function createBaseValidatorOutstandingRewards() {
|
|
339
|
-
return {
|
|
340
|
-
rewards: [],
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
export const ValidatorOutstandingRewards = {
|
|
344
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorOutstandingRewards',
|
|
345
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
346
|
-
for (const v of message.rewards) {
|
|
347
|
-
DecCoin.encode(v, writer.uint32(10).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 = createBaseValidatorOutstandingRewards();
|
|
355
|
-
while (reader.pos < end) {
|
|
356
|
-
const tag = reader.uint32();
|
|
357
|
-
switch (tag >>> 3) {
|
|
358
|
-
case 1:
|
|
359
|
-
message.rewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
360
|
-
break;
|
|
361
|
-
default:
|
|
362
|
-
reader.skipType(tag & 7);
|
|
363
|
-
break;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
return message;
|
|
367
|
-
},
|
|
368
|
-
fromJSON(object) {
|
|
369
|
-
return {
|
|
370
|
-
rewards: Array.isArray(object?.rewards)
|
|
371
|
-
? object.rewards.map((e) => DecCoin.fromJSON(e))
|
|
372
|
-
: [],
|
|
373
|
-
};
|
|
374
|
-
},
|
|
375
|
-
toJSON(message) {
|
|
376
|
-
const obj = {};
|
|
377
|
-
if (message.rewards) {
|
|
378
|
-
obj.rewards = message.rewards.map(e => e ? DecCoin.toJSON(e) : undefined);
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
obj.rewards = [];
|
|
382
|
-
}
|
|
383
|
-
return obj;
|
|
384
|
-
},
|
|
385
|
-
fromPartial(object) {
|
|
386
|
-
const message = createBaseValidatorOutstandingRewards();
|
|
387
|
-
message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || [];
|
|
388
|
-
return message;
|
|
389
|
-
},
|
|
390
|
-
fromProtoMsg(message) {
|
|
391
|
-
return ValidatorOutstandingRewards.decode(message.value);
|
|
392
|
-
},
|
|
393
|
-
toProto(message) {
|
|
394
|
-
return ValidatorOutstandingRewards.encode(message).finish();
|
|
395
|
-
},
|
|
396
|
-
toProtoMsg(message) {
|
|
397
|
-
return {
|
|
398
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorOutstandingRewards',
|
|
399
|
-
value: ValidatorOutstandingRewards.encode(message).finish(),
|
|
400
|
-
};
|
|
401
|
-
},
|
|
402
|
-
};
|
|
403
|
-
function createBaseValidatorSlashEvent() {
|
|
404
|
-
return {
|
|
405
|
-
validatorPeriod: BigInt(0),
|
|
406
|
-
fraction: '',
|
|
407
|
-
};
|
|
408
|
-
}
|
|
409
|
-
export const ValidatorSlashEvent = {
|
|
410
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorSlashEvent',
|
|
411
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
412
|
-
if (message.validatorPeriod !== BigInt(0)) {
|
|
413
|
-
writer.uint32(8).uint64(message.validatorPeriod);
|
|
414
|
-
}
|
|
415
|
-
if (message.fraction !== '') {
|
|
416
|
-
writer
|
|
417
|
-
.uint32(18)
|
|
418
|
-
.string(Decimal.fromUserInput(message.fraction, 18).atomics);
|
|
419
|
-
}
|
|
420
|
-
return writer;
|
|
421
|
-
},
|
|
422
|
-
decode(input, length) {
|
|
423
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
424
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
425
|
-
const message = createBaseValidatorSlashEvent();
|
|
426
|
-
while (reader.pos < end) {
|
|
427
|
-
const tag = reader.uint32();
|
|
428
|
-
switch (tag >>> 3) {
|
|
429
|
-
case 1:
|
|
430
|
-
message.validatorPeriod = reader.uint64();
|
|
431
|
-
break;
|
|
432
|
-
case 2:
|
|
433
|
-
message.fraction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
434
|
-
break;
|
|
435
|
-
default:
|
|
436
|
-
reader.skipType(tag & 7);
|
|
437
|
-
break;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
return message;
|
|
441
|
-
},
|
|
442
|
-
fromJSON(object) {
|
|
443
|
-
return {
|
|
444
|
-
validatorPeriod: isSet(object.validatorPeriod)
|
|
445
|
-
? BigInt(object.validatorPeriod.toString())
|
|
446
|
-
: BigInt(0),
|
|
447
|
-
fraction: isSet(object.fraction) ? String(object.fraction) : '',
|
|
448
|
-
};
|
|
449
|
-
},
|
|
450
|
-
toJSON(message) {
|
|
451
|
-
const obj = {};
|
|
452
|
-
message.validatorPeriod !== undefined &&
|
|
453
|
-
(obj.validatorPeriod = (message.validatorPeriod || BigInt(0)).toString());
|
|
454
|
-
message.fraction !== undefined && (obj.fraction = message.fraction);
|
|
455
|
-
return obj;
|
|
456
|
-
},
|
|
457
|
-
fromPartial(object) {
|
|
458
|
-
const message = createBaseValidatorSlashEvent();
|
|
459
|
-
message.validatorPeriod =
|
|
460
|
-
object.validatorPeriod !== undefined && object.validatorPeriod !== null
|
|
461
|
-
? BigInt(object.validatorPeriod.toString())
|
|
462
|
-
: BigInt(0);
|
|
463
|
-
message.fraction = object.fraction ?? '';
|
|
464
|
-
return message;
|
|
465
|
-
},
|
|
466
|
-
fromProtoMsg(message) {
|
|
467
|
-
return ValidatorSlashEvent.decode(message.value);
|
|
468
|
-
},
|
|
469
|
-
toProto(message) {
|
|
470
|
-
return ValidatorSlashEvent.encode(message).finish();
|
|
471
|
-
},
|
|
472
|
-
toProtoMsg(message) {
|
|
473
|
-
return {
|
|
474
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorSlashEvent',
|
|
475
|
-
value: ValidatorSlashEvent.encode(message).finish(),
|
|
476
|
-
};
|
|
477
|
-
},
|
|
478
|
-
};
|
|
479
|
-
function createBaseValidatorSlashEvents() {
|
|
480
|
-
return {
|
|
481
|
-
validatorSlashEvents: [],
|
|
482
|
-
};
|
|
483
|
-
}
|
|
484
|
-
export const ValidatorSlashEvents = {
|
|
485
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorSlashEvents',
|
|
486
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
487
|
-
for (const v of message.validatorSlashEvents) {
|
|
488
|
-
ValidatorSlashEvent.encode(v, writer.uint32(10).fork()).ldelim();
|
|
489
|
-
}
|
|
490
|
-
return writer;
|
|
491
|
-
},
|
|
492
|
-
decode(input, length) {
|
|
493
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
494
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
495
|
-
const message = createBaseValidatorSlashEvents();
|
|
496
|
-
while (reader.pos < end) {
|
|
497
|
-
const tag = reader.uint32();
|
|
498
|
-
switch (tag >>> 3) {
|
|
499
|
-
case 1:
|
|
500
|
-
message.validatorSlashEvents.push(ValidatorSlashEvent.decode(reader, reader.uint32()));
|
|
501
|
-
break;
|
|
502
|
-
default:
|
|
503
|
-
reader.skipType(tag & 7);
|
|
504
|
-
break;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
return message;
|
|
508
|
-
},
|
|
509
|
-
fromJSON(object) {
|
|
510
|
-
return {
|
|
511
|
-
validatorSlashEvents: Array.isArray(object?.validatorSlashEvents)
|
|
512
|
-
? object.validatorSlashEvents.map((e) => ValidatorSlashEvent.fromJSON(e))
|
|
513
|
-
: [],
|
|
514
|
-
};
|
|
515
|
-
},
|
|
516
|
-
toJSON(message) {
|
|
517
|
-
const obj = {};
|
|
518
|
-
if (message.validatorSlashEvents) {
|
|
519
|
-
obj.validatorSlashEvents = message.validatorSlashEvents.map(e => e ? ValidatorSlashEvent.toJSON(e) : undefined);
|
|
520
|
-
}
|
|
521
|
-
else {
|
|
522
|
-
obj.validatorSlashEvents = [];
|
|
523
|
-
}
|
|
524
|
-
return obj;
|
|
525
|
-
},
|
|
526
|
-
fromPartial(object) {
|
|
527
|
-
const message = createBaseValidatorSlashEvents();
|
|
528
|
-
message.validatorSlashEvents =
|
|
529
|
-
object.validatorSlashEvents?.map(e => ValidatorSlashEvent.fromPartial(e)) || [];
|
|
530
|
-
return message;
|
|
531
|
-
},
|
|
532
|
-
fromProtoMsg(message) {
|
|
533
|
-
return ValidatorSlashEvents.decode(message.value);
|
|
534
|
-
},
|
|
535
|
-
toProto(message) {
|
|
536
|
-
return ValidatorSlashEvents.encode(message).finish();
|
|
537
|
-
},
|
|
538
|
-
toProtoMsg(message) {
|
|
539
|
-
return {
|
|
540
|
-
typeUrl: '/cosmos.distribution.v1beta1.ValidatorSlashEvents',
|
|
541
|
-
value: ValidatorSlashEvents.encode(message).finish(),
|
|
542
|
-
};
|
|
543
|
-
},
|
|
544
|
-
};
|
|
545
|
-
function createBaseFeePool() {
|
|
546
|
-
return {
|
|
547
|
-
communityPool: [],
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
|
-
export const FeePool = {
|
|
551
|
-
typeUrl: '/cosmos.distribution.v1beta1.FeePool',
|
|
552
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
553
|
-
for (const v of message.communityPool) {
|
|
554
|
-
DecCoin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
555
|
-
}
|
|
556
|
-
return writer;
|
|
557
|
-
},
|
|
558
|
-
decode(input, length) {
|
|
559
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
560
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
561
|
-
const message = createBaseFeePool();
|
|
562
|
-
while (reader.pos < end) {
|
|
563
|
-
const tag = reader.uint32();
|
|
564
|
-
switch (tag >>> 3) {
|
|
565
|
-
case 1:
|
|
566
|
-
message.communityPool.push(DecCoin.decode(reader, reader.uint32()));
|
|
567
|
-
break;
|
|
568
|
-
default:
|
|
569
|
-
reader.skipType(tag & 7);
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
return message;
|
|
574
|
-
},
|
|
575
|
-
fromJSON(object) {
|
|
576
|
-
return {
|
|
577
|
-
communityPool: Array.isArray(object?.communityPool)
|
|
578
|
-
? object.communityPool.map((e) => DecCoin.fromJSON(e))
|
|
579
|
-
: [],
|
|
580
|
-
};
|
|
581
|
-
},
|
|
582
|
-
toJSON(message) {
|
|
583
|
-
const obj = {};
|
|
584
|
-
if (message.communityPool) {
|
|
585
|
-
obj.communityPool = message.communityPool.map(e => e ? DecCoin.toJSON(e) : undefined);
|
|
586
|
-
}
|
|
587
|
-
else {
|
|
588
|
-
obj.communityPool = [];
|
|
589
|
-
}
|
|
590
|
-
return obj;
|
|
591
|
-
},
|
|
592
|
-
fromPartial(object) {
|
|
593
|
-
const message = createBaseFeePool();
|
|
594
|
-
message.communityPool =
|
|
595
|
-
object.communityPool?.map(e => DecCoin.fromPartial(e)) || [];
|
|
596
|
-
return message;
|
|
597
|
-
},
|
|
598
|
-
fromProtoMsg(message) {
|
|
599
|
-
return FeePool.decode(message.value);
|
|
600
|
-
},
|
|
601
|
-
toProto(message) {
|
|
602
|
-
return FeePool.encode(message).finish();
|
|
603
|
-
},
|
|
604
|
-
toProtoMsg(message) {
|
|
605
|
-
return {
|
|
606
|
-
typeUrl: '/cosmos.distribution.v1beta1.FeePool',
|
|
607
|
-
value: FeePool.encode(message).finish(),
|
|
608
|
-
};
|
|
609
|
-
},
|
|
610
|
-
};
|
|
611
|
-
function createBaseCommunityPoolSpendProposal() {
|
|
612
|
-
return {
|
|
613
|
-
$typeUrl: '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal',
|
|
614
|
-
title: '',
|
|
615
|
-
description: '',
|
|
616
|
-
recipient: '',
|
|
617
|
-
amount: [],
|
|
618
|
-
};
|
|
619
|
-
}
|
|
620
|
-
export const CommunityPoolSpendProposal = {
|
|
621
|
-
typeUrl: '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal',
|
|
622
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
623
|
-
if (message.title !== '') {
|
|
624
|
-
writer.uint32(10).string(message.title);
|
|
625
|
-
}
|
|
626
|
-
if (message.description !== '') {
|
|
627
|
-
writer.uint32(18).string(message.description);
|
|
628
|
-
}
|
|
629
|
-
if (message.recipient !== '') {
|
|
630
|
-
writer.uint32(26).string(message.recipient);
|
|
631
|
-
}
|
|
632
|
-
for (const v of message.amount) {
|
|
633
|
-
Coin.encode(v, writer.uint32(34).fork()).ldelim();
|
|
634
|
-
}
|
|
635
|
-
return writer;
|
|
636
|
-
},
|
|
637
|
-
decode(input, length) {
|
|
638
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
639
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
640
|
-
const message = createBaseCommunityPoolSpendProposal();
|
|
641
|
-
while (reader.pos < end) {
|
|
642
|
-
const tag = reader.uint32();
|
|
643
|
-
switch (tag >>> 3) {
|
|
644
|
-
case 1:
|
|
645
|
-
message.title = reader.string();
|
|
646
|
-
break;
|
|
647
|
-
case 2:
|
|
648
|
-
message.description = reader.string();
|
|
649
|
-
break;
|
|
650
|
-
case 3:
|
|
651
|
-
message.recipient = reader.string();
|
|
652
|
-
break;
|
|
653
|
-
case 4:
|
|
654
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
655
|
-
break;
|
|
656
|
-
default:
|
|
657
|
-
reader.skipType(tag & 7);
|
|
658
|
-
break;
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
return message;
|
|
662
|
-
},
|
|
663
|
-
fromJSON(object) {
|
|
664
|
-
return {
|
|
665
|
-
title: isSet(object.title) ? String(object.title) : '',
|
|
666
|
-
description: isSet(object.description) ? String(object.description) : '',
|
|
667
|
-
recipient: isSet(object.recipient) ? String(object.recipient) : '',
|
|
668
|
-
amount: Array.isArray(object?.amount)
|
|
669
|
-
? object.amount.map((e) => Coin.fromJSON(e))
|
|
670
|
-
: [],
|
|
671
|
-
};
|
|
672
|
-
},
|
|
673
|
-
toJSON(message) {
|
|
674
|
-
const obj = {};
|
|
675
|
-
message.title !== undefined && (obj.title = message.title);
|
|
676
|
-
message.description !== undefined &&
|
|
677
|
-
(obj.description = message.description);
|
|
678
|
-
message.recipient !== undefined && (obj.recipient = message.recipient);
|
|
679
|
-
if (message.amount) {
|
|
680
|
-
obj.amount = message.amount.map(e => (e ? Coin.toJSON(e) : undefined));
|
|
681
|
-
}
|
|
682
|
-
else {
|
|
683
|
-
obj.amount = [];
|
|
684
|
-
}
|
|
685
|
-
return obj;
|
|
686
|
-
},
|
|
687
|
-
fromPartial(object) {
|
|
688
|
-
const message = createBaseCommunityPoolSpendProposal();
|
|
689
|
-
message.title = object.title ?? '';
|
|
690
|
-
message.description = object.description ?? '';
|
|
691
|
-
message.recipient = object.recipient ?? '';
|
|
692
|
-
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
|
693
|
-
return message;
|
|
694
|
-
},
|
|
695
|
-
fromProtoMsg(message) {
|
|
696
|
-
return CommunityPoolSpendProposal.decode(message.value);
|
|
697
|
-
},
|
|
698
|
-
toProto(message) {
|
|
699
|
-
return CommunityPoolSpendProposal.encode(message).finish();
|
|
700
|
-
},
|
|
701
|
-
toProtoMsg(message) {
|
|
702
|
-
return {
|
|
703
|
-
typeUrl: '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal',
|
|
704
|
-
value: CommunityPoolSpendProposal.encode(message).finish(),
|
|
705
|
-
};
|
|
706
|
-
},
|
|
707
|
-
};
|
|
708
|
-
function createBaseDelegatorStartingInfo() {
|
|
709
|
-
return {
|
|
710
|
-
previousPeriod: BigInt(0),
|
|
711
|
-
stake: '',
|
|
712
|
-
height: BigInt(0),
|
|
713
|
-
};
|
|
714
|
-
}
|
|
715
|
-
export const DelegatorStartingInfo = {
|
|
716
|
-
typeUrl: '/cosmos.distribution.v1beta1.DelegatorStartingInfo',
|
|
717
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
718
|
-
if (message.previousPeriod !== BigInt(0)) {
|
|
719
|
-
writer.uint32(8).uint64(message.previousPeriod);
|
|
720
|
-
}
|
|
721
|
-
if (message.stake !== '') {
|
|
722
|
-
writer
|
|
723
|
-
.uint32(18)
|
|
724
|
-
.string(Decimal.fromUserInput(message.stake, 18).atomics);
|
|
725
|
-
}
|
|
726
|
-
if (message.height !== BigInt(0)) {
|
|
727
|
-
writer.uint32(24).uint64(message.height);
|
|
728
|
-
}
|
|
729
|
-
return writer;
|
|
730
|
-
},
|
|
731
|
-
decode(input, length) {
|
|
732
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
733
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
734
|
-
const message = createBaseDelegatorStartingInfo();
|
|
735
|
-
while (reader.pos < end) {
|
|
736
|
-
const tag = reader.uint32();
|
|
737
|
-
switch (tag >>> 3) {
|
|
738
|
-
case 1:
|
|
739
|
-
message.previousPeriod = reader.uint64();
|
|
740
|
-
break;
|
|
741
|
-
case 2:
|
|
742
|
-
message.stake = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
743
|
-
break;
|
|
744
|
-
case 3:
|
|
745
|
-
message.height = reader.uint64();
|
|
746
|
-
break;
|
|
747
|
-
default:
|
|
748
|
-
reader.skipType(tag & 7);
|
|
749
|
-
break;
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
return message;
|
|
753
|
-
},
|
|
754
|
-
fromJSON(object) {
|
|
755
|
-
return {
|
|
756
|
-
previousPeriod: isSet(object.previousPeriod)
|
|
757
|
-
? BigInt(object.previousPeriod.toString())
|
|
758
|
-
: BigInt(0),
|
|
759
|
-
stake: isSet(object.stake) ? String(object.stake) : '',
|
|
760
|
-
height: isSet(object.height)
|
|
761
|
-
? BigInt(object.height.toString())
|
|
762
|
-
: BigInt(0),
|
|
763
|
-
};
|
|
764
|
-
},
|
|
765
|
-
toJSON(message) {
|
|
766
|
-
const obj = {};
|
|
767
|
-
message.previousPeriod !== undefined &&
|
|
768
|
-
(obj.previousPeriod = (message.previousPeriod || BigInt(0)).toString());
|
|
769
|
-
message.stake !== undefined && (obj.stake = message.stake);
|
|
770
|
-
message.height !== undefined &&
|
|
771
|
-
(obj.height = (message.height || BigInt(0)).toString());
|
|
772
|
-
return obj;
|
|
773
|
-
},
|
|
774
|
-
fromPartial(object) {
|
|
775
|
-
const message = createBaseDelegatorStartingInfo();
|
|
776
|
-
message.previousPeriod =
|
|
777
|
-
object.previousPeriod !== undefined && object.previousPeriod !== null
|
|
778
|
-
? BigInt(object.previousPeriod.toString())
|
|
779
|
-
: BigInt(0);
|
|
780
|
-
message.stake = object.stake ?? '';
|
|
781
|
-
message.height =
|
|
782
|
-
object.height !== undefined && object.height !== null
|
|
783
|
-
? BigInt(object.height.toString())
|
|
784
|
-
: BigInt(0);
|
|
785
|
-
return message;
|
|
786
|
-
},
|
|
787
|
-
fromProtoMsg(message) {
|
|
788
|
-
return DelegatorStartingInfo.decode(message.value);
|
|
789
|
-
},
|
|
790
|
-
toProto(message) {
|
|
791
|
-
return DelegatorStartingInfo.encode(message).finish();
|
|
792
|
-
},
|
|
793
|
-
toProtoMsg(message) {
|
|
794
|
-
return {
|
|
795
|
-
typeUrl: '/cosmos.distribution.v1beta1.DelegatorStartingInfo',
|
|
796
|
-
value: DelegatorStartingInfo.encode(message).finish(),
|
|
797
|
-
};
|
|
798
|
-
},
|
|
799
|
-
};
|
|
800
|
-
function createBaseDelegationDelegatorReward() {
|
|
801
|
-
return {
|
|
802
|
-
validatorAddress: '',
|
|
803
|
-
reward: [],
|
|
804
|
-
};
|
|
805
|
-
}
|
|
806
|
-
export const DelegationDelegatorReward = {
|
|
807
|
-
typeUrl: '/cosmos.distribution.v1beta1.DelegationDelegatorReward',
|
|
808
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
809
|
-
if (message.validatorAddress !== '') {
|
|
810
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
811
|
-
}
|
|
812
|
-
for (const v of message.reward) {
|
|
813
|
-
DecCoin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
814
|
-
}
|
|
815
|
-
return writer;
|
|
816
|
-
},
|
|
817
|
-
decode(input, length) {
|
|
818
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
819
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
820
|
-
const message = createBaseDelegationDelegatorReward();
|
|
821
|
-
while (reader.pos < end) {
|
|
822
|
-
const tag = reader.uint32();
|
|
823
|
-
switch (tag >>> 3) {
|
|
824
|
-
case 1:
|
|
825
|
-
message.validatorAddress = reader.string();
|
|
826
|
-
break;
|
|
827
|
-
case 2:
|
|
828
|
-
message.reward.push(DecCoin.decode(reader, reader.uint32()));
|
|
829
|
-
break;
|
|
830
|
-
default:
|
|
831
|
-
reader.skipType(tag & 7);
|
|
832
|
-
break;
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
return message;
|
|
836
|
-
},
|
|
837
|
-
fromJSON(object) {
|
|
838
|
-
return {
|
|
839
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
840
|
-
? String(object.validatorAddress)
|
|
841
|
-
: '',
|
|
842
|
-
reward: Array.isArray(object?.reward)
|
|
843
|
-
? object.reward.map((e) => DecCoin.fromJSON(e))
|
|
844
|
-
: [],
|
|
845
|
-
};
|
|
846
|
-
},
|
|
847
|
-
toJSON(message) {
|
|
848
|
-
const obj = {};
|
|
849
|
-
message.validatorAddress !== undefined &&
|
|
850
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
851
|
-
if (message.reward) {
|
|
852
|
-
obj.reward = message.reward.map(e => (e ? DecCoin.toJSON(e) : undefined));
|
|
853
|
-
}
|
|
854
|
-
else {
|
|
855
|
-
obj.reward = [];
|
|
856
|
-
}
|
|
857
|
-
return obj;
|
|
858
|
-
},
|
|
859
|
-
fromPartial(object) {
|
|
860
|
-
const message = createBaseDelegationDelegatorReward();
|
|
861
|
-
message.validatorAddress = object.validatorAddress ?? '';
|
|
862
|
-
message.reward = object.reward?.map(e => DecCoin.fromPartial(e)) || [];
|
|
863
|
-
return message;
|
|
864
|
-
},
|
|
865
|
-
fromProtoMsg(message) {
|
|
866
|
-
return DelegationDelegatorReward.decode(message.value);
|
|
867
|
-
},
|
|
868
|
-
toProto(message) {
|
|
869
|
-
return DelegationDelegatorReward.encode(message).finish();
|
|
870
|
-
},
|
|
871
|
-
toProtoMsg(message) {
|
|
872
|
-
return {
|
|
873
|
-
typeUrl: '/cosmos.distribution.v1beta1.DelegationDelegatorReward',
|
|
874
|
-
value: DelegationDelegatorReward.encode(message).finish(),
|
|
875
|
-
};
|
|
876
|
-
},
|
|
877
|
-
};
|
|
878
|
-
function createBaseCommunityPoolSpendProposalWithDeposit() {
|
|
879
|
-
return {
|
|
880
|
-
$typeUrl: '/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit',
|
|
881
|
-
title: '',
|
|
882
|
-
description: '',
|
|
883
|
-
recipient: '',
|
|
884
|
-
amount: '',
|
|
885
|
-
deposit: '',
|
|
886
|
-
};
|
|
887
|
-
}
|
|
888
|
-
export const CommunityPoolSpendProposalWithDeposit = {
|
|
889
|
-
typeUrl: '/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit',
|
|
890
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
891
|
-
if (message.title !== '') {
|
|
892
|
-
writer.uint32(10).string(message.title);
|
|
893
|
-
}
|
|
894
|
-
if (message.description !== '') {
|
|
895
|
-
writer.uint32(18).string(message.description);
|
|
896
|
-
}
|
|
897
|
-
if (message.recipient !== '') {
|
|
898
|
-
writer.uint32(26).string(message.recipient);
|
|
899
|
-
}
|
|
900
|
-
if (message.amount !== '') {
|
|
901
|
-
writer.uint32(34).string(message.amount);
|
|
902
|
-
}
|
|
903
|
-
if (message.deposit !== '') {
|
|
904
|
-
writer.uint32(42).string(message.deposit);
|
|
905
|
-
}
|
|
906
|
-
return writer;
|
|
907
|
-
},
|
|
908
|
-
decode(input, length) {
|
|
909
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
910
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
911
|
-
const message = createBaseCommunityPoolSpendProposalWithDeposit();
|
|
912
|
-
while (reader.pos < end) {
|
|
913
|
-
const tag = reader.uint32();
|
|
914
|
-
switch (tag >>> 3) {
|
|
915
|
-
case 1:
|
|
916
|
-
message.title = reader.string();
|
|
917
|
-
break;
|
|
918
|
-
case 2:
|
|
919
|
-
message.description = reader.string();
|
|
920
|
-
break;
|
|
921
|
-
case 3:
|
|
922
|
-
message.recipient = reader.string();
|
|
923
|
-
break;
|
|
924
|
-
case 4:
|
|
925
|
-
message.amount = reader.string();
|
|
926
|
-
break;
|
|
927
|
-
case 5:
|
|
928
|
-
message.deposit = reader.string();
|
|
929
|
-
break;
|
|
930
|
-
default:
|
|
931
|
-
reader.skipType(tag & 7);
|
|
932
|
-
break;
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
return message;
|
|
936
|
-
},
|
|
937
|
-
fromJSON(object) {
|
|
938
|
-
return {
|
|
939
|
-
title: isSet(object.title) ? String(object.title) : '',
|
|
940
|
-
description: isSet(object.description) ? String(object.description) : '',
|
|
941
|
-
recipient: isSet(object.recipient) ? String(object.recipient) : '',
|
|
942
|
-
amount: isSet(object.amount) ? String(object.amount) : '',
|
|
943
|
-
deposit: isSet(object.deposit) ? String(object.deposit) : '',
|
|
944
|
-
};
|
|
945
|
-
},
|
|
946
|
-
toJSON(message) {
|
|
947
|
-
const obj = {};
|
|
948
|
-
message.title !== undefined && (obj.title = message.title);
|
|
949
|
-
message.description !== undefined &&
|
|
950
|
-
(obj.description = message.description);
|
|
951
|
-
message.recipient !== undefined && (obj.recipient = message.recipient);
|
|
952
|
-
message.amount !== undefined && (obj.amount = message.amount);
|
|
953
|
-
message.deposit !== undefined && (obj.deposit = message.deposit);
|
|
954
|
-
return obj;
|
|
955
|
-
},
|
|
956
|
-
fromPartial(object) {
|
|
957
|
-
const message = createBaseCommunityPoolSpendProposalWithDeposit();
|
|
958
|
-
message.title = object.title ?? '';
|
|
959
|
-
message.description = object.description ?? '';
|
|
960
|
-
message.recipient = object.recipient ?? '';
|
|
961
|
-
message.amount = object.amount ?? '';
|
|
962
|
-
message.deposit = object.deposit ?? '';
|
|
963
|
-
return message;
|
|
964
|
-
},
|
|
965
|
-
fromProtoMsg(message) {
|
|
966
|
-
return CommunityPoolSpendProposalWithDeposit.decode(message.value);
|
|
967
|
-
},
|
|
968
|
-
toProto(message) {
|
|
969
|
-
return CommunityPoolSpendProposalWithDeposit.encode(message).finish();
|
|
970
|
-
},
|
|
971
|
-
toProtoMsg(message) {
|
|
972
|
-
return {
|
|
973
|
-
typeUrl: '/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit',
|
|
974
|
-
value: CommunityPoolSpendProposalWithDeposit.encode(message).finish(),
|
|
975
|
-
};
|
|
976
|
-
},
|
|
977
|
-
};
|
|
978
|
-
//# sourceMappingURL=distribution.js.map
|
|
1
|
+
import{DecCoin as o,Coin as t}from"../../base/v1beta1/coin.js";import{BinaryReader as e,BinaryWriter as r}from"../../../binary.js";import{Decimal as i}from"../../../decimals.js";import{isSet as n}from"../../../helpers.js";import{}from"../../../json-safe.js";export const Params={typeUrl:"/cosmos.distribution.v1beta1.Params",encode:(o,t=r.create())=>(""!==o.communityTax&&t.uint32(10).string(i.fromUserInput(o.communityTax,18).atomics),""!==o.baseProposerReward&&t.uint32(18).string(i.fromUserInput(o.baseProposerReward,18).atomics),""!==o.bonusProposerReward&&t.uint32(26).string(i.fromUserInput(o.bonusProposerReward,18).atomics),!0===o.withdrawAddrEnabled&&t.uint32(32).bool(o.withdrawAddrEnabled),t),decode(o,t){const r=o instanceof e?o:new e(o);let n=void 0===t?r.len:r.pos+t;const a={communityTax:"",baseProposerReward:"",bonusProposerReward:"",withdrawAddrEnabled:!1};for(;r.pos<n;){const o=r.uint32();switch(o>>>3){case 1:a.communityTax=i.fromAtomics(r.string(),18).toString();break;case 2:a.baseProposerReward=i.fromAtomics(r.string(),18).toString();break;case 3:a.bonusProposerReward=i.fromAtomics(r.string(),18).toString();break;case 4:a.withdrawAddrEnabled=r.bool();break;default:r.skipType(7&o)}}return a},fromJSON:o=>({communityTax:n(o.communityTax)?String(o.communityTax):"",baseProposerReward:n(o.baseProposerReward)?String(o.baseProposerReward):"",bonusProposerReward:n(o.bonusProposerReward)?String(o.bonusProposerReward):"",withdrawAddrEnabled:!!n(o.withdrawAddrEnabled)&&Boolean(o.withdrawAddrEnabled)}),toJSON(o){const t={};return void 0!==o.communityTax&&(t.communityTax=o.communityTax),void 0!==o.baseProposerReward&&(t.baseProposerReward=o.baseProposerReward),void 0!==o.bonusProposerReward&&(t.bonusProposerReward=o.bonusProposerReward),void 0!==o.withdrawAddrEnabled&&(t.withdrawAddrEnabled=o.withdrawAddrEnabled),t},fromPartial(o){const t={communityTax:"",baseProposerReward:"",bonusProposerReward:"",withdrawAddrEnabled:!1};return t.communityTax=o.communityTax??"",t.baseProposerReward=o.baseProposerReward??"",t.bonusProposerReward=o.bonusProposerReward??"",t.withdrawAddrEnabled=o.withdrawAddrEnabled??!1,t},fromProtoMsg:o=>Params.decode(o.value),toProto:o=>Params.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.distribution.v1beta1.Params",value:Params.encode(o).finish()})};export const ValidatorHistoricalRewards={typeUrl:"/cosmos.distribution.v1beta1.ValidatorHistoricalRewards",encode(t,e=r.create()){for(const r of t.cumulativeRewardRatio)o.encode(r,e.uint32(10).fork()).ldelim();return 0!==t.referenceCount&&e.uint32(16).uint32(t.referenceCount),e},decode(t,r){const i=t instanceof e?t:new e(t);let n=void 0===r?i.len:i.pos+r;const a={cumulativeRewardRatio:[],referenceCount:0};for(;i.pos<n;){const t=i.uint32();switch(t>>>3){case 1:a.cumulativeRewardRatio.push(o.decode(i,i.uint32()));break;case 2:a.referenceCount=i.uint32();break;default:i.skipType(7&t)}}return a},fromJSON:t=>({cumulativeRewardRatio:Array.isArray(t?.cumulativeRewardRatio)?t.cumulativeRewardRatio.map((t=>o.fromJSON(t))):[],referenceCount:n(t.referenceCount)?Number(t.referenceCount):0}),toJSON(t){const e={};return t.cumulativeRewardRatio?e.cumulativeRewardRatio=t.cumulativeRewardRatio.map((t=>t?o.toJSON(t):void 0)):e.cumulativeRewardRatio=[],void 0!==t.referenceCount&&(e.referenceCount=Math.round(t.referenceCount)),e},fromPartial(t){const e={cumulativeRewardRatio:[],referenceCount:0};return e.cumulativeRewardRatio=t.cumulativeRewardRatio?.map((t=>o.fromPartial(t)))||[],e.referenceCount=t.referenceCount??0,e},fromProtoMsg:o=>ValidatorHistoricalRewards.decode(o.value),toProto:o=>ValidatorHistoricalRewards.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.distribution.v1beta1.ValidatorHistoricalRewards",value:ValidatorHistoricalRewards.encode(o).finish()})};function a(){return{rewards:[],period:BigInt(0)}}export const ValidatorCurrentRewards={typeUrl:"/cosmos.distribution.v1beta1.ValidatorCurrentRewards",encode(t,e=r.create()){for(const r of t.rewards)o.encode(r,e.uint32(10).fork()).ldelim();return t.period!==BigInt(0)&&e.uint32(16).uint64(t.period),e},decode(t,r){const i=t instanceof e?t:new e(t);let n=void 0===r?i.len:i.pos+r;const s=a();for(;i.pos<n;){const t=i.uint32();switch(t>>>3){case 1:s.rewards.push(o.decode(i,i.uint32()));break;case 2:s.period=i.uint64();break;default:i.skipType(7&t)}}return s},fromJSON:t=>({rewards:Array.isArray(t?.rewards)?t.rewards.map((t=>o.fromJSON(t))):[],period:n(t.period)?BigInt(t.period.toString()):BigInt(0)}),toJSON(t){const e={};return t.rewards?e.rewards=t.rewards.map((t=>t?o.toJSON(t):void 0)):e.rewards=[],void 0!==t.period&&(e.period=(t.period||BigInt(0)).toString()),e},fromPartial(t){const e=a();return e.rewards=t.rewards?.map((t=>o.fromPartial(t)))||[],e.period=void 0!==t.period&&null!==t.period?BigInt(t.period.toString()):BigInt(0),e},fromProtoMsg:o=>ValidatorCurrentRewards.decode(o.value),toProto:o=>ValidatorCurrentRewards.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.distribution.v1beta1.ValidatorCurrentRewards",value:ValidatorCurrentRewards.encode(o).finish()})};export const ValidatorAccumulatedCommission={typeUrl:"/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission",encode(t,e=r.create()){for(const r of t.commission)o.encode(r,e.uint32(10).fork()).ldelim();return e},decode(t,r){const i=t instanceof e?t:new e(t);let n=void 0===r?i.len:i.pos+r;const a={commission:[]};for(;i.pos<n;){const t=i.uint32();if(t>>>3==1)a.commission.push(o.decode(i,i.uint32()));else i.skipType(7&t)}return a},fromJSON:t=>({commission:Array.isArray(t?.commission)?t.commission.map((t=>o.fromJSON(t))):[]}),toJSON(t){const e={};return t.commission?e.commission=t.commission.map((t=>t?o.toJSON(t):void 0)):e.commission=[],e},fromPartial(t){const e={commission:[]};return e.commission=t.commission?.map((t=>o.fromPartial(t)))||[],e},fromProtoMsg:o=>ValidatorAccumulatedCommission.decode(o.value),toProto:o=>ValidatorAccumulatedCommission.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission",value:ValidatorAccumulatedCommission.encode(o).finish()})};export const ValidatorOutstandingRewards={typeUrl:"/cosmos.distribution.v1beta1.ValidatorOutstandingRewards",encode(t,e=r.create()){for(const r of t.rewards)o.encode(r,e.uint32(10).fork()).ldelim();return e},decode(t,r){const i=t instanceof e?t:new e(t);let n=void 0===r?i.len:i.pos+r;const a={rewards:[]};for(;i.pos<n;){const t=i.uint32();if(t>>>3==1)a.rewards.push(o.decode(i,i.uint32()));else i.skipType(7&t)}return a},fromJSON:t=>({rewards:Array.isArray(t?.rewards)?t.rewards.map((t=>o.fromJSON(t))):[]}),toJSON(t){const e={};return t.rewards?e.rewards=t.rewards.map((t=>t?o.toJSON(t):void 0)):e.rewards=[],e},fromPartial(t){const e={rewards:[]};return e.rewards=t.rewards?.map((t=>o.fromPartial(t)))||[],e},fromProtoMsg:o=>ValidatorOutstandingRewards.decode(o.value),toProto:o=>ValidatorOutstandingRewards.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.distribution.v1beta1.ValidatorOutstandingRewards",value:ValidatorOutstandingRewards.encode(o).finish()})};function s(){return{validatorPeriod:BigInt(0),fraction:""}}export const ValidatorSlashEvent={typeUrl:"/cosmos.distribution.v1beta1.ValidatorSlashEvent",encode:(o,t=r.create())=>(o.validatorPeriod!==BigInt(0)&&t.uint32(8).uint64(o.validatorPeriod),""!==o.fraction&&t.uint32(18).string(i.fromUserInput(o.fraction,18).atomics),t),decode(o,t){const r=o instanceof e?o:new e(o);let n=void 0===t?r.len:r.pos+t;const a=s();for(;r.pos<n;){const o=r.uint32();switch(o>>>3){case 1:a.validatorPeriod=r.uint64();break;case 2:a.fraction=i.fromAtomics(r.string(),18).toString();break;default:r.skipType(7&o)}}return a},fromJSON:o=>({validatorPeriod:n(o.validatorPeriod)?BigInt(o.validatorPeriod.toString()):BigInt(0),fraction:n(o.fraction)?String(o.fraction):""}),toJSON(o){const t={};return void 0!==o.validatorPeriod&&(t.validatorPeriod=(o.validatorPeriod||BigInt(0)).toString()),void 0!==o.fraction&&(t.fraction=o.fraction),t},fromPartial(o){const t=s();return t.validatorPeriod=void 0!==o.validatorPeriod&&null!==o.validatorPeriod?BigInt(o.validatorPeriod.toString()):BigInt(0),t.fraction=o.fraction??"",t},fromProtoMsg:o=>ValidatorSlashEvent.decode(o.value),toProto:o=>ValidatorSlashEvent.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.distribution.v1beta1.ValidatorSlashEvent",value:ValidatorSlashEvent.encode(o).finish()})};export const ValidatorSlashEvents={typeUrl:"/cosmos.distribution.v1beta1.ValidatorSlashEvents",encode(o,t=r.create()){for(const e of o.validatorSlashEvents)ValidatorSlashEvent.encode(e,t.uint32(10).fork()).ldelim();return t},decode(o,t){const r=o instanceof e?o:new e(o);let i=void 0===t?r.len:r.pos+t;const n={validatorSlashEvents:[]};for(;r.pos<i;){const o=r.uint32();if(o>>>3==1)n.validatorSlashEvents.push(ValidatorSlashEvent.decode(r,r.uint32()));else r.skipType(7&o)}return n},fromJSON:o=>({validatorSlashEvents:Array.isArray(o?.validatorSlashEvents)?o.validatorSlashEvents.map((o=>ValidatorSlashEvent.fromJSON(o))):[]}),toJSON(o){const t={};return o.validatorSlashEvents?t.validatorSlashEvents=o.validatorSlashEvents.map((o=>o?ValidatorSlashEvent.toJSON(o):void 0)):t.validatorSlashEvents=[],t},fromPartial(o){const t={validatorSlashEvents:[]};return t.validatorSlashEvents=o.validatorSlashEvents?.map((o=>ValidatorSlashEvent.fromPartial(o)))||[],t},fromProtoMsg:o=>ValidatorSlashEvents.decode(o.value),toProto:o=>ValidatorSlashEvents.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.distribution.v1beta1.ValidatorSlashEvents",value:ValidatorSlashEvents.encode(o).finish()})};export const FeePool={typeUrl:"/cosmos.distribution.v1beta1.FeePool",encode(t,e=r.create()){for(const r of t.communityPool)o.encode(r,e.uint32(10).fork()).ldelim();return e},decode(t,r){const i=t instanceof e?t:new e(t);let n=void 0===r?i.len:i.pos+r;const a={communityPool:[]};for(;i.pos<n;){const t=i.uint32();if(t>>>3==1)a.communityPool.push(o.decode(i,i.uint32()));else i.skipType(7&t)}return a},fromJSON:t=>({communityPool:Array.isArray(t?.communityPool)?t.communityPool.map((t=>o.fromJSON(t))):[]}),toJSON(t){const e={};return t.communityPool?e.communityPool=t.communityPool.map((t=>t?o.toJSON(t):void 0)):e.communityPool=[],e},fromPartial(t){const e={communityPool:[]};return e.communityPool=t.communityPool?.map((t=>o.fromPartial(t)))||[],e},fromProtoMsg:o=>FeePool.decode(o.value),toProto:o=>FeePool.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.distribution.v1beta1.FeePool",value:FeePool.encode(o).finish()})};export const CommunityPoolSpendProposal={typeUrl:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",encode(o,e=r.create()){""!==o.title&&e.uint32(10).string(o.title),""!==o.description&&e.uint32(18).string(o.description),""!==o.recipient&&e.uint32(26).string(o.recipient);for(const r of o.amount)t.encode(r,e.uint32(34).fork()).ldelim();return e},decode(o,r){const i=o instanceof e?o:new e(o);let n=void 0===r?i.len:i.pos+r;const a={$typeUrl:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",title:"",description:"",recipient:"",amount:[]};for(;i.pos<n;){const o=i.uint32();switch(o>>>3){case 1:a.title=i.string();break;case 2:a.description=i.string();break;case 3:a.recipient=i.string();break;case 4:a.amount.push(t.decode(i,i.uint32()));break;default:i.skipType(7&o)}}return a},fromJSON:o=>({title:n(o.title)?String(o.title):"",description:n(o.description)?String(o.description):"",recipient:n(o.recipient)?String(o.recipient):"",amount:Array.isArray(o?.amount)?o.amount.map((o=>t.fromJSON(o))):[]}),toJSON(o){const e={};return void 0!==o.title&&(e.title=o.title),void 0!==o.description&&(e.description=o.description),void 0!==o.recipient&&(e.recipient=o.recipient),o.amount?e.amount=o.amount.map((o=>o?t.toJSON(o):void 0)):e.amount=[],e},fromPartial(o){const e={$typeUrl:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",title:"",description:"",recipient:"",amount:[]};return e.title=o.title??"",e.description=o.description??"",e.recipient=o.recipient??"",e.amount=o.amount?.map((o=>t.fromPartial(o)))||[],e},fromProtoMsg:o=>CommunityPoolSpendProposal.decode(o.value),toProto:o=>CommunityPoolSpendProposal.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",value:CommunityPoolSpendProposal.encode(o).finish()})};function d(){return{previousPeriod:BigInt(0),stake:"",height:BigInt(0)}}export const DelegatorStartingInfo={typeUrl:"/cosmos.distribution.v1beta1.DelegatorStartingInfo",encode:(o,t=r.create())=>(o.previousPeriod!==BigInt(0)&&t.uint32(8).uint64(o.previousPeriod),""!==o.stake&&t.uint32(18).string(i.fromUserInput(o.stake,18).atomics),o.height!==BigInt(0)&&t.uint32(24).uint64(o.height),t),decode(o,t){const r=o instanceof e?o:new e(o);let n=void 0===t?r.len:r.pos+t;const a=d();for(;r.pos<n;){const o=r.uint32();switch(o>>>3){case 1:a.previousPeriod=r.uint64();break;case 2:a.stake=i.fromAtomics(r.string(),18).toString();break;case 3:a.height=r.uint64();break;default:r.skipType(7&o)}}return a},fromJSON:o=>({previousPeriod:n(o.previousPeriod)?BigInt(o.previousPeriod.toString()):BigInt(0),stake:n(o.stake)?String(o.stake):"",height:n(o.height)?BigInt(o.height.toString()):BigInt(0)}),toJSON(o){const t={};return void 0!==o.previousPeriod&&(t.previousPeriod=(o.previousPeriod||BigInt(0)).toString()),void 0!==o.stake&&(t.stake=o.stake),void 0!==o.height&&(t.height=(o.height||BigInt(0)).toString()),t},fromPartial(o){const t=d();return t.previousPeriod=void 0!==o.previousPeriod&&null!==o.previousPeriod?BigInt(o.previousPeriod.toString()):BigInt(0),t.stake=o.stake??"",t.height=void 0!==o.height&&null!==o.height?BigInt(o.height.toString()):BigInt(0),t},fromProtoMsg:o=>DelegatorStartingInfo.decode(o.value),toProto:o=>DelegatorStartingInfo.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.distribution.v1beta1.DelegatorStartingInfo",value:DelegatorStartingInfo.encode(o).finish()})};export const DelegationDelegatorReward={typeUrl:"/cosmos.distribution.v1beta1.DelegationDelegatorReward",encode(t,e=r.create()){""!==t.validatorAddress&&e.uint32(10).string(t.validatorAddress);for(const r of t.reward)o.encode(r,e.uint32(18).fork()).ldelim();return e},decode(t,r){const i=t instanceof e?t:new e(t);let n=void 0===r?i.len:i.pos+r;const a={validatorAddress:"",reward:[]};for(;i.pos<n;){const t=i.uint32();switch(t>>>3){case 1:a.validatorAddress=i.string();break;case 2:a.reward.push(o.decode(i,i.uint32()));break;default:i.skipType(7&t)}}return a},fromJSON:t=>({validatorAddress:n(t.validatorAddress)?String(t.validatorAddress):"",reward:Array.isArray(t?.reward)?t.reward.map((t=>o.fromJSON(t))):[]}),toJSON(t){const e={};return void 0!==t.validatorAddress&&(e.validatorAddress=t.validatorAddress),t.reward?e.reward=t.reward.map((t=>t?o.toJSON(t):void 0)):e.reward=[],e},fromPartial(t){const e={validatorAddress:"",reward:[]};return e.validatorAddress=t.validatorAddress??"",e.reward=t.reward?.map((t=>o.fromPartial(t)))||[],e},fromProtoMsg:o=>DelegationDelegatorReward.decode(o.value),toProto:o=>DelegationDelegatorReward.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.distribution.v1beta1.DelegationDelegatorReward",value:DelegationDelegatorReward.encode(o).finish()})};export const CommunityPoolSpendProposalWithDeposit={typeUrl:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit",encode:(o,t=r.create())=>(""!==o.title&&t.uint32(10).string(o.title),""!==o.description&&t.uint32(18).string(o.description),""!==o.recipient&&t.uint32(26).string(o.recipient),""!==o.amount&&t.uint32(34).string(o.amount),""!==o.deposit&&t.uint32(42).string(o.deposit),t),decode(o,t){const r=o instanceof e?o:new e(o);let i=void 0===t?r.len:r.pos+t;const n={$typeUrl:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit",title:"",description:"",recipient:"",amount:"",deposit:""};for(;r.pos<i;){const o=r.uint32();switch(o>>>3){case 1:n.title=r.string();break;case 2:n.description=r.string();break;case 3:n.recipient=r.string();break;case 4:n.amount=r.string();break;case 5:n.deposit=r.string();break;default:r.skipType(7&o)}}return n},fromJSON:o=>({title:n(o.title)?String(o.title):"",description:n(o.description)?String(o.description):"",recipient:n(o.recipient)?String(o.recipient):"",amount:n(o.amount)?String(o.amount):"",deposit:n(o.deposit)?String(o.deposit):""}),toJSON(o){const t={};return void 0!==o.title&&(t.title=o.title),void 0!==o.description&&(t.description=o.description),void 0!==o.recipient&&(t.recipient=o.recipient),void 0!==o.amount&&(t.amount=o.amount),void 0!==o.deposit&&(t.deposit=o.deposit),t},fromPartial(o){const t={$typeUrl:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit",title:"",description:"",recipient:"",amount:"",deposit:""};return t.title=o.title??"",t.description=o.description??"",t.recipient=o.recipient??"",t.amount=o.amount??"",t.deposit=o.deposit??"",t},fromProtoMsg:o=>CommunityPoolSpendProposalWithDeposit.decode(o.value),toProto:o=>CommunityPoolSpendProposalWithDeposit.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit",value:CommunityPoolSpendProposalWithDeposit.encode(o).finish()})};
|