@burnt-labs/xion-types 0.0.1-test.1762962136
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/jest.config.js +18 -0
- package/package.json +56 -0
- package/scripts/aminos.ts +29 -0
- package/scripts/codegen.ts +94 -0
- package/scripts/download-protos.ts +248 -0
- package/telescope.config.json +84 -0
- package/tsconfig.esm.json +9 -0
- package/tsconfig.json +18 -0
- package/types/abstractaccount/bundle.ts +35 -0
- package/types/abstractaccount/client.ts +48 -0
- package/types/abstractaccount/lcd.ts +130 -0
- package/types/abstractaccount/rpc.query.ts +93 -0
- package/types/abstractaccount/rpc.tx.ts +74 -0
- package/types/abstractaccount/v1/account.ts +250 -0
- package/types/abstractaccount/v1/events.ts +135 -0
- package/types/abstractaccount/v1/genesis.ts +106 -0
- package/types/abstractaccount/v1/params.ts +192 -0
- package/types/abstractaccount/v1/query.lcd.ts +19 -0
- package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
- package/types/abstractaccount/v1/query.ts +160 -0
- package/types/abstractaccount/v1/tx.amino.ts +14 -0
- package/types/abstractaccount/v1/tx.registry.ts +53 -0
- package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
- package/types/abstractaccount/v1/tx.ts +454 -0
- package/types/amino/amino.ts +1 -0
- package/types/amino/bundle.ts +5 -0
- package/types/binary.ts +535 -0
- package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
- package/types/cosmos/app/v1alpha1/config.ts +437 -0
- package/types/cosmos/app/v1alpha1/module.ts +466 -0
- package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
- package/types/cosmos/app/v1alpha1/query.ts +176 -0
- package/types/cosmos/auth/module/v1/module.ts +288 -0
- package/types/cosmos/auth/v1beta1/auth.ts +562 -0
- package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
- package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
- package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/auth/v1beta1/query.ts +2005 -0
- package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/auth/v1beta1/tx.ts +208 -0
- package/types/cosmos/authz/module/v1/module.ts +77 -0
- package/types/cosmos/authz/v1beta1/authz.ts +599 -0
- package/types/cosmos/authz/v1beta1/event.ts +274 -0
- package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
- package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
- package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/authz/v1beta1/query.ts +734 -0
- package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
- package/types/cosmos/authz/v1beta1/tx.ts +666 -0
- package/types/cosmos/autocli/v1/options.ts +1317 -0
- package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
- package/types/cosmos/autocli/v1/query.ts +298 -0
- package/types/cosmos/bank/module/v1/module.ts +156 -0
- package/types/cosmos/bank/v1beta1/authz.ts +134 -0
- package/types/cosmos/bank/v1beta1/bank.ts +984 -0
- package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
- package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
- package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
- package/types/cosmos/bank/v1beta1/query.ts +3051 -0
- package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
- package/types/cosmos/bank/v1beta1/tx.ts +845 -0
- package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
- package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
- package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
- package/types/cosmos/base/node/v1beta1/query.ts +467 -0
- package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
- package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
- package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
- package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
- package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
- package/types/cosmos/base/v1beta1/coin.ts +449 -0
- package/types/cosmos/benchmark/module/v1/module.ts +384 -0
- package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
- package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
- package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
- package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/benchmark/v1/tx.ts +224 -0
- package/types/cosmos/bundle.ts +807 -0
- package/types/cosmos/circuit/module/v1/module.ts +100 -0
- package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
- package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
- package/types/cosmos/circuit/v1/query.ts +576 -0
- package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
- package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
- package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/circuit/v1/tx.ts +685 -0
- package/types/cosmos/circuit/v1/types.ts +419 -0
- package/types/cosmos/client.ts +100 -0
- package/types/cosmos/consensus/module/v1/module.ts +100 -0
- package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
- package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/consensus/v1/query.ts +182 -0
- package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
- package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
- package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/consensus/v1/tx.ts +257 -0
- package/types/cosmos/counter/module/v1/module.ts +100 -0
- package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/counter/v1/query.ts +171 -0
- package/types/cosmos/counter/v1/tx.amino.ts +9 -0
- package/types/cosmos/counter/v1/tx.registry.ts +35 -0
- package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/counter/v1/tx.ts +217 -0
- package/types/cosmos/crisis/module/v1/module.ts +119 -0
- package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
- package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
- package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
- package/types/cosmos/crypto/ed25519/keys.ts +214 -0
- package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
- package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
- package/types/cosmos/crypto/multisig/keys.ts +124 -0
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
- package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
- package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
- package/types/cosmos/distribution/module/v1/module.ts +115 -0
- package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
- package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
- package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
- package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
- package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
- package/types/cosmos/epochs/module/v1/module.ts +77 -0
- package/types/cosmos/epochs/v1beta1/events.ts +205 -0
- package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
- package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
- package/types/cosmos/epochs/v1beta1/query.ts +390 -0
- package/types/cosmos/evidence/module/v1/module.ts +77 -0
- package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
- package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
- package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
- package/types/cosmos/evidence/v1beta1/query.ts +458 -0
- package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
- package/types/cosmos/feegrant/module/v1/module.ts +77 -0
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
- package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
- package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
- package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
- package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
- package/types/cosmos/genutil/module/v1/module.ts +77 -0
- package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
- package/types/cosmos/gov/module/v1/module.ts +123 -0
- package/types/cosmos/gov/v1/genesis.ts +288 -0
- package/types/cosmos/gov/v1/gov.ts +1889 -0
- package/types/cosmos/gov/v1/query.lcd.ts +95 -0
- package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
- package/types/cosmos/gov/v1/query.ts +2026 -0
- package/types/cosmos/gov/v1/tx.amino.ts +39 -0
- package/types/cosmos/gov/v1/tx.registry.ts +143 -0
- package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
- package/types/cosmos/gov/v1/tx.ts +1911 -0
- package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
- package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
- package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
- package/types/cosmos/gov/v1beta1/query.ts +1813 -0
- package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
- package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
- package/types/cosmos/group/module/v1/module.ts +128 -0
- package/types/cosmos/group/v1/events.ts +1195 -0
- package/types/cosmos/group/v1/genesis.ts +256 -0
- package/types/cosmos/group/v1/query.lcd.ts +158 -0
- package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
- package/types/cosmos/group/v1/query.ts +3108 -0
- package/types/cosmos/group/v1/tx.amino.ts +74 -0
- package/types/cosmos/group/v1/tx.registry.ts +269 -0
- package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
- package/types/cosmos/group/v1/tx.ts +3353 -0
- package/types/cosmos/group/v1/types.ts +2248 -0
- package/types/cosmos/ics23/v1/proofs.ts +2167 -0
- package/types/cosmos/lcd.ts +125 -0
- package/types/cosmos/mint/module/v1/module.ts +115 -0
- package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
- package/types/cosmos/mint/v1beta1/mint.ts +313 -0
- package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/mint/v1beta1/query.ts +544 -0
- package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/mint/v1beta1/tx.ts +208 -0
- package/types/cosmos/msg/textual/v1/textual.ts +1 -0
- package/types/cosmos/msg/v1/msg.ts +1 -0
- package/types/cosmos/nft/module/v1/module.ts +77 -0
- package/types/cosmos/nft/v1beta1/event.ts +429 -0
- package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
- package/types/cosmos/nft/v1beta1/nft.ts +389 -0
- package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
- package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
- package/types/cosmos/nft/v1beta1/query.ts +1513 -0
- package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/nft/v1beta1/tx.ts +232 -0
- package/types/cosmos/params/module/v1/module.ts +77 -0
- package/types/cosmos/params/v1beta1/params.ts +262 -0
- package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
- package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
- package/types/cosmos/params/v1beta1/query.ts +521 -0
- package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
- package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
- package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
- package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
- package/types/cosmos/protocolpool/v1/query.ts +761 -0
- package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
- package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
- package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
- package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
- package/types/cosmos/protocolpool/v1/types.ts +268 -0
- package/types/cosmos/query/v1/query.ts +1 -0
- package/types/cosmos/reflection/v1/reflection.ts +178 -0
- package/types/cosmos/rpc.query.ts +90 -0
- package/types/cosmos/rpc.tx.ts +71 -0
- package/types/cosmos/slashing/module/v1/module.ts +100 -0
- package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
- package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
- package/types/cosmos/slashing/v1beta1/query.ts +606 -0
- package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
- package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
- package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
- package/types/cosmos/staking/module/v1/module.ts +165 -0
- package/types/cosmos/staking/v1beta1/authz.ts +321 -0
- package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
- package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
- package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
- package/types/cosmos/staking/v1beta1/query.ts +3187 -0
- package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
- package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
- package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
- package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
- package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
- package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
- package/types/cosmos/store/v1beta1/listening.ts +296 -0
- package/types/cosmos/tx/config/v1/config.ts +127 -0
- package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
- package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
- package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
- package/types/cosmos/tx/v1beta1/service.ts +2319 -0
- package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
- package/types/cosmos/upgrade/module/v1/module.ts +100 -0
- package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
- package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
- package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
- package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
- package/types/cosmos/vesting/module/v1/module.ts +77 -0
- package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
- package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
- package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
- package/types/cosmos_proto/bundle.ts +5 -0
- package/types/cosmos_proto/cosmos.ts +355 -0
- package/types/cosmwasm/bundle.ts +39 -0
- package/types/cosmwasm/client.ts +48 -0
- package/types/cosmwasm/lcd.ts +132 -0
- package/types/cosmwasm/rpc.query.ts +95 -0
- package/types/cosmwasm/rpc.tx.ts +76 -0
- package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
- package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
- package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
- package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
- package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
- package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
- package/types/cosmwasm/wasm/v1/query.ts +3339 -0
- package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
- package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
- package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
- package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
- package/types/cosmwasm/wasm/v1/types.ts +1193 -0
- package/types/gogoproto/bundle.ts +5 -0
- package/types/gogoproto/gogo.ts +1 -0
- package/types/google/api/annotations.ts +1 -0
- package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
- package/types/google/api/apikeys/v2/resources.ts +1268 -0
- package/types/google/api/auth.ts +1175 -0
- package/types/google/api/backend.ts +691 -0
- package/types/google/api/billing.ts +333 -0
- package/types/google/api/client.ts +3100 -0
- package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
- package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
- package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
- package/types/google/api/config_change.ts +385 -0
- package/types/google/api/consumer.ts +362 -0
- package/types/google/api/context.ts +418 -0
- package/types/google/api/control.ts +141 -0
- package/types/google/api/distribution.ts +1253 -0
- package/types/google/api/documentation.ts +738 -0
- package/types/google/api/endpoint.ts +245 -0
- package/types/google/api/error_reason.ts +816 -0
- package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
- package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
- package/types/google/api/expr/v1alpha1/eval.ts +675 -0
- package/types/google/api/expr/v1alpha1/explain.ts +257 -0
- package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
- package/types/google/api/expr/v1alpha1/value.ts +771 -0
- package/types/google/api/expr/v1beta1/decl.ts +563 -0
- package/types/google/api/expr/v1beta1/eval.ts +758 -0
- package/types/google/api/expr/v1beta1/expr.ts +1750 -0
- package/types/google/api/expr/v1beta1/source.ts +446 -0
- package/types/google/api/expr/v1beta1/value.ts +771 -0
- package/types/google/api/field_behavior.ts +136 -0
- package/types/google/api/field_info.ts +319 -0
- package/types/google/api/http.ts +1362 -0
- package/types/google/api/httpbody.ts +270 -0
- package/types/google/api/label.ts +174 -0
- package/types/google/api/launch_stage.ts +112 -0
- package/types/google/api/log.ts +201 -0
- package/types/google/api/logging.ts +355 -0
- package/types/google/api/metric.ts +1174 -0
- package/types/google/api/monitored_resource.ts +841 -0
- package/types/google/api/monitoring.ts +430 -0
- package/types/google/api/policy.ts +314 -0
- package/types/google/api/quota.ts +1040 -0
- package/types/google/api/resource.ts +769 -0
- package/types/google/api/routing.ts +1405 -0
- package/types/google/api/service.ts +790 -0
- package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
- package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
- package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
- package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
- package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
- package/types/google/api/servicecontrol/v1/operation.ts +544 -0
- package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
- package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
- package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
- package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
- package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
- package/types/google/api/serviceusage/v1/resources.ts +629 -0
- package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
- package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
- package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
- package/types/google/api/source_info.ts +97 -0
- package/types/google/api/system_parameter.ts +461 -0
- package/types/google/api/usage.ts +404 -0
- package/types/google/api/visibility.ts +328 -0
- package/types/google/bundle.ts +115 -0
- package/types/google/logging/type/log_severity.ts +104 -0
- package/types/google/longrunning/operations.ts +1153 -0
- package/types/google/protobuf/any.ts +424 -0
- package/types/google/protobuf/api.ts +942 -0
- package/types/google/protobuf/descriptor.ts +7801 -0
- package/types/google/protobuf/duration.ts +284 -0
- package/types/google/protobuf/empty.ts +93 -0
- package/types/google/protobuf/field_mask.ts +694 -0
- package/types/google/protobuf/source_context.ts +105 -0
- package/types/google/protobuf/struct.ts +584 -0
- package/types/google/protobuf/timestamp.ts +373 -0
- package/types/google/protobuf/type.ts +1279 -0
- package/types/google/protobuf/wrappers.ts +1002 -0
- package/types/google/rpc/code.ts +286 -0
- package/types/google/rpc/context/attribute_context.ts +2517 -0
- package/types/google/rpc/context/audit_context.ts +188 -0
- package/types/google/rpc/error_details.ts +2467 -0
- package/types/google/rpc/http.ts +424 -0
- package/types/google/rpc/status.ts +173 -0
- package/types/helpers.ts +259 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
- package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
- package/types/ibc/applications/transfer/v1/authz.ts +297 -0
- package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
- package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
- package/types/ibc/applications/transfer/v1/packet.ts +186 -0
- package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
- package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
- package/types/ibc/applications/transfer/v1/query.ts +1233 -0
- package/types/ibc/applications/transfer/v1/token.ts +347 -0
- package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
- package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/transfer/v1/tx.ts +579 -0
- package/types/ibc/bundle.ts +265 -0
- package/types/ibc/client.ts +72 -0
- package/types/ibc/core/channel/v1/channel.ts +1455 -0
- package/types/ibc/core/channel/v1/genesis.ts +351 -0
- package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
- package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
- package/types/ibc/core/channel/v1/query.ts +3943 -0
- package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
- package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
- package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
- package/types/ibc/core/channel/v1/tx.ts +2558 -0
- package/types/ibc/core/channel/v2/genesis.ts +433 -0
- package/types/ibc/core/channel/v2/packet.ts +640 -0
- package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
- package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
- package/types/ibc/core/channel/v2/query.ts +2075 -0
- package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
- package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
- package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
- package/types/ibc/core/channel/v2/tx.ts +1003 -0
- package/types/ibc/core/client/v1/client.ts +636 -0
- package/types/ibc/core/client/v1/genesis.ts +448 -0
- package/types/ibc/core/client/v1/query.lcd.ts +102 -0
- package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
- package/types/ibc/core/client/v1/query.ts +2588 -0
- package/types/ibc/core/client/v1/tx.amino.ts +44 -0
- package/types/ibc/core/client/v1/tx.registry.ts +161 -0
- package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
- package/types/ibc/core/client/v1/tx.ts +1796 -0
- package/types/ibc/core/client/v2/config.ts +115 -0
- package/types/ibc/core/client/v2/counterparty.ts +122 -0
- package/types/ibc/core/client/v2/genesis.ts +220 -0
- package/types/ibc/core/client/v2/query.lcd.ts +25 -0
- package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
- package/types/ibc/core/client/v2/query.ts +402 -0
- package/types/ibc/core/client/v2/tx.amino.ts +14 -0
- package/types/ibc/core/client/v2/tx.registry.ts +53 -0
- package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
- package/types/ibc/core/client/v2/tx.ts +453 -0
- package/types/ibc/core/commitment/v1/commitment.ts +321 -0
- package/types/ibc/core/commitment/v2/commitment.ts +193 -0
- package/types/ibc/core/connection/v1/connection.ts +1056 -0
- package/types/ibc/core/connection/v1/genesis.ts +150 -0
- package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
- package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
- package/types/ibc/core/connection/v1/query.ts +1472 -0
- package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
- package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
- package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
- package/types/ibc/core/connection/v1/tx.ts +1456 -0
- package/types/ibc/core/types/v1/genesis.ts +191 -0
- package/types/ibc/lcd.ts +176 -0
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
- package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
- package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
- package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
- package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
- package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
- package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
- package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
- package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
- package/types/ibc/rpc.query.ts +123 -0
- package/types/ibc/rpc.tx.ts +104 -0
- package/types/index.ts +25 -0
- package/types/tendermint/abci/types.ts +6565 -0
- package/types/tendermint/bundle.ts +33 -0
- package/types/tendermint/crypto/keys.ts +106 -0
- package/types/tendermint/crypto/proof.ts +576 -0
- package/types/tendermint/p2p/types.ts +523 -0
- package/types/tendermint/types/block.ts +134 -0
- package/types/tendermint/types/evidence.ts +491 -0
- package/types/tendermint/types/params.ts +839 -0
- package/types/tendermint/types/types.ts +2266 -0
- package/types/tendermint/types/validator.ts +399 -0
- package/types/tendermint/version/types.ts +228 -0
- package/types/utf8.ts +149 -0
- package/types/varint.ts +489 -0
- package/types/xion/bundle.ts +117 -0
- package/types/xion/client.ts +57 -0
- package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
- package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
- package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
- package/types/xion/feeabs/v1beta1/params.ts +189 -0
- package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
- package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
- package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
- package/types/xion/feeabs/v1beta1/query.ts +732 -0
- package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
- package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
- package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
- package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
- package/types/xion/globalfee/v1/genesis.ts +249 -0
- package/types/xion/globalfee/v1/query.lcd.ts +19 -0
- package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
- package/types/xion/globalfee/v1/query.ts +178 -0
- package/types/xion/jwk/v1/audience.ts +224 -0
- package/types/xion/jwk/v1/genesis.ts +117 -0
- package/types/xion/jwk/v1/params.ts +113 -0
- package/types/xion/jwk/v1/query.lcd.ts +52 -0
- package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
- package/types/xion/jwk/v1/query.ts +1697 -0
- package/types/xion/jwk/v1/tx.amino.ts +29 -0
- package/types/xion/jwk/v1/tx.registry.ts +107 -0
- package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
- package/types/xion/jwk/v1/tx.ts +1040 -0
- package/types/xion/lcd.ts +147 -0
- package/types/xion/mint/v1/event.ts +216 -0
- package/types/xion/mint/v1/genesis.ts +114 -0
- package/types/xion/mint/v1/mint.ts +307 -0
- package/types/xion/mint/v1/query.lcd.ts +31 -0
- package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
- package/types/xion/mint/v1/query.ts +508 -0
- package/types/xion/mint/v1/tx.amino.ts +9 -0
- package/types/xion/mint/v1/tx.registry.ts +35 -0
- package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
- package/types/xion/mint/v1/tx.ts +222 -0
- package/types/xion/rpc.query.ts +105 -0
- package/types/xion/rpc.tx.ts +83 -0
- package/types/xion/v1/feegrant.ts +457 -0
- package/types/xion/v1/genesis.ts +116 -0
- package/types/xion/v1/query.rpc.Query.ts +64 -0
- package/types/xion/v1/query.ts +862 -0
- package/types/xion/v1/tx.amino.ts +24 -0
- package/types/xion/v1/tx.registry.ts +89 -0
- package/types/xion/v1/tx.rpc.msg.ts +57 -0
- package/types/xion/v1/tx.ts +793 -0
|
@@ -0,0 +1,1551 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { DecCoin, DecCoinAmino, DecCoinSDKType, Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { Decimal } from "@cosmjs/math";
|
|
5
|
+
/** Params defines the set of params for the distribution module. */
|
|
6
|
+
export interface Params {
|
|
7
|
+
communityTax: string;
|
|
8
|
+
/**
|
|
9
|
+
* Deprecated: The base_proposer_reward field is deprecated and is no longer used
|
|
10
|
+
* in the x/distribution module's reward mechanism.
|
|
11
|
+
*/
|
|
12
|
+
/** @deprecated */
|
|
13
|
+
baseProposerReward: string;
|
|
14
|
+
/**
|
|
15
|
+
* Deprecated: The bonus_proposer_reward field is deprecated and is no longer used
|
|
16
|
+
* in the x/distribution module's reward mechanism.
|
|
17
|
+
*/
|
|
18
|
+
/** @deprecated */
|
|
19
|
+
bonusProposerReward: string;
|
|
20
|
+
withdrawAddrEnabled: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface ParamsProtoMsg {
|
|
23
|
+
typeUrl: "/cosmos.distribution.v1beta1.Params";
|
|
24
|
+
value: Uint8Array;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Params defines the set of params for the distribution module.
|
|
28
|
+
* @name ParamsAmino
|
|
29
|
+
* @package cosmos.distribution.v1beta1
|
|
30
|
+
* @see proto type: cosmos.distribution.v1beta1.Params
|
|
31
|
+
*/
|
|
32
|
+
export interface ParamsAmino {
|
|
33
|
+
community_tax: string;
|
|
34
|
+
/**
|
|
35
|
+
* Deprecated: The base_proposer_reward field is deprecated and is no longer used
|
|
36
|
+
* in the x/distribution module's reward mechanism.
|
|
37
|
+
* @deprecated
|
|
38
|
+
*/
|
|
39
|
+
base_proposer_reward: string;
|
|
40
|
+
/**
|
|
41
|
+
* Deprecated: The bonus_proposer_reward field is deprecated and is no longer used
|
|
42
|
+
* in the x/distribution module's reward mechanism.
|
|
43
|
+
* @deprecated
|
|
44
|
+
*/
|
|
45
|
+
bonus_proposer_reward: string;
|
|
46
|
+
withdraw_addr_enabled?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface ParamsAminoMsg {
|
|
49
|
+
type: "cosmos-sdk/x/distribution/Params";
|
|
50
|
+
value: ParamsAmino;
|
|
51
|
+
}
|
|
52
|
+
/** Params defines the set of params for the distribution module. */
|
|
53
|
+
export interface ParamsSDKType {
|
|
54
|
+
community_tax: string;
|
|
55
|
+
/** @deprecated */
|
|
56
|
+
base_proposer_reward: string;
|
|
57
|
+
/** @deprecated */
|
|
58
|
+
bonus_proposer_reward: string;
|
|
59
|
+
withdraw_addr_enabled: boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* ValidatorHistoricalRewards represents historical rewards for a validator.
|
|
63
|
+
* Height is implicit within the store key.
|
|
64
|
+
* Cumulative reward ratio is the sum from the zeroeth period
|
|
65
|
+
* until this period of rewards / tokens, per the spec.
|
|
66
|
+
* The reference count indicates the number of objects
|
|
67
|
+
* which might need to reference this historical entry at any point.
|
|
68
|
+
* ReferenceCount =
|
|
69
|
+
* number of outstanding delegations which ended the associated period (and
|
|
70
|
+
* might need to read that record)
|
|
71
|
+
* + number of slashes which ended the associated period (and might need to
|
|
72
|
+
* read that record)
|
|
73
|
+
* + one per validator for the zeroeth period, set on initialization
|
|
74
|
+
*/
|
|
75
|
+
export interface ValidatorHistoricalRewards {
|
|
76
|
+
cumulativeRewardRatio: DecCoin[];
|
|
77
|
+
referenceCount: number;
|
|
78
|
+
}
|
|
79
|
+
export interface ValidatorHistoricalRewardsProtoMsg {
|
|
80
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards";
|
|
81
|
+
value: Uint8Array;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* ValidatorHistoricalRewards represents historical rewards for a validator.
|
|
85
|
+
* Height is implicit within the store key.
|
|
86
|
+
* Cumulative reward ratio is the sum from the zeroeth period
|
|
87
|
+
* until this period of rewards / tokens, per the spec.
|
|
88
|
+
* The reference count indicates the number of objects
|
|
89
|
+
* which might need to reference this historical entry at any point.
|
|
90
|
+
* ReferenceCount =
|
|
91
|
+
* number of outstanding delegations which ended the associated period (and
|
|
92
|
+
* might need to read that record)
|
|
93
|
+
* + number of slashes which ended the associated period (and might need to
|
|
94
|
+
* read that record)
|
|
95
|
+
* + one per validator for the zeroeth period, set on initialization
|
|
96
|
+
* @name ValidatorHistoricalRewardsAmino
|
|
97
|
+
* @package cosmos.distribution.v1beta1
|
|
98
|
+
* @see proto type: cosmos.distribution.v1beta1.ValidatorHistoricalRewards
|
|
99
|
+
*/
|
|
100
|
+
export interface ValidatorHistoricalRewardsAmino {
|
|
101
|
+
cumulative_reward_ratio: DecCoinAmino[];
|
|
102
|
+
reference_count?: number;
|
|
103
|
+
}
|
|
104
|
+
export interface ValidatorHistoricalRewardsAminoMsg {
|
|
105
|
+
type: "cosmos-sdk/ValidatorHistoricalRewards";
|
|
106
|
+
value: ValidatorHistoricalRewardsAmino;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* ValidatorHistoricalRewards represents historical rewards for a validator.
|
|
110
|
+
* Height is implicit within the store key.
|
|
111
|
+
* Cumulative reward ratio is the sum from the zeroeth period
|
|
112
|
+
* until this period of rewards / tokens, per the spec.
|
|
113
|
+
* The reference count indicates the number of objects
|
|
114
|
+
* which might need to reference this historical entry at any point.
|
|
115
|
+
* ReferenceCount =
|
|
116
|
+
* number of outstanding delegations which ended the associated period (and
|
|
117
|
+
* might need to read that record)
|
|
118
|
+
* + number of slashes which ended the associated period (and might need to
|
|
119
|
+
* read that record)
|
|
120
|
+
* + one per validator for the zeroeth period, set on initialization
|
|
121
|
+
*/
|
|
122
|
+
export interface ValidatorHistoricalRewardsSDKType {
|
|
123
|
+
cumulative_reward_ratio: DecCoinSDKType[];
|
|
124
|
+
reference_count: number;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* ValidatorCurrentRewards represents current rewards and current
|
|
128
|
+
* period for a validator kept as a running counter and incremented
|
|
129
|
+
* each block as long as the validator's tokens remain constant.
|
|
130
|
+
*/
|
|
131
|
+
export interface ValidatorCurrentRewards {
|
|
132
|
+
rewards: DecCoin[];
|
|
133
|
+
period: bigint;
|
|
134
|
+
}
|
|
135
|
+
export interface ValidatorCurrentRewardsProtoMsg {
|
|
136
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards";
|
|
137
|
+
value: Uint8Array;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* ValidatorCurrentRewards represents current rewards and current
|
|
141
|
+
* period for a validator kept as a running counter and incremented
|
|
142
|
+
* each block as long as the validator's tokens remain constant.
|
|
143
|
+
* @name ValidatorCurrentRewardsAmino
|
|
144
|
+
* @package cosmos.distribution.v1beta1
|
|
145
|
+
* @see proto type: cosmos.distribution.v1beta1.ValidatorCurrentRewards
|
|
146
|
+
*/
|
|
147
|
+
export interface ValidatorCurrentRewardsAmino {
|
|
148
|
+
rewards: DecCoinAmino[];
|
|
149
|
+
period?: string;
|
|
150
|
+
}
|
|
151
|
+
export interface ValidatorCurrentRewardsAminoMsg {
|
|
152
|
+
type: "cosmos-sdk/ValidatorCurrentRewards";
|
|
153
|
+
value: ValidatorCurrentRewardsAmino;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* ValidatorCurrentRewards represents current rewards and current
|
|
157
|
+
* period for a validator kept as a running counter and incremented
|
|
158
|
+
* each block as long as the validator's tokens remain constant.
|
|
159
|
+
*/
|
|
160
|
+
export interface ValidatorCurrentRewardsSDKType {
|
|
161
|
+
rewards: DecCoinSDKType[];
|
|
162
|
+
period: bigint;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* ValidatorAccumulatedCommission represents accumulated commission
|
|
166
|
+
* for a validator kept as a running counter, can be withdrawn at any time.
|
|
167
|
+
*/
|
|
168
|
+
export interface ValidatorAccumulatedCommission {
|
|
169
|
+
commission: DecCoin[];
|
|
170
|
+
}
|
|
171
|
+
export interface ValidatorAccumulatedCommissionProtoMsg {
|
|
172
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission";
|
|
173
|
+
value: Uint8Array;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* ValidatorAccumulatedCommission represents accumulated commission
|
|
177
|
+
* for a validator kept as a running counter, can be withdrawn at any time.
|
|
178
|
+
* @name ValidatorAccumulatedCommissionAmino
|
|
179
|
+
* @package cosmos.distribution.v1beta1
|
|
180
|
+
* @see proto type: cosmos.distribution.v1beta1.ValidatorAccumulatedCommission
|
|
181
|
+
*/
|
|
182
|
+
export interface ValidatorAccumulatedCommissionAmino {
|
|
183
|
+
commission: DecCoinAmino[];
|
|
184
|
+
}
|
|
185
|
+
export interface ValidatorAccumulatedCommissionAminoMsg {
|
|
186
|
+
type: "cosmos-sdk/ValidatorAccumulatedCommission";
|
|
187
|
+
value: ValidatorAccumulatedCommissionAmino;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* ValidatorAccumulatedCommission represents accumulated commission
|
|
191
|
+
* for a validator kept as a running counter, can be withdrawn at any time.
|
|
192
|
+
*/
|
|
193
|
+
export interface ValidatorAccumulatedCommissionSDKType {
|
|
194
|
+
commission: DecCoinSDKType[];
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
|
|
198
|
+
* for a validator inexpensive to track, allows simple sanity checks.
|
|
199
|
+
*/
|
|
200
|
+
export interface ValidatorOutstandingRewards {
|
|
201
|
+
rewards: DecCoin[];
|
|
202
|
+
}
|
|
203
|
+
export interface ValidatorOutstandingRewardsProtoMsg {
|
|
204
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards";
|
|
205
|
+
value: Uint8Array;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
|
|
209
|
+
* for a validator inexpensive to track, allows simple sanity checks.
|
|
210
|
+
* @name ValidatorOutstandingRewardsAmino
|
|
211
|
+
* @package cosmos.distribution.v1beta1
|
|
212
|
+
* @see proto type: cosmos.distribution.v1beta1.ValidatorOutstandingRewards
|
|
213
|
+
*/
|
|
214
|
+
export interface ValidatorOutstandingRewardsAmino {
|
|
215
|
+
rewards: DecCoinAmino[];
|
|
216
|
+
}
|
|
217
|
+
export interface ValidatorOutstandingRewardsAminoMsg {
|
|
218
|
+
type: "cosmos-sdk/ValidatorOutstandingRewards";
|
|
219
|
+
value: ValidatorOutstandingRewardsAmino;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
|
|
223
|
+
* for a validator inexpensive to track, allows simple sanity checks.
|
|
224
|
+
*/
|
|
225
|
+
export interface ValidatorOutstandingRewardsSDKType {
|
|
226
|
+
rewards: DecCoinSDKType[];
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* ValidatorSlashEvent represents a validator slash event.
|
|
230
|
+
* Height is implicit within the store key.
|
|
231
|
+
* This is needed to calculate appropriate amount of staking tokens
|
|
232
|
+
* for delegations which are withdrawn after a slash has occurred.
|
|
233
|
+
*/
|
|
234
|
+
export interface ValidatorSlashEvent {
|
|
235
|
+
validatorPeriod: bigint;
|
|
236
|
+
fraction: string;
|
|
237
|
+
}
|
|
238
|
+
export interface ValidatorSlashEventProtoMsg {
|
|
239
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent";
|
|
240
|
+
value: Uint8Array;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* ValidatorSlashEvent represents a validator slash event.
|
|
244
|
+
* Height is implicit within the store key.
|
|
245
|
+
* This is needed to calculate appropriate amount of staking tokens
|
|
246
|
+
* for delegations which are withdrawn after a slash has occurred.
|
|
247
|
+
* @name ValidatorSlashEventAmino
|
|
248
|
+
* @package cosmos.distribution.v1beta1
|
|
249
|
+
* @see proto type: cosmos.distribution.v1beta1.ValidatorSlashEvent
|
|
250
|
+
*/
|
|
251
|
+
export interface ValidatorSlashEventAmino {
|
|
252
|
+
validator_period?: string;
|
|
253
|
+
fraction?: string;
|
|
254
|
+
}
|
|
255
|
+
export interface ValidatorSlashEventAminoMsg {
|
|
256
|
+
type: "cosmos-sdk/ValidatorSlashEvent";
|
|
257
|
+
value: ValidatorSlashEventAmino;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* ValidatorSlashEvent represents a validator slash event.
|
|
261
|
+
* Height is implicit within the store key.
|
|
262
|
+
* This is needed to calculate appropriate amount of staking tokens
|
|
263
|
+
* for delegations which are withdrawn after a slash has occurred.
|
|
264
|
+
*/
|
|
265
|
+
export interface ValidatorSlashEventSDKType {
|
|
266
|
+
validator_period: bigint;
|
|
267
|
+
fraction: string;
|
|
268
|
+
}
|
|
269
|
+
/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */
|
|
270
|
+
export interface ValidatorSlashEvents {
|
|
271
|
+
validatorSlashEvents: ValidatorSlashEvent[];
|
|
272
|
+
}
|
|
273
|
+
export interface ValidatorSlashEventsProtoMsg {
|
|
274
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents";
|
|
275
|
+
value: Uint8Array;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* ValidatorSlashEvents is a collection of ValidatorSlashEvent messages.
|
|
279
|
+
* @name ValidatorSlashEventsAmino
|
|
280
|
+
* @package cosmos.distribution.v1beta1
|
|
281
|
+
* @see proto type: cosmos.distribution.v1beta1.ValidatorSlashEvents
|
|
282
|
+
*/
|
|
283
|
+
export interface ValidatorSlashEventsAmino {
|
|
284
|
+
validator_slash_events: ValidatorSlashEventAmino[];
|
|
285
|
+
}
|
|
286
|
+
export interface ValidatorSlashEventsAminoMsg {
|
|
287
|
+
type: "cosmos-sdk/ValidatorSlashEvents";
|
|
288
|
+
value: ValidatorSlashEventsAmino;
|
|
289
|
+
}
|
|
290
|
+
/** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */
|
|
291
|
+
export interface ValidatorSlashEventsSDKType {
|
|
292
|
+
validator_slash_events: ValidatorSlashEventSDKType[];
|
|
293
|
+
}
|
|
294
|
+
/** FeePool is the global fee pool for distribution. */
|
|
295
|
+
export interface FeePool {
|
|
296
|
+
communityPool: DecCoin[];
|
|
297
|
+
}
|
|
298
|
+
export interface FeePoolProtoMsg {
|
|
299
|
+
typeUrl: "/cosmos.distribution.v1beta1.FeePool";
|
|
300
|
+
value: Uint8Array;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* FeePool is the global fee pool for distribution.
|
|
304
|
+
* @name FeePoolAmino
|
|
305
|
+
* @package cosmos.distribution.v1beta1
|
|
306
|
+
* @see proto type: cosmos.distribution.v1beta1.FeePool
|
|
307
|
+
*/
|
|
308
|
+
export interface FeePoolAmino {
|
|
309
|
+
community_pool: DecCoinAmino[];
|
|
310
|
+
}
|
|
311
|
+
export interface FeePoolAminoMsg {
|
|
312
|
+
type: "cosmos-sdk/FeePool";
|
|
313
|
+
value: FeePoolAmino;
|
|
314
|
+
}
|
|
315
|
+
/** FeePool is the global fee pool for distribution. */
|
|
316
|
+
export interface FeePoolSDKType {
|
|
317
|
+
community_pool: DecCoinSDKType[];
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* CommunityPoolSpendProposal details a proposal for use of community funds,
|
|
321
|
+
* together with how many coins are proposed to be spent, and to which
|
|
322
|
+
* recipient account.
|
|
323
|
+
*
|
|
324
|
+
* Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no
|
|
325
|
+
* longer a need for an explicit CommunityPoolSpendProposal. To spend community
|
|
326
|
+
* pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov
|
|
327
|
+
* module via a v1 governance proposal.
|
|
328
|
+
*/
|
|
329
|
+
/** @deprecated */
|
|
330
|
+
export interface CommunityPoolSpendProposal {
|
|
331
|
+
$typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal";
|
|
332
|
+
title: string;
|
|
333
|
+
description: string;
|
|
334
|
+
recipient: string;
|
|
335
|
+
amount: Coin[];
|
|
336
|
+
}
|
|
337
|
+
export interface CommunityPoolSpendProposalProtoMsg {
|
|
338
|
+
typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal";
|
|
339
|
+
value: Uint8Array;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* CommunityPoolSpendProposal details a proposal for use of community funds,
|
|
343
|
+
* together with how many coins are proposed to be spent, and to which
|
|
344
|
+
* recipient account.
|
|
345
|
+
*
|
|
346
|
+
* Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no
|
|
347
|
+
* longer a need for an explicit CommunityPoolSpendProposal. To spend community
|
|
348
|
+
* pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov
|
|
349
|
+
* module via a v1 governance proposal.
|
|
350
|
+
* @name CommunityPoolSpendProposalAmino
|
|
351
|
+
* @package cosmos.distribution.v1beta1
|
|
352
|
+
* @see proto type: cosmos.distribution.v1beta1.CommunityPoolSpendProposal
|
|
353
|
+
* @deprecated
|
|
354
|
+
*/
|
|
355
|
+
export interface CommunityPoolSpendProposalAmino {
|
|
356
|
+
title?: string;
|
|
357
|
+
description?: string;
|
|
358
|
+
recipient?: string;
|
|
359
|
+
amount: CoinAmino[];
|
|
360
|
+
}
|
|
361
|
+
export interface CommunityPoolSpendProposalAminoMsg {
|
|
362
|
+
type: "cosmos-sdk/CommunityPoolSpendProposal";
|
|
363
|
+
value: CommunityPoolSpendProposalAmino;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* CommunityPoolSpendProposal details a proposal for use of community funds,
|
|
367
|
+
* together with how many coins are proposed to be spent, and to which
|
|
368
|
+
* recipient account.
|
|
369
|
+
*
|
|
370
|
+
* Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no
|
|
371
|
+
* longer a need for an explicit CommunityPoolSpendProposal. To spend community
|
|
372
|
+
* pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov
|
|
373
|
+
* module via a v1 governance proposal.
|
|
374
|
+
*/
|
|
375
|
+
/** @deprecated */
|
|
376
|
+
export interface CommunityPoolSpendProposalSDKType {
|
|
377
|
+
$typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal";
|
|
378
|
+
title: string;
|
|
379
|
+
description: string;
|
|
380
|
+
recipient: string;
|
|
381
|
+
amount: CoinSDKType[];
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* DelegatorStartingInfo represents the starting info for a delegator reward
|
|
385
|
+
* period. It tracks the previous validator period, the delegation's amount of
|
|
386
|
+
* staking token, and the creation height (to check later on if any slashes have
|
|
387
|
+
* occurred). NOTE: Even though validators are slashed to whole staking tokens,
|
|
388
|
+
* the delegators within the validator may be left with less than a full token,
|
|
389
|
+
* thus sdk.Dec is used.
|
|
390
|
+
*/
|
|
391
|
+
export interface DelegatorStartingInfo {
|
|
392
|
+
previousPeriod: bigint;
|
|
393
|
+
stake: string;
|
|
394
|
+
height: bigint;
|
|
395
|
+
}
|
|
396
|
+
export interface DelegatorStartingInfoProtoMsg {
|
|
397
|
+
typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo";
|
|
398
|
+
value: Uint8Array;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* DelegatorStartingInfo represents the starting info for a delegator reward
|
|
402
|
+
* period. It tracks the previous validator period, the delegation's amount of
|
|
403
|
+
* staking token, and the creation height (to check later on if any slashes have
|
|
404
|
+
* occurred). NOTE: Even though validators are slashed to whole staking tokens,
|
|
405
|
+
* the delegators within the validator may be left with less than a full token,
|
|
406
|
+
* thus sdk.Dec is used.
|
|
407
|
+
* @name DelegatorStartingInfoAmino
|
|
408
|
+
* @package cosmos.distribution.v1beta1
|
|
409
|
+
* @see proto type: cosmos.distribution.v1beta1.DelegatorStartingInfo
|
|
410
|
+
*/
|
|
411
|
+
export interface DelegatorStartingInfoAmino {
|
|
412
|
+
previous_period?: string;
|
|
413
|
+
stake: string;
|
|
414
|
+
height: string;
|
|
415
|
+
}
|
|
416
|
+
export interface DelegatorStartingInfoAminoMsg {
|
|
417
|
+
type: "cosmos-sdk/DelegatorStartingInfo";
|
|
418
|
+
value: DelegatorStartingInfoAmino;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* DelegatorStartingInfo represents the starting info for a delegator reward
|
|
422
|
+
* period. It tracks the previous validator period, the delegation's amount of
|
|
423
|
+
* staking token, and the creation height (to check later on if any slashes have
|
|
424
|
+
* occurred). NOTE: Even though validators are slashed to whole staking tokens,
|
|
425
|
+
* the delegators within the validator may be left with less than a full token,
|
|
426
|
+
* thus sdk.Dec is used.
|
|
427
|
+
*/
|
|
428
|
+
export interface DelegatorStartingInfoSDKType {
|
|
429
|
+
previous_period: bigint;
|
|
430
|
+
stake: string;
|
|
431
|
+
height: bigint;
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* DelegationDelegatorReward represents the properties
|
|
435
|
+
* of a delegator's delegation reward.
|
|
436
|
+
*/
|
|
437
|
+
export interface DelegationDelegatorReward {
|
|
438
|
+
validatorAddress: string;
|
|
439
|
+
reward: DecCoin[];
|
|
440
|
+
}
|
|
441
|
+
export interface DelegationDelegatorRewardProtoMsg {
|
|
442
|
+
typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward";
|
|
443
|
+
value: Uint8Array;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* DelegationDelegatorReward represents the properties
|
|
447
|
+
* of a delegator's delegation reward.
|
|
448
|
+
* @name DelegationDelegatorRewardAmino
|
|
449
|
+
* @package cosmos.distribution.v1beta1
|
|
450
|
+
* @see proto type: cosmos.distribution.v1beta1.DelegationDelegatorReward
|
|
451
|
+
*/
|
|
452
|
+
export interface DelegationDelegatorRewardAmino {
|
|
453
|
+
validator_address?: string;
|
|
454
|
+
reward: DecCoinAmino[];
|
|
455
|
+
}
|
|
456
|
+
export interface DelegationDelegatorRewardAminoMsg {
|
|
457
|
+
type: "cosmos-sdk/DelegationDelegatorReward";
|
|
458
|
+
value: DelegationDelegatorRewardAmino;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* DelegationDelegatorReward represents the properties
|
|
462
|
+
* of a delegator's delegation reward.
|
|
463
|
+
*/
|
|
464
|
+
export interface DelegationDelegatorRewardSDKType {
|
|
465
|
+
validator_address: string;
|
|
466
|
+
reward: DecCoinSDKType[];
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
|
|
470
|
+
* with a deposit
|
|
471
|
+
*/
|
|
472
|
+
export interface CommunityPoolSpendProposalWithDeposit {
|
|
473
|
+
$typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit";
|
|
474
|
+
title: string;
|
|
475
|
+
description: string;
|
|
476
|
+
recipient: string;
|
|
477
|
+
amount: string;
|
|
478
|
+
deposit: string;
|
|
479
|
+
}
|
|
480
|
+
export interface CommunityPoolSpendProposalWithDepositProtoMsg {
|
|
481
|
+
typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit";
|
|
482
|
+
value: Uint8Array;
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
|
|
486
|
+
* with a deposit
|
|
487
|
+
* @name CommunityPoolSpendProposalWithDepositAmino
|
|
488
|
+
* @package cosmos.distribution.v1beta1
|
|
489
|
+
* @see proto type: cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit
|
|
490
|
+
*/
|
|
491
|
+
export interface CommunityPoolSpendProposalWithDepositAmino {
|
|
492
|
+
title?: string;
|
|
493
|
+
description?: string;
|
|
494
|
+
recipient?: string;
|
|
495
|
+
amount?: string;
|
|
496
|
+
deposit?: string;
|
|
497
|
+
}
|
|
498
|
+
export interface CommunityPoolSpendProposalWithDepositAminoMsg {
|
|
499
|
+
type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit";
|
|
500
|
+
value: CommunityPoolSpendProposalWithDepositAmino;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
|
|
504
|
+
* with a deposit
|
|
505
|
+
*/
|
|
506
|
+
export interface CommunityPoolSpendProposalWithDepositSDKType {
|
|
507
|
+
$typeUrl?: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit";
|
|
508
|
+
title: string;
|
|
509
|
+
description: string;
|
|
510
|
+
recipient: string;
|
|
511
|
+
amount: string;
|
|
512
|
+
deposit: string;
|
|
513
|
+
}
|
|
514
|
+
function createBaseParams(): Params {
|
|
515
|
+
return {
|
|
516
|
+
communityTax: "",
|
|
517
|
+
baseProposerReward: "",
|
|
518
|
+
bonusProposerReward: "",
|
|
519
|
+
withdrawAddrEnabled: false
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
export const Params = {
|
|
523
|
+
typeUrl: "/cosmos.distribution.v1beta1.Params",
|
|
524
|
+
encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
525
|
+
if (message.communityTax !== "") {
|
|
526
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.communityTax, 18).atomics);
|
|
527
|
+
}
|
|
528
|
+
if (message.baseProposerReward !== "") {
|
|
529
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.baseProposerReward, 18).atomics);
|
|
530
|
+
}
|
|
531
|
+
if (message.bonusProposerReward !== "") {
|
|
532
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.bonusProposerReward, 18).atomics);
|
|
533
|
+
}
|
|
534
|
+
if (message.withdrawAddrEnabled === true) {
|
|
535
|
+
writer.uint32(32).bool(message.withdrawAddrEnabled);
|
|
536
|
+
}
|
|
537
|
+
return writer;
|
|
538
|
+
},
|
|
539
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params {
|
|
540
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
541
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
542
|
+
const message = createBaseParams();
|
|
543
|
+
while (reader.pos < end) {
|
|
544
|
+
const tag = reader.uint32();
|
|
545
|
+
switch (tag >>> 3) {
|
|
546
|
+
case 1:
|
|
547
|
+
message.communityTax = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
548
|
+
break;
|
|
549
|
+
case 2:
|
|
550
|
+
message.baseProposerReward = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
551
|
+
break;
|
|
552
|
+
case 3:
|
|
553
|
+
message.bonusProposerReward = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
554
|
+
break;
|
|
555
|
+
case 4:
|
|
556
|
+
message.withdrawAddrEnabled = reader.bool();
|
|
557
|
+
break;
|
|
558
|
+
default:
|
|
559
|
+
reader.skipType(tag & 7);
|
|
560
|
+
break;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
return message;
|
|
564
|
+
},
|
|
565
|
+
fromPartial(object: Partial<Params>): Params {
|
|
566
|
+
const message = createBaseParams();
|
|
567
|
+
message.communityTax = object.communityTax ?? "";
|
|
568
|
+
message.baseProposerReward = object.baseProposerReward ?? "";
|
|
569
|
+
message.bonusProposerReward = object.bonusProposerReward ?? "";
|
|
570
|
+
message.withdrawAddrEnabled = object.withdrawAddrEnabled ?? false;
|
|
571
|
+
return message;
|
|
572
|
+
},
|
|
573
|
+
fromAmino(object: ParamsAmino): Params {
|
|
574
|
+
const message = createBaseParams();
|
|
575
|
+
if (object.community_tax !== undefined && object.community_tax !== null) {
|
|
576
|
+
message.communityTax = object.community_tax;
|
|
577
|
+
}
|
|
578
|
+
if (object.base_proposer_reward !== undefined && object.base_proposer_reward !== null) {
|
|
579
|
+
message.baseProposerReward = object.base_proposer_reward;
|
|
580
|
+
}
|
|
581
|
+
if (object.bonus_proposer_reward !== undefined && object.bonus_proposer_reward !== null) {
|
|
582
|
+
message.bonusProposerReward = object.bonus_proposer_reward;
|
|
583
|
+
}
|
|
584
|
+
if (object.withdraw_addr_enabled !== undefined && object.withdraw_addr_enabled !== null) {
|
|
585
|
+
message.withdrawAddrEnabled = object.withdraw_addr_enabled;
|
|
586
|
+
}
|
|
587
|
+
return message;
|
|
588
|
+
},
|
|
589
|
+
toAmino(message: Params): ParamsAmino {
|
|
590
|
+
const obj: any = {};
|
|
591
|
+
obj.community_tax = message.communityTax ?? "";
|
|
592
|
+
obj.base_proposer_reward = message.baseProposerReward ?? "";
|
|
593
|
+
obj.bonus_proposer_reward = message.bonusProposerReward ?? "";
|
|
594
|
+
obj.withdraw_addr_enabled = message.withdrawAddrEnabled === false ? undefined : message.withdrawAddrEnabled;
|
|
595
|
+
return obj;
|
|
596
|
+
},
|
|
597
|
+
fromAminoMsg(object: ParamsAminoMsg): Params {
|
|
598
|
+
return Params.fromAmino(object.value);
|
|
599
|
+
},
|
|
600
|
+
toAminoMsg(message: Params): ParamsAminoMsg {
|
|
601
|
+
return {
|
|
602
|
+
type: "cosmos-sdk/x/distribution/Params",
|
|
603
|
+
value: Params.toAmino(message)
|
|
604
|
+
};
|
|
605
|
+
},
|
|
606
|
+
fromProtoMsg(message: ParamsProtoMsg): Params {
|
|
607
|
+
return Params.decode(message.value);
|
|
608
|
+
},
|
|
609
|
+
toProto(message: Params): Uint8Array {
|
|
610
|
+
return Params.encode(message).finish();
|
|
611
|
+
},
|
|
612
|
+
toProtoMsg(message: Params): ParamsProtoMsg {
|
|
613
|
+
return {
|
|
614
|
+
typeUrl: "/cosmos.distribution.v1beta1.Params",
|
|
615
|
+
value: Params.encode(message).finish()
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
function createBaseValidatorHistoricalRewards(): ValidatorHistoricalRewards {
|
|
620
|
+
return {
|
|
621
|
+
cumulativeRewardRatio: [],
|
|
622
|
+
referenceCount: 0
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
export const ValidatorHistoricalRewards = {
|
|
626
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards",
|
|
627
|
+
encode(message: ValidatorHistoricalRewards, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
628
|
+
for (const v of message.cumulativeRewardRatio) {
|
|
629
|
+
DecCoin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
630
|
+
}
|
|
631
|
+
if (message.referenceCount !== 0) {
|
|
632
|
+
writer.uint32(16).uint32(message.referenceCount);
|
|
633
|
+
}
|
|
634
|
+
return writer;
|
|
635
|
+
},
|
|
636
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorHistoricalRewards {
|
|
637
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
638
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
639
|
+
const message = createBaseValidatorHistoricalRewards();
|
|
640
|
+
while (reader.pos < end) {
|
|
641
|
+
const tag = reader.uint32();
|
|
642
|
+
switch (tag >>> 3) {
|
|
643
|
+
case 1:
|
|
644
|
+
message.cumulativeRewardRatio.push(DecCoin.decode(reader, reader.uint32()));
|
|
645
|
+
break;
|
|
646
|
+
case 2:
|
|
647
|
+
message.referenceCount = reader.uint32();
|
|
648
|
+
break;
|
|
649
|
+
default:
|
|
650
|
+
reader.skipType(tag & 7);
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
return message;
|
|
655
|
+
},
|
|
656
|
+
fromPartial(object: Partial<ValidatorHistoricalRewards>): ValidatorHistoricalRewards {
|
|
657
|
+
const message = createBaseValidatorHistoricalRewards();
|
|
658
|
+
message.cumulativeRewardRatio = object.cumulativeRewardRatio?.map(e => DecCoin.fromPartial(e)) || [];
|
|
659
|
+
message.referenceCount = object.referenceCount ?? 0;
|
|
660
|
+
return message;
|
|
661
|
+
},
|
|
662
|
+
fromAmino(object: ValidatorHistoricalRewardsAmino): ValidatorHistoricalRewards {
|
|
663
|
+
const message = createBaseValidatorHistoricalRewards();
|
|
664
|
+
message.cumulativeRewardRatio = object.cumulative_reward_ratio?.map(e => DecCoin.fromAmino(e)) || [];
|
|
665
|
+
if (object.reference_count !== undefined && object.reference_count !== null) {
|
|
666
|
+
message.referenceCount = object.reference_count;
|
|
667
|
+
}
|
|
668
|
+
return message;
|
|
669
|
+
},
|
|
670
|
+
toAmino(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsAmino {
|
|
671
|
+
const obj: any = {};
|
|
672
|
+
if (message.cumulativeRewardRatio) {
|
|
673
|
+
obj.cumulative_reward_ratio = message.cumulativeRewardRatio.map(e => e ? DecCoin.toAmino(e) : undefined);
|
|
674
|
+
} else {
|
|
675
|
+
obj.cumulative_reward_ratio = message.cumulativeRewardRatio;
|
|
676
|
+
}
|
|
677
|
+
obj.reference_count = message.referenceCount === 0 ? undefined : message.referenceCount;
|
|
678
|
+
return obj;
|
|
679
|
+
},
|
|
680
|
+
fromAminoMsg(object: ValidatorHistoricalRewardsAminoMsg): ValidatorHistoricalRewards {
|
|
681
|
+
return ValidatorHistoricalRewards.fromAmino(object.value);
|
|
682
|
+
},
|
|
683
|
+
toAminoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsAminoMsg {
|
|
684
|
+
return {
|
|
685
|
+
type: "cosmos-sdk/ValidatorHistoricalRewards",
|
|
686
|
+
value: ValidatorHistoricalRewards.toAmino(message)
|
|
687
|
+
};
|
|
688
|
+
},
|
|
689
|
+
fromProtoMsg(message: ValidatorHistoricalRewardsProtoMsg): ValidatorHistoricalRewards {
|
|
690
|
+
return ValidatorHistoricalRewards.decode(message.value);
|
|
691
|
+
},
|
|
692
|
+
toProto(message: ValidatorHistoricalRewards): Uint8Array {
|
|
693
|
+
return ValidatorHistoricalRewards.encode(message).finish();
|
|
694
|
+
},
|
|
695
|
+
toProtoMsg(message: ValidatorHistoricalRewards): ValidatorHistoricalRewardsProtoMsg {
|
|
696
|
+
return {
|
|
697
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards",
|
|
698
|
+
value: ValidatorHistoricalRewards.encode(message).finish()
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
function createBaseValidatorCurrentRewards(): ValidatorCurrentRewards {
|
|
703
|
+
return {
|
|
704
|
+
rewards: [],
|
|
705
|
+
period: BigInt(0)
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
export const ValidatorCurrentRewards = {
|
|
709
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards",
|
|
710
|
+
encode(message: ValidatorCurrentRewards, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
711
|
+
for (const v of message.rewards) {
|
|
712
|
+
DecCoin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
713
|
+
}
|
|
714
|
+
if (message.period !== BigInt(0)) {
|
|
715
|
+
writer.uint32(16).uint64(message.period);
|
|
716
|
+
}
|
|
717
|
+
return writer;
|
|
718
|
+
},
|
|
719
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorCurrentRewards {
|
|
720
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
721
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
722
|
+
const message = createBaseValidatorCurrentRewards();
|
|
723
|
+
while (reader.pos < end) {
|
|
724
|
+
const tag = reader.uint32();
|
|
725
|
+
switch (tag >>> 3) {
|
|
726
|
+
case 1:
|
|
727
|
+
message.rewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
728
|
+
break;
|
|
729
|
+
case 2:
|
|
730
|
+
message.period = reader.uint64();
|
|
731
|
+
break;
|
|
732
|
+
default:
|
|
733
|
+
reader.skipType(tag & 7);
|
|
734
|
+
break;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
return message;
|
|
738
|
+
},
|
|
739
|
+
fromPartial(object: Partial<ValidatorCurrentRewards>): ValidatorCurrentRewards {
|
|
740
|
+
const message = createBaseValidatorCurrentRewards();
|
|
741
|
+
message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || [];
|
|
742
|
+
message.period = object.period !== undefined && object.period !== null ? BigInt(object.period.toString()) : BigInt(0);
|
|
743
|
+
return message;
|
|
744
|
+
},
|
|
745
|
+
fromAmino(object: ValidatorCurrentRewardsAmino): ValidatorCurrentRewards {
|
|
746
|
+
const message = createBaseValidatorCurrentRewards();
|
|
747
|
+
message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || [];
|
|
748
|
+
if (object.period !== undefined && object.period !== null) {
|
|
749
|
+
message.period = BigInt(object.period);
|
|
750
|
+
}
|
|
751
|
+
return message;
|
|
752
|
+
},
|
|
753
|
+
toAmino(message: ValidatorCurrentRewards): ValidatorCurrentRewardsAmino {
|
|
754
|
+
const obj: any = {};
|
|
755
|
+
if (message.rewards) {
|
|
756
|
+
obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined);
|
|
757
|
+
} else {
|
|
758
|
+
obj.rewards = message.rewards;
|
|
759
|
+
}
|
|
760
|
+
obj.period = message.period !== BigInt(0) ? message.period?.toString() : undefined;
|
|
761
|
+
return obj;
|
|
762
|
+
},
|
|
763
|
+
fromAminoMsg(object: ValidatorCurrentRewardsAminoMsg): ValidatorCurrentRewards {
|
|
764
|
+
return ValidatorCurrentRewards.fromAmino(object.value);
|
|
765
|
+
},
|
|
766
|
+
toAminoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsAminoMsg {
|
|
767
|
+
return {
|
|
768
|
+
type: "cosmos-sdk/ValidatorCurrentRewards",
|
|
769
|
+
value: ValidatorCurrentRewards.toAmino(message)
|
|
770
|
+
};
|
|
771
|
+
},
|
|
772
|
+
fromProtoMsg(message: ValidatorCurrentRewardsProtoMsg): ValidatorCurrentRewards {
|
|
773
|
+
return ValidatorCurrentRewards.decode(message.value);
|
|
774
|
+
},
|
|
775
|
+
toProto(message: ValidatorCurrentRewards): Uint8Array {
|
|
776
|
+
return ValidatorCurrentRewards.encode(message).finish();
|
|
777
|
+
},
|
|
778
|
+
toProtoMsg(message: ValidatorCurrentRewards): ValidatorCurrentRewardsProtoMsg {
|
|
779
|
+
return {
|
|
780
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards",
|
|
781
|
+
value: ValidatorCurrentRewards.encode(message).finish()
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
function createBaseValidatorAccumulatedCommission(): ValidatorAccumulatedCommission {
|
|
786
|
+
return {
|
|
787
|
+
commission: []
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
export const ValidatorAccumulatedCommission = {
|
|
791
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission",
|
|
792
|
+
encode(message: ValidatorAccumulatedCommission, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
793
|
+
for (const v of message.commission) {
|
|
794
|
+
DecCoin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
795
|
+
}
|
|
796
|
+
return writer;
|
|
797
|
+
},
|
|
798
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorAccumulatedCommission {
|
|
799
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
800
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
801
|
+
const message = createBaseValidatorAccumulatedCommission();
|
|
802
|
+
while (reader.pos < end) {
|
|
803
|
+
const tag = reader.uint32();
|
|
804
|
+
switch (tag >>> 3) {
|
|
805
|
+
case 1:
|
|
806
|
+
message.commission.push(DecCoin.decode(reader, reader.uint32()));
|
|
807
|
+
break;
|
|
808
|
+
default:
|
|
809
|
+
reader.skipType(tag & 7);
|
|
810
|
+
break;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
return message;
|
|
814
|
+
},
|
|
815
|
+
fromPartial(object: Partial<ValidatorAccumulatedCommission>): ValidatorAccumulatedCommission {
|
|
816
|
+
const message = createBaseValidatorAccumulatedCommission();
|
|
817
|
+
message.commission = object.commission?.map(e => DecCoin.fromPartial(e)) || [];
|
|
818
|
+
return message;
|
|
819
|
+
},
|
|
820
|
+
fromAmino(object: ValidatorAccumulatedCommissionAmino): ValidatorAccumulatedCommission {
|
|
821
|
+
const message = createBaseValidatorAccumulatedCommission();
|
|
822
|
+
message.commission = object.commission?.map(e => DecCoin.fromAmino(e)) || [];
|
|
823
|
+
return message;
|
|
824
|
+
},
|
|
825
|
+
toAmino(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionAmino {
|
|
826
|
+
const obj: any = {};
|
|
827
|
+
if (message.commission) {
|
|
828
|
+
obj.commission = message.commission.map(e => e ? DecCoin.toAmino(e) : undefined);
|
|
829
|
+
} else {
|
|
830
|
+
obj.commission = message.commission;
|
|
831
|
+
}
|
|
832
|
+
return obj;
|
|
833
|
+
},
|
|
834
|
+
fromAminoMsg(object: ValidatorAccumulatedCommissionAminoMsg): ValidatorAccumulatedCommission {
|
|
835
|
+
return ValidatorAccumulatedCommission.fromAmino(object.value);
|
|
836
|
+
},
|
|
837
|
+
toAminoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionAminoMsg {
|
|
838
|
+
return {
|
|
839
|
+
type: "cosmos-sdk/ValidatorAccumulatedCommission",
|
|
840
|
+
value: ValidatorAccumulatedCommission.toAmino(message)
|
|
841
|
+
};
|
|
842
|
+
},
|
|
843
|
+
fromProtoMsg(message: ValidatorAccumulatedCommissionProtoMsg): ValidatorAccumulatedCommission {
|
|
844
|
+
return ValidatorAccumulatedCommission.decode(message.value);
|
|
845
|
+
},
|
|
846
|
+
toProto(message: ValidatorAccumulatedCommission): Uint8Array {
|
|
847
|
+
return ValidatorAccumulatedCommission.encode(message).finish();
|
|
848
|
+
},
|
|
849
|
+
toProtoMsg(message: ValidatorAccumulatedCommission): ValidatorAccumulatedCommissionProtoMsg {
|
|
850
|
+
return {
|
|
851
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission",
|
|
852
|
+
value: ValidatorAccumulatedCommission.encode(message).finish()
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
function createBaseValidatorOutstandingRewards(): ValidatorOutstandingRewards {
|
|
857
|
+
return {
|
|
858
|
+
rewards: []
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
export const ValidatorOutstandingRewards = {
|
|
862
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards",
|
|
863
|
+
encode(message: ValidatorOutstandingRewards, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
864
|
+
for (const v of message.rewards) {
|
|
865
|
+
DecCoin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
866
|
+
}
|
|
867
|
+
return writer;
|
|
868
|
+
},
|
|
869
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorOutstandingRewards {
|
|
870
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
871
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
872
|
+
const message = createBaseValidatorOutstandingRewards();
|
|
873
|
+
while (reader.pos < end) {
|
|
874
|
+
const tag = reader.uint32();
|
|
875
|
+
switch (tag >>> 3) {
|
|
876
|
+
case 1:
|
|
877
|
+
message.rewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
878
|
+
break;
|
|
879
|
+
default:
|
|
880
|
+
reader.skipType(tag & 7);
|
|
881
|
+
break;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
return message;
|
|
885
|
+
},
|
|
886
|
+
fromPartial(object: Partial<ValidatorOutstandingRewards>): ValidatorOutstandingRewards {
|
|
887
|
+
const message = createBaseValidatorOutstandingRewards();
|
|
888
|
+
message.rewards = object.rewards?.map(e => DecCoin.fromPartial(e)) || [];
|
|
889
|
+
return message;
|
|
890
|
+
},
|
|
891
|
+
fromAmino(object: ValidatorOutstandingRewardsAmino): ValidatorOutstandingRewards {
|
|
892
|
+
const message = createBaseValidatorOutstandingRewards();
|
|
893
|
+
message.rewards = object.rewards?.map(e => DecCoin.fromAmino(e)) || [];
|
|
894
|
+
return message;
|
|
895
|
+
},
|
|
896
|
+
toAmino(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsAmino {
|
|
897
|
+
const obj: any = {};
|
|
898
|
+
if (message.rewards) {
|
|
899
|
+
obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined);
|
|
900
|
+
} else {
|
|
901
|
+
obj.rewards = message.rewards;
|
|
902
|
+
}
|
|
903
|
+
return obj;
|
|
904
|
+
},
|
|
905
|
+
fromAminoMsg(object: ValidatorOutstandingRewardsAminoMsg): ValidatorOutstandingRewards {
|
|
906
|
+
return ValidatorOutstandingRewards.fromAmino(object.value);
|
|
907
|
+
},
|
|
908
|
+
toAminoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsAminoMsg {
|
|
909
|
+
return {
|
|
910
|
+
type: "cosmos-sdk/ValidatorOutstandingRewards",
|
|
911
|
+
value: ValidatorOutstandingRewards.toAmino(message)
|
|
912
|
+
};
|
|
913
|
+
},
|
|
914
|
+
fromProtoMsg(message: ValidatorOutstandingRewardsProtoMsg): ValidatorOutstandingRewards {
|
|
915
|
+
return ValidatorOutstandingRewards.decode(message.value);
|
|
916
|
+
},
|
|
917
|
+
toProto(message: ValidatorOutstandingRewards): Uint8Array {
|
|
918
|
+
return ValidatorOutstandingRewards.encode(message).finish();
|
|
919
|
+
},
|
|
920
|
+
toProtoMsg(message: ValidatorOutstandingRewards): ValidatorOutstandingRewardsProtoMsg {
|
|
921
|
+
return {
|
|
922
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards",
|
|
923
|
+
value: ValidatorOutstandingRewards.encode(message).finish()
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
function createBaseValidatorSlashEvent(): ValidatorSlashEvent {
|
|
928
|
+
return {
|
|
929
|
+
validatorPeriod: BigInt(0),
|
|
930
|
+
fraction: ""
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
export const ValidatorSlashEvent = {
|
|
934
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent",
|
|
935
|
+
encode(message: ValidatorSlashEvent, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
936
|
+
if (message.validatorPeriod !== BigInt(0)) {
|
|
937
|
+
writer.uint32(8).uint64(message.validatorPeriod);
|
|
938
|
+
}
|
|
939
|
+
if (message.fraction !== "") {
|
|
940
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.fraction, 18).atomics);
|
|
941
|
+
}
|
|
942
|
+
return writer;
|
|
943
|
+
},
|
|
944
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvent {
|
|
945
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
946
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
947
|
+
const message = createBaseValidatorSlashEvent();
|
|
948
|
+
while (reader.pos < end) {
|
|
949
|
+
const tag = reader.uint32();
|
|
950
|
+
switch (tag >>> 3) {
|
|
951
|
+
case 1:
|
|
952
|
+
message.validatorPeriod = reader.uint64();
|
|
953
|
+
break;
|
|
954
|
+
case 2:
|
|
955
|
+
message.fraction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
956
|
+
break;
|
|
957
|
+
default:
|
|
958
|
+
reader.skipType(tag & 7);
|
|
959
|
+
break;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
return message;
|
|
963
|
+
},
|
|
964
|
+
fromPartial(object: Partial<ValidatorSlashEvent>): ValidatorSlashEvent {
|
|
965
|
+
const message = createBaseValidatorSlashEvent();
|
|
966
|
+
message.validatorPeriod = object.validatorPeriod !== undefined && object.validatorPeriod !== null ? BigInt(object.validatorPeriod.toString()) : BigInt(0);
|
|
967
|
+
message.fraction = object.fraction ?? "";
|
|
968
|
+
return message;
|
|
969
|
+
},
|
|
970
|
+
fromAmino(object: ValidatorSlashEventAmino): ValidatorSlashEvent {
|
|
971
|
+
const message = createBaseValidatorSlashEvent();
|
|
972
|
+
if (object.validator_period !== undefined && object.validator_period !== null) {
|
|
973
|
+
message.validatorPeriod = BigInt(object.validator_period);
|
|
974
|
+
}
|
|
975
|
+
if (object.fraction !== undefined && object.fraction !== null) {
|
|
976
|
+
message.fraction = object.fraction;
|
|
977
|
+
}
|
|
978
|
+
return message;
|
|
979
|
+
},
|
|
980
|
+
toAmino(message: ValidatorSlashEvent): ValidatorSlashEventAmino {
|
|
981
|
+
const obj: any = {};
|
|
982
|
+
obj.validator_period = message.validatorPeriod !== BigInt(0) ? message.validatorPeriod?.toString() : undefined;
|
|
983
|
+
obj.fraction = message.fraction === "" ? undefined : message.fraction;
|
|
984
|
+
return obj;
|
|
985
|
+
},
|
|
986
|
+
fromAminoMsg(object: ValidatorSlashEventAminoMsg): ValidatorSlashEvent {
|
|
987
|
+
return ValidatorSlashEvent.fromAmino(object.value);
|
|
988
|
+
},
|
|
989
|
+
toAminoMsg(message: ValidatorSlashEvent): ValidatorSlashEventAminoMsg {
|
|
990
|
+
return {
|
|
991
|
+
type: "cosmos-sdk/ValidatorSlashEvent",
|
|
992
|
+
value: ValidatorSlashEvent.toAmino(message)
|
|
993
|
+
};
|
|
994
|
+
},
|
|
995
|
+
fromProtoMsg(message: ValidatorSlashEventProtoMsg): ValidatorSlashEvent {
|
|
996
|
+
return ValidatorSlashEvent.decode(message.value);
|
|
997
|
+
},
|
|
998
|
+
toProto(message: ValidatorSlashEvent): Uint8Array {
|
|
999
|
+
return ValidatorSlashEvent.encode(message).finish();
|
|
1000
|
+
},
|
|
1001
|
+
toProtoMsg(message: ValidatorSlashEvent): ValidatorSlashEventProtoMsg {
|
|
1002
|
+
return {
|
|
1003
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent",
|
|
1004
|
+
value: ValidatorSlashEvent.encode(message).finish()
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
};
|
|
1008
|
+
function createBaseValidatorSlashEvents(): ValidatorSlashEvents {
|
|
1009
|
+
return {
|
|
1010
|
+
validatorSlashEvents: []
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1013
|
+
export const ValidatorSlashEvents = {
|
|
1014
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents",
|
|
1015
|
+
encode(message: ValidatorSlashEvents, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1016
|
+
for (const v of message.validatorSlashEvents) {
|
|
1017
|
+
ValidatorSlashEvent.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1018
|
+
}
|
|
1019
|
+
return writer;
|
|
1020
|
+
},
|
|
1021
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSlashEvents {
|
|
1022
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1023
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1024
|
+
const message = createBaseValidatorSlashEvents();
|
|
1025
|
+
while (reader.pos < end) {
|
|
1026
|
+
const tag = reader.uint32();
|
|
1027
|
+
switch (tag >>> 3) {
|
|
1028
|
+
case 1:
|
|
1029
|
+
message.validatorSlashEvents.push(ValidatorSlashEvent.decode(reader, reader.uint32()));
|
|
1030
|
+
break;
|
|
1031
|
+
default:
|
|
1032
|
+
reader.skipType(tag & 7);
|
|
1033
|
+
break;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
return message;
|
|
1037
|
+
},
|
|
1038
|
+
fromPartial(object: Partial<ValidatorSlashEvents>): ValidatorSlashEvents {
|
|
1039
|
+
const message = createBaseValidatorSlashEvents();
|
|
1040
|
+
message.validatorSlashEvents = object.validatorSlashEvents?.map(e => ValidatorSlashEvent.fromPartial(e)) || [];
|
|
1041
|
+
return message;
|
|
1042
|
+
},
|
|
1043
|
+
fromAmino(object: ValidatorSlashEventsAmino): ValidatorSlashEvents {
|
|
1044
|
+
const message = createBaseValidatorSlashEvents();
|
|
1045
|
+
message.validatorSlashEvents = object.validator_slash_events?.map(e => ValidatorSlashEvent.fromAmino(e)) || [];
|
|
1046
|
+
return message;
|
|
1047
|
+
},
|
|
1048
|
+
toAmino(message: ValidatorSlashEvents): ValidatorSlashEventsAmino {
|
|
1049
|
+
const obj: any = {};
|
|
1050
|
+
if (message.validatorSlashEvents) {
|
|
1051
|
+
obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEvent.toAmino(e) : undefined);
|
|
1052
|
+
} else {
|
|
1053
|
+
obj.validator_slash_events = message.validatorSlashEvents;
|
|
1054
|
+
}
|
|
1055
|
+
return obj;
|
|
1056
|
+
},
|
|
1057
|
+
fromAminoMsg(object: ValidatorSlashEventsAminoMsg): ValidatorSlashEvents {
|
|
1058
|
+
return ValidatorSlashEvents.fromAmino(object.value);
|
|
1059
|
+
},
|
|
1060
|
+
toAminoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsAminoMsg {
|
|
1061
|
+
return {
|
|
1062
|
+
type: "cosmos-sdk/ValidatorSlashEvents",
|
|
1063
|
+
value: ValidatorSlashEvents.toAmino(message)
|
|
1064
|
+
};
|
|
1065
|
+
},
|
|
1066
|
+
fromProtoMsg(message: ValidatorSlashEventsProtoMsg): ValidatorSlashEvents {
|
|
1067
|
+
return ValidatorSlashEvents.decode(message.value);
|
|
1068
|
+
},
|
|
1069
|
+
toProto(message: ValidatorSlashEvents): Uint8Array {
|
|
1070
|
+
return ValidatorSlashEvents.encode(message).finish();
|
|
1071
|
+
},
|
|
1072
|
+
toProtoMsg(message: ValidatorSlashEvents): ValidatorSlashEventsProtoMsg {
|
|
1073
|
+
return {
|
|
1074
|
+
typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents",
|
|
1075
|
+
value: ValidatorSlashEvents.encode(message).finish()
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
};
|
|
1079
|
+
function createBaseFeePool(): FeePool {
|
|
1080
|
+
return {
|
|
1081
|
+
communityPool: []
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
export const FeePool = {
|
|
1085
|
+
typeUrl: "/cosmos.distribution.v1beta1.FeePool",
|
|
1086
|
+
encode(message: FeePool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1087
|
+
for (const v of message.communityPool) {
|
|
1088
|
+
DecCoin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1089
|
+
}
|
|
1090
|
+
return writer;
|
|
1091
|
+
},
|
|
1092
|
+
decode(input: BinaryReader | Uint8Array, length?: number): FeePool {
|
|
1093
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1094
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1095
|
+
const message = createBaseFeePool();
|
|
1096
|
+
while (reader.pos < end) {
|
|
1097
|
+
const tag = reader.uint32();
|
|
1098
|
+
switch (tag >>> 3) {
|
|
1099
|
+
case 1:
|
|
1100
|
+
message.communityPool.push(DecCoin.decode(reader, reader.uint32()));
|
|
1101
|
+
break;
|
|
1102
|
+
default:
|
|
1103
|
+
reader.skipType(tag & 7);
|
|
1104
|
+
break;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
return message;
|
|
1108
|
+
},
|
|
1109
|
+
fromPartial(object: Partial<FeePool>): FeePool {
|
|
1110
|
+
const message = createBaseFeePool();
|
|
1111
|
+
message.communityPool = object.communityPool?.map(e => DecCoin.fromPartial(e)) || [];
|
|
1112
|
+
return message;
|
|
1113
|
+
},
|
|
1114
|
+
fromAmino(object: FeePoolAmino): FeePool {
|
|
1115
|
+
const message = createBaseFeePool();
|
|
1116
|
+
message.communityPool = object.community_pool?.map(e => DecCoin.fromAmino(e)) || [];
|
|
1117
|
+
return message;
|
|
1118
|
+
},
|
|
1119
|
+
toAmino(message: FeePool): FeePoolAmino {
|
|
1120
|
+
const obj: any = {};
|
|
1121
|
+
if (message.communityPool) {
|
|
1122
|
+
obj.community_pool = message.communityPool.map(e => e ? DecCoin.toAmino(e) : undefined);
|
|
1123
|
+
} else {
|
|
1124
|
+
obj.community_pool = message.communityPool;
|
|
1125
|
+
}
|
|
1126
|
+
return obj;
|
|
1127
|
+
},
|
|
1128
|
+
fromAminoMsg(object: FeePoolAminoMsg): FeePool {
|
|
1129
|
+
return FeePool.fromAmino(object.value);
|
|
1130
|
+
},
|
|
1131
|
+
toAminoMsg(message: FeePool): FeePoolAminoMsg {
|
|
1132
|
+
return {
|
|
1133
|
+
type: "cosmos-sdk/FeePool",
|
|
1134
|
+
value: FeePool.toAmino(message)
|
|
1135
|
+
};
|
|
1136
|
+
},
|
|
1137
|
+
fromProtoMsg(message: FeePoolProtoMsg): FeePool {
|
|
1138
|
+
return FeePool.decode(message.value);
|
|
1139
|
+
},
|
|
1140
|
+
toProto(message: FeePool): Uint8Array {
|
|
1141
|
+
return FeePool.encode(message).finish();
|
|
1142
|
+
},
|
|
1143
|
+
toProtoMsg(message: FeePool): FeePoolProtoMsg {
|
|
1144
|
+
return {
|
|
1145
|
+
typeUrl: "/cosmos.distribution.v1beta1.FeePool",
|
|
1146
|
+
value: FeePool.encode(message).finish()
|
|
1147
|
+
};
|
|
1148
|
+
}
|
|
1149
|
+
};
|
|
1150
|
+
function createBaseCommunityPoolSpendProposal(): CommunityPoolSpendProposal {
|
|
1151
|
+
return {
|
|
1152
|
+
$typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",
|
|
1153
|
+
title: "",
|
|
1154
|
+
description: "",
|
|
1155
|
+
recipient: "",
|
|
1156
|
+
amount: []
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
export const CommunityPoolSpendProposal = {
|
|
1160
|
+
typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",
|
|
1161
|
+
encode(message: CommunityPoolSpendProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1162
|
+
if (message.title !== "") {
|
|
1163
|
+
writer.uint32(10).string(message.title);
|
|
1164
|
+
}
|
|
1165
|
+
if (message.description !== "") {
|
|
1166
|
+
writer.uint32(18).string(message.description);
|
|
1167
|
+
}
|
|
1168
|
+
if (message.recipient !== "") {
|
|
1169
|
+
writer.uint32(26).string(message.recipient);
|
|
1170
|
+
}
|
|
1171
|
+
for (const v of message.amount) {
|
|
1172
|
+
Coin.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
1173
|
+
}
|
|
1174
|
+
return writer;
|
|
1175
|
+
},
|
|
1176
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposal {
|
|
1177
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1178
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1179
|
+
const message = createBaseCommunityPoolSpendProposal();
|
|
1180
|
+
while (reader.pos < end) {
|
|
1181
|
+
const tag = reader.uint32();
|
|
1182
|
+
switch (tag >>> 3) {
|
|
1183
|
+
case 1:
|
|
1184
|
+
message.title = reader.string();
|
|
1185
|
+
break;
|
|
1186
|
+
case 2:
|
|
1187
|
+
message.description = reader.string();
|
|
1188
|
+
break;
|
|
1189
|
+
case 3:
|
|
1190
|
+
message.recipient = reader.string();
|
|
1191
|
+
break;
|
|
1192
|
+
case 4:
|
|
1193
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
1194
|
+
break;
|
|
1195
|
+
default:
|
|
1196
|
+
reader.skipType(tag & 7);
|
|
1197
|
+
break;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
return message;
|
|
1201
|
+
},
|
|
1202
|
+
fromPartial(object: Partial<CommunityPoolSpendProposal>): CommunityPoolSpendProposal {
|
|
1203
|
+
const message = createBaseCommunityPoolSpendProposal();
|
|
1204
|
+
message.title = object.title ?? "";
|
|
1205
|
+
message.description = object.description ?? "";
|
|
1206
|
+
message.recipient = object.recipient ?? "";
|
|
1207
|
+
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
|
1208
|
+
return message;
|
|
1209
|
+
},
|
|
1210
|
+
fromAmino(object: CommunityPoolSpendProposalAmino): CommunityPoolSpendProposal {
|
|
1211
|
+
const message = createBaseCommunityPoolSpendProposal();
|
|
1212
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1213
|
+
message.title = object.title;
|
|
1214
|
+
}
|
|
1215
|
+
if (object.description !== undefined && object.description !== null) {
|
|
1216
|
+
message.description = object.description;
|
|
1217
|
+
}
|
|
1218
|
+
if (object.recipient !== undefined && object.recipient !== null) {
|
|
1219
|
+
message.recipient = object.recipient;
|
|
1220
|
+
}
|
|
1221
|
+
message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
|
|
1222
|
+
return message;
|
|
1223
|
+
},
|
|
1224
|
+
toAmino(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAmino {
|
|
1225
|
+
const obj: any = {};
|
|
1226
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1227
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
1228
|
+
obj.recipient = message.recipient === "" ? undefined : message.recipient;
|
|
1229
|
+
if (message.amount) {
|
|
1230
|
+
obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
|
|
1231
|
+
} else {
|
|
1232
|
+
obj.amount = message.amount;
|
|
1233
|
+
}
|
|
1234
|
+
return obj;
|
|
1235
|
+
},
|
|
1236
|
+
fromAminoMsg(object: CommunityPoolSpendProposalAminoMsg): CommunityPoolSpendProposal {
|
|
1237
|
+
return CommunityPoolSpendProposal.fromAmino(object.value);
|
|
1238
|
+
},
|
|
1239
|
+
toAminoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAminoMsg {
|
|
1240
|
+
return {
|
|
1241
|
+
type: "cosmos-sdk/CommunityPoolSpendProposal",
|
|
1242
|
+
value: CommunityPoolSpendProposal.toAmino(message)
|
|
1243
|
+
};
|
|
1244
|
+
},
|
|
1245
|
+
fromProtoMsg(message: CommunityPoolSpendProposalProtoMsg): CommunityPoolSpendProposal {
|
|
1246
|
+
return CommunityPoolSpendProposal.decode(message.value);
|
|
1247
|
+
},
|
|
1248
|
+
toProto(message: CommunityPoolSpendProposal): Uint8Array {
|
|
1249
|
+
return CommunityPoolSpendProposal.encode(message).finish();
|
|
1250
|
+
},
|
|
1251
|
+
toProtoMsg(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalProtoMsg {
|
|
1252
|
+
return {
|
|
1253
|
+
typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",
|
|
1254
|
+
value: CommunityPoolSpendProposal.encode(message).finish()
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
function createBaseDelegatorStartingInfo(): DelegatorStartingInfo {
|
|
1259
|
+
return {
|
|
1260
|
+
previousPeriod: BigInt(0),
|
|
1261
|
+
stake: "",
|
|
1262
|
+
height: BigInt(0)
|
|
1263
|
+
};
|
|
1264
|
+
}
|
|
1265
|
+
export const DelegatorStartingInfo = {
|
|
1266
|
+
typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo",
|
|
1267
|
+
encode(message: DelegatorStartingInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1268
|
+
if (message.previousPeriod !== BigInt(0)) {
|
|
1269
|
+
writer.uint32(8).uint64(message.previousPeriod);
|
|
1270
|
+
}
|
|
1271
|
+
if (message.stake !== "") {
|
|
1272
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.stake, 18).atomics);
|
|
1273
|
+
}
|
|
1274
|
+
if (message.height !== BigInt(0)) {
|
|
1275
|
+
writer.uint32(24).uint64(message.height);
|
|
1276
|
+
}
|
|
1277
|
+
return writer;
|
|
1278
|
+
},
|
|
1279
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DelegatorStartingInfo {
|
|
1280
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1281
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1282
|
+
const message = createBaseDelegatorStartingInfo();
|
|
1283
|
+
while (reader.pos < end) {
|
|
1284
|
+
const tag = reader.uint32();
|
|
1285
|
+
switch (tag >>> 3) {
|
|
1286
|
+
case 1:
|
|
1287
|
+
message.previousPeriod = reader.uint64();
|
|
1288
|
+
break;
|
|
1289
|
+
case 2:
|
|
1290
|
+
message.stake = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1291
|
+
break;
|
|
1292
|
+
case 3:
|
|
1293
|
+
message.height = reader.uint64();
|
|
1294
|
+
break;
|
|
1295
|
+
default:
|
|
1296
|
+
reader.skipType(tag & 7);
|
|
1297
|
+
break;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
return message;
|
|
1301
|
+
},
|
|
1302
|
+
fromPartial(object: Partial<DelegatorStartingInfo>): DelegatorStartingInfo {
|
|
1303
|
+
const message = createBaseDelegatorStartingInfo();
|
|
1304
|
+
message.previousPeriod = object.previousPeriod !== undefined && object.previousPeriod !== null ? BigInt(object.previousPeriod.toString()) : BigInt(0);
|
|
1305
|
+
message.stake = object.stake ?? "";
|
|
1306
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
1307
|
+
return message;
|
|
1308
|
+
},
|
|
1309
|
+
fromAmino(object: DelegatorStartingInfoAmino): DelegatorStartingInfo {
|
|
1310
|
+
const message = createBaseDelegatorStartingInfo();
|
|
1311
|
+
if (object.previous_period !== undefined && object.previous_period !== null) {
|
|
1312
|
+
message.previousPeriod = BigInt(object.previous_period);
|
|
1313
|
+
}
|
|
1314
|
+
if (object.stake !== undefined && object.stake !== null) {
|
|
1315
|
+
message.stake = object.stake;
|
|
1316
|
+
}
|
|
1317
|
+
if (object.height !== undefined && object.height !== null) {
|
|
1318
|
+
message.height = BigInt(object.height);
|
|
1319
|
+
}
|
|
1320
|
+
return message;
|
|
1321
|
+
},
|
|
1322
|
+
toAmino(message: DelegatorStartingInfo): DelegatorStartingInfoAmino {
|
|
1323
|
+
const obj: any = {};
|
|
1324
|
+
obj.previous_period = message.previousPeriod !== BigInt(0) ? message.previousPeriod?.toString() : undefined;
|
|
1325
|
+
obj.stake = message.stake ?? "";
|
|
1326
|
+
obj.height = message.height ? message.height?.toString() : "0";
|
|
1327
|
+
return obj;
|
|
1328
|
+
},
|
|
1329
|
+
fromAminoMsg(object: DelegatorStartingInfoAminoMsg): DelegatorStartingInfo {
|
|
1330
|
+
return DelegatorStartingInfo.fromAmino(object.value);
|
|
1331
|
+
},
|
|
1332
|
+
toAminoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoAminoMsg {
|
|
1333
|
+
return {
|
|
1334
|
+
type: "cosmos-sdk/DelegatorStartingInfo",
|
|
1335
|
+
value: DelegatorStartingInfo.toAmino(message)
|
|
1336
|
+
};
|
|
1337
|
+
},
|
|
1338
|
+
fromProtoMsg(message: DelegatorStartingInfoProtoMsg): DelegatorStartingInfo {
|
|
1339
|
+
return DelegatorStartingInfo.decode(message.value);
|
|
1340
|
+
},
|
|
1341
|
+
toProto(message: DelegatorStartingInfo): Uint8Array {
|
|
1342
|
+
return DelegatorStartingInfo.encode(message).finish();
|
|
1343
|
+
},
|
|
1344
|
+
toProtoMsg(message: DelegatorStartingInfo): DelegatorStartingInfoProtoMsg {
|
|
1345
|
+
return {
|
|
1346
|
+
typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo",
|
|
1347
|
+
value: DelegatorStartingInfo.encode(message).finish()
|
|
1348
|
+
};
|
|
1349
|
+
}
|
|
1350
|
+
};
|
|
1351
|
+
function createBaseDelegationDelegatorReward(): DelegationDelegatorReward {
|
|
1352
|
+
return {
|
|
1353
|
+
validatorAddress: "",
|
|
1354
|
+
reward: []
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
export const DelegationDelegatorReward = {
|
|
1358
|
+
typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward",
|
|
1359
|
+
encode(message: DelegationDelegatorReward, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1360
|
+
if (message.validatorAddress !== "") {
|
|
1361
|
+
writer.uint32(10).string(message.validatorAddress);
|
|
1362
|
+
}
|
|
1363
|
+
for (const v of message.reward) {
|
|
1364
|
+
DecCoin.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
1365
|
+
}
|
|
1366
|
+
return writer;
|
|
1367
|
+
},
|
|
1368
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DelegationDelegatorReward {
|
|
1369
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1370
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1371
|
+
const message = createBaseDelegationDelegatorReward();
|
|
1372
|
+
while (reader.pos < end) {
|
|
1373
|
+
const tag = reader.uint32();
|
|
1374
|
+
switch (tag >>> 3) {
|
|
1375
|
+
case 1:
|
|
1376
|
+
message.validatorAddress = reader.string();
|
|
1377
|
+
break;
|
|
1378
|
+
case 2:
|
|
1379
|
+
message.reward.push(DecCoin.decode(reader, reader.uint32()));
|
|
1380
|
+
break;
|
|
1381
|
+
default:
|
|
1382
|
+
reader.skipType(tag & 7);
|
|
1383
|
+
break;
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
return message;
|
|
1387
|
+
},
|
|
1388
|
+
fromPartial(object: Partial<DelegationDelegatorReward>): DelegationDelegatorReward {
|
|
1389
|
+
const message = createBaseDelegationDelegatorReward();
|
|
1390
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
1391
|
+
message.reward = object.reward?.map(e => DecCoin.fromPartial(e)) || [];
|
|
1392
|
+
return message;
|
|
1393
|
+
},
|
|
1394
|
+
fromAmino(object: DelegationDelegatorRewardAmino): DelegationDelegatorReward {
|
|
1395
|
+
const message = createBaseDelegationDelegatorReward();
|
|
1396
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
1397
|
+
message.validatorAddress = object.validator_address;
|
|
1398
|
+
}
|
|
1399
|
+
message.reward = object.reward?.map(e => DecCoin.fromAmino(e)) || [];
|
|
1400
|
+
return message;
|
|
1401
|
+
},
|
|
1402
|
+
toAmino(message: DelegationDelegatorReward): DelegationDelegatorRewardAmino {
|
|
1403
|
+
const obj: any = {};
|
|
1404
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
1405
|
+
if (message.reward) {
|
|
1406
|
+
obj.reward = message.reward.map(e => e ? DecCoin.toAmino(e) : undefined);
|
|
1407
|
+
} else {
|
|
1408
|
+
obj.reward = message.reward;
|
|
1409
|
+
}
|
|
1410
|
+
return obj;
|
|
1411
|
+
},
|
|
1412
|
+
fromAminoMsg(object: DelegationDelegatorRewardAminoMsg): DelegationDelegatorReward {
|
|
1413
|
+
return DelegationDelegatorReward.fromAmino(object.value);
|
|
1414
|
+
},
|
|
1415
|
+
toAminoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardAminoMsg {
|
|
1416
|
+
return {
|
|
1417
|
+
type: "cosmos-sdk/DelegationDelegatorReward",
|
|
1418
|
+
value: DelegationDelegatorReward.toAmino(message)
|
|
1419
|
+
};
|
|
1420
|
+
},
|
|
1421
|
+
fromProtoMsg(message: DelegationDelegatorRewardProtoMsg): DelegationDelegatorReward {
|
|
1422
|
+
return DelegationDelegatorReward.decode(message.value);
|
|
1423
|
+
},
|
|
1424
|
+
toProto(message: DelegationDelegatorReward): Uint8Array {
|
|
1425
|
+
return DelegationDelegatorReward.encode(message).finish();
|
|
1426
|
+
},
|
|
1427
|
+
toProtoMsg(message: DelegationDelegatorReward): DelegationDelegatorRewardProtoMsg {
|
|
1428
|
+
return {
|
|
1429
|
+
typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward",
|
|
1430
|
+
value: DelegationDelegatorReward.encode(message).finish()
|
|
1431
|
+
};
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
function createBaseCommunityPoolSpendProposalWithDeposit(): CommunityPoolSpendProposalWithDeposit {
|
|
1435
|
+
return {
|
|
1436
|
+
$typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit",
|
|
1437
|
+
title: "",
|
|
1438
|
+
description: "",
|
|
1439
|
+
recipient: "",
|
|
1440
|
+
amount: "",
|
|
1441
|
+
deposit: ""
|
|
1442
|
+
};
|
|
1443
|
+
}
|
|
1444
|
+
export const CommunityPoolSpendProposalWithDeposit = {
|
|
1445
|
+
typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit",
|
|
1446
|
+
encode(message: CommunityPoolSpendProposalWithDeposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1447
|
+
if (message.title !== "") {
|
|
1448
|
+
writer.uint32(10).string(message.title);
|
|
1449
|
+
}
|
|
1450
|
+
if (message.description !== "") {
|
|
1451
|
+
writer.uint32(18).string(message.description);
|
|
1452
|
+
}
|
|
1453
|
+
if (message.recipient !== "") {
|
|
1454
|
+
writer.uint32(26).string(message.recipient);
|
|
1455
|
+
}
|
|
1456
|
+
if (message.amount !== "") {
|
|
1457
|
+
writer.uint32(34).string(message.amount);
|
|
1458
|
+
}
|
|
1459
|
+
if (message.deposit !== "") {
|
|
1460
|
+
writer.uint32(42).string(message.deposit);
|
|
1461
|
+
}
|
|
1462
|
+
return writer;
|
|
1463
|
+
},
|
|
1464
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit {
|
|
1465
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1466
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1467
|
+
const message = createBaseCommunityPoolSpendProposalWithDeposit();
|
|
1468
|
+
while (reader.pos < end) {
|
|
1469
|
+
const tag = reader.uint32();
|
|
1470
|
+
switch (tag >>> 3) {
|
|
1471
|
+
case 1:
|
|
1472
|
+
message.title = reader.string();
|
|
1473
|
+
break;
|
|
1474
|
+
case 2:
|
|
1475
|
+
message.description = reader.string();
|
|
1476
|
+
break;
|
|
1477
|
+
case 3:
|
|
1478
|
+
message.recipient = reader.string();
|
|
1479
|
+
break;
|
|
1480
|
+
case 4:
|
|
1481
|
+
message.amount = reader.string();
|
|
1482
|
+
break;
|
|
1483
|
+
case 5:
|
|
1484
|
+
message.deposit = reader.string();
|
|
1485
|
+
break;
|
|
1486
|
+
default:
|
|
1487
|
+
reader.skipType(tag & 7);
|
|
1488
|
+
break;
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
return message;
|
|
1492
|
+
},
|
|
1493
|
+
fromPartial(object: Partial<CommunityPoolSpendProposalWithDeposit>): CommunityPoolSpendProposalWithDeposit {
|
|
1494
|
+
const message = createBaseCommunityPoolSpendProposalWithDeposit();
|
|
1495
|
+
message.title = object.title ?? "";
|
|
1496
|
+
message.description = object.description ?? "";
|
|
1497
|
+
message.recipient = object.recipient ?? "";
|
|
1498
|
+
message.amount = object.amount ?? "";
|
|
1499
|
+
message.deposit = object.deposit ?? "";
|
|
1500
|
+
return message;
|
|
1501
|
+
},
|
|
1502
|
+
fromAmino(object: CommunityPoolSpendProposalWithDepositAmino): CommunityPoolSpendProposalWithDeposit {
|
|
1503
|
+
const message = createBaseCommunityPoolSpendProposalWithDeposit();
|
|
1504
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1505
|
+
message.title = object.title;
|
|
1506
|
+
}
|
|
1507
|
+
if (object.description !== undefined && object.description !== null) {
|
|
1508
|
+
message.description = object.description;
|
|
1509
|
+
}
|
|
1510
|
+
if (object.recipient !== undefined && object.recipient !== null) {
|
|
1511
|
+
message.recipient = object.recipient;
|
|
1512
|
+
}
|
|
1513
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
1514
|
+
message.amount = object.amount;
|
|
1515
|
+
}
|
|
1516
|
+
if (object.deposit !== undefined && object.deposit !== null) {
|
|
1517
|
+
message.deposit = object.deposit;
|
|
1518
|
+
}
|
|
1519
|
+
return message;
|
|
1520
|
+
},
|
|
1521
|
+
toAmino(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAmino {
|
|
1522
|
+
const obj: any = {};
|
|
1523
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1524
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
1525
|
+
obj.recipient = message.recipient === "" ? undefined : message.recipient;
|
|
1526
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
1527
|
+
obj.deposit = message.deposit === "" ? undefined : message.deposit;
|
|
1528
|
+
return obj;
|
|
1529
|
+
},
|
|
1530
|
+
fromAminoMsg(object: CommunityPoolSpendProposalWithDepositAminoMsg): CommunityPoolSpendProposalWithDeposit {
|
|
1531
|
+
return CommunityPoolSpendProposalWithDeposit.fromAmino(object.value);
|
|
1532
|
+
},
|
|
1533
|
+
toAminoMsg(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAminoMsg {
|
|
1534
|
+
return {
|
|
1535
|
+
type: "cosmos-sdk/CommunityPoolSpendProposalWithDeposit",
|
|
1536
|
+
value: CommunityPoolSpendProposalWithDeposit.toAmino(message)
|
|
1537
|
+
};
|
|
1538
|
+
},
|
|
1539
|
+
fromProtoMsg(message: CommunityPoolSpendProposalWithDepositProtoMsg): CommunityPoolSpendProposalWithDeposit {
|
|
1540
|
+
return CommunityPoolSpendProposalWithDeposit.decode(message.value);
|
|
1541
|
+
},
|
|
1542
|
+
toProto(message: CommunityPoolSpendProposalWithDeposit): Uint8Array {
|
|
1543
|
+
return CommunityPoolSpendProposalWithDeposit.encode(message).finish();
|
|
1544
|
+
},
|
|
1545
|
+
toProtoMsg(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositProtoMsg {
|
|
1546
|
+
return {
|
|
1547
|
+
typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit",
|
|
1548
|
+
value: CommunityPoolSpendProposalWithDeposit.encode(message).finish()
|
|
1549
|
+
};
|
|
1550
|
+
}
|
|
1551
|
+
};
|