@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,2358 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../query/v1beta1/pagination";
|
|
3
|
+
import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any";
|
|
4
|
+
import { BlockID, BlockIDAmino, BlockIDSDKType } from "../../../../tendermint/types/types";
|
|
5
|
+
import { Block as Block1 } from "../../../../tendermint/types/block";
|
|
6
|
+
import { BlockAmino as Block1Amino } from "../../../../tendermint/types/block";
|
|
7
|
+
import { BlockSDKType as Block1SDKType } from "../../../../tendermint/types/block";
|
|
8
|
+
import { Block as Block2 } from "./types";
|
|
9
|
+
import { BlockAmino as Block2Amino } from "./types";
|
|
10
|
+
import { BlockSDKType as Block2SDKType } from "./types";
|
|
11
|
+
import { DefaultNodeInfo, DefaultNodeInfoAmino, DefaultNodeInfoSDKType } from "../../../../tendermint/p2p/types";
|
|
12
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
13
|
+
import { bytesFromBase64, base64FromBytes } from "../../../../helpers";
|
|
14
|
+
/** GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */
|
|
15
|
+
export interface GetValidatorSetByHeightRequest {
|
|
16
|
+
height: bigint;
|
|
17
|
+
/** pagination defines an pagination for the request. */
|
|
18
|
+
pagination?: PageRequest;
|
|
19
|
+
}
|
|
20
|
+
export interface GetValidatorSetByHeightRequestProtoMsg {
|
|
21
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest";
|
|
22
|
+
value: Uint8Array;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
|
|
26
|
+
* @name GetValidatorSetByHeightRequestAmino
|
|
27
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
28
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest
|
|
29
|
+
*/
|
|
30
|
+
export interface GetValidatorSetByHeightRequestAmino {
|
|
31
|
+
height?: string;
|
|
32
|
+
/**
|
|
33
|
+
* pagination defines an pagination for the request.
|
|
34
|
+
*/
|
|
35
|
+
pagination?: PageRequestAmino;
|
|
36
|
+
}
|
|
37
|
+
export interface GetValidatorSetByHeightRequestAminoMsg {
|
|
38
|
+
type: "cosmos-sdk/GetValidatorSetByHeightRequest";
|
|
39
|
+
value: GetValidatorSetByHeightRequestAmino;
|
|
40
|
+
}
|
|
41
|
+
/** GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */
|
|
42
|
+
export interface GetValidatorSetByHeightRequestSDKType {
|
|
43
|
+
height: bigint;
|
|
44
|
+
pagination?: PageRequestSDKType;
|
|
45
|
+
}
|
|
46
|
+
/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */
|
|
47
|
+
export interface GetValidatorSetByHeightResponse {
|
|
48
|
+
blockHeight: bigint;
|
|
49
|
+
validators: Validator[];
|
|
50
|
+
/** pagination defines an pagination for the response. */
|
|
51
|
+
pagination?: PageResponse;
|
|
52
|
+
}
|
|
53
|
+
export interface GetValidatorSetByHeightResponseProtoMsg {
|
|
54
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse";
|
|
55
|
+
value: Uint8Array;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
|
|
59
|
+
* @name GetValidatorSetByHeightResponseAmino
|
|
60
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
61
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse
|
|
62
|
+
*/
|
|
63
|
+
export interface GetValidatorSetByHeightResponseAmino {
|
|
64
|
+
block_height?: string;
|
|
65
|
+
validators?: ValidatorAmino[];
|
|
66
|
+
/**
|
|
67
|
+
* pagination defines an pagination for the response.
|
|
68
|
+
*/
|
|
69
|
+
pagination?: PageResponseAmino;
|
|
70
|
+
}
|
|
71
|
+
export interface GetValidatorSetByHeightResponseAminoMsg {
|
|
72
|
+
type: "cosmos-sdk/GetValidatorSetByHeightResponse";
|
|
73
|
+
value: GetValidatorSetByHeightResponseAmino;
|
|
74
|
+
}
|
|
75
|
+
/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */
|
|
76
|
+
export interface GetValidatorSetByHeightResponseSDKType {
|
|
77
|
+
block_height: bigint;
|
|
78
|
+
validators: ValidatorSDKType[];
|
|
79
|
+
pagination?: PageResponseSDKType;
|
|
80
|
+
}
|
|
81
|
+
/** GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */
|
|
82
|
+
export interface GetLatestValidatorSetRequest {
|
|
83
|
+
/** pagination defines an pagination for the request. */
|
|
84
|
+
pagination?: PageRequest;
|
|
85
|
+
}
|
|
86
|
+
export interface GetLatestValidatorSetRequestProtoMsg {
|
|
87
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest";
|
|
88
|
+
value: Uint8Array;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
|
|
92
|
+
* @name GetLatestValidatorSetRequestAmino
|
|
93
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
94
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest
|
|
95
|
+
*/
|
|
96
|
+
export interface GetLatestValidatorSetRequestAmino {
|
|
97
|
+
/**
|
|
98
|
+
* pagination defines an pagination for the request.
|
|
99
|
+
*/
|
|
100
|
+
pagination?: PageRequestAmino;
|
|
101
|
+
}
|
|
102
|
+
export interface GetLatestValidatorSetRequestAminoMsg {
|
|
103
|
+
type: "cosmos-sdk/GetLatestValidatorSetRequest";
|
|
104
|
+
value: GetLatestValidatorSetRequestAmino;
|
|
105
|
+
}
|
|
106
|
+
/** GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */
|
|
107
|
+
export interface GetLatestValidatorSetRequestSDKType {
|
|
108
|
+
pagination?: PageRequestSDKType;
|
|
109
|
+
}
|
|
110
|
+
/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */
|
|
111
|
+
export interface GetLatestValidatorSetResponse {
|
|
112
|
+
blockHeight: bigint;
|
|
113
|
+
validators: Validator[];
|
|
114
|
+
/** pagination defines an pagination for the response. */
|
|
115
|
+
pagination?: PageResponse;
|
|
116
|
+
}
|
|
117
|
+
export interface GetLatestValidatorSetResponseProtoMsg {
|
|
118
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse";
|
|
119
|
+
value: Uint8Array;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
|
|
123
|
+
* @name GetLatestValidatorSetResponseAmino
|
|
124
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
125
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse
|
|
126
|
+
*/
|
|
127
|
+
export interface GetLatestValidatorSetResponseAmino {
|
|
128
|
+
block_height?: string;
|
|
129
|
+
validators?: ValidatorAmino[];
|
|
130
|
+
/**
|
|
131
|
+
* pagination defines an pagination for the response.
|
|
132
|
+
*/
|
|
133
|
+
pagination?: PageResponseAmino;
|
|
134
|
+
}
|
|
135
|
+
export interface GetLatestValidatorSetResponseAminoMsg {
|
|
136
|
+
type: "cosmos-sdk/GetLatestValidatorSetResponse";
|
|
137
|
+
value: GetLatestValidatorSetResponseAmino;
|
|
138
|
+
}
|
|
139
|
+
/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */
|
|
140
|
+
export interface GetLatestValidatorSetResponseSDKType {
|
|
141
|
+
block_height: bigint;
|
|
142
|
+
validators: ValidatorSDKType[];
|
|
143
|
+
pagination?: PageResponseSDKType;
|
|
144
|
+
}
|
|
145
|
+
/** Validator is the type for the validator-set. */
|
|
146
|
+
export interface Validator {
|
|
147
|
+
address: string;
|
|
148
|
+
pubKey?: Any;
|
|
149
|
+
votingPower: bigint;
|
|
150
|
+
proposerPriority: bigint;
|
|
151
|
+
}
|
|
152
|
+
export interface ValidatorProtoMsg {
|
|
153
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.Validator";
|
|
154
|
+
value: Uint8Array;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Validator is the type for the validator-set.
|
|
158
|
+
* @name ValidatorAmino
|
|
159
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
160
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.Validator
|
|
161
|
+
*/
|
|
162
|
+
export interface ValidatorAmino {
|
|
163
|
+
address?: string;
|
|
164
|
+
pub_key?: AnyAmino;
|
|
165
|
+
voting_power?: string;
|
|
166
|
+
proposer_priority?: string;
|
|
167
|
+
}
|
|
168
|
+
export interface ValidatorAminoMsg {
|
|
169
|
+
type: "cosmos-sdk/Validator";
|
|
170
|
+
value: ValidatorAmino;
|
|
171
|
+
}
|
|
172
|
+
/** Validator is the type for the validator-set. */
|
|
173
|
+
export interface ValidatorSDKType {
|
|
174
|
+
address: string;
|
|
175
|
+
pub_key?: AnySDKType;
|
|
176
|
+
voting_power: bigint;
|
|
177
|
+
proposer_priority: bigint;
|
|
178
|
+
}
|
|
179
|
+
/** GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. */
|
|
180
|
+
export interface GetBlockByHeightRequest {
|
|
181
|
+
height: bigint;
|
|
182
|
+
}
|
|
183
|
+
export interface GetBlockByHeightRequestProtoMsg {
|
|
184
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest";
|
|
185
|
+
value: Uint8Array;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
|
|
189
|
+
* @name GetBlockByHeightRequestAmino
|
|
190
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
191
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest
|
|
192
|
+
*/
|
|
193
|
+
export interface GetBlockByHeightRequestAmino {
|
|
194
|
+
height?: string;
|
|
195
|
+
}
|
|
196
|
+
export interface GetBlockByHeightRequestAminoMsg {
|
|
197
|
+
type: "cosmos-sdk/GetBlockByHeightRequest";
|
|
198
|
+
value: GetBlockByHeightRequestAmino;
|
|
199
|
+
}
|
|
200
|
+
/** GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. */
|
|
201
|
+
export interface GetBlockByHeightRequestSDKType {
|
|
202
|
+
height: bigint;
|
|
203
|
+
}
|
|
204
|
+
/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */
|
|
205
|
+
export interface GetBlockByHeightResponse {
|
|
206
|
+
blockId?: BlockID;
|
|
207
|
+
/** Deprecated: please use `sdk_block` instead */
|
|
208
|
+
block?: Block1;
|
|
209
|
+
sdkBlock?: Block2;
|
|
210
|
+
}
|
|
211
|
+
export interface GetBlockByHeightResponseProtoMsg {
|
|
212
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse";
|
|
213
|
+
value: Uint8Array;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
|
|
217
|
+
* @name GetBlockByHeightResponseAmino
|
|
218
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
219
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse
|
|
220
|
+
*/
|
|
221
|
+
export interface GetBlockByHeightResponseAmino {
|
|
222
|
+
block_id?: BlockIDAmino;
|
|
223
|
+
/**
|
|
224
|
+
* Deprecated: please use `sdk_block` instead
|
|
225
|
+
*/
|
|
226
|
+
block?: Block1Amino;
|
|
227
|
+
sdk_block?: Block2Amino;
|
|
228
|
+
}
|
|
229
|
+
export interface GetBlockByHeightResponseAminoMsg {
|
|
230
|
+
type: "cosmos-sdk/GetBlockByHeightResponse";
|
|
231
|
+
value: GetBlockByHeightResponseAmino;
|
|
232
|
+
}
|
|
233
|
+
/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */
|
|
234
|
+
export interface GetBlockByHeightResponseSDKType {
|
|
235
|
+
block_id?: BlockIDSDKType;
|
|
236
|
+
block?: Block1SDKType;
|
|
237
|
+
sdk_block?: Block2SDKType;
|
|
238
|
+
}
|
|
239
|
+
/** GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. */
|
|
240
|
+
export interface GetLatestBlockRequest {}
|
|
241
|
+
export interface GetLatestBlockRequestProtoMsg {
|
|
242
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest";
|
|
243
|
+
value: Uint8Array;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
|
|
247
|
+
* @name GetLatestBlockRequestAmino
|
|
248
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
249
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestBlockRequest
|
|
250
|
+
*/
|
|
251
|
+
export interface GetLatestBlockRequestAmino {}
|
|
252
|
+
export interface GetLatestBlockRequestAminoMsg {
|
|
253
|
+
type: "cosmos-sdk/GetLatestBlockRequest";
|
|
254
|
+
value: GetLatestBlockRequestAmino;
|
|
255
|
+
}
|
|
256
|
+
/** GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. */
|
|
257
|
+
export interface GetLatestBlockRequestSDKType {}
|
|
258
|
+
/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */
|
|
259
|
+
export interface GetLatestBlockResponse {
|
|
260
|
+
blockId?: BlockID;
|
|
261
|
+
/** Deprecated: please use `sdk_block` instead */
|
|
262
|
+
block?: Block1;
|
|
263
|
+
sdkBlock?: Block2;
|
|
264
|
+
}
|
|
265
|
+
export interface GetLatestBlockResponseProtoMsg {
|
|
266
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse";
|
|
267
|
+
value: Uint8Array;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
|
|
271
|
+
* @name GetLatestBlockResponseAmino
|
|
272
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
273
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse
|
|
274
|
+
*/
|
|
275
|
+
export interface GetLatestBlockResponseAmino {
|
|
276
|
+
block_id?: BlockIDAmino;
|
|
277
|
+
/**
|
|
278
|
+
* Deprecated: please use `sdk_block` instead
|
|
279
|
+
*/
|
|
280
|
+
block?: Block1Amino;
|
|
281
|
+
sdk_block?: Block2Amino;
|
|
282
|
+
}
|
|
283
|
+
export interface GetLatestBlockResponseAminoMsg {
|
|
284
|
+
type: "cosmos-sdk/GetLatestBlockResponse";
|
|
285
|
+
value: GetLatestBlockResponseAmino;
|
|
286
|
+
}
|
|
287
|
+
/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */
|
|
288
|
+
export interface GetLatestBlockResponseSDKType {
|
|
289
|
+
block_id?: BlockIDSDKType;
|
|
290
|
+
block?: Block1SDKType;
|
|
291
|
+
sdk_block?: Block2SDKType;
|
|
292
|
+
}
|
|
293
|
+
/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */
|
|
294
|
+
export interface GetSyncingRequest {}
|
|
295
|
+
export interface GetSyncingRequestProtoMsg {
|
|
296
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest";
|
|
297
|
+
value: Uint8Array;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
|
|
301
|
+
* @name GetSyncingRequestAmino
|
|
302
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
303
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.GetSyncingRequest
|
|
304
|
+
*/
|
|
305
|
+
export interface GetSyncingRequestAmino {}
|
|
306
|
+
export interface GetSyncingRequestAminoMsg {
|
|
307
|
+
type: "cosmos-sdk/GetSyncingRequest";
|
|
308
|
+
value: GetSyncingRequestAmino;
|
|
309
|
+
}
|
|
310
|
+
/** GetSyncingRequest is the request type for the Query/GetSyncing RPC method. */
|
|
311
|
+
export interface GetSyncingRequestSDKType {}
|
|
312
|
+
/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */
|
|
313
|
+
export interface GetSyncingResponse {
|
|
314
|
+
syncing: boolean;
|
|
315
|
+
}
|
|
316
|
+
export interface GetSyncingResponseProtoMsg {
|
|
317
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse";
|
|
318
|
+
value: Uint8Array;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
|
|
322
|
+
* @name GetSyncingResponseAmino
|
|
323
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
324
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.GetSyncingResponse
|
|
325
|
+
*/
|
|
326
|
+
export interface GetSyncingResponseAmino {
|
|
327
|
+
syncing?: boolean;
|
|
328
|
+
}
|
|
329
|
+
export interface GetSyncingResponseAminoMsg {
|
|
330
|
+
type: "cosmos-sdk/GetSyncingResponse";
|
|
331
|
+
value: GetSyncingResponseAmino;
|
|
332
|
+
}
|
|
333
|
+
/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */
|
|
334
|
+
export interface GetSyncingResponseSDKType {
|
|
335
|
+
syncing: boolean;
|
|
336
|
+
}
|
|
337
|
+
/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */
|
|
338
|
+
export interface GetNodeInfoRequest {}
|
|
339
|
+
export interface GetNodeInfoRequestProtoMsg {
|
|
340
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest";
|
|
341
|
+
value: Uint8Array;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
|
|
345
|
+
* @name GetNodeInfoRequestAmino
|
|
346
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
347
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.GetNodeInfoRequest
|
|
348
|
+
*/
|
|
349
|
+
export interface GetNodeInfoRequestAmino {}
|
|
350
|
+
export interface GetNodeInfoRequestAminoMsg {
|
|
351
|
+
type: "cosmos-sdk/GetNodeInfoRequest";
|
|
352
|
+
value: GetNodeInfoRequestAmino;
|
|
353
|
+
}
|
|
354
|
+
/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */
|
|
355
|
+
export interface GetNodeInfoRequestSDKType {}
|
|
356
|
+
/** GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. */
|
|
357
|
+
export interface GetNodeInfoResponse {
|
|
358
|
+
defaultNodeInfo?: DefaultNodeInfo;
|
|
359
|
+
applicationVersion?: VersionInfo;
|
|
360
|
+
}
|
|
361
|
+
export interface GetNodeInfoResponseProtoMsg {
|
|
362
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse";
|
|
363
|
+
value: Uint8Array;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method.
|
|
367
|
+
* @name GetNodeInfoResponseAmino
|
|
368
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
369
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.GetNodeInfoResponse
|
|
370
|
+
*/
|
|
371
|
+
export interface GetNodeInfoResponseAmino {
|
|
372
|
+
default_node_info?: DefaultNodeInfoAmino;
|
|
373
|
+
application_version?: VersionInfoAmino;
|
|
374
|
+
}
|
|
375
|
+
export interface GetNodeInfoResponseAminoMsg {
|
|
376
|
+
type: "cosmos-sdk/GetNodeInfoResponse";
|
|
377
|
+
value: GetNodeInfoResponseAmino;
|
|
378
|
+
}
|
|
379
|
+
/** GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. */
|
|
380
|
+
export interface GetNodeInfoResponseSDKType {
|
|
381
|
+
default_node_info?: DefaultNodeInfoSDKType;
|
|
382
|
+
application_version?: VersionInfoSDKType;
|
|
383
|
+
}
|
|
384
|
+
/** VersionInfo is the type for the GetNodeInfoResponse message. */
|
|
385
|
+
export interface VersionInfo {
|
|
386
|
+
name: string;
|
|
387
|
+
appName: string;
|
|
388
|
+
version: string;
|
|
389
|
+
gitCommit: string;
|
|
390
|
+
buildTags: string;
|
|
391
|
+
goVersion: string;
|
|
392
|
+
buildDeps: Module[];
|
|
393
|
+
cosmosSdkVersion: string;
|
|
394
|
+
}
|
|
395
|
+
export interface VersionInfoProtoMsg {
|
|
396
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.VersionInfo";
|
|
397
|
+
value: Uint8Array;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* VersionInfo is the type for the GetNodeInfoResponse message.
|
|
401
|
+
* @name VersionInfoAmino
|
|
402
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
403
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.VersionInfo
|
|
404
|
+
*/
|
|
405
|
+
export interface VersionInfoAmino {
|
|
406
|
+
name?: string;
|
|
407
|
+
app_name?: string;
|
|
408
|
+
version?: string;
|
|
409
|
+
git_commit?: string;
|
|
410
|
+
build_tags?: string;
|
|
411
|
+
go_version?: string;
|
|
412
|
+
build_deps?: ModuleAmino[];
|
|
413
|
+
cosmos_sdk_version?: string;
|
|
414
|
+
}
|
|
415
|
+
export interface VersionInfoAminoMsg {
|
|
416
|
+
type: "cosmos-sdk/VersionInfo";
|
|
417
|
+
value: VersionInfoAmino;
|
|
418
|
+
}
|
|
419
|
+
/** VersionInfo is the type for the GetNodeInfoResponse message. */
|
|
420
|
+
export interface VersionInfoSDKType {
|
|
421
|
+
name: string;
|
|
422
|
+
app_name: string;
|
|
423
|
+
version: string;
|
|
424
|
+
git_commit: string;
|
|
425
|
+
build_tags: string;
|
|
426
|
+
go_version: string;
|
|
427
|
+
build_deps: ModuleSDKType[];
|
|
428
|
+
cosmos_sdk_version: string;
|
|
429
|
+
}
|
|
430
|
+
/** Module is the type for VersionInfo */
|
|
431
|
+
export interface Module {
|
|
432
|
+
/** module path */
|
|
433
|
+
path: string;
|
|
434
|
+
/** module version */
|
|
435
|
+
version: string;
|
|
436
|
+
/** checksum */
|
|
437
|
+
sum: string;
|
|
438
|
+
}
|
|
439
|
+
export interface ModuleProtoMsg {
|
|
440
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.Module";
|
|
441
|
+
value: Uint8Array;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Module is the type for VersionInfo
|
|
445
|
+
* @name ModuleAmino
|
|
446
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
447
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.Module
|
|
448
|
+
*/
|
|
449
|
+
export interface ModuleAmino {
|
|
450
|
+
/**
|
|
451
|
+
* module path
|
|
452
|
+
*/
|
|
453
|
+
path?: string;
|
|
454
|
+
/**
|
|
455
|
+
* module version
|
|
456
|
+
*/
|
|
457
|
+
version?: string;
|
|
458
|
+
/**
|
|
459
|
+
* checksum
|
|
460
|
+
*/
|
|
461
|
+
sum?: string;
|
|
462
|
+
}
|
|
463
|
+
export interface ModuleAminoMsg {
|
|
464
|
+
type: "cosmos-sdk/Module";
|
|
465
|
+
value: ModuleAmino;
|
|
466
|
+
}
|
|
467
|
+
/** Module is the type for VersionInfo */
|
|
468
|
+
export interface ModuleSDKType {
|
|
469
|
+
path: string;
|
|
470
|
+
version: string;
|
|
471
|
+
sum: string;
|
|
472
|
+
}
|
|
473
|
+
/** ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. */
|
|
474
|
+
export interface ABCIQueryRequest {
|
|
475
|
+
data: Uint8Array;
|
|
476
|
+
path: string;
|
|
477
|
+
height: bigint;
|
|
478
|
+
prove: boolean;
|
|
479
|
+
}
|
|
480
|
+
export interface ABCIQueryRequestProtoMsg {
|
|
481
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest";
|
|
482
|
+
value: Uint8Array;
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query.
|
|
486
|
+
* @name ABCIQueryRequestAmino
|
|
487
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
488
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.ABCIQueryRequest
|
|
489
|
+
*/
|
|
490
|
+
export interface ABCIQueryRequestAmino {
|
|
491
|
+
data?: string;
|
|
492
|
+
path?: string;
|
|
493
|
+
height?: string;
|
|
494
|
+
prove?: boolean;
|
|
495
|
+
}
|
|
496
|
+
export interface ABCIQueryRequestAminoMsg {
|
|
497
|
+
type: "cosmos-sdk/ABCIQueryRequest";
|
|
498
|
+
value: ABCIQueryRequestAmino;
|
|
499
|
+
}
|
|
500
|
+
/** ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. */
|
|
501
|
+
export interface ABCIQueryRequestSDKType {
|
|
502
|
+
data: Uint8Array;
|
|
503
|
+
path: string;
|
|
504
|
+
height: bigint;
|
|
505
|
+
prove: boolean;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query.
|
|
509
|
+
*
|
|
510
|
+
* Note: This type is a duplicate of the ResponseQuery proto type defined in
|
|
511
|
+
* Tendermint.
|
|
512
|
+
*/
|
|
513
|
+
export interface ABCIQueryResponse {
|
|
514
|
+
code: number;
|
|
515
|
+
/** nondeterministic */
|
|
516
|
+
log: string;
|
|
517
|
+
/** nondeterministic */
|
|
518
|
+
info: string;
|
|
519
|
+
index: bigint;
|
|
520
|
+
key: Uint8Array;
|
|
521
|
+
value: Uint8Array;
|
|
522
|
+
proofOps?: ProofOps;
|
|
523
|
+
height: bigint;
|
|
524
|
+
codespace: string;
|
|
525
|
+
}
|
|
526
|
+
export interface ABCIQueryResponseProtoMsg {
|
|
527
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse";
|
|
528
|
+
value: Uint8Array;
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query.
|
|
532
|
+
*
|
|
533
|
+
* Note: This type is a duplicate of the ResponseQuery proto type defined in
|
|
534
|
+
* Tendermint.
|
|
535
|
+
* @name ABCIQueryResponseAmino
|
|
536
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
537
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.ABCIQueryResponse
|
|
538
|
+
*/
|
|
539
|
+
export interface ABCIQueryResponseAmino {
|
|
540
|
+
code?: number;
|
|
541
|
+
/**
|
|
542
|
+
* nondeterministic
|
|
543
|
+
*/
|
|
544
|
+
log?: string;
|
|
545
|
+
/**
|
|
546
|
+
* nondeterministic
|
|
547
|
+
*/
|
|
548
|
+
info?: string;
|
|
549
|
+
index?: string;
|
|
550
|
+
key?: string;
|
|
551
|
+
value?: string;
|
|
552
|
+
proof_ops?: ProofOpsAmino;
|
|
553
|
+
height?: string;
|
|
554
|
+
codespace?: string;
|
|
555
|
+
}
|
|
556
|
+
export interface ABCIQueryResponseAminoMsg {
|
|
557
|
+
type: "cosmos-sdk/ABCIQueryResponse";
|
|
558
|
+
value: ABCIQueryResponseAmino;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query.
|
|
562
|
+
*
|
|
563
|
+
* Note: This type is a duplicate of the ResponseQuery proto type defined in
|
|
564
|
+
* Tendermint.
|
|
565
|
+
*/
|
|
566
|
+
export interface ABCIQueryResponseSDKType {
|
|
567
|
+
code: number;
|
|
568
|
+
log: string;
|
|
569
|
+
info: string;
|
|
570
|
+
index: bigint;
|
|
571
|
+
key: Uint8Array;
|
|
572
|
+
value: Uint8Array;
|
|
573
|
+
proof_ops?: ProofOpsSDKType;
|
|
574
|
+
height: bigint;
|
|
575
|
+
codespace: string;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* ProofOp defines an operation used for calculating Merkle root. The data could
|
|
579
|
+
* be arbitrary format, providing necessary data for example neighbouring node
|
|
580
|
+
* hash.
|
|
581
|
+
*
|
|
582
|
+
* Note: This type is a duplicate of the ProofOp proto type defined in Tendermint.
|
|
583
|
+
*/
|
|
584
|
+
export interface ProofOp {
|
|
585
|
+
type: string;
|
|
586
|
+
key: Uint8Array;
|
|
587
|
+
data: Uint8Array;
|
|
588
|
+
}
|
|
589
|
+
export interface ProofOpProtoMsg {
|
|
590
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp";
|
|
591
|
+
value: Uint8Array;
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* ProofOp defines an operation used for calculating Merkle root. The data could
|
|
595
|
+
* be arbitrary format, providing necessary data for example neighbouring node
|
|
596
|
+
* hash.
|
|
597
|
+
*
|
|
598
|
+
* Note: This type is a duplicate of the ProofOp proto type defined in Tendermint.
|
|
599
|
+
* @name ProofOpAmino
|
|
600
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
601
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.ProofOp
|
|
602
|
+
*/
|
|
603
|
+
export interface ProofOpAmino {
|
|
604
|
+
type?: string;
|
|
605
|
+
key?: string;
|
|
606
|
+
data?: string;
|
|
607
|
+
}
|
|
608
|
+
export interface ProofOpAminoMsg {
|
|
609
|
+
type: "cosmos-sdk/ProofOp";
|
|
610
|
+
value: ProofOpAmino;
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* ProofOp defines an operation used for calculating Merkle root. The data could
|
|
614
|
+
* be arbitrary format, providing necessary data for example neighbouring node
|
|
615
|
+
* hash.
|
|
616
|
+
*
|
|
617
|
+
* Note: This type is a duplicate of the ProofOp proto type defined in Tendermint.
|
|
618
|
+
*/
|
|
619
|
+
export interface ProofOpSDKType {
|
|
620
|
+
type: string;
|
|
621
|
+
key: Uint8Array;
|
|
622
|
+
data: Uint8Array;
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* ProofOps is Merkle proof defined by the list of ProofOps.
|
|
626
|
+
*
|
|
627
|
+
* Note: This type is a duplicate of the ProofOps proto type defined in Tendermint.
|
|
628
|
+
*/
|
|
629
|
+
export interface ProofOps {
|
|
630
|
+
ops: ProofOp[];
|
|
631
|
+
}
|
|
632
|
+
export interface ProofOpsProtoMsg {
|
|
633
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps";
|
|
634
|
+
value: Uint8Array;
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* ProofOps is Merkle proof defined by the list of ProofOps.
|
|
638
|
+
*
|
|
639
|
+
* Note: This type is a duplicate of the ProofOps proto type defined in Tendermint.
|
|
640
|
+
* @name ProofOpsAmino
|
|
641
|
+
* @package cosmos.base.tendermint.v1beta1
|
|
642
|
+
* @see proto type: cosmos.base.tendermint.v1beta1.ProofOps
|
|
643
|
+
*/
|
|
644
|
+
export interface ProofOpsAmino {
|
|
645
|
+
ops: ProofOpAmino[];
|
|
646
|
+
}
|
|
647
|
+
export interface ProofOpsAminoMsg {
|
|
648
|
+
type: "cosmos-sdk/ProofOps";
|
|
649
|
+
value: ProofOpsAmino;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* ProofOps is Merkle proof defined by the list of ProofOps.
|
|
653
|
+
*
|
|
654
|
+
* Note: This type is a duplicate of the ProofOps proto type defined in Tendermint.
|
|
655
|
+
*/
|
|
656
|
+
export interface ProofOpsSDKType {
|
|
657
|
+
ops: ProofOpSDKType[];
|
|
658
|
+
}
|
|
659
|
+
function createBaseGetValidatorSetByHeightRequest(): GetValidatorSetByHeightRequest {
|
|
660
|
+
return {
|
|
661
|
+
height: BigInt(0),
|
|
662
|
+
pagination: undefined
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
export const GetValidatorSetByHeightRequest = {
|
|
666
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest",
|
|
667
|
+
encode(message: GetValidatorSetByHeightRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
668
|
+
if (message.height !== BigInt(0)) {
|
|
669
|
+
writer.uint32(8).int64(message.height);
|
|
670
|
+
}
|
|
671
|
+
if (message.pagination !== undefined) {
|
|
672
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
673
|
+
}
|
|
674
|
+
return writer;
|
|
675
|
+
},
|
|
676
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetValidatorSetByHeightRequest {
|
|
677
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
678
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
679
|
+
const message = createBaseGetValidatorSetByHeightRequest();
|
|
680
|
+
while (reader.pos < end) {
|
|
681
|
+
const tag = reader.uint32();
|
|
682
|
+
switch (tag >>> 3) {
|
|
683
|
+
case 1:
|
|
684
|
+
message.height = reader.int64();
|
|
685
|
+
break;
|
|
686
|
+
case 2:
|
|
687
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
688
|
+
break;
|
|
689
|
+
default:
|
|
690
|
+
reader.skipType(tag & 7);
|
|
691
|
+
break;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
return message;
|
|
695
|
+
},
|
|
696
|
+
fromPartial(object: Partial<GetValidatorSetByHeightRequest>): GetValidatorSetByHeightRequest {
|
|
697
|
+
const message = createBaseGetValidatorSetByHeightRequest();
|
|
698
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
699
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
700
|
+
return message;
|
|
701
|
+
},
|
|
702
|
+
fromAmino(object: GetValidatorSetByHeightRequestAmino): GetValidatorSetByHeightRequest {
|
|
703
|
+
const message = createBaseGetValidatorSetByHeightRequest();
|
|
704
|
+
if (object.height !== undefined && object.height !== null) {
|
|
705
|
+
message.height = BigInt(object.height);
|
|
706
|
+
}
|
|
707
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
708
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
709
|
+
}
|
|
710
|
+
return message;
|
|
711
|
+
},
|
|
712
|
+
toAmino(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestAmino {
|
|
713
|
+
const obj: any = {};
|
|
714
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
715
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
716
|
+
return obj;
|
|
717
|
+
},
|
|
718
|
+
fromAminoMsg(object: GetValidatorSetByHeightRequestAminoMsg): GetValidatorSetByHeightRequest {
|
|
719
|
+
return GetValidatorSetByHeightRequest.fromAmino(object.value);
|
|
720
|
+
},
|
|
721
|
+
toAminoMsg(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestAminoMsg {
|
|
722
|
+
return {
|
|
723
|
+
type: "cosmos-sdk/GetValidatorSetByHeightRequest",
|
|
724
|
+
value: GetValidatorSetByHeightRequest.toAmino(message)
|
|
725
|
+
};
|
|
726
|
+
},
|
|
727
|
+
fromProtoMsg(message: GetValidatorSetByHeightRequestProtoMsg): GetValidatorSetByHeightRequest {
|
|
728
|
+
return GetValidatorSetByHeightRequest.decode(message.value);
|
|
729
|
+
},
|
|
730
|
+
toProto(message: GetValidatorSetByHeightRequest): Uint8Array {
|
|
731
|
+
return GetValidatorSetByHeightRequest.encode(message).finish();
|
|
732
|
+
},
|
|
733
|
+
toProtoMsg(message: GetValidatorSetByHeightRequest): GetValidatorSetByHeightRequestProtoMsg {
|
|
734
|
+
return {
|
|
735
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest",
|
|
736
|
+
value: GetValidatorSetByHeightRequest.encode(message).finish()
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
};
|
|
740
|
+
function createBaseGetValidatorSetByHeightResponse(): GetValidatorSetByHeightResponse {
|
|
741
|
+
return {
|
|
742
|
+
blockHeight: BigInt(0),
|
|
743
|
+
validators: [],
|
|
744
|
+
pagination: undefined
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
export const GetValidatorSetByHeightResponse = {
|
|
748
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse",
|
|
749
|
+
encode(message: GetValidatorSetByHeightResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
750
|
+
if (message.blockHeight !== BigInt(0)) {
|
|
751
|
+
writer.uint32(8).int64(message.blockHeight);
|
|
752
|
+
}
|
|
753
|
+
for (const v of message.validators) {
|
|
754
|
+
Validator.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
755
|
+
}
|
|
756
|
+
if (message.pagination !== undefined) {
|
|
757
|
+
PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
758
|
+
}
|
|
759
|
+
return writer;
|
|
760
|
+
},
|
|
761
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetValidatorSetByHeightResponse {
|
|
762
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
763
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
764
|
+
const message = createBaseGetValidatorSetByHeightResponse();
|
|
765
|
+
while (reader.pos < end) {
|
|
766
|
+
const tag = reader.uint32();
|
|
767
|
+
switch (tag >>> 3) {
|
|
768
|
+
case 1:
|
|
769
|
+
message.blockHeight = reader.int64();
|
|
770
|
+
break;
|
|
771
|
+
case 2:
|
|
772
|
+
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
773
|
+
break;
|
|
774
|
+
case 3:
|
|
775
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
776
|
+
break;
|
|
777
|
+
default:
|
|
778
|
+
reader.skipType(tag & 7);
|
|
779
|
+
break;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
return message;
|
|
783
|
+
},
|
|
784
|
+
fromPartial(object: Partial<GetValidatorSetByHeightResponse>): GetValidatorSetByHeightResponse {
|
|
785
|
+
const message = createBaseGetValidatorSetByHeightResponse();
|
|
786
|
+
message.blockHeight = object.blockHeight !== undefined && object.blockHeight !== null ? BigInt(object.blockHeight.toString()) : BigInt(0);
|
|
787
|
+
message.validators = object.validators?.map(e => Validator.fromPartial(e)) || [];
|
|
788
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
789
|
+
return message;
|
|
790
|
+
},
|
|
791
|
+
fromAmino(object: GetValidatorSetByHeightResponseAmino): GetValidatorSetByHeightResponse {
|
|
792
|
+
const message = createBaseGetValidatorSetByHeightResponse();
|
|
793
|
+
if (object.block_height !== undefined && object.block_height !== null) {
|
|
794
|
+
message.blockHeight = BigInt(object.block_height);
|
|
795
|
+
}
|
|
796
|
+
message.validators = object.validators?.map(e => Validator.fromAmino(e)) || [];
|
|
797
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
798
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
799
|
+
}
|
|
800
|
+
return message;
|
|
801
|
+
},
|
|
802
|
+
toAmino(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseAmino {
|
|
803
|
+
const obj: any = {};
|
|
804
|
+
obj.block_height = message.blockHeight !== BigInt(0) ? message.blockHeight?.toString() : undefined;
|
|
805
|
+
if (message.validators) {
|
|
806
|
+
obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined);
|
|
807
|
+
} else {
|
|
808
|
+
obj.validators = message.validators;
|
|
809
|
+
}
|
|
810
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
811
|
+
return obj;
|
|
812
|
+
},
|
|
813
|
+
fromAminoMsg(object: GetValidatorSetByHeightResponseAminoMsg): GetValidatorSetByHeightResponse {
|
|
814
|
+
return GetValidatorSetByHeightResponse.fromAmino(object.value);
|
|
815
|
+
},
|
|
816
|
+
toAminoMsg(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseAminoMsg {
|
|
817
|
+
return {
|
|
818
|
+
type: "cosmos-sdk/GetValidatorSetByHeightResponse",
|
|
819
|
+
value: GetValidatorSetByHeightResponse.toAmino(message)
|
|
820
|
+
};
|
|
821
|
+
},
|
|
822
|
+
fromProtoMsg(message: GetValidatorSetByHeightResponseProtoMsg): GetValidatorSetByHeightResponse {
|
|
823
|
+
return GetValidatorSetByHeightResponse.decode(message.value);
|
|
824
|
+
},
|
|
825
|
+
toProto(message: GetValidatorSetByHeightResponse): Uint8Array {
|
|
826
|
+
return GetValidatorSetByHeightResponse.encode(message).finish();
|
|
827
|
+
},
|
|
828
|
+
toProtoMsg(message: GetValidatorSetByHeightResponse): GetValidatorSetByHeightResponseProtoMsg {
|
|
829
|
+
return {
|
|
830
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse",
|
|
831
|
+
value: GetValidatorSetByHeightResponse.encode(message).finish()
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
function createBaseGetLatestValidatorSetRequest(): GetLatestValidatorSetRequest {
|
|
836
|
+
return {
|
|
837
|
+
pagination: undefined
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
export const GetLatestValidatorSetRequest = {
|
|
841
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest",
|
|
842
|
+
encode(message: GetLatestValidatorSetRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
843
|
+
if (message.pagination !== undefined) {
|
|
844
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
845
|
+
}
|
|
846
|
+
return writer;
|
|
847
|
+
},
|
|
848
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetLatestValidatorSetRequest {
|
|
849
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
850
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
851
|
+
const message = createBaseGetLatestValidatorSetRequest();
|
|
852
|
+
while (reader.pos < end) {
|
|
853
|
+
const tag = reader.uint32();
|
|
854
|
+
switch (tag >>> 3) {
|
|
855
|
+
case 1:
|
|
856
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
857
|
+
break;
|
|
858
|
+
default:
|
|
859
|
+
reader.skipType(tag & 7);
|
|
860
|
+
break;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
return message;
|
|
864
|
+
},
|
|
865
|
+
fromPartial(object: Partial<GetLatestValidatorSetRequest>): GetLatestValidatorSetRequest {
|
|
866
|
+
const message = createBaseGetLatestValidatorSetRequest();
|
|
867
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
868
|
+
return message;
|
|
869
|
+
},
|
|
870
|
+
fromAmino(object: GetLatestValidatorSetRequestAmino): GetLatestValidatorSetRequest {
|
|
871
|
+
const message = createBaseGetLatestValidatorSetRequest();
|
|
872
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
873
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
874
|
+
}
|
|
875
|
+
return message;
|
|
876
|
+
},
|
|
877
|
+
toAmino(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestAmino {
|
|
878
|
+
const obj: any = {};
|
|
879
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
880
|
+
return obj;
|
|
881
|
+
},
|
|
882
|
+
fromAminoMsg(object: GetLatestValidatorSetRequestAminoMsg): GetLatestValidatorSetRequest {
|
|
883
|
+
return GetLatestValidatorSetRequest.fromAmino(object.value);
|
|
884
|
+
},
|
|
885
|
+
toAminoMsg(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestAminoMsg {
|
|
886
|
+
return {
|
|
887
|
+
type: "cosmos-sdk/GetLatestValidatorSetRequest",
|
|
888
|
+
value: GetLatestValidatorSetRequest.toAmino(message)
|
|
889
|
+
};
|
|
890
|
+
},
|
|
891
|
+
fromProtoMsg(message: GetLatestValidatorSetRequestProtoMsg): GetLatestValidatorSetRequest {
|
|
892
|
+
return GetLatestValidatorSetRequest.decode(message.value);
|
|
893
|
+
},
|
|
894
|
+
toProto(message: GetLatestValidatorSetRequest): Uint8Array {
|
|
895
|
+
return GetLatestValidatorSetRequest.encode(message).finish();
|
|
896
|
+
},
|
|
897
|
+
toProtoMsg(message: GetLatestValidatorSetRequest): GetLatestValidatorSetRequestProtoMsg {
|
|
898
|
+
return {
|
|
899
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest",
|
|
900
|
+
value: GetLatestValidatorSetRequest.encode(message).finish()
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
};
|
|
904
|
+
function createBaseGetLatestValidatorSetResponse(): GetLatestValidatorSetResponse {
|
|
905
|
+
return {
|
|
906
|
+
blockHeight: BigInt(0),
|
|
907
|
+
validators: [],
|
|
908
|
+
pagination: undefined
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
export const GetLatestValidatorSetResponse = {
|
|
912
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse",
|
|
913
|
+
encode(message: GetLatestValidatorSetResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
914
|
+
if (message.blockHeight !== BigInt(0)) {
|
|
915
|
+
writer.uint32(8).int64(message.blockHeight);
|
|
916
|
+
}
|
|
917
|
+
for (const v of message.validators) {
|
|
918
|
+
Validator.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
919
|
+
}
|
|
920
|
+
if (message.pagination !== undefined) {
|
|
921
|
+
PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
922
|
+
}
|
|
923
|
+
return writer;
|
|
924
|
+
},
|
|
925
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetLatestValidatorSetResponse {
|
|
926
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
927
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
928
|
+
const message = createBaseGetLatestValidatorSetResponse();
|
|
929
|
+
while (reader.pos < end) {
|
|
930
|
+
const tag = reader.uint32();
|
|
931
|
+
switch (tag >>> 3) {
|
|
932
|
+
case 1:
|
|
933
|
+
message.blockHeight = reader.int64();
|
|
934
|
+
break;
|
|
935
|
+
case 2:
|
|
936
|
+
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
937
|
+
break;
|
|
938
|
+
case 3:
|
|
939
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
940
|
+
break;
|
|
941
|
+
default:
|
|
942
|
+
reader.skipType(tag & 7);
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
return message;
|
|
947
|
+
},
|
|
948
|
+
fromPartial(object: Partial<GetLatestValidatorSetResponse>): GetLatestValidatorSetResponse {
|
|
949
|
+
const message = createBaseGetLatestValidatorSetResponse();
|
|
950
|
+
message.blockHeight = object.blockHeight !== undefined && object.blockHeight !== null ? BigInt(object.blockHeight.toString()) : BigInt(0);
|
|
951
|
+
message.validators = object.validators?.map(e => Validator.fromPartial(e)) || [];
|
|
952
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
953
|
+
return message;
|
|
954
|
+
},
|
|
955
|
+
fromAmino(object: GetLatestValidatorSetResponseAmino): GetLatestValidatorSetResponse {
|
|
956
|
+
const message = createBaseGetLatestValidatorSetResponse();
|
|
957
|
+
if (object.block_height !== undefined && object.block_height !== null) {
|
|
958
|
+
message.blockHeight = BigInt(object.block_height);
|
|
959
|
+
}
|
|
960
|
+
message.validators = object.validators?.map(e => Validator.fromAmino(e)) || [];
|
|
961
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
962
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
963
|
+
}
|
|
964
|
+
return message;
|
|
965
|
+
},
|
|
966
|
+
toAmino(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseAmino {
|
|
967
|
+
const obj: any = {};
|
|
968
|
+
obj.block_height = message.blockHeight !== BigInt(0) ? message.blockHeight?.toString() : undefined;
|
|
969
|
+
if (message.validators) {
|
|
970
|
+
obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined);
|
|
971
|
+
} else {
|
|
972
|
+
obj.validators = message.validators;
|
|
973
|
+
}
|
|
974
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
975
|
+
return obj;
|
|
976
|
+
},
|
|
977
|
+
fromAminoMsg(object: GetLatestValidatorSetResponseAminoMsg): GetLatestValidatorSetResponse {
|
|
978
|
+
return GetLatestValidatorSetResponse.fromAmino(object.value);
|
|
979
|
+
},
|
|
980
|
+
toAminoMsg(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseAminoMsg {
|
|
981
|
+
return {
|
|
982
|
+
type: "cosmos-sdk/GetLatestValidatorSetResponse",
|
|
983
|
+
value: GetLatestValidatorSetResponse.toAmino(message)
|
|
984
|
+
};
|
|
985
|
+
},
|
|
986
|
+
fromProtoMsg(message: GetLatestValidatorSetResponseProtoMsg): GetLatestValidatorSetResponse {
|
|
987
|
+
return GetLatestValidatorSetResponse.decode(message.value);
|
|
988
|
+
},
|
|
989
|
+
toProto(message: GetLatestValidatorSetResponse): Uint8Array {
|
|
990
|
+
return GetLatestValidatorSetResponse.encode(message).finish();
|
|
991
|
+
},
|
|
992
|
+
toProtoMsg(message: GetLatestValidatorSetResponse): GetLatestValidatorSetResponseProtoMsg {
|
|
993
|
+
return {
|
|
994
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse",
|
|
995
|
+
value: GetLatestValidatorSetResponse.encode(message).finish()
|
|
996
|
+
};
|
|
997
|
+
}
|
|
998
|
+
};
|
|
999
|
+
function createBaseValidator(): Validator {
|
|
1000
|
+
return {
|
|
1001
|
+
address: "",
|
|
1002
|
+
pubKey: undefined,
|
|
1003
|
+
votingPower: BigInt(0),
|
|
1004
|
+
proposerPriority: BigInt(0)
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
export const Validator = {
|
|
1008
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.Validator",
|
|
1009
|
+
encode(message: Validator, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1010
|
+
if (message.address !== "") {
|
|
1011
|
+
writer.uint32(10).string(message.address);
|
|
1012
|
+
}
|
|
1013
|
+
if (message.pubKey !== undefined) {
|
|
1014
|
+
Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim();
|
|
1015
|
+
}
|
|
1016
|
+
if (message.votingPower !== BigInt(0)) {
|
|
1017
|
+
writer.uint32(24).int64(message.votingPower);
|
|
1018
|
+
}
|
|
1019
|
+
if (message.proposerPriority !== BigInt(0)) {
|
|
1020
|
+
writer.uint32(32).int64(message.proposerPriority);
|
|
1021
|
+
}
|
|
1022
|
+
return writer;
|
|
1023
|
+
},
|
|
1024
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Validator {
|
|
1025
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1026
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1027
|
+
const message = createBaseValidator();
|
|
1028
|
+
while (reader.pos < end) {
|
|
1029
|
+
const tag = reader.uint32();
|
|
1030
|
+
switch (tag >>> 3) {
|
|
1031
|
+
case 1:
|
|
1032
|
+
message.address = reader.string();
|
|
1033
|
+
break;
|
|
1034
|
+
case 2:
|
|
1035
|
+
message.pubKey = Any.decode(reader, reader.uint32());
|
|
1036
|
+
break;
|
|
1037
|
+
case 3:
|
|
1038
|
+
message.votingPower = reader.int64();
|
|
1039
|
+
break;
|
|
1040
|
+
case 4:
|
|
1041
|
+
message.proposerPriority = reader.int64();
|
|
1042
|
+
break;
|
|
1043
|
+
default:
|
|
1044
|
+
reader.skipType(tag & 7);
|
|
1045
|
+
break;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
return message;
|
|
1049
|
+
},
|
|
1050
|
+
fromPartial(object: Partial<Validator>): Validator {
|
|
1051
|
+
const message = createBaseValidator();
|
|
1052
|
+
message.address = object.address ?? "";
|
|
1053
|
+
message.pubKey = object.pubKey !== undefined && object.pubKey !== null ? Any.fromPartial(object.pubKey) : undefined;
|
|
1054
|
+
message.votingPower = object.votingPower !== undefined && object.votingPower !== null ? BigInt(object.votingPower.toString()) : BigInt(0);
|
|
1055
|
+
message.proposerPriority = object.proposerPriority !== undefined && object.proposerPriority !== null ? BigInt(object.proposerPriority.toString()) : BigInt(0);
|
|
1056
|
+
return message;
|
|
1057
|
+
},
|
|
1058
|
+
fromAmino(object: ValidatorAmino): Validator {
|
|
1059
|
+
const message = createBaseValidator();
|
|
1060
|
+
if (object.address !== undefined && object.address !== null) {
|
|
1061
|
+
message.address = object.address;
|
|
1062
|
+
}
|
|
1063
|
+
if (object.pub_key !== undefined && object.pub_key !== null) {
|
|
1064
|
+
message.pubKey = Any.fromAmino(object.pub_key);
|
|
1065
|
+
}
|
|
1066
|
+
if (object.voting_power !== undefined && object.voting_power !== null) {
|
|
1067
|
+
message.votingPower = BigInt(object.voting_power);
|
|
1068
|
+
}
|
|
1069
|
+
if (object.proposer_priority !== undefined && object.proposer_priority !== null) {
|
|
1070
|
+
message.proposerPriority = BigInt(object.proposer_priority);
|
|
1071
|
+
}
|
|
1072
|
+
return message;
|
|
1073
|
+
},
|
|
1074
|
+
toAmino(message: Validator): ValidatorAmino {
|
|
1075
|
+
const obj: any = {};
|
|
1076
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
1077
|
+
obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : undefined;
|
|
1078
|
+
obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower?.toString() : undefined;
|
|
1079
|
+
obj.proposer_priority = message.proposerPriority !== BigInt(0) ? message.proposerPriority?.toString() : undefined;
|
|
1080
|
+
return obj;
|
|
1081
|
+
},
|
|
1082
|
+
fromAminoMsg(object: ValidatorAminoMsg): Validator {
|
|
1083
|
+
return Validator.fromAmino(object.value);
|
|
1084
|
+
},
|
|
1085
|
+
toAminoMsg(message: Validator): ValidatorAminoMsg {
|
|
1086
|
+
return {
|
|
1087
|
+
type: "cosmos-sdk/Validator",
|
|
1088
|
+
value: Validator.toAmino(message)
|
|
1089
|
+
};
|
|
1090
|
+
},
|
|
1091
|
+
fromProtoMsg(message: ValidatorProtoMsg): Validator {
|
|
1092
|
+
return Validator.decode(message.value);
|
|
1093
|
+
},
|
|
1094
|
+
toProto(message: Validator): Uint8Array {
|
|
1095
|
+
return Validator.encode(message).finish();
|
|
1096
|
+
},
|
|
1097
|
+
toProtoMsg(message: Validator): ValidatorProtoMsg {
|
|
1098
|
+
return {
|
|
1099
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.Validator",
|
|
1100
|
+
value: Validator.encode(message).finish()
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
};
|
|
1104
|
+
function createBaseGetBlockByHeightRequest(): GetBlockByHeightRequest {
|
|
1105
|
+
return {
|
|
1106
|
+
height: BigInt(0)
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
export const GetBlockByHeightRequest = {
|
|
1110
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest",
|
|
1111
|
+
encode(message: GetBlockByHeightRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1112
|
+
if (message.height !== BigInt(0)) {
|
|
1113
|
+
writer.uint32(8).int64(message.height);
|
|
1114
|
+
}
|
|
1115
|
+
return writer;
|
|
1116
|
+
},
|
|
1117
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetBlockByHeightRequest {
|
|
1118
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1119
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1120
|
+
const message = createBaseGetBlockByHeightRequest();
|
|
1121
|
+
while (reader.pos < end) {
|
|
1122
|
+
const tag = reader.uint32();
|
|
1123
|
+
switch (tag >>> 3) {
|
|
1124
|
+
case 1:
|
|
1125
|
+
message.height = reader.int64();
|
|
1126
|
+
break;
|
|
1127
|
+
default:
|
|
1128
|
+
reader.skipType(tag & 7);
|
|
1129
|
+
break;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
return message;
|
|
1133
|
+
},
|
|
1134
|
+
fromPartial(object: Partial<GetBlockByHeightRequest>): GetBlockByHeightRequest {
|
|
1135
|
+
const message = createBaseGetBlockByHeightRequest();
|
|
1136
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
1137
|
+
return message;
|
|
1138
|
+
},
|
|
1139
|
+
fromAmino(object: GetBlockByHeightRequestAmino): GetBlockByHeightRequest {
|
|
1140
|
+
const message = createBaseGetBlockByHeightRequest();
|
|
1141
|
+
if (object.height !== undefined && object.height !== null) {
|
|
1142
|
+
message.height = BigInt(object.height);
|
|
1143
|
+
}
|
|
1144
|
+
return message;
|
|
1145
|
+
},
|
|
1146
|
+
toAmino(message: GetBlockByHeightRequest): GetBlockByHeightRequestAmino {
|
|
1147
|
+
const obj: any = {};
|
|
1148
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
1149
|
+
return obj;
|
|
1150
|
+
},
|
|
1151
|
+
fromAminoMsg(object: GetBlockByHeightRequestAminoMsg): GetBlockByHeightRequest {
|
|
1152
|
+
return GetBlockByHeightRequest.fromAmino(object.value);
|
|
1153
|
+
},
|
|
1154
|
+
toAminoMsg(message: GetBlockByHeightRequest): GetBlockByHeightRequestAminoMsg {
|
|
1155
|
+
return {
|
|
1156
|
+
type: "cosmos-sdk/GetBlockByHeightRequest",
|
|
1157
|
+
value: GetBlockByHeightRequest.toAmino(message)
|
|
1158
|
+
};
|
|
1159
|
+
},
|
|
1160
|
+
fromProtoMsg(message: GetBlockByHeightRequestProtoMsg): GetBlockByHeightRequest {
|
|
1161
|
+
return GetBlockByHeightRequest.decode(message.value);
|
|
1162
|
+
},
|
|
1163
|
+
toProto(message: GetBlockByHeightRequest): Uint8Array {
|
|
1164
|
+
return GetBlockByHeightRequest.encode(message).finish();
|
|
1165
|
+
},
|
|
1166
|
+
toProtoMsg(message: GetBlockByHeightRequest): GetBlockByHeightRequestProtoMsg {
|
|
1167
|
+
return {
|
|
1168
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest",
|
|
1169
|
+
value: GetBlockByHeightRequest.encode(message).finish()
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
};
|
|
1173
|
+
function createBaseGetBlockByHeightResponse(): GetBlockByHeightResponse {
|
|
1174
|
+
return {
|
|
1175
|
+
blockId: undefined,
|
|
1176
|
+
block: undefined,
|
|
1177
|
+
sdkBlock: undefined
|
|
1178
|
+
};
|
|
1179
|
+
}
|
|
1180
|
+
export const GetBlockByHeightResponse = {
|
|
1181
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse",
|
|
1182
|
+
encode(message: GetBlockByHeightResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1183
|
+
if (message.blockId !== undefined) {
|
|
1184
|
+
BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim();
|
|
1185
|
+
}
|
|
1186
|
+
if (message.block !== undefined) {
|
|
1187
|
+
Block1.encode(message.block, writer.uint32(18).fork()).ldelim();
|
|
1188
|
+
}
|
|
1189
|
+
if (message.sdkBlock !== undefined) {
|
|
1190
|
+
Block2.encode(message.sdkBlock, writer.uint32(26).fork()).ldelim();
|
|
1191
|
+
}
|
|
1192
|
+
return writer;
|
|
1193
|
+
},
|
|
1194
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetBlockByHeightResponse {
|
|
1195
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1196
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1197
|
+
const message = createBaseGetBlockByHeightResponse();
|
|
1198
|
+
while (reader.pos < end) {
|
|
1199
|
+
const tag = reader.uint32();
|
|
1200
|
+
switch (tag >>> 3) {
|
|
1201
|
+
case 1:
|
|
1202
|
+
message.blockId = BlockID.decode(reader, reader.uint32());
|
|
1203
|
+
break;
|
|
1204
|
+
case 2:
|
|
1205
|
+
message.block = Block1.decode(reader, reader.uint32());
|
|
1206
|
+
break;
|
|
1207
|
+
case 3:
|
|
1208
|
+
message.sdkBlock = Block2.decode(reader, reader.uint32());
|
|
1209
|
+
break;
|
|
1210
|
+
default:
|
|
1211
|
+
reader.skipType(tag & 7);
|
|
1212
|
+
break;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
return message;
|
|
1216
|
+
},
|
|
1217
|
+
fromPartial(object: Partial<GetBlockByHeightResponse>): GetBlockByHeightResponse {
|
|
1218
|
+
const message = createBaseGetBlockByHeightResponse();
|
|
1219
|
+
message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined;
|
|
1220
|
+
message.block = object.block !== undefined && object.block !== null ? Block1.fromPartial(object.block) : undefined;
|
|
1221
|
+
message.sdkBlock = object.sdkBlock !== undefined && object.sdkBlock !== null ? Block2.fromPartial(object.sdkBlock) : undefined;
|
|
1222
|
+
return message;
|
|
1223
|
+
},
|
|
1224
|
+
fromAmino(object: GetBlockByHeightResponseAmino): GetBlockByHeightResponse {
|
|
1225
|
+
const message = createBaseGetBlockByHeightResponse();
|
|
1226
|
+
if (object.block_id !== undefined && object.block_id !== null) {
|
|
1227
|
+
message.blockId = BlockID.fromAmino(object.block_id);
|
|
1228
|
+
}
|
|
1229
|
+
if (object.block !== undefined && object.block !== null) {
|
|
1230
|
+
message.block = Block1.fromAmino(object.block);
|
|
1231
|
+
}
|
|
1232
|
+
if (object.sdk_block !== undefined && object.sdk_block !== null) {
|
|
1233
|
+
message.sdkBlock = Block2.fromAmino(object.sdk_block);
|
|
1234
|
+
}
|
|
1235
|
+
return message;
|
|
1236
|
+
},
|
|
1237
|
+
toAmino(message: GetBlockByHeightResponse): GetBlockByHeightResponseAmino {
|
|
1238
|
+
const obj: any = {};
|
|
1239
|
+
obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined;
|
|
1240
|
+
obj.block = message.block ? Block1.toAmino(message.block) : undefined;
|
|
1241
|
+
obj.sdk_block = message.sdkBlock ? Block2.toAmino(message.sdkBlock) : undefined;
|
|
1242
|
+
return obj;
|
|
1243
|
+
},
|
|
1244
|
+
fromAminoMsg(object: GetBlockByHeightResponseAminoMsg): GetBlockByHeightResponse {
|
|
1245
|
+
return GetBlockByHeightResponse.fromAmino(object.value);
|
|
1246
|
+
},
|
|
1247
|
+
toAminoMsg(message: GetBlockByHeightResponse): GetBlockByHeightResponseAminoMsg {
|
|
1248
|
+
return {
|
|
1249
|
+
type: "cosmos-sdk/GetBlockByHeightResponse",
|
|
1250
|
+
value: GetBlockByHeightResponse.toAmino(message)
|
|
1251
|
+
};
|
|
1252
|
+
},
|
|
1253
|
+
fromProtoMsg(message: GetBlockByHeightResponseProtoMsg): GetBlockByHeightResponse {
|
|
1254
|
+
return GetBlockByHeightResponse.decode(message.value);
|
|
1255
|
+
},
|
|
1256
|
+
toProto(message: GetBlockByHeightResponse): Uint8Array {
|
|
1257
|
+
return GetBlockByHeightResponse.encode(message).finish();
|
|
1258
|
+
},
|
|
1259
|
+
toProtoMsg(message: GetBlockByHeightResponse): GetBlockByHeightResponseProtoMsg {
|
|
1260
|
+
return {
|
|
1261
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse",
|
|
1262
|
+
value: GetBlockByHeightResponse.encode(message).finish()
|
|
1263
|
+
};
|
|
1264
|
+
}
|
|
1265
|
+
};
|
|
1266
|
+
function createBaseGetLatestBlockRequest(): GetLatestBlockRequest {
|
|
1267
|
+
return {};
|
|
1268
|
+
}
|
|
1269
|
+
export const GetLatestBlockRequest = {
|
|
1270
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest",
|
|
1271
|
+
encode(_: GetLatestBlockRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1272
|
+
return writer;
|
|
1273
|
+
},
|
|
1274
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetLatestBlockRequest {
|
|
1275
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1276
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1277
|
+
const message = createBaseGetLatestBlockRequest();
|
|
1278
|
+
while (reader.pos < end) {
|
|
1279
|
+
const tag = reader.uint32();
|
|
1280
|
+
switch (tag >>> 3) {
|
|
1281
|
+
default:
|
|
1282
|
+
reader.skipType(tag & 7);
|
|
1283
|
+
break;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
return message;
|
|
1287
|
+
},
|
|
1288
|
+
fromPartial(_: Partial<GetLatestBlockRequest>): GetLatestBlockRequest {
|
|
1289
|
+
const message = createBaseGetLatestBlockRequest();
|
|
1290
|
+
return message;
|
|
1291
|
+
},
|
|
1292
|
+
fromAmino(_: GetLatestBlockRequestAmino): GetLatestBlockRequest {
|
|
1293
|
+
const message = createBaseGetLatestBlockRequest();
|
|
1294
|
+
return message;
|
|
1295
|
+
},
|
|
1296
|
+
toAmino(_: GetLatestBlockRequest): GetLatestBlockRequestAmino {
|
|
1297
|
+
const obj: any = {};
|
|
1298
|
+
return obj;
|
|
1299
|
+
},
|
|
1300
|
+
fromAminoMsg(object: GetLatestBlockRequestAminoMsg): GetLatestBlockRequest {
|
|
1301
|
+
return GetLatestBlockRequest.fromAmino(object.value);
|
|
1302
|
+
},
|
|
1303
|
+
toAminoMsg(message: GetLatestBlockRequest): GetLatestBlockRequestAminoMsg {
|
|
1304
|
+
return {
|
|
1305
|
+
type: "cosmos-sdk/GetLatestBlockRequest",
|
|
1306
|
+
value: GetLatestBlockRequest.toAmino(message)
|
|
1307
|
+
};
|
|
1308
|
+
},
|
|
1309
|
+
fromProtoMsg(message: GetLatestBlockRequestProtoMsg): GetLatestBlockRequest {
|
|
1310
|
+
return GetLatestBlockRequest.decode(message.value);
|
|
1311
|
+
},
|
|
1312
|
+
toProto(message: GetLatestBlockRequest): Uint8Array {
|
|
1313
|
+
return GetLatestBlockRequest.encode(message).finish();
|
|
1314
|
+
},
|
|
1315
|
+
toProtoMsg(message: GetLatestBlockRequest): GetLatestBlockRequestProtoMsg {
|
|
1316
|
+
return {
|
|
1317
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest",
|
|
1318
|
+
value: GetLatestBlockRequest.encode(message).finish()
|
|
1319
|
+
};
|
|
1320
|
+
}
|
|
1321
|
+
};
|
|
1322
|
+
function createBaseGetLatestBlockResponse(): GetLatestBlockResponse {
|
|
1323
|
+
return {
|
|
1324
|
+
blockId: undefined,
|
|
1325
|
+
block: undefined,
|
|
1326
|
+
sdkBlock: undefined
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
export const GetLatestBlockResponse = {
|
|
1330
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse",
|
|
1331
|
+
encode(message: GetLatestBlockResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1332
|
+
if (message.blockId !== undefined) {
|
|
1333
|
+
BlockID.encode(message.blockId, writer.uint32(10).fork()).ldelim();
|
|
1334
|
+
}
|
|
1335
|
+
if (message.block !== undefined) {
|
|
1336
|
+
Block1.encode(message.block, writer.uint32(18).fork()).ldelim();
|
|
1337
|
+
}
|
|
1338
|
+
if (message.sdkBlock !== undefined) {
|
|
1339
|
+
Block2.encode(message.sdkBlock, writer.uint32(26).fork()).ldelim();
|
|
1340
|
+
}
|
|
1341
|
+
return writer;
|
|
1342
|
+
},
|
|
1343
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetLatestBlockResponse {
|
|
1344
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1345
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1346
|
+
const message = createBaseGetLatestBlockResponse();
|
|
1347
|
+
while (reader.pos < end) {
|
|
1348
|
+
const tag = reader.uint32();
|
|
1349
|
+
switch (tag >>> 3) {
|
|
1350
|
+
case 1:
|
|
1351
|
+
message.blockId = BlockID.decode(reader, reader.uint32());
|
|
1352
|
+
break;
|
|
1353
|
+
case 2:
|
|
1354
|
+
message.block = Block1.decode(reader, reader.uint32());
|
|
1355
|
+
break;
|
|
1356
|
+
case 3:
|
|
1357
|
+
message.sdkBlock = Block2.decode(reader, reader.uint32());
|
|
1358
|
+
break;
|
|
1359
|
+
default:
|
|
1360
|
+
reader.skipType(tag & 7);
|
|
1361
|
+
break;
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
return message;
|
|
1365
|
+
},
|
|
1366
|
+
fromPartial(object: Partial<GetLatestBlockResponse>): GetLatestBlockResponse {
|
|
1367
|
+
const message = createBaseGetLatestBlockResponse();
|
|
1368
|
+
message.blockId = object.blockId !== undefined && object.blockId !== null ? BlockID.fromPartial(object.blockId) : undefined;
|
|
1369
|
+
message.block = object.block !== undefined && object.block !== null ? Block1.fromPartial(object.block) : undefined;
|
|
1370
|
+
message.sdkBlock = object.sdkBlock !== undefined && object.sdkBlock !== null ? Block2.fromPartial(object.sdkBlock) : undefined;
|
|
1371
|
+
return message;
|
|
1372
|
+
},
|
|
1373
|
+
fromAmino(object: GetLatestBlockResponseAmino): GetLatestBlockResponse {
|
|
1374
|
+
const message = createBaseGetLatestBlockResponse();
|
|
1375
|
+
if (object.block_id !== undefined && object.block_id !== null) {
|
|
1376
|
+
message.blockId = BlockID.fromAmino(object.block_id);
|
|
1377
|
+
}
|
|
1378
|
+
if (object.block !== undefined && object.block !== null) {
|
|
1379
|
+
message.block = Block1.fromAmino(object.block);
|
|
1380
|
+
}
|
|
1381
|
+
if (object.sdk_block !== undefined && object.sdk_block !== null) {
|
|
1382
|
+
message.sdkBlock = Block2.fromAmino(object.sdk_block);
|
|
1383
|
+
}
|
|
1384
|
+
return message;
|
|
1385
|
+
},
|
|
1386
|
+
toAmino(message: GetLatestBlockResponse): GetLatestBlockResponseAmino {
|
|
1387
|
+
const obj: any = {};
|
|
1388
|
+
obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined;
|
|
1389
|
+
obj.block = message.block ? Block1.toAmino(message.block) : undefined;
|
|
1390
|
+
obj.sdk_block = message.sdkBlock ? Block2.toAmino(message.sdkBlock) : undefined;
|
|
1391
|
+
return obj;
|
|
1392
|
+
},
|
|
1393
|
+
fromAminoMsg(object: GetLatestBlockResponseAminoMsg): GetLatestBlockResponse {
|
|
1394
|
+
return GetLatestBlockResponse.fromAmino(object.value);
|
|
1395
|
+
},
|
|
1396
|
+
toAminoMsg(message: GetLatestBlockResponse): GetLatestBlockResponseAminoMsg {
|
|
1397
|
+
return {
|
|
1398
|
+
type: "cosmos-sdk/GetLatestBlockResponse",
|
|
1399
|
+
value: GetLatestBlockResponse.toAmino(message)
|
|
1400
|
+
};
|
|
1401
|
+
},
|
|
1402
|
+
fromProtoMsg(message: GetLatestBlockResponseProtoMsg): GetLatestBlockResponse {
|
|
1403
|
+
return GetLatestBlockResponse.decode(message.value);
|
|
1404
|
+
},
|
|
1405
|
+
toProto(message: GetLatestBlockResponse): Uint8Array {
|
|
1406
|
+
return GetLatestBlockResponse.encode(message).finish();
|
|
1407
|
+
},
|
|
1408
|
+
toProtoMsg(message: GetLatestBlockResponse): GetLatestBlockResponseProtoMsg {
|
|
1409
|
+
return {
|
|
1410
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse",
|
|
1411
|
+
value: GetLatestBlockResponse.encode(message).finish()
|
|
1412
|
+
};
|
|
1413
|
+
}
|
|
1414
|
+
};
|
|
1415
|
+
function createBaseGetSyncingRequest(): GetSyncingRequest {
|
|
1416
|
+
return {};
|
|
1417
|
+
}
|
|
1418
|
+
export const GetSyncingRequest = {
|
|
1419
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest",
|
|
1420
|
+
encode(_: GetSyncingRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1421
|
+
return writer;
|
|
1422
|
+
},
|
|
1423
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetSyncingRequest {
|
|
1424
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1425
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1426
|
+
const message = createBaseGetSyncingRequest();
|
|
1427
|
+
while (reader.pos < end) {
|
|
1428
|
+
const tag = reader.uint32();
|
|
1429
|
+
switch (tag >>> 3) {
|
|
1430
|
+
default:
|
|
1431
|
+
reader.skipType(tag & 7);
|
|
1432
|
+
break;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
return message;
|
|
1436
|
+
},
|
|
1437
|
+
fromPartial(_: Partial<GetSyncingRequest>): GetSyncingRequest {
|
|
1438
|
+
const message = createBaseGetSyncingRequest();
|
|
1439
|
+
return message;
|
|
1440
|
+
},
|
|
1441
|
+
fromAmino(_: GetSyncingRequestAmino): GetSyncingRequest {
|
|
1442
|
+
const message = createBaseGetSyncingRequest();
|
|
1443
|
+
return message;
|
|
1444
|
+
},
|
|
1445
|
+
toAmino(_: GetSyncingRequest): GetSyncingRequestAmino {
|
|
1446
|
+
const obj: any = {};
|
|
1447
|
+
return obj;
|
|
1448
|
+
},
|
|
1449
|
+
fromAminoMsg(object: GetSyncingRequestAminoMsg): GetSyncingRequest {
|
|
1450
|
+
return GetSyncingRequest.fromAmino(object.value);
|
|
1451
|
+
},
|
|
1452
|
+
toAminoMsg(message: GetSyncingRequest): GetSyncingRequestAminoMsg {
|
|
1453
|
+
return {
|
|
1454
|
+
type: "cosmos-sdk/GetSyncingRequest",
|
|
1455
|
+
value: GetSyncingRequest.toAmino(message)
|
|
1456
|
+
};
|
|
1457
|
+
},
|
|
1458
|
+
fromProtoMsg(message: GetSyncingRequestProtoMsg): GetSyncingRequest {
|
|
1459
|
+
return GetSyncingRequest.decode(message.value);
|
|
1460
|
+
},
|
|
1461
|
+
toProto(message: GetSyncingRequest): Uint8Array {
|
|
1462
|
+
return GetSyncingRequest.encode(message).finish();
|
|
1463
|
+
},
|
|
1464
|
+
toProtoMsg(message: GetSyncingRequest): GetSyncingRequestProtoMsg {
|
|
1465
|
+
return {
|
|
1466
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest",
|
|
1467
|
+
value: GetSyncingRequest.encode(message).finish()
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1470
|
+
};
|
|
1471
|
+
function createBaseGetSyncingResponse(): GetSyncingResponse {
|
|
1472
|
+
return {
|
|
1473
|
+
syncing: false
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
export const GetSyncingResponse = {
|
|
1477
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse",
|
|
1478
|
+
encode(message: GetSyncingResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1479
|
+
if (message.syncing === true) {
|
|
1480
|
+
writer.uint32(8).bool(message.syncing);
|
|
1481
|
+
}
|
|
1482
|
+
return writer;
|
|
1483
|
+
},
|
|
1484
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetSyncingResponse {
|
|
1485
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1486
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1487
|
+
const message = createBaseGetSyncingResponse();
|
|
1488
|
+
while (reader.pos < end) {
|
|
1489
|
+
const tag = reader.uint32();
|
|
1490
|
+
switch (tag >>> 3) {
|
|
1491
|
+
case 1:
|
|
1492
|
+
message.syncing = reader.bool();
|
|
1493
|
+
break;
|
|
1494
|
+
default:
|
|
1495
|
+
reader.skipType(tag & 7);
|
|
1496
|
+
break;
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
return message;
|
|
1500
|
+
},
|
|
1501
|
+
fromPartial(object: Partial<GetSyncingResponse>): GetSyncingResponse {
|
|
1502
|
+
const message = createBaseGetSyncingResponse();
|
|
1503
|
+
message.syncing = object.syncing ?? false;
|
|
1504
|
+
return message;
|
|
1505
|
+
},
|
|
1506
|
+
fromAmino(object: GetSyncingResponseAmino): GetSyncingResponse {
|
|
1507
|
+
const message = createBaseGetSyncingResponse();
|
|
1508
|
+
if (object.syncing !== undefined && object.syncing !== null) {
|
|
1509
|
+
message.syncing = object.syncing;
|
|
1510
|
+
}
|
|
1511
|
+
return message;
|
|
1512
|
+
},
|
|
1513
|
+
toAmino(message: GetSyncingResponse): GetSyncingResponseAmino {
|
|
1514
|
+
const obj: any = {};
|
|
1515
|
+
obj.syncing = message.syncing === false ? undefined : message.syncing;
|
|
1516
|
+
return obj;
|
|
1517
|
+
},
|
|
1518
|
+
fromAminoMsg(object: GetSyncingResponseAminoMsg): GetSyncingResponse {
|
|
1519
|
+
return GetSyncingResponse.fromAmino(object.value);
|
|
1520
|
+
},
|
|
1521
|
+
toAminoMsg(message: GetSyncingResponse): GetSyncingResponseAminoMsg {
|
|
1522
|
+
return {
|
|
1523
|
+
type: "cosmos-sdk/GetSyncingResponse",
|
|
1524
|
+
value: GetSyncingResponse.toAmino(message)
|
|
1525
|
+
};
|
|
1526
|
+
},
|
|
1527
|
+
fromProtoMsg(message: GetSyncingResponseProtoMsg): GetSyncingResponse {
|
|
1528
|
+
return GetSyncingResponse.decode(message.value);
|
|
1529
|
+
},
|
|
1530
|
+
toProto(message: GetSyncingResponse): Uint8Array {
|
|
1531
|
+
return GetSyncingResponse.encode(message).finish();
|
|
1532
|
+
},
|
|
1533
|
+
toProtoMsg(message: GetSyncingResponse): GetSyncingResponseProtoMsg {
|
|
1534
|
+
return {
|
|
1535
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse",
|
|
1536
|
+
value: GetSyncingResponse.encode(message).finish()
|
|
1537
|
+
};
|
|
1538
|
+
}
|
|
1539
|
+
};
|
|
1540
|
+
function createBaseGetNodeInfoRequest(): GetNodeInfoRequest {
|
|
1541
|
+
return {};
|
|
1542
|
+
}
|
|
1543
|
+
export const GetNodeInfoRequest = {
|
|
1544
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest",
|
|
1545
|
+
encode(_: GetNodeInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1546
|
+
return writer;
|
|
1547
|
+
},
|
|
1548
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetNodeInfoRequest {
|
|
1549
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1550
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1551
|
+
const message = createBaseGetNodeInfoRequest();
|
|
1552
|
+
while (reader.pos < end) {
|
|
1553
|
+
const tag = reader.uint32();
|
|
1554
|
+
switch (tag >>> 3) {
|
|
1555
|
+
default:
|
|
1556
|
+
reader.skipType(tag & 7);
|
|
1557
|
+
break;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
return message;
|
|
1561
|
+
},
|
|
1562
|
+
fromPartial(_: Partial<GetNodeInfoRequest>): GetNodeInfoRequest {
|
|
1563
|
+
const message = createBaseGetNodeInfoRequest();
|
|
1564
|
+
return message;
|
|
1565
|
+
},
|
|
1566
|
+
fromAmino(_: GetNodeInfoRequestAmino): GetNodeInfoRequest {
|
|
1567
|
+
const message = createBaseGetNodeInfoRequest();
|
|
1568
|
+
return message;
|
|
1569
|
+
},
|
|
1570
|
+
toAmino(_: GetNodeInfoRequest): GetNodeInfoRequestAmino {
|
|
1571
|
+
const obj: any = {};
|
|
1572
|
+
return obj;
|
|
1573
|
+
},
|
|
1574
|
+
fromAminoMsg(object: GetNodeInfoRequestAminoMsg): GetNodeInfoRequest {
|
|
1575
|
+
return GetNodeInfoRequest.fromAmino(object.value);
|
|
1576
|
+
},
|
|
1577
|
+
toAminoMsg(message: GetNodeInfoRequest): GetNodeInfoRequestAminoMsg {
|
|
1578
|
+
return {
|
|
1579
|
+
type: "cosmos-sdk/GetNodeInfoRequest",
|
|
1580
|
+
value: GetNodeInfoRequest.toAmino(message)
|
|
1581
|
+
};
|
|
1582
|
+
},
|
|
1583
|
+
fromProtoMsg(message: GetNodeInfoRequestProtoMsg): GetNodeInfoRequest {
|
|
1584
|
+
return GetNodeInfoRequest.decode(message.value);
|
|
1585
|
+
},
|
|
1586
|
+
toProto(message: GetNodeInfoRequest): Uint8Array {
|
|
1587
|
+
return GetNodeInfoRequest.encode(message).finish();
|
|
1588
|
+
},
|
|
1589
|
+
toProtoMsg(message: GetNodeInfoRequest): GetNodeInfoRequestProtoMsg {
|
|
1590
|
+
return {
|
|
1591
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest",
|
|
1592
|
+
value: GetNodeInfoRequest.encode(message).finish()
|
|
1593
|
+
};
|
|
1594
|
+
}
|
|
1595
|
+
};
|
|
1596
|
+
function createBaseGetNodeInfoResponse(): GetNodeInfoResponse {
|
|
1597
|
+
return {
|
|
1598
|
+
defaultNodeInfo: undefined,
|
|
1599
|
+
applicationVersion: undefined
|
|
1600
|
+
};
|
|
1601
|
+
}
|
|
1602
|
+
export const GetNodeInfoResponse = {
|
|
1603
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse",
|
|
1604
|
+
encode(message: GetNodeInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1605
|
+
if (message.defaultNodeInfo !== undefined) {
|
|
1606
|
+
DefaultNodeInfo.encode(message.defaultNodeInfo, writer.uint32(10).fork()).ldelim();
|
|
1607
|
+
}
|
|
1608
|
+
if (message.applicationVersion !== undefined) {
|
|
1609
|
+
VersionInfo.encode(message.applicationVersion, writer.uint32(18).fork()).ldelim();
|
|
1610
|
+
}
|
|
1611
|
+
return writer;
|
|
1612
|
+
},
|
|
1613
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetNodeInfoResponse {
|
|
1614
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1615
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1616
|
+
const message = createBaseGetNodeInfoResponse();
|
|
1617
|
+
while (reader.pos < end) {
|
|
1618
|
+
const tag = reader.uint32();
|
|
1619
|
+
switch (tag >>> 3) {
|
|
1620
|
+
case 1:
|
|
1621
|
+
message.defaultNodeInfo = DefaultNodeInfo.decode(reader, reader.uint32());
|
|
1622
|
+
break;
|
|
1623
|
+
case 2:
|
|
1624
|
+
message.applicationVersion = VersionInfo.decode(reader, reader.uint32());
|
|
1625
|
+
break;
|
|
1626
|
+
default:
|
|
1627
|
+
reader.skipType(tag & 7);
|
|
1628
|
+
break;
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
return message;
|
|
1632
|
+
},
|
|
1633
|
+
fromPartial(object: Partial<GetNodeInfoResponse>): GetNodeInfoResponse {
|
|
1634
|
+
const message = createBaseGetNodeInfoResponse();
|
|
1635
|
+
message.defaultNodeInfo = object.defaultNodeInfo !== undefined && object.defaultNodeInfo !== null ? DefaultNodeInfo.fromPartial(object.defaultNodeInfo) : undefined;
|
|
1636
|
+
message.applicationVersion = object.applicationVersion !== undefined && object.applicationVersion !== null ? VersionInfo.fromPartial(object.applicationVersion) : undefined;
|
|
1637
|
+
return message;
|
|
1638
|
+
},
|
|
1639
|
+
fromAmino(object: GetNodeInfoResponseAmino): GetNodeInfoResponse {
|
|
1640
|
+
const message = createBaseGetNodeInfoResponse();
|
|
1641
|
+
if (object.default_node_info !== undefined && object.default_node_info !== null) {
|
|
1642
|
+
message.defaultNodeInfo = DefaultNodeInfo.fromAmino(object.default_node_info);
|
|
1643
|
+
}
|
|
1644
|
+
if (object.application_version !== undefined && object.application_version !== null) {
|
|
1645
|
+
message.applicationVersion = VersionInfo.fromAmino(object.application_version);
|
|
1646
|
+
}
|
|
1647
|
+
return message;
|
|
1648
|
+
},
|
|
1649
|
+
toAmino(message: GetNodeInfoResponse): GetNodeInfoResponseAmino {
|
|
1650
|
+
const obj: any = {};
|
|
1651
|
+
obj.default_node_info = message.defaultNodeInfo ? DefaultNodeInfo.toAmino(message.defaultNodeInfo) : undefined;
|
|
1652
|
+
obj.application_version = message.applicationVersion ? VersionInfo.toAmino(message.applicationVersion) : undefined;
|
|
1653
|
+
return obj;
|
|
1654
|
+
},
|
|
1655
|
+
fromAminoMsg(object: GetNodeInfoResponseAminoMsg): GetNodeInfoResponse {
|
|
1656
|
+
return GetNodeInfoResponse.fromAmino(object.value);
|
|
1657
|
+
},
|
|
1658
|
+
toAminoMsg(message: GetNodeInfoResponse): GetNodeInfoResponseAminoMsg {
|
|
1659
|
+
return {
|
|
1660
|
+
type: "cosmos-sdk/GetNodeInfoResponse",
|
|
1661
|
+
value: GetNodeInfoResponse.toAmino(message)
|
|
1662
|
+
};
|
|
1663
|
+
},
|
|
1664
|
+
fromProtoMsg(message: GetNodeInfoResponseProtoMsg): GetNodeInfoResponse {
|
|
1665
|
+
return GetNodeInfoResponse.decode(message.value);
|
|
1666
|
+
},
|
|
1667
|
+
toProto(message: GetNodeInfoResponse): Uint8Array {
|
|
1668
|
+
return GetNodeInfoResponse.encode(message).finish();
|
|
1669
|
+
},
|
|
1670
|
+
toProtoMsg(message: GetNodeInfoResponse): GetNodeInfoResponseProtoMsg {
|
|
1671
|
+
return {
|
|
1672
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse",
|
|
1673
|
+
value: GetNodeInfoResponse.encode(message).finish()
|
|
1674
|
+
};
|
|
1675
|
+
}
|
|
1676
|
+
};
|
|
1677
|
+
function createBaseVersionInfo(): VersionInfo {
|
|
1678
|
+
return {
|
|
1679
|
+
name: "",
|
|
1680
|
+
appName: "",
|
|
1681
|
+
version: "",
|
|
1682
|
+
gitCommit: "",
|
|
1683
|
+
buildTags: "",
|
|
1684
|
+
goVersion: "",
|
|
1685
|
+
buildDeps: [],
|
|
1686
|
+
cosmosSdkVersion: ""
|
|
1687
|
+
};
|
|
1688
|
+
}
|
|
1689
|
+
export const VersionInfo = {
|
|
1690
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.VersionInfo",
|
|
1691
|
+
encode(message: VersionInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1692
|
+
if (message.name !== "") {
|
|
1693
|
+
writer.uint32(10).string(message.name);
|
|
1694
|
+
}
|
|
1695
|
+
if (message.appName !== "") {
|
|
1696
|
+
writer.uint32(18).string(message.appName);
|
|
1697
|
+
}
|
|
1698
|
+
if (message.version !== "") {
|
|
1699
|
+
writer.uint32(26).string(message.version);
|
|
1700
|
+
}
|
|
1701
|
+
if (message.gitCommit !== "") {
|
|
1702
|
+
writer.uint32(34).string(message.gitCommit);
|
|
1703
|
+
}
|
|
1704
|
+
if (message.buildTags !== "") {
|
|
1705
|
+
writer.uint32(42).string(message.buildTags);
|
|
1706
|
+
}
|
|
1707
|
+
if (message.goVersion !== "") {
|
|
1708
|
+
writer.uint32(50).string(message.goVersion);
|
|
1709
|
+
}
|
|
1710
|
+
for (const v of message.buildDeps) {
|
|
1711
|
+
Module.encode(v!, writer.uint32(58).fork()).ldelim();
|
|
1712
|
+
}
|
|
1713
|
+
if (message.cosmosSdkVersion !== "") {
|
|
1714
|
+
writer.uint32(66).string(message.cosmosSdkVersion);
|
|
1715
|
+
}
|
|
1716
|
+
return writer;
|
|
1717
|
+
},
|
|
1718
|
+
decode(input: BinaryReader | Uint8Array, length?: number): VersionInfo {
|
|
1719
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1720
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1721
|
+
const message = createBaseVersionInfo();
|
|
1722
|
+
while (reader.pos < end) {
|
|
1723
|
+
const tag = reader.uint32();
|
|
1724
|
+
switch (tag >>> 3) {
|
|
1725
|
+
case 1:
|
|
1726
|
+
message.name = reader.string();
|
|
1727
|
+
break;
|
|
1728
|
+
case 2:
|
|
1729
|
+
message.appName = reader.string();
|
|
1730
|
+
break;
|
|
1731
|
+
case 3:
|
|
1732
|
+
message.version = reader.string();
|
|
1733
|
+
break;
|
|
1734
|
+
case 4:
|
|
1735
|
+
message.gitCommit = reader.string();
|
|
1736
|
+
break;
|
|
1737
|
+
case 5:
|
|
1738
|
+
message.buildTags = reader.string();
|
|
1739
|
+
break;
|
|
1740
|
+
case 6:
|
|
1741
|
+
message.goVersion = reader.string();
|
|
1742
|
+
break;
|
|
1743
|
+
case 7:
|
|
1744
|
+
message.buildDeps.push(Module.decode(reader, reader.uint32()));
|
|
1745
|
+
break;
|
|
1746
|
+
case 8:
|
|
1747
|
+
message.cosmosSdkVersion = reader.string();
|
|
1748
|
+
break;
|
|
1749
|
+
default:
|
|
1750
|
+
reader.skipType(tag & 7);
|
|
1751
|
+
break;
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
return message;
|
|
1755
|
+
},
|
|
1756
|
+
fromPartial(object: Partial<VersionInfo>): VersionInfo {
|
|
1757
|
+
const message = createBaseVersionInfo();
|
|
1758
|
+
message.name = object.name ?? "";
|
|
1759
|
+
message.appName = object.appName ?? "";
|
|
1760
|
+
message.version = object.version ?? "";
|
|
1761
|
+
message.gitCommit = object.gitCommit ?? "";
|
|
1762
|
+
message.buildTags = object.buildTags ?? "";
|
|
1763
|
+
message.goVersion = object.goVersion ?? "";
|
|
1764
|
+
message.buildDeps = object.buildDeps?.map(e => Module.fromPartial(e)) || [];
|
|
1765
|
+
message.cosmosSdkVersion = object.cosmosSdkVersion ?? "";
|
|
1766
|
+
return message;
|
|
1767
|
+
},
|
|
1768
|
+
fromAmino(object: VersionInfoAmino): VersionInfo {
|
|
1769
|
+
const message = createBaseVersionInfo();
|
|
1770
|
+
if (object.name !== undefined && object.name !== null) {
|
|
1771
|
+
message.name = object.name;
|
|
1772
|
+
}
|
|
1773
|
+
if (object.app_name !== undefined && object.app_name !== null) {
|
|
1774
|
+
message.appName = object.app_name;
|
|
1775
|
+
}
|
|
1776
|
+
if (object.version !== undefined && object.version !== null) {
|
|
1777
|
+
message.version = object.version;
|
|
1778
|
+
}
|
|
1779
|
+
if (object.git_commit !== undefined && object.git_commit !== null) {
|
|
1780
|
+
message.gitCommit = object.git_commit;
|
|
1781
|
+
}
|
|
1782
|
+
if (object.build_tags !== undefined && object.build_tags !== null) {
|
|
1783
|
+
message.buildTags = object.build_tags;
|
|
1784
|
+
}
|
|
1785
|
+
if (object.go_version !== undefined && object.go_version !== null) {
|
|
1786
|
+
message.goVersion = object.go_version;
|
|
1787
|
+
}
|
|
1788
|
+
message.buildDeps = object.build_deps?.map(e => Module.fromAmino(e)) || [];
|
|
1789
|
+
if (object.cosmos_sdk_version !== undefined && object.cosmos_sdk_version !== null) {
|
|
1790
|
+
message.cosmosSdkVersion = object.cosmos_sdk_version;
|
|
1791
|
+
}
|
|
1792
|
+
return message;
|
|
1793
|
+
},
|
|
1794
|
+
toAmino(message: VersionInfo): VersionInfoAmino {
|
|
1795
|
+
const obj: any = {};
|
|
1796
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
1797
|
+
obj.app_name = message.appName === "" ? undefined : message.appName;
|
|
1798
|
+
obj.version = message.version === "" ? undefined : message.version;
|
|
1799
|
+
obj.git_commit = message.gitCommit === "" ? undefined : message.gitCommit;
|
|
1800
|
+
obj.build_tags = message.buildTags === "" ? undefined : message.buildTags;
|
|
1801
|
+
obj.go_version = message.goVersion === "" ? undefined : message.goVersion;
|
|
1802
|
+
if (message.buildDeps) {
|
|
1803
|
+
obj.build_deps = message.buildDeps.map(e => e ? Module.toAmino(e) : undefined);
|
|
1804
|
+
} else {
|
|
1805
|
+
obj.build_deps = message.buildDeps;
|
|
1806
|
+
}
|
|
1807
|
+
obj.cosmos_sdk_version = message.cosmosSdkVersion === "" ? undefined : message.cosmosSdkVersion;
|
|
1808
|
+
return obj;
|
|
1809
|
+
},
|
|
1810
|
+
fromAminoMsg(object: VersionInfoAminoMsg): VersionInfo {
|
|
1811
|
+
return VersionInfo.fromAmino(object.value);
|
|
1812
|
+
},
|
|
1813
|
+
toAminoMsg(message: VersionInfo): VersionInfoAminoMsg {
|
|
1814
|
+
return {
|
|
1815
|
+
type: "cosmos-sdk/VersionInfo",
|
|
1816
|
+
value: VersionInfo.toAmino(message)
|
|
1817
|
+
};
|
|
1818
|
+
},
|
|
1819
|
+
fromProtoMsg(message: VersionInfoProtoMsg): VersionInfo {
|
|
1820
|
+
return VersionInfo.decode(message.value);
|
|
1821
|
+
},
|
|
1822
|
+
toProto(message: VersionInfo): Uint8Array {
|
|
1823
|
+
return VersionInfo.encode(message).finish();
|
|
1824
|
+
},
|
|
1825
|
+
toProtoMsg(message: VersionInfo): VersionInfoProtoMsg {
|
|
1826
|
+
return {
|
|
1827
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.VersionInfo",
|
|
1828
|
+
value: VersionInfo.encode(message).finish()
|
|
1829
|
+
};
|
|
1830
|
+
}
|
|
1831
|
+
};
|
|
1832
|
+
function createBaseModule(): Module {
|
|
1833
|
+
return {
|
|
1834
|
+
path: "",
|
|
1835
|
+
version: "",
|
|
1836
|
+
sum: ""
|
|
1837
|
+
};
|
|
1838
|
+
}
|
|
1839
|
+
export const Module = {
|
|
1840
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.Module",
|
|
1841
|
+
encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1842
|
+
if (message.path !== "") {
|
|
1843
|
+
writer.uint32(10).string(message.path);
|
|
1844
|
+
}
|
|
1845
|
+
if (message.version !== "") {
|
|
1846
|
+
writer.uint32(18).string(message.version);
|
|
1847
|
+
}
|
|
1848
|
+
if (message.sum !== "") {
|
|
1849
|
+
writer.uint32(26).string(message.sum);
|
|
1850
|
+
}
|
|
1851
|
+
return writer;
|
|
1852
|
+
},
|
|
1853
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Module {
|
|
1854
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1855
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1856
|
+
const message = createBaseModule();
|
|
1857
|
+
while (reader.pos < end) {
|
|
1858
|
+
const tag = reader.uint32();
|
|
1859
|
+
switch (tag >>> 3) {
|
|
1860
|
+
case 1:
|
|
1861
|
+
message.path = reader.string();
|
|
1862
|
+
break;
|
|
1863
|
+
case 2:
|
|
1864
|
+
message.version = reader.string();
|
|
1865
|
+
break;
|
|
1866
|
+
case 3:
|
|
1867
|
+
message.sum = reader.string();
|
|
1868
|
+
break;
|
|
1869
|
+
default:
|
|
1870
|
+
reader.skipType(tag & 7);
|
|
1871
|
+
break;
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
return message;
|
|
1875
|
+
},
|
|
1876
|
+
fromPartial(object: Partial<Module>): Module {
|
|
1877
|
+
const message = createBaseModule();
|
|
1878
|
+
message.path = object.path ?? "";
|
|
1879
|
+
message.version = object.version ?? "";
|
|
1880
|
+
message.sum = object.sum ?? "";
|
|
1881
|
+
return message;
|
|
1882
|
+
},
|
|
1883
|
+
fromAmino(object: ModuleAmino): Module {
|
|
1884
|
+
const message = createBaseModule();
|
|
1885
|
+
if (object.path !== undefined && object.path !== null) {
|
|
1886
|
+
message.path = object.path;
|
|
1887
|
+
}
|
|
1888
|
+
if (object.version !== undefined && object.version !== null) {
|
|
1889
|
+
message.version = object.version;
|
|
1890
|
+
}
|
|
1891
|
+
if (object.sum !== undefined && object.sum !== null) {
|
|
1892
|
+
message.sum = object.sum;
|
|
1893
|
+
}
|
|
1894
|
+
return message;
|
|
1895
|
+
},
|
|
1896
|
+
toAmino(message: Module): ModuleAmino {
|
|
1897
|
+
const obj: any = {};
|
|
1898
|
+
obj.path = message.path === "" ? undefined : message.path;
|
|
1899
|
+
obj.version = message.version === "" ? undefined : message.version;
|
|
1900
|
+
obj.sum = message.sum === "" ? undefined : message.sum;
|
|
1901
|
+
return obj;
|
|
1902
|
+
},
|
|
1903
|
+
fromAminoMsg(object: ModuleAminoMsg): Module {
|
|
1904
|
+
return Module.fromAmino(object.value);
|
|
1905
|
+
},
|
|
1906
|
+
toAminoMsg(message: Module): ModuleAminoMsg {
|
|
1907
|
+
return {
|
|
1908
|
+
type: "cosmos-sdk/Module",
|
|
1909
|
+
value: Module.toAmino(message)
|
|
1910
|
+
};
|
|
1911
|
+
},
|
|
1912
|
+
fromProtoMsg(message: ModuleProtoMsg): Module {
|
|
1913
|
+
return Module.decode(message.value);
|
|
1914
|
+
},
|
|
1915
|
+
toProto(message: Module): Uint8Array {
|
|
1916
|
+
return Module.encode(message).finish();
|
|
1917
|
+
},
|
|
1918
|
+
toProtoMsg(message: Module): ModuleProtoMsg {
|
|
1919
|
+
return {
|
|
1920
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.Module",
|
|
1921
|
+
value: Module.encode(message).finish()
|
|
1922
|
+
};
|
|
1923
|
+
}
|
|
1924
|
+
};
|
|
1925
|
+
function createBaseABCIQueryRequest(): ABCIQueryRequest {
|
|
1926
|
+
return {
|
|
1927
|
+
data: new Uint8Array(),
|
|
1928
|
+
path: "",
|
|
1929
|
+
height: BigInt(0),
|
|
1930
|
+
prove: false
|
|
1931
|
+
};
|
|
1932
|
+
}
|
|
1933
|
+
export const ABCIQueryRequest = {
|
|
1934
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest",
|
|
1935
|
+
encode(message: ABCIQueryRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1936
|
+
if (message.data.length !== 0) {
|
|
1937
|
+
writer.uint32(10).bytes(message.data);
|
|
1938
|
+
}
|
|
1939
|
+
if (message.path !== "") {
|
|
1940
|
+
writer.uint32(18).string(message.path);
|
|
1941
|
+
}
|
|
1942
|
+
if (message.height !== BigInt(0)) {
|
|
1943
|
+
writer.uint32(24).int64(message.height);
|
|
1944
|
+
}
|
|
1945
|
+
if (message.prove === true) {
|
|
1946
|
+
writer.uint32(32).bool(message.prove);
|
|
1947
|
+
}
|
|
1948
|
+
return writer;
|
|
1949
|
+
},
|
|
1950
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ABCIQueryRequest {
|
|
1951
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1952
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1953
|
+
const message = createBaseABCIQueryRequest();
|
|
1954
|
+
while (reader.pos < end) {
|
|
1955
|
+
const tag = reader.uint32();
|
|
1956
|
+
switch (tag >>> 3) {
|
|
1957
|
+
case 1:
|
|
1958
|
+
message.data = reader.bytes();
|
|
1959
|
+
break;
|
|
1960
|
+
case 2:
|
|
1961
|
+
message.path = reader.string();
|
|
1962
|
+
break;
|
|
1963
|
+
case 3:
|
|
1964
|
+
message.height = reader.int64();
|
|
1965
|
+
break;
|
|
1966
|
+
case 4:
|
|
1967
|
+
message.prove = reader.bool();
|
|
1968
|
+
break;
|
|
1969
|
+
default:
|
|
1970
|
+
reader.skipType(tag & 7);
|
|
1971
|
+
break;
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
return message;
|
|
1975
|
+
},
|
|
1976
|
+
fromPartial(object: Partial<ABCIQueryRequest>): ABCIQueryRequest {
|
|
1977
|
+
const message = createBaseABCIQueryRequest();
|
|
1978
|
+
message.data = object.data ?? new Uint8Array();
|
|
1979
|
+
message.path = object.path ?? "";
|
|
1980
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
1981
|
+
message.prove = object.prove ?? false;
|
|
1982
|
+
return message;
|
|
1983
|
+
},
|
|
1984
|
+
fromAmino(object: ABCIQueryRequestAmino): ABCIQueryRequest {
|
|
1985
|
+
const message = createBaseABCIQueryRequest();
|
|
1986
|
+
if (object.data !== undefined && object.data !== null) {
|
|
1987
|
+
message.data = bytesFromBase64(object.data);
|
|
1988
|
+
}
|
|
1989
|
+
if (object.path !== undefined && object.path !== null) {
|
|
1990
|
+
message.path = object.path;
|
|
1991
|
+
}
|
|
1992
|
+
if (object.height !== undefined && object.height !== null) {
|
|
1993
|
+
message.height = BigInt(object.height);
|
|
1994
|
+
}
|
|
1995
|
+
if (object.prove !== undefined && object.prove !== null) {
|
|
1996
|
+
message.prove = object.prove;
|
|
1997
|
+
}
|
|
1998
|
+
return message;
|
|
1999
|
+
},
|
|
2000
|
+
toAmino(message: ABCIQueryRequest): ABCIQueryRequestAmino {
|
|
2001
|
+
const obj: any = {};
|
|
2002
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
2003
|
+
obj.path = message.path === "" ? undefined : message.path;
|
|
2004
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
2005
|
+
obj.prove = message.prove === false ? undefined : message.prove;
|
|
2006
|
+
return obj;
|
|
2007
|
+
},
|
|
2008
|
+
fromAminoMsg(object: ABCIQueryRequestAminoMsg): ABCIQueryRequest {
|
|
2009
|
+
return ABCIQueryRequest.fromAmino(object.value);
|
|
2010
|
+
},
|
|
2011
|
+
toAminoMsg(message: ABCIQueryRequest): ABCIQueryRequestAminoMsg {
|
|
2012
|
+
return {
|
|
2013
|
+
type: "cosmos-sdk/ABCIQueryRequest",
|
|
2014
|
+
value: ABCIQueryRequest.toAmino(message)
|
|
2015
|
+
};
|
|
2016
|
+
},
|
|
2017
|
+
fromProtoMsg(message: ABCIQueryRequestProtoMsg): ABCIQueryRequest {
|
|
2018
|
+
return ABCIQueryRequest.decode(message.value);
|
|
2019
|
+
},
|
|
2020
|
+
toProto(message: ABCIQueryRequest): Uint8Array {
|
|
2021
|
+
return ABCIQueryRequest.encode(message).finish();
|
|
2022
|
+
},
|
|
2023
|
+
toProtoMsg(message: ABCIQueryRequest): ABCIQueryRequestProtoMsg {
|
|
2024
|
+
return {
|
|
2025
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest",
|
|
2026
|
+
value: ABCIQueryRequest.encode(message).finish()
|
|
2027
|
+
};
|
|
2028
|
+
}
|
|
2029
|
+
};
|
|
2030
|
+
function createBaseABCIQueryResponse(): ABCIQueryResponse {
|
|
2031
|
+
return {
|
|
2032
|
+
code: 0,
|
|
2033
|
+
log: "",
|
|
2034
|
+
info: "",
|
|
2035
|
+
index: BigInt(0),
|
|
2036
|
+
key: new Uint8Array(),
|
|
2037
|
+
value: new Uint8Array(),
|
|
2038
|
+
proofOps: undefined,
|
|
2039
|
+
height: BigInt(0),
|
|
2040
|
+
codespace: ""
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
export const ABCIQueryResponse = {
|
|
2044
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse",
|
|
2045
|
+
encode(message: ABCIQueryResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2046
|
+
if (message.code !== 0) {
|
|
2047
|
+
writer.uint32(8).uint32(message.code);
|
|
2048
|
+
}
|
|
2049
|
+
if (message.log !== "") {
|
|
2050
|
+
writer.uint32(26).string(message.log);
|
|
2051
|
+
}
|
|
2052
|
+
if (message.info !== "") {
|
|
2053
|
+
writer.uint32(34).string(message.info);
|
|
2054
|
+
}
|
|
2055
|
+
if (message.index !== BigInt(0)) {
|
|
2056
|
+
writer.uint32(40).int64(message.index);
|
|
2057
|
+
}
|
|
2058
|
+
if (message.key.length !== 0) {
|
|
2059
|
+
writer.uint32(50).bytes(message.key);
|
|
2060
|
+
}
|
|
2061
|
+
if (message.value.length !== 0) {
|
|
2062
|
+
writer.uint32(58).bytes(message.value);
|
|
2063
|
+
}
|
|
2064
|
+
if (message.proofOps !== undefined) {
|
|
2065
|
+
ProofOps.encode(message.proofOps, writer.uint32(66).fork()).ldelim();
|
|
2066
|
+
}
|
|
2067
|
+
if (message.height !== BigInt(0)) {
|
|
2068
|
+
writer.uint32(72).int64(message.height);
|
|
2069
|
+
}
|
|
2070
|
+
if (message.codespace !== "") {
|
|
2071
|
+
writer.uint32(82).string(message.codespace);
|
|
2072
|
+
}
|
|
2073
|
+
return writer;
|
|
2074
|
+
},
|
|
2075
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ABCIQueryResponse {
|
|
2076
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2077
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2078
|
+
const message = createBaseABCIQueryResponse();
|
|
2079
|
+
while (reader.pos < end) {
|
|
2080
|
+
const tag = reader.uint32();
|
|
2081
|
+
switch (tag >>> 3) {
|
|
2082
|
+
case 1:
|
|
2083
|
+
message.code = reader.uint32();
|
|
2084
|
+
break;
|
|
2085
|
+
case 3:
|
|
2086
|
+
message.log = reader.string();
|
|
2087
|
+
break;
|
|
2088
|
+
case 4:
|
|
2089
|
+
message.info = reader.string();
|
|
2090
|
+
break;
|
|
2091
|
+
case 5:
|
|
2092
|
+
message.index = reader.int64();
|
|
2093
|
+
break;
|
|
2094
|
+
case 6:
|
|
2095
|
+
message.key = reader.bytes();
|
|
2096
|
+
break;
|
|
2097
|
+
case 7:
|
|
2098
|
+
message.value = reader.bytes();
|
|
2099
|
+
break;
|
|
2100
|
+
case 8:
|
|
2101
|
+
message.proofOps = ProofOps.decode(reader, reader.uint32());
|
|
2102
|
+
break;
|
|
2103
|
+
case 9:
|
|
2104
|
+
message.height = reader.int64();
|
|
2105
|
+
break;
|
|
2106
|
+
case 10:
|
|
2107
|
+
message.codespace = reader.string();
|
|
2108
|
+
break;
|
|
2109
|
+
default:
|
|
2110
|
+
reader.skipType(tag & 7);
|
|
2111
|
+
break;
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
return message;
|
|
2115
|
+
},
|
|
2116
|
+
fromPartial(object: Partial<ABCIQueryResponse>): ABCIQueryResponse {
|
|
2117
|
+
const message = createBaseABCIQueryResponse();
|
|
2118
|
+
message.code = object.code ?? 0;
|
|
2119
|
+
message.log = object.log ?? "";
|
|
2120
|
+
message.info = object.info ?? "";
|
|
2121
|
+
message.index = object.index !== undefined && object.index !== null ? BigInt(object.index.toString()) : BigInt(0);
|
|
2122
|
+
message.key = object.key ?? new Uint8Array();
|
|
2123
|
+
message.value = object.value ?? new Uint8Array();
|
|
2124
|
+
message.proofOps = object.proofOps !== undefined && object.proofOps !== null ? ProofOps.fromPartial(object.proofOps) : undefined;
|
|
2125
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
2126
|
+
message.codespace = object.codespace ?? "";
|
|
2127
|
+
return message;
|
|
2128
|
+
},
|
|
2129
|
+
fromAmino(object: ABCIQueryResponseAmino): ABCIQueryResponse {
|
|
2130
|
+
const message = createBaseABCIQueryResponse();
|
|
2131
|
+
if (object.code !== undefined && object.code !== null) {
|
|
2132
|
+
message.code = object.code;
|
|
2133
|
+
}
|
|
2134
|
+
if (object.log !== undefined && object.log !== null) {
|
|
2135
|
+
message.log = object.log;
|
|
2136
|
+
}
|
|
2137
|
+
if (object.info !== undefined && object.info !== null) {
|
|
2138
|
+
message.info = object.info;
|
|
2139
|
+
}
|
|
2140
|
+
if (object.index !== undefined && object.index !== null) {
|
|
2141
|
+
message.index = BigInt(object.index);
|
|
2142
|
+
}
|
|
2143
|
+
if (object.key !== undefined && object.key !== null) {
|
|
2144
|
+
message.key = bytesFromBase64(object.key);
|
|
2145
|
+
}
|
|
2146
|
+
if (object.value !== undefined && object.value !== null) {
|
|
2147
|
+
message.value = bytesFromBase64(object.value);
|
|
2148
|
+
}
|
|
2149
|
+
if (object.proof_ops !== undefined && object.proof_ops !== null) {
|
|
2150
|
+
message.proofOps = ProofOps.fromAmino(object.proof_ops);
|
|
2151
|
+
}
|
|
2152
|
+
if (object.height !== undefined && object.height !== null) {
|
|
2153
|
+
message.height = BigInt(object.height);
|
|
2154
|
+
}
|
|
2155
|
+
if (object.codespace !== undefined && object.codespace !== null) {
|
|
2156
|
+
message.codespace = object.codespace;
|
|
2157
|
+
}
|
|
2158
|
+
return message;
|
|
2159
|
+
},
|
|
2160
|
+
toAmino(message: ABCIQueryResponse): ABCIQueryResponseAmino {
|
|
2161
|
+
const obj: any = {};
|
|
2162
|
+
obj.code = message.code === 0 ? undefined : message.code;
|
|
2163
|
+
obj.log = message.log === "" ? undefined : message.log;
|
|
2164
|
+
obj.info = message.info === "" ? undefined : message.info;
|
|
2165
|
+
obj.index = message.index !== BigInt(0) ? message.index?.toString() : undefined;
|
|
2166
|
+
obj.key = message.key ? base64FromBytes(message.key) : undefined;
|
|
2167
|
+
obj.value = message.value ? base64FromBytes(message.value) : undefined;
|
|
2168
|
+
obj.proof_ops = message.proofOps ? ProofOps.toAmino(message.proofOps) : undefined;
|
|
2169
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
2170
|
+
obj.codespace = message.codespace === "" ? undefined : message.codespace;
|
|
2171
|
+
return obj;
|
|
2172
|
+
},
|
|
2173
|
+
fromAminoMsg(object: ABCIQueryResponseAminoMsg): ABCIQueryResponse {
|
|
2174
|
+
return ABCIQueryResponse.fromAmino(object.value);
|
|
2175
|
+
},
|
|
2176
|
+
toAminoMsg(message: ABCIQueryResponse): ABCIQueryResponseAminoMsg {
|
|
2177
|
+
return {
|
|
2178
|
+
type: "cosmos-sdk/ABCIQueryResponse",
|
|
2179
|
+
value: ABCIQueryResponse.toAmino(message)
|
|
2180
|
+
};
|
|
2181
|
+
},
|
|
2182
|
+
fromProtoMsg(message: ABCIQueryResponseProtoMsg): ABCIQueryResponse {
|
|
2183
|
+
return ABCIQueryResponse.decode(message.value);
|
|
2184
|
+
},
|
|
2185
|
+
toProto(message: ABCIQueryResponse): Uint8Array {
|
|
2186
|
+
return ABCIQueryResponse.encode(message).finish();
|
|
2187
|
+
},
|
|
2188
|
+
toProtoMsg(message: ABCIQueryResponse): ABCIQueryResponseProtoMsg {
|
|
2189
|
+
return {
|
|
2190
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse",
|
|
2191
|
+
value: ABCIQueryResponse.encode(message).finish()
|
|
2192
|
+
};
|
|
2193
|
+
}
|
|
2194
|
+
};
|
|
2195
|
+
function createBaseProofOp(): ProofOp {
|
|
2196
|
+
return {
|
|
2197
|
+
type: "",
|
|
2198
|
+
key: new Uint8Array(),
|
|
2199
|
+
data: new Uint8Array()
|
|
2200
|
+
};
|
|
2201
|
+
}
|
|
2202
|
+
export const ProofOp = {
|
|
2203
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp",
|
|
2204
|
+
encode(message: ProofOp, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2205
|
+
if (message.type !== "") {
|
|
2206
|
+
writer.uint32(10).string(message.type);
|
|
2207
|
+
}
|
|
2208
|
+
if (message.key.length !== 0) {
|
|
2209
|
+
writer.uint32(18).bytes(message.key);
|
|
2210
|
+
}
|
|
2211
|
+
if (message.data.length !== 0) {
|
|
2212
|
+
writer.uint32(26).bytes(message.data);
|
|
2213
|
+
}
|
|
2214
|
+
return writer;
|
|
2215
|
+
},
|
|
2216
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ProofOp {
|
|
2217
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2218
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2219
|
+
const message = createBaseProofOp();
|
|
2220
|
+
while (reader.pos < end) {
|
|
2221
|
+
const tag = reader.uint32();
|
|
2222
|
+
switch (tag >>> 3) {
|
|
2223
|
+
case 1:
|
|
2224
|
+
message.type = reader.string();
|
|
2225
|
+
break;
|
|
2226
|
+
case 2:
|
|
2227
|
+
message.key = reader.bytes();
|
|
2228
|
+
break;
|
|
2229
|
+
case 3:
|
|
2230
|
+
message.data = reader.bytes();
|
|
2231
|
+
break;
|
|
2232
|
+
default:
|
|
2233
|
+
reader.skipType(tag & 7);
|
|
2234
|
+
break;
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
return message;
|
|
2238
|
+
},
|
|
2239
|
+
fromPartial(object: Partial<ProofOp>): ProofOp {
|
|
2240
|
+
const message = createBaseProofOp();
|
|
2241
|
+
message.type = object.type ?? "";
|
|
2242
|
+
message.key = object.key ?? new Uint8Array();
|
|
2243
|
+
message.data = object.data ?? new Uint8Array();
|
|
2244
|
+
return message;
|
|
2245
|
+
},
|
|
2246
|
+
fromAmino(object: ProofOpAmino): ProofOp {
|
|
2247
|
+
const message = createBaseProofOp();
|
|
2248
|
+
if (object.type !== undefined && object.type !== null) {
|
|
2249
|
+
message.type = object.type;
|
|
2250
|
+
}
|
|
2251
|
+
if (object.key !== undefined && object.key !== null) {
|
|
2252
|
+
message.key = bytesFromBase64(object.key);
|
|
2253
|
+
}
|
|
2254
|
+
if (object.data !== undefined && object.data !== null) {
|
|
2255
|
+
message.data = bytesFromBase64(object.data);
|
|
2256
|
+
}
|
|
2257
|
+
return message;
|
|
2258
|
+
},
|
|
2259
|
+
toAmino(message: ProofOp): ProofOpAmino {
|
|
2260
|
+
const obj: any = {};
|
|
2261
|
+
obj.type = message.type === "" ? undefined : message.type;
|
|
2262
|
+
obj.key = message.key ? base64FromBytes(message.key) : undefined;
|
|
2263
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
2264
|
+
return obj;
|
|
2265
|
+
},
|
|
2266
|
+
fromAminoMsg(object: ProofOpAminoMsg): ProofOp {
|
|
2267
|
+
return ProofOp.fromAmino(object.value);
|
|
2268
|
+
},
|
|
2269
|
+
toAminoMsg(message: ProofOp): ProofOpAminoMsg {
|
|
2270
|
+
return {
|
|
2271
|
+
type: "cosmos-sdk/ProofOp",
|
|
2272
|
+
value: ProofOp.toAmino(message)
|
|
2273
|
+
};
|
|
2274
|
+
},
|
|
2275
|
+
fromProtoMsg(message: ProofOpProtoMsg): ProofOp {
|
|
2276
|
+
return ProofOp.decode(message.value);
|
|
2277
|
+
},
|
|
2278
|
+
toProto(message: ProofOp): Uint8Array {
|
|
2279
|
+
return ProofOp.encode(message).finish();
|
|
2280
|
+
},
|
|
2281
|
+
toProtoMsg(message: ProofOp): ProofOpProtoMsg {
|
|
2282
|
+
return {
|
|
2283
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp",
|
|
2284
|
+
value: ProofOp.encode(message).finish()
|
|
2285
|
+
};
|
|
2286
|
+
}
|
|
2287
|
+
};
|
|
2288
|
+
function createBaseProofOps(): ProofOps {
|
|
2289
|
+
return {
|
|
2290
|
+
ops: []
|
|
2291
|
+
};
|
|
2292
|
+
}
|
|
2293
|
+
export const ProofOps = {
|
|
2294
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps",
|
|
2295
|
+
encode(message: ProofOps, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2296
|
+
for (const v of message.ops) {
|
|
2297
|
+
ProofOp.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
2298
|
+
}
|
|
2299
|
+
return writer;
|
|
2300
|
+
},
|
|
2301
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ProofOps {
|
|
2302
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2303
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2304
|
+
const message = createBaseProofOps();
|
|
2305
|
+
while (reader.pos < end) {
|
|
2306
|
+
const tag = reader.uint32();
|
|
2307
|
+
switch (tag >>> 3) {
|
|
2308
|
+
case 1:
|
|
2309
|
+
message.ops.push(ProofOp.decode(reader, reader.uint32()));
|
|
2310
|
+
break;
|
|
2311
|
+
default:
|
|
2312
|
+
reader.skipType(tag & 7);
|
|
2313
|
+
break;
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
return message;
|
|
2317
|
+
},
|
|
2318
|
+
fromPartial(object: Partial<ProofOps>): ProofOps {
|
|
2319
|
+
const message = createBaseProofOps();
|
|
2320
|
+
message.ops = object.ops?.map(e => ProofOp.fromPartial(e)) || [];
|
|
2321
|
+
return message;
|
|
2322
|
+
},
|
|
2323
|
+
fromAmino(object: ProofOpsAmino): ProofOps {
|
|
2324
|
+
const message = createBaseProofOps();
|
|
2325
|
+
message.ops = object.ops?.map(e => ProofOp.fromAmino(e)) || [];
|
|
2326
|
+
return message;
|
|
2327
|
+
},
|
|
2328
|
+
toAmino(message: ProofOps): ProofOpsAmino {
|
|
2329
|
+
const obj: any = {};
|
|
2330
|
+
if (message.ops) {
|
|
2331
|
+
obj.ops = message.ops.map(e => e ? ProofOp.toAmino(e) : undefined);
|
|
2332
|
+
} else {
|
|
2333
|
+
obj.ops = message.ops;
|
|
2334
|
+
}
|
|
2335
|
+
return obj;
|
|
2336
|
+
},
|
|
2337
|
+
fromAminoMsg(object: ProofOpsAminoMsg): ProofOps {
|
|
2338
|
+
return ProofOps.fromAmino(object.value);
|
|
2339
|
+
},
|
|
2340
|
+
toAminoMsg(message: ProofOps): ProofOpsAminoMsg {
|
|
2341
|
+
return {
|
|
2342
|
+
type: "cosmos-sdk/ProofOps",
|
|
2343
|
+
value: ProofOps.toAmino(message)
|
|
2344
|
+
};
|
|
2345
|
+
},
|
|
2346
|
+
fromProtoMsg(message: ProofOpsProtoMsg): ProofOps {
|
|
2347
|
+
return ProofOps.decode(message.value);
|
|
2348
|
+
},
|
|
2349
|
+
toProto(message: ProofOps): Uint8Array {
|
|
2350
|
+
return ProofOps.encode(message).finish();
|
|
2351
|
+
},
|
|
2352
|
+
toProtoMsg(message: ProofOps): ProofOpsProtoMsg {
|
|
2353
|
+
return {
|
|
2354
|
+
typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps",
|
|
2355
|
+
value: ProofOps.encode(message).finish()
|
|
2356
|
+
};
|
|
2357
|
+
}
|
|
2358
|
+
};
|