@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,1776 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Any, AnyAmino, AnySDKType } from "../../../../google/protobuf/any";
|
|
3
|
+
import { Event, EventAmino, EventSDKType } from "../../../../tendermint/abci/types";
|
|
4
|
+
import { Block, BlockAmino, BlockSDKType } from "../../../../tendermint/types/block";
|
|
5
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
6
|
+
import { bytesFromBase64, base64FromBytes } from "../../../../helpers";
|
|
7
|
+
/**
|
|
8
|
+
* TxResponse defines a structure containing relevant tx data and metadata. The
|
|
9
|
+
* tags are stringified and the log is JSON decoded.
|
|
10
|
+
*/
|
|
11
|
+
export interface TxResponse {
|
|
12
|
+
/** The block height */
|
|
13
|
+
height: bigint;
|
|
14
|
+
/** The transaction hash. */
|
|
15
|
+
txhash: string;
|
|
16
|
+
/** Namespace for the Code */
|
|
17
|
+
codespace: string;
|
|
18
|
+
/** Response code. */
|
|
19
|
+
code: number;
|
|
20
|
+
/** Result bytes, if any. */
|
|
21
|
+
data: string;
|
|
22
|
+
/**
|
|
23
|
+
* The output of the application's logger (raw string). May be
|
|
24
|
+
* non-deterministic.
|
|
25
|
+
*/
|
|
26
|
+
rawLog: string;
|
|
27
|
+
/** The output of the application's logger (typed). May be non-deterministic. */
|
|
28
|
+
logs: ABCIMessageLog[];
|
|
29
|
+
/** Additional information. May be non-deterministic. */
|
|
30
|
+
info: string;
|
|
31
|
+
/** Amount of gas requested for transaction. */
|
|
32
|
+
gasWanted: bigint;
|
|
33
|
+
/** Amount of gas consumed by transaction. */
|
|
34
|
+
gasUsed: bigint;
|
|
35
|
+
/** The request transaction bytes. */
|
|
36
|
+
tx?: Any;
|
|
37
|
+
/**
|
|
38
|
+
* Time of the previous block. For heights > 1, it's the weighted median of
|
|
39
|
+
* the timestamps of the valid votes in the block.LastCommit. For height == 1,
|
|
40
|
+
* it's genesis time.
|
|
41
|
+
*/
|
|
42
|
+
timestamp: string;
|
|
43
|
+
/**
|
|
44
|
+
* Events defines all the events emitted by processing a transaction. Note,
|
|
45
|
+
* these events include those emitted by processing all the messages and those
|
|
46
|
+
* emitted from the ante. Whereas Logs contains the events, with
|
|
47
|
+
* additional metadata, emitted only by processing the messages.
|
|
48
|
+
*/
|
|
49
|
+
events: Event[];
|
|
50
|
+
}
|
|
51
|
+
export interface TxResponseProtoMsg {
|
|
52
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxResponse";
|
|
53
|
+
value: Uint8Array;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* TxResponse defines a structure containing relevant tx data and metadata. The
|
|
57
|
+
* tags are stringified and the log is JSON decoded.
|
|
58
|
+
* @name TxResponseAmino
|
|
59
|
+
* @package cosmos.base.abci.v1beta1
|
|
60
|
+
* @see proto type: cosmos.base.abci.v1beta1.TxResponse
|
|
61
|
+
*/
|
|
62
|
+
export interface TxResponseAmino {
|
|
63
|
+
/**
|
|
64
|
+
* The block height
|
|
65
|
+
*/
|
|
66
|
+
height?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The transaction hash.
|
|
69
|
+
*/
|
|
70
|
+
txhash?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Namespace for the Code
|
|
73
|
+
*/
|
|
74
|
+
codespace?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Response code.
|
|
77
|
+
*/
|
|
78
|
+
code?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Result bytes, if any.
|
|
81
|
+
*/
|
|
82
|
+
data?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The output of the application's logger (raw string). May be
|
|
85
|
+
* non-deterministic.
|
|
86
|
+
*/
|
|
87
|
+
raw_log?: string;
|
|
88
|
+
/**
|
|
89
|
+
* The output of the application's logger (typed). May be non-deterministic.
|
|
90
|
+
*/
|
|
91
|
+
logs?: ABCIMessageLogAmino[];
|
|
92
|
+
/**
|
|
93
|
+
* Additional information. May be non-deterministic.
|
|
94
|
+
*/
|
|
95
|
+
info?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Amount of gas requested for transaction.
|
|
98
|
+
*/
|
|
99
|
+
gas_wanted?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Amount of gas consumed by transaction.
|
|
102
|
+
*/
|
|
103
|
+
gas_used?: string;
|
|
104
|
+
/**
|
|
105
|
+
* The request transaction bytes.
|
|
106
|
+
*/
|
|
107
|
+
tx?: AnyAmino;
|
|
108
|
+
/**
|
|
109
|
+
* Time of the previous block. For heights > 1, it's the weighted median of
|
|
110
|
+
* the timestamps of the valid votes in the block.LastCommit. For height == 1,
|
|
111
|
+
* it's genesis time.
|
|
112
|
+
*/
|
|
113
|
+
timestamp?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Events defines all the events emitted by processing a transaction. Note,
|
|
116
|
+
* these events include those emitted by processing all the messages and those
|
|
117
|
+
* emitted from the ante. Whereas Logs contains the events, with
|
|
118
|
+
* additional metadata, emitted only by processing the messages.
|
|
119
|
+
*/
|
|
120
|
+
events?: EventAmino[];
|
|
121
|
+
}
|
|
122
|
+
export interface TxResponseAminoMsg {
|
|
123
|
+
type: "cosmos-sdk/TxResponse";
|
|
124
|
+
value: TxResponseAmino;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* TxResponse defines a structure containing relevant tx data and metadata. The
|
|
128
|
+
* tags are stringified and the log is JSON decoded.
|
|
129
|
+
*/
|
|
130
|
+
export interface TxResponseSDKType {
|
|
131
|
+
height: bigint;
|
|
132
|
+
txhash: string;
|
|
133
|
+
codespace: string;
|
|
134
|
+
code: number;
|
|
135
|
+
data: string;
|
|
136
|
+
raw_log: string;
|
|
137
|
+
logs: ABCIMessageLogSDKType[];
|
|
138
|
+
info: string;
|
|
139
|
+
gas_wanted: bigint;
|
|
140
|
+
gas_used: bigint;
|
|
141
|
+
tx?: AnySDKType;
|
|
142
|
+
timestamp: string;
|
|
143
|
+
events: EventSDKType[];
|
|
144
|
+
}
|
|
145
|
+
/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */
|
|
146
|
+
export interface ABCIMessageLog {
|
|
147
|
+
msgIndex: number;
|
|
148
|
+
log: string;
|
|
149
|
+
/**
|
|
150
|
+
* Events contains a slice of Event objects that were emitted during some
|
|
151
|
+
* execution.
|
|
152
|
+
*/
|
|
153
|
+
events: StringEvent[];
|
|
154
|
+
}
|
|
155
|
+
export interface ABCIMessageLogProtoMsg {
|
|
156
|
+
typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog";
|
|
157
|
+
value: Uint8Array;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* ABCIMessageLog defines a structure containing an indexed tx ABCI message log.
|
|
161
|
+
* @name ABCIMessageLogAmino
|
|
162
|
+
* @package cosmos.base.abci.v1beta1
|
|
163
|
+
* @see proto type: cosmos.base.abci.v1beta1.ABCIMessageLog
|
|
164
|
+
*/
|
|
165
|
+
export interface ABCIMessageLogAmino {
|
|
166
|
+
msg_index: number;
|
|
167
|
+
log?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Events contains a slice of Event objects that were emitted during some
|
|
170
|
+
* execution.
|
|
171
|
+
*/
|
|
172
|
+
events?: StringEventAmino[];
|
|
173
|
+
}
|
|
174
|
+
export interface ABCIMessageLogAminoMsg {
|
|
175
|
+
type: "cosmos-sdk/ABCIMessageLog";
|
|
176
|
+
value: ABCIMessageLogAmino;
|
|
177
|
+
}
|
|
178
|
+
/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */
|
|
179
|
+
export interface ABCIMessageLogSDKType {
|
|
180
|
+
msg_index: number;
|
|
181
|
+
log: string;
|
|
182
|
+
events: StringEventSDKType[];
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* StringEvent defines en Event object wrapper where all the attributes
|
|
186
|
+
* contain key/value pairs that are strings instead of raw bytes.
|
|
187
|
+
*/
|
|
188
|
+
export interface StringEvent {
|
|
189
|
+
type: string;
|
|
190
|
+
attributes: Attribute[];
|
|
191
|
+
}
|
|
192
|
+
export interface StringEventProtoMsg {
|
|
193
|
+
typeUrl: "/cosmos.base.abci.v1beta1.StringEvent";
|
|
194
|
+
value: Uint8Array;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* StringEvent defines en Event object wrapper where all the attributes
|
|
198
|
+
* contain key/value pairs that are strings instead of raw bytes.
|
|
199
|
+
* @name StringEventAmino
|
|
200
|
+
* @package cosmos.base.abci.v1beta1
|
|
201
|
+
* @see proto type: cosmos.base.abci.v1beta1.StringEvent
|
|
202
|
+
*/
|
|
203
|
+
export interface StringEventAmino {
|
|
204
|
+
type?: string;
|
|
205
|
+
attributes?: AttributeAmino[];
|
|
206
|
+
}
|
|
207
|
+
export interface StringEventAminoMsg {
|
|
208
|
+
type: "cosmos-sdk/StringEvent";
|
|
209
|
+
value: StringEventAmino;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* StringEvent defines en Event object wrapper where all the attributes
|
|
213
|
+
* contain key/value pairs that are strings instead of raw bytes.
|
|
214
|
+
*/
|
|
215
|
+
export interface StringEventSDKType {
|
|
216
|
+
type: string;
|
|
217
|
+
attributes: AttributeSDKType[];
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Attribute defines an attribute wrapper where the key and value are
|
|
221
|
+
* strings instead of raw bytes.
|
|
222
|
+
*/
|
|
223
|
+
export interface Attribute {
|
|
224
|
+
key: string;
|
|
225
|
+
value: string;
|
|
226
|
+
}
|
|
227
|
+
export interface AttributeProtoMsg {
|
|
228
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Attribute";
|
|
229
|
+
value: Uint8Array;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Attribute defines an attribute wrapper where the key and value are
|
|
233
|
+
* strings instead of raw bytes.
|
|
234
|
+
* @name AttributeAmino
|
|
235
|
+
* @package cosmos.base.abci.v1beta1
|
|
236
|
+
* @see proto type: cosmos.base.abci.v1beta1.Attribute
|
|
237
|
+
*/
|
|
238
|
+
export interface AttributeAmino {
|
|
239
|
+
key?: string;
|
|
240
|
+
value?: string;
|
|
241
|
+
}
|
|
242
|
+
export interface AttributeAminoMsg {
|
|
243
|
+
type: "cosmos-sdk/Attribute";
|
|
244
|
+
value: AttributeAmino;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Attribute defines an attribute wrapper where the key and value are
|
|
248
|
+
* strings instead of raw bytes.
|
|
249
|
+
*/
|
|
250
|
+
export interface AttributeSDKType {
|
|
251
|
+
key: string;
|
|
252
|
+
value: string;
|
|
253
|
+
}
|
|
254
|
+
/** GasInfo defines tx execution gas context. */
|
|
255
|
+
export interface GasInfo {
|
|
256
|
+
/** GasWanted is the maximum units of work we allow this tx to perform. */
|
|
257
|
+
gasWanted: bigint;
|
|
258
|
+
/** GasUsed is the amount of gas actually consumed. */
|
|
259
|
+
gasUsed: bigint;
|
|
260
|
+
}
|
|
261
|
+
export interface GasInfoProtoMsg {
|
|
262
|
+
typeUrl: "/cosmos.base.abci.v1beta1.GasInfo";
|
|
263
|
+
value: Uint8Array;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* GasInfo defines tx execution gas context.
|
|
267
|
+
* @name GasInfoAmino
|
|
268
|
+
* @package cosmos.base.abci.v1beta1
|
|
269
|
+
* @see proto type: cosmos.base.abci.v1beta1.GasInfo
|
|
270
|
+
*/
|
|
271
|
+
export interface GasInfoAmino {
|
|
272
|
+
/**
|
|
273
|
+
* GasWanted is the maximum units of work we allow this tx to perform.
|
|
274
|
+
*/
|
|
275
|
+
gas_wanted?: string;
|
|
276
|
+
/**
|
|
277
|
+
* GasUsed is the amount of gas actually consumed.
|
|
278
|
+
*/
|
|
279
|
+
gas_used?: string;
|
|
280
|
+
}
|
|
281
|
+
export interface GasInfoAminoMsg {
|
|
282
|
+
type: "cosmos-sdk/GasInfo";
|
|
283
|
+
value: GasInfoAmino;
|
|
284
|
+
}
|
|
285
|
+
/** GasInfo defines tx execution gas context. */
|
|
286
|
+
export interface GasInfoSDKType {
|
|
287
|
+
gas_wanted: bigint;
|
|
288
|
+
gas_used: bigint;
|
|
289
|
+
}
|
|
290
|
+
/** Result is the union of ResponseFormat and ResponseCheckTx. */
|
|
291
|
+
export interface Result {
|
|
292
|
+
/**
|
|
293
|
+
* Data is any data returned from message or handler execution. It MUST be
|
|
294
|
+
* length prefixed in order to separate data from multiple message executions.
|
|
295
|
+
* Deprecated. This field is still populated, but prefer msg_response instead
|
|
296
|
+
* because it also contains the Msg response typeURL.
|
|
297
|
+
*/
|
|
298
|
+
/** @deprecated */
|
|
299
|
+
data: Uint8Array;
|
|
300
|
+
/** Log contains the log information from message or handler execution. */
|
|
301
|
+
log: string;
|
|
302
|
+
/**
|
|
303
|
+
* Events contains a slice of Event objects that were emitted during message
|
|
304
|
+
* or handler execution.
|
|
305
|
+
*/
|
|
306
|
+
events: Event[];
|
|
307
|
+
/** msg_responses contains the Msg handler responses type packed in Anys. */
|
|
308
|
+
msgResponses: Any[];
|
|
309
|
+
}
|
|
310
|
+
export interface ResultProtoMsg {
|
|
311
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Result";
|
|
312
|
+
value: Uint8Array;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Result is the union of ResponseFormat and ResponseCheckTx.
|
|
316
|
+
* @name ResultAmino
|
|
317
|
+
* @package cosmos.base.abci.v1beta1
|
|
318
|
+
* @see proto type: cosmos.base.abci.v1beta1.Result
|
|
319
|
+
*/
|
|
320
|
+
export interface ResultAmino {
|
|
321
|
+
/**
|
|
322
|
+
* Data is any data returned from message or handler execution. It MUST be
|
|
323
|
+
* length prefixed in order to separate data from multiple message executions.
|
|
324
|
+
* Deprecated. This field is still populated, but prefer msg_response instead
|
|
325
|
+
* because it also contains the Msg response typeURL.
|
|
326
|
+
* @deprecated
|
|
327
|
+
*/
|
|
328
|
+
data?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Log contains the log information from message or handler execution.
|
|
331
|
+
*/
|
|
332
|
+
log?: string;
|
|
333
|
+
/**
|
|
334
|
+
* Events contains a slice of Event objects that were emitted during message
|
|
335
|
+
* or handler execution.
|
|
336
|
+
*/
|
|
337
|
+
events?: EventAmino[];
|
|
338
|
+
/**
|
|
339
|
+
* msg_responses contains the Msg handler responses type packed in Anys.
|
|
340
|
+
*/
|
|
341
|
+
msg_responses?: AnyAmino[];
|
|
342
|
+
}
|
|
343
|
+
export interface ResultAminoMsg {
|
|
344
|
+
type: "cosmos-sdk/Result";
|
|
345
|
+
value: ResultAmino;
|
|
346
|
+
}
|
|
347
|
+
/** Result is the union of ResponseFormat and ResponseCheckTx. */
|
|
348
|
+
export interface ResultSDKType {
|
|
349
|
+
/** @deprecated */
|
|
350
|
+
data: Uint8Array;
|
|
351
|
+
log: string;
|
|
352
|
+
events: EventSDKType[];
|
|
353
|
+
msg_responses: AnySDKType[];
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* SimulationResponse defines the response generated when a transaction is
|
|
357
|
+
* successfully simulated.
|
|
358
|
+
*/
|
|
359
|
+
export interface SimulationResponse {
|
|
360
|
+
gasInfo: GasInfo;
|
|
361
|
+
result?: Result;
|
|
362
|
+
}
|
|
363
|
+
export interface SimulationResponseProtoMsg {
|
|
364
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse";
|
|
365
|
+
value: Uint8Array;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* SimulationResponse defines the response generated when a transaction is
|
|
369
|
+
* successfully simulated.
|
|
370
|
+
* @name SimulationResponseAmino
|
|
371
|
+
* @package cosmos.base.abci.v1beta1
|
|
372
|
+
* @see proto type: cosmos.base.abci.v1beta1.SimulationResponse
|
|
373
|
+
*/
|
|
374
|
+
export interface SimulationResponseAmino {
|
|
375
|
+
gas_info?: GasInfoAmino;
|
|
376
|
+
result?: ResultAmino;
|
|
377
|
+
}
|
|
378
|
+
export interface SimulationResponseAminoMsg {
|
|
379
|
+
type: "cosmos-sdk/SimulationResponse";
|
|
380
|
+
value: SimulationResponseAmino;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* SimulationResponse defines the response generated when a transaction is
|
|
384
|
+
* successfully simulated.
|
|
385
|
+
*/
|
|
386
|
+
export interface SimulationResponseSDKType {
|
|
387
|
+
gas_info: GasInfoSDKType;
|
|
388
|
+
result?: ResultSDKType;
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* MsgData defines the data returned in a Result object during message
|
|
392
|
+
* execution.
|
|
393
|
+
*/
|
|
394
|
+
/** @deprecated */
|
|
395
|
+
export interface MsgData {
|
|
396
|
+
msgType: string;
|
|
397
|
+
data: Uint8Array;
|
|
398
|
+
}
|
|
399
|
+
export interface MsgDataProtoMsg {
|
|
400
|
+
typeUrl: "/cosmos.base.abci.v1beta1.MsgData";
|
|
401
|
+
value: Uint8Array;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* MsgData defines the data returned in a Result object during message
|
|
405
|
+
* execution.
|
|
406
|
+
* @name MsgDataAmino
|
|
407
|
+
* @package cosmos.base.abci.v1beta1
|
|
408
|
+
* @see proto type: cosmos.base.abci.v1beta1.MsgData
|
|
409
|
+
* @deprecated
|
|
410
|
+
*/
|
|
411
|
+
export interface MsgDataAmino {
|
|
412
|
+
msg_type?: string;
|
|
413
|
+
data?: string;
|
|
414
|
+
}
|
|
415
|
+
export interface MsgDataAminoMsg {
|
|
416
|
+
type: "cosmos-sdk/MsgData";
|
|
417
|
+
value: MsgDataAmino;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* MsgData defines the data returned in a Result object during message
|
|
421
|
+
* execution.
|
|
422
|
+
*/
|
|
423
|
+
/** @deprecated */
|
|
424
|
+
export interface MsgDataSDKType {
|
|
425
|
+
msg_type: string;
|
|
426
|
+
data: Uint8Array;
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* TxMsgData defines a list of MsgData. A transaction will have a MsgData object
|
|
430
|
+
* for each message.
|
|
431
|
+
*/
|
|
432
|
+
export interface TxMsgData {
|
|
433
|
+
/** data field is deprecated and not populated. */
|
|
434
|
+
/** @deprecated */
|
|
435
|
+
data: MsgData[];
|
|
436
|
+
/** msg_responses contains the Msg handler responses packed into Anys. */
|
|
437
|
+
msgResponses: Any[];
|
|
438
|
+
}
|
|
439
|
+
export interface TxMsgDataProtoMsg {
|
|
440
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData";
|
|
441
|
+
value: Uint8Array;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* TxMsgData defines a list of MsgData. A transaction will have a MsgData object
|
|
445
|
+
* for each message.
|
|
446
|
+
* @name TxMsgDataAmino
|
|
447
|
+
* @package cosmos.base.abci.v1beta1
|
|
448
|
+
* @see proto type: cosmos.base.abci.v1beta1.TxMsgData
|
|
449
|
+
*/
|
|
450
|
+
export interface TxMsgDataAmino {
|
|
451
|
+
/**
|
|
452
|
+
* data field is deprecated and not populated.
|
|
453
|
+
* @deprecated
|
|
454
|
+
*/
|
|
455
|
+
data?: MsgDataAmino[];
|
|
456
|
+
/**
|
|
457
|
+
* msg_responses contains the Msg handler responses packed into Anys.
|
|
458
|
+
*/
|
|
459
|
+
msg_responses?: AnyAmino[];
|
|
460
|
+
}
|
|
461
|
+
export interface TxMsgDataAminoMsg {
|
|
462
|
+
type: "cosmos-sdk/TxMsgData";
|
|
463
|
+
value: TxMsgDataAmino;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* TxMsgData defines a list of MsgData. A transaction will have a MsgData object
|
|
467
|
+
* for each message.
|
|
468
|
+
*/
|
|
469
|
+
export interface TxMsgDataSDKType {
|
|
470
|
+
/** @deprecated */
|
|
471
|
+
data: MsgDataSDKType[];
|
|
472
|
+
msg_responses: AnySDKType[];
|
|
473
|
+
}
|
|
474
|
+
/** SearchTxsResult defines a structure for querying txs pageable */
|
|
475
|
+
export interface SearchTxsResult {
|
|
476
|
+
/** Count of all txs */
|
|
477
|
+
totalCount: bigint;
|
|
478
|
+
/** Count of txs in current page */
|
|
479
|
+
count: bigint;
|
|
480
|
+
/** Index of current page, start from 1 */
|
|
481
|
+
pageNumber: bigint;
|
|
482
|
+
/** Count of total pages */
|
|
483
|
+
pageTotal: bigint;
|
|
484
|
+
/** Max count txs per page */
|
|
485
|
+
limit: bigint;
|
|
486
|
+
/** List of txs in current page */
|
|
487
|
+
txs: TxResponse[];
|
|
488
|
+
}
|
|
489
|
+
export interface SearchTxsResultProtoMsg {
|
|
490
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult";
|
|
491
|
+
value: Uint8Array;
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* SearchTxsResult defines a structure for querying txs pageable
|
|
495
|
+
* @name SearchTxsResultAmino
|
|
496
|
+
* @package cosmos.base.abci.v1beta1
|
|
497
|
+
* @see proto type: cosmos.base.abci.v1beta1.SearchTxsResult
|
|
498
|
+
*/
|
|
499
|
+
export interface SearchTxsResultAmino {
|
|
500
|
+
/**
|
|
501
|
+
* Count of all txs
|
|
502
|
+
*/
|
|
503
|
+
total_count?: string;
|
|
504
|
+
/**
|
|
505
|
+
* Count of txs in current page
|
|
506
|
+
*/
|
|
507
|
+
count?: string;
|
|
508
|
+
/**
|
|
509
|
+
* Index of current page, start from 1
|
|
510
|
+
*/
|
|
511
|
+
page_number?: string;
|
|
512
|
+
/**
|
|
513
|
+
* Count of total pages
|
|
514
|
+
*/
|
|
515
|
+
page_total?: string;
|
|
516
|
+
/**
|
|
517
|
+
* Max count txs per page
|
|
518
|
+
*/
|
|
519
|
+
limit?: string;
|
|
520
|
+
/**
|
|
521
|
+
* List of txs in current page
|
|
522
|
+
*/
|
|
523
|
+
txs?: TxResponseAmino[];
|
|
524
|
+
}
|
|
525
|
+
export interface SearchTxsResultAminoMsg {
|
|
526
|
+
type: "cosmos-sdk/SearchTxsResult";
|
|
527
|
+
value: SearchTxsResultAmino;
|
|
528
|
+
}
|
|
529
|
+
/** SearchTxsResult defines a structure for querying txs pageable */
|
|
530
|
+
export interface SearchTxsResultSDKType {
|
|
531
|
+
total_count: bigint;
|
|
532
|
+
count: bigint;
|
|
533
|
+
page_number: bigint;
|
|
534
|
+
page_total: bigint;
|
|
535
|
+
limit: bigint;
|
|
536
|
+
txs: TxResponseSDKType[];
|
|
537
|
+
}
|
|
538
|
+
/** SearchBlocksResult defines a structure for querying blocks pageable */
|
|
539
|
+
export interface SearchBlocksResult {
|
|
540
|
+
/** Count of all blocks */
|
|
541
|
+
totalCount: bigint;
|
|
542
|
+
/** Count of blocks in current page */
|
|
543
|
+
count: bigint;
|
|
544
|
+
/** Index of current page, start from 1 */
|
|
545
|
+
pageNumber: bigint;
|
|
546
|
+
/** Count of total pages */
|
|
547
|
+
pageTotal: bigint;
|
|
548
|
+
/** Max count blocks per page */
|
|
549
|
+
limit: bigint;
|
|
550
|
+
/** List of blocks in current page */
|
|
551
|
+
blocks: Block[];
|
|
552
|
+
}
|
|
553
|
+
export interface SearchBlocksResultProtoMsg {
|
|
554
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchBlocksResult";
|
|
555
|
+
value: Uint8Array;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* SearchBlocksResult defines a structure for querying blocks pageable
|
|
559
|
+
* @name SearchBlocksResultAmino
|
|
560
|
+
* @package cosmos.base.abci.v1beta1
|
|
561
|
+
* @see proto type: cosmos.base.abci.v1beta1.SearchBlocksResult
|
|
562
|
+
*/
|
|
563
|
+
export interface SearchBlocksResultAmino {
|
|
564
|
+
/**
|
|
565
|
+
* Count of all blocks
|
|
566
|
+
*/
|
|
567
|
+
total_count?: string;
|
|
568
|
+
/**
|
|
569
|
+
* Count of blocks in current page
|
|
570
|
+
*/
|
|
571
|
+
count?: string;
|
|
572
|
+
/**
|
|
573
|
+
* Index of current page, start from 1
|
|
574
|
+
*/
|
|
575
|
+
page_number?: string;
|
|
576
|
+
/**
|
|
577
|
+
* Count of total pages
|
|
578
|
+
*/
|
|
579
|
+
page_total?: string;
|
|
580
|
+
/**
|
|
581
|
+
* Max count blocks per page
|
|
582
|
+
*/
|
|
583
|
+
limit?: string;
|
|
584
|
+
/**
|
|
585
|
+
* List of blocks in current page
|
|
586
|
+
*/
|
|
587
|
+
blocks?: BlockAmino[];
|
|
588
|
+
}
|
|
589
|
+
export interface SearchBlocksResultAminoMsg {
|
|
590
|
+
type: "cosmos-sdk/SearchBlocksResult";
|
|
591
|
+
value: SearchBlocksResultAmino;
|
|
592
|
+
}
|
|
593
|
+
/** SearchBlocksResult defines a structure for querying blocks pageable */
|
|
594
|
+
export interface SearchBlocksResultSDKType {
|
|
595
|
+
total_count: bigint;
|
|
596
|
+
count: bigint;
|
|
597
|
+
page_number: bigint;
|
|
598
|
+
page_total: bigint;
|
|
599
|
+
limit: bigint;
|
|
600
|
+
blocks: BlockSDKType[];
|
|
601
|
+
}
|
|
602
|
+
function createBaseTxResponse(): TxResponse {
|
|
603
|
+
return {
|
|
604
|
+
height: BigInt(0),
|
|
605
|
+
txhash: "",
|
|
606
|
+
codespace: "",
|
|
607
|
+
code: 0,
|
|
608
|
+
data: "",
|
|
609
|
+
rawLog: "",
|
|
610
|
+
logs: [],
|
|
611
|
+
info: "",
|
|
612
|
+
gasWanted: BigInt(0),
|
|
613
|
+
gasUsed: BigInt(0),
|
|
614
|
+
tx: undefined,
|
|
615
|
+
timestamp: "",
|
|
616
|
+
events: []
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
export const TxResponse = {
|
|
620
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxResponse",
|
|
621
|
+
encode(message: TxResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
622
|
+
if (message.height !== BigInt(0)) {
|
|
623
|
+
writer.uint32(8).int64(message.height);
|
|
624
|
+
}
|
|
625
|
+
if (message.txhash !== "") {
|
|
626
|
+
writer.uint32(18).string(message.txhash);
|
|
627
|
+
}
|
|
628
|
+
if (message.codespace !== "") {
|
|
629
|
+
writer.uint32(26).string(message.codespace);
|
|
630
|
+
}
|
|
631
|
+
if (message.code !== 0) {
|
|
632
|
+
writer.uint32(32).uint32(message.code);
|
|
633
|
+
}
|
|
634
|
+
if (message.data !== "") {
|
|
635
|
+
writer.uint32(42).string(message.data);
|
|
636
|
+
}
|
|
637
|
+
if (message.rawLog !== "") {
|
|
638
|
+
writer.uint32(50).string(message.rawLog);
|
|
639
|
+
}
|
|
640
|
+
for (const v of message.logs) {
|
|
641
|
+
ABCIMessageLog.encode(v!, writer.uint32(58).fork()).ldelim();
|
|
642
|
+
}
|
|
643
|
+
if (message.info !== "") {
|
|
644
|
+
writer.uint32(66).string(message.info);
|
|
645
|
+
}
|
|
646
|
+
if (message.gasWanted !== BigInt(0)) {
|
|
647
|
+
writer.uint32(72).int64(message.gasWanted);
|
|
648
|
+
}
|
|
649
|
+
if (message.gasUsed !== BigInt(0)) {
|
|
650
|
+
writer.uint32(80).int64(message.gasUsed);
|
|
651
|
+
}
|
|
652
|
+
if (message.tx !== undefined) {
|
|
653
|
+
Any.encode(message.tx, writer.uint32(90).fork()).ldelim();
|
|
654
|
+
}
|
|
655
|
+
if (message.timestamp !== "") {
|
|
656
|
+
writer.uint32(98).string(message.timestamp);
|
|
657
|
+
}
|
|
658
|
+
for (const v of message.events) {
|
|
659
|
+
Event.encode(v!, writer.uint32(106).fork()).ldelim();
|
|
660
|
+
}
|
|
661
|
+
return writer;
|
|
662
|
+
},
|
|
663
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxResponse {
|
|
664
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
665
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
666
|
+
const message = createBaseTxResponse();
|
|
667
|
+
while (reader.pos < end) {
|
|
668
|
+
const tag = reader.uint32();
|
|
669
|
+
switch (tag >>> 3) {
|
|
670
|
+
case 1:
|
|
671
|
+
message.height = reader.int64();
|
|
672
|
+
break;
|
|
673
|
+
case 2:
|
|
674
|
+
message.txhash = reader.string();
|
|
675
|
+
break;
|
|
676
|
+
case 3:
|
|
677
|
+
message.codespace = reader.string();
|
|
678
|
+
break;
|
|
679
|
+
case 4:
|
|
680
|
+
message.code = reader.uint32();
|
|
681
|
+
break;
|
|
682
|
+
case 5:
|
|
683
|
+
message.data = reader.string();
|
|
684
|
+
break;
|
|
685
|
+
case 6:
|
|
686
|
+
message.rawLog = reader.string();
|
|
687
|
+
break;
|
|
688
|
+
case 7:
|
|
689
|
+
message.logs.push(ABCIMessageLog.decode(reader, reader.uint32()));
|
|
690
|
+
break;
|
|
691
|
+
case 8:
|
|
692
|
+
message.info = reader.string();
|
|
693
|
+
break;
|
|
694
|
+
case 9:
|
|
695
|
+
message.gasWanted = reader.int64();
|
|
696
|
+
break;
|
|
697
|
+
case 10:
|
|
698
|
+
message.gasUsed = reader.int64();
|
|
699
|
+
break;
|
|
700
|
+
case 11:
|
|
701
|
+
message.tx = Any.decode(reader, reader.uint32());
|
|
702
|
+
break;
|
|
703
|
+
case 12:
|
|
704
|
+
message.timestamp = reader.string();
|
|
705
|
+
break;
|
|
706
|
+
case 13:
|
|
707
|
+
message.events.push(Event.decode(reader, reader.uint32()));
|
|
708
|
+
break;
|
|
709
|
+
default:
|
|
710
|
+
reader.skipType(tag & 7);
|
|
711
|
+
break;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
return message;
|
|
715
|
+
},
|
|
716
|
+
fromPartial(object: Partial<TxResponse>): TxResponse {
|
|
717
|
+
const message = createBaseTxResponse();
|
|
718
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
719
|
+
message.txhash = object.txhash ?? "";
|
|
720
|
+
message.codespace = object.codespace ?? "";
|
|
721
|
+
message.code = object.code ?? 0;
|
|
722
|
+
message.data = object.data ?? "";
|
|
723
|
+
message.rawLog = object.rawLog ?? "";
|
|
724
|
+
message.logs = object.logs?.map(e => ABCIMessageLog.fromPartial(e)) || [];
|
|
725
|
+
message.info = object.info ?? "";
|
|
726
|
+
message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0);
|
|
727
|
+
message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0);
|
|
728
|
+
message.tx = object.tx !== undefined && object.tx !== null ? Any.fromPartial(object.tx) : undefined;
|
|
729
|
+
message.timestamp = object.timestamp ?? "";
|
|
730
|
+
message.events = object.events?.map(e => Event.fromPartial(e)) || [];
|
|
731
|
+
return message;
|
|
732
|
+
},
|
|
733
|
+
fromAmino(object: TxResponseAmino): TxResponse {
|
|
734
|
+
const message = createBaseTxResponse();
|
|
735
|
+
if (object.height !== undefined && object.height !== null) {
|
|
736
|
+
message.height = BigInt(object.height);
|
|
737
|
+
}
|
|
738
|
+
if (object.txhash !== undefined && object.txhash !== null) {
|
|
739
|
+
message.txhash = object.txhash;
|
|
740
|
+
}
|
|
741
|
+
if (object.codespace !== undefined && object.codespace !== null) {
|
|
742
|
+
message.codespace = object.codespace;
|
|
743
|
+
}
|
|
744
|
+
if (object.code !== undefined && object.code !== null) {
|
|
745
|
+
message.code = object.code;
|
|
746
|
+
}
|
|
747
|
+
if (object.data !== undefined && object.data !== null) {
|
|
748
|
+
message.data = object.data;
|
|
749
|
+
}
|
|
750
|
+
if (object.raw_log !== undefined && object.raw_log !== null) {
|
|
751
|
+
message.rawLog = object.raw_log;
|
|
752
|
+
}
|
|
753
|
+
message.logs = object.logs?.map(e => ABCIMessageLog.fromAmino(e)) || [];
|
|
754
|
+
if (object.info !== undefined && object.info !== null) {
|
|
755
|
+
message.info = object.info;
|
|
756
|
+
}
|
|
757
|
+
if (object.gas_wanted !== undefined && object.gas_wanted !== null) {
|
|
758
|
+
message.gasWanted = BigInt(object.gas_wanted);
|
|
759
|
+
}
|
|
760
|
+
if (object.gas_used !== undefined && object.gas_used !== null) {
|
|
761
|
+
message.gasUsed = BigInt(object.gas_used);
|
|
762
|
+
}
|
|
763
|
+
if (object.tx !== undefined && object.tx !== null) {
|
|
764
|
+
message.tx = Any.fromAmino(object.tx);
|
|
765
|
+
}
|
|
766
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
767
|
+
message.timestamp = object.timestamp;
|
|
768
|
+
}
|
|
769
|
+
message.events = object.events?.map(e => Event.fromAmino(e)) || [];
|
|
770
|
+
return message;
|
|
771
|
+
},
|
|
772
|
+
toAmino(message: TxResponse): TxResponseAmino {
|
|
773
|
+
const obj: any = {};
|
|
774
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
775
|
+
obj.txhash = message.txhash === "" ? undefined : message.txhash;
|
|
776
|
+
obj.codespace = message.codespace === "" ? undefined : message.codespace;
|
|
777
|
+
obj.code = message.code === 0 ? undefined : message.code;
|
|
778
|
+
obj.data = message.data === "" ? undefined : message.data;
|
|
779
|
+
obj.raw_log = message.rawLog === "" ? undefined : message.rawLog;
|
|
780
|
+
if (message.logs) {
|
|
781
|
+
obj.logs = message.logs.map(e => e ? ABCIMessageLog.toAmino(e) : undefined);
|
|
782
|
+
} else {
|
|
783
|
+
obj.logs = message.logs;
|
|
784
|
+
}
|
|
785
|
+
obj.info = message.info === "" ? undefined : message.info;
|
|
786
|
+
obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted?.toString() : undefined;
|
|
787
|
+
obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed?.toString() : undefined;
|
|
788
|
+
obj.tx = message.tx ? Any.toAmino(message.tx) : undefined;
|
|
789
|
+
obj.timestamp = message.timestamp === "" ? undefined : message.timestamp;
|
|
790
|
+
if (message.events) {
|
|
791
|
+
obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined);
|
|
792
|
+
} else {
|
|
793
|
+
obj.events = message.events;
|
|
794
|
+
}
|
|
795
|
+
return obj;
|
|
796
|
+
},
|
|
797
|
+
fromAminoMsg(object: TxResponseAminoMsg): TxResponse {
|
|
798
|
+
return TxResponse.fromAmino(object.value);
|
|
799
|
+
},
|
|
800
|
+
toAminoMsg(message: TxResponse): TxResponseAminoMsg {
|
|
801
|
+
return {
|
|
802
|
+
type: "cosmos-sdk/TxResponse",
|
|
803
|
+
value: TxResponse.toAmino(message)
|
|
804
|
+
};
|
|
805
|
+
},
|
|
806
|
+
fromProtoMsg(message: TxResponseProtoMsg): TxResponse {
|
|
807
|
+
return TxResponse.decode(message.value);
|
|
808
|
+
},
|
|
809
|
+
toProto(message: TxResponse): Uint8Array {
|
|
810
|
+
return TxResponse.encode(message).finish();
|
|
811
|
+
},
|
|
812
|
+
toProtoMsg(message: TxResponse): TxResponseProtoMsg {
|
|
813
|
+
return {
|
|
814
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxResponse",
|
|
815
|
+
value: TxResponse.encode(message).finish()
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
};
|
|
819
|
+
function createBaseABCIMessageLog(): ABCIMessageLog {
|
|
820
|
+
return {
|
|
821
|
+
msgIndex: 0,
|
|
822
|
+
log: "",
|
|
823
|
+
events: []
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
export const ABCIMessageLog = {
|
|
827
|
+
typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog",
|
|
828
|
+
encode(message: ABCIMessageLog, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
829
|
+
if (message.msgIndex !== 0) {
|
|
830
|
+
writer.uint32(8).uint32(message.msgIndex);
|
|
831
|
+
}
|
|
832
|
+
if (message.log !== "") {
|
|
833
|
+
writer.uint32(18).string(message.log);
|
|
834
|
+
}
|
|
835
|
+
for (const v of message.events) {
|
|
836
|
+
StringEvent.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
837
|
+
}
|
|
838
|
+
return writer;
|
|
839
|
+
},
|
|
840
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ABCIMessageLog {
|
|
841
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
842
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
843
|
+
const message = createBaseABCIMessageLog();
|
|
844
|
+
while (reader.pos < end) {
|
|
845
|
+
const tag = reader.uint32();
|
|
846
|
+
switch (tag >>> 3) {
|
|
847
|
+
case 1:
|
|
848
|
+
message.msgIndex = reader.uint32();
|
|
849
|
+
break;
|
|
850
|
+
case 2:
|
|
851
|
+
message.log = reader.string();
|
|
852
|
+
break;
|
|
853
|
+
case 3:
|
|
854
|
+
message.events.push(StringEvent.decode(reader, reader.uint32()));
|
|
855
|
+
break;
|
|
856
|
+
default:
|
|
857
|
+
reader.skipType(tag & 7);
|
|
858
|
+
break;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
return message;
|
|
862
|
+
},
|
|
863
|
+
fromPartial(object: Partial<ABCIMessageLog>): ABCIMessageLog {
|
|
864
|
+
const message = createBaseABCIMessageLog();
|
|
865
|
+
message.msgIndex = object.msgIndex ?? 0;
|
|
866
|
+
message.log = object.log ?? "";
|
|
867
|
+
message.events = object.events?.map(e => StringEvent.fromPartial(e)) || [];
|
|
868
|
+
return message;
|
|
869
|
+
},
|
|
870
|
+
fromAmino(object: ABCIMessageLogAmino): ABCIMessageLog {
|
|
871
|
+
const message = createBaseABCIMessageLog();
|
|
872
|
+
if (object.msg_index !== undefined && object.msg_index !== null) {
|
|
873
|
+
message.msgIndex = object.msg_index;
|
|
874
|
+
}
|
|
875
|
+
if (object.log !== undefined && object.log !== null) {
|
|
876
|
+
message.log = object.log;
|
|
877
|
+
}
|
|
878
|
+
message.events = object.events?.map(e => StringEvent.fromAmino(e)) || [];
|
|
879
|
+
return message;
|
|
880
|
+
},
|
|
881
|
+
toAmino(message: ABCIMessageLog): ABCIMessageLogAmino {
|
|
882
|
+
const obj: any = {};
|
|
883
|
+
obj.msg_index = message.msgIndex ?? 0;
|
|
884
|
+
obj.log = message.log === "" ? undefined : message.log;
|
|
885
|
+
if (message.events) {
|
|
886
|
+
obj.events = message.events.map(e => e ? StringEvent.toAmino(e) : undefined);
|
|
887
|
+
} else {
|
|
888
|
+
obj.events = message.events;
|
|
889
|
+
}
|
|
890
|
+
return obj;
|
|
891
|
+
},
|
|
892
|
+
fromAminoMsg(object: ABCIMessageLogAminoMsg): ABCIMessageLog {
|
|
893
|
+
return ABCIMessageLog.fromAmino(object.value);
|
|
894
|
+
},
|
|
895
|
+
toAminoMsg(message: ABCIMessageLog): ABCIMessageLogAminoMsg {
|
|
896
|
+
return {
|
|
897
|
+
type: "cosmos-sdk/ABCIMessageLog",
|
|
898
|
+
value: ABCIMessageLog.toAmino(message)
|
|
899
|
+
};
|
|
900
|
+
},
|
|
901
|
+
fromProtoMsg(message: ABCIMessageLogProtoMsg): ABCIMessageLog {
|
|
902
|
+
return ABCIMessageLog.decode(message.value);
|
|
903
|
+
},
|
|
904
|
+
toProto(message: ABCIMessageLog): Uint8Array {
|
|
905
|
+
return ABCIMessageLog.encode(message).finish();
|
|
906
|
+
},
|
|
907
|
+
toProtoMsg(message: ABCIMessageLog): ABCIMessageLogProtoMsg {
|
|
908
|
+
return {
|
|
909
|
+
typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog",
|
|
910
|
+
value: ABCIMessageLog.encode(message).finish()
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
};
|
|
914
|
+
function createBaseStringEvent(): StringEvent {
|
|
915
|
+
return {
|
|
916
|
+
type: "",
|
|
917
|
+
attributes: []
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
export const StringEvent = {
|
|
921
|
+
typeUrl: "/cosmos.base.abci.v1beta1.StringEvent",
|
|
922
|
+
encode(message: StringEvent, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
923
|
+
if (message.type !== "") {
|
|
924
|
+
writer.uint32(10).string(message.type);
|
|
925
|
+
}
|
|
926
|
+
for (const v of message.attributes) {
|
|
927
|
+
Attribute.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
928
|
+
}
|
|
929
|
+
return writer;
|
|
930
|
+
},
|
|
931
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StringEvent {
|
|
932
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
933
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
934
|
+
const message = createBaseStringEvent();
|
|
935
|
+
while (reader.pos < end) {
|
|
936
|
+
const tag = reader.uint32();
|
|
937
|
+
switch (tag >>> 3) {
|
|
938
|
+
case 1:
|
|
939
|
+
message.type = reader.string();
|
|
940
|
+
break;
|
|
941
|
+
case 2:
|
|
942
|
+
message.attributes.push(Attribute.decode(reader, reader.uint32()));
|
|
943
|
+
break;
|
|
944
|
+
default:
|
|
945
|
+
reader.skipType(tag & 7);
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
return message;
|
|
950
|
+
},
|
|
951
|
+
fromPartial(object: Partial<StringEvent>): StringEvent {
|
|
952
|
+
const message = createBaseStringEvent();
|
|
953
|
+
message.type = object.type ?? "";
|
|
954
|
+
message.attributes = object.attributes?.map(e => Attribute.fromPartial(e)) || [];
|
|
955
|
+
return message;
|
|
956
|
+
},
|
|
957
|
+
fromAmino(object: StringEventAmino): StringEvent {
|
|
958
|
+
const message = createBaseStringEvent();
|
|
959
|
+
if (object.type !== undefined && object.type !== null) {
|
|
960
|
+
message.type = object.type;
|
|
961
|
+
}
|
|
962
|
+
message.attributes = object.attributes?.map(e => Attribute.fromAmino(e)) || [];
|
|
963
|
+
return message;
|
|
964
|
+
},
|
|
965
|
+
toAmino(message: StringEvent): StringEventAmino {
|
|
966
|
+
const obj: any = {};
|
|
967
|
+
obj.type = message.type === "" ? undefined : message.type;
|
|
968
|
+
if (message.attributes) {
|
|
969
|
+
obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined);
|
|
970
|
+
} else {
|
|
971
|
+
obj.attributes = message.attributes;
|
|
972
|
+
}
|
|
973
|
+
return obj;
|
|
974
|
+
},
|
|
975
|
+
fromAminoMsg(object: StringEventAminoMsg): StringEvent {
|
|
976
|
+
return StringEvent.fromAmino(object.value);
|
|
977
|
+
},
|
|
978
|
+
toAminoMsg(message: StringEvent): StringEventAminoMsg {
|
|
979
|
+
return {
|
|
980
|
+
type: "cosmos-sdk/StringEvent",
|
|
981
|
+
value: StringEvent.toAmino(message)
|
|
982
|
+
};
|
|
983
|
+
},
|
|
984
|
+
fromProtoMsg(message: StringEventProtoMsg): StringEvent {
|
|
985
|
+
return StringEvent.decode(message.value);
|
|
986
|
+
},
|
|
987
|
+
toProto(message: StringEvent): Uint8Array {
|
|
988
|
+
return StringEvent.encode(message).finish();
|
|
989
|
+
},
|
|
990
|
+
toProtoMsg(message: StringEvent): StringEventProtoMsg {
|
|
991
|
+
return {
|
|
992
|
+
typeUrl: "/cosmos.base.abci.v1beta1.StringEvent",
|
|
993
|
+
value: StringEvent.encode(message).finish()
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
};
|
|
997
|
+
function createBaseAttribute(): Attribute {
|
|
998
|
+
return {
|
|
999
|
+
key: "",
|
|
1000
|
+
value: ""
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
export const Attribute = {
|
|
1004
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Attribute",
|
|
1005
|
+
encode(message: Attribute, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1006
|
+
if (message.key !== "") {
|
|
1007
|
+
writer.uint32(10).string(message.key);
|
|
1008
|
+
}
|
|
1009
|
+
if (message.value !== "") {
|
|
1010
|
+
writer.uint32(18).string(message.value);
|
|
1011
|
+
}
|
|
1012
|
+
return writer;
|
|
1013
|
+
},
|
|
1014
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Attribute {
|
|
1015
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1016
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1017
|
+
const message = createBaseAttribute();
|
|
1018
|
+
while (reader.pos < end) {
|
|
1019
|
+
const tag = reader.uint32();
|
|
1020
|
+
switch (tag >>> 3) {
|
|
1021
|
+
case 1:
|
|
1022
|
+
message.key = reader.string();
|
|
1023
|
+
break;
|
|
1024
|
+
case 2:
|
|
1025
|
+
message.value = reader.string();
|
|
1026
|
+
break;
|
|
1027
|
+
default:
|
|
1028
|
+
reader.skipType(tag & 7);
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
return message;
|
|
1033
|
+
},
|
|
1034
|
+
fromPartial(object: Partial<Attribute>): Attribute {
|
|
1035
|
+
const message = createBaseAttribute();
|
|
1036
|
+
message.key = object.key ?? "";
|
|
1037
|
+
message.value = object.value ?? "";
|
|
1038
|
+
return message;
|
|
1039
|
+
},
|
|
1040
|
+
fromAmino(object: AttributeAmino): Attribute {
|
|
1041
|
+
const message = createBaseAttribute();
|
|
1042
|
+
if (object.key !== undefined && object.key !== null) {
|
|
1043
|
+
message.key = object.key;
|
|
1044
|
+
}
|
|
1045
|
+
if (object.value !== undefined && object.value !== null) {
|
|
1046
|
+
message.value = object.value;
|
|
1047
|
+
}
|
|
1048
|
+
return message;
|
|
1049
|
+
},
|
|
1050
|
+
toAmino(message: Attribute): AttributeAmino {
|
|
1051
|
+
const obj: any = {};
|
|
1052
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
1053
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
1054
|
+
return obj;
|
|
1055
|
+
},
|
|
1056
|
+
fromAminoMsg(object: AttributeAminoMsg): Attribute {
|
|
1057
|
+
return Attribute.fromAmino(object.value);
|
|
1058
|
+
},
|
|
1059
|
+
toAminoMsg(message: Attribute): AttributeAminoMsg {
|
|
1060
|
+
return {
|
|
1061
|
+
type: "cosmos-sdk/Attribute",
|
|
1062
|
+
value: Attribute.toAmino(message)
|
|
1063
|
+
};
|
|
1064
|
+
},
|
|
1065
|
+
fromProtoMsg(message: AttributeProtoMsg): Attribute {
|
|
1066
|
+
return Attribute.decode(message.value);
|
|
1067
|
+
},
|
|
1068
|
+
toProto(message: Attribute): Uint8Array {
|
|
1069
|
+
return Attribute.encode(message).finish();
|
|
1070
|
+
},
|
|
1071
|
+
toProtoMsg(message: Attribute): AttributeProtoMsg {
|
|
1072
|
+
return {
|
|
1073
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Attribute",
|
|
1074
|
+
value: Attribute.encode(message).finish()
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
};
|
|
1078
|
+
function createBaseGasInfo(): GasInfo {
|
|
1079
|
+
return {
|
|
1080
|
+
gasWanted: BigInt(0),
|
|
1081
|
+
gasUsed: BigInt(0)
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
export const GasInfo = {
|
|
1085
|
+
typeUrl: "/cosmos.base.abci.v1beta1.GasInfo",
|
|
1086
|
+
encode(message: GasInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1087
|
+
if (message.gasWanted !== BigInt(0)) {
|
|
1088
|
+
writer.uint32(8).uint64(message.gasWanted);
|
|
1089
|
+
}
|
|
1090
|
+
if (message.gasUsed !== BigInt(0)) {
|
|
1091
|
+
writer.uint32(16).uint64(message.gasUsed);
|
|
1092
|
+
}
|
|
1093
|
+
return writer;
|
|
1094
|
+
},
|
|
1095
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GasInfo {
|
|
1096
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1097
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1098
|
+
const message = createBaseGasInfo();
|
|
1099
|
+
while (reader.pos < end) {
|
|
1100
|
+
const tag = reader.uint32();
|
|
1101
|
+
switch (tag >>> 3) {
|
|
1102
|
+
case 1:
|
|
1103
|
+
message.gasWanted = reader.uint64();
|
|
1104
|
+
break;
|
|
1105
|
+
case 2:
|
|
1106
|
+
message.gasUsed = reader.uint64();
|
|
1107
|
+
break;
|
|
1108
|
+
default:
|
|
1109
|
+
reader.skipType(tag & 7);
|
|
1110
|
+
break;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
return message;
|
|
1114
|
+
},
|
|
1115
|
+
fromPartial(object: Partial<GasInfo>): GasInfo {
|
|
1116
|
+
const message = createBaseGasInfo();
|
|
1117
|
+
message.gasWanted = object.gasWanted !== undefined && object.gasWanted !== null ? BigInt(object.gasWanted.toString()) : BigInt(0);
|
|
1118
|
+
message.gasUsed = object.gasUsed !== undefined && object.gasUsed !== null ? BigInt(object.gasUsed.toString()) : BigInt(0);
|
|
1119
|
+
return message;
|
|
1120
|
+
},
|
|
1121
|
+
fromAmino(object: GasInfoAmino): GasInfo {
|
|
1122
|
+
const message = createBaseGasInfo();
|
|
1123
|
+
if (object.gas_wanted !== undefined && object.gas_wanted !== null) {
|
|
1124
|
+
message.gasWanted = BigInt(object.gas_wanted);
|
|
1125
|
+
}
|
|
1126
|
+
if (object.gas_used !== undefined && object.gas_used !== null) {
|
|
1127
|
+
message.gasUsed = BigInt(object.gas_used);
|
|
1128
|
+
}
|
|
1129
|
+
return message;
|
|
1130
|
+
},
|
|
1131
|
+
toAmino(message: GasInfo): GasInfoAmino {
|
|
1132
|
+
const obj: any = {};
|
|
1133
|
+
obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted?.toString() : undefined;
|
|
1134
|
+
obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed?.toString() : undefined;
|
|
1135
|
+
return obj;
|
|
1136
|
+
},
|
|
1137
|
+
fromAminoMsg(object: GasInfoAminoMsg): GasInfo {
|
|
1138
|
+
return GasInfo.fromAmino(object.value);
|
|
1139
|
+
},
|
|
1140
|
+
toAminoMsg(message: GasInfo): GasInfoAminoMsg {
|
|
1141
|
+
return {
|
|
1142
|
+
type: "cosmos-sdk/GasInfo",
|
|
1143
|
+
value: GasInfo.toAmino(message)
|
|
1144
|
+
};
|
|
1145
|
+
},
|
|
1146
|
+
fromProtoMsg(message: GasInfoProtoMsg): GasInfo {
|
|
1147
|
+
return GasInfo.decode(message.value);
|
|
1148
|
+
},
|
|
1149
|
+
toProto(message: GasInfo): Uint8Array {
|
|
1150
|
+
return GasInfo.encode(message).finish();
|
|
1151
|
+
},
|
|
1152
|
+
toProtoMsg(message: GasInfo): GasInfoProtoMsg {
|
|
1153
|
+
return {
|
|
1154
|
+
typeUrl: "/cosmos.base.abci.v1beta1.GasInfo",
|
|
1155
|
+
value: GasInfo.encode(message).finish()
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
function createBaseResult(): Result {
|
|
1160
|
+
return {
|
|
1161
|
+
data: new Uint8Array(),
|
|
1162
|
+
log: "",
|
|
1163
|
+
events: [],
|
|
1164
|
+
msgResponses: []
|
|
1165
|
+
};
|
|
1166
|
+
}
|
|
1167
|
+
export const Result = {
|
|
1168
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Result",
|
|
1169
|
+
encode(message: Result, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1170
|
+
if (message.data.length !== 0) {
|
|
1171
|
+
writer.uint32(10).bytes(message.data);
|
|
1172
|
+
}
|
|
1173
|
+
if (message.log !== "") {
|
|
1174
|
+
writer.uint32(18).string(message.log);
|
|
1175
|
+
}
|
|
1176
|
+
for (const v of message.events) {
|
|
1177
|
+
Event.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
1178
|
+
}
|
|
1179
|
+
for (const v of message.msgResponses) {
|
|
1180
|
+
Any.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
1181
|
+
}
|
|
1182
|
+
return writer;
|
|
1183
|
+
},
|
|
1184
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Result {
|
|
1185
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1186
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1187
|
+
const message = createBaseResult();
|
|
1188
|
+
while (reader.pos < end) {
|
|
1189
|
+
const tag = reader.uint32();
|
|
1190
|
+
switch (tag >>> 3) {
|
|
1191
|
+
case 1:
|
|
1192
|
+
message.data = reader.bytes();
|
|
1193
|
+
break;
|
|
1194
|
+
case 2:
|
|
1195
|
+
message.log = reader.string();
|
|
1196
|
+
break;
|
|
1197
|
+
case 3:
|
|
1198
|
+
message.events.push(Event.decode(reader, reader.uint32()));
|
|
1199
|
+
break;
|
|
1200
|
+
case 4:
|
|
1201
|
+
message.msgResponses.push(Any.decode(reader, reader.uint32()));
|
|
1202
|
+
break;
|
|
1203
|
+
default:
|
|
1204
|
+
reader.skipType(tag & 7);
|
|
1205
|
+
break;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
return message;
|
|
1209
|
+
},
|
|
1210
|
+
fromPartial(object: Partial<Result>): Result {
|
|
1211
|
+
const message = createBaseResult();
|
|
1212
|
+
message.data = object.data ?? new Uint8Array();
|
|
1213
|
+
message.log = object.log ?? "";
|
|
1214
|
+
message.events = object.events?.map(e => Event.fromPartial(e)) || [];
|
|
1215
|
+
message.msgResponses = object.msgResponses?.map(e => Any.fromPartial(e)) || [];
|
|
1216
|
+
return message;
|
|
1217
|
+
},
|
|
1218
|
+
fromAmino(object: ResultAmino): Result {
|
|
1219
|
+
const message = createBaseResult();
|
|
1220
|
+
if (object.data !== undefined && object.data !== null) {
|
|
1221
|
+
message.data = bytesFromBase64(object.data);
|
|
1222
|
+
}
|
|
1223
|
+
if (object.log !== undefined && object.log !== null) {
|
|
1224
|
+
message.log = object.log;
|
|
1225
|
+
}
|
|
1226
|
+
message.events = object.events?.map(e => Event.fromAmino(e)) || [];
|
|
1227
|
+
message.msgResponses = object.msg_responses?.map(e => Any.fromAmino(e)) || [];
|
|
1228
|
+
return message;
|
|
1229
|
+
},
|
|
1230
|
+
toAmino(message: Result): ResultAmino {
|
|
1231
|
+
const obj: any = {};
|
|
1232
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
1233
|
+
obj.log = message.log === "" ? undefined : message.log;
|
|
1234
|
+
if (message.events) {
|
|
1235
|
+
obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined);
|
|
1236
|
+
} else {
|
|
1237
|
+
obj.events = message.events;
|
|
1238
|
+
}
|
|
1239
|
+
if (message.msgResponses) {
|
|
1240
|
+
obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined);
|
|
1241
|
+
} else {
|
|
1242
|
+
obj.msg_responses = message.msgResponses;
|
|
1243
|
+
}
|
|
1244
|
+
return obj;
|
|
1245
|
+
},
|
|
1246
|
+
fromAminoMsg(object: ResultAminoMsg): Result {
|
|
1247
|
+
return Result.fromAmino(object.value);
|
|
1248
|
+
},
|
|
1249
|
+
toAminoMsg(message: Result): ResultAminoMsg {
|
|
1250
|
+
return {
|
|
1251
|
+
type: "cosmos-sdk/Result",
|
|
1252
|
+
value: Result.toAmino(message)
|
|
1253
|
+
};
|
|
1254
|
+
},
|
|
1255
|
+
fromProtoMsg(message: ResultProtoMsg): Result {
|
|
1256
|
+
return Result.decode(message.value);
|
|
1257
|
+
},
|
|
1258
|
+
toProto(message: Result): Uint8Array {
|
|
1259
|
+
return Result.encode(message).finish();
|
|
1260
|
+
},
|
|
1261
|
+
toProtoMsg(message: Result): ResultProtoMsg {
|
|
1262
|
+
return {
|
|
1263
|
+
typeUrl: "/cosmos.base.abci.v1beta1.Result",
|
|
1264
|
+
value: Result.encode(message).finish()
|
|
1265
|
+
};
|
|
1266
|
+
}
|
|
1267
|
+
};
|
|
1268
|
+
function createBaseSimulationResponse(): SimulationResponse {
|
|
1269
|
+
return {
|
|
1270
|
+
gasInfo: GasInfo.fromPartial({}),
|
|
1271
|
+
result: undefined
|
|
1272
|
+
};
|
|
1273
|
+
}
|
|
1274
|
+
export const SimulationResponse = {
|
|
1275
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse",
|
|
1276
|
+
encode(message: SimulationResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1277
|
+
if (message.gasInfo !== undefined) {
|
|
1278
|
+
GasInfo.encode(message.gasInfo, writer.uint32(10).fork()).ldelim();
|
|
1279
|
+
}
|
|
1280
|
+
if (message.result !== undefined) {
|
|
1281
|
+
Result.encode(message.result, writer.uint32(18).fork()).ldelim();
|
|
1282
|
+
}
|
|
1283
|
+
return writer;
|
|
1284
|
+
},
|
|
1285
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SimulationResponse {
|
|
1286
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1287
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1288
|
+
const message = createBaseSimulationResponse();
|
|
1289
|
+
while (reader.pos < end) {
|
|
1290
|
+
const tag = reader.uint32();
|
|
1291
|
+
switch (tag >>> 3) {
|
|
1292
|
+
case 1:
|
|
1293
|
+
message.gasInfo = GasInfo.decode(reader, reader.uint32());
|
|
1294
|
+
break;
|
|
1295
|
+
case 2:
|
|
1296
|
+
message.result = Result.decode(reader, reader.uint32());
|
|
1297
|
+
break;
|
|
1298
|
+
default:
|
|
1299
|
+
reader.skipType(tag & 7);
|
|
1300
|
+
break;
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
return message;
|
|
1304
|
+
},
|
|
1305
|
+
fromPartial(object: Partial<SimulationResponse>): SimulationResponse {
|
|
1306
|
+
const message = createBaseSimulationResponse();
|
|
1307
|
+
message.gasInfo = object.gasInfo !== undefined && object.gasInfo !== null ? GasInfo.fromPartial(object.gasInfo) : undefined;
|
|
1308
|
+
message.result = object.result !== undefined && object.result !== null ? Result.fromPartial(object.result) : undefined;
|
|
1309
|
+
return message;
|
|
1310
|
+
},
|
|
1311
|
+
fromAmino(object: SimulationResponseAmino): SimulationResponse {
|
|
1312
|
+
const message = createBaseSimulationResponse();
|
|
1313
|
+
if (object.gas_info !== undefined && object.gas_info !== null) {
|
|
1314
|
+
message.gasInfo = GasInfo.fromAmino(object.gas_info);
|
|
1315
|
+
}
|
|
1316
|
+
if (object.result !== undefined && object.result !== null) {
|
|
1317
|
+
message.result = Result.fromAmino(object.result);
|
|
1318
|
+
}
|
|
1319
|
+
return message;
|
|
1320
|
+
},
|
|
1321
|
+
toAmino(message: SimulationResponse): SimulationResponseAmino {
|
|
1322
|
+
const obj: any = {};
|
|
1323
|
+
obj.gas_info = message.gasInfo ? GasInfo.toAmino(message.gasInfo) : undefined;
|
|
1324
|
+
obj.result = message.result ? Result.toAmino(message.result) : undefined;
|
|
1325
|
+
return obj;
|
|
1326
|
+
},
|
|
1327
|
+
fromAminoMsg(object: SimulationResponseAminoMsg): SimulationResponse {
|
|
1328
|
+
return SimulationResponse.fromAmino(object.value);
|
|
1329
|
+
},
|
|
1330
|
+
toAminoMsg(message: SimulationResponse): SimulationResponseAminoMsg {
|
|
1331
|
+
return {
|
|
1332
|
+
type: "cosmos-sdk/SimulationResponse",
|
|
1333
|
+
value: SimulationResponse.toAmino(message)
|
|
1334
|
+
};
|
|
1335
|
+
},
|
|
1336
|
+
fromProtoMsg(message: SimulationResponseProtoMsg): SimulationResponse {
|
|
1337
|
+
return SimulationResponse.decode(message.value);
|
|
1338
|
+
},
|
|
1339
|
+
toProto(message: SimulationResponse): Uint8Array {
|
|
1340
|
+
return SimulationResponse.encode(message).finish();
|
|
1341
|
+
},
|
|
1342
|
+
toProtoMsg(message: SimulationResponse): SimulationResponseProtoMsg {
|
|
1343
|
+
return {
|
|
1344
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse",
|
|
1345
|
+
value: SimulationResponse.encode(message).finish()
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
};
|
|
1349
|
+
function createBaseMsgData(): MsgData {
|
|
1350
|
+
return {
|
|
1351
|
+
msgType: "",
|
|
1352
|
+
data: new Uint8Array()
|
|
1353
|
+
};
|
|
1354
|
+
}
|
|
1355
|
+
export const MsgData = {
|
|
1356
|
+
typeUrl: "/cosmos.base.abci.v1beta1.MsgData",
|
|
1357
|
+
encode(message: MsgData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1358
|
+
if (message.msgType !== "") {
|
|
1359
|
+
writer.uint32(10).string(message.msgType);
|
|
1360
|
+
}
|
|
1361
|
+
if (message.data.length !== 0) {
|
|
1362
|
+
writer.uint32(18).bytes(message.data);
|
|
1363
|
+
}
|
|
1364
|
+
return writer;
|
|
1365
|
+
},
|
|
1366
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgData {
|
|
1367
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1368
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1369
|
+
const message = createBaseMsgData();
|
|
1370
|
+
while (reader.pos < end) {
|
|
1371
|
+
const tag = reader.uint32();
|
|
1372
|
+
switch (tag >>> 3) {
|
|
1373
|
+
case 1:
|
|
1374
|
+
message.msgType = reader.string();
|
|
1375
|
+
break;
|
|
1376
|
+
case 2:
|
|
1377
|
+
message.data = reader.bytes();
|
|
1378
|
+
break;
|
|
1379
|
+
default:
|
|
1380
|
+
reader.skipType(tag & 7);
|
|
1381
|
+
break;
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
return message;
|
|
1385
|
+
},
|
|
1386
|
+
fromPartial(object: Partial<MsgData>): MsgData {
|
|
1387
|
+
const message = createBaseMsgData();
|
|
1388
|
+
message.msgType = object.msgType ?? "";
|
|
1389
|
+
message.data = object.data ?? new Uint8Array();
|
|
1390
|
+
return message;
|
|
1391
|
+
},
|
|
1392
|
+
fromAmino(object: MsgDataAmino): MsgData {
|
|
1393
|
+
const message = createBaseMsgData();
|
|
1394
|
+
if (object.msg_type !== undefined && object.msg_type !== null) {
|
|
1395
|
+
message.msgType = object.msg_type;
|
|
1396
|
+
}
|
|
1397
|
+
if (object.data !== undefined && object.data !== null) {
|
|
1398
|
+
message.data = bytesFromBase64(object.data);
|
|
1399
|
+
}
|
|
1400
|
+
return message;
|
|
1401
|
+
},
|
|
1402
|
+
toAmino(message: MsgData): MsgDataAmino {
|
|
1403
|
+
const obj: any = {};
|
|
1404
|
+
obj.msg_type = message.msgType === "" ? undefined : message.msgType;
|
|
1405
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
1406
|
+
return obj;
|
|
1407
|
+
},
|
|
1408
|
+
fromAminoMsg(object: MsgDataAminoMsg): MsgData {
|
|
1409
|
+
return MsgData.fromAmino(object.value);
|
|
1410
|
+
},
|
|
1411
|
+
toAminoMsg(message: MsgData): MsgDataAminoMsg {
|
|
1412
|
+
return {
|
|
1413
|
+
type: "cosmos-sdk/MsgData",
|
|
1414
|
+
value: MsgData.toAmino(message)
|
|
1415
|
+
};
|
|
1416
|
+
},
|
|
1417
|
+
fromProtoMsg(message: MsgDataProtoMsg): MsgData {
|
|
1418
|
+
return MsgData.decode(message.value);
|
|
1419
|
+
},
|
|
1420
|
+
toProto(message: MsgData): Uint8Array {
|
|
1421
|
+
return MsgData.encode(message).finish();
|
|
1422
|
+
},
|
|
1423
|
+
toProtoMsg(message: MsgData): MsgDataProtoMsg {
|
|
1424
|
+
return {
|
|
1425
|
+
typeUrl: "/cosmos.base.abci.v1beta1.MsgData",
|
|
1426
|
+
value: MsgData.encode(message).finish()
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1429
|
+
};
|
|
1430
|
+
function createBaseTxMsgData(): TxMsgData {
|
|
1431
|
+
return {
|
|
1432
|
+
data: [],
|
|
1433
|
+
msgResponses: []
|
|
1434
|
+
};
|
|
1435
|
+
}
|
|
1436
|
+
export const TxMsgData = {
|
|
1437
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData",
|
|
1438
|
+
encode(message: TxMsgData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1439
|
+
for (const v of message.data) {
|
|
1440
|
+
MsgData.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1441
|
+
}
|
|
1442
|
+
for (const v of message.msgResponses) {
|
|
1443
|
+
Any.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
1444
|
+
}
|
|
1445
|
+
return writer;
|
|
1446
|
+
},
|
|
1447
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TxMsgData {
|
|
1448
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1449
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1450
|
+
const message = createBaseTxMsgData();
|
|
1451
|
+
while (reader.pos < end) {
|
|
1452
|
+
const tag = reader.uint32();
|
|
1453
|
+
switch (tag >>> 3) {
|
|
1454
|
+
case 1:
|
|
1455
|
+
message.data.push(MsgData.decode(reader, reader.uint32()));
|
|
1456
|
+
break;
|
|
1457
|
+
case 2:
|
|
1458
|
+
message.msgResponses.push(Any.decode(reader, reader.uint32()));
|
|
1459
|
+
break;
|
|
1460
|
+
default:
|
|
1461
|
+
reader.skipType(tag & 7);
|
|
1462
|
+
break;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
return message;
|
|
1466
|
+
},
|
|
1467
|
+
fromPartial(object: Partial<TxMsgData>): TxMsgData {
|
|
1468
|
+
const message = createBaseTxMsgData();
|
|
1469
|
+
message.data = object.data?.map(e => MsgData.fromPartial(e)) || [];
|
|
1470
|
+
message.msgResponses = object.msgResponses?.map(e => Any.fromPartial(e)) || [];
|
|
1471
|
+
return message;
|
|
1472
|
+
},
|
|
1473
|
+
fromAmino(object: TxMsgDataAmino): TxMsgData {
|
|
1474
|
+
const message = createBaseTxMsgData();
|
|
1475
|
+
message.data = object.data?.map(e => MsgData.fromAmino(e)) || [];
|
|
1476
|
+
message.msgResponses = object.msg_responses?.map(e => Any.fromAmino(e)) || [];
|
|
1477
|
+
return message;
|
|
1478
|
+
},
|
|
1479
|
+
toAmino(message: TxMsgData): TxMsgDataAmino {
|
|
1480
|
+
const obj: any = {};
|
|
1481
|
+
if (message.data) {
|
|
1482
|
+
obj.data = message.data.map(e => e ? MsgData.toAmino(e) : undefined);
|
|
1483
|
+
} else {
|
|
1484
|
+
obj.data = message.data;
|
|
1485
|
+
}
|
|
1486
|
+
if (message.msgResponses) {
|
|
1487
|
+
obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined);
|
|
1488
|
+
} else {
|
|
1489
|
+
obj.msg_responses = message.msgResponses;
|
|
1490
|
+
}
|
|
1491
|
+
return obj;
|
|
1492
|
+
},
|
|
1493
|
+
fromAminoMsg(object: TxMsgDataAminoMsg): TxMsgData {
|
|
1494
|
+
return TxMsgData.fromAmino(object.value);
|
|
1495
|
+
},
|
|
1496
|
+
toAminoMsg(message: TxMsgData): TxMsgDataAminoMsg {
|
|
1497
|
+
return {
|
|
1498
|
+
type: "cosmos-sdk/TxMsgData",
|
|
1499
|
+
value: TxMsgData.toAmino(message)
|
|
1500
|
+
};
|
|
1501
|
+
},
|
|
1502
|
+
fromProtoMsg(message: TxMsgDataProtoMsg): TxMsgData {
|
|
1503
|
+
return TxMsgData.decode(message.value);
|
|
1504
|
+
},
|
|
1505
|
+
toProto(message: TxMsgData): Uint8Array {
|
|
1506
|
+
return TxMsgData.encode(message).finish();
|
|
1507
|
+
},
|
|
1508
|
+
toProtoMsg(message: TxMsgData): TxMsgDataProtoMsg {
|
|
1509
|
+
return {
|
|
1510
|
+
typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData",
|
|
1511
|
+
value: TxMsgData.encode(message).finish()
|
|
1512
|
+
};
|
|
1513
|
+
}
|
|
1514
|
+
};
|
|
1515
|
+
function createBaseSearchTxsResult(): SearchTxsResult {
|
|
1516
|
+
return {
|
|
1517
|
+
totalCount: BigInt(0),
|
|
1518
|
+
count: BigInt(0),
|
|
1519
|
+
pageNumber: BigInt(0),
|
|
1520
|
+
pageTotal: BigInt(0),
|
|
1521
|
+
limit: BigInt(0),
|
|
1522
|
+
txs: []
|
|
1523
|
+
};
|
|
1524
|
+
}
|
|
1525
|
+
export const SearchTxsResult = {
|
|
1526
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult",
|
|
1527
|
+
encode(message: SearchTxsResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1528
|
+
if (message.totalCount !== BigInt(0)) {
|
|
1529
|
+
writer.uint32(8).uint64(message.totalCount);
|
|
1530
|
+
}
|
|
1531
|
+
if (message.count !== BigInt(0)) {
|
|
1532
|
+
writer.uint32(16).uint64(message.count);
|
|
1533
|
+
}
|
|
1534
|
+
if (message.pageNumber !== BigInt(0)) {
|
|
1535
|
+
writer.uint32(24).uint64(message.pageNumber);
|
|
1536
|
+
}
|
|
1537
|
+
if (message.pageTotal !== BigInt(0)) {
|
|
1538
|
+
writer.uint32(32).uint64(message.pageTotal);
|
|
1539
|
+
}
|
|
1540
|
+
if (message.limit !== BigInt(0)) {
|
|
1541
|
+
writer.uint32(40).uint64(message.limit);
|
|
1542
|
+
}
|
|
1543
|
+
for (const v of message.txs) {
|
|
1544
|
+
TxResponse.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
1545
|
+
}
|
|
1546
|
+
return writer;
|
|
1547
|
+
},
|
|
1548
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SearchTxsResult {
|
|
1549
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1550
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1551
|
+
const message = createBaseSearchTxsResult();
|
|
1552
|
+
while (reader.pos < end) {
|
|
1553
|
+
const tag = reader.uint32();
|
|
1554
|
+
switch (tag >>> 3) {
|
|
1555
|
+
case 1:
|
|
1556
|
+
message.totalCount = reader.uint64();
|
|
1557
|
+
break;
|
|
1558
|
+
case 2:
|
|
1559
|
+
message.count = reader.uint64();
|
|
1560
|
+
break;
|
|
1561
|
+
case 3:
|
|
1562
|
+
message.pageNumber = reader.uint64();
|
|
1563
|
+
break;
|
|
1564
|
+
case 4:
|
|
1565
|
+
message.pageTotal = reader.uint64();
|
|
1566
|
+
break;
|
|
1567
|
+
case 5:
|
|
1568
|
+
message.limit = reader.uint64();
|
|
1569
|
+
break;
|
|
1570
|
+
case 6:
|
|
1571
|
+
message.txs.push(TxResponse.decode(reader, reader.uint32()));
|
|
1572
|
+
break;
|
|
1573
|
+
default:
|
|
1574
|
+
reader.skipType(tag & 7);
|
|
1575
|
+
break;
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
return message;
|
|
1579
|
+
},
|
|
1580
|
+
fromPartial(object: Partial<SearchTxsResult>): SearchTxsResult {
|
|
1581
|
+
const message = createBaseSearchTxsResult();
|
|
1582
|
+
message.totalCount = object.totalCount !== undefined && object.totalCount !== null ? BigInt(object.totalCount.toString()) : BigInt(0);
|
|
1583
|
+
message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0);
|
|
1584
|
+
message.pageNumber = object.pageNumber !== undefined && object.pageNumber !== null ? BigInt(object.pageNumber.toString()) : BigInt(0);
|
|
1585
|
+
message.pageTotal = object.pageTotal !== undefined && object.pageTotal !== null ? BigInt(object.pageTotal.toString()) : BigInt(0);
|
|
1586
|
+
message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0);
|
|
1587
|
+
message.txs = object.txs?.map(e => TxResponse.fromPartial(e)) || [];
|
|
1588
|
+
return message;
|
|
1589
|
+
},
|
|
1590
|
+
fromAmino(object: SearchTxsResultAmino): SearchTxsResult {
|
|
1591
|
+
const message = createBaseSearchTxsResult();
|
|
1592
|
+
if (object.total_count !== undefined && object.total_count !== null) {
|
|
1593
|
+
message.totalCount = BigInt(object.total_count);
|
|
1594
|
+
}
|
|
1595
|
+
if (object.count !== undefined && object.count !== null) {
|
|
1596
|
+
message.count = BigInt(object.count);
|
|
1597
|
+
}
|
|
1598
|
+
if (object.page_number !== undefined && object.page_number !== null) {
|
|
1599
|
+
message.pageNumber = BigInt(object.page_number);
|
|
1600
|
+
}
|
|
1601
|
+
if (object.page_total !== undefined && object.page_total !== null) {
|
|
1602
|
+
message.pageTotal = BigInt(object.page_total);
|
|
1603
|
+
}
|
|
1604
|
+
if (object.limit !== undefined && object.limit !== null) {
|
|
1605
|
+
message.limit = BigInt(object.limit);
|
|
1606
|
+
}
|
|
1607
|
+
message.txs = object.txs?.map(e => TxResponse.fromAmino(e)) || [];
|
|
1608
|
+
return message;
|
|
1609
|
+
},
|
|
1610
|
+
toAmino(message: SearchTxsResult): SearchTxsResultAmino {
|
|
1611
|
+
const obj: any = {};
|
|
1612
|
+
obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount?.toString() : undefined;
|
|
1613
|
+
obj.count = message.count !== BigInt(0) ? message.count?.toString() : undefined;
|
|
1614
|
+
obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber?.toString() : undefined;
|
|
1615
|
+
obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal?.toString() : undefined;
|
|
1616
|
+
obj.limit = message.limit !== BigInt(0) ? message.limit?.toString() : undefined;
|
|
1617
|
+
if (message.txs) {
|
|
1618
|
+
obj.txs = message.txs.map(e => e ? TxResponse.toAmino(e) : undefined);
|
|
1619
|
+
} else {
|
|
1620
|
+
obj.txs = message.txs;
|
|
1621
|
+
}
|
|
1622
|
+
return obj;
|
|
1623
|
+
},
|
|
1624
|
+
fromAminoMsg(object: SearchTxsResultAminoMsg): SearchTxsResult {
|
|
1625
|
+
return SearchTxsResult.fromAmino(object.value);
|
|
1626
|
+
},
|
|
1627
|
+
toAminoMsg(message: SearchTxsResult): SearchTxsResultAminoMsg {
|
|
1628
|
+
return {
|
|
1629
|
+
type: "cosmos-sdk/SearchTxsResult",
|
|
1630
|
+
value: SearchTxsResult.toAmino(message)
|
|
1631
|
+
};
|
|
1632
|
+
},
|
|
1633
|
+
fromProtoMsg(message: SearchTxsResultProtoMsg): SearchTxsResult {
|
|
1634
|
+
return SearchTxsResult.decode(message.value);
|
|
1635
|
+
},
|
|
1636
|
+
toProto(message: SearchTxsResult): Uint8Array {
|
|
1637
|
+
return SearchTxsResult.encode(message).finish();
|
|
1638
|
+
},
|
|
1639
|
+
toProtoMsg(message: SearchTxsResult): SearchTxsResultProtoMsg {
|
|
1640
|
+
return {
|
|
1641
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult",
|
|
1642
|
+
value: SearchTxsResult.encode(message).finish()
|
|
1643
|
+
};
|
|
1644
|
+
}
|
|
1645
|
+
};
|
|
1646
|
+
function createBaseSearchBlocksResult(): SearchBlocksResult {
|
|
1647
|
+
return {
|
|
1648
|
+
totalCount: BigInt(0),
|
|
1649
|
+
count: BigInt(0),
|
|
1650
|
+
pageNumber: BigInt(0),
|
|
1651
|
+
pageTotal: BigInt(0),
|
|
1652
|
+
limit: BigInt(0),
|
|
1653
|
+
blocks: []
|
|
1654
|
+
};
|
|
1655
|
+
}
|
|
1656
|
+
export const SearchBlocksResult = {
|
|
1657
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchBlocksResult",
|
|
1658
|
+
encode(message: SearchBlocksResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1659
|
+
if (message.totalCount !== BigInt(0)) {
|
|
1660
|
+
writer.uint32(8).int64(message.totalCount);
|
|
1661
|
+
}
|
|
1662
|
+
if (message.count !== BigInt(0)) {
|
|
1663
|
+
writer.uint32(16).int64(message.count);
|
|
1664
|
+
}
|
|
1665
|
+
if (message.pageNumber !== BigInt(0)) {
|
|
1666
|
+
writer.uint32(24).int64(message.pageNumber);
|
|
1667
|
+
}
|
|
1668
|
+
if (message.pageTotal !== BigInt(0)) {
|
|
1669
|
+
writer.uint32(32).int64(message.pageTotal);
|
|
1670
|
+
}
|
|
1671
|
+
if (message.limit !== BigInt(0)) {
|
|
1672
|
+
writer.uint32(40).int64(message.limit);
|
|
1673
|
+
}
|
|
1674
|
+
for (const v of message.blocks) {
|
|
1675
|
+
Block.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
1676
|
+
}
|
|
1677
|
+
return writer;
|
|
1678
|
+
},
|
|
1679
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SearchBlocksResult {
|
|
1680
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1681
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1682
|
+
const message = createBaseSearchBlocksResult();
|
|
1683
|
+
while (reader.pos < end) {
|
|
1684
|
+
const tag = reader.uint32();
|
|
1685
|
+
switch (tag >>> 3) {
|
|
1686
|
+
case 1:
|
|
1687
|
+
message.totalCount = reader.int64();
|
|
1688
|
+
break;
|
|
1689
|
+
case 2:
|
|
1690
|
+
message.count = reader.int64();
|
|
1691
|
+
break;
|
|
1692
|
+
case 3:
|
|
1693
|
+
message.pageNumber = reader.int64();
|
|
1694
|
+
break;
|
|
1695
|
+
case 4:
|
|
1696
|
+
message.pageTotal = reader.int64();
|
|
1697
|
+
break;
|
|
1698
|
+
case 5:
|
|
1699
|
+
message.limit = reader.int64();
|
|
1700
|
+
break;
|
|
1701
|
+
case 6:
|
|
1702
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
1703
|
+
break;
|
|
1704
|
+
default:
|
|
1705
|
+
reader.skipType(tag & 7);
|
|
1706
|
+
break;
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
return message;
|
|
1710
|
+
},
|
|
1711
|
+
fromPartial(object: Partial<SearchBlocksResult>): SearchBlocksResult {
|
|
1712
|
+
const message = createBaseSearchBlocksResult();
|
|
1713
|
+
message.totalCount = object.totalCount !== undefined && object.totalCount !== null ? BigInt(object.totalCount.toString()) : BigInt(0);
|
|
1714
|
+
message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0);
|
|
1715
|
+
message.pageNumber = object.pageNumber !== undefined && object.pageNumber !== null ? BigInt(object.pageNumber.toString()) : BigInt(0);
|
|
1716
|
+
message.pageTotal = object.pageTotal !== undefined && object.pageTotal !== null ? BigInt(object.pageTotal.toString()) : BigInt(0);
|
|
1717
|
+
message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0);
|
|
1718
|
+
message.blocks = object.blocks?.map(e => Block.fromPartial(e)) || [];
|
|
1719
|
+
return message;
|
|
1720
|
+
},
|
|
1721
|
+
fromAmino(object: SearchBlocksResultAmino): SearchBlocksResult {
|
|
1722
|
+
const message = createBaseSearchBlocksResult();
|
|
1723
|
+
if (object.total_count !== undefined && object.total_count !== null) {
|
|
1724
|
+
message.totalCount = BigInt(object.total_count);
|
|
1725
|
+
}
|
|
1726
|
+
if (object.count !== undefined && object.count !== null) {
|
|
1727
|
+
message.count = BigInt(object.count);
|
|
1728
|
+
}
|
|
1729
|
+
if (object.page_number !== undefined && object.page_number !== null) {
|
|
1730
|
+
message.pageNumber = BigInt(object.page_number);
|
|
1731
|
+
}
|
|
1732
|
+
if (object.page_total !== undefined && object.page_total !== null) {
|
|
1733
|
+
message.pageTotal = BigInt(object.page_total);
|
|
1734
|
+
}
|
|
1735
|
+
if (object.limit !== undefined && object.limit !== null) {
|
|
1736
|
+
message.limit = BigInt(object.limit);
|
|
1737
|
+
}
|
|
1738
|
+
message.blocks = object.blocks?.map(e => Block.fromAmino(e)) || [];
|
|
1739
|
+
return message;
|
|
1740
|
+
},
|
|
1741
|
+
toAmino(message: SearchBlocksResult): SearchBlocksResultAmino {
|
|
1742
|
+
const obj: any = {};
|
|
1743
|
+
obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount?.toString() : undefined;
|
|
1744
|
+
obj.count = message.count !== BigInt(0) ? message.count?.toString() : undefined;
|
|
1745
|
+
obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber?.toString() : undefined;
|
|
1746
|
+
obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal?.toString() : undefined;
|
|
1747
|
+
obj.limit = message.limit !== BigInt(0) ? message.limit?.toString() : undefined;
|
|
1748
|
+
if (message.blocks) {
|
|
1749
|
+
obj.blocks = message.blocks.map(e => e ? Block.toAmino(e) : undefined);
|
|
1750
|
+
} else {
|
|
1751
|
+
obj.blocks = message.blocks;
|
|
1752
|
+
}
|
|
1753
|
+
return obj;
|
|
1754
|
+
},
|
|
1755
|
+
fromAminoMsg(object: SearchBlocksResultAminoMsg): SearchBlocksResult {
|
|
1756
|
+
return SearchBlocksResult.fromAmino(object.value);
|
|
1757
|
+
},
|
|
1758
|
+
toAminoMsg(message: SearchBlocksResult): SearchBlocksResultAminoMsg {
|
|
1759
|
+
return {
|
|
1760
|
+
type: "cosmos-sdk/SearchBlocksResult",
|
|
1761
|
+
value: SearchBlocksResult.toAmino(message)
|
|
1762
|
+
};
|
|
1763
|
+
},
|
|
1764
|
+
fromProtoMsg(message: SearchBlocksResultProtoMsg): SearchBlocksResult {
|
|
1765
|
+
return SearchBlocksResult.decode(message.value);
|
|
1766
|
+
},
|
|
1767
|
+
toProto(message: SearchBlocksResult): Uint8Array {
|
|
1768
|
+
return SearchBlocksResult.encode(message).finish();
|
|
1769
|
+
},
|
|
1770
|
+
toProtoMsg(message: SearchBlocksResult): SearchBlocksResultProtoMsg {
|
|
1771
|
+
return {
|
|
1772
|
+
typeUrl: "/cosmos.base.abci.v1beta1.SearchBlocksResult",
|
|
1773
|
+
value: SearchBlocksResult.encode(message).finish()
|
|
1774
|
+
};
|
|
1775
|
+
}
|
|
1776
|
+
};
|