@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,1455 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Height, HeightAmino, HeightSDKType } from "../../client/v1/client";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
4
|
+
import { bytesFromBase64, base64FromBytes } from "../../../../helpers";
|
|
5
|
+
/**
|
|
6
|
+
* State defines if a channel is in one of the following states:
|
|
7
|
+
* CLOSED, INIT, TRYOPEN, OPEN, or UNINITIALIZED.
|
|
8
|
+
*/
|
|
9
|
+
export enum State {
|
|
10
|
+
/** STATE_UNINITIALIZED_UNSPECIFIED - Default State */
|
|
11
|
+
STATE_UNINITIALIZED_UNSPECIFIED = 0,
|
|
12
|
+
/** STATE_INIT - A channel has just started the opening handshake. */
|
|
13
|
+
STATE_INIT = 1,
|
|
14
|
+
/** STATE_TRYOPEN - A channel has acknowledged the handshake step on the counterparty chain. */
|
|
15
|
+
STATE_TRYOPEN = 2,
|
|
16
|
+
/**
|
|
17
|
+
* STATE_OPEN - A channel has completed the handshake. Open channels are
|
|
18
|
+
* ready to send and receive packets.
|
|
19
|
+
*/
|
|
20
|
+
STATE_OPEN = 3,
|
|
21
|
+
/**
|
|
22
|
+
* STATE_CLOSED - A channel has been closed and can no longer be used to send or receive
|
|
23
|
+
* packets.
|
|
24
|
+
*/
|
|
25
|
+
STATE_CLOSED = 4,
|
|
26
|
+
UNRECOGNIZED = -1,
|
|
27
|
+
}
|
|
28
|
+
export const StateSDKType = State;
|
|
29
|
+
export const StateAmino = State;
|
|
30
|
+
export function stateFromJSON(object: any): State {
|
|
31
|
+
switch (object) {
|
|
32
|
+
case 0:
|
|
33
|
+
case "STATE_UNINITIALIZED_UNSPECIFIED":
|
|
34
|
+
return State.STATE_UNINITIALIZED_UNSPECIFIED;
|
|
35
|
+
case 1:
|
|
36
|
+
case "STATE_INIT":
|
|
37
|
+
return State.STATE_INIT;
|
|
38
|
+
case 2:
|
|
39
|
+
case "STATE_TRYOPEN":
|
|
40
|
+
return State.STATE_TRYOPEN;
|
|
41
|
+
case 3:
|
|
42
|
+
case "STATE_OPEN":
|
|
43
|
+
return State.STATE_OPEN;
|
|
44
|
+
case 4:
|
|
45
|
+
case "STATE_CLOSED":
|
|
46
|
+
return State.STATE_CLOSED;
|
|
47
|
+
case -1:
|
|
48
|
+
case "UNRECOGNIZED":
|
|
49
|
+
default:
|
|
50
|
+
return State.UNRECOGNIZED;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export function stateToJSON(object: State): string {
|
|
54
|
+
switch (object) {
|
|
55
|
+
case State.STATE_UNINITIALIZED_UNSPECIFIED:
|
|
56
|
+
return "STATE_UNINITIALIZED_UNSPECIFIED";
|
|
57
|
+
case State.STATE_INIT:
|
|
58
|
+
return "STATE_INIT";
|
|
59
|
+
case State.STATE_TRYOPEN:
|
|
60
|
+
return "STATE_TRYOPEN";
|
|
61
|
+
case State.STATE_OPEN:
|
|
62
|
+
return "STATE_OPEN";
|
|
63
|
+
case State.STATE_CLOSED:
|
|
64
|
+
return "STATE_CLOSED";
|
|
65
|
+
case State.UNRECOGNIZED:
|
|
66
|
+
default:
|
|
67
|
+
return "UNRECOGNIZED";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
/** Order defines if a channel is ORDERED or UNORDERED */
|
|
71
|
+
export enum Order {
|
|
72
|
+
/** ORDER_NONE_UNSPECIFIED - zero-value for channel ordering */
|
|
73
|
+
ORDER_NONE_UNSPECIFIED = 0,
|
|
74
|
+
/**
|
|
75
|
+
* ORDER_UNORDERED - packets can be delivered in any order, which may differ from the order in
|
|
76
|
+
* which they were sent.
|
|
77
|
+
*/
|
|
78
|
+
ORDER_UNORDERED = 1,
|
|
79
|
+
/** ORDER_ORDERED - packets are delivered exactly in the order which they were sent */
|
|
80
|
+
ORDER_ORDERED = 2,
|
|
81
|
+
UNRECOGNIZED = -1,
|
|
82
|
+
}
|
|
83
|
+
export const OrderSDKType = Order;
|
|
84
|
+
export const OrderAmino = Order;
|
|
85
|
+
export function orderFromJSON(object: any): Order {
|
|
86
|
+
switch (object) {
|
|
87
|
+
case 0:
|
|
88
|
+
case "ORDER_NONE_UNSPECIFIED":
|
|
89
|
+
return Order.ORDER_NONE_UNSPECIFIED;
|
|
90
|
+
case 1:
|
|
91
|
+
case "ORDER_UNORDERED":
|
|
92
|
+
return Order.ORDER_UNORDERED;
|
|
93
|
+
case 2:
|
|
94
|
+
case "ORDER_ORDERED":
|
|
95
|
+
return Order.ORDER_ORDERED;
|
|
96
|
+
case -1:
|
|
97
|
+
case "UNRECOGNIZED":
|
|
98
|
+
default:
|
|
99
|
+
return Order.UNRECOGNIZED;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
export function orderToJSON(object: Order): string {
|
|
103
|
+
switch (object) {
|
|
104
|
+
case Order.ORDER_NONE_UNSPECIFIED:
|
|
105
|
+
return "ORDER_NONE_UNSPECIFIED";
|
|
106
|
+
case Order.ORDER_UNORDERED:
|
|
107
|
+
return "ORDER_UNORDERED";
|
|
108
|
+
case Order.ORDER_ORDERED:
|
|
109
|
+
return "ORDER_ORDERED";
|
|
110
|
+
case Order.UNRECOGNIZED:
|
|
111
|
+
default:
|
|
112
|
+
return "UNRECOGNIZED";
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Channel defines pipeline for exactly-once packet delivery between specific
|
|
117
|
+
* modules on separate blockchains, which has at least one end capable of
|
|
118
|
+
* sending packets and one end capable of receiving packets.
|
|
119
|
+
*/
|
|
120
|
+
export interface Channel {
|
|
121
|
+
/** current state of the channel end */
|
|
122
|
+
state: State;
|
|
123
|
+
/** whether the channel is ordered or unordered */
|
|
124
|
+
ordering: Order;
|
|
125
|
+
/** counterparty channel end */
|
|
126
|
+
counterparty: Counterparty;
|
|
127
|
+
/**
|
|
128
|
+
* list of connection identifiers, in order, along which packets sent on
|
|
129
|
+
* this channel will travel
|
|
130
|
+
*/
|
|
131
|
+
connectionHops: string[];
|
|
132
|
+
/** opaque channel version, which is agreed upon during the handshake */
|
|
133
|
+
version: string;
|
|
134
|
+
}
|
|
135
|
+
export interface ChannelProtoMsg {
|
|
136
|
+
typeUrl: "/ibc.core.channel.v1.Channel";
|
|
137
|
+
value: Uint8Array;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Channel defines pipeline for exactly-once packet delivery between specific
|
|
141
|
+
* modules on separate blockchains, which has at least one end capable of
|
|
142
|
+
* sending packets and one end capable of receiving packets.
|
|
143
|
+
* @name ChannelAmino
|
|
144
|
+
* @package ibc.core.channel.v1
|
|
145
|
+
* @see proto type: ibc.core.channel.v1.Channel
|
|
146
|
+
*/
|
|
147
|
+
export interface ChannelAmino {
|
|
148
|
+
/**
|
|
149
|
+
* current state of the channel end
|
|
150
|
+
*/
|
|
151
|
+
state?: State;
|
|
152
|
+
/**
|
|
153
|
+
* whether the channel is ordered or unordered
|
|
154
|
+
*/
|
|
155
|
+
ordering?: Order;
|
|
156
|
+
/**
|
|
157
|
+
* counterparty channel end
|
|
158
|
+
*/
|
|
159
|
+
counterparty?: CounterpartyAmino;
|
|
160
|
+
/**
|
|
161
|
+
* list of connection identifiers, in order, along which packets sent on
|
|
162
|
+
* this channel will travel
|
|
163
|
+
*/
|
|
164
|
+
connection_hops?: string[];
|
|
165
|
+
/**
|
|
166
|
+
* opaque channel version, which is agreed upon during the handshake
|
|
167
|
+
*/
|
|
168
|
+
version?: string;
|
|
169
|
+
}
|
|
170
|
+
export interface ChannelAminoMsg {
|
|
171
|
+
type: "cosmos-sdk/Channel";
|
|
172
|
+
value: ChannelAmino;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Channel defines pipeline for exactly-once packet delivery between specific
|
|
176
|
+
* modules on separate blockchains, which has at least one end capable of
|
|
177
|
+
* sending packets and one end capable of receiving packets.
|
|
178
|
+
*/
|
|
179
|
+
export interface ChannelSDKType {
|
|
180
|
+
state: State;
|
|
181
|
+
ordering: Order;
|
|
182
|
+
counterparty: CounterpartySDKType;
|
|
183
|
+
connection_hops: string[];
|
|
184
|
+
version: string;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* IdentifiedChannel defines a channel with additional port and channel
|
|
188
|
+
* identifier fields.
|
|
189
|
+
*/
|
|
190
|
+
export interface IdentifiedChannel {
|
|
191
|
+
/** current state of the channel end */
|
|
192
|
+
state: State;
|
|
193
|
+
/** whether the channel is ordered or unordered */
|
|
194
|
+
ordering: Order;
|
|
195
|
+
/** counterparty channel end */
|
|
196
|
+
counterparty: Counterparty;
|
|
197
|
+
/**
|
|
198
|
+
* list of connection identifiers, in order, along which packets sent on
|
|
199
|
+
* this channel will travel
|
|
200
|
+
*/
|
|
201
|
+
connectionHops: string[];
|
|
202
|
+
/** opaque channel version, which is agreed upon during the handshake */
|
|
203
|
+
version: string;
|
|
204
|
+
/** port identifier */
|
|
205
|
+
portId: string;
|
|
206
|
+
/** channel identifier */
|
|
207
|
+
channelId: string;
|
|
208
|
+
}
|
|
209
|
+
export interface IdentifiedChannelProtoMsg {
|
|
210
|
+
typeUrl: "/ibc.core.channel.v1.IdentifiedChannel";
|
|
211
|
+
value: Uint8Array;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* IdentifiedChannel defines a channel with additional port and channel
|
|
215
|
+
* identifier fields.
|
|
216
|
+
* @name IdentifiedChannelAmino
|
|
217
|
+
* @package ibc.core.channel.v1
|
|
218
|
+
* @see proto type: ibc.core.channel.v1.IdentifiedChannel
|
|
219
|
+
*/
|
|
220
|
+
export interface IdentifiedChannelAmino {
|
|
221
|
+
/**
|
|
222
|
+
* current state of the channel end
|
|
223
|
+
*/
|
|
224
|
+
state?: State;
|
|
225
|
+
/**
|
|
226
|
+
* whether the channel is ordered or unordered
|
|
227
|
+
*/
|
|
228
|
+
ordering?: Order;
|
|
229
|
+
/**
|
|
230
|
+
* counterparty channel end
|
|
231
|
+
*/
|
|
232
|
+
counterparty?: CounterpartyAmino;
|
|
233
|
+
/**
|
|
234
|
+
* list of connection identifiers, in order, along which packets sent on
|
|
235
|
+
* this channel will travel
|
|
236
|
+
*/
|
|
237
|
+
connection_hops?: string[];
|
|
238
|
+
/**
|
|
239
|
+
* opaque channel version, which is agreed upon during the handshake
|
|
240
|
+
*/
|
|
241
|
+
version?: string;
|
|
242
|
+
/**
|
|
243
|
+
* port identifier
|
|
244
|
+
*/
|
|
245
|
+
port_id?: string;
|
|
246
|
+
/**
|
|
247
|
+
* channel identifier
|
|
248
|
+
*/
|
|
249
|
+
channel_id?: string;
|
|
250
|
+
}
|
|
251
|
+
export interface IdentifiedChannelAminoMsg {
|
|
252
|
+
type: "cosmos-sdk/IdentifiedChannel";
|
|
253
|
+
value: IdentifiedChannelAmino;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* IdentifiedChannel defines a channel with additional port and channel
|
|
257
|
+
* identifier fields.
|
|
258
|
+
*/
|
|
259
|
+
export interface IdentifiedChannelSDKType {
|
|
260
|
+
state: State;
|
|
261
|
+
ordering: Order;
|
|
262
|
+
counterparty: CounterpartySDKType;
|
|
263
|
+
connection_hops: string[];
|
|
264
|
+
version: string;
|
|
265
|
+
port_id: string;
|
|
266
|
+
channel_id: string;
|
|
267
|
+
}
|
|
268
|
+
/** Counterparty defines a channel end counterparty */
|
|
269
|
+
export interface Counterparty {
|
|
270
|
+
/** port on the counterparty chain which owns the other end of the channel. */
|
|
271
|
+
portId: string;
|
|
272
|
+
/** channel end on the counterparty chain */
|
|
273
|
+
channelId: string;
|
|
274
|
+
}
|
|
275
|
+
export interface CounterpartyProtoMsg {
|
|
276
|
+
typeUrl: "/ibc.core.channel.v1.Counterparty";
|
|
277
|
+
value: Uint8Array;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Counterparty defines a channel end counterparty
|
|
281
|
+
* @name CounterpartyAmino
|
|
282
|
+
* @package ibc.core.channel.v1
|
|
283
|
+
* @see proto type: ibc.core.channel.v1.Counterparty
|
|
284
|
+
*/
|
|
285
|
+
export interface CounterpartyAmino {
|
|
286
|
+
/**
|
|
287
|
+
* port on the counterparty chain which owns the other end of the channel.
|
|
288
|
+
*/
|
|
289
|
+
port_id?: string;
|
|
290
|
+
/**
|
|
291
|
+
* channel end on the counterparty chain
|
|
292
|
+
*/
|
|
293
|
+
channel_id?: string;
|
|
294
|
+
}
|
|
295
|
+
export interface CounterpartyAminoMsg {
|
|
296
|
+
type: "cosmos-sdk/Counterparty";
|
|
297
|
+
value: CounterpartyAmino;
|
|
298
|
+
}
|
|
299
|
+
/** Counterparty defines a channel end counterparty */
|
|
300
|
+
export interface CounterpartySDKType {
|
|
301
|
+
port_id: string;
|
|
302
|
+
channel_id: string;
|
|
303
|
+
}
|
|
304
|
+
/** Packet defines a type that carries data across different chains through IBC */
|
|
305
|
+
export interface Packet {
|
|
306
|
+
/**
|
|
307
|
+
* number corresponds to the order of sends and receives, where a Packet
|
|
308
|
+
* with an earlier sequence number must be sent and received before a Packet
|
|
309
|
+
* with a later sequence number.
|
|
310
|
+
*/
|
|
311
|
+
sequence: bigint;
|
|
312
|
+
/** identifies the port on the sending chain. */
|
|
313
|
+
sourcePort: string;
|
|
314
|
+
/** identifies the channel end on the sending chain. */
|
|
315
|
+
sourceChannel: string;
|
|
316
|
+
/** identifies the port on the receiving chain. */
|
|
317
|
+
destinationPort: string;
|
|
318
|
+
/** identifies the channel end on the receiving chain. */
|
|
319
|
+
destinationChannel: string;
|
|
320
|
+
/** actual opaque bytes transferred directly to the application module */
|
|
321
|
+
data: Uint8Array;
|
|
322
|
+
/** block height after which the packet times out */
|
|
323
|
+
timeoutHeight: Height;
|
|
324
|
+
/** block timestamp (in nanoseconds) after which the packet times out */
|
|
325
|
+
timeoutTimestamp: bigint;
|
|
326
|
+
}
|
|
327
|
+
export interface PacketProtoMsg {
|
|
328
|
+
typeUrl: "/ibc.core.channel.v1.Packet";
|
|
329
|
+
value: Uint8Array;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Packet defines a type that carries data across different chains through IBC
|
|
333
|
+
* @name PacketAmino
|
|
334
|
+
* @package ibc.core.channel.v1
|
|
335
|
+
* @see proto type: ibc.core.channel.v1.Packet
|
|
336
|
+
*/
|
|
337
|
+
export interface PacketAmino {
|
|
338
|
+
/**
|
|
339
|
+
* number corresponds to the order of sends and receives, where a Packet
|
|
340
|
+
* with an earlier sequence number must be sent and received before a Packet
|
|
341
|
+
* with a later sequence number.
|
|
342
|
+
*/
|
|
343
|
+
sequence?: string;
|
|
344
|
+
/**
|
|
345
|
+
* identifies the port on the sending chain.
|
|
346
|
+
*/
|
|
347
|
+
source_port?: string;
|
|
348
|
+
/**
|
|
349
|
+
* identifies the channel end on the sending chain.
|
|
350
|
+
*/
|
|
351
|
+
source_channel?: string;
|
|
352
|
+
/**
|
|
353
|
+
* identifies the port on the receiving chain.
|
|
354
|
+
*/
|
|
355
|
+
destination_port?: string;
|
|
356
|
+
/**
|
|
357
|
+
* identifies the channel end on the receiving chain.
|
|
358
|
+
*/
|
|
359
|
+
destination_channel?: string;
|
|
360
|
+
/**
|
|
361
|
+
* actual opaque bytes transferred directly to the application module
|
|
362
|
+
*/
|
|
363
|
+
data?: string;
|
|
364
|
+
/**
|
|
365
|
+
* block height after which the packet times out
|
|
366
|
+
*/
|
|
367
|
+
timeout_height?: HeightAmino;
|
|
368
|
+
/**
|
|
369
|
+
* block timestamp (in nanoseconds) after which the packet times out
|
|
370
|
+
*/
|
|
371
|
+
timeout_timestamp?: string;
|
|
372
|
+
}
|
|
373
|
+
export interface PacketAminoMsg {
|
|
374
|
+
type: "cosmos-sdk/Packet";
|
|
375
|
+
value: PacketAmino;
|
|
376
|
+
}
|
|
377
|
+
/** Packet defines a type that carries data across different chains through IBC */
|
|
378
|
+
export interface PacketSDKType {
|
|
379
|
+
sequence: bigint;
|
|
380
|
+
source_port: string;
|
|
381
|
+
source_channel: string;
|
|
382
|
+
destination_port: string;
|
|
383
|
+
destination_channel: string;
|
|
384
|
+
data: Uint8Array;
|
|
385
|
+
timeout_height: HeightSDKType;
|
|
386
|
+
timeout_timestamp: bigint;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* PacketState defines the generic type necessary to retrieve and store
|
|
390
|
+
* packet commitments, acknowledgements, and receipts.
|
|
391
|
+
* Caller is responsible for knowing the context necessary to interpret this
|
|
392
|
+
* state as a commitment, acknowledgement, or a receipt.
|
|
393
|
+
*/
|
|
394
|
+
export interface PacketState {
|
|
395
|
+
/** channel port identifier. */
|
|
396
|
+
portId: string;
|
|
397
|
+
/** channel unique identifier. */
|
|
398
|
+
channelId: string;
|
|
399
|
+
/** packet sequence. */
|
|
400
|
+
sequence: bigint;
|
|
401
|
+
/** embedded data that represents packet state. */
|
|
402
|
+
data: Uint8Array;
|
|
403
|
+
}
|
|
404
|
+
export interface PacketStateProtoMsg {
|
|
405
|
+
typeUrl: "/ibc.core.channel.v1.PacketState";
|
|
406
|
+
value: Uint8Array;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* PacketState defines the generic type necessary to retrieve and store
|
|
410
|
+
* packet commitments, acknowledgements, and receipts.
|
|
411
|
+
* Caller is responsible for knowing the context necessary to interpret this
|
|
412
|
+
* state as a commitment, acknowledgement, or a receipt.
|
|
413
|
+
* @name PacketStateAmino
|
|
414
|
+
* @package ibc.core.channel.v1
|
|
415
|
+
* @see proto type: ibc.core.channel.v1.PacketState
|
|
416
|
+
*/
|
|
417
|
+
export interface PacketStateAmino {
|
|
418
|
+
/**
|
|
419
|
+
* channel port identifier.
|
|
420
|
+
*/
|
|
421
|
+
port_id?: string;
|
|
422
|
+
/**
|
|
423
|
+
* channel unique identifier.
|
|
424
|
+
*/
|
|
425
|
+
channel_id?: string;
|
|
426
|
+
/**
|
|
427
|
+
* packet sequence.
|
|
428
|
+
*/
|
|
429
|
+
sequence?: string;
|
|
430
|
+
/**
|
|
431
|
+
* embedded data that represents packet state.
|
|
432
|
+
*/
|
|
433
|
+
data?: string;
|
|
434
|
+
}
|
|
435
|
+
export interface PacketStateAminoMsg {
|
|
436
|
+
type: "cosmos-sdk/PacketState";
|
|
437
|
+
value: PacketStateAmino;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* PacketState defines the generic type necessary to retrieve and store
|
|
441
|
+
* packet commitments, acknowledgements, and receipts.
|
|
442
|
+
* Caller is responsible for knowing the context necessary to interpret this
|
|
443
|
+
* state as a commitment, acknowledgement, or a receipt.
|
|
444
|
+
*/
|
|
445
|
+
export interface PacketStateSDKType {
|
|
446
|
+
port_id: string;
|
|
447
|
+
channel_id: string;
|
|
448
|
+
sequence: bigint;
|
|
449
|
+
data: Uint8Array;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* PacketId is an identifier for a unique Packet
|
|
453
|
+
* Source chains refer to packets by source port/channel
|
|
454
|
+
* Destination chains refer to packets by destination port/channel
|
|
455
|
+
*/
|
|
456
|
+
export interface PacketId {
|
|
457
|
+
/** channel port identifier */
|
|
458
|
+
portId: string;
|
|
459
|
+
/** channel unique identifier */
|
|
460
|
+
channelId: string;
|
|
461
|
+
/** packet sequence */
|
|
462
|
+
sequence: bigint;
|
|
463
|
+
}
|
|
464
|
+
export interface PacketIdProtoMsg {
|
|
465
|
+
typeUrl: "/ibc.core.channel.v1.PacketId";
|
|
466
|
+
value: Uint8Array;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* PacketId is an identifier for a unique Packet
|
|
470
|
+
* Source chains refer to packets by source port/channel
|
|
471
|
+
* Destination chains refer to packets by destination port/channel
|
|
472
|
+
* @name PacketIdAmino
|
|
473
|
+
* @package ibc.core.channel.v1
|
|
474
|
+
* @see proto type: ibc.core.channel.v1.PacketId
|
|
475
|
+
*/
|
|
476
|
+
export interface PacketIdAmino {
|
|
477
|
+
/**
|
|
478
|
+
* channel port identifier
|
|
479
|
+
*/
|
|
480
|
+
port_id?: string;
|
|
481
|
+
/**
|
|
482
|
+
* channel unique identifier
|
|
483
|
+
*/
|
|
484
|
+
channel_id?: string;
|
|
485
|
+
/**
|
|
486
|
+
* packet sequence
|
|
487
|
+
*/
|
|
488
|
+
sequence?: string;
|
|
489
|
+
}
|
|
490
|
+
export interface PacketIdAminoMsg {
|
|
491
|
+
type: "cosmos-sdk/PacketId";
|
|
492
|
+
value: PacketIdAmino;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* PacketId is an identifier for a unique Packet
|
|
496
|
+
* Source chains refer to packets by source port/channel
|
|
497
|
+
* Destination chains refer to packets by destination port/channel
|
|
498
|
+
*/
|
|
499
|
+
export interface PacketIdSDKType {
|
|
500
|
+
port_id: string;
|
|
501
|
+
channel_id: string;
|
|
502
|
+
sequence: bigint;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Acknowledgement is the recommended acknowledgement format to be used by
|
|
506
|
+
* app-specific protocols.
|
|
507
|
+
* NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental
|
|
508
|
+
* conflicts with other protobuf message formats used for acknowledgements.
|
|
509
|
+
* The first byte of any message with this format will be the non-ASCII values
|
|
510
|
+
* `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS:
|
|
511
|
+
* https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope
|
|
512
|
+
*/
|
|
513
|
+
export interface Acknowledgement {
|
|
514
|
+
result?: Uint8Array;
|
|
515
|
+
error?: string;
|
|
516
|
+
}
|
|
517
|
+
export interface AcknowledgementProtoMsg {
|
|
518
|
+
typeUrl: "/ibc.core.channel.v1.Acknowledgement";
|
|
519
|
+
value: Uint8Array;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Acknowledgement is the recommended acknowledgement format to be used by
|
|
523
|
+
* app-specific protocols.
|
|
524
|
+
* NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental
|
|
525
|
+
* conflicts with other protobuf message formats used for acknowledgements.
|
|
526
|
+
* The first byte of any message with this format will be the non-ASCII values
|
|
527
|
+
* `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS:
|
|
528
|
+
* https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope
|
|
529
|
+
* @name AcknowledgementAmino
|
|
530
|
+
* @package ibc.core.channel.v1
|
|
531
|
+
* @see proto type: ibc.core.channel.v1.Acknowledgement
|
|
532
|
+
*/
|
|
533
|
+
export interface AcknowledgementAmino {
|
|
534
|
+
result?: string;
|
|
535
|
+
error?: string;
|
|
536
|
+
}
|
|
537
|
+
export interface AcknowledgementAminoMsg {
|
|
538
|
+
type: "cosmos-sdk/Acknowledgement";
|
|
539
|
+
value: AcknowledgementAmino;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Acknowledgement is the recommended acknowledgement format to be used by
|
|
543
|
+
* app-specific protocols.
|
|
544
|
+
* NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental
|
|
545
|
+
* conflicts with other protobuf message formats used for acknowledgements.
|
|
546
|
+
* The first byte of any message with this format will be the non-ASCII values
|
|
547
|
+
* `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS:
|
|
548
|
+
* https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope
|
|
549
|
+
*/
|
|
550
|
+
export interface AcknowledgementSDKType {
|
|
551
|
+
result?: Uint8Array;
|
|
552
|
+
error?: string;
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Timeout defines an execution deadline structure for 04-channel handlers.
|
|
556
|
+
* This includes packet lifecycle handlers.
|
|
557
|
+
* A valid Timeout contains either one or both of a timestamp and block height (sequence).
|
|
558
|
+
*/
|
|
559
|
+
export interface Timeout {
|
|
560
|
+
/** block height after which the packet times out */
|
|
561
|
+
height: Height;
|
|
562
|
+
/** block timestamp (in nanoseconds) after which the packet times out */
|
|
563
|
+
timestamp: bigint;
|
|
564
|
+
}
|
|
565
|
+
export interface TimeoutProtoMsg {
|
|
566
|
+
typeUrl: "/ibc.core.channel.v1.Timeout";
|
|
567
|
+
value: Uint8Array;
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Timeout defines an execution deadline structure for 04-channel handlers.
|
|
571
|
+
* This includes packet lifecycle handlers.
|
|
572
|
+
* A valid Timeout contains either one or both of a timestamp and block height (sequence).
|
|
573
|
+
* @name TimeoutAmino
|
|
574
|
+
* @package ibc.core.channel.v1
|
|
575
|
+
* @see proto type: ibc.core.channel.v1.Timeout
|
|
576
|
+
*/
|
|
577
|
+
export interface TimeoutAmino {
|
|
578
|
+
/**
|
|
579
|
+
* block height after which the packet times out
|
|
580
|
+
*/
|
|
581
|
+
height?: HeightAmino;
|
|
582
|
+
/**
|
|
583
|
+
* block timestamp (in nanoseconds) after which the packet times out
|
|
584
|
+
*/
|
|
585
|
+
timestamp?: string;
|
|
586
|
+
}
|
|
587
|
+
export interface TimeoutAminoMsg {
|
|
588
|
+
type: "cosmos-sdk/Timeout";
|
|
589
|
+
value: TimeoutAmino;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Timeout defines an execution deadline structure for 04-channel handlers.
|
|
593
|
+
* This includes packet lifecycle handlers.
|
|
594
|
+
* A valid Timeout contains either one or both of a timestamp and block height (sequence).
|
|
595
|
+
*/
|
|
596
|
+
export interface TimeoutSDKType {
|
|
597
|
+
height: HeightSDKType;
|
|
598
|
+
timestamp: bigint;
|
|
599
|
+
}
|
|
600
|
+
function createBaseChannel(): Channel {
|
|
601
|
+
return {
|
|
602
|
+
state: 0,
|
|
603
|
+
ordering: 0,
|
|
604
|
+
counterparty: Counterparty.fromPartial({}),
|
|
605
|
+
connectionHops: [],
|
|
606
|
+
version: ""
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
export const Channel = {
|
|
610
|
+
typeUrl: "/ibc.core.channel.v1.Channel",
|
|
611
|
+
encode(message: Channel, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
612
|
+
if (message.state !== 0) {
|
|
613
|
+
writer.uint32(8).int32(message.state);
|
|
614
|
+
}
|
|
615
|
+
if (message.ordering !== 0) {
|
|
616
|
+
writer.uint32(16).int32(message.ordering);
|
|
617
|
+
}
|
|
618
|
+
if (message.counterparty !== undefined) {
|
|
619
|
+
Counterparty.encode(message.counterparty, writer.uint32(26).fork()).ldelim();
|
|
620
|
+
}
|
|
621
|
+
for (const v of message.connectionHops) {
|
|
622
|
+
writer.uint32(34).string(v!);
|
|
623
|
+
}
|
|
624
|
+
if (message.version !== "") {
|
|
625
|
+
writer.uint32(42).string(message.version);
|
|
626
|
+
}
|
|
627
|
+
return writer;
|
|
628
|
+
},
|
|
629
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Channel {
|
|
630
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
631
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
632
|
+
const message = createBaseChannel();
|
|
633
|
+
while (reader.pos < end) {
|
|
634
|
+
const tag = reader.uint32();
|
|
635
|
+
switch (tag >>> 3) {
|
|
636
|
+
case 1:
|
|
637
|
+
message.state = reader.int32() as any;
|
|
638
|
+
break;
|
|
639
|
+
case 2:
|
|
640
|
+
message.ordering = reader.int32() as any;
|
|
641
|
+
break;
|
|
642
|
+
case 3:
|
|
643
|
+
message.counterparty = Counterparty.decode(reader, reader.uint32());
|
|
644
|
+
break;
|
|
645
|
+
case 4:
|
|
646
|
+
message.connectionHops.push(reader.string());
|
|
647
|
+
break;
|
|
648
|
+
case 5:
|
|
649
|
+
message.version = reader.string();
|
|
650
|
+
break;
|
|
651
|
+
default:
|
|
652
|
+
reader.skipType(tag & 7);
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
return message;
|
|
657
|
+
},
|
|
658
|
+
fromPartial(object: Partial<Channel>): Channel {
|
|
659
|
+
const message = createBaseChannel();
|
|
660
|
+
message.state = object.state ?? 0;
|
|
661
|
+
message.ordering = object.ordering ?? 0;
|
|
662
|
+
message.counterparty = object.counterparty !== undefined && object.counterparty !== null ? Counterparty.fromPartial(object.counterparty) : undefined;
|
|
663
|
+
message.connectionHops = object.connectionHops?.map(e => e) || [];
|
|
664
|
+
message.version = object.version ?? "";
|
|
665
|
+
return message;
|
|
666
|
+
},
|
|
667
|
+
fromAmino(object: ChannelAmino): Channel {
|
|
668
|
+
const message = createBaseChannel();
|
|
669
|
+
if (object.state !== undefined && object.state !== null) {
|
|
670
|
+
message.state = object.state;
|
|
671
|
+
}
|
|
672
|
+
if (object.ordering !== undefined && object.ordering !== null) {
|
|
673
|
+
message.ordering = object.ordering;
|
|
674
|
+
}
|
|
675
|
+
if (object.counterparty !== undefined && object.counterparty !== null) {
|
|
676
|
+
message.counterparty = Counterparty.fromAmino(object.counterparty);
|
|
677
|
+
}
|
|
678
|
+
message.connectionHops = object.connection_hops?.map(e => e) || [];
|
|
679
|
+
if (object.version !== undefined && object.version !== null) {
|
|
680
|
+
message.version = object.version;
|
|
681
|
+
}
|
|
682
|
+
return message;
|
|
683
|
+
},
|
|
684
|
+
toAmino(message: Channel): ChannelAmino {
|
|
685
|
+
const obj: any = {};
|
|
686
|
+
obj.state = message.state === 0 ? undefined : message.state;
|
|
687
|
+
obj.ordering = message.ordering === 0 ? undefined : message.ordering;
|
|
688
|
+
obj.counterparty = message.counterparty ? Counterparty.toAmino(message.counterparty) : undefined;
|
|
689
|
+
if (message.connectionHops) {
|
|
690
|
+
obj.connection_hops = message.connectionHops.map(e => e);
|
|
691
|
+
} else {
|
|
692
|
+
obj.connection_hops = message.connectionHops;
|
|
693
|
+
}
|
|
694
|
+
obj.version = message.version === "" ? undefined : message.version;
|
|
695
|
+
return obj;
|
|
696
|
+
},
|
|
697
|
+
fromAminoMsg(object: ChannelAminoMsg): Channel {
|
|
698
|
+
return Channel.fromAmino(object.value);
|
|
699
|
+
},
|
|
700
|
+
toAminoMsg(message: Channel): ChannelAminoMsg {
|
|
701
|
+
return {
|
|
702
|
+
type: "cosmos-sdk/Channel",
|
|
703
|
+
value: Channel.toAmino(message)
|
|
704
|
+
};
|
|
705
|
+
},
|
|
706
|
+
fromProtoMsg(message: ChannelProtoMsg): Channel {
|
|
707
|
+
return Channel.decode(message.value);
|
|
708
|
+
},
|
|
709
|
+
toProto(message: Channel): Uint8Array {
|
|
710
|
+
return Channel.encode(message).finish();
|
|
711
|
+
},
|
|
712
|
+
toProtoMsg(message: Channel): ChannelProtoMsg {
|
|
713
|
+
return {
|
|
714
|
+
typeUrl: "/ibc.core.channel.v1.Channel",
|
|
715
|
+
value: Channel.encode(message).finish()
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
function createBaseIdentifiedChannel(): IdentifiedChannel {
|
|
720
|
+
return {
|
|
721
|
+
state: 0,
|
|
722
|
+
ordering: 0,
|
|
723
|
+
counterparty: Counterparty.fromPartial({}),
|
|
724
|
+
connectionHops: [],
|
|
725
|
+
version: "",
|
|
726
|
+
portId: "",
|
|
727
|
+
channelId: ""
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
export const IdentifiedChannel = {
|
|
731
|
+
typeUrl: "/ibc.core.channel.v1.IdentifiedChannel",
|
|
732
|
+
encode(message: IdentifiedChannel, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
733
|
+
if (message.state !== 0) {
|
|
734
|
+
writer.uint32(8).int32(message.state);
|
|
735
|
+
}
|
|
736
|
+
if (message.ordering !== 0) {
|
|
737
|
+
writer.uint32(16).int32(message.ordering);
|
|
738
|
+
}
|
|
739
|
+
if (message.counterparty !== undefined) {
|
|
740
|
+
Counterparty.encode(message.counterparty, writer.uint32(26).fork()).ldelim();
|
|
741
|
+
}
|
|
742
|
+
for (const v of message.connectionHops) {
|
|
743
|
+
writer.uint32(34).string(v!);
|
|
744
|
+
}
|
|
745
|
+
if (message.version !== "") {
|
|
746
|
+
writer.uint32(42).string(message.version);
|
|
747
|
+
}
|
|
748
|
+
if (message.portId !== "") {
|
|
749
|
+
writer.uint32(50).string(message.portId);
|
|
750
|
+
}
|
|
751
|
+
if (message.channelId !== "") {
|
|
752
|
+
writer.uint32(58).string(message.channelId);
|
|
753
|
+
}
|
|
754
|
+
return writer;
|
|
755
|
+
},
|
|
756
|
+
decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedChannel {
|
|
757
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
758
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
759
|
+
const message = createBaseIdentifiedChannel();
|
|
760
|
+
while (reader.pos < end) {
|
|
761
|
+
const tag = reader.uint32();
|
|
762
|
+
switch (tag >>> 3) {
|
|
763
|
+
case 1:
|
|
764
|
+
message.state = reader.int32() as any;
|
|
765
|
+
break;
|
|
766
|
+
case 2:
|
|
767
|
+
message.ordering = reader.int32() as any;
|
|
768
|
+
break;
|
|
769
|
+
case 3:
|
|
770
|
+
message.counterparty = Counterparty.decode(reader, reader.uint32());
|
|
771
|
+
break;
|
|
772
|
+
case 4:
|
|
773
|
+
message.connectionHops.push(reader.string());
|
|
774
|
+
break;
|
|
775
|
+
case 5:
|
|
776
|
+
message.version = reader.string();
|
|
777
|
+
break;
|
|
778
|
+
case 6:
|
|
779
|
+
message.portId = reader.string();
|
|
780
|
+
break;
|
|
781
|
+
case 7:
|
|
782
|
+
message.channelId = reader.string();
|
|
783
|
+
break;
|
|
784
|
+
default:
|
|
785
|
+
reader.skipType(tag & 7);
|
|
786
|
+
break;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
return message;
|
|
790
|
+
},
|
|
791
|
+
fromPartial(object: Partial<IdentifiedChannel>): IdentifiedChannel {
|
|
792
|
+
const message = createBaseIdentifiedChannel();
|
|
793
|
+
message.state = object.state ?? 0;
|
|
794
|
+
message.ordering = object.ordering ?? 0;
|
|
795
|
+
message.counterparty = object.counterparty !== undefined && object.counterparty !== null ? Counterparty.fromPartial(object.counterparty) : undefined;
|
|
796
|
+
message.connectionHops = object.connectionHops?.map(e => e) || [];
|
|
797
|
+
message.version = object.version ?? "";
|
|
798
|
+
message.portId = object.portId ?? "";
|
|
799
|
+
message.channelId = object.channelId ?? "";
|
|
800
|
+
return message;
|
|
801
|
+
},
|
|
802
|
+
fromAmino(object: IdentifiedChannelAmino): IdentifiedChannel {
|
|
803
|
+
const message = createBaseIdentifiedChannel();
|
|
804
|
+
if (object.state !== undefined && object.state !== null) {
|
|
805
|
+
message.state = object.state;
|
|
806
|
+
}
|
|
807
|
+
if (object.ordering !== undefined && object.ordering !== null) {
|
|
808
|
+
message.ordering = object.ordering;
|
|
809
|
+
}
|
|
810
|
+
if (object.counterparty !== undefined && object.counterparty !== null) {
|
|
811
|
+
message.counterparty = Counterparty.fromAmino(object.counterparty);
|
|
812
|
+
}
|
|
813
|
+
message.connectionHops = object.connection_hops?.map(e => e) || [];
|
|
814
|
+
if (object.version !== undefined && object.version !== null) {
|
|
815
|
+
message.version = object.version;
|
|
816
|
+
}
|
|
817
|
+
if (object.port_id !== undefined && object.port_id !== null) {
|
|
818
|
+
message.portId = object.port_id;
|
|
819
|
+
}
|
|
820
|
+
if (object.channel_id !== undefined && object.channel_id !== null) {
|
|
821
|
+
message.channelId = object.channel_id;
|
|
822
|
+
}
|
|
823
|
+
return message;
|
|
824
|
+
},
|
|
825
|
+
toAmino(message: IdentifiedChannel): IdentifiedChannelAmino {
|
|
826
|
+
const obj: any = {};
|
|
827
|
+
obj.state = message.state === 0 ? undefined : message.state;
|
|
828
|
+
obj.ordering = message.ordering === 0 ? undefined : message.ordering;
|
|
829
|
+
obj.counterparty = message.counterparty ? Counterparty.toAmino(message.counterparty) : undefined;
|
|
830
|
+
if (message.connectionHops) {
|
|
831
|
+
obj.connection_hops = message.connectionHops.map(e => e);
|
|
832
|
+
} else {
|
|
833
|
+
obj.connection_hops = message.connectionHops;
|
|
834
|
+
}
|
|
835
|
+
obj.version = message.version === "" ? undefined : message.version;
|
|
836
|
+
obj.port_id = message.portId === "" ? undefined : message.portId;
|
|
837
|
+
obj.channel_id = message.channelId === "" ? undefined : message.channelId;
|
|
838
|
+
return obj;
|
|
839
|
+
},
|
|
840
|
+
fromAminoMsg(object: IdentifiedChannelAminoMsg): IdentifiedChannel {
|
|
841
|
+
return IdentifiedChannel.fromAmino(object.value);
|
|
842
|
+
},
|
|
843
|
+
toAminoMsg(message: IdentifiedChannel): IdentifiedChannelAminoMsg {
|
|
844
|
+
return {
|
|
845
|
+
type: "cosmos-sdk/IdentifiedChannel",
|
|
846
|
+
value: IdentifiedChannel.toAmino(message)
|
|
847
|
+
};
|
|
848
|
+
},
|
|
849
|
+
fromProtoMsg(message: IdentifiedChannelProtoMsg): IdentifiedChannel {
|
|
850
|
+
return IdentifiedChannel.decode(message.value);
|
|
851
|
+
},
|
|
852
|
+
toProto(message: IdentifiedChannel): Uint8Array {
|
|
853
|
+
return IdentifiedChannel.encode(message).finish();
|
|
854
|
+
},
|
|
855
|
+
toProtoMsg(message: IdentifiedChannel): IdentifiedChannelProtoMsg {
|
|
856
|
+
return {
|
|
857
|
+
typeUrl: "/ibc.core.channel.v1.IdentifiedChannel",
|
|
858
|
+
value: IdentifiedChannel.encode(message).finish()
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
};
|
|
862
|
+
function createBaseCounterparty(): Counterparty {
|
|
863
|
+
return {
|
|
864
|
+
portId: "",
|
|
865
|
+
channelId: ""
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
export const Counterparty = {
|
|
869
|
+
typeUrl: "/ibc.core.channel.v1.Counterparty",
|
|
870
|
+
encode(message: Counterparty, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
871
|
+
if (message.portId !== "") {
|
|
872
|
+
writer.uint32(10).string(message.portId);
|
|
873
|
+
}
|
|
874
|
+
if (message.channelId !== "") {
|
|
875
|
+
writer.uint32(18).string(message.channelId);
|
|
876
|
+
}
|
|
877
|
+
return writer;
|
|
878
|
+
},
|
|
879
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Counterparty {
|
|
880
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
881
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
882
|
+
const message = createBaseCounterparty();
|
|
883
|
+
while (reader.pos < end) {
|
|
884
|
+
const tag = reader.uint32();
|
|
885
|
+
switch (tag >>> 3) {
|
|
886
|
+
case 1:
|
|
887
|
+
message.portId = reader.string();
|
|
888
|
+
break;
|
|
889
|
+
case 2:
|
|
890
|
+
message.channelId = reader.string();
|
|
891
|
+
break;
|
|
892
|
+
default:
|
|
893
|
+
reader.skipType(tag & 7);
|
|
894
|
+
break;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
return message;
|
|
898
|
+
},
|
|
899
|
+
fromPartial(object: Partial<Counterparty>): Counterparty {
|
|
900
|
+
const message = createBaseCounterparty();
|
|
901
|
+
message.portId = object.portId ?? "";
|
|
902
|
+
message.channelId = object.channelId ?? "";
|
|
903
|
+
return message;
|
|
904
|
+
},
|
|
905
|
+
fromAmino(object: CounterpartyAmino): Counterparty {
|
|
906
|
+
const message = createBaseCounterparty();
|
|
907
|
+
if (object.port_id !== undefined && object.port_id !== null) {
|
|
908
|
+
message.portId = object.port_id;
|
|
909
|
+
}
|
|
910
|
+
if (object.channel_id !== undefined && object.channel_id !== null) {
|
|
911
|
+
message.channelId = object.channel_id;
|
|
912
|
+
}
|
|
913
|
+
return message;
|
|
914
|
+
},
|
|
915
|
+
toAmino(message: Counterparty): CounterpartyAmino {
|
|
916
|
+
const obj: any = {};
|
|
917
|
+
obj.port_id = message.portId === "" ? undefined : message.portId;
|
|
918
|
+
obj.channel_id = message.channelId === "" ? undefined : message.channelId;
|
|
919
|
+
return obj;
|
|
920
|
+
},
|
|
921
|
+
fromAminoMsg(object: CounterpartyAminoMsg): Counterparty {
|
|
922
|
+
return Counterparty.fromAmino(object.value);
|
|
923
|
+
},
|
|
924
|
+
toAminoMsg(message: Counterparty): CounterpartyAminoMsg {
|
|
925
|
+
return {
|
|
926
|
+
type: "cosmos-sdk/Counterparty",
|
|
927
|
+
value: Counterparty.toAmino(message)
|
|
928
|
+
};
|
|
929
|
+
},
|
|
930
|
+
fromProtoMsg(message: CounterpartyProtoMsg): Counterparty {
|
|
931
|
+
return Counterparty.decode(message.value);
|
|
932
|
+
},
|
|
933
|
+
toProto(message: Counterparty): Uint8Array {
|
|
934
|
+
return Counterparty.encode(message).finish();
|
|
935
|
+
},
|
|
936
|
+
toProtoMsg(message: Counterparty): CounterpartyProtoMsg {
|
|
937
|
+
return {
|
|
938
|
+
typeUrl: "/ibc.core.channel.v1.Counterparty",
|
|
939
|
+
value: Counterparty.encode(message).finish()
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
};
|
|
943
|
+
function createBasePacket(): Packet {
|
|
944
|
+
return {
|
|
945
|
+
sequence: BigInt(0),
|
|
946
|
+
sourcePort: "",
|
|
947
|
+
sourceChannel: "",
|
|
948
|
+
destinationPort: "",
|
|
949
|
+
destinationChannel: "",
|
|
950
|
+
data: new Uint8Array(),
|
|
951
|
+
timeoutHeight: Height.fromPartial({}),
|
|
952
|
+
timeoutTimestamp: BigInt(0)
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
export const Packet = {
|
|
956
|
+
typeUrl: "/ibc.core.channel.v1.Packet",
|
|
957
|
+
encode(message: Packet, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
958
|
+
if (message.sequence !== BigInt(0)) {
|
|
959
|
+
writer.uint32(8).uint64(message.sequence);
|
|
960
|
+
}
|
|
961
|
+
if (message.sourcePort !== "") {
|
|
962
|
+
writer.uint32(18).string(message.sourcePort);
|
|
963
|
+
}
|
|
964
|
+
if (message.sourceChannel !== "") {
|
|
965
|
+
writer.uint32(26).string(message.sourceChannel);
|
|
966
|
+
}
|
|
967
|
+
if (message.destinationPort !== "") {
|
|
968
|
+
writer.uint32(34).string(message.destinationPort);
|
|
969
|
+
}
|
|
970
|
+
if (message.destinationChannel !== "") {
|
|
971
|
+
writer.uint32(42).string(message.destinationChannel);
|
|
972
|
+
}
|
|
973
|
+
if (message.data.length !== 0) {
|
|
974
|
+
writer.uint32(50).bytes(message.data);
|
|
975
|
+
}
|
|
976
|
+
if (message.timeoutHeight !== undefined) {
|
|
977
|
+
Height.encode(message.timeoutHeight, writer.uint32(58).fork()).ldelim();
|
|
978
|
+
}
|
|
979
|
+
if (message.timeoutTimestamp !== BigInt(0)) {
|
|
980
|
+
writer.uint32(64).uint64(message.timeoutTimestamp);
|
|
981
|
+
}
|
|
982
|
+
return writer;
|
|
983
|
+
},
|
|
984
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Packet {
|
|
985
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
986
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
987
|
+
const message = createBasePacket();
|
|
988
|
+
while (reader.pos < end) {
|
|
989
|
+
const tag = reader.uint32();
|
|
990
|
+
switch (tag >>> 3) {
|
|
991
|
+
case 1:
|
|
992
|
+
message.sequence = reader.uint64();
|
|
993
|
+
break;
|
|
994
|
+
case 2:
|
|
995
|
+
message.sourcePort = reader.string();
|
|
996
|
+
break;
|
|
997
|
+
case 3:
|
|
998
|
+
message.sourceChannel = reader.string();
|
|
999
|
+
break;
|
|
1000
|
+
case 4:
|
|
1001
|
+
message.destinationPort = reader.string();
|
|
1002
|
+
break;
|
|
1003
|
+
case 5:
|
|
1004
|
+
message.destinationChannel = reader.string();
|
|
1005
|
+
break;
|
|
1006
|
+
case 6:
|
|
1007
|
+
message.data = reader.bytes();
|
|
1008
|
+
break;
|
|
1009
|
+
case 7:
|
|
1010
|
+
message.timeoutHeight = Height.decode(reader, reader.uint32());
|
|
1011
|
+
break;
|
|
1012
|
+
case 8:
|
|
1013
|
+
message.timeoutTimestamp = reader.uint64();
|
|
1014
|
+
break;
|
|
1015
|
+
default:
|
|
1016
|
+
reader.skipType(tag & 7);
|
|
1017
|
+
break;
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
return message;
|
|
1021
|
+
},
|
|
1022
|
+
fromPartial(object: Partial<Packet>): Packet {
|
|
1023
|
+
const message = createBasePacket();
|
|
1024
|
+
message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0);
|
|
1025
|
+
message.sourcePort = object.sourcePort ?? "";
|
|
1026
|
+
message.sourceChannel = object.sourceChannel ?? "";
|
|
1027
|
+
message.destinationPort = object.destinationPort ?? "";
|
|
1028
|
+
message.destinationChannel = object.destinationChannel ?? "";
|
|
1029
|
+
message.data = object.data ?? new Uint8Array();
|
|
1030
|
+
message.timeoutHeight = object.timeoutHeight !== undefined && object.timeoutHeight !== null ? Height.fromPartial(object.timeoutHeight) : undefined;
|
|
1031
|
+
message.timeoutTimestamp = object.timeoutTimestamp !== undefined && object.timeoutTimestamp !== null ? BigInt(object.timeoutTimestamp.toString()) : BigInt(0);
|
|
1032
|
+
return message;
|
|
1033
|
+
},
|
|
1034
|
+
fromAmino(object: PacketAmino): Packet {
|
|
1035
|
+
const message = createBasePacket();
|
|
1036
|
+
if (object.sequence !== undefined && object.sequence !== null) {
|
|
1037
|
+
message.sequence = BigInt(object.sequence);
|
|
1038
|
+
}
|
|
1039
|
+
if (object.source_port !== undefined && object.source_port !== null) {
|
|
1040
|
+
message.sourcePort = object.source_port;
|
|
1041
|
+
}
|
|
1042
|
+
if (object.source_channel !== undefined && object.source_channel !== null) {
|
|
1043
|
+
message.sourceChannel = object.source_channel;
|
|
1044
|
+
}
|
|
1045
|
+
if (object.destination_port !== undefined && object.destination_port !== null) {
|
|
1046
|
+
message.destinationPort = object.destination_port;
|
|
1047
|
+
}
|
|
1048
|
+
if (object.destination_channel !== undefined && object.destination_channel !== null) {
|
|
1049
|
+
message.destinationChannel = object.destination_channel;
|
|
1050
|
+
}
|
|
1051
|
+
if (object.data !== undefined && object.data !== null) {
|
|
1052
|
+
message.data = bytesFromBase64(object.data);
|
|
1053
|
+
}
|
|
1054
|
+
if (object.timeout_height !== undefined && object.timeout_height !== null) {
|
|
1055
|
+
message.timeoutHeight = Height.fromAmino(object.timeout_height);
|
|
1056
|
+
}
|
|
1057
|
+
if (object.timeout_timestamp !== undefined && object.timeout_timestamp !== null) {
|
|
1058
|
+
message.timeoutTimestamp = BigInt(object.timeout_timestamp);
|
|
1059
|
+
}
|
|
1060
|
+
return message;
|
|
1061
|
+
},
|
|
1062
|
+
toAmino(message: Packet): PacketAmino {
|
|
1063
|
+
const obj: any = {};
|
|
1064
|
+
obj.sequence = message.sequence !== BigInt(0) ? message.sequence?.toString() : undefined;
|
|
1065
|
+
obj.source_port = message.sourcePort === "" ? undefined : message.sourcePort;
|
|
1066
|
+
obj.source_channel = message.sourceChannel === "" ? undefined : message.sourceChannel;
|
|
1067
|
+
obj.destination_port = message.destinationPort === "" ? undefined : message.destinationPort;
|
|
1068
|
+
obj.destination_channel = message.destinationChannel === "" ? undefined : message.destinationChannel;
|
|
1069
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
1070
|
+
obj.timeout_height = message.timeoutHeight ? Height.toAmino(message.timeoutHeight) : {};
|
|
1071
|
+
obj.timeout_timestamp = message.timeoutTimestamp !== BigInt(0) ? message.timeoutTimestamp?.toString() : undefined;
|
|
1072
|
+
return obj;
|
|
1073
|
+
},
|
|
1074
|
+
fromAminoMsg(object: PacketAminoMsg): Packet {
|
|
1075
|
+
return Packet.fromAmino(object.value);
|
|
1076
|
+
},
|
|
1077
|
+
toAminoMsg(message: Packet): PacketAminoMsg {
|
|
1078
|
+
return {
|
|
1079
|
+
type: "cosmos-sdk/Packet",
|
|
1080
|
+
value: Packet.toAmino(message)
|
|
1081
|
+
};
|
|
1082
|
+
},
|
|
1083
|
+
fromProtoMsg(message: PacketProtoMsg): Packet {
|
|
1084
|
+
return Packet.decode(message.value);
|
|
1085
|
+
},
|
|
1086
|
+
toProto(message: Packet): Uint8Array {
|
|
1087
|
+
return Packet.encode(message).finish();
|
|
1088
|
+
},
|
|
1089
|
+
toProtoMsg(message: Packet): PacketProtoMsg {
|
|
1090
|
+
return {
|
|
1091
|
+
typeUrl: "/ibc.core.channel.v1.Packet",
|
|
1092
|
+
value: Packet.encode(message).finish()
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
};
|
|
1096
|
+
function createBasePacketState(): PacketState {
|
|
1097
|
+
return {
|
|
1098
|
+
portId: "",
|
|
1099
|
+
channelId: "",
|
|
1100
|
+
sequence: BigInt(0),
|
|
1101
|
+
data: new Uint8Array()
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
export const PacketState = {
|
|
1105
|
+
typeUrl: "/ibc.core.channel.v1.PacketState",
|
|
1106
|
+
encode(message: PacketState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1107
|
+
if (message.portId !== "") {
|
|
1108
|
+
writer.uint32(10).string(message.portId);
|
|
1109
|
+
}
|
|
1110
|
+
if (message.channelId !== "") {
|
|
1111
|
+
writer.uint32(18).string(message.channelId);
|
|
1112
|
+
}
|
|
1113
|
+
if (message.sequence !== BigInt(0)) {
|
|
1114
|
+
writer.uint32(24).uint64(message.sequence);
|
|
1115
|
+
}
|
|
1116
|
+
if (message.data.length !== 0) {
|
|
1117
|
+
writer.uint32(34).bytes(message.data);
|
|
1118
|
+
}
|
|
1119
|
+
return writer;
|
|
1120
|
+
},
|
|
1121
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PacketState {
|
|
1122
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1123
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1124
|
+
const message = createBasePacketState();
|
|
1125
|
+
while (reader.pos < end) {
|
|
1126
|
+
const tag = reader.uint32();
|
|
1127
|
+
switch (tag >>> 3) {
|
|
1128
|
+
case 1:
|
|
1129
|
+
message.portId = reader.string();
|
|
1130
|
+
break;
|
|
1131
|
+
case 2:
|
|
1132
|
+
message.channelId = reader.string();
|
|
1133
|
+
break;
|
|
1134
|
+
case 3:
|
|
1135
|
+
message.sequence = reader.uint64();
|
|
1136
|
+
break;
|
|
1137
|
+
case 4:
|
|
1138
|
+
message.data = reader.bytes();
|
|
1139
|
+
break;
|
|
1140
|
+
default:
|
|
1141
|
+
reader.skipType(tag & 7);
|
|
1142
|
+
break;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
return message;
|
|
1146
|
+
},
|
|
1147
|
+
fromPartial(object: Partial<PacketState>): PacketState {
|
|
1148
|
+
const message = createBasePacketState();
|
|
1149
|
+
message.portId = object.portId ?? "";
|
|
1150
|
+
message.channelId = object.channelId ?? "";
|
|
1151
|
+
message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0);
|
|
1152
|
+
message.data = object.data ?? new Uint8Array();
|
|
1153
|
+
return message;
|
|
1154
|
+
},
|
|
1155
|
+
fromAmino(object: PacketStateAmino): PacketState {
|
|
1156
|
+
const message = createBasePacketState();
|
|
1157
|
+
if (object.port_id !== undefined && object.port_id !== null) {
|
|
1158
|
+
message.portId = object.port_id;
|
|
1159
|
+
}
|
|
1160
|
+
if (object.channel_id !== undefined && object.channel_id !== null) {
|
|
1161
|
+
message.channelId = object.channel_id;
|
|
1162
|
+
}
|
|
1163
|
+
if (object.sequence !== undefined && object.sequence !== null) {
|
|
1164
|
+
message.sequence = BigInt(object.sequence);
|
|
1165
|
+
}
|
|
1166
|
+
if (object.data !== undefined && object.data !== null) {
|
|
1167
|
+
message.data = bytesFromBase64(object.data);
|
|
1168
|
+
}
|
|
1169
|
+
return message;
|
|
1170
|
+
},
|
|
1171
|
+
toAmino(message: PacketState): PacketStateAmino {
|
|
1172
|
+
const obj: any = {};
|
|
1173
|
+
obj.port_id = message.portId === "" ? undefined : message.portId;
|
|
1174
|
+
obj.channel_id = message.channelId === "" ? undefined : message.channelId;
|
|
1175
|
+
obj.sequence = message.sequence !== BigInt(0) ? message.sequence?.toString() : undefined;
|
|
1176
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
1177
|
+
return obj;
|
|
1178
|
+
},
|
|
1179
|
+
fromAminoMsg(object: PacketStateAminoMsg): PacketState {
|
|
1180
|
+
return PacketState.fromAmino(object.value);
|
|
1181
|
+
},
|
|
1182
|
+
toAminoMsg(message: PacketState): PacketStateAminoMsg {
|
|
1183
|
+
return {
|
|
1184
|
+
type: "cosmos-sdk/PacketState",
|
|
1185
|
+
value: PacketState.toAmino(message)
|
|
1186
|
+
};
|
|
1187
|
+
},
|
|
1188
|
+
fromProtoMsg(message: PacketStateProtoMsg): PacketState {
|
|
1189
|
+
return PacketState.decode(message.value);
|
|
1190
|
+
},
|
|
1191
|
+
toProto(message: PacketState): Uint8Array {
|
|
1192
|
+
return PacketState.encode(message).finish();
|
|
1193
|
+
},
|
|
1194
|
+
toProtoMsg(message: PacketState): PacketStateProtoMsg {
|
|
1195
|
+
return {
|
|
1196
|
+
typeUrl: "/ibc.core.channel.v1.PacketState",
|
|
1197
|
+
value: PacketState.encode(message).finish()
|
|
1198
|
+
};
|
|
1199
|
+
}
|
|
1200
|
+
};
|
|
1201
|
+
function createBasePacketId(): PacketId {
|
|
1202
|
+
return {
|
|
1203
|
+
portId: "",
|
|
1204
|
+
channelId: "",
|
|
1205
|
+
sequence: BigInt(0)
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
export const PacketId = {
|
|
1209
|
+
typeUrl: "/ibc.core.channel.v1.PacketId",
|
|
1210
|
+
encode(message: PacketId, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1211
|
+
if (message.portId !== "") {
|
|
1212
|
+
writer.uint32(10).string(message.portId);
|
|
1213
|
+
}
|
|
1214
|
+
if (message.channelId !== "") {
|
|
1215
|
+
writer.uint32(18).string(message.channelId);
|
|
1216
|
+
}
|
|
1217
|
+
if (message.sequence !== BigInt(0)) {
|
|
1218
|
+
writer.uint32(24).uint64(message.sequence);
|
|
1219
|
+
}
|
|
1220
|
+
return writer;
|
|
1221
|
+
},
|
|
1222
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PacketId {
|
|
1223
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1224
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1225
|
+
const message = createBasePacketId();
|
|
1226
|
+
while (reader.pos < end) {
|
|
1227
|
+
const tag = reader.uint32();
|
|
1228
|
+
switch (tag >>> 3) {
|
|
1229
|
+
case 1:
|
|
1230
|
+
message.portId = reader.string();
|
|
1231
|
+
break;
|
|
1232
|
+
case 2:
|
|
1233
|
+
message.channelId = reader.string();
|
|
1234
|
+
break;
|
|
1235
|
+
case 3:
|
|
1236
|
+
message.sequence = reader.uint64();
|
|
1237
|
+
break;
|
|
1238
|
+
default:
|
|
1239
|
+
reader.skipType(tag & 7);
|
|
1240
|
+
break;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
return message;
|
|
1244
|
+
},
|
|
1245
|
+
fromPartial(object: Partial<PacketId>): PacketId {
|
|
1246
|
+
const message = createBasePacketId();
|
|
1247
|
+
message.portId = object.portId ?? "";
|
|
1248
|
+
message.channelId = object.channelId ?? "";
|
|
1249
|
+
message.sequence = object.sequence !== undefined && object.sequence !== null ? BigInt(object.sequence.toString()) : BigInt(0);
|
|
1250
|
+
return message;
|
|
1251
|
+
},
|
|
1252
|
+
fromAmino(object: PacketIdAmino): PacketId {
|
|
1253
|
+
const message = createBasePacketId();
|
|
1254
|
+
if (object.port_id !== undefined && object.port_id !== null) {
|
|
1255
|
+
message.portId = object.port_id;
|
|
1256
|
+
}
|
|
1257
|
+
if (object.channel_id !== undefined && object.channel_id !== null) {
|
|
1258
|
+
message.channelId = object.channel_id;
|
|
1259
|
+
}
|
|
1260
|
+
if (object.sequence !== undefined && object.sequence !== null) {
|
|
1261
|
+
message.sequence = BigInt(object.sequence);
|
|
1262
|
+
}
|
|
1263
|
+
return message;
|
|
1264
|
+
},
|
|
1265
|
+
toAmino(message: PacketId): PacketIdAmino {
|
|
1266
|
+
const obj: any = {};
|
|
1267
|
+
obj.port_id = message.portId === "" ? undefined : message.portId;
|
|
1268
|
+
obj.channel_id = message.channelId === "" ? undefined : message.channelId;
|
|
1269
|
+
obj.sequence = message.sequence !== BigInt(0) ? message.sequence?.toString() : undefined;
|
|
1270
|
+
return obj;
|
|
1271
|
+
},
|
|
1272
|
+
fromAminoMsg(object: PacketIdAminoMsg): PacketId {
|
|
1273
|
+
return PacketId.fromAmino(object.value);
|
|
1274
|
+
},
|
|
1275
|
+
toAminoMsg(message: PacketId): PacketIdAminoMsg {
|
|
1276
|
+
return {
|
|
1277
|
+
type: "cosmos-sdk/PacketId",
|
|
1278
|
+
value: PacketId.toAmino(message)
|
|
1279
|
+
};
|
|
1280
|
+
},
|
|
1281
|
+
fromProtoMsg(message: PacketIdProtoMsg): PacketId {
|
|
1282
|
+
return PacketId.decode(message.value);
|
|
1283
|
+
},
|
|
1284
|
+
toProto(message: PacketId): Uint8Array {
|
|
1285
|
+
return PacketId.encode(message).finish();
|
|
1286
|
+
},
|
|
1287
|
+
toProtoMsg(message: PacketId): PacketIdProtoMsg {
|
|
1288
|
+
return {
|
|
1289
|
+
typeUrl: "/ibc.core.channel.v1.PacketId",
|
|
1290
|
+
value: PacketId.encode(message).finish()
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
};
|
|
1294
|
+
function createBaseAcknowledgement(): Acknowledgement {
|
|
1295
|
+
return {
|
|
1296
|
+
result: undefined,
|
|
1297
|
+
error: undefined
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
export const Acknowledgement = {
|
|
1301
|
+
typeUrl: "/ibc.core.channel.v1.Acknowledgement",
|
|
1302
|
+
encode(message: Acknowledgement, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1303
|
+
if (message.result !== undefined) {
|
|
1304
|
+
writer.uint32(170).bytes(message.result);
|
|
1305
|
+
}
|
|
1306
|
+
if (message.error !== undefined) {
|
|
1307
|
+
writer.uint32(178).string(message.error);
|
|
1308
|
+
}
|
|
1309
|
+
return writer;
|
|
1310
|
+
},
|
|
1311
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Acknowledgement {
|
|
1312
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1313
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1314
|
+
const message = createBaseAcknowledgement();
|
|
1315
|
+
while (reader.pos < end) {
|
|
1316
|
+
const tag = reader.uint32();
|
|
1317
|
+
switch (tag >>> 3) {
|
|
1318
|
+
case 21:
|
|
1319
|
+
message.result = reader.bytes();
|
|
1320
|
+
break;
|
|
1321
|
+
case 22:
|
|
1322
|
+
message.error = reader.string();
|
|
1323
|
+
break;
|
|
1324
|
+
default:
|
|
1325
|
+
reader.skipType(tag & 7);
|
|
1326
|
+
break;
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
return message;
|
|
1330
|
+
},
|
|
1331
|
+
fromPartial(object: Partial<Acknowledgement>): Acknowledgement {
|
|
1332
|
+
const message = createBaseAcknowledgement();
|
|
1333
|
+
message.result = object.result ?? undefined;
|
|
1334
|
+
message.error = object.error ?? undefined;
|
|
1335
|
+
return message;
|
|
1336
|
+
},
|
|
1337
|
+
fromAmino(object: AcknowledgementAmino): Acknowledgement {
|
|
1338
|
+
const message = createBaseAcknowledgement();
|
|
1339
|
+
if (object.result !== undefined && object.result !== null) {
|
|
1340
|
+
message.result = bytesFromBase64(object.result);
|
|
1341
|
+
}
|
|
1342
|
+
if (object.error !== undefined && object.error !== null) {
|
|
1343
|
+
message.error = object.error;
|
|
1344
|
+
}
|
|
1345
|
+
return message;
|
|
1346
|
+
},
|
|
1347
|
+
toAmino(message: Acknowledgement): AcknowledgementAmino {
|
|
1348
|
+
const obj: any = {};
|
|
1349
|
+
obj.result = message.result ? base64FromBytes(message.result) : undefined;
|
|
1350
|
+
obj.error = message.error === null ? undefined : message.error;
|
|
1351
|
+
return obj;
|
|
1352
|
+
},
|
|
1353
|
+
fromAminoMsg(object: AcknowledgementAminoMsg): Acknowledgement {
|
|
1354
|
+
return Acknowledgement.fromAmino(object.value);
|
|
1355
|
+
},
|
|
1356
|
+
toAminoMsg(message: Acknowledgement): AcknowledgementAminoMsg {
|
|
1357
|
+
return {
|
|
1358
|
+
type: "cosmos-sdk/Acknowledgement",
|
|
1359
|
+
value: Acknowledgement.toAmino(message)
|
|
1360
|
+
};
|
|
1361
|
+
},
|
|
1362
|
+
fromProtoMsg(message: AcknowledgementProtoMsg): Acknowledgement {
|
|
1363
|
+
return Acknowledgement.decode(message.value);
|
|
1364
|
+
},
|
|
1365
|
+
toProto(message: Acknowledgement): Uint8Array {
|
|
1366
|
+
return Acknowledgement.encode(message).finish();
|
|
1367
|
+
},
|
|
1368
|
+
toProtoMsg(message: Acknowledgement): AcknowledgementProtoMsg {
|
|
1369
|
+
return {
|
|
1370
|
+
typeUrl: "/ibc.core.channel.v1.Acknowledgement",
|
|
1371
|
+
value: Acknowledgement.encode(message).finish()
|
|
1372
|
+
};
|
|
1373
|
+
}
|
|
1374
|
+
};
|
|
1375
|
+
function createBaseTimeout(): Timeout {
|
|
1376
|
+
return {
|
|
1377
|
+
height: Height.fromPartial({}),
|
|
1378
|
+
timestamp: BigInt(0)
|
|
1379
|
+
};
|
|
1380
|
+
}
|
|
1381
|
+
export const Timeout = {
|
|
1382
|
+
typeUrl: "/ibc.core.channel.v1.Timeout",
|
|
1383
|
+
encode(message: Timeout, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1384
|
+
if (message.height !== undefined) {
|
|
1385
|
+
Height.encode(message.height, writer.uint32(10).fork()).ldelim();
|
|
1386
|
+
}
|
|
1387
|
+
if (message.timestamp !== BigInt(0)) {
|
|
1388
|
+
writer.uint32(16).uint64(message.timestamp);
|
|
1389
|
+
}
|
|
1390
|
+
return writer;
|
|
1391
|
+
},
|
|
1392
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Timeout {
|
|
1393
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1394
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1395
|
+
const message = createBaseTimeout();
|
|
1396
|
+
while (reader.pos < end) {
|
|
1397
|
+
const tag = reader.uint32();
|
|
1398
|
+
switch (tag >>> 3) {
|
|
1399
|
+
case 1:
|
|
1400
|
+
message.height = Height.decode(reader, reader.uint32());
|
|
1401
|
+
break;
|
|
1402
|
+
case 2:
|
|
1403
|
+
message.timestamp = reader.uint64();
|
|
1404
|
+
break;
|
|
1405
|
+
default:
|
|
1406
|
+
reader.skipType(tag & 7);
|
|
1407
|
+
break;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
return message;
|
|
1411
|
+
},
|
|
1412
|
+
fromPartial(object: Partial<Timeout>): Timeout {
|
|
1413
|
+
const message = createBaseTimeout();
|
|
1414
|
+
message.height = object.height !== undefined && object.height !== null ? Height.fromPartial(object.height) : undefined;
|
|
1415
|
+
message.timestamp = object.timestamp !== undefined && object.timestamp !== null ? BigInt(object.timestamp.toString()) : BigInt(0);
|
|
1416
|
+
return message;
|
|
1417
|
+
},
|
|
1418
|
+
fromAmino(object: TimeoutAmino): Timeout {
|
|
1419
|
+
const message = createBaseTimeout();
|
|
1420
|
+
if (object.height !== undefined && object.height !== null) {
|
|
1421
|
+
message.height = Height.fromAmino(object.height);
|
|
1422
|
+
}
|
|
1423
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
1424
|
+
message.timestamp = BigInt(object.timestamp);
|
|
1425
|
+
}
|
|
1426
|
+
return message;
|
|
1427
|
+
},
|
|
1428
|
+
toAmino(message: Timeout): TimeoutAmino {
|
|
1429
|
+
const obj: any = {};
|
|
1430
|
+
obj.height = message.height ? Height.toAmino(message.height) : {};
|
|
1431
|
+
obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp?.toString() : undefined;
|
|
1432
|
+
return obj;
|
|
1433
|
+
},
|
|
1434
|
+
fromAminoMsg(object: TimeoutAminoMsg): Timeout {
|
|
1435
|
+
return Timeout.fromAmino(object.value);
|
|
1436
|
+
},
|
|
1437
|
+
toAminoMsg(message: Timeout): TimeoutAminoMsg {
|
|
1438
|
+
return {
|
|
1439
|
+
type: "cosmos-sdk/Timeout",
|
|
1440
|
+
value: Timeout.toAmino(message)
|
|
1441
|
+
};
|
|
1442
|
+
},
|
|
1443
|
+
fromProtoMsg(message: TimeoutProtoMsg): Timeout {
|
|
1444
|
+
return Timeout.decode(message.value);
|
|
1445
|
+
},
|
|
1446
|
+
toProto(message: Timeout): Uint8Array {
|
|
1447
|
+
return Timeout.encode(message).finish();
|
|
1448
|
+
},
|
|
1449
|
+
toProtoMsg(message: Timeout): TimeoutProtoMsg {
|
|
1450
|
+
return {
|
|
1451
|
+
typeUrl: "/ibc.core.channel.v1.Timeout",
|
|
1452
|
+
value: Timeout.encode(message).finish()
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
};
|