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