@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,1642 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Description, DescriptionAmino, DescriptionSDKType, CommissionRates, CommissionRatesAmino, CommissionRatesSDKType, Params, ParamsAmino, ParamsSDKType } from "./staking";
|
|
3
|
+
import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
|
|
4
|
+
import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin";
|
|
5
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
6
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
7
|
+
import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing";
|
|
8
|
+
import { Decimal } from "@cosmjs/math";
|
|
9
|
+
import { toTimestamp, fromTimestamp } from "../../../helpers";
|
|
10
|
+
import { Pubkey } from "@cosmjs/amino";
|
|
11
|
+
/** MsgCreateValidator defines a SDK message for creating a new validator. */
|
|
12
|
+
export interface MsgCreateValidator {
|
|
13
|
+
description: Description;
|
|
14
|
+
commission: CommissionRates;
|
|
15
|
+
minSelfDelegation: string;
|
|
16
|
+
/**
|
|
17
|
+
* Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated.
|
|
18
|
+
* The validator address bytes and delegator address bytes refer to the same account while creating validator (defer
|
|
19
|
+
* only in bech32 notation).
|
|
20
|
+
*/
|
|
21
|
+
/** @deprecated */
|
|
22
|
+
delegatorAddress: string;
|
|
23
|
+
validatorAddress: string;
|
|
24
|
+
pubkey?: Any | undefined;
|
|
25
|
+
value: Coin;
|
|
26
|
+
}
|
|
27
|
+
export interface MsgCreateValidatorProtoMsg {
|
|
28
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator";
|
|
29
|
+
value: Uint8Array;
|
|
30
|
+
}
|
|
31
|
+
export type MsgCreateValidatorEncoded = Omit<MsgCreateValidator, "pubkey"> & {
|
|
32
|
+
pubkey?: AnyProtoMsg | undefined;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* MsgCreateValidator defines a SDK message for creating a new validator.
|
|
36
|
+
* @name MsgCreateValidatorAmino
|
|
37
|
+
* @package cosmos.staking.v1beta1
|
|
38
|
+
* @see proto type: cosmos.staking.v1beta1.MsgCreateValidator
|
|
39
|
+
*/
|
|
40
|
+
export interface MsgCreateValidatorAmino {
|
|
41
|
+
description: DescriptionAmino;
|
|
42
|
+
commission: CommissionRatesAmino;
|
|
43
|
+
min_self_delegation: string;
|
|
44
|
+
/**
|
|
45
|
+
* Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated.
|
|
46
|
+
* The validator address bytes and delegator address bytes refer to the same account while creating validator (defer
|
|
47
|
+
* only in bech32 notation).
|
|
48
|
+
* @deprecated
|
|
49
|
+
*/
|
|
50
|
+
delegator_address?: string;
|
|
51
|
+
validator_address?: string;
|
|
52
|
+
pubkey?: AnyAmino;
|
|
53
|
+
value: CoinAmino;
|
|
54
|
+
}
|
|
55
|
+
export interface MsgCreateValidatorAminoMsg {
|
|
56
|
+
type: "cosmos-sdk/MsgCreateValidator";
|
|
57
|
+
value: MsgCreateValidatorAmino;
|
|
58
|
+
}
|
|
59
|
+
/** MsgCreateValidator defines a SDK message for creating a new validator. */
|
|
60
|
+
export interface MsgCreateValidatorSDKType {
|
|
61
|
+
description: DescriptionSDKType;
|
|
62
|
+
commission: CommissionRatesSDKType;
|
|
63
|
+
min_self_delegation: string;
|
|
64
|
+
/** @deprecated */
|
|
65
|
+
delegator_address: string;
|
|
66
|
+
validator_address: string;
|
|
67
|
+
pubkey?: AnySDKType | undefined;
|
|
68
|
+
value: CoinSDKType;
|
|
69
|
+
}
|
|
70
|
+
/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */
|
|
71
|
+
export interface MsgCreateValidatorResponse {}
|
|
72
|
+
export interface MsgCreateValidatorResponseProtoMsg {
|
|
73
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse";
|
|
74
|
+
value: Uint8Array;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* MsgCreateValidatorResponse defines the Msg/CreateValidator response type.
|
|
78
|
+
* @name MsgCreateValidatorResponseAmino
|
|
79
|
+
* @package cosmos.staking.v1beta1
|
|
80
|
+
* @see proto type: cosmos.staking.v1beta1.MsgCreateValidatorResponse
|
|
81
|
+
*/
|
|
82
|
+
export interface MsgCreateValidatorResponseAmino {}
|
|
83
|
+
export interface MsgCreateValidatorResponseAminoMsg {
|
|
84
|
+
type: "cosmos-sdk/MsgCreateValidatorResponse";
|
|
85
|
+
value: MsgCreateValidatorResponseAmino;
|
|
86
|
+
}
|
|
87
|
+
/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */
|
|
88
|
+
export interface MsgCreateValidatorResponseSDKType {}
|
|
89
|
+
/** MsgEditValidator defines a SDK message for editing an existing validator. */
|
|
90
|
+
export interface MsgEditValidator {
|
|
91
|
+
description: Description;
|
|
92
|
+
validatorAddress: string;
|
|
93
|
+
/**
|
|
94
|
+
* We pass a reference to the new commission rate and min self delegation as
|
|
95
|
+
* it's not mandatory to update. If not updated, the deserialized rate will be
|
|
96
|
+
* zero with no way to distinguish if an update was intended.
|
|
97
|
+
* REF: #2373
|
|
98
|
+
*/
|
|
99
|
+
commissionRate: string;
|
|
100
|
+
minSelfDelegation: string;
|
|
101
|
+
}
|
|
102
|
+
export interface MsgEditValidatorProtoMsg {
|
|
103
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator";
|
|
104
|
+
value: Uint8Array;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* MsgEditValidator defines a SDK message for editing an existing validator.
|
|
108
|
+
* @name MsgEditValidatorAmino
|
|
109
|
+
* @package cosmos.staking.v1beta1
|
|
110
|
+
* @see proto type: cosmos.staking.v1beta1.MsgEditValidator
|
|
111
|
+
*/
|
|
112
|
+
export interface MsgEditValidatorAmino {
|
|
113
|
+
description: DescriptionAmino;
|
|
114
|
+
validator_address?: string;
|
|
115
|
+
/**
|
|
116
|
+
* We pass a reference to the new commission rate and min self delegation as
|
|
117
|
+
* it's not mandatory to update. If not updated, the deserialized rate will be
|
|
118
|
+
* zero with no way to distinguish if an update was intended.
|
|
119
|
+
* REF: #2373
|
|
120
|
+
*/
|
|
121
|
+
commission_rate?: string;
|
|
122
|
+
min_self_delegation?: string;
|
|
123
|
+
}
|
|
124
|
+
export interface MsgEditValidatorAminoMsg {
|
|
125
|
+
type: "cosmos-sdk/MsgEditValidator";
|
|
126
|
+
value: MsgEditValidatorAmino;
|
|
127
|
+
}
|
|
128
|
+
/** MsgEditValidator defines a SDK message for editing an existing validator. */
|
|
129
|
+
export interface MsgEditValidatorSDKType {
|
|
130
|
+
description: DescriptionSDKType;
|
|
131
|
+
validator_address: string;
|
|
132
|
+
commission_rate: string;
|
|
133
|
+
min_self_delegation: string;
|
|
134
|
+
}
|
|
135
|
+
/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */
|
|
136
|
+
export interface MsgEditValidatorResponse {}
|
|
137
|
+
export interface MsgEditValidatorResponseProtoMsg {
|
|
138
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse";
|
|
139
|
+
value: Uint8Array;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* MsgEditValidatorResponse defines the Msg/EditValidator response type.
|
|
143
|
+
* @name MsgEditValidatorResponseAmino
|
|
144
|
+
* @package cosmos.staking.v1beta1
|
|
145
|
+
* @see proto type: cosmos.staking.v1beta1.MsgEditValidatorResponse
|
|
146
|
+
*/
|
|
147
|
+
export interface MsgEditValidatorResponseAmino {}
|
|
148
|
+
export interface MsgEditValidatorResponseAminoMsg {
|
|
149
|
+
type: "cosmos-sdk/MsgEditValidatorResponse";
|
|
150
|
+
value: MsgEditValidatorResponseAmino;
|
|
151
|
+
}
|
|
152
|
+
/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */
|
|
153
|
+
export interface MsgEditValidatorResponseSDKType {}
|
|
154
|
+
/**
|
|
155
|
+
* MsgDelegate defines a SDK message for performing a delegation of coins
|
|
156
|
+
* from a delegator to a validator.
|
|
157
|
+
*/
|
|
158
|
+
export interface MsgDelegate {
|
|
159
|
+
delegatorAddress: string;
|
|
160
|
+
validatorAddress: string;
|
|
161
|
+
amount: Coin;
|
|
162
|
+
}
|
|
163
|
+
export interface MsgDelegateProtoMsg {
|
|
164
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate";
|
|
165
|
+
value: Uint8Array;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* MsgDelegate defines a SDK message for performing a delegation of coins
|
|
169
|
+
* from a delegator to a validator.
|
|
170
|
+
* @name MsgDelegateAmino
|
|
171
|
+
* @package cosmos.staking.v1beta1
|
|
172
|
+
* @see proto type: cosmos.staking.v1beta1.MsgDelegate
|
|
173
|
+
*/
|
|
174
|
+
export interface MsgDelegateAmino {
|
|
175
|
+
delegator_address?: string;
|
|
176
|
+
validator_address?: string;
|
|
177
|
+
amount: CoinAmino;
|
|
178
|
+
}
|
|
179
|
+
export interface MsgDelegateAminoMsg {
|
|
180
|
+
type: "cosmos-sdk/MsgDelegate";
|
|
181
|
+
value: MsgDelegateAmino;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* MsgDelegate defines a SDK message for performing a delegation of coins
|
|
185
|
+
* from a delegator to a validator.
|
|
186
|
+
*/
|
|
187
|
+
export interface MsgDelegateSDKType {
|
|
188
|
+
delegator_address: string;
|
|
189
|
+
validator_address: string;
|
|
190
|
+
amount: CoinSDKType;
|
|
191
|
+
}
|
|
192
|
+
/** MsgDelegateResponse defines the Msg/Delegate response type. */
|
|
193
|
+
export interface MsgDelegateResponse {}
|
|
194
|
+
export interface MsgDelegateResponseProtoMsg {
|
|
195
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse";
|
|
196
|
+
value: Uint8Array;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* MsgDelegateResponse defines the Msg/Delegate response type.
|
|
200
|
+
* @name MsgDelegateResponseAmino
|
|
201
|
+
* @package cosmos.staking.v1beta1
|
|
202
|
+
* @see proto type: cosmos.staking.v1beta1.MsgDelegateResponse
|
|
203
|
+
*/
|
|
204
|
+
export interface MsgDelegateResponseAmino {}
|
|
205
|
+
export interface MsgDelegateResponseAminoMsg {
|
|
206
|
+
type: "cosmos-sdk/MsgDelegateResponse";
|
|
207
|
+
value: MsgDelegateResponseAmino;
|
|
208
|
+
}
|
|
209
|
+
/** MsgDelegateResponse defines the Msg/Delegate response type. */
|
|
210
|
+
export interface MsgDelegateResponseSDKType {}
|
|
211
|
+
/**
|
|
212
|
+
* MsgBeginRedelegate defines a SDK message for performing a redelegation
|
|
213
|
+
* of coins from a delegator and source validator to a destination validator.
|
|
214
|
+
*/
|
|
215
|
+
export interface MsgBeginRedelegate {
|
|
216
|
+
delegatorAddress: string;
|
|
217
|
+
validatorSrcAddress: string;
|
|
218
|
+
validatorDstAddress: string;
|
|
219
|
+
amount: Coin;
|
|
220
|
+
}
|
|
221
|
+
export interface MsgBeginRedelegateProtoMsg {
|
|
222
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate";
|
|
223
|
+
value: Uint8Array;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* MsgBeginRedelegate defines a SDK message for performing a redelegation
|
|
227
|
+
* of coins from a delegator and source validator to a destination validator.
|
|
228
|
+
* @name MsgBeginRedelegateAmino
|
|
229
|
+
* @package cosmos.staking.v1beta1
|
|
230
|
+
* @see proto type: cosmos.staking.v1beta1.MsgBeginRedelegate
|
|
231
|
+
*/
|
|
232
|
+
export interface MsgBeginRedelegateAmino {
|
|
233
|
+
delegator_address?: string;
|
|
234
|
+
validator_src_address?: string;
|
|
235
|
+
validator_dst_address?: string;
|
|
236
|
+
amount: CoinAmino;
|
|
237
|
+
}
|
|
238
|
+
export interface MsgBeginRedelegateAminoMsg {
|
|
239
|
+
type: "cosmos-sdk/MsgBeginRedelegate";
|
|
240
|
+
value: MsgBeginRedelegateAmino;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* MsgBeginRedelegate defines a SDK message for performing a redelegation
|
|
244
|
+
* of coins from a delegator and source validator to a destination validator.
|
|
245
|
+
*/
|
|
246
|
+
export interface MsgBeginRedelegateSDKType {
|
|
247
|
+
delegator_address: string;
|
|
248
|
+
validator_src_address: string;
|
|
249
|
+
validator_dst_address: string;
|
|
250
|
+
amount: CoinSDKType;
|
|
251
|
+
}
|
|
252
|
+
/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */
|
|
253
|
+
export interface MsgBeginRedelegateResponse {
|
|
254
|
+
completionTime: Date;
|
|
255
|
+
}
|
|
256
|
+
export interface MsgBeginRedelegateResponseProtoMsg {
|
|
257
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse";
|
|
258
|
+
value: Uint8Array;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.
|
|
262
|
+
* @name MsgBeginRedelegateResponseAmino
|
|
263
|
+
* @package cosmos.staking.v1beta1
|
|
264
|
+
* @see proto type: cosmos.staking.v1beta1.MsgBeginRedelegateResponse
|
|
265
|
+
*/
|
|
266
|
+
export interface MsgBeginRedelegateResponseAmino {
|
|
267
|
+
completion_time: string;
|
|
268
|
+
}
|
|
269
|
+
export interface MsgBeginRedelegateResponseAminoMsg {
|
|
270
|
+
type: "cosmos-sdk/MsgBeginRedelegateResponse";
|
|
271
|
+
value: MsgBeginRedelegateResponseAmino;
|
|
272
|
+
}
|
|
273
|
+
/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */
|
|
274
|
+
export interface MsgBeginRedelegateResponseSDKType {
|
|
275
|
+
completion_time: Date;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* MsgUndelegate defines a SDK message for performing an undelegation from a
|
|
279
|
+
* delegate and a validator.
|
|
280
|
+
*/
|
|
281
|
+
export interface MsgUndelegate {
|
|
282
|
+
delegatorAddress: string;
|
|
283
|
+
validatorAddress: string;
|
|
284
|
+
amount: Coin;
|
|
285
|
+
}
|
|
286
|
+
export interface MsgUndelegateProtoMsg {
|
|
287
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate";
|
|
288
|
+
value: Uint8Array;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* MsgUndelegate defines a SDK message for performing an undelegation from a
|
|
292
|
+
* delegate and a validator.
|
|
293
|
+
* @name MsgUndelegateAmino
|
|
294
|
+
* @package cosmos.staking.v1beta1
|
|
295
|
+
* @see proto type: cosmos.staking.v1beta1.MsgUndelegate
|
|
296
|
+
*/
|
|
297
|
+
export interface MsgUndelegateAmino {
|
|
298
|
+
delegator_address?: string;
|
|
299
|
+
validator_address?: string;
|
|
300
|
+
amount: CoinAmino;
|
|
301
|
+
}
|
|
302
|
+
export interface MsgUndelegateAminoMsg {
|
|
303
|
+
type: "cosmos-sdk/MsgUndelegate";
|
|
304
|
+
value: MsgUndelegateAmino;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* MsgUndelegate defines a SDK message for performing an undelegation from a
|
|
308
|
+
* delegate and a validator.
|
|
309
|
+
*/
|
|
310
|
+
export interface MsgUndelegateSDKType {
|
|
311
|
+
delegator_address: string;
|
|
312
|
+
validator_address: string;
|
|
313
|
+
amount: CoinSDKType;
|
|
314
|
+
}
|
|
315
|
+
/** MsgUndelegateResponse defines the Msg/Undelegate response type. */
|
|
316
|
+
export interface MsgUndelegateResponse {
|
|
317
|
+
completionTime: Date;
|
|
318
|
+
/** amount returns the amount of undelegated coins */
|
|
319
|
+
amount: Coin;
|
|
320
|
+
}
|
|
321
|
+
export interface MsgUndelegateResponseProtoMsg {
|
|
322
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse";
|
|
323
|
+
value: Uint8Array;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* MsgUndelegateResponse defines the Msg/Undelegate response type.
|
|
327
|
+
* @name MsgUndelegateResponseAmino
|
|
328
|
+
* @package cosmos.staking.v1beta1
|
|
329
|
+
* @see proto type: cosmos.staking.v1beta1.MsgUndelegateResponse
|
|
330
|
+
*/
|
|
331
|
+
export interface MsgUndelegateResponseAmino {
|
|
332
|
+
completion_time: string;
|
|
333
|
+
/**
|
|
334
|
+
* amount returns the amount of undelegated coins
|
|
335
|
+
*/
|
|
336
|
+
amount: CoinAmino;
|
|
337
|
+
}
|
|
338
|
+
export interface MsgUndelegateResponseAminoMsg {
|
|
339
|
+
type: "cosmos-sdk/MsgUndelegateResponse";
|
|
340
|
+
value: MsgUndelegateResponseAmino;
|
|
341
|
+
}
|
|
342
|
+
/** MsgUndelegateResponse defines the Msg/Undelegate response type. */
|
|
343
|
+
export interface MsgUndelegateResponseSDKType {
|
|
344
|
+
completion_time: Date;
|
|
345
|
+
amount: CoinSDKType;
|
|
346
|
+
}
|
|
347
|
+
/** MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator */
|
|
348
|
+
export interface MsgCancelUnbondingDelegation {
|
|
349
|
+
delegatorAddress: string;
|
|
350
|
+
validatorAddress: string;
|
|
351
|
+
/** amount is always less than or equal to unbonding delegation entry balance */
|
|
352
|
+
amount: Coin;
|
|
353
|
+
/** creation_height is the height which the unbonding took place. */
|
|
354
|
+
creationHeight: bigint;
|
|
355
|
+
}
|
|
356
|
+
export interface MsgCancelUnbondingDelegationProtoMsg {
|
|
357
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation";
|
|
358
|
+
value: Uint8Array;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator
|
|
362
|
+
* @name MsgCancelUnbondingDelegationAmino
|
|
363
|
+
* @package cosmos.staking.v1beta1
|
|
364
|
+
* @see proto type: cosmos.staking.v1beta1.MsgCancelUnbondingDelegation
|
|
365
|
+
*/
|
|
366
|
+
export interface MsgCancelUnbondingDelegationAmino {
|
|
367
|
+
delegator_address?: string;
|
|
368
|
+
validator_address?: string;
|
|
369
|
+
/**
|
|
370
|
+
* amount is always less than or equal to unbonding delegation entry balance
|
|
371
|
+
*/
|
|
372
|
+
amount: CoinAmino;
|
|
373
|
+
/**
|
|
374
|
+
* creation_height is the height which the unbonding took place.
|
|
375
|
+
*/
|
|
376
|
+
creation_height?: string;
|
|
377
|
+
}
|
|
378
|
+
export interface MsgCancelUnbondingDelegationAminoMsg {
|
|
379
|
+
type: "cosmos-sdk/MsgCancelUnbondingDelegation";
|
|
380
|
+
value: MsgCancelUnbondingDelegationAmino;
|
|
381
|
+
}
|
|
382
|
+
/** MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator */
|
|
383
|
+
export interface MsgCancelUnbondingDelegationSDKType {
|
|
384
|
+
delegator_address: string;
|
|
385
|
+
validator_address: string;
|
|
386
|
+
amount: CoinSDKType;
|
|
387
|
+
creation_height: bigint;
|
|
388
|
+
}
|
|
389
|
+
/** MsgCancelUnbondingDelegationResponse */
|
|
390
|
+
export interface MsgCancelUnbondingDelegationResponse {}
|
|
391
|
+
export interface MsgCancelUnbondingDelegationResponseProtoMsg {
|
|
392
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse";
|
|
393
|
+
value: Uint8Array;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* MsgCancelUnbondingDelegationResponse
|
|
397
|
+
* @name MsgCancelUnbondingDelegationResponseAmino
|
|
398
|
+
* @package cosmos.staking.v1beta1
|
|
399
|
+
* @see proto type: cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse
|
|
400
|
+
*/
|
|
401
|
+
export interface MsgCancelUnbondingDelegationResponseAmino {}
|
|
402
|
+
export interface MsgCancelUnbondingDelegationResponseAminoMsg {
|
|
403
|
+
type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse";
|
|
404
|
+
value: MsgCancelUnbondingDelegationResponseAmino;
|
|
405
|
+
}
|
|
406
|
+
/** MsgCancelUnbondingDelegationResponse */
|
|
407
|
+
export interface MsgCancelUnbondingDelegationResponseSDKType {}
|
|
408
|
+
/** MsgUpdateParams is the Msg/UpdateParams request type. */
|
|
409
|
+
export interface MsgUpdateParams {
|
|
410
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
411
|
+
authority: string;
|
|
412
|
+
/**
|
|
413
|
+
* params defines the x/staking parameters to update.
|
|
414
|
+
*
|
|
415
|
+
* NOTE: All parameters must be supplied.
|
|
416
|
+
*/
|
|
417
|
+
params: Params;
|
|
418
|
+
}
|
|
419
|
+
export interface MsgUpdateParamsProtoMsg {
|
|
420
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams";
|
|
421
|
+
value: Uint8Array;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
425
|
+
* @name MsgUpdateParamsAmino
|
|
426
|
+
* @package cosmos.staking.v1beta1
|
|
427
|
+
* @see proto type: cosmos.staking.v1beta1.MsgUpdateParams
|
|
428
|
+
*/
|
|
429
|
+
export interface MsgUpdateParamsAmino {
|
|
430
|
+
/**
|
|
431
|
+
* authority is the address that controls the module (defaults to x/gov unless overwritten).
|
|
432
|
+
*/
|
|
433
|
+
authority?: string;
|
|
434
|
+
/**
|
|
435
|
+
* params defines the x/staking parameters to update.
|
|
436
|
+
*
|
|
437
|
+
* NOTE: All parameters must be supplied.
|
|
438
|
+
*/
|
|
439
|
+
params: ParamsAmino;
|
|
440
|
+
}
|
|
441
|
+
export interface MsgUpdateParamsAminoMsg {
|
|
442
|
+
type: "cosmos-sdk/x/staking/MsgUpdateParams";
|
|
443
|
+
value: MsgUpdateParamsAmino;
|
|
444
|
+
}
|
|
445
|
+
/** MsgUpdateParams is the Msg/UpdateParams request type. */
|
|
446
|
+
export interface MsgUpdateParamsSDKType {
|
|
447
|
+
authority: string;
|
|
448
|
+
params: ParamsSDKType;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
452
|
+
* MsgUpdateParams message.
|
|
453
|
+
*/
|
|
454
|
+
export interface MsgUpdateParamsResponse {}
|
|
455
|
+
export interface MsgUpdateParamsResponseProtoMsg {
|
|
456
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParamsResponse";
|
|
457
|
+
value: Uint8Array;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
461
|
+
* MsgUpdateParams message.
|
|
462
|
+
* @name MsgUpdateParamsResponseAmino
|
|
463
|
+
* @package cosmos.staking.v1beta1
|
|
464
|
+
* @see proto type: cosmos.staking.v1beta1.MsgUpdateParamsResponse
|
|
465
|
+
*/
|
|
466
|
+
export interface MsgUpdateParamsResponseAmino {}
|
|
467
|
+
export interface MsgUpdateParamsResponseAminoMsg {
|
|
468
|
+
type: "cosmos-sdk/MsgUpdateParamsResponse";
|
|
469
|
+
value: MsgUpdateParamsResponseAmino;
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
473
|
+
* MsgUpdateParams message.
|
|
474
|
+
*/
|
|
475
|
+
export interface MsgUpdateParamsResponseSDKType {}
|
|
476
|
+
function createBaseMsgCreateValidator(): MsgCreateValidator {
|
|
477
|
+
return {
|
|
478
|
+
description: Description.fromPartial({}),
|
|
479
|
+
commission: CommissionRates.fromPartial({}),
|
|
480
|
+
minSelfDelegation: "",
|
|
481
|
+
delegatorAddress: "",
|
|
482
|
+
validatorAddress: "",
|
|
483
|
+
pubkey: undefined,
|
|
484
|
+
value: Coin.fromPartial({})
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
export const MsgCreateValidator = {
|
|
488
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
|
|
489
|
+
encode(message: MsgCreateValidator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
490
|
+
if (message.description !== undefined) {
|
|
491
|
+
Description.encode(message.description, writer.uint32(10).fork()).ldelim();
|
|
492
|
+
}
|
|
493
|
+
if (message.commission !== undefined) {
|
|
494
|
+
CommissionRates.encode(message.commission, writer.uint32(18).fork()).ldelim();
|
|
495
|
+
}
|
|
496
|
+
if (message.minSelfDelegation !== "") {
|
|
497
|
+
writer.uint32(26).string(message.minSelfDelegation);
|
|
498
|
+
}
|
|
499
|
+
if (message.delegatorAddress !== "") {
|
|
500
|
+
writer.uint32(34).string(message.delegatorAddress);
|
|
501
|
+
}
|
|
502
|
+
if (message.validatorAddress !== "") {
|
|
503
|
+
writer.uint32(42).string(message.validatorAddress);
|
|
504
|
+
}
|
|
505
|
+
if (message.pubkey !== undefined) {
|
|
506
|
+
Any.encode(message.pubkey as Any, writer.uint32(50).fork()).ldelim();
|
|
507
|
+
}
|
|
508
|
+
if (message.value !== undefined) {
|
|
509
|
+
Coin.encode(message.value, writer.uint32(58).fork()).ldelim();
|
|
510
|
+
}
|
|
511
|
+
return writer;
|
|
512
|
+
},
|
|
513
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidator {
|
|
514
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
515
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
516
|
+
const message = createBaseMsgCreateValidator();
|
|
517
|
+
while (reader.pos < end) {
|
|
518
|
+
const tag = reader.uint32();
|
|
519
|
+
switch (tag >>> 3) {
|
|
520
|
+
case 1:
|
|
521
|
+
message.description = Description.decode(reader, reader.uint32());
|
|
522
|
+
break;
|
|
523
|
+
case 2:
|
|
524
|
+
message.commission = CommissionRates.decode(reader, reader.uint32());
|
|
525
|
+
break;
|
|
526
|
+
case 3:
|
|
527
|
+
message.minSelfDelegation = reader.string();
|
|
528
|
+
break;
|
|
529
|
+
case 4:
|
|
530
|
+
message.delegatorAddress = reader.string();
|
|
531
|
+
break;
|
|
532
|
+
case 5:
|
|
533
|
+
message.validatorAddress = reader.string();
|
|
534
|
+
break;
|
|
535
|
+
case 6:
|
|
536
|
+
message.pubkey = Cosmos_cryptoPubKey_InterfaceDecoder(reader) as Any;
|
|
537
|
+
break;
|
|
538
|
+
case 7:
|
|
539
|
+
message.value = Coin.decode(reader, reader.uint32());
|
|
540
|
+
break;
|
|
541
|
+
default:
|
|
542
|
+
reader.skipType(tag & 7);
|
|
543
|
+
break;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
return message;
|
|
547
|
+
},
|
|
548
|
+
fromPartial(object: Partial<MsgCreateValidator>): MsgCreateValidator {
|
|
549
|
+
const message = createBaseMsgCreateValidator();
|
|
550
|
+
message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined;
|
|
551
|
+
message.commission = object.commission !== undefined && object.commission !== null ? CommissionRates.fromPartial(object.commission) : undefined;
|
|
552
|
+
message.minSelfDelegation = object.minSelfDelegation ?? "";
|
|
553
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
554
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
555
|
+
message.pubkey = object.pubkey !== undefined && object.pubkey !== null ? Any.fromPartial(object.pubkey) : undefined;
|
|
556
|
+
message.value = object.value !== undefined && object.value !== null ? Coin.fromPartial(object.value) : undefined;
|
|
557
|
+
return message;
|
|
558
|
+
},
|
|
559
|
+
fromAmino(object: MsgCreateValidatorAmino): MsgCreateValidator {
|
|
560
|
+
const message = createBaseMsgCreateValidator();
|
|
561
|
+
if (object.description !== undefined && object.description !== null) {
|
|
562
|
+
message.description = Description.fromAmino(object.description);
|
|
563
|
+
}
|
|
564
|
+
if (object.commission !== undefined && object.commission !== null) {
|
|
565
|
+
message.commission = CommissionRates.fromAmino(object.commission);
|
|
566
|
+
}
|
|
567
|
+
if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) {
|
|
568
|
+
message.minSelfDelegation = object.min_self_delegation;
|
|
569
|
+
}
|
|
570
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
571
|
+
message.delegatorAddress = object.delegator_address;
|
|
572
|
+
}
|
|
573
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
574
|
+
message.validatorAddress = object.validator_address;
|
|
575
|
+
}
|
|
576
|
+
if (object.pubkey !== undefined && object.pubkey !== null) {
|
|
577
|
+
message.pubkey = encodePubkey(object.pubkey);
|
|
578
|
+
}
|
|
579
|
+
if (object.value !== undefined && object.value !== null) {
|
|
580
|
+
message.value = Coin.fromAmino(object.value);
|
|
581
|
+
}
|
|
582
|
+
return message;
|
|
583
|
+
},
|
|
584
|
+
toAmino(message: MsgCreateValidator): MsgCreateValidatorAmino {
|
|
585
|
+
const obj: any = {};
|
|
586
|
+
obj.description = message.description ? Description.toAmino(message.description) : Description.toAmino(Description.fromPartial({}));
|
|
587
|
+
obj.commission = message.commission ? CommissionRates.toAmino(message.commission) : CommissionRates.toAmino(CommissionRates.fromPartial({}));
|
|
588
|
+
obj.min_self_delegation = message.minSelfDelegation ?? "";
|
|
589
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
590
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
591
|
+
obj.pubkey = message.pubkey ? decodePubkey(message.pubkey) : undefined;
|
|
592
|
+
obj.value = message.value ? Coin.toAmino(message.value) : Coin.toAmino(Coin.fromPartial({}));
|
|
593
|
+
return obj;
|
|
594
|
+
},
|
|
595
|
+
fromAminoMsg(object: MsgCreateValidatorAminoMsg): MsgCreateValidator {
|
|
596
|
+
return MsgCreateValidator.fromAmino(object.value);
|
|
597
|
+
},
|
|
598
|
+
toAminoMsg(message: MsgCreateValidator): MsgCreateValidatorAminoMsg {
|
|
599
|
+
return {
|
|
600
|
+
type: "cosmos-sdk/MsgCreateValidator",
|
|
601
|
+
value: MsgCreateValidator.toAmino(message)
|
|
602
|
+
};
|
|
603
|
+
},
|
|
604
|
+
fromProtoMsg(message: MsgCreateValidatorProtoMsg): MsgCreateValidator {
|
|
605
|
+
return MsgCreateValidator.decode(message.value);
|
|
606
|
+
},
|
|
607
|
+
toProto(message: MsgCreateValidator): Uint8Array {
|
|
608
|
+
return MsgCreateValidator.encode(message).finish();
|
|
609
|
+
},
|
|
610
|
+
toProtoMsg(message: MsgCreateValidator): MsgCreateValidatorProtoMsg {
|
|
611
|
+
return {
|
|
612
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator",
|
|
613
|
+
value: MsgCreateValidator.encode(message).finish()
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
function createBaseMsgCreateValidatorResponse(): MsgCreateValidatorResponse {
|
|
618
|
+
return {};
|
|
619
|
+
}
|
|
620
|
+
export const MsgCreateValidatorResponse = {
|
|
621
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse",
|
|
622
|
+
encode(_: MsgCreateValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
623
|
+
return writer;
|
|
624
|
+
},
|
|
625
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateValidatorResponse {
|
|
626
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
627
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
628
|
+
const message = createBaseMsgCreateValidatorResponse();
|
|
629
|
+
while (reader.pos < end) {
|
|
630
|
+
const tag = reader.uint32();
|
|
631
|
+
switch (tag >>> 3) {
|
|
632
|
+
default:
|
|
633
|
+
reader.skipType(tag & 7);
|
|
634
|
+
break;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
return message;
|
|
638
|
+
},
|
|
639
|
+
fromPartial(_: Partial<MsgCreateValidatorResponse>): MsgCreateValidatorResponse {
|
|
640
|
+
const message = createBaseMsgCreateValidatorResponse();
|
|
641
|
+
return message;
|
|
642
|
+
},
|
|
643
|
+
fromAmino(_: MsgCreateValidatorResponseAmino): MsgCreateValidatorResponse {
|
|
644
|
+
const message = createBaseMsgCreateValidatorResponse();
|
|
645
|
+
return message;
|
|
646
|
+
},
|
|
647
|
+
toAmino(_: MsgCreateValidatorResponse): MsgCreateValidatorResponseAmino {
|
|
648
|
+
const obj: any = {};
|
|
649
|
+
return obj;
|
|
650
|
+
},
|
|
651
|
+
fromAminoMsg(object: MsgCreateValidatorResponseAminoMsg): MsgCreateValidatorResponse {
|
|
652
|
+
return MsgCreateValidatorResponse.fromAmino(object.value);
|
|
653
|
+
},
|
|
654
|
+
toAminoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseAminoMsg {
|
|
655
|
+
return {
|
|
656
|
+
type: "cosmos-sdk/MsgCreateValidatorResponse",
|
|
657
|
+
value: MsgCreateValidatorResponse.toAmino(message)
|
|
658
|
+
};
|
|
659
|
+
},
|
|
660
|
+
fromProtoMsg(message: MsgCreateValidatorResponseProtoMsg): MsgCreateValidatorResponse {
|
|
661
|
+
return MsgCreateValidatorResponse.decode(message.value);
|
|
662
|
+
},
|
|
663
|
+
toProto(message: MsgCreateValidatorResponse): Uint8Array {
|
|
664
|
+
return MsgCreateValidatorResponse.encode(message).finish();
|
|
665
|
+
},
|
|
666
|
+
toProtoMsg(message: MsgCreateValidatorResponse): MsgCreateValidatorResponseProtoMsg {
|
|
667
|
+
return {
|
|
668
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse",
|
|
669
|
+
value: MsgCreateValidatorResponse.encode(message).finish()
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
function createBaseMsgEditValidator(): MsgEditValidator {
|
|
674
|
+
return {
|
|
675
|
+
description: Description.fromPartial({}),
|
|
676
|
+
validatorAddress: "",
|
|
677
|
+
commissionRate: "",
|
|
678
|
+
minSelfDelegation: ""
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
export const MsgEditValidator = {
|
|
682
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
|
|
683
|
+
encode(message: MsgEditValidator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
684
|
+
if (message.description !== undefined) {
|
|
685
|
+
Description.encode(message.description, writer.uint32(10).fork()).ldelim();
|
|
686
|
+
}
|
|
687
|
+
if (message.validatorAddress !== "") {
|
|
688
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
689
|
+
}
|
|
690
|
+
if (message.commissionRate !== "") {
|
|
691
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.commissionRate, 18).atomics);
|
|
692
|
+
}
|
|
693
|
+
if (message.minSelfDelegation !== "") {
|
|
694
|
+
writer.uint32(34).string(message.minSelfDelegation);
|
|
695
|
+
}
|
|
696
|
+
return writer;
|
|
697
|
+
},
|
|
698
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidator {
|
|
699
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
700
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
701
|
+
const message = createBaseMsgEditValidator();
|
|
702
|
+
while (reader.pos < end) {
|
|
703
|
+
const tag = reader.uint32();
|
|
704
|
+
switch (tag >>> 3) {
|
|
705
|
+
case 1:
|
|
706
|
+
message.description = Description.decode(reader, reader.uint32());
|
|
707
|
+
break;
|
|
708
|
+
case 2:
|
|
709
|
+
message.validatorAddress = reader.string();
|
|
710
|
+
break;
|
|
711
|
+
case 3:
|
|
712
|
+
message.commissionRate = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
713
|
+
break;
|
|
714
|
+
case 4:
|
|
715
|
+
message.minSelfDelegation = reader.string();
|
|
716
|
+
break;
|
|
717
|
+
default:
|
|
718
|
+
reader.skipType(tag & 7);
|
|
719
|
+
break;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
return message;
|
|
723
|
+
},
|
|
724
|
+
fromPartial(object: Partial<MsgEditValidator>): MsgEditValidator {
|
|
725
|
+
const message = createBaseMsgEditValidator();
|
|
726
|
+
message.description = object.description !== undefined && object.description !== null ? Description.fromPartial(object.description) : undefined;
|
|
727
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
728
|
+
message.commissionRate = object.commissionRate ?? "";
|
|
729
|
+
message.minSelfDelegation = object.minSelfDelegation ?? "";
|
|
730
|
+
return message;
|
|
731
|
+
},
|
|
732
|
+
fromAmino(object: MsgEditValidatorAmino): MsgEditValidator {
|
|
733
|
+
const message = createBaseMsgEditValidator();
|
|
734
|
+
if (object.description !== undefined && object.description !== null) {
|
|
735
|
+
message.description = Description.fromAmino(object.description);
|
|
736
|
+
}
|
|
737
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
738
|
+
message.validatorAddress = object.validator_address;
|
|
739
|
+
}
|
|
740
|
+
if (object.commission_rate !== undefined && object.commission_rate !== null) {
|
|
741
|
+
message.commissionRate = object.commission_rate;
|
|
742
|
+
}
|
|
743
|
+
if (object.min_self_delegation !== undefined && object.min_self_delegation !== null) {
|
|
744
|
+
message.minSelfDelegation = object.min_self_delegation;
|
|
745
|
+
}
|
|
746
|
+
return message;
|
|
747
|
+
},
|
|
748
|
+
toAmino(message: MsgEditValidator): MsgEditValidatorAmino {
|
|
749
|
+
const obj: any = {};
|
|
750
|
+
obj.description = message.description ? Description.toAmino(message.description) : Description.toAmino(Description.fromPartial({}));
|
|
751
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
752
|
+
obj.commission_rate = message.commissionRate === "" ? undefined : message.commissionRate;
|
|
753
|
+
obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation;
|
|
754
|
+
return obj;
|
|
755
|
+
},
|
|
756
|
+
fromAminoMsg(object: MsgEditValidatorAminoMsg): MsgEditValidator {
|
|
757
|
+
return MsgEditValidator.fromAmino(object.value);
|
|
758
|
+
},
|
|
759
|
+
toAminoMsg(message: MsgEditValidator): MsgEditValidatorAminoMsg {
|
|
760
|
+
return {
|
|
761
|
+
type: "cosmos-sdk/MsgEditValidator",
|
|
762
|
+
value: MsgEditValidator.toAmino(message)
|
|
763
|
+
};
|
|
764
|
+
},
|
|
765
|
+
fromProtoMsg(message: MsgEditValidatorProtoMsg): MsgEditValidator {
|
|
766
|
+
return MsgEditValidator.decode(message.value);
|
|
767
|
+
},
|
|
768
|
+
toProto(message: MsgEditValidator): Uint8Array {
|
|
769
|
+
return MsgEditValidator.encode(message).finish();
|
|
770
|
+
},
|
|
771
|
+
toProtoMsg(message: MsgEditValidator): MsgEditValidatorProtoMsg {
|
|
772
|
+
return {
|
|
773
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator",
|
|
774
|
+
value: MsgEditValidator.encode(message).finish()
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
};
|
|
778
|
+
function createBaseMsgEditValidatorResponse(): MsgEditValidatorResponse {
|
|
779
|
+
return {};
|
|
780
|
+
}
|
|
781
|
+
export const MsgEditValidatorResponse = {
|
|
782
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse",
|
|
783
|
+
encode(_: MsgEditValidatorResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
784
|
+
return writer;
|
|
785
|
+
},
|
|
786
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgEditValidatorResponse {
|
|
787
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
788
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
789
|
+
const message = createBaseMsgEditValidatorResponse();
|
|
790
|
+
while (reader.pos < end) {
|
|
791
|
+
const tag = reader.uint32();
|
|
792
|
+
switch (tag >>> 3) {
|
|
793
|
+
default:
|
|
794
|
+
reader.skipType(tag & 7);
|
|
795
|
+
break;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
return message;
|
|
799
|
+
},
|
|
800
|
+
fromPartial(_: Partial<MsgEditValidatorResponse>): MsgEditValidatorResponse {
|
|
801
|
+
const message = createBaseMsgEditValidatorResponse();
|
|
802
|
+
return message;
|
|
803
|
+
},
|
|
804
|
+
fromAmino(_: MsgEditValidatorResponseAmino): MsgEditValidatorResponse {
|
|
805
|
+
const message = createBaseMsgEditValidatorResponse();
|
|
806
|
+
return message;
|
|
807
|
+
},
|
|
808
|
+
toAmino(_: MsgEditValidatorResponse): MsgEditValidatorResponseAmino {
|
|
809
|
+
const obj: any = {};
|
|
810
|
+
return obj;
|
|
811
|
+
},
|
|
812
|
+
fromAminoMsg(object: MsgEditValidatorResponseAminoMsg): MsgEditValidatorResponse {
|
|
813
|
+
return MsgEditValidatorResponse.fromAmino(object.value);
|
|
814
|
+
},
|
|
815
|
+
toAminoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseAminoMsg {
|
|
816
|
+
return {
|
|
817
|
+
type: "cosmos-sdk/MsgEditValidatorResponse",
|
|
818
|
+
value: MsgEditValidatorResponse.toAmino(message)
|
|
819
|
+
};
|
|
820
|
+
},
|
|
821
|
+
fromProtoMsg(message: MsgEditValidatorResponseProtoMsg): MsgEditValidatorResponse {
|
|
822
|
+
return MsgEditValidatorResponse.decode(message.value);
|
|
823
|
+
},
|
|
824
|
+
toProto(message: MsgEditValidatorResponse): Uint8Array {
|
|
825
|
+
return MsgEditValidatorResponse.encode(message).finish();
|
|
826
|
+
},
|
|
827
|
+
toProtoMsg(message: MsgEditValidatorResponse): MsgEditValidatorResponseProtoMsg {
|
|
828
|
+
return {
|
|
829
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse",
|
|
830
|
+
value: MsgEditValidatorResponse.encode(message).finish()
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
};
|
|
834
|
+
function createBaseMsgDelegate(): MsgDelegate {
|
|
835
|
+
return {
|
|
836
|
+
delegatorAddress: "",
|
|
837
|
+
validatorAddress: "",
|
|
838
|
+
amount: Coin.fromPartial({})
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
export const MsgDelegate = {
|
|
842
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
|
|
843
|
+
encode(message: MsgDelegate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
844
|
+
if (message.delegatorAddress !== "") {
|
|
845
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
846
|
+
}
|
|
847
|
+
if (message.validatorAddress !== "") {
|
|
848
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
849
|
+
}
|
|
850
|
+
if (message.amount !== undefined) {
|
|
851
|
+
Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
|
|
852
|
+
}
|
|
853
|
+
return writer;
|
|
854
|
+
},
|
|
855
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegate {
|
|
856
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
857
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
858
|
+
const message = createBaseMsgDelegate();
|
|
859
|
+
while (reader.pos < end) {
|
|
860
|
+
const tag = reader.uint32();
|
|
861
|
+
switch (tag >>> 3) {
|
|
862
|
+
case 1:
|
|
863
|
+
message.delegatorAddress = reader.string();
|
|
864
|
+
break;
|
|
865
|
+
case 2:
|
|
866
|
+
message.validatorAddress = reader.string();
|
|
867
|
+
break;
|
|
868
|
+
case 3:
|
|
869
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
870
|
+
break;
|
|
871
|
+
default:
|
|
872
|
+
reader.skipType(tag & 7);
|
|
873
|
+
break;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
return message;
|
|
877
|
+
},
|
|
878
|
+
fromPartial(object: Partial<MsgDelegate>): MsgDelegate {
|
|
879
|
+
const message = createBaseMsgDelegate();
|
|
880
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
881
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
882
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
883
|
+
return message;
|
|
884
|
+
},
|
|
885
|
+
fromAmino(object: MsgDelegateAmino): MsgDelegate {
|
|
886
|
+
const message = createBaseMsgDelegate();
|
|
887
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
888
|
+
message.delegatorAddress = object.delegator_address;
|
|
889
|
+
}
|
|
890
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
891
|
+
message.validatorAddress = object.validator_address;
|
|
892
|
+
}
|
|
893
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
894
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
895
|
+
}
|
|
896
|
+
return message;
|
|
897
|
+
},
|
|
898
|
+
toAmino(message: MsgDelegate): MsgDelegateAmino {
|
|
899
|
+
const obj: any = {};
|
|
900
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
901
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
902
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
903
|
+
return obj;
|
|
904
|
+
},
|
|
905
|
+
fromAminoMsg(object: MsgDelegateAminoMsg): MsgDelegate {
|
|
906
|
+
return MsgDelegate.fromAmino(object.value);
|
|
907
|
+
},
|
|
908
|
+
toAminoMsg(message: MsgDelegate): MsgDelegateAminoMsg {
|
|
909
|
+
return {
|
|
910
|
+
type: "cosmos-sdk/MsgDelegate",
|
|
911
|
+
value: MsgDelegate.toAmino(message)
|
|
912
|
+
};
|
|
913
|
+
},
|
|
914
|
+
fromProtoMsg(message: MsgDelegateProtoMsg): MsgDelegate {
|
|
915
|
+
return MsgDelegate.decode(message.value);
|
|
916
|
+
},
|
|
917
|
+
toProto(message: MsgDelegate): Uint8Array {
|
|
918
|
+
return MsgDelegate.encode(message).finish();
|
|
919
|
+
},
|
|
920
|
+
toProtoMsg(message: MsgDelegate): MsgDelegateProtoMsg {
|
|
921
|
+
return {
|
|
922
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegate",
|
|
923
|
+
value: MsgDelegate.encode(message).finish()
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
function createBaseMsgDelegateResponse(): MsgDelegateResponse {
|
|
928
|
+
return {};
|
|
929
|
+
}
|
|
930
|
+
export const MsgDelegateResponse = {
|
|
931
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse",
|
|
932
|
+
encode(_: MsgDelegateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
933
|
+
return writer;
|
|
934
|
+
},
|
|
935
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgDelegateResponse {
|
|
936
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
937
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
938
|
+
const message = createBaseMsgDelegateResponse();
|
|
939
|
+
while (reader.pos < end) {
|
|
940
|
+
const tag = reader.uint32();
|
|
941
|
+
switch (tag >>> 3) {
|
|
942
|
+
default:
|
|
943
|
+
reader.skipType(tag & 7);
|
|
944
|
+
break;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
return message;
|
|
948
|
+
},
|
|
949
|
+
fromPartial(_: Partial<MsgDelegateResponse>): MsgDelegateResponse {
|
|
950
|
+
const message = createBaseMsgDelegateResponse();
|
|
951
|
+
return message;
|
|
952
|
+
},
|
|
953
|
+
fromAmino(_: MsgDelegateResponseAmino): MsgDelegateResponse {
|
|
954
|
+
const message = createBaseMsgDelegateResponse();
|
|
955
|
+
return message;
|
|
956
|
+
},
|
|
957
|
+
toAmino(_: MsgDelegateResponse): MsgDelegateResponseAmino {
|
|
958
|
+
const obj: any = {};
|
|
959
|
+
return obj;
|
|
960
|
+
},
|
|
961
|
+
fromAminoMsg(object: MsgDelegateResponseAminoMsg): MsgDelegateResponse {
|
|
962
|
+
return MsgDelegateResponse.fromAmino(object.value);
|
|
963
|
+
},
|
|
964
|
+
toAminoMsg(message: MsgDelegateResponse): MsgDelegateResponseAminoMsg {
|
|
965
|
+
return {
|
|
966
|
+
type: "cosmos-sdk/MsgDelegateResponse",
|
|
967
|
+
value: MsgDelegateResponse.toAmino(message)
|
|
968
|
+
};
|
|
969
|
+
},
|
|
970
|
+
fromProtoMsg(message: MsgDelegateResponseProtoMsg): MsgDelegateResponse {
|
|
971
|
+
return MsgDelegateResponse.decode(message.value);
|
|
972
|
+
},
|
|
973
|
+
toProto(message: MsgDelegateResponse): Uint8Array {
|
|
974
|
+
return MsgDelegateResponse.encode(message).finish();
|
|
975
|
+
},
|
|
976
|
+
toProtoMsg(message: MsgDelegateResponse): MsgDelegateResponseProtoMsg {
|
|
977
|
+
return {
|
|
978
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse",
|
|
979
|
+
value: MsgDelegateResponse.encode(message).finish()
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
function createBaseMsgBeginRedelegate(): MsgBeginRedelegate {
|
|
984
|
+
return {
|
|
985
|
+
delegatorAddress: "",
|
|
986
|
+
validatorSrcAddress: "",
|
|
987
|
+
validatorDstAddress: "",
|
|
988
|
+
amount: Coin.fromPartial({})
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
export const MsgBeginRedelegate = {
|
|
992
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
|
|
993
|
+
encode(message: MsgBeginRedelegate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
994
|
+
if (message.delegatorAddress !== "") {
|
|
995
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
996
|
+
}
|
|
997
|
+
if (message.validatorSrcAddress !== "") {
|
|
998
|
+
writer.uint32(18).string(message.validatorSrcAddress);
|
|
999
|
+
}
|
|
1000
|
+
if (message.validatorDstAddress !== "") {
|
|
1001
|
+
writer.uint32(26).string(message.validatorDstAddress);
|
|
1002
|
+
}
|
|
1003
|
+
if (message.amount !== undefined) {
|
|
1004
|
+
Coin.encode(message.amount, writer.uint32(34).fork()).ldelim();
|
|
1005
|
+
}
|
|
1006
|
+
return writer;
|
|
1007
|
+
},
|
|
1008
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegate {
|
|
1009
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1010
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1011
|
+
const message = createBaseMsgBeginRedelegate();
|
|
1012
|
+
while (reader.pos < end) {
|
|
1013
|
+
const tag = reader.uint32();
|
|
1014
|
+
switch (tag >>> 3) {
|
|
1015
|
+
case 1:
|
|
1016
|
+
message.delegatorAddress = reader.string();
|
|
1017
|
+
break;
|
|
1018
|
+
case 2:
|
|
1019
|
+
message.validatorSrcAddress = reader.string();
|
|
1020
|
+
break;
|
|
1021
|
+
case 3:
|
|
1022
|
+
message.validatorDstAddress = reader.string();
|
|
1023
|
+
break;
|
|
1024
|
+
case 4:
|
|
1025
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
1026
|
+
break;
|
|
1027
|
+
default:
|
|
1028
|
+
reader.skipType(tag & 7);
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
return message;
|
|
1033
|
+
},
|
|
1034
|
+
fromPartial(object: Partial<MsgBeginRedelegate>): MsgBeginRedelegate {
|
|
1035
|
+
const message = createBaseMsgBeginRedelegate();
|
|
1036
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1037
|
+
message.validatorSrcAddress = object.validatorSrcAddress ?? "";
|
|
1038
|
+
message.validatorDstAddress = object.validatorDstAddress ?? "";
|
|
1039
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
1040
|
+
return message;
|
|
1041
|
+
},
|
|
1042
|
+
fromAmino(object: MsgBeginRedelegateAmino): MsgBeginRedelegate {
|
|
1043
|
+
const message = createBaseMsgBeginRedelegate();
|
|
1044
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1045
|
+
message.delegatorAddress = object.delegator_address;
|
|
1046
|
+
}
|
|
1047
|
+
if (object.validator_src_address !== undefined && object.validator_src_address !== null) {
|
|
1048
|
+
message.validatorSrcAddress = object.validator_src_address;
|
|
1049
|
+
}
|
|
1050
|
+
if (object.validator_dst_address !== undefined && object.validator_dst_address !== null) {
|
|
1051
|
+
message.validatorDstAddress = object.validator_dst_address;
|
|
1052
|
+
}
|
|
1053
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
1054
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
1055
|
+
}
|
|
1056
|
+
return message;
|
|
1057
|
+
},
|
|
1058
|
+
toAmino(message: MsgBeginRedelegate): MsgBeginRedelegateAmino {
|
|
1059
|
+
const obj: any = {};
|
|
1060
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
1061
|
+
obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress;
|
|
1062
|
+
obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress;
|
|
1063
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
1064
|
+
return obj;
|
|
1065
|
+
},
|
|
1066
|
+
fromAminoMsg(object: MsgBeginRedelegateAminoMsg): MsgBeginRedelegate {
|
|
1067
|
+
return MsgBeginRedelegate.fromAmino(object.value);
|
|
1068
|
+
},
|
|
1069
|
+
toAminoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateAminoMsg {
|
|
1070
|
+
return {
|
|
1071
|
+
type: "cosmos-sdk/MsgBeginRedelegate",
|
|
1072
|
+
value: MsgBeginRedelegate.toAmino(message)
|
|
1073
|
+
};
|
|
1074
|
+
},
|
|
1075
|
+
fromProtoMsg(message: MsgBeginRedelegateProtoMsg): MsgBeginRedelegate {
|
|
1076
|
+
return MsgBeginRedelegate.decode(message.value);
|
|
1077
|
+
},
|
|
1078
|
+
toProto(message: MsgBeginRedelegate): Uint8Array {
|
|
1079
|
+
return MsgBeginRedelegate.encode(message).finish();
|
|
1080
|
+
},
|
|
1081
|
+
toProtoMsg(message: MsgBeginRedelegate): MsgBeginRedelegateProtoMsg {
|
|
1082
|
+
return {
|
|
1083
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate",
|
|
1084
|
+
value: MsgBeginRedelegate.encode(message).finish()
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
};
|
|
1088
|
+
function createBaseMsgBeginRedelegateResponse(): MsgBeginRedelegateResponse {
|
|
1089
|
+
return {
|
|
1090
|
+
completionTime: new Date()
|
|
1091
|
+
};
|
|
1092
|
+
}
|
|
1093
|
+
export const MsgBeginRedelegateResponse = {
|
|
1094
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse",
|
|
1095
|
+
encode(message: MsgBeginRedelegateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1096
|
+
if (message.completionTime !== undefined) {
|
|
1097
|
+
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim();
|
|
1098
|
+
}
|
|
1099
|
+
return writer;
|
|
1100
|
+
},
|
|
1101
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgBeginRedelegateResponse {
|
|
1102
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1103
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1104
|
+
const message = createBaseMsgBeginRedelegateResponse();
|
|
1105
|
+
while (reader.pos < end) {
|
|
1106
|
+
const tag = reader.uint32();
|
|
1107
|
+
switch (tag >>> 3) {
|
|
1108
|
+
case 1:
|
|
1109
|
+
message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1110
|
+
break;
|
|
1111
|
+
default:
|
|
1112
|
+
reader.skipType(tag & 7);
|
|
1113
|
+
break;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
return message;
|
|
1117
|
+
},
|
|
1118
|
+
fromPartial(object: Partial<MsgBeginRedelegateResponse>): MsgBeginRedelegateResponse {
|
|
1119
|
+
const message = createBaseMsgBeginRedelegateResponse();
|
|
1120
|
+
message.completionTime = object.completionTime ?? undefined;
|
|
1121
|
+
return message;
|
|
1122
|
+
},
|
|
1123
|
+
fromAmino(object: MsgBeginRedelegateResponseAmino): MsgBeginRedelegateResponse {
|
|
1124
|
+
const message = createBaseMsgBeginRedelegateResponse();
|
|
1125
|
+
if (object.completion_time !== undefined && object.completion_time !== null) {
|
|
1126
|
+
message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time));
|
|
1127
|
+
}
|
|
1128
|
+
return message;
|
|
1129
|
+
},
|
|
1130
|
+
toAmino(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAmino {
|
|
1131
|
+
const obj: any = {};
|
|
1132
|
+
obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : new Date();
|
|
1133
|
+
return obj;
|
|
1134
|
+
},
|
|
1135
|
+
fromAminoMsg(object: MsgBeginRedelegateResponseAminoMsg): MsgBeginRedelegateResponse {
|
|
1136
|
+
return MsgBeginRedelegateResponse.fromAmino(object.value);
|
|
1137
|
+
},
|
|
1138
|
+
toAminoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseAminoMsg {
|
|
1139
|
+
return {
|
|
1140
|
+
type: "cosmos-sdk/MsgBeginRedelegateResponse",
|
|
1141
|
+
value: MsgBeginRedelegateResponse.toAmino(message)
|
|
1142
|
+
};
|
|
1143
|
+
},
|
|
1144
|
+
fromProtoMsg(message: MsgBeginRedelegateResponseProtoMsg): MsgBeginRedelegateResponse {
|
|
1145
|
+
return MsgBeginRedelegateResponse.decode(message.value);
|
|
1146
|
+
},
|
|
1147
|
+
toProto(message: MsgBeginRedelegateResponse): Uint8Array {
|
|
1148
|
+
return MsgBeginRedelegateResponse.encode(message).finish();
|
|
1149
|
+
},
|
|
1150
|
+
toProtoMsg(message: MsgBeginRedelegateResponse): MsgBeginRedelegateResponseProtoMsg {
|
|
1151
|
+
return {
|
|
1152
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse",
|
|
1153
|
+
value: MsgBeginRedelegateResponse.encode(message).finish()
|
|
1154
|
+
};
|
|
1155
|
+
}
|
|
1156
|
+
};
|
|
1157
|
+
function createBaseMsgUndelegate(): MsgUndelegate {
|
|
1158
|
+
return {
|
|
1159
|
+
delegatorAddress: "",
|
|
1160
|
+
validatorAddress: "",
|
|
1161
|
+
amount: Coin.fromPartial({})
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
export const MsgUndelegate = {
|
|
1165
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
|
|
1166
|
+
encode(message: MsgUndelegate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1167
|
+
if (message.delegatorAddress !== "") {
|
|
1168
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
1169
|
+
}
|
|
1170
|
+
if (message.validatorAddress !== "") {
|
|
1171
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
1172
|
+
}
|
|
1173
|
+
if (message.amount !== undefined) {
|
|
1174
|
+
Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
|
|
1175
|
+
}
|
|
1176
|
+
return writer;
|
|
1177
|
+
},
|
|
1178
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegate {
|
|
1179
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1180
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1181
|
+
const message = createBaseMsgUndelegate();
|
|
1182
|
+
while (reader.pos < end) {
|
|
1183
|
+
const tag = reader.uint32();
|
|
1184
|
+
switch (tag >>> 3) {
|
|
1185
|
+
case 1:
|
|
1186
|
+
message.delegatorAddress = reader.string();
|
|
1187
|
+
break;
|
|
1188
|
+
case 2:
|
|
1189
|
+
message.validatorAddress = reader.string();
|
|
1190
|
+
break;
|
|
1191
|
+
case 3:
|
|
1192
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
1193
|
+
break;
|
|
1194
|
+
default:
|
|
1195
|
+
reader.skipType(tag & 7);
|
|
1196
|
+
break;
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
return message;
|
|
1200
|
+
},
|
|
1201
|
+
fromPartial(object: Partial<MsgUndelegate>): MsgUndelegate {
|
|
1202
|
+
const message = createBaseMsgUndelegate();
|
|
1203
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1204
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
1205
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
1206
|
+
return message;
|
|
1207
|
+
},
|
|
1208
|
+
fromAmino(object: MsgUndelegateAmino): MsgUndelegate {
|
|
1209
|
+
const message = createBaseMsgUndelegate();
|
|
1210
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1211
|
+
message.delegatorAddress = object.delegator_address;
|
|
1212
|
+
}
|
|
1213
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
1214
|
+
message.validatorAddress = object.validator_address;
|
|
1215
|
+
}
|
|
1216
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
1217
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
1218
|
+
}
|
|
1219
|
+
return message;
|
|
1220
|
+
},
|
|
1221
|
+
toAmino(message: MsgUndelegate): MsgUndelegateAmino {
|
|
1222
|
+
const obj: any = {};
|
|
1223
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
1224
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
1225
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
1226
|
+
return obj;
|
|
1227
|
+
},
|
|
1228
|
+
fromAminoMsg(object: MsgUndelegateAminoMsg): MsgUndelegate {
|
|
1229
|
+
return MsgUndelegate.fromAmino(object.value);
|
|
1230
|
+
},
|
|
1231
|
+
toAminoMsg(message: MsgUndelegate): MsgUndelegateAminoMsg {
|
|
1232
|
+
return {
|
|
1233
|
+
type: "cosmos-sdk/MsgUndelegate",
|
|
1234
|
+
value: MsgUndelegate.toAmino(message)
|
|
1235
|
+
};
|
|
1236
|
+
},
|
|
1237
|
+
fromProtoMsg(message: MsgUndelegateProtoMsg): MsgUndelegate {
|
|
1238
|
+
return MsgUndelegate.decode(message.value);
|
|
1239
|
+
},
|
|
1240
|
+
toProto(message: MsgUndelegate): Uint8Array {
|
|
1241
|
+
return MsgUndelegate.encode(message).finish();
|
|
1242
|
+
},
|
|
1243
|
+
toProtoMsg(message: MsgUndelegate): MsgUndelegateProtoMsg {
|
|
1244
|
+
return {
|
|
1245
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate",
|
|
1246
|
+
value: MsgUndelegate.encode(message).finish()
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
};
|
|
1250
|
+
function createBaseMsgUndelegateResponse(): MsgUndelegateResponse {
|
|
1251
|
+
return {
|
|
1252
|
+
completionTime: new Date(),
|
|
1253
|
+
amount: Coin.fromPartial({})
|
|
1254
|
+
};
|
|
1255
|
+
}
|
|
1256
|
+
export const MsgUndelegateResponse = {
|
|
1257
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse",
|
|
1258
|
+
encode(message: MsgUndelegateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1259
|
+
if (message.completionTime !== undefined) {
|
|
1260
|
+
Timestamp.encode(toTimestamp(message.completionTime), writer.uint32(10).fork()).ldelim();
|
|
1261
|
+
}
|
|
1262
|
+
if (message.amount !== undefined) {
|
|
1263
|
+
Coin.encode(message.amount, writer.uint32(18).fork()).ldelim();
|
|
1264
|
+
}
|
|
1265
|
+
return writer;
|
|
1266
|
+
},
|
|
1267
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUndelegateResponse {
|
|
1268
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1269
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1270
|
+
const message = createBaseMsgUndelegateResponse();
|
|
1271
|
+
while (reader.pos < end) {
|
|
1272
|
+
const tag = reader.uint32();
|
|
1273
|
+
switch (tag >>> 3) {
|
|
1274
|
+
case 1:
|
|
1275
|
+
message.completionTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1276
|
+
break;
|
|
1277
|
+
case 2:
|
|
1278
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
1279
|
+
break;
|
|
1280
|
+
default:
|
|
1281
|
+
reader.skipType(tag & 7);
|
|
1282
|
+
break;
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
return message;
|
|
1286
|
+
},
|
|
1287
|
+
fromPartial(object: Partial<MsgUndelegateResponse>): MsgUndelegateResponse {
|
|
1288
|
+
const message = createBaseMsgUndelegateResponse();
|
|
1289
|
+
message.completionTime = object.completionTime ?? undefined;
|
|
1290
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
1291
|
+
return message;
|
|
1292
|
+
},
|
|
1293
|
+
fromAmino(object: MsgUndelegateResponseAmino): MsgUndelegateResponse {
|
|
1294
|
+
const message = createBaseMsgUndelegateResponse();
|
|
1295
|
+
if (object.completion_time !== undefined && object.completion_time !== null) {
|
|
1296
|
+
message.completionTime = fromTimestamp(Timestamp.fromAmino(object.completion_time));
|
|
1297
|
+
}
|
|
1298
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
1299
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
1300
|
+
}
|
|
1301
|
+
return message;
|
|
1302
|
+
},
|
|
1303
|
+
toAmino(message: MsgUndelegateResponse): MsgUndelegateResponseAmino {
|
|
1304
|
+
const obj: any = {};
|
|
1305
|
+
obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : new Date();
|
|
1306
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
1307
|
+
return obj;
|
|
1308
|
+
},
|
|
1309
|
+
fromAminoMsg(object: MsgUndelegateResponseAminoMsg): MsgUndelegateResponse {
|
|
1310
|
+
return MsgUndelegateResponse.fromAmino(object.value);
|
|
1311
|
+
},
|
|
1312
|
+
toAminoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseAminoMsg {
|
|
1313
|
+
return {
|
|
1314
|
+
type: "cosmos-sdk/MsgUndelegateResponse",
|
|
1315
|
+
value: MsgUndelegateResponse.toAmino(message)
|
|
1316
|
+
};
|
|
1317
|
+
},
|
|
1318
|
+
fromProtoMsg(message: MsgUndelegateResponseProtoMsg): MsgUndelegateResponse {
|
|
1319
|
+
return MsgUndelegateResponse.decode(message.value);
|
|
1320
|
+
},
|
|
1321
|
+
toProto(message: MsgUndelegateResponse): Uint8Array {
|
|
1322
|
+
return MsgUndelegateResponse.encode(message).finish();
|
|
1323
|
+
},
|
|
1324
|
+
toProtoMsg(message: MsgUndelegateResponse): MsgUndelegateResponseProtoMsg {
|
|
1325
|
+
return {
|
|
1326
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse",
|
|
1327
|
+
value: MsgUndelegateResponse.encode(message).finish()
|
|
1328
|
+
};
|
|
1329
|
+
}
|
|
1330
|
+
};
|
|
1331
|
+
function createBaseMsgCancelUnbondingDelegation(): MsgCancelUnbondingDelegation {
|
|
1332
|
+
return {
|
|
1333
|
+
delegatorAddress: "",
|
|
1334
|
+
validatorAddress: "",
|
|
1335
|
+
amount: Coin.fromPartial({}),
|
|
1336
|
+
creationHeight: BigInt(0)
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
export const MsgCancelUnbondingDelegation = {
|
|
1340
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
|
|
1341
|
+
encode(message: MsgCancelUnbondingDelegation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1342
|
+
if (message.delegatorAddress !== "") {
|
|
1343
|
+
writer.uint32(10).string(message.delegatorAddress);
|
|
1344
|
+
}
|
|
1345
|
+
if (message.validatorAddress !== "") {
|
|
1346
|
+
writer.uint32(18).string(message.validatorAddress);
|
|
1347
|
+
}
|
|
1348
|
+
if (message.amount !== undefined) {
|
|
1349
|
+
Coin.encode(message.amount, writer.uint32(26).fork()).ldelim();
|
|
1350
|
+
}
|
|
1351
|
+
if (message.creationHeight !== BigInt(0)) {
|
|
1352
|
+
writer.uint32(32).int64(message.creationHeight);
|
|
1353
|
+
}
|
|
1354
|
+
return writer;
|
|
1355
|
+
},
|
|
1356
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegation {
|
|
1357
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1358
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1359
|
+
const message = createBaseMsgCancelUnbondingDelegation();
|
|
1360
|
+
while (reader.pos < end) {
|
|
1361
|
+
const tag = reader.uint32();
|
|
1362
|
+
switch (tag >>> 3) {
|
|
1363
|
+
case 1:
|
|
1364
|
+
message.delegatorAddress = reader.string();
|
|
1365
|
+
break;
|
|
1366
|
+
case 2:
|
|
1367
|
+
message.validatorAddress = reader.string();
|
|
1368
|
+
break;
|
|
1369
|
+
case 3:
|
|
1370
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
1371
|
+
break;
|
|
1372
|
+
case 4:
|
|
1373
|
+
message.creationHeight = reader.int64();
|
|
1374
|
+
break;
|
|
1375
|
+
default:
|
|
1376
|
+
reader.skipType(tag & 7);
|
|
1377
|
+
break;
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
return message;
|
|
1381
|
+
},
|
|
1382
|
+
fromPartial(object: Partial<MsgCancelUnbondingDelegation>): MsgCancelUnbondingDelegation {
|
|
1383
|
+
const message = createBaseMsgCancelUnbondingDelegation();
|
|
1384
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1385
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
1386
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
1387
|
+
message.creationHeight = object.creationHeight !== undefined && object.creationHeight !== null ? BigInt(object.creationHeight.toString()) : BigInt(0);
|
|
1388
|
+
return message;
|
|
1389
|
+
},
|
|
1390
|
+
fromAmino(object: MsgCancelUnbondingDelegationAmino): MsgCancelUnbondingDelegation {
|
|
1391
|
+
const message = createBaseMsgCancelUnbondingDelegation();
|
|
1392
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
1393
|
+
message.delegatorAddress = object.delegator_address;
|
|
1394
|
+
}
|
|
1395
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
1396
|
+
message.validatorAddress = object.validator_address;
|
|
1397
|
+
}
|
|
1398
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
1399
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
1400
|
+
}
|
|
1401
|
+
if (object.creation_height !== undefined && object.creation_height !== null) {
|
|
1402
|
+
message.creationHeight = BigInt(object.creation_height);
|
|
1403
|
+
}
|
|
1404
|
+
return message;
|
|
1405
|
+
},
|
|
1406
|
+
toAmino(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAmino {
|
|
1407
|
+
const obj: any = {};
|
|
1408
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
1409
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
1410
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
1411
|
+
obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight?.toString() : undefined;
|
|
1412
|
+
return obj;
|
|
1413
|
+
},
|
|
1414
|
+
fromAminoMsg(object: MsgCancelUnbondingDelegationAminoMsg): MsgCancelUnbondingDelegation {
|
|
1415
|
+
return MsgCancelUnbondingDelegation.fromAmino(object.value);
|
|
1416
|
+
},
|
|
1417
|
+
toAminoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationAminoMsg {
|
|
1418
|
+
return {
|
|
1419
|
+
type: "cosmos-sdk/MsgCancelUnbondingDelegation",
|
|
1420
|
+
value: MsgCancelUnbondingDelegation.toAmino(message)
|
|
1421
|
+
};
|
|
1422
|
+
},
|
|
1423
|
+
fromProtoMsg(message: MsgCancelUnbondingDelegationProtoMsg): MsgCancelUnbondingDelegation {
|
|
1424
|
+
return MsgCancelUnbondingDelegation.decode(message.value);
|
|
1425
|
+
},
|
|
1426
|
+
toProto(message: MsgCancelUnbondingDelegation): Uint8Array {
|
|
1427
|
+
return MsgCancelUnbondingDelegation.encode(message).finish();
|
|
1428
|
+
},
|
|
1429
|
+
toProtoMsg(message: MsgCancelUnbondingDelegation): MsgCancelUnbondingDelegationProtoMsg {
|
|
1430
|
+
return {
|
|
1431
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
|
|
1432
|
+
value: MsgCancelUnbondingDelegation.encode(message).finish()
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
};
|
|
1436
|
+
function createBaseMsgCancelUnbondingDelegationResponse(): MsgCancelUnbondingDelegationResponse {
|
|
1437
|
+
return {};
|
|
1438
|
+
}
|
|
1439
|
+
export const MsgCancelUnbondingDelegationResponse = {
|
|
1440
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse",
|
|
1441
|
+
encode(_: MsgCancelUnbondingDelegationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1442
|
+
return writer;
|
|
1443
|
+
},
|
|
1444
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelUnbondingDelegationResponse {
|
|
1445
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1446
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1447
|
+
const message = createBaseMsgCancelUnbondingDelegationResponse();
|
|
1448
|
+
while (reader.pos < end) {
|
|
1449
|
+
const tag = reader.uint32();
|
|
1450
|
+
switch (tag >>> 3) {
|
|
1451
|
+
default:
|
|
1452
|
+
reader.skipType(tag & 7);
|
|
1453
|
+
break;
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
return message;
|
|
1457
|
+
},
|
|
1458
|
+
fromPartial(_: Partial<MsgCancelUnbondingDelegationResponse>): MsgCancelUnbondingDelegationResponse {
|
|
1459
|
+
const message = createBaseMsgCancelUnbondingDelegationResponse();
|
|
1460
|
+
return message;
|
|
1461
|
+
},
|
|
1462
|
+
fromAmino(_: MsgCancelUnbondingDelegationResponseAmino): MsgCancelUnbondingDelegationResponse {
|
|
1463
|
+
const message = createBaseMsgCancelUnbondingDelegationResponse();
|
|
1464
|
+
return message;
|
|
1465
|
+
},
|
|
1466
|
+
toAmino(_: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAmino {
|
|
1467
|
+
const obj: any = {};
|
|
1468
|
+
return obj;
|
|
1469
|
+
},
|
|
1470
|
+
fromAminoMsg(object: MsgCancelUnbondingDelegationResponseAminoMsg): MsgCancelUnbondingDelegationResponse {
|
|
1471
|
+
return MsgCancelUnbondingDelegationResponse.fromAmino(object.value);
|
|
1472
|
+
},
|
|
1473
|
+
toAminoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseAminoMsg {
|
|
1474
|
+
return {
|
|
1475
|
+
type: "cosmos-sdk/MsgCancelUnbondingDelegationResponse",
|
|
1476
|
+
value: MsgCancelUnbondingDelegationResponse.toAmino(message)
|
|
1477
|
+
};
|
|
1478
|
+
},
|
|
1479
|
+
fromProtoMsg(message: MsgCancelUnbondingDelegationResponseProtoMsg): MsgCancelUnbondingDelegationResponse {
|
|
1480
|
+
return MsgCancelUnbondingDelegationResponse.decode(message.value);
|
|
1481
|
+
},
|
|
1482
|
+
toProto(message: MsgCancelUnbondingDelegationResponse): Uint8Array {
|
|
1483
|
+
return MsgCancelUnbondingDelegationResponse.encode(message).finish();
|
|
1484
|
+
},
|
|
1485
|
+
toProtoMsg(message: MsgCancelUnbondingDelegationResponse): MsgCancelUnbondingDelegationResponseProtoMsg {
|
|
1486
|
+
return {
|
|
1487
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse",
|
|
1488
|
+
value: MsgCancelUnbondingDelegationResponse.encode(message).finish()
|
|
1489
|
+
};
|
|
1490
|
+
}
|
|
1491
|
+
};
|
|
1492
|
+
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
1493
|
+
return {
|
|
1494
|
+
authority: "",
|
|
1495
|
+
params: Params.fromPartial({})
|
|
1496
|
+
};
|
|
1497
|
+
}
|
|
1498
|
+
export const MsgUpdateParams = {
|
|
1499
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
|
|
1500
|
+
encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1501
|
+
if (message.authority !== "") {
|
|
1502
|
+
writer.uint32(10).string(message.authority);
|
|
1503
|
+
}
|
|
1504
|
+
if (message.params !== undefined) {
|
|
1505
|
+
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
1506
|
+
}
|
|
1507
|
+
return writer;
|
|
1508
|
+
},
|
|
1509
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
1510
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1511
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1512
|
+
const message = createBaseMsgUpdateParams();
|
|
1513
|
+
while (reader.pos < end) {
|
|
1514
|
+
const tag = reader.uint32();
|
|
1515
|
+
switch (tag >>> 3) {
|
|
1516
|
+
case 1:
|
|
1517
|
+
message.authority = reader.string();
|
|
1518
|
+
break;
|
|
1519
|
+
case 2:
|
|
1520
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
1521
|
+
break;
|
|
1522
|
+
default:
|
|
1523
|
+
reader.skipType(tag & 7);
|
|
1524
|
+
break;
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
return message;
|
|
1528
|
+
},
|
|
1529
|
+
fromPartial(object: Partial<MsgUpdateParams>): MsgUpdateParams {
|
|
1530
|
+
const message = createBaseMsgUpdateParams();
|
|
1531
|
+
message.authority = object.authority ?? "";
|
|
1532
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
1533
|
+
return message;
|
|
1534
|
+
},
|
|
1535
|
+
fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
|
|
1536
|
+
const message = createBaseMsgUpdateParams();
|
|
1537
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
1538
|
+
message.authority = object.authority;
|
|
1539
|
+
}
|
|
1540
|
+
if (object.params !== undefined && object.params !== null) {
|
|
1541
|
+
message.params = Params.fromAmino(object.params);
|
|
1542
|
+
}
|
|
1543
|
+
return message;
|
|
1544
|
+
},
|
|
1545
|
+
toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
|
|
1546
|
+
const obj: any = {};
|
|
1547
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
1548
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
1549
|
+
return obj;
|
|
1550
|
+
},
|
|
1551
|
+
fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
|
|
1552
|
+
return MsgUpdateParams.fromAmino(object.value);
|
|
1553
|
+
},
|
|
1554
|
+
toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
|
|
1555
|
+
return {
|
|
1556
|
+
type: "cosmos-sdk/x/staking/MsgUpdateParams",
|
|
1557
|
+
value: MsgUpdateParams.toAmino(message)
|
|
1558
|
+
};
|
|
1559
|
+
},
|
|
1560
|
+
fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
|
|
1561
|
+
return MsgUpdateParams.decode(message.value);
|
|
1562
|
+
},
|
|
1563
|
+
toProto(message: MsgUpdateParams): Uint8Array {
|
|
1564
|
+
return MsgUpdateParams.encode(message).finish();
|
|
1565
|
+
},
|
|
1566
|
+
toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
|
|
1567
|
+
return {
|
|
1568
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams",
|
|
1569
|
+
value: MsgUpdateParams.encode(message).finish()
|
|
1570
|
+
};
|
|
1571
|
+
}
|
|
1572
|
+
};
|
|
1573
|
+
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
1574
|
+
return {};
|
|
1575
|
+
}
|
|
1576
|
+
export const MsgUpdateParamsResponse = {
|
|
1577
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParamsResponse",
|
|
1578
|
+
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1579
|
+
return writer;
|
|
1580
|
+
},
|
|
1581
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
1582
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1583
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1584
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1585
|
+
while (reader.pos < end) {
|
|
1586
|
+
const tag = reader.uint32();
|
|
1587
|
+
switch (tag >>> 3) {
|
|
1588
|
+
default:
|
|
1589
|
+
reader.skipType(tag & 7);
|
|
1590
|
+
break;
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
return message;
|
|
1594
|
+
},
|
|
1595
|
+
fromPartial(_: Partial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
|
|
1596
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1597
|
+
return message;
|
|
1598
|
+
},
|
|
1599
|
+
fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
|
|
1600
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1601
|
+
return message;
|
|
1602
|
+
},
|
|
1603
|
+
toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
|
|
1604
|
+
const obj: any = {};
|
|
1605
|
+
return obj;
|
|
1606
|
+
},
|
|
1607
|
+
fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
|
|
1608
|
+
return MsgUpdateParamsResponse.fromAmino(object.value);
|
|
1609
|
+
},
|
|
1610
|
+
toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg {
|
|
1611
|
+
return {
|
|
1612
|
+
type: "cosmos-sdk/MsgUpdateParamsResponse",
|
|
1613
|
+
value: MsgUpdateParamsResponse.toAmino(message)
|
|
1614
|
+
};
|
|
1615
|
+
},
|
|
1616
|
+
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
|
|
1617
|
+
return MsgUpdateParamsResponse.decode(message.value);
|
|
1618
|
+
},
|
|
1619
|
+
toProto(message: MsgUpdateParamsResponse): Uint8Array {
|
|
1620
|
+
return MsgUpdateParamsResponse.encode(message).finish();
|
|
1621
|
+
},
|
|
1622
|
+
toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
|
|
1623
|
+
return {
|
|
1624
|
+
typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParamsResponse",
|
|
1625
|
+
value: MsgUpdateParamsResponse.encode(message).finish()
|
|
1626
|
+
};
|
|
1627
|
+
}
|
|
1628
|
+
};
|
|
1629
|
+
export const Cosmos_cryptoPubKey_InterfaceDecoder = (input: BinaryReader | Uint8Array): Any => {
|
|
1630
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1631
|
+
const data = Any.decode(reader, reader.uint32());
|
|
1632
|
+
switch (data.typeUrl) {
|
|
1633
|
+
default:
|
|
1634
|
+
return data;
|
|
1635
|
+
}
|
|
1636
|
+
};
|
|
1637
|
+
export const Cosmos_cryptoPubKey_FromAmino = (content: AnyAmino): Any => {
|
|
1638
|
+
return encodePubkey(content);
|
|
1639
|
+
};
|
|
1640
|
+
export const Cosmos_cryptoPubKey_ToAmino = (content: Any): Pubkey | null => {
|
|
1641
|
+
return decodePubkey(content);
|
|
1642
|
+
};
|