@xpla/xplajs 1.7.0-beta.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/CHANGELOG.md +11 -0
- package/README.md +32 -0
- package/package.json +32 -0
- package/src/amino/amino.d.ts +1 -0
- package/src/amino/amino.js +2 -0
- package/src/amino/amino.ts +1 -0
- package/src/binary.d.ts +130 -0
- package/src/binary.js +370 -0
- package/src/binary.ts +534 -0
- package/src/cosmos/app/runtime/v1alpha1/module.ts +423 -0
- package/src/cosmos/app/runtime/v2/module.ts +589 -0
- package/src/cosmos/app/v1alpha1/config.ts +422 -0
- package/src/cosmos/app/v1alpha1/module.ts +461 -0
- package/src/cosmos/app/v1alpha1/query.rpc.Query.ts +30 -0
- package/src/cosmos/app/v1alpha1/query.rpc.func.ts +9 -0
- package/src/cosmos/app/v1alpha1/query.ts +177 -0
- package/src/cosmos/auth/module/v1/module.ts +253 -0
- package/src/cosmos/auth/v1beta1/accounts.ts +226 -0
- package/src/cosmos/auth/v1beta1/auth.d.ts +177 -0
- package/src/cosmos/auth/v1beta1/auth.js +445 -0
- package/src/cosmos/auth/v1beta1/auth.ts +550 -0
- package/src/cosmos/auth/v1beta1/genesis.ts +119 -0
- package/src/cosmos/auth/v1beta1/query.d.ts +810 -0
- package/src/cosmos/auth/v1beta1/query.js +1561 -0
- package/src/cosmos/auth/v1beta1/query.lcd.ts +94 -0
- package/src/cosmos/auth/v1beta1/query.rpc.Query.ts +179 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.d.ts +12 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.js +85 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.ts +72 -0
- package/src/cosmos/auth/v1beta1/query.ts +2034 -0
- package/src/cosmos/auth/v1beta1/tx.amino.ts +8 -0
- package/src/cosmos/auth/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +9 -0
- package/src/cosmos/auth/v1beta1/tx.rpc.msg.ts +31 -0
- package/src/cosmos/auth/v1beta1/tx.ts +219 -0
- package/src/cosmos/authz/module/v1/module.ts +80 -0
- package/src/cosmos/authz/v1beta1/authz.d.ts +177 -0
- package/src/cosmos/authz/v1beta1/authz.js +371 -0
- package/src/cosmos/authz/v1beta1/authz.ts +481 -0
- package/src/cosmos/authz/v1beta1/event.ts +259 -0
- package/src/cosmos/authz/v1beta1/genesis.ts +100 -0
- package/src/cosmos/authz/v1beta1/query.lcd.ts +59 -0
- package/src/cosmos/authz/v1beta1/query.rpc.Query.ts +64 -0
- package/src/cosmos/authz/v1beta1/query.rpc.func.ts +23 -0
- package/src/cosmos/authz/v1beta1/query.ts +707 -0
- package/src/cosmos/authz/v1beta1/tx.amino.ts +18 -0
- package/src/cosmos/authz/v1beta1/tx.d.ts +240 -0
- package/src/cosmos/authz/v1beta1/tx.js +516 -0
- package/src/cosmos/authz/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.d.ts +5 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.js +27 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +21 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.msg.ts +57 -0
- package/src/cosmos/authz/v1beta1/tx.ts +647 -0
- package/src/cosmos/autocli/v1/options.ts +1145 -0
- package/src/cosmos/autocli/v1/query.rpc.Query.ts +31 -0
- package/src/cosmos/autocli/v1/query.rpc.func.ts +9 -0
- package/src/cosmos/autocli/v1/query.ts +288 -0
- package/src/cosmos/bank/module/v1/module.ts +153 -0
- package/src/cosmos/bank/v1beta1/authz.ts +138 -0
- package/src/cosmos/bank/v1beta1/bank.d.ts +371 -0
- package/src/cosmos/bank/v1beta1/bank.js +726 -0
- package/src/cosmos/bank/v1beta1/bank.ts +974 -0
- package/src/cosmos/bank/v1beta1/genesis.ts +307 -0
- package/src/cosmos/bank/v1beta1/query.d.ts +1159 -0
- package/src/cosmos/bank/v1beta1/query.js +2317 -0
- package/src/cosmos/bank/v1beta1/query.lcd.ts +194 -0
- package/src/cosmos/bank/v1beta1/query.rpc.Query.ts +258 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.d.ts +15 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.js +109 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.ts +93 -0
- package/src/cosmos/bank/v1beta1/query.ts +3027 -0
- package/src/cosmos/bank/v1beta1/tx.amino.ts +23 -0
- package/src/cosmos/bank/v1beta1/tx.d.ts +342 -0
- package/src/cosmos/bank/v1beta1/tx.js +666 -0
- package/src/cosmos/bank/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.d.ts +6 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.js +34 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +27 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.msg.ts +67 -0
- package/src/cosmos/bank/v1beta1/tx.ts +861 -0
- package/src/cosmos/base/abci/v1beta1/abci.d.ts +599 -0
- package/src/cosmos/base/abci/v1beta1/abci.js +1293 -0
- package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
- package/src/cosmos/base/grpc/v2/service.rpc.Service.ts +41 -0
- package/src/cosmos/base/grpc/v2/service.rpc.func.ts +16 -0
- package/src/cosmos/base/grpc/v2/service.ts +473 -0
- package/src/cosmos/base/node/v1beta1/query.lcd.ts +22 -0
- package/src/cosmos/base/node/v1beta1/query.rpc.Service.ts +41 -0
- package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +16 -0
- package/src/cosmos/base/node/v1beta1/query.ts +454 -0
- package/src/cosmos/base/query/v1beta1/pagination.d.ts +176 -0
- package/src/cosmos/base/query/v1beta1/pagination.js +222 -0
- package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +16 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.ts +382 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +44 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.ts +2727 -0
- package/src/cosmos/base/tendermint/v1beta1/query.lcd.ts +81 -0
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +108 -0
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +51 -0
- package/src/cosmos/base/tendermint/v1beta1/query.ts +2302 -0
- package/src/cosmos/base/tendermint/v1beta1/types.ts +455 -0
- package/src/cosmos/base/v1beta1/coin.d.ts +166 -0
- package/src/cosmos/base/v1beta1/coin.js +341 -0
- package/src/cosmos/base/v1beta1/coin.ts +439 -0
- package/src/cosmos/circuit/module/v1/module.ts +99 -0
- package/src/cosmos/circuit/v1/query.lcd.ts +36 -0
- package/src/cosmos/circuit/v1/query.rpc.Query.ts +54 -0
- package/src/cosmos/circuit/v1/query.rpc.func.ts +23 -0
- package/src/cosmos/circuit/v1/query.ts +574 -0
- package/src/cosmos/circuit/v1/tx.amino.ts +18 -0
- package/src/cosmos/circuit/v1/tx.registry.ts +3 -0
- package/src/cosmos/circuit/v1/tx.rpc.func.ts +21 -0
- package/src/cosmos/circuit/v1/tx.rpc.msg.ts +47 -0
- package/src/cosmos/circuit/v1/tx.ts +676 -0
- package/src/cosmos/circuit/v1/types.ts +413 -0
- package/src/cosmos/consensus/module/v1/module.ts +99 -0
- package/src/cosmos/consensus/v1/query.lcd.ts +17 -0
- package/src/cosmos/consensus/v1/query.rpc.Query.ts +30 -0
- package/src/cosmos/consensus/v1/query.rpc.func.ts +9 -0
- package/src/cosmos/consensus/v1/query.ts +185 -0
- package/src/cosmos/consensus/v1/tx.amino.ts +8 -0
- package/src/cosmos/consensus/v1/tx.registry.ts +3 -0
- package/src/cosmos/consensus/v1/tx.rpc.func.ts +9 -0
- package/src/cosmos/consensus/v1/tx.rpc.msg.ts +31 -0
- package/src/cosmos/consensus/v1/tx.ts +255 -0
- package/src/cosmos/crisis/module/v1/module.ts +115 -0
- package/src/cosmos/crisis/v1beta1/genesis.ts +106 -0
- package/src/cosmos/crisis/v1beta1/tx.amino.ts +13 -0
- package/src/cosmos/crisis/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +15 -0
- package/src/cosmos/crisis/v1beta1/tx.rpc.msg.ts +39 -0
- package/src/cosmos/crisis/v1beta1/tx.ts +416 -0
- package/src/cosmos/crypto/ed25519/keys.d.ts +84 -0
- package/src/cosmos/crypto/ed25519/keys.js +162 -0
- package/src/cosmos/crypto/ed25519/keys.ts +209 -0
- package/src/cosmos/crypto/hd/v1/hd.ts +169 -0
- package/src/cosmos/crypto/keyring/v1/record.ts +529 -0
- package/src/cosmos/crypto/multisig/keys.ts +122 -0
- package/src/cosmos/crypto/multisig/v1beta1/multisig.d.ts +86 -0
- package/src/cosmos/crypto/multisig/v1beta1/multisig.js +177 -0
- package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +225 -0
- package/src/cosmos/crypto/secp256k1/keys.d.ts +78 -0
- package/src/cosmos/crypto/secp256k1/keys.js +162 -0
- package/src/cosmos/crypto/secp256k1/keys.ts +203 -0
- package/src/cosmos/crypto/secp256r1/keys.d.ts +76 -0
- package/src/cosmos/crypto/secp256r1/keys.js +162 -0
- package/src/cosmos/crypto/secp256r1/keys.ts +201 -0
- package/src/cosmos/distribution/module/v1/module.ts +113 -0
- package/src/cosmos/distribution/v1beta1/distribution.d.ts +541 -0
- package/src/cosmos/distribution/v1beta1/distribution.js +1158 -0
- package/src/cosmos/distribution/v1beta1/distribution.ts +1494 -0
- package/src/cosmos/distribution/v1beta1/genesis.ts +1129 -0
- package/src/cosmos/distribution/v1beta1/query.lcd.ts +76 -0
- package/src/cosmos/distribution/v1beta1/query.rpc.Query.ts +133 -0
- package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +72 -0
- package/src/cosmos/distribution/v1beta1/query.ts +2126 -0
- package/src/cosmos/distribution/v1beta1/tx.amino.ts +38 -0
- package/src/cosmos/distribution/v1beta1/tx.d.ts +578 -0
- package/src/cosmos/distribution/v1beta1/tx.js +1145 -0
- package/src/cosmos/distribution/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.d.ts +9 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.js +55 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +45 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.msg.ts +115 -0
- package/src/cosmos/distribution/v1beta1/tx.ts +1478 -0
- package/src/cosmos/evidence/module/v1/module.ts +80 -0
- package/src/cosmos/evidence/v1beta1/evidence.ts +154 -0
- package/src/cosmos/evidence/v1beta1/genesis.ts +102 -0
- package/src/cosmos/evidence/v1beta1/query.lcd.ts +37 -0
- package/src/cosmos/evidence/v1beta1/query.rpc.Query.ts +43 -0
- package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +16 -0
- package/src/cosmos/evidence/v1beta1/query.ts +451 -0
- package/src/cosmos/evidence/v1beta1/tx.amino.ts +8 -0
- package/src/cosmos/evidence/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +9 -0
- package/src/cosmos/evidence/v1beta1/tx.rpc.msg.ts +27 -0
- package/src/cosmos/evidence/v1beta1/tx.ts +221 -0
- package/src/cosmos/feegrant/module/v1/module.ts +80 -0
- package/src/cosmos/feegrant/v1beta1/feegrant.ts +573 -0
- package/src/cosmos/feegrant/v1beta1/genesis.ts +100 -0
- package/src/cosmos/feegrant/v1beta1/query.lcd.ts +42 -0
- package/src/cosmos/feegrant/v1beta1/query.rpc.Query.ts +58 -0
- package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +23 -0
- package/src/cosmos/feegrant/v1beta1/query.ts +677 -0
- package/src/cosmos/feegrant/v1beta1/tx.amino.ts +18 -0
- package/src/cosmos/feegrant/v1beta1/tx.d.ts +232 -0
- package/src/cosmos/feegrant/v1beta1/tx.js +471 -0
- package/src/cosmos/feegrant/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.d.ts +5 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.js +27 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +21 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +53 -0
- package/src/cosmos/feegrant/v1beta1/tx.ts +597 -0
- package/src/cosmos/genutil/module/v1/module.ts +80 -0
- package/src/cosmos/genutil/v1beta1/genesis.ts +101 -0
- package/src/cosmos/gov/module/v1/module.ts +121 -0
- package/src/cosmos/gov/v1/genesis.ts +280 -0
- package/src/cosmos/gov/v1/gov.d.ts +696 -0
- package/src/cosmos/gov/v1/gov.js +1363 -0
- package/src/cosmos/gov/v1/gov.ts +1843 -0
- package/src/cosmos/gov/v1/query.lcd.ts +85 -0
- package/src/cosmos/gov/v1/query.rpc.Query.ts +118 -0
- package/src/cosmos/gov/v1/query.rpc.func.ts +65 -0
- package/src/cosmos/gov/v1/query.ts +1970 -0
- package/src/cosmos/gov/v1/tx.amino.ts +38 -0
- package/src/cosmos/gov/v1/tx.d.ts +624 -0
- package/src/cosmos/gov/v1/tx.js +1277 -0
- package/src/cosmos/gov/v1/tx.registry.ts +3 -0
- package/src/cosmos/gov/v1/tx.rpc.func.d.ts +9 -0
- package/src/cosmos/gov/v1/tx.rpc.func.js +55 -0
- package/src/cosmos/gov/v1/tx.rpc.func.ts +45 -0
- package/src/cosmos/gov/v1/tx.rpc.msg.ts +89 -0
- package/src/cosmos/gov/v1/tx.ts +1657 -0
- package/src/cosmos/gov/v1beta1/genesis.ts +202 -0
- package/src/cosmos/gov/v1beta1/gov.d.ts +522 -0
- package/src/cosmos/gov/v1beta1/gov.js +1114 -0
- package/src/cosmos/gov/v1beta1/gov.ts +1425 -0
- package/src/cosmos/gov/v1beta1/query.d.ts +606 -0
- package/src/cosmos/gov/v1beta1/query.js +1409 -0
- package/src/cosmos/gov/v1beta1/query.lcd.ts +80 -0
- package/src/cosmos/gov/v1beta1/query.rpc.Query.ts +107 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.d.ts +10 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.js +69 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.ts +58 -0
- package/src/cosmos/gov/v1beta1/query.ts +1749 -0
- package/src/cosmos/gov/v1beta1/tx.amino.ts +23 -0
- package/src/cosmos/gov/v1beta1/tx.d.ts +325 -0
- package/src/cosmos/gov/v1beta1/tx.js +699 -0
- package/src/cosmos/gov/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.d.ts +6 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.js +34 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +27 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.msg.ts +53 -0
- package/src/cosmos/gov/v1beta1/tx.ts +881 -0
- package/src/cosmos/group/module/v1/module.ts +128 -0
- package/src/cosmos/group/v1/events.ts +1044 -0
- package/src/cosmos/group/v1/genesis.ts +240 -0
- package/src/cosmos/group/v1/query.lcd.ts +145 -0
- package/src/cosmos/group/v1/query.rpc.Query.ts +191 -0
- package/src/cosmos/group/v1/query.rpc.func.ts +100 -0
- package/src/cosmos/group/v1/query.ts +3015 -0
- package/src/cosmos/group/v1/tx.amino.ts +73 -0
- package/src/cosmos/group/v1/tx.d.ts +1140 -0
- package/src/cosmos/group/v1/tx.js +2567 -0
- package/src/cosmos/group/v1/tx.registry.ts +3 -0
- package/src/cosmos/group/v1/tx.rpc.func.d.ts +16 -0
- package/src/cosmos/group/v1/tx.rpc.func.js +104 -0
- package/src/cosmos/group/v1/tx.rpc.func.ts +87 -0
- package/src/cosmos/group/v1/tx.rpc.msg.ts +127 -0
- package/src/cosmos/group/v1/tx.ts +3207 -0
- package/src/cosmos/group/v1/types.d.ts +799 -0
- package/src/cosmos/group/v1/types.js +1542 -0
- package/src/cosmos/group/v1/types.ts +2081 -0
- package/src/cosmos/ics23/v1/proofs.d.ts +730 -0
- package/src/cosmos/ics23/v1/proofs.js +1605 -0
- package/src/cosmos/ics23/v1/proofs.ts +2060 -0
- package/src/cosmos/mint/module/v1/module.ts +113 -0
- package/src/cosmos/mint/v1beta1/genesis.ts +116 -0
- package/src/cosmos/mint/v1beta1/mint.ts +291 -0
- package/src/cosmos/mint/v1beta1/query.lcd.ts +27 -0
- package/src/cosmos/mint/v1beta1/query.rpc.Query.ts +52 -0
- package/src/cosmos/mint/v1beta1/query.rpc.func.ts +23 -0
- package/src/cosmos/mint/v1beta1/query.ts +541 -0
- package/src/cosmos/mint/v1beta1/tx.amino.ts +8 -0
- package/src/cosmos/mint/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +9 -0
- package/src/cosmos/mint/v1beta1/tx.rpc.msg.ts +31 -0
- package/src/cosmos/mint/v1beta1/tx.ts +219 -0
- package/src/cosmos/msg/textual/v1/textual.ts +1 -0
- package/src/cosmos/msg/v1/msg.d.ts +1 -0
- package/src/cosmos/msg/v1/msg.js +2 -0
- package/src/cosmos/msg/v1/msg.ts +1 -0
- package/src/cosmos/nft/module/v1/module.ts +80 -0
- package/src/cosmos/nft/v1beta1/event.ts +403 -0
- package/src/cosmos/nft/v1beta1/genesis.ts +234 -0
- package/src/cosmos/nft/v1beta1/nft.ts +356 -0
- package/src/cosmos/nft/v1beta1/query.lcd.ts +69 -0
- package/src/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
- package/src/cosmos/nft/v1beta1/query.rpc.func.ts +51 -0
- package/src/cosmos/nft/v1beta1/query.ts +1465 -0
- package/src/cosmos/nft/v1beta1/tx.amino.ts +8 -0
- package/src/cosmos/nft/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +9 -0
- package/src/cosmos/nft/v1beta1/tx.rpc.msg.ts +23 -0
- package/src/cosmos/nft/v1beta1/tx.ts +224 -0
- package/src/cosmos/orm/module/v1alpha1/module.ts +88 -0
- package/src/cosmos/orm/query/v1alpha1/query.rpc.Query.ts +41 -0
- package/src/cosmos/orm/query/v1alpha1/query.rpc.func.ts +16 -0
- package/src/cosmos/orm/query/v1alpha1/query.ts +993 -0
- package/src/cosmos/orm/v1/orm.ts +589 -0
- package/src/cosmos/orm/v1alpha1/schema.ts +325 -0
- package/src/cosmos/params/module/v1/module.ts +80 -0
- package/src/cosmos/params/v1beta1/params.ts +255 -0
- package/src/cosmos/params/v1beta1/query.lcd.ts +34 -0
- package/src/cosmos/params/v1beta1/query.rpc.Query.ts +51 -0
- package/src/cosmos/params/v1beta1/query.rpc.func.ts +16 -0
- package/src/cosmos/params/v1beta1/query.ts +525 -0
- package/src/cosmos/query/v1/query.d.ts +1 -0
- package/src/cosmos/query/v1/query.js +2 -0
- package/src/cosmos/query/v1/query.ts +1 -0
- package/src/cosmos/reflection/v1/reflection.rpc.func.ts +9 -0
- package/src/cosmos/reflection/v1/reflection.ts +179 -0
- package/src/cosmos/rpc.query.ts +29 -0
- package/src/cosmos/rpc.tx.ts +34 -0
- package/src/cosmos/slashing/module/v1/module.ts +99 -0
- package/src/cosmos/slashing/v1beta1/genesis.ts +492 -0
- package/src/cosmos/slashing/v1beta1/query.lcd.ts +36 -0
- package/src/cosmos/slashing/v1beta1/query.rpc.Query.ts +54 -0
- package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +23 -0
- package/src/cosmos/slashing/v1beta1/query.ts +598 -0
- package/src/cosmos/slashing/v1beta1/slashing.ts +357 -0
- package/src/cosmos/slashing/v1beta1/tx.amino.ts +13 -0
- package/src/cosmos/slashing/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +15 -0
- package/src/cosmos/slashing/v1beta1/tx.rpc.msg.ts +45 -0
- package/src/cosmos/slashing/v1beta1/tx.ts +390 -0
- package/src/cosmos/staking/module/v1/module.ts +157 -0
- package/src/cosmos/staking/v1beta1/authz.ts +323 -0
- package/src/cosmos/staking/v1beta1/genesis.ts +346 -0
- package/src/cosmos/staking/v1beta1/query.d.ts +1124 -0
- package/src/cosmos/staking/v1beta1/query.js +2414 -0
- package/src/cosmos/staking/v1beta1/query.lcd.ts +159 -0
- package/src/cosmos/staking/v1beta1/query.rpc.Query.ts +241 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.d.ts +16 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.js +117 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.ts +100 -0
- package/src/cosmos/staking/v1beta1/query.ts +3073 -0
- package/src/cosmos/staking/v1beta1/staking.d.ts +1024 -0
- package/src/cosmos/staking/v1beta1/staking.js +2371 -0
- package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
- package/src/cosmos/staking/v1beta1/tx.amino.ts +38 -0
- package/src/cosmos/staking/v1beta1/tx.d.ts +590 -0
- package/src/cosmos/staking/v1beta1/tx.js +1290 -0
- package/src/cosmos/staking/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.d.ts +9 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.js +55 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +45 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.msg.ts +97 -0
- package/src/cosmos/staking/v1beta1/tx.ts +1638 -0
- package/src/cosmos/store/internal/kv/v1beta1/kv.ts +207 -0
- package/src/cosmos/store/snapshots/v1/snapshot.ts +863 -0
- package/src/cosmos/store/snapshots/v2/snapshot.ts +823 -0
- package/src/cosmos/store/streaming/abci/grpc.ts +393 -0
- package/src/cosmos/store/v1beta1/commit_info.ts +362 -0
- package/src/cosmos/store/v1beta1/listening.ts +286 -0
- package/src/cosmos/streaming/v1/grpc.ts +985 -0
- package/src/cosmos/tx/config/v1/config.ts +127 -0
- package/src/cosmos/tx/signing/v1beta1/signing.d.ts +270 -0
- package/src/cosmos/tx/signing/v1beta1/signing.js +570 -0
- package/src/cosmos/tx/signing/v1beta1/signing.ts +688 -0
- package/src/cosmos/tx/v1beta1/service.d.ts +916 -0
- package/src/cosmos/tx/v1beta1/service.js +1729 -0
- package/src/cosmos/tx/v1beta1/service.lcd.ts +57 -0
- package/src/cosmos/tx/v1beta1/service.rpc.Service.ts +148 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.d.ts +11 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.js +77 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.ts +65 -0
- package/src/cosmos/tx/v1beta1/service.ts +2294 -0
- package/src/cosmos/tx/v1beta1/tx.d.ts +856 -0
- package/src/cosmos/tx/v1beta1/tx.js +1398 -0
- package/src/cosmos/tx/v1beta1/tx.ts +2029 -0
- package/src/cosmos/upgrade/module/v1/module.ts +99 -0
- package/src/cosmos/upgrade/v1beta1/query.lcd.ts +52 -0
- package/src/cosmos/upgrade/v1beta1/query.rpc.Query.ts +98 -0
- package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +37 -0
- package/src/cosmos/upgrade/v1beta1/query.ts +1016 -0
- package/src/cosmos/upgrade/v1beta1/tx.amino.ts +13 -0
- package/src/cosmos/upgrade/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +15 -0
- package/src/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +45 -0
- package/src/cosmos/upgrade/v1beta1/tx.ts +398 -0
- package/src/cosmos/upgrade/v1beta1/upgrade.d.ts +245 -0
- package/src/cosmos/upgrade/v1beta1/upgrade.js +416 -0
- package/src/cosmos/upgrade/v1beta1/upgrade.ts +591 -0
- package/src/cosmos/validate/module/v1/module.ts +80 -0
- package/src/cosmos/vesting/module/v1/module.ts +80 -0
- package/src/cosmos/vesting/v1beta1/tx.amino.ts +18 -0
- package/src/cosmos/vesting/v1beta1/tx.d.ts +256 -0
- package/src/cosmos/vesting/v1beta1/tx.js +553 -0
- package/src/cosmos/vesting/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.d.ts +5 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.js +27 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +21 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.msg.ts +59 -0
- package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
- package/src/cosmos/vesting/v1beta1/vesting.d.ts +256 -0
- package/src/cosmos/vesting/v1beta1/vesting.js +586 -0
- package/src/cosmos/vesting/v1beta1/vesting.ts +735 -0
- package/src/cosmos_proto/cosmos.d.ts +153 -0
- package/src/cosmos_proto/cosmos.js +234 -0
- package/src/cosmos_proto/cosmos.ts +341 -0
- package/src/cosmwasm/wasm/v1/authz.ts +1231 -0
- package/src/cosmwasm/wasm/v1/genesis.ts +532 -0
- package/src/cosmwasm/wasm/v1/ibc.ts +355 -0
- package/src/cosmwasm/wasm/v1/proposal_legacy.ts +2432 -0
- package/src/cosmwasm/wasm/v1/query.lcd.ts +108 -0
- package/src/cosmwasm/wasm/v1/query.rpc.Query.ts +144 -0
- package/src/cosmwasm/wasm/v1/query.rpc.func.ts +79 -0
- package/src/cosmwasm/wasm/v1/query.ts +2560 -0
- package/src/cosmwasm/wasm/v1/tx.amino.ts +88 -0
- package/src/cosmwasm/wasm/v1/tx.registry.ts +3 -0
- package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +105 -0
- package/src/cosmwasm/wasm/v1/tx.rpc.msg.ts +225 -0
- package/src/cosmwasm/wasm/v1/tx.ts +4191 -0
- package/src/cosmwasm/wasm/v1/types.ts +1120 -0
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +80 -0
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.js +146 -0
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +193 -0
- package/src/ethermint/evm/v1/events.d.ts +162 -0
- package/src/ethermint/evm/v1/events.js +384 -0
- package/src/ethermint/evm/v1/events.ts +485 -0
- package/src/ethermint/evm/v1/evm.d.ts +530 -0
- package/src/ethermint/evm/v1/evm.js +1184 -0
- package/src/ethermint/evm/v1/evm.ts +1590 -0
- package/src/ethermint/evm/v1/genesis.d.ts +87 -0
- package/src/ethermint/evm/v1/genesis.js +188 -0
- package/src/ethermint/evm/v1/genesis.ts +240 -0
- package/src/ethermint/evm/v1/query.d.ts +913 -0
- package/src/ethermint/evm/v1/query.js +1973 -0
- package/src/ethermint/evm/v1/query.lcd.ts +157 -0
- package/src/ethermint/evm/v1/query.rpc.Query.ts +164 -0
- package/src/ethermint/evm/v1/query.rpc.func.d.ts +15 -0
- package/src/ethermint/evm/v1/query.rpc.func.js +102 -0
- package/src/ethermint/evm/v1/query.rpc.func.ts +87 -0
- package/src/ethermint/evm/v1/query.ts +2535 -0
- package/src/ethermint/evm/v1/tx.amino.ts +13 -0
- package/src/ethermint/evm/v1/tx.d.ts +452 -0
- package/src/ethermint/evm/v1/tx.js +1011 -0
- package/src/ethermint/evm/v1/tx.registry.ts +3 -0
- package/src/ethermint/evm/v1/tx.rpc.func.d.ts +4 -0
- package/src/ethermint/evm/v1/tx.rpc.func.js +20 -0
- package/src/ethermint/evm/v1/tx.rpc.func.ts +15 -0
- package/src/ethermint/evm/v1/tx.rpc.msg.ts +35 -0
- package/src/ethermint/evm/v1/tx.ts +1333 -0
- package/src/ethermint/feemarket/v1/events.d.ts +70 -0
- package/src/ethermint/feemarket/v1/events.js +157 -0
- package/src/ethermint/feemarket/v1/events.ts +195 -0
- package/src/ethermint/feemarket/v1/feemarket.d.ts +78 -0
- package/src/ethermint/feemarket/v1/feemarket.js +155 -0
- package/src/ethermint/feemarket/v1/feemarket.ts +213 -0
- package/src/ethermint/feemarket/v1/genesis.d.ts +45 -0
- package/src/ethermint/feemarket/v1/genesis.js +88 -0
- package/src/ethermint/feemarket/v1/genesis.ts +114 -0
- package/src/ethermint/feemarket/v1/query.d.ts +195 -0
- package/src/ethermint/feemarket/v1/query.js +387 -0
- package/src/ethermint/feemarket/v1/query.lcd.ts +27 -0
- package/src/ethermint/feemarket/v1/query.rpc.Query.ts +52 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.d.ts +5 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.js +29 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.ts +23 -0
- package/src/ethermint/feemarket/v1/query.ts +487 -0
- package/src/ethermint/feemarket/v1/tx.amino.ts +8 -0
- package/src/ethermint/feemarket/v1/tx.d.ts +81 -0
- package/src/ethermint/feemarket/v1/tx.js +153 -0
- package/src/ethermint/feemarket/v1/tx.registry.ts +3 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.d.ts +3 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.js +13 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.ts +9 -0
- package/src/ethermint/feemarket/v1/tx.rpc.msg.ts +27 -0
- package/src/ethermint/feemarket/v1/tx.ts +197 -0
- package/src/ethermint/types/v1/account.d.ts +45 -0
- package/src/ethermint/types/v1/account.js +88 -0
- package/src/ethermint/types/v1/account.ts +114 -0
- package/src/ethermint/types/v1/dynamic_fee.d.ts +34 -0
- package/src/ethermint/types/v1/dynamic_fee.js +75 -0
- package/src/ethermint/types/v1/dynamic_fee.ts +91 -0
- package/src/ethermint/types/v1/indexer.d.ts +76 -0
- package/src/ethermint/types/v1/indexer.js +147 -0
- package/src/ethermint/types/v1/indexer.ts +205 -0
- package/src/ethermint/types/v1/web3.d.ts +66 -0
- package/src/ethermint/types/v1/web3.js +100 -0
- package/src/ethermint/types/v1/web3.ts +147 -0
- package/src/extern.d.ts +10 -0
- package/src/extern.js +36 -0
- package/src/extern.ts +38 -0
- package/src/gogoproto/gogo.d.ts +1 -0
- package/src/gogoproto/gogo.js +2 -0
- package/src/gogoproto/gogo.ts +1 -0
- package/src/google/api/annotations.d.ts +1 -0
- package/src/google/api/annotations.js +2 -0
- package/src/google/api/annotations.ts +1 -0
- package/src/google/api/http.d.ts +764 -0
- package/src/google/api/http.js +353 -0
- package/src/google/api/http.ts +1069 -0
- package/src/google/protobuf/any.d.ts +268 -0
- package/src/google/protobuf/any.js +81 -0
- package/src/google/protobuf/any.ts +331 -0
- package/src/google/protobuf/descriptor.d.ts +2919 -0
- package/src/google/protobuf/descriptor.js +5100 -0
- package/src/google/protobuf/descriptor.ts +7177 -0
- package/src/google/protobuf/duration.d.ts +162 -0
- package/src/google/protobuf/duration.js +81 -0
- package/src/google/protobuf/duration.ts +225 -0
- package/src/google/protobuf/timestamp.d.ts +222 -0
- package/src/google/protobuf/timestamp.js +78 -0
- package/src/google/protobuf/timestamp.ts +281 -0
- package/src/helper-func-types.d.ts +117 -0
- package/src/helper-func-types.js +55 -0
- package/src/helper-func-types.ts +191 -0
- package/src/helpers.d.ts +82 -0
- package/src/helpers.js +143 -0
- package/src/helpers.ts +259 -0
- package/src/ibc/applications/fee/v1/ack.ts +131 -0
- package/src/ibc/applications/fee/v1/fee.ts +481 -0
- package/src/ibc/applications/fee/v1/genesis.ts +661 -0
- package/src/ibc/applications/fee/v1/metadata.ts +121 -0
- package/src/ibc/applications/fee/v1/query.lcd.ts +117 -0
- package/src/ibc/applications/fee/v1/query.rpc.Query.ts +129 -0
- package/src/ibc/applications/fee/v1/query.rpc.func.ts +72 -0
- package/src/ibc/applications/fee/v1/query.ts +2134 -0
- package/src/ibc/applications/fee/v1/tx.amino.ts +23 -0
- package/src/ibc/applications/fee/v1/tx.registry.ts +3 -0
- package/src/ibc/applications/fee/v1/tx.rpc.func.ts +27 -0
- package/src/ibc/applications/fee/v1/tx.rpc.msg.ts +83 -0
- package/src/ibc/applications/fee/v1/tx.ts +889 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +105 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +22 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +41 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +16 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +18 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +3 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +21 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +39 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +685 -0
- package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +661 -0
- package/src/ibc/applications/interchain_accounts/host/v1/host.ts +253 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +17 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +30 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +9 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.ts +177 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +13 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +3 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +15 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +31 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +429 -0
- package/src/ibc/applications/interchain_accounts/v1/account.ts +112 -0
- package/src/ibc/applications/interchain_accounts/v1/metadata.ts +191 -0
- package/src/ibc/applications/interchain_accounts/v1/packet.ts +259 -0
- package/src/ibc/applications/transfer/v1/authz.ts +280 -0
- package/src/ibc/applications/transfer/v1/genesis.ts +153 -0
- package/src/ibc/applications/transfer/v1/query.lcd.ts +69 -0
- package/src/ibc/applications/transfer/v1/query.rpc.Query.ts +87 -0
- package/src/ibc/applications/transfer/v1/query.rpc.func.ts +44 -0
- package/src/ibc/applications/transfer/v1/query.ts +1205 -0
- package/src/ibc/applications/transfer/v1/transfer.d.ts +112 -0
- package/src/ibc/applications/transfer/v1/transfer.js +185 -0
- package/src/ibc/applications/transfer/v1/transfer.ts +261 -0
- package/src/ibc/applications/transfer/v1/tx.amino.ts +13 -0
- package/src/ibc/applications/transfer/v1/tx.d.ts +202 -0
- package/src/ibc/applications/transfer/v1/tx.js +402 -0
- package/src/ibc/applications/transfer/v1/tx.registry.ts +3 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.d.ts +4 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.js +20 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +15 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.msg.ts +31 -0
- package/src/ibc/applications/transfer/v1/tx.ts +532 -0
- package/src/ibc/applications/transfer/v2/packet.ts +171 -0
- package/src/ibc/core/channel/v1/channel.d.ts +547 -0
- package/src/ibc/core/channel/v1/channel.js +1167 -0
- package/src/ibc/core/channel/v1/channel.ts +1510 -0
- package/src/ibc/core/channel/v1/genesis.ts +354 -0
- package/src/ibc/core/channel/v1/query.lcd.ts +135 -0
- package/src/ibc/core/channel/v1/query.rpc.Query.ts +240 -0
- package/src/ibc/core/channel/v1/query.rpc.func.ts +121 -0
- package/src/ibc/core/channel/v1/query.ts +4354 -0
- package/src/ibc/core/channel/v1/tx.amino.ts +98 -0
- package/src/ibc/core/channel/v1/tx.d.ts +1490 -0
- package/src/ibc/core/channel/v1/tx.js +4027 -0
- package/src/ibc/core/channel/v1/tx.registry.ts +3 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.d.ts +21 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.js +139 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.ts +117 -0
- package/src/ibc/core/channel/v1/tx.rpc.msg.ts +171 -0
- package/src/ibc/core/channel/v1/tx.ts +4866 -0
- package/src/ibc/core/channel/v1/upgrade.d.ts +139 -0
- package/src/ibc/core/channel/v1/upgrade.js +304 -0
- package/src/ibc/core/channel/v1/upgrade.ts +388 -0
- package/src/ibc/core/client/v1/client.d.ts +372 -0
- package/src/ibc/core/client/v1/client.js +675 -0
- package/src/ibc/core/client/v1/client.ts +927 -0
- package/src/ibc/core/client/v1/genesis.ts +426 -0
- package/src/ibc/core/client/v1/query.lcd.ts +86 -0
- package/src/ibc/core/client/v1/query.rpc.Query.ts +139 -0
- package/src/ibc/core/client/v1/query.rpc.func.ts +72 -0
- package/src/ibc/core/client/v1/query.ts +2280 -0
- package/src/ibc/core/client/v1/tx.amino.ts +38 -0
- package/src/ibc/core/client/v1/tx.d.ts +587 -0
- package/src/ibc/core/client/v1/tx.js +1202 -0
- package/src/ibc/core/client/v1/tx.registry.ts +3 -0
- package/src/ibc/core/client/v1/tx.rpc.func.d.ts +9 -0
- package/src/ibc/core/client/v1/tx.rpc.func.js +55 -0
- package/src/ibc/core/client/v1/tx.rpc.func.ts +45 -0
- package/src/ibc/core/client/v1/tx.rpc.msg.ts +71 -0
- package/src/ibc/core/client/v1/tx.ts +1543 -0
- package/src/ibc/core/commitment/v1/commitment.d.ts +165 -0
- package/src/ibc/core/commitment/v1/commitment.js +325 -0
- package/src/ibc/core/commitment/v1/commitment.ts +418 -0
- package/src/ibc/core/connection/v1/connection.d.ts +376 -0
- package/src/ibc/core/connection/v1/connection.js +781 -0
- package/src/ibc/core/connection/v1/connection.ts +1010 -0
- package/src/ibc/core/connection/v1/genesis.ts +146 -0
- package/src/ibc/core/connection/v1/query.lcd.ts +54 -0
- package/src/ibc/core/connection/v1/query.rpc.Query.ts +99 -0
- package/src/ibc/core/connection/v1/query.rpc.func.ts +44 -0
- package/src/ibc/core/connection/v1/query.ts +1408 -0
- package/src/ibc/core/connection/v1/tx.amino.ts +28 -0
- package/src/ibc/core/connection/v1/tx.d.ts +457 -0
- package/src/ibc/core/connection/v1/tx.js +1087 -0
- package/src/ibc/core/connection/v1/tx.registry.ts +3 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.d.ts +7 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.js +41 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.ts +33 -0
- package/src/ibc/core/connection/v1/tx.rpc.msg.ts +63 -0
- package/src/ibc/core/connection/v1/tx.ts +1365 -0
- package/src/ibc/core/types/v1/genesis.ts +137 -0
- package/src/ibc/lightclients/localhost/v2/localhost.ts +100 -0
- package/src/ibc/lightclients/solomachine/v2/solomachine.ts +2103 -0
- package/src/ibc/lightclients/solomachine/v3/solomachine.ts +1070 -0
- package/src/ibc/lightclients/tendermint/v1/tendermint.ts +838 -0
- package/src/ibc/lightclients/wasm/v1/genesis.ts +197 -0
- package/src/ibc/lightclients/wasm/v1/query.lcd.ts +31 -0
- package/src/ibc/lightclients/wasm/v1/query.rpc.Query.ts +43 -0
- package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +16 -0
- package/src/ibc/lightclients/wasm/v1/query.ts +404 -0
- package/src/ibc/lightclients/wasm/v1/tx.amino.ts +18 -0
- package/src/ibc/lightclients/wasm/v1/tx.registry.ts +3 -0
- package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +21 -0
- package/src/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +39 -0
- package/src/ibc/lightclients/wasm/v1/tx.ts +621 -0
- package/src/ibc/lightclients/wasm/v1/wasm.ts +438 -0
- package/src/registry.d.ts +33 -0
- package/src/registry.js +158 -0
- package/src/registry.ts +218 -0
- package/src/tendermint/abci/types.d.ts +1843 -0
- package/src/tendermint/abci/types.js +5233 -0
- package/src/tendermint/abci/types.ts +6283 -0
- package/src/tendermint/crypto/keys.d.ts +34 -0
- package/src/tendermint/crypto/keys.js +88 -0
- package/src/tendermint/crypto/keys.ts +103 -0
- package/src/tendermint/crypto/proof.d.ts +174 -0
- package/src/tendermint/crypto/proof.js +458 -0
- package/src/tendermint/crypto/proof.ts +555 -0
- package/src/tendermint/p2p/types.ts +507 -0
- package/src/tendermint/types/block.d.ts +38 -0
- package/src/tendermint/types/block.js +113 -0
- package/src/tendermint/types/block.ts +131 -0
- package/src/tendermint/types/evidence.d.ts +138 -0
- package/src/tendermint/types/evidence.js +403 -0
- package/src/tendermint/types/evidence.ts +476 -0
- package/src/tendermint/types/params.d.ts +323 -0
- package/src/tendermint/types/params.js +595 -0
- package/src/tendermint/types/params.ts +814 -0
- package/src/tendermint/types/types.d.ts +640 -0
- package/src/tendermint/types/types.js +1754 -0
- package/src/tendermint/types/types.ts +2157 -0
- package/src/tendermint/types/validator.d.ts +113 -0
- package/src/tendermint/types/validator.js +342 -0
- package/src/tendermint/types/validator.ts +389 -0
- package/src/tendermint/version/types.d.ts +82 -0
- package/src/tendermint/version/types.js +169 -0
- package/src/tendermint/version/types.ts +219 -0
- package/src/types.d.ts +124 -0
- package/src/types.js +7 -0
- package/src/types.ts +155 -0
- package/src/utf8.d.ts +27 -0
- package/src/utf8.js +140 -0
- package/src/utf8.ts +148 -0
- package/src/varint.d.ts +105 -0
- package/src/varint.js +425 -0
- package/src/varint.ts +488 -0
- package/src/xpla/lcd.ts +180 -0
- package/src/xpla/reward/v1beta1/genesis.d.ts +35 -0
- package/src/xpla/reward/v1beta1/genesis.js +76 -0
- package/src/xpla/reward/v1beta1/genesis.ts +92 -0
- package/src/xpla/reward/v1beta1/query.d.ts +136 -0
- package/src/xpla/reward/v1beta1/query.js +264 -0
- package/src/xpla/reward/v1beta1/query.lcd.ts +22 -0
- package/src/xpla/reward/v1beta1/query.rpc.Query.ts +41 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.d.ts +4 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.js +21 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.ts +16 -0
- package/src/xpla/reward/v1beta1/query.ts +333 -0
- package/src/xpla/reward/v1beta1/reward.d.ts +42 -0
- package/src/xpla/reward/v1beta1/reward.js +131 -0
- package/src/xpla/reward/v1beta1/reward.ts +153 -0
- package/src/xpla/reward/v1beta1/tx.amino.ts +13 -0
- package/src/xpla/reward/v1beta1/tx.d.ts +158 -0
- package/src/xpla/reward/v1beta1/tx.js +304 -0
- package/src/xpla/reward/v1beta1/tx.registry.ts +3 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.d.ts +4 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.js +20 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.ts +15 -0
- package/src/xpla/reward/v1beta1/tx.rpc.msg.ts +41 -0
- package/src/xpla/reward/v1beta1/tx.ts +391 -0
- package/src/xpla/rpc.query.ts +129 -0
- package/src/xpla/rpc.tx.ts +6 -0
- package/src/xpla/volunteer/v1beta1/genesis.d.ts +33 -0
- package/src/xpla/volunteer/v1beta1/genesis.js +79 -0
- package/src/xpla/volunteer/v1beta1/genesis.ts +92 -0
- package/src/xpla/volunteer/v1beta1/proposal.d.ts +183 -0
- package/src/xpla/volunteer/v1beta1/proposal.js +537 -0
- package/src/xpla/volunteer/v1beta1/proposal.ts +649 -0
- package/src/xpla/volunteer/v1beta1/query.d.ts +60 -0
- package/src/xpla/volunteer/v1beta1/query.js +135 -0
- package/src/xpla/volunteer/v1beta1/query.lcd.ts +17 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.Query.ts +30 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.d.ts +3 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.js +13 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +9 -0
- package/src/xpla/volunteer/v1beta1/query.ts +160 -0
- package/src/xpla/volunteer/v1beta1/tx.amino.ts +13 -0
- package/src/xpla/volunteer/v1beta1/tx.d.ts +168 -0
- package/src/xpla/volunteer/v1beta1/tx.js +351 -0
- package/src/xpla/volunteer/v1beta1/tx.registry.ts +3 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.d.ts +4 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.js +20 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +15 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.msg.ts +35 -0
- package/src/xpla/volunteer/v1beta1/tx.ts +448 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.d.ts +38 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.js +87 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +107 -0
- package/tsconfig.esm.json +10 -0
- package/tsconfig.json +10 -0
|
@@ -0,0 +1,1129 @@
|
|
|
1
|
+
import { DecCoin, DecCoinAmino } from "../../base/v1beta1/coin";
|
|
2
|
+
import { ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionAmino, ValidatorHistoricalRewards, ValidatorHistoricalRewardsAmino, ValidatorCurrentRewards, ValidatorCurrentRewardsAmino, DelegatorStartingInfo, DelegatorStartingInfoAmino, ValidatorSlashEvent, ValidatorSlashEventAmino, Params, ParamsAmino, FeePool, FeePoolAmino } from "./distribution";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
|
+
/**
|
|
7
|
+
* DelegatorWithdrawInfo is the address for where distributions rewards are
|
|
8
|
+
* withdrawn to by default this struct is only used at genesis to feed in
|
|
9
|
+
* default withdraw addresses.
|
|
10
|
+
*/
|
|
11
|
+
export interface DelegatorWithdrawInfo {
|
|
12
|
+
/** delegator_address is the address of the delegator. */
|
|
13
|
+
delegatorAddress: string;
|
|
14
|
+
/** withdraw_address is the address to withdraw the delegation rewards to. */
|
|
15
|
+
withdrawAddress: string;
|
|
16
|
+
}
|
|
17
|
+
export interface DelegatorWithdrawInfoProtoMsg {
|
|
18
|
+
typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo";
|
|
19
|
+
value: Uint8Array;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* DelegatorWithdrawInfo is the address for where distributions rewards are
|
|
23
|
+
* withdrawn to by default this struct is only used at genesis to feed in
|
|
24
|
+
* default withdraw addresses.
|
|
25
|
+
*/
|
|
26
|
+
export interface DelegatorWithdrawInfoAmino {
|
|
27
|
+
/** delegator_address is the address of the delegator. */
|
|
28
|
+
delegator_address: string;
|
|
29
|
+
/** withdraw_address is the address to withdraw the delegation rewards to. */
|
|
30
|
+
withdraw_address: string;
|
|
31
|
+
}
|
|
32
|
+
export interface DelegatorWithdrawInfoAminoMsg {
|
|
33
|
+
type: "cosmos-sdk/DelegatorWithdrawInfo";
|
|
34
|
+
value: DelegatorWithdrawInfoAmino;
|
|
35
|
+
}
|
|
36
|
+
/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */
|
|
37
|
+
export interface ValidatorOutstandingRewardsRecord {
|
|
38
|
+
/** validator_address is the address of the validator. */
|
|
39
|
+
validatorAddress: string;
|
|
40
|
+
/** outstanding_rewards represents the outstanding rewards of a validator. */
|
|
41
|
+
outstandingRewards: DecCoin[];
|
|
42
|
+
}
|
|
43
|
+
export interface ValidatorOutstandingRewardsRecordProtoMsg {
|
|
44
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord";
|
|
45
|
+
value: Uint8Array;
|
|
46
|
+
}
|
|
47
|
+
/** ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */
|
|
48
|
+
export interface ValidatorOutstandingRewardsRecordAmino {
|
|
49
|
+
/** validator_address is the address of the validator. */
|
|
50
|
+
validator_address: string;
|
|
51
|
+
/** outstanding_rewards represents the outstanding rewards of a validator. */
|
|
52
|
+
outstanding_rewards: DecCoinAmino[];
|
|
53
|
+
}
|
|
54
|
+
export interface ValidatorOutstandingRewardsRecordAminoMsg {
|
|
55
|
+
type: "cosmos-sdk/ValidatorOutstandingRewardsRecord";
|
|
56
|
+
value: ValidatorOutstandingRewardsRecordAmino;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* ValidatorAccumulatedCommissionRecord is used for import / export via genesis
|
|
60
|
+
* json.
|
|
61
|
+
*/
|
|
62
|
+
export interface ValidatorAccumulatedCommissionRecord {
|
|
63
|
+
/** validator_address is the address of the validator. */
|
|
64
|
+
validatorAddress: string;
|
|
65
|
+
/** accumulated is the accumulated commission of a validator. */
|
|
66
|
+
accumulated: ValidatorAccumulatedCommission;
|
|
67
|
+
}
|
|
68
|
+
export interface ValidatorAccumulatedCommissionRecordProtoMsg {
|
|
69
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord";
|
|
70
|
+
value: Uint8Array;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* ValidatorAccumulatedCommissionRecord is used for import / export via genesis
|
|
74
|
+
* json.
|
|
75
|
+
*/
|
|
76
|
+
export interface ValidatorAccumulatedCommissionRecordAmino {
|
|
77
|
+
/** validator_address is the address of the validator. */
|
|
78
|
+
validator_address: string;
|
|
79
|
+
/** accumulated is the accumulated commission of a validator. */
|
|
80
|
+
accumulated: ValidatorAccumulatedCommissionAmino;
|
|
81
|
+
}
|
|
82
|
+
export interface ValidatorAccumulatedCommissionRecordAminoMsg {
|
|
83
|
+
type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord";
|
|
84
|
+
value: ValidatorAccumulatedCommissionRecordAmino;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* ValidatorHistoricalRewardsRecord is used for import / export via genesis
|
|
88
|
+
* json.
|
|
89
|
+
*/
|
|
90
|
+
export interface ValidatorHistoricalRewardsRecord {
|
|
91
|
+
/** validator_address is the address of the validator. */
|
|
92
|
+
validatorAddress: string;
|
|
93
|
+
/** period defines the period the historical rewards apply to. */
|
|
94
|
+
period: bigint;
|
|
95
|
+
/** rewards defines the historical rewards of a validator. */
|
|
96
|
+
rewards: ValidatorHistoricalRewards;
|
|
97
|
+
}
|
|
98
|
+
export interface ValidatorHistoricalRewardsRecordProtoMsg {
|
|
99
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord";
|
|
100
|
+
value: Uint8Array;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* ValidatorHistoricalRewardsRecord is used for import / export via genesis
|
|
104
|
+
* json.
|
|
105
|
+
*/
|
|
106
|
+
export interface ValidatorHistoricalRewardsRecordAmino {
|
|
107
|
+
/** validator_address is the address of the validator. */
|
|
108
|
+
validator_address: string;
|
|
109
|
+
/** period defines the period the historical rewards apply to. */
|
|
110
|
+
period: string;
|
|
111
|
+
/** rewards defines the historical rewards of a validator. */
|
|
112
|
+
rewards: ValidatorHistoricalRewardsAmino;
|
|
113
|
+
}
|
|
114
|
+
export interface ValidatorHistoricalRewardsRecordAminoMsg {
|
|
115
|
+
type: "cosmos-sdk/ValidatorHistoricalRewardsRecord";
|
|
116
|
+
value: ValidatorHistoricalRewardsRecordAmino;
|
|
117
|
+
}
|
|
118
|
+
/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */
|
|
119
|
+
export interface ValidatorCurrentRewardsRecord {
|
|
120
|
+
/** validator_address is the address of the validator. */
|
|
121
|
+
validatorAddress: string;
|
|
122
|
+
/** rewards defines the current rewards of a validator. */
|
|
123
|
+
rewards: ValidatorCurrentRewards;
|
|
124
|
+
}
|
|
125
|
+
export interface ValidatorCurrentRewardsRecordProtoMsg {
|
|
126
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord";
|
|
127
|
+
value: Uint8Array;
|
|
128
|
+
}
|
|
129
|
+
/** ValidatorCurrentRewardsRecord is used for import / export via genesis json. */
|
|
130
|
+
export interface ValidatorCurrentRewardsRecordAmino {
|
|
131
|
+
/** validator_address is the address of the validator. */
|
|
132
|
+
validator_address: string;
|
|
133
|
+
/** rewards defines the current rewards of a validator. */
|
|
134
|
+
rewards: ValidatorCurrentRewardsAmino;
|
|
135
|
+
}
|
|
136
|
+
export interface ValidatorCurrentRewardsRecordAminoMsg {
|
|
137
|
+
type: "cosmos-sdk/ValidatorCurrentRewardsRecord";
|
|
138
|
+
value: ValidatorCurrentRewardsRecordAmino;
|
|
139
|
+
}
|
|
140
|
+
/** DelegatorStartingInfoRecord used for import / export via genesis json. */
|
|
141
|
+
export interface DelegatorStartingInfoRecord {
|
|
142
|
+
/** delegator_address is the address of the delegator. */
|
|
143
|
+
delegatorAddress: string;
|
|
144
|
+
/** validator_address is the address of the validator. */
|
|
145
|
+
validatorAddress: string;
|
|
146
|
+
/** starting_info defines the starting info of a delegator. */
|
|
147
|
+
startingInfo: DelegatorStartingInfo;
|
|
148
|
+
}
|
|
149
|
+
export interface DelegatorStartingInfoRecordProtoMsg {
|
|
150
|
+
typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord";
|
|
151
|
+
value: Uint8Array;
|
|
152
|
+
}
|
|
153
|
+
/** DelegatorStartingInfoRecord used for import / export via genesis json. */
|
|
154
|
+
export interface DelegatorStartingInfoRecordAmino {
|
|
155
|
+
/** delegator_address is the address of the delegator. */
|
|
156
|
+
delegator_address: string;
|
|
157
|
+
/** validator_address is the address of the validator. */
|
|
158
|
+
validator_address: string;
|
|
159
|
+
/** starting_info defines the starting info of a delegator. */
|
|
160
|
+
starting_info: DelegatorStartingInfoAmino;
|
|
161
|
+
}
|
|
162
|
+
export interface DelegatorStartingInfoRecordAminoMsg {
|
|
163
|
+
type: "cosmos-sdk/DelegatorStartingInfoRecord";
|
|
164
|
+
value: DelegatorStartingInfoRecordAmino;
|
|
165
|
+
}
|
|
166
|
+
/** ValidatorSlashEventRecord is used for import / export via genesis json. */
|
|
167
|
+
export interface ValidatorSlashEventRecord {
|
|
168
|
+
/** validator_address is the address of the validator. */
|
|
169
|
+
validatorAddress: string;
|
|
170
|
+
/** height defines the block height at which the slash event occurred. */
|
|
171
|
+
height: bigint;
|
|
172
|
+
/** period is the period of the slash event. */
|
|
173
|
+
period: bigint;
|
|
174
|
+
/** validator_slash_event describes the slash event. */
|
|
175
|
+
validatorSlashEvent: ValidatorSlashEvent;
|
|
176
|
+
}
|
|
177
|
+
export interface ValidatorSlashEventRecordProtoMsg {
|
|
178
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord";
|
|
179
|
+
value: Uint8Array;
|
|
180
|
+
}
|
|
181
|
+
/** ValidatorSlashEventRecord is used for import / export via genesis json. */
|
|
182
|
+
export interface ValidatorSlashEventRecordAmino {
|
|
183
|
+
/** validator_address is the address of the validator. */
|
|
184
|
+
validator_address: string;
|
|
185
|
+
/** height defines the block height at which the slash event occurred. */
|
|
186
|
+
height: string;
|
|
187
|
+
/** period is the period of the slash event. */
|
|
188
|
+
period: string;
|
|
189
|
+
/** validator_slash_event describes the slash event. */
|
|
190
|
+
validator_slash_event: ValidatorSlashEventAmino;
|
|
191
|
+
}
|
|
192
|
+
export interface ValidatorSlashEventRecordAminoMsg {
|
|
193
|
+
type: "cosmos-sdk/ValidatorSlashEventRecord";
|
|
194
|
+
value: ValidatorSlashEventRecordAmino;
|
|
195
|
+
}
|
|
196
|
+
/** GenesisState defines the distribution module's genesis state. */
|
|
197
|
+
export interface GenesisState {
|
|
198
|
+
/** params defines all the parameters of the module. */
|
|
199
|
+
params: Params;
|
|
200
|
+
/** fee_pool defines the fee pool at genesis. */
|
|
201
|
+
feePool: FeePool;
|
|
202
|
+
/** fee_pool defines the delegator withdraw infos at genesis. */
|
|
203
|
+
delegatorWithdrawInfos: DelegatorWithdrawInfo[];
|
|
204
|
+
/** fee_pool defines the previous proposer at genesis. */
|
|
205
|
+
previousProposer: string;
|
|
206
|
+
/** fee_pool defines the outstanding rewards of all validators at genesis. */
|
|
207
|
+
outstandingRewards: ValidatorOutstandingRewardsRecord[];
|
|
208
|
+
/** fee_pool defines the accumulated commissions of all validators at genesis. */
|
|
209
|
+
validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[];
|
|
210
|
+
/** fee_pool defines the historical rewards of all validators at genesis. */
|
|
211
|
+
validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[];
|
|
212
|
+
/** fee_pool defines the current rewards of all validators at genesis. */
|
|
213
|
+
validatorCurrentRewards: ValidatorCurrentRewardsRecord[];
|
|
214
|
+
/** fee_pool defines the delegator starting infos at genesis. */
|
|
215
|
+
delegatorStartingInfos: DelegatorStartingInfoRecord[];
|
|
216
|
+
/** fee_pool defines the validator slash events at genesis. */
|
|
217
|
+
validatorSlashEvents: ValidatorSlashEventRecord[];
|
|
218
|
+
}
|
|
219
|
+
export interface GenesisStateProtoMsg {
|
|
220
|
+
typeUrl: "/cosmos.distribution.v1beta1.GenesisState";
|
|
221
|
+
value: Uint8Array;
|
|
222
|
+
}
|
|
223
|
+
/** GenesisState defines the distribution module's genesis state. */
|
|
224
|
+
export interface GenesisStateAmino {
|
|
225
|
+
/** params defines all the parameters of the module. */
|
|
226
|
+
params: ParamsAmino;
|
|
227
|
+
/** fee_pool defines the fee pool at genesis. */
|
|
228
|
+
fee_pool: FeePoolAmino;
|
|
229
|
+
/** fee_pool defines the delegator withdraw infos at genesis. */
|
|
230
|
+
delegator_withdraw_infos: DelegatorWithdrawInfoAmino[];
|
|
231
|
+
/** fee_pool defines the previous proposer at genesis. */
|
|
232
|
+
previous_proposer: string;
|
|
233
|
+
/** fee_pool defines the outstanding rewards of all validators at genesis. */
|
|
234
|
+
outstanding_rewards: ValidatorOutstandingRewardsRecordAmino[];
|
|
235
|
+
/** fee_pool defines the accumulated commissions of all validators at genesis. */
|
|
236
|
+
validator_accumulated_commissions: ValidatorAccumulatedCommissionRecordAmino[];
|
|
237
|
+
/** fee_pool defines the historical rewards of all validators at genesis. */
|
|
238
|
+
validator_historical_rewards: ValidatorHistoricalRewardsRecordAmino[];
|
|
239
|
+
/** fee_pool defines the current rewards of all validators at genesis. */
|
|
240
|
+
validator_current_rewards: ValidatorCurrentRewardsRecordAmino[];
|
|
241
|
+
/** fee_pool defines the delegator starting infos at genesis. */
|
|
242
|
+
delegator_starting_infos: DelegatorStartingInfoRecordAmino[];
|
|
243
|
+
/** fee_pool defines the validator slash events at genesis. */
|
|
244
|
+
validator_slash_events: ValidatorSlashEventRecordAmino[];
|
|
245
|
+
}
|
|
246
|
+
export interface GenesisStateAminoMsg {
|
|
247
|
+
type: "cosmos-sdk/GenesisState";
|
|
248
|
+
value: GenesisStateAmino;
|
|
249
|
+
}
|
|
250
|
+
function createBaseDelegatorWithdrawInfo(): DelegatorWithdrawInfo {
|
|
251
|
+
return {
|
|
252
|
+
delegatorAddress: "",
|
|
253
|
+
withdrawAddress: ""
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
export const DelegatorWithdrawInfo = {
|
|
257
|
+
typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo",
|
|
258
|
+
aminoType: "cosmos-sdk/DelegatorWithdrawInfo",
|
|
259
|
+
is(o: any): o is DelegatorWithdrawInfo {
|
|
260
|
+
return o && (o.$typeUrl === DelegatorWithdrawInfo.typeUrl || typeof o.delegatorAddress === "string" && typeof o.withdrawAddress === "string");
|
|
261
|
+
},
|
|
262
|
+
isAmino(o: any): o is DelegatorWithdrawInfoAmino {
|
|
263
|
+
return o && (o.$typeUrl === DelegatorWithdrawInfo.typeUrl || typeof o.delegator_address === "string" && typeof o.withdraw_address === "string");
|
|
264
|
+
},
|
|
265
|
+
encode(message: DelegatorWithdrawInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
266
|
+
if (message.delegatorAddress !== "") {
|
|
267
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
268
|
+
}
|
|
269
|
+
if (message.withdrawAddress !== "") {
|
|
270
|
+
writer.uint32(18).string(message.withdrawAddress);
|
|
271
|
+
}
|
|
272
|
+
return writer;
|
|
273
|
+
},
|
|
274
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DelegatorWithdrawInfo {
|
|
275
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
276
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
277
|
+
const message = createBaseDelegatorWithdrawInfo();
|
|
278
|
+
while (reader.pos < end) {
|
|
279
|
+
const tag = reader.uint32();
|
|
280
|
+
switch (tag >>> 3) {
|
|
281
|
+
case 1:
|
|
282
|
+
message.delegatorAddress = reader.string();
|
|
283
|
+
break;
|
|
284
|
+
case 2:
|
|
285
|
+
message.withdrawAddress = reader.string();
|
|
286
|
+
break;
|
|
287
|
+
default:
|
|
288
|
+
reader.skipType(tag & 7);
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
return message;
|
|
293
|
+
},
|
|
294
|
+
fromPartial(object: DeepPartial<DelegatorWithdrawInfo>): DelegatorWithdrawInfo {
|
|
295
|
+
const message = createBaseDelegatorWithdrawInfo();
|
|
296
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
297
|
+
message.withdrawAddress = object.withdrawAddress ?? "";
|
|
298
|
+
return message;
|
|
299
|
+
},
|
|
300
|
+
fromAmino(object: DelegatorWithdrawInfoAmino): DelegatorWithdrawInfo {
|
|
301
|
+
const message = createBaseDelegatorWithdrawInfo();
|
|
302
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
303
|
+
message.delegatorAddress = object.delegator_address;
|
|
304
|
+
}
|
|
305
|
+
if (object.withdraw_address !== undefined && object.withdraw_address !== null) {
|
|
306
|
+
message.withdrawAddress = object.withdraw_address;
|
|
307
|
+
}
|
|
308
|
+
return message;
|
|
309
|
+
},
|
|
310
|
+
toAmino(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAmino {
|
|
311
|
+
const obj: any = {};
|
|
312
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
313
|
+
obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress;
|
|
314
|
+
return obj;
|
|
315
|
+
},
|
|
316
|
+
fromAminoMsg(object: DelegatorWithdrawInfoAminoMsg): DelegatorWithdrawInfo {
|
|
317
|
+
return DelegatorWithdrawInfo.fromAmino(object.value);
|
|
318
|
+
},
|
|
319
|
+
toAminoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAminoMsg {
|
|
320
|
+
return {
|
|
321
|
+
type: "cosmos-sdk/DelegatorWithdrawInfo",
|
|
322
|
+
value: DelegatorWithdrawInfo.toAmino(message)
|
|
323
|
+
};
|
|
324
|
+
},
|
|
325
|
+
fromProtoMsg(message: DelegatorWithdrawInfoProtoMsg): DelegatorWithdrawInfo {
|
|
326
|
+
return DelegatorWithdrawInfo.decode(message.value);
|
|
327
|
+
},
|
|
328
|
+
toProto(message: DelegatorWithdrawInfo): Uint8Array {
|
|
329
|
+
return DelegatorWithdrawInfo.encode(message).finish();
|
|
330
|
+
},
|
|
331
|
+
toProtoMsg(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoProtoMsg {
|
|
332
|
+
return {
|
|
333
|
+
typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo",
|
|
334
|
+
value: DelegatorWithdrawInfo.encode(message).finish()
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
GlobalDecoderRegistry.register(DelegatorWithdrawInfo.typeUrl, DelegatorWithdrawInfo);
|
|
339
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(DelegatorWithdrawInfo.aminoType, DelegatorWithdrawInfo.typeUrl);
|
|
340
|
+
function createBaseValidatorOutstandingRewardsRecord(): ValidatorOutstandingRewardsRecord {
|
|
341
|
+
return {
|
|
342
|
+
validatorAddress: "",
|
|
343
|
+
outstandingRewards: []
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
export const ValidatorOutstandingRewardsRecord = {
|
|
347
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord",
|
|
348
|
+
aminoType: "cosmos-sdk/ValidatorOutstandingRewardsRecord",
|
|
349
|
+
is(o: any): o is ValidatorOutstandingRewardsRecord {
|
|
350
|
+
return o && (o.$typeUrl === ValidatorOutstandingRewardsRecord.typeUrl || typeof o.validatorAddress === "string" && Array.isArray(o.outstandingRewards) && (!o.outstandingRewards.length || DecCoin.is(o.outstandingRewards[0])));
|
|
351
|
+
},
|
|
352
|
+
isAmino(o: any): o is ValidatorOutstandingRewardsRecordAmino {
|
|
353
|
+
return o && (o.$typeUrl === ValidatorOutstandingRewardsRecord.typeUrl || typeof o.validator_address === "string" && Array.isArray(o.outstanding_rewards) && (!o.outstanding_rewards.length || DecCoin.isAmino(o.outstanding_rewards[0])));
|
|
354
|
+
},
|
|
355
|
+
encode(message: ValidatorOutstandingRewardsRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
356
|
+
if (message.validatorAddress !== "") {
|
|
357
|
+
writer.uint32(10).string(message.validatorAddress);
|
|
358
|
+
}
|
|
359
|
+
for (const v of message.outstandingRewards) {
|
|
360
|
+
DecCoin.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
361
|
+
}
|
|
362
|
+
return writer;
|
|
363
|
+
},
|
|
364
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewardsRecord {
|
|
365
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
366
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
367
|
+
const message = createBaseValidatorOutstandingRewardsRecord();
|
|
368
|
+
while (reader.pos < end) {
|
|
369
|
+
const tag = reader.uint32();
|
|
370
|
+
switch (tag >>> 3) {
|
|
371
|
+
case 1:
|
|
372
|
+
message.validatorAddress = reader.string();
|
|
373
|
+
break;
|
|
374
|
+
case 2:
|
|
375
|
+
message.outstandingRewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
376
|
+
break;
|
|
377
|
+
default:
|
|
378
|
+
reader.skipType(tag & 7);
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
return message;
|
|
383
|
+
},
|
|
384
|
+
fromPartial(object: DeepPartial<ValidatorOutstandingRewardsRecord>): ValidatorOutstandingRewardsRecord {
|
|
385
|
+
const message = createBaseValidatorOutstandingRewardsRecord();
|
|
386
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
387
|
+
message.outstandingRewards = object.outstandingRewards?.map(e => DecCoin.fromPartial(e)) || [];
|
|
388
|
+
return message;
|
|
389
|
+
},
|
|
390
|
+
fromAmino(object: ValidatorOutstandingRewardsRecordAmino): ValidatorOutstandingRewardsRecord {
|
|
391
|
+
const message = createBaseValidatorOutstandingRewardsRecord();
|
|
392
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
393
|
+
message.validatorAddress = object.validator_address;
|
|
394
|
+
}
|
|
395
|
+
message.outstandingRewards = object.outstanding_rewards?.map(e => DecCoin.fromAmino(e)) || [];
|
|
396
|
+
return message;
|
|
397
|
+
},
|
|
398
|
+
toAmino(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAmino {
|
|
399
|
+
const obj: any = {};
|
|
400
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
401
|
+
if (message.outstandingRewards) {
|
|
402
|
+
obj.outstanding_rewards = message.outstandingRewards.map(e => e ? DecCoin.toAmino(e) : undefined);
|
|
403
|
+
} else {
|
|
404
|
+
obj.outstanding_rewards = message.outstandingRewards;
|
|
405
|
+
}
|
|
406
|
+
return obj;
|
|
407
|
+
},
|
|
408
|
+
fromAminoMsg(object: ValidatorOutstandingRewardsRecordAminoMsg): ValidatorOutstandingRewardsRecord {
|
|
409
|
+
return ValidatorOutstandingRewardsRecord.fromAmino(object.value);
|
|
410
|
+
},
|
|
411
|
+
toAminoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAminoMsg {
|
|
412
|
+
return {
|
|
413
|
+
type: "cosmos-sdk/ValidatorOutstandingRewardsRecord",
|
|
414
|
+
value: ValidatorOutstandingRewardsRecord.toAmino(message)
|
|
415
|
+
};
|
|
416
|
+
},
|
|
417
|
+
fromProtoMsg(message: ValidatorOutstandingRewardsRecordProtoMsg): ValidatorOutstandingRewardsRecord {
|
|
418
|
+
return ValidatorOutstandingRewardsRecord.decode(message.value);
|
|
419
|
+
},
|
|
420
|
+
toProto(message: ValidatorOutstandingRewardsRecord): Uint8Array {
|
|
421
|
+
return ValidatorOutstandingRewardsRecord.encode(message).finish();
|
|
422
|
+
},
|
|
423
|
+
toProtoMsg(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordProtoMsg {
|
|
424
|
+
return {
|
|
425
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord",
|
|
426
|
+
value: ValidatorOutstandingRewardsRecord.encode(message).finish()
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
GlobalDecoderRegistry.register(ValidatorOutstandingRewardsRecord.typeUrl, ValidatorOutstandingRewardsRecord);
|
|
431
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorOutstandingRewardsRecord.aminoType, ValidatorOutstandingRewardsRecord.typeUrl);
|
|
432
|
+
function createBaseValidatorAccumulatedCommissionRecord(): ValidatorAccumulatedCommissionRecord {
|
|
433
|
+
return {
|
|
434
|
+
validatorAddress: "",
|
|
435
|
+
accumulated: ValidatorAccumulatedCommission.fromPartial({})
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
export const ValidatorAccumulatedCommissionRecord = {
|
|
439
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord",
|
|
440
|
+
aminoType: "cosmos-sdk/ValidatorAccumulatedCommissionRecord",
|
|
441
|
+
is(o: any): o is ValidatorAccumulatedCommissionRecord {
|
|
442
|
+
return o && (o.$typeUrl === ValidatorAccumulatedCommissionRecord.typeUrl || typeof o.validatorAddress === "string" && ValidatorAccumulatedCommission.is(o.accumulated));
|
|
443
|
+
},
|
|
444
|
+
isAmino(o: any): o is ValidatorAccumulatedCommissionRecordAmino {
|
|
445
|
+
return o && (o.$typeUrl === ValidatorAccumulatedCommissionRecord.typeUrl || typeof o.validator_address === "string" && ValidatorAccumulatedCommission.isAmino(o.accumulated));
|
|
446
|
+
},
|
|
447
|
+
encode(message: ValidatorAccumulatedCommissionRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
448
|
+
if (message.validatorAddress !== "") {
|
|
449
|
+
writer.uint32(10).string(message.validatorAddress);
|
|
450
|
+
}
|
|
451
|
+
if (message.accumulated !== undefined) {
|
|
452
|
+
ValidatorAccumulatedCommission.encode(message.accumulated, writer.uint32(18).fork()).ldelim();
|
|
453
|
+
}
|
|
454
|
+
return writer;
|
|
455
|
+
},
|
|
456
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommissionRecord {
|
|
457
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
458
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
459
|
+
const message = createBaseValidatorAccumulatedCommissionRecord();
|
|
460
|
+
while (reader.pos < end) {
|
|
461
|
+
const tag = reader.uint32();
|
|
462
|
+
switch (tag >>> 3) {
|
|
463
|
+
case 1:
|
|
464
|
+
message.validatorAddress = reader.string();
|
|
465
|
+
break;
|
|
466
|
+
case 2:
|
|
467
|
+
message.accumulated = ValidatorAccumulatedCommission.decode(reader, reader.uint32());
|
|
468
|
+
break;
|
|
469
|
+
default:
|
|
470
|
+
reader.skipType(tag & 7);
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
return message;
|
|
475
|
+
},
|
|
476
|
+
fromPartial(object: DeepPartial<ValidatorAccumulatedCommissionRecord>): ValidatorAccumulatedCommissionRecord {
|
|
477
|
+
const message = createBaseValidatorAccumulatedCommissionRecord();
|
|
478
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
479
|
+
message.accumulated = object.accumulated !== undefined && object.accumulated !== null ? ValidatorAccumulatedCommission.fromPartial(object.accumulated) : undefined;
|
|
480
|
+
return message;
|
|
481
|
+
},
|
|
482
|
+
fromAmino(object: ValidatorAccumulatedCommissionRecordAmino): ValidatorAccumulatedCommissionRecord {
|
|
483
|
+
const message = createBaseValidatorAccumulatedCommissionRecord();
|
|
484
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
485
|
+
message.validatorAddress = object.validator_address;
|
|
486
|
+
}
|
|
487
|
+
if (object.accumulated !== undefined && object.accumulated !== null) {
|
|
488
|
+
message.accumulated = ValidatorAccumulatedCommission.fromAmino(object.accumulated);
|
|
489
|
+
}
|
|
490
|
+
return message;
|
|
491
|
+
},
|
|
492
|
+
toAmino(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAmino {
|
|
493
|
+
const obj: any = {};
|
|
494
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
495
|
+
obj.accumulated = message.accumulated ? ValidatorAccumulatedCommission.toAmino(message.accumulated) : ValidatorAccumulatedCommission.toAmino(ValidatorAccumulatedCommission.fromPartial({}));
|
|
496
|
+
return obj;
|
|
497
|
+
},
|
|
498
|
+
fromAminoMsg(object: ValidatorAccumulatedCommissionRecordAminoMsg): ValidatorAccumulatedCommissionRecord {
|
|
499
|
+
return ValidatorAccumulatedCommissionRecord.fromAmino(object.value);
|
|
500
|
+
},
|
|
501
|
+
toAminoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAminoMsg {
|
|
502
|
+
return {
|
|
503
|
+
type: "cosmos-sdk/ValidatorAccumulatedCommissionRecord",
|
|
504
|
+
value: ValidatorAccumulatedCommissionRecord.toAmino(message)
|
|
505
|
+
};
|
|
506
|
+
},
|
|
507
|
+
fromProtoMsg(message: ValidatorAccumulatedCommissionRecordProtoMsg): ValidatorAccumulatedCommissionRecord {
|
|
508
|
+
return ValidatorAccumulatedCommissionRecord.decode(message.value);
|
|
509
|
+
},
|
|
510
|
+
toProto(message: ValidatorAccumulatedCommissionRecord): Uint8Array {
|
|
511
|
+
return ValidatorAccumulatedCommissionRecord.encode(message).finish();
|
|
512
|
+
},
|
|
513
|
+
toProtoMsg(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordProtoMsg {
|
|
514
|
+
return {
|
|
515
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord",
|
|
516
|
+
value: ValidatorAccumulatedCommissionRecord.encode(message).finish()
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
GlobalDecoderRegistry.register(ValidatorAccumulatedCommissionRecord.typeUrl, ValidatorAccumulatedCommissionRecord);
|
|
521
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorAccumulatedCommissionRecord.aminoType, ValidatorAccumulatedCommissionRecord.typeUrl);
|
|
522
|
+
function createBaseValidatorHistoricalRewardsRecord(): ValidatorHistoricalRewardsRecord {
|
|
523
|
+
return {
|
|
524
|
+
validatorAddress: "",
|
|
525
|
+
period: BigInt(0),
|
|
526
|
+
rewards: ValidatorHistoricalRewards.fromPartial({})
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
export const ValidatorHistoricalRewardsRecord = {
|
|
530
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord",
|
|
531
|
+
aminoType: "cosmos-sdk/ValidatorHistoricalRewardsRecord",
|
|
532
|
+
is(o: any): o is ValidatorHistoricalRewardsRecord {
|
|
533
|
+
return o && (o.$typeUrl === ValidatorHistoricalRewardsRecord.typeUrl || typeof o.validatorAddress === "string" && typeof o.period === "bigint" && ValidatorHistoricalRewards.is(o.rewards));
|
|
534
|
+
},
|
|
535
|
+
isAmino(o: any): o is ValidatorHistoricalRewardsRecordAmino {
|
|
536
|
+
return o && (o.$typeUrl === ValidatorHistoricalRewardsRecord.typeUrl || typeof o.validator_address === "string" && typeof o.period === "bigint" && ValidatorHistoricalRewards.isAmino(o.rewards));
|
|
537
|
+
},
|
|
538
|
+
encode(message: ValidatorHistoricalRewardsRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
539
|
+
if (message.validatorAddress !== "") {
|
|
540
|
+
writer.uint32(10).string(message.validatorAddress);
|
|
541
|
+
}
|
|
542
|
+
if (message.period !== BigInt(0)) {
|
|
543
|
+
writer.uint32(16).uint64(message.period);
|
|
544
|
+
}
|
|
545
|
+
if (message.rewards !== undefined) {
|
|
546
|
+
ValidatorHistoricalRewards.encode(message.rewards, writer.uint32(26).fork()).ldelim();
|
|
547
|
+
}
|
|
548
|
+
return writer;
|
|
549
|
+
},
|
|
550
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewardsRecord {
|
|
551
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
552
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
553
|
+
const message = createBaseValidatorHistoricalRewardsRecord();
|
|
554
|
+
while (reader.pos < end) {
|
|
555
|
+
const tag = reader.uint32();
|
|
556
|
+
switch (tag >>> 3) {
|
|
557
|
+
case 1:
|
|
558
|
+
message.validatorAddress = reader.string();
|
|
559
|
+
break;
|
|
560
|
+
case 2:
|
|
561
|
+
message.period = reader.uint64();
|
|
562
|
+
break;
|
|
563
|
+
case 3:
|
|
564
|
+
message.rewards = ValidatorHistoricalRewards.decode(reader, reader.uint32());
|
|
565
|
+
break;
|
|
566
|
+
default:
|
|
567
|
+
reader.skipType(tag & 7);
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
return message;
|
|
572
|
+
},
|
|
573
|
+
fromPartial(object: DeepPartial<ValidatorHistoricalRewardsRecord>): ValidatorHistoricalRewardsRecord {
|
|
574
|
+
const message = createBaseValidatorHistoricalRewardsRecord();
|
|
575
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
576
|
+
message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0);
|
|
577
|
+
message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorHistoricalRewards.fromPartial(object.rewards) : undefined;
|
|
578
|
+
return message;
|
|
579
|
+
},
|
|
580
|
+
fromAmino(object: ValidatorHistoricalRewardsRecordAmino): ValidatorHistoricalRewardsRecord {
|
|
581
|
+
const message = createBaseValidatorHistoricalRewardsRecord();
|
|
582
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
583
|
+
message.validatorAddress = object.validator_address;
|
|
584
|
+
}
|
|
585
|
+
if (object.period !== undefined && object.period !== null) {
|
|
586
|
+
message.period = BigInt(object.period);
|
|
587
|
+
}
|
|
588
|
+
if (object.rewards !== undefined && object.rewards !== null) {
|
|
589
|
+
message.rewards = ValidatorHistoricalRewards.fromAmino(object.rewards);
|
|
590
|
+
}
|
|
591
|
+
return message;
|
|
592
|
+
},
|
|
593
|
+
toAmino(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAmino {
|
|
594
|
+
const obj: any = {};
|
|
595
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
596
|
+
obj.period = message.period !== BigInt(0) ? message.period?.toString() : undefined;
|
|
597
|
+
obj.rewards = message.rewards ? ValidatorHistoricalRewards.toAmino(message.rewards) : ValidatorHistoricalRewards.toAmino(ValidatorHistoricalRewards.fromPartial({}));
|
|
598
|
+
return obj;
|
|
599
|
+
},
|
|
600
|
+
fromAminoMsg(object: ValidatorHistoricalRewardsRecordAminoMsg): ValidatorHistoricalRewardsRecord {
|
|
601
|
+
return ValidatorHistoricalRewardsRecord.fromAmino(object.value);
|
|
602
|
+
},
|
|
603
|
+
toAminoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAminoMsg {
|
|
604
|
+
return {
|
|
605
|
+
type: "cosmos-sdk/ValidatorHistoricalRewardsRecord",
|
|
606
|
+
value: ValidatorHistoricalRewardsRecord.toAmino(message)
|
|
607
|
+
};
|
|
608
|
+
},
|
|
609
|
+
fromProtoMsg(message: ValidatorHistoricalRewardsRecordProtoMsg): ValidatorHistoricalRewardsRecord {
|
|
610
|
+
return ValidatorHistoricalRewardsRecord.decode(message.value);
|
|
611
|
+
},
|
|
612
|
+
toProto(message: ValidatorHistoricalRewardsRecord): Uint8Array {
|
|
613
|
+
return ValidatorHistoricalRewardsRecord.encode(message).finish();
|
|
614
|
+
},
|
|
615
|
+
toProtoMsg(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordProtoMsg {
|
|
616
|
+
return {
|
|
617
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord",
|
|
618
|
+
value: ValidatorHistoricalRewardsRecord.encode(message).finish()
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
};
|
|
622
|
+
GlobalDecoderRegistry.register(ValidatorHistoricalRewardsRecord.typeUrl, ValidatorHistoricalRewardsRecord);
|
|
623
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorHistoricalRewardsRecord.aminoType, ValidatorHistoricalRewardsRecord.typeUrl);
|
|
624
|
+
function createBaseValidatorCurrentRewardsRecord(): ValidatorCurrentRewardsRecord {
|
|
625
|
+
return {
|
|
626
|
+
validatorAddress: "",
|
|
627
|
+
rewards: ValidatorCurrentRewards.fromPartial({})
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
export const ValidatorCurrentRewardsRecord = {
|
|
631
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord",
|
|
632
|
+
aminoType: "cosmos-sdk/ValidatorCurrentRewardsRecord",
|
|
633
|
+
is(o: any): o is ValidatorCurrentRewardsRecord {
|
|
634
|
+
return o && (o.$typeUrl === ValidatorCurrentRewardsRecord.typeUrl || typeof o.validatorAddress === "string" && ValidatorCurrentRewards.is(o.rewards));
|
|
635
|
+
},
|
|
636
|
+
isAmino(o: any): o is ValidatorCurrentRewardsRecordAmino {
|
|
637
|
+
return o && (o.$typeUrl === ValidatorCurrentRewardsRecord.typeUrl || typeof o.validator_address === "string" && ValidatorCurrentRewards.isAmino(o.rewards));
|
|
638
|
+
},
|
|
639
|
+
encode(message: ValidatorCurrentRewardsRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
640
|
+
if (message.validatorAddress !== "") {
|
|
641
|
+
writer.uint32(10).string(message.validatorAddress);
|
|
642
|
+
}
|
|
643
|
+
if (message.rewards !== undefined) {
|
|
644
|
+
ValidatorCurrentRewards.encode(message.rewards, writer.uint32(18).fork()).ldelim();
|
|
645
|
+
}
|
|
646
|
+
return writer;
|
|
647
|
+
},
|
|
648
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewardsRecord {
|
|
649
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
650
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
651
|
+
const message = createBaseValidatorCurrentRewardsRecord();
|
|
652
|
+
while (reader.pos < end) {
|
|
653
|
+
const tag = reader.uint32();
|
|
654
|
+
switch (tag >>> 3) {
|
|
655
|
+
case 1:
|
|
656
|
+
message.validatorAddress = reader.string();
|
|
657
|
+
break;
|
|
658
|
+
case 2:
|
|
659
|
+
message.rewards = ValidatorCurrentRewards.decode(reader, reader.uint32());
|
|
660
|
+
break;
|
|
661
|
+
default:
|
|
662
|
+
reader.skipType(tag & 7);
|
|
663
|
+
break;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
return message;
|
|
667
|
+
},
|
|
668
|
+
fromPartial(object: DeepPartial<ValidatorCurrentRewardsRecord>): ValidatorCurrentRewardsRecord {
|
|
669
|
+
const message = createBaseValidatorCurrentRewardsRecord();
|
|
670
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
671
|
+
message.rewards = object.rewards !== undefined && object.rewards !== null ? ValidatorCurrentRewards.fromPartial(object.rewards) : undefined;
|
|
672
|
+
return message;
|
|
673
|
+
},
|
|
674
|
+
fromAmino(object: ValidatorCurrentRewardsRecordAmino): ValidatorCurrentRewardsRecord {
|
|
675
|
+
const message = createBaseValidatorCurrentRewardsRecord();
|
|
676
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
677
|
+
message.validatorAddress = object.validator_address;
|
|
678
|
+
}
|
|
679
|
+
if (object.rewards !== undefined && object.rewards !== null) {
|
|
680
|
+
message.rewards = ValidatorCurrentRewards.fromAmino(object.rewards);
|
|
681
|
+
}
|
|
682
|
+
return message;
|
|
683
|
+
},
|
|
684
|
+
toAmino(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAmino {
|
|
685
|
+
const obj: any = {};
|
|
686
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
687
|
+
obj.rewards = message.rewards ? ValidatorCurrentRewards.toAmino(message.rewards) : ValidatorCurrentRewards.toAmino(ValidatorCurrentRewards.fromPartial({}));
|
|
688
|
+
return obj;
|
|
689
|
+
},
|
|
690
|
+
fromAminoMsg(object: ValidatorCurrentRewardsRecordAminoMsg): ValidatorCurrentRewardsRecord {
|
|
691
|
+
return ValidatorCurrentRewardsRecord.fromAmino(object.value);
|
|
692
|
+
},
|
|
693
|
+
toAminoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAminoMsg {
|
|
694
|
+
return {
|
|
695
|
+
type: "cosmos-sdk/ValidatorCurrentRewardsRecord",
|
|
696
|
+
value: ValidatorCurrentRewardsRecord.toAmino(message)
|
|
697
|
+
};
|
|
698
|
+
},
|
|
699
|
+
fromProtoMsg(message: ValidatorCurrentRewardsRecordProtoMsg): ValidatorCurrentRewardsRecord {
|
|
700
|
+
return ValidatorCurrentRewardsRecord.decode(message.value);
|
|
701
|
+
},
|
|
702
|
+
toProto(message: ValidatorCurrentRewardsRecord): Uint8Array {
|
|
703
|
+
return ValidatorCurrentRewardsRecord.encode(message).finish();
|
|
704
|
+
},
|
|
705
|
+
toProtoMsg(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordProtoMsg {
|
|
706
|
+
return {
|
|
707
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord",
|
|
708
|
+
value: ValidatorCurrentRewardsRecord.encode(message).finish()
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
GlobalDecoderRegistry.register(ValidatorCurrentRewardsRecord.typeUrl, ValidatorCurrentRewardsRecord);
|
|
713
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorCurrentRewardsRecord.aminoType, ValidatorCurrentRewardsRecord.typeUrl);
|
|
714
|
+
function createBaseDelegatorStartingInfoRecord(): DelegatorStartingInfoRecord {
|
|
715
|
+
return {
|
|
716
|
+
delegatorAddress: "",
|
|
717
|
+
validatorAddress: "",
|
|
718
|
+
startingInfo: DelegatorStartingInfo.fromPartial({})
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
export const DelegatorStartingInfoRecord = {
|
|
722
|
+
typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord",
|
|
723
|
+
aminoType: "cosmos-sdk/DelegatorStartingInfoRecord",
|
|
724
|
+
is(o: any): o is DelegatorStartingInfoRecord {
|
|
725
|
+
return o && (o.$typeUrl === DelegatorStartingInfoRecord.typeUrl || typeof o.delegatorAddress === "string" && typeof o.validatorAddress === "string" && DelegatorStartingInfo.is(o.startingInfo));
|
|
726
|
+
},
|
|
727
|
+
isAmino(o: any): o is DelegatorStartingInfoRecordAmino {
|
|
728
|
+
return o && (o.$typeUrl === DelegatorStartingInfoRecord.typeUrl || typeof o.delegator_address === "string" && typeof o.validator_address === "string" && DelegatorStartingInfo.isAmino(o.starting_info));
|
|
729
|
+
},
|
|
730
|
+
encode(message: DelegatorStartingInfoRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
731
|
+
if (message.delegatorAddress !== "") {
|
|
732
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
733
|
+
}
|
|
734
|
+
if (message.validatorAddress !== "") {
|
|
735
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
736
|
+
}
|
|
737
|
+
if (message.startingInfo !== undefined) {
|
|
738
|
+
DelegatorStartingInfo.encode(message.startingInfo, writer.uint32(26).fork()).ldelim();
|
|
739
|
+
}
|
|
740
|
+
return writer;
|
|
741
|
+
},
|
|
742
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfoRecord {
|
|
743
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
744
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
745
|
+
const message = createBaseDelegatorStartingInfoRecord();
|
|
746
|
+
while (reader.pos < end) {
|
|
747
|
+
const tag = reader.uint32();
|
|
748
|
+
switch (tag >>> 3) {
|
|
749
|
+
case 1:
|
|
750
|
+
message.delegatorAddress = reader.string();
|
|
751
|
+
break;
|
|
752
|
+
case 2:
|
|
753
|
+
message.validatorAddress = reader.string();
|
|
754
|
+
break;
|
|
755
|
+
case 3:
|
|
756
|
+
message.startingInfo = DelegatorStartingInfo.decode(reader, reader.uint32());
|
|
757
|
+
break;
|
|
758
|
+
default:
|
|
759
|
+
reader.skipType(tag & 7);
|
|
760
|
+
break;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
return message;
|
|
764
|
+
},
|
|
765
|
+
fromPartial(object: DeepPartial<DelegatorStartingInfoRecord>): DelegatorStartingInfoRecord {
|
|
766
|
+
const message = createBaseDelegatorStartingInfoRecord();
|
|
767
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
768
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
769
|
+
message.startingInfo = object.startingInfo !== undefined && object.startingInfo !== null ? DelegatorStartingInfo.fromPartial(object.startingInfo) : undefined;
|
|
770
|
+
return message;
|
|
771
|
+
},
|
|
772
|
+
fromAmino(object: DelegatorStartingInfoRecordAmino): DelegatorStartingInfoRecord {
|
|
773
|
+
const message = createBaseDelegatorStartingInfoRecord();
|
|
774
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
775
|
+
message.delegatorAddress = object.delegator_address;
|
|
776
|
+
}
|
|
777
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
778
|
+
message.validatorAddress = object.validator_address;
|
|
779
|
+
}
|
|
780
|
+
if (object.starting_info !== undefined && object.starting_info !== null) {
|
|
781
|
+
message.startingInfo = DelegatorStartingInfo.fromAmino(object.starting_info);
|
|
782
|
+
}
|
|
783
|
+
return message;
|
|
784
|
+
},
|
|
785
|
+
toAmino(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAmino {
|
|
786
|
+
const obj: any = {};
|
|
787
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
788
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
789
|
+
obj.starting_info = message.startingInfo ? DelegatorStartingInfo.toAmino(message.startingInfo) : DelegatorStartingInfo.toAmino(DelegatorStartingInfo.fromPartial({}));
|
|
790
|
+
return obj;
|
|
791
|
+
},
|
|
792
|
+
fromAminoMsg(object: DelegatorStartingInfoRecordAminoMsg): DelegatorStartingInfoRecord {
|
|
793
|
+
return DelegatorStartingInfoRecord.fromAmino(object.value);
|
|
794
|
+
},
|
|
795
|
+
toAminoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAminoMsg {
|
|
796
|
+
return {
|
|
797
|
+
type: "cosmos-sdk/DelegatorStartingInfoRecord",
|
|
798
|
+
value: DelegatorStartingInfoRecord.toAmino(message)
|
|
799
|
+
};
|
|
800
|
+
},
|
|
801
|
+
fromProtoMsg(message: DelegatorStartingInfoRecordProtoMsg): DelegatorStartingInfoRecord {
|
|
802
|
+
return DelegatorStartingInfoRecord.decode(message.value);
|
|
803
|
+
},
|
|
804
|
+
toProto(message: DelegatorStartingInfoRecord): Uint8Array {
|
|
805
|
+
return DelegatorStartingInfoRecord.encode(message).finish();
|
|
806
|
+
},
|
|
807
|
+
toProtoMsg(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordProtoMsg {
|
|
808
|
+
return {
|
|
809
|
+
typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord",
|
|
810
|
+
value: DelegatorStartingInfoRecord.encode(message).finish()
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
GlobalDecoderRegistry.register(DelegatorStartingInfoRecord.typeUrl, DelegatorStartingInfoRecord);
|
|
815
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(DelegatorStartingInfoRecord.aminoType, DelegatorStartingInfoRecord.typeUrl);
|
|
816
|
+
function createBaseValidatorSlashEventRecord(): ValidatorSlashEventRecord {
|
|
817
|
+
return {
|
|
818
|
+
validatorAddress: "",
|
|
819
|
+
height: BigInt(0),
|
|
820
|
+
period: BigInt(0),
|
|
821
|
+
validatorSlashEvent: ValidatorSlashEvent.fromPartial({})
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
export const ValidatorSlashEventRecord = {
|
|
825
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord",
|
|
826
|
+
aminoType: "cosmos-sdk/ValidatorSlashEventRecord",
|
|
827
|
+
is(o: any): o is ValidatorSlashEventRecord {
|
|
828
|
+
return o && (o.$typeUrl === ValidatorSlashEventRecord.typeUrl || typeof o.validatorAddress === "string" && typeof o.height === "bigint" && typeof o.period === "bigint" && ValidatorSlashEvent.is(o.validatorSlashEvent));
|
|
829
|
+
},
|
|
830
|
+
isAmino(o: any): o is ValidatorSlashEventRecordAmino {
|
|
831
|
+
return o && (o.$typeUrl === ValidatorSlashEventRecord.typeUrl || typeof o.validator_address === "string" && typeof o.height === "bigint" && typeof o.period === "bigint" && ValidatorSlashEvent.isAmino(o.validator_slash_event));
|
|
832
|
+
},
|
|
833
|
+
encode(message: ValidatorSlashEventRecord, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
834
|
+
if (message.validatorAddress !== "") {
|
|
835
|
+
writer.uint32(10).string(message.validatorAddress);
|
|
836
|
+
}
|
|
837
|
+
if (message.height !== BigInt(0)) {
|
|
838
|
+
writer.uint32(16).uint64(message.height);
|
|
839
|
+
}
|
|
840
|
+
if (message.period !== BigInt(0)) {
|
|
841
|
+
writer.uint32(24).uint64(message.period);
|
|
842
|
+
}
|
|
843
|
+
if (message.validatorSlashEvent !== undefined) {
|
|
844
|
+
ValidatorSlashEvent.encode(message.validatorSlashEvent, writer.uint32(34).fork()).ldelim();
|
|
845
|
+
}
|
|
846
|
+
return writer;
|
|
847
|
+
},
|
|
848
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEventRecord {
|
|
849
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
850
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
851
|
+
const message = createBaseValidatorSlashEventRecord();
|
|
852
|
+
while (reader.pos < end) {
|
|
853
|
+
const tag = reader.uint32();
|
|
854
|
+
switch (tag >>> 3) {
|
|
855
|
+
case 1:
|
|
856
|
+
message.validatorAddress = reader.string();
|
|
857
|
+
break;
|
|
858
|
+
case 2:
|
|
859
|
+
message.height = reader.uint64();
|
|
860
|
+
break;
|
|
861
|
+
case 3:
|
|
862
|
+
message.period = reader.uint64();
|
|
863
|
+
break;
|
|
864
|
+
case 4:
|
|
865
|
+
message.validatorSlashEvent = ValidatorSlashEvent.decode(reader, reader.uint32());
|
|
866
|
+
break;
|
|
867
|
+
default:
|
|
868
|
+
reader.skipType(tag & 7);
|
|
869
|
+
break;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
return message;
|
|
873
|
+
},
|
|
874
|
+
fromPartial(object: DeepPartial<ValidatorSlashEventRecord>): ValidatorSlashEventRecord {
|
|
875
|
+
const message = createBaseValidatorSlashEventRecord();
|
|
876
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
877
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
878
|
+
message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0);
|
|
879
|
+
message.validatorSlashEvent = object.validatorSlashEvent !== undefined && object.validatorSlashEvent !== null ? ValidatorSlashEvent.fromPartial(object.validatorSlashEvent) : undefined;
|
|
880
|
+
return message;
|
|
881
|
+
},
|
|
882
|
+
fromAmino(object: ValidatorSlashEventRecordAmino): ValidatorSlashEventRecord {
|
|
883
|
+
const message = createBaseValidatorSlashEventRecord();
|
|
884
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
885
|
+
message.validatorAddress = object.validator_address;
|
|
886
|
+
}
|
|
887
|
+
if (object.height !== undefined && object.height !== null) {
|
|
888
|
+
message.height = BigInt(object.height);
|
|
889
|
+
}
|
|
890
|
+
if (object.period !== undefined && object.period !== null) {
|
|
891
|
+
message.period = BigInt(object.period);
|
|
892
|
+
}
|
|
893
|
+
if (object.validator_slash_event !== undefined && object.validator_slash_event !== null) {
|
|
894
|
+
message.validatorSlashEvent = ValidatorSlashEvent.fromAmino(object.validator_slash_event);
|
|
895
|
+
}
|
|
896
|
+
return message;
|
|
897
|
+
},
|
|
898
|
+
toAmino(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAmino {
|
|
899
|
+
const obj: any = {};
|
|
900
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
901
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
902
|
+
obj.period = message.period !== BigInt(0) ? message.period?.toString() : undefined;
|
|
903
|
+
obj.validator_slash_event = message.validatorSlashEvent ? ValidatorSlashEvent.toAmino(message.validatorSlashEvent) : ValidatorSlashEvent.toAmino(ValidatorSlashEvent.fromPartial({}));
|
|
904
|
+
return obj;
|
|
905
|
+
},
|
|
906
|
+
fromAminoMsg(object: ValidatorSlashEventRecordAminoMsg): ValidatorSlashEventRecord {
|
|
907
|
+
return ValidatorSlashEventRecord.fromAmino(object.value);
|
|
908
|
+
},
|
|
909
|
+
toAminoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAminoMsg {
|
|
910
|
+
return {
|
|
911
|
+
type: "cosmos-sdk/ValidatorSlashEventRecord",
|
|
912
|
+
value: ValidatorSlashEventRecord.toAmino(message)
|
|
913
|
+
};
|
|
914
|
+
},
|
|
915
|
+
fromProtoMsg(message: ValidatorSlashEventRecordProtoMsg): ValidatorSlashEventRecord {
|
|
916
|
+
return ValidatorSlashEventRecord.decode(message.value);
|
|
917
|
+
},
|
|
918
|
+
toProto(message: ValidatorSlashEventRecord): Uint8Array {
|
|
919
|
+
return ValidatorSlashEventRecord.encode(message).finish();
|
|
920
|
+
},
|
|
921
|
+
toProtoMsg(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordProtoMsg {
|
|
922
|
+
return {
|
|
923
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord",
|
|
924
|
+
value: ValidatorSlashEventRecord.encode(message).finish()
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
};
|
|
928
|
+
GlobalDecoderRegistry.register(ValidatorSlashEventRecord.typeUrl, ValidatorSlashEventRecord);
|
|
929
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ValidatorSlashEventRecord.aminoType, ValidatorSlashEventRecord.typeUrl);
|
|
930
|
+
function createBaseGenesisState(): GenesisState {
|
|
931
|
+
return {
|
|
932
|
+
params: Params.fromPartial({}),
|
|
933
|
+
feePool: FeePool.fromPartial({}),
|
|
934
|
+
delegatorWithdrawInfos: [],
|
|
935
|
+
previousProposer: "",
|
|
936
|
+
outstandingRewards: [],
|
|
937
|
+
validatorAccumulatedCommissions: [],
|
|
938
|
+
validatorHistoricalRewards: [],
|
|
939
|
+
validatorCurrentRewards: [],
|
|
940
|
+
delegatorStartingInfos: [],
|
|
941
|
+
validatorSlashEvents: []
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
export const GenesisState = {
|
|
945
|
+
typeUrl: "/cosmos.distribution.v1beta1.GenesisState",
|
|
946
|
+
aminoType: "cosmos-sdk/GenesisState",
|
|
947
|
+
is(o: any): o is GenesisState {
|
|
948
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Params.is(o.params) && FeePool.is(o.feePool) && Array.isArray(o.delegatorWithdrawInfos) && (!o.delegatorWithdrawInfos.length || DelegatorWithdrawInfo.is(o.delegatorWithdrawInfos[0])) && typeof o.previousProposer === "string" && Array.isArray(o.outstandingRewards) && (!o.outstandingRewards.length || ValidatorOutstandingRewardsRecord.is(o.outstandingRewards[0])) && Array.isArray(o.validatorAccumulatedCommissions) && (!o.validatorAccumulatedCommissions.length || ValidatorAccumulatedCommissionRecord.is(o.validatorAccumulatedCommissions[0])) && Array.isArray(o.validatorHistoricalRewards) && (!o.validatorHistoricalRewards.length || ValidatorHistoricalRewardsRecord.is(o.validatorHistoricalRewards[0])) && Array.isArray(o.validatorCurrentRewards) && (!o.validatorCurrentRewards.length || ValidatorCurrentRewardsRecord.is(o.validatorCurrentRewards[0])) && Array.isArray(o.delegatorStartingInfos) && (!o.delegatorStartingInfos.length || DelegatorStartingInfoRecord.is(o.delegatorStartingInfos[0])) && Array.isArray(o.validatorSlashEvents) && (!o.validatorSlashEvents.length || ValidatorSlashEventRecord.is(o.validatorSlashEvents[0])));
|
|
949
|
+
},
|
|
950
|
+
isAmino(o: any): o is GenesisStateAmino {
|
|
951
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Params.isAmino(o.params) && FeePool.isAmino(o.fee_pool) && Array.isArray(o.delegator_withdraw_infos) && (!o.delegator_withdraw_infos.length || DelegatorWithdrawInfo.isAmino(o.delegator_withdraw_infos[0])) && typeof o.previous_proposer === "string" && Array.isArray(o.outstanding_rewards) && (!o.outstanding_rewards.length || ValidatorOutstandingRewardsRecord.isAmino(o.outstanding_rewards[0])) && Array.isArray(o.validator_accumulated_commissions) && (!o.validator_accumulated_commissions.length || ValidatorAccumulatedCommissionRecord.isAmino(o.validator_accumulated_commissions[0])) && Array.isArray(o.validator_historical_rewards) && (!o.validator_historical_rewards.length || ValidatorHistoricalRewardsRecord.isAmino(o.validator_historical_rewards[0])) && Array.isArray(o.validator_current_rewards) && (!o.validator_current_rewards.length || ValidatorCurrentRewardsRecord.isAmino(o.validator_current_rewards[0])) && Array.isArray(o.delegator_starting_infos) && (!o.delegator_starting_infos.length || DelegatorStartingInfoRecord.isAmino(o.delegator_starting_infos[0])) && Array.isArray(o.validator_slash_events) && (!o.validator_slash_events.length || ValidatorSlashEventRecord.isAmino(o.validator_slash_events[0])));
|
|
952
|
+
},
|
|
953
|
+
encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
954
|
+
if (message.params !== undefined) {
|
|
955
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
956
|
+
}
|
|
957
|
+
if (message.feePool !== undefined) {
|
|
958
|
+
FeePool.encode(message.feePool, writer.uint32(18).fork()).ldelim();
|
|
959
|
+
}
|
|
960
|
+
for (const v of message.delegatorWithdrawInfos) {
|
|
961
|
+
DelegatorWithdrawInfo.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
962
|
+
}
|
|
963
|
+
if (message.previousProposer !== "") {
|
|
964
|
+
writer.uint32(34).string(message.previousProposer);
|
|
965
|
+
}
|
|
966
|
+
for (const v of message.outstandingRewards) {
|
|
967
|
+
ValidatorOutstandingRewardsRecord.encode(v!, writer.uint32(42).fork()).ldelim();
|
|
968
|
+
}
|
|
969
|
+
for (const v of message.validatorAccumulatedCommissions) {
|
|
970
|
+
ValidatorAccumulatedCommissionRecord.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
971
|
+
}
|
|
972
|
+
for (const v of message.validatorHistoricalRewards) {
|
|
973
|
+
ValidatorHistoricalRewardsRecord.encode(v!, writer.uint32(58).fork()).ldelim();
|
|
974
|
+
}
|
|
975
|
+
for (const v of message.validatorCurrentRewards) {
|
|
976
|
+
ValidatorCurrentRewardsRecord.encode(v!, writer.uint32(66).fork()).ldelim();
|
|
977
|
+
}
|
|
978
|
+
for (const v of message.delegatorStartingInfos) {
|
|
979
|
+
DelegatorStartingInfoRecord.encode(v!, writer.uint32(74).fork()).ldelim();
|
|
980
|
+
}
|
|
981
|
+
for (const v of message.validatorSlashEvents) {
|
|
982
|
+
ValidatorSlashEventRecord.encode(v!, writer.uint32(82).fork()).ldelim();
|
|
983
|
+
}
|
|
984
|
+
return writer;
|
|
985
|
+
},
|
|
986
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
|
|
987
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
988
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
989
|
+
const message = createBaseGenesisState();
|
|
990
|
+
while (reader.pos < end) {
|
|
991
|
+
const tag = reader.uint32();
|
|
992
|
+
switch (tag >>> 3) {
|
|
993
|
+
case 1:
|
|
994
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
995
|
+
break;
|
|
996
|
+
case 2:
|
|
997
|
+
message.feePool = FeePool.decode(reader, reader.uint32());
|
|
998
|
+
break;
|
|
999
|
+
case 3:
|
|
1000
|
+
message.delegatorWithdrawInfos.push(DelegatorWithdrawInfo.decode(reader, reader.uint32()));
|
|
1001
|
+
break;
|
|
1002
|
+
case 4:
|
|
1003
|
+
message.previousProposer = reader.string();
|
|
1004
|
+
break;
|
|
1005
|
+
case 5:
|
|
1006
|
+
message.outstandingRewards.push(ValidatorOutstandingRewardsRecord.decode(reader, reader.uint32()));
|
|
1007
|
+
break;
|
|
1008
|
+
case 6:
|
|
1009
|
+
message.validatorAccumulatedCommissions.push(ValidatorAccumulatedCommissionRecord.decode(reader, reader.uint32()));
|
|
1010
|
+
break;
|
|
1011
|
+
case 7:
|
|
1012
|
+
message.validatorHistoricalRewards.push(ValidatorHistoricalRewardsRecord.decode(reader, reader.uint32()));
|
|
1013
|
+
break;
|
|
1014
|
+
case 8:
|
|
1015
|
+
message.validatorCurrentRewards.push(ValidatorCurrentRewardsRecord.decode(reader, reader.uint32()));
|
|
1016
|
+
break;
|
|
1017
|
+
case 9:
|
|
1018
|
+
message.delegatorStartingInfos.push(DelegatorStartingInfoRecord.decode(reader, reader.uint32()));
|
|
1019
|
+
break;
|
|
1020
|
+
case 10:
|
|
1021
|
+
message.validatorSlashEvents.push(ValidatorSlashEventRecord.decode(reader, reader.uint32()));
|
|
1022
|
+
break;
|
|
1023
|
+
default:
|
|
1024
|
+
reader.skipType(tag & 7);
|
|
1025
|
+
break;
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
return message;
|
|
1029
|
+
},
|
|
1030
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState {
|
|
1031
|
+
const message = createBaseGenesisState();
|
|
1032
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
1033
|
+
message.feePool = object.feePool !== undefined && object.feePool !== null ? FeePool.fromPartial(object.feePool) : undefined;
|
|
1034
|
+
message.delegatorWithdrawInfos = object.delegatorWithdrawInfos?.map(e => DelegatorWithdrawInfo.fromPartial(e)) || [];
|
|
1035
|
+
message.previousProposer = object.previousProposer ?? "";
|
|
1036
|
+
message.outstandingRewards = object.outstandingRewards?.map(e => ValidatorOutstandingRewardsRecord.fromPartial(e)) || [];
|
|
1037
|
+
message.validatorAccumulatedCommissions = object.validatorAccumulatedCommissions?.map(e => ValidatorAccumulatedCommissionRecord.fromPartial(e)) || [];
|
|
1038
|
+
message.validatorHistoricalRewards = object.validatorHistoricalRewards?.map(e => ValidatorHistoricalRewardsRecord.fromPartial(e)) || [];
|
|
1039
|
+
message.validatorCurrentRewards = object.validatorCurrentRewards?.map(e => ValidatorCurrentRewardsRecord.fromPartial(e)) || [];
|
|
1040
|
+
message.delegatorStartingInfos = object.delegatorStartingInfos?.map(e => DelegatorStartingInfoRecord.fromPartial(e)) || [];
|
|
1041
|
+
message.validatorSlashEvents = object.validatorSlashEvents?.map(e => ValidatorSlashEventRecord.fromPartial(e)) || [];
|
|
1042
|
+
return message;
|
|
1043
|
+
},
|
|
1044
|
+
fromAmino(object: GenesisStateAmino): GenesisState {
|
|
1045
|
+
const message = createBaseGenesisState();
|
|
1046
|
+
if (object.params !== undefined && object.params !== null) {
|
|
1047
|
+
message.params = Params.fromAmino(object.params);
|
|
1048
|
+
}
|
|
1049
|
+
if (object.fee_pool !== undefined && object.fee_pool !== null) {
|
|
1050
|
+
message.feePool = FeePool.fromAmino(object.fee_pool);
|
|
1051
|
+
}
|
|
1052
|
+
message.delegatorWithdrawInfos = object.delegator_withdraw_infos?.map(e => DelegatorWithdrawInfo.fromAmino(e)) || [];
|
|
1053
|
+
if (object.previous_proposer !== undefined && object.previous_proposer !== null) {
|
|
1054
|
+
message.previousProposer = object.previous_proposer;
|
|
1055
|
+
}
|
|
1056
|
+
message.outstandingRewards = object.outstanding_rewards?.map(e => ValidatorOutstandingRewardsRecord.fromAmino(e)) || [];
|
|
1057
|
+
message.validatorAccumulatedCommissions = object.validator_accumulated_commissions?.map(e => ValidatorAccumulatedCommissionRecord.fromAmino(e)) || [];
|
|
1058
|
+
message.validatorHistoricalRewards = object.validator_historical_rewards?.map(e => ValidatorHistoricalRewardsRecord.fromAmino(e)) || [];
|
|
1059
|
+
message.validatorCurrentRewards = object.validator_current_rewards?.map(e => ValidatorCurrentRewardsRecord.fromAmino(e)) || [];
|
|
1060
|
+
message.delegatorStartingInfos = object.delegator_starting_infos?.map(e => DelegatorStartingInfoRecord.fromAmino(e)) || [];
|
|
1061
|
+
message.validatorSlashEvents = object.validator_slash_events?.map(e => ValidatorSlashEventRecord.fromAmino(e)) || [];
|
|
1062
|
+
return message;
|
|
1063
|
+
},
|
|
1064
|
+
toAmino(message: GenesisState): GenesisStateAmino {
|
|
1065
|
+
const obj: any = {};
|
|
1066
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
1067
|
+
obj.fee_pool = message.feePool ? FeePool.toAmino(message.feePool) : FeePool.toAmino(FeePool.fromPartial({}));
|
|
1068
|
+
if (message.delegatorWithdrawInfos) {
|
|
1069
|
+
obj.delegator_withdraw_infos = message.delegatorWithdrawInfos.map(e => e ? DelegatorWithdrawInfo.toAmino(e) : undefined);
|
|
1070
|
+
} else {
|
|
1071
|
+
obj.delegator_withdraw_infos = message.delegatorWithdrawInfos;
|
|
1072
|
+
}
|
|
1073
|
+
obj.previous_proposer = message.previousProposer === "" ? undefined : message.previousProposer;
|
|
1074
|
+
if (message.outstandingRewards) {
|
|
1075
|
+
obj.outstanding_rewards = message.outstandingRewards.map(e => e ? ValidatorOutstandingRewardsRecord.toAmino(e) : undefined);
|
|
1076
|
+
} else {
|
|
1077
|
+
obj.outstanding_rewards = message.outstandingRewards;
|
|
1078
|
+
}
|
|
1079
|
+
if (message.validatorAccumulatedCommissions) {
|
|
1080
|
+
obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions.map(e => e ? ValidatorAccumulatedCommissionRecord.toAmino(e) : undefined);
|
|
1081
|
+
} else {
|
|
1082
|
+
obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions;
|
|
1083
|
+
}
|
|
1084
|
+
if (message.validatorHistoricalRewards) {
|
|
1085
|
+
obj.validator_historical_rewards = message.validatorHistoricalRewards.map(e => e ? ValidatorHistoricalRewardsRecord.toAmino(e) : undefined);
|
|
1086
|
+
} else {
|
|
1087
|
+
obj.validator_historical_rewards = message.validatorHistoricalRewards;
|
|
1088
|
+
}
|
|
1089
|
+
if (message.validatorCurrentRewards) {
|
|
1090
|
+
obj.validator_current_rewards = message.validatorCurrentRewards.map(e => e ? ValidatorCurrentRewardsRecord.toAmino(e) : undefined);
|
|
1091
|
+
} else {
|
|
1092
|
+
obj.validator_current_rewards = message.validatorCurrentRewards;
|
|
1093
|
+
}
|
|
1094
|
+
if (message.delegatorStartingInfos) {
|
|
1095
|
+
obj.delegator_starting_infos = message.delegatorStartingInfos.map(e => e ? DelegatorStartingInfoRecord.toAmino(e) : undefined);
|
|
1096
|
+
} else {
|
|
1097
|
+
obj.delegator_starting_infos = message.delegatorStartingInfos;
|
|
1098
|
+
}
|
|
1099
|
+
if (message.validatorSlashEvents) {
|
|
1100
|
+
obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEventRecord.toAmino(e) : undefined);
|
|
1101
|
+
} else {
|
|
1102
|
+
obj.validator_slash_events = message.validatorSlashEvents;
|
|
1103
|
+
}
|
|
1104
|
+
return obj;
|
|
1105
|
+
},
|
|
1106
|
+
fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
|
|
1107
|
+
return GenesisState.fromAmino(object.value);
|
|
1108
|
+
},
|
|
1109
|
+
toAminoMsg(message: GenesisState): GenesisStateAminoMsg {
|
|
1110
|
+
return {
|
|
1111
|
+
type: "cosmos-sdk/GenesisState",
|
|
1112
|
+
value: GenesisState.toAmino(message)
|
|
1113
|
+
};
|
|
1114
|
+
},
|
|
1115
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
|
|
1116
|
+
return GenesisState.decode(message.value);
|
|
1117
|
+
},
|
|
1118
|
+
toProto(message: GenesisState): Uint8Array {
|
|
1119
|
+
return GenesisState.encode(message).finish();
|
|
1120
|
+
},
|
|
1121
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg {
|
|
1122
|
+
return {
|
|
1123
|
+
typeUrl: "/cosmos.distribution.v1beta1.GenesisState",
|
|
1124
|
+
value: GenesisState.encode(message).finish()
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
};
|
|
1128
|
+
GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
|
|
1129
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GenesisState.aminoType, GenesisState.typeUrl);
|