@xpla/xplajs 1.7.0-beta.0
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/CHANGELOG.md +11 -0
- package/README.md +32 -0
- package/package.json +32 -0
- package/src/amino/amino.d.ts +1 -0
- package/src/amino/amino.js +2 -0
- package/src/amino/amino.ts +1 -0
- package/src/binary.d.ts +130 -0
- package/src/binary.js +370 -0
- package/src/binary.ts +534 -0
- package/src/cosmos/app/runtime/v1alpha1/module.ts +423 -0
- package/src/cosmos/app/runtime/v2/module.ts +589 -0
- package/src/cosmos/app/v1alpha1/config.ts +422 -0
- package/src/cosmos/app/v1alpha1/module.ts +461 -0
- package/src/cosmos/app/v1alpha1/query.rpc.Query.ts +30 -0
- package/src/cosmos/app/v1alpha1/query.rpc.func.ts +9 -0
- package/src/cosmos/app/v1alpha1/query.ts +177 -0
- package/src/cosmos/auth/module/v1/module.ts +253 -0
- package/src/cosmos/auth/v1beta1/accounts.ts +226 -0
- package/src/cosmos/auth/v1beta1/auth.d.ts +177 -0
- package/src/cosmos/auth/v1beta1/auth.js +445 -0
- package/src/cosmos/auth/v1beta1/auth.ts +550 -0
- package/src/cosmos/auth/v1beta1/genesis.ts +119 -0
- package/src/cosmos/auth/v1beta1/query.d.ts +810 -0
- package/src/cosmos/auth/v1beta1/query.js +1561 -0
- package/src/cosmos/auth/v1beta1/query.lcd.ts +94 -0
- package/src/cosmos/auth/v1beta1/query.rpc.Query.ts +179 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.d.ts +12 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.js +85 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.ts +72 -0
- package/src/cosmos/auth/v1beta1/query.ts +2034 -0
- package/src/cosmos/auth/v1beta1/tx.amino.ts +8 -0
- package/src/cosmos/auth/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +9 -0
- package/src/cosmos/auth/v1beta1/tx.rpc.msg.ts +31 -0
- package/src/cosmos/auth/v1beta1/tx.ts +219 -0
- package/src/cosmos/authz/module/v1/module.ts +80 -0
- package/src/cosmos/authz/v1beta1/authz.d.ts +177 -0
- package/src/cosmos/authz/v1beta1/authz.js +371 -0
- package/src/cosmos/authz/v1beta1/authz.ts +481 -0
- package/src/cosmos/authz/v1beta1/event.ts +259 -0
- package/src/cosmos/authz/v1beta1/genesis.ts +100 -0
- package/src/cosmos/authz/v1beta1/query.lcd.ts +59 -0
- package/src/cosmos/authz/v1beta1/query.rpc.Query.ts +64 -0
- package/src/cosmos/authz/v1beta1/query.rpc.func.ts +23 -0
- package/src/cosmos/authz/v1beta1/query.ts +707 -0
- package/src/cosmos/authz/v1beta1/tx.amino.ts +18 -0
- package/src/cosmos/authz/v1beta1/tx.d.ts +240 -0
- package/src/cosmos/authz/v1beta1/tx.js +516 -0
- package/src/cosmos/authz/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.d.ts +5 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.js +27 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +21 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.msg.ts +57 -0
- package/src/cosmos/authz/v1beta1/tx.ts +647 -0
- package/src/cosmos/autocli/v1/options.ts +1145 -0
- package/src/cosmos/autocli/v1/query.rpc.Query.ts +31 -0
- package/src/cosmos/autocli/v1/query.rpc.func.ts +9 -0
- package/src/cosmos/autocli/v1/query.ts +288 -0
- package/src/cosmos/bank/module/v1/module.ts +153 -0
- package/src/cosmos/bank/v1beta1/authz.ts +138 -0
- package/src/cosmos/bank/v1beta1/bank.d.ts +371 -0
- package/src/cosmos/bank/v1beta1/bank.js +726 -0
- package/src/cosmos/bank/v1beta1/bank.ts +974 -0
- package/src/cosmos/bank/v1beta1/genesis.ts +307 -0
- package/src/cosmos/bank/v1beta1/query.d.ts +1159 -0
- package/src/cosmos/bank/v1beta1/query.js +2317 -0
- package/src/cosmos/bank/v1beta1/query.lcd.ts +194 -0
- package/src/cosmos/bank/v1beta1/query.rpc.Query.ts +258 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.d.ts +15 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.js +109 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.ts +93 -0
- package/src/cosmos/bank/v1beta1/query.ts +3027 -0
- package/src/cosmos/bank/v1beta1/tx.amino.ts +23 -0
- package/src/cosmos/bank/v1beta1/tx.d.ts +342 -0
- package/src/cosmos/bank/v1beta1/tx.js +666 -0
- package/src/cosmos/bank/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.d.ts +6 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.js +34 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +27 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.msg.ts +67 -0
- package/src/cosmos/bank/v1beta1/tx.ts +861 -0
- package/src/cosmos/base/abci/v1beta1/abci.d.ts +599 -0
- package/src/cosmos/base/abci/v1beta1/abci.js +1293 -0
- package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
- package/src/cosmos/base/grpc/v2/service.rpc.Service.ts +41 -0
- package/src/cosmos/base/grpc/v2/service.rpc.func.ts +16 -0
- package/src/cosmos/base/grpc/v2/service.ts +473 -0
- package/src/cosmos/base/node/v1beta1/query.lcd.ts +22 -0
- package/src/cosmos/base/node/v1beta1/query.rpc.Service.ts +41 -0
- package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +16 -0
- package/src/cosmos/base/node/v1beta1/query.ts +454 -0
- package/src/cosmos/base/query/v1beta1/pagination.d.ts +176 -0
- package/src/cosmos/base/query/v1beta1/pagination.js +222 -0
- package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +16 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.ts +382 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +44 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.ts +2727 -0
- package/src/cosmos/base/tendermint/v1beta1/query.lcd.ts +81 -0
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +108 -0
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +51 -0
- package/src/cosmos/base/tendermint/v1beta1/query.ts +2302 -0
- package/src/cosmos/base/tendermint/v1beta1/types.ts +455 -0
- package/src/cosmos/base/v1beta1/coin.d.ts +166 -0
- package/src/cosmos/base/v1beta1/coin.js +341 -0
- package/src/cosmos/base/v1beta1/coin.ts +439 -0
- package/src/cosmos/circuit/module/v1/module.ts +99 -0
- package/src/cosmos/circuit/v1/query.lcd.ts +36 -0
- package/src/cosmos/circuit/v1/query.rpc.Query.ts +54 -0
- package/src/cosmos/circuit/v1/query.rpc.func.ts +23 -0
- package/src/cosmos/circuit/v1/query.ts +574 -0
- package/src/cosmos/circuit/v1/tx.amino.ts +18 -0
- package/src/cosmos/circuit/v1/tx.registry.ts +3 -0
- package/src/cosmos/circuit/v1/tx.rpc.func.ts +21 -0
- package/src/cosmos/circuit/v1/tx.rpc.msg.ts +47 -0
- package/src/cosmos/circuit/v1/tx.ts +676 -0
- package/src/cosmos/circuit/v1/types.ts +413 -0
- package/src/cosmos/consensus/module/v1/module.ts +99 -0
- package/src/cosmos/consensus/v1/query.lcd.ts +17 -0
- package/src/cosmos/consensus/v1/query.rpc.Query.ts +30 -0
- package/src/cosmos/consensus/v1/query.rpc.func.ts +9 -0
- package/src/cosmos/consensus/v1/query.ts +185 -0
- package/src/cosmos/consensus/v1/tx.amino.ts +8 -0
- package/src/cosmos/consensus/v1/tx.registry.ts +3 -0
- package/src/cosmos/consensus/v1/tx.rpc.func.ts +9 -0
- package/src/cosmos/consensus/v1/tx.rpc.msg.ts +31 -0
- package/src/cosmos/consensus/v1/tx.ts +255 -0
- package/src/cosmos/crisis/module/v1/module.ts +115 -0
- package/src/cosmos/crisis/v1beta1/genesis.ts +106 -0
- package/src/cosmos/crisis/v1beta1/tx.amino.ts +13 -0
- package/src/cosmos/crisis/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +15 -0
- package/src/cosmos/crisis/v1beta1/tx.rpc.msg.ts +39 -0
- package/src/cosmos/crisis/v1beta1/tx.ts +416 -0
- package/src/cosmos/crypto/ed25519/keys.d.ts +84 -0
- package/src/cosmos/crypto/ed25519/keys.js +162 -0
- package/src/cosmos/crypto/ed25519/keys.ts +209 -0
- package/src/cosmos/crypto/hd/v1/hd.ts +169 -0
- package/src/cosmos/crypto/keyring/v1/record.ts +529 -0
- package/src/cosmos/crypto/multisig/keys.ts +122 -0
- package/src/cosmos/crypto/multisig/v1beta1/multisig.d.ts +86 -0
- package/src/cosmos/crypto/multisig/v1beta1/multisig.js +177 -0
- package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +225 -0
- package/src/cosmos/crypto/secp256k1/keys.d.ts +78 -0
- package/src/cosmos/crypto/secp256k1/keys.js +162 -0
- package/src/cosmos/crypto/secp256k1/keys.ts +203 -0
- package/src/cosmos/crypto/secp256r1/keys.d.ts +76 -0
- package/src/cosmos/crypto/secp256r1/keys.js +162 -0
- package/src/cosmos/crypto/secp256r1/keys.ts +201 -0
- package/src/cosmos/distribution/module/v1/module.ts +113 -0
- package/src/cosmos/distribution/v1beta1/distribution.d.ts +541 -0
- package/src/cosmos/distribution/v1beta1/distribution.js +1158 -0
- package/src/cosmos/distribution/v1beta1/distribution.ts +1494 -0
- package/src/cosmos/distribution/v1beta1/genesis.ts +1129 -0
- package/src/cosmos/distribution/v1beta1/query.lcd.ts +76 -0
- package/src/cosmos/distribution/v1beta1/query.rpc.Query.ts +133 -0
- package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +72 -0
- package/src/cosmos/distribution/v1beta1/query.ts +2126 -0
- package/src/cosmos/distribution/v1beta1/tx.amino.ts +38 -0
- package/src/cosmos/distribution/v1beta1/tx.d.ts +578 -0
- package/src/cosmos/distribution/v1beta1/tx.js +1145 -0
- package/src/cosmos/distribution/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.d.ts +9 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.js +55 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +45 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.msg.ts +115 -0
- package/src/cosmos/distribution/v1beta1/tx.ts +1478 -0
- package/src/cosmos/evidence/module/v1/module.ts +80 -0
- package/src/cosmos/evidence/v1beta1/evidence.ts +154 -0
- package/src/cosmos/evidence/v1beta1/genesis.ts +102 -0
- package/src/cosmos/evidence/v1beta1/query.lcd.ts +37 -0
- package/src/cosmos/evidence/v1beta1/query.rpc.Query.ts +43 -0
- package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +16 -0
- package/src/cosmos/evidence/v1beta1/query.ts +451 -0
- package/src/cosmos/evidence/v1beta1/tx.amino.ts +8 -0
- package/src/cosmos/evidence/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +9 -0
- package/src/cosmos/evidence/v1beta1/tx.rpc.msg.ts +27 -0
- package/src/cosmos/evidence/v1beta1/tx.ts +221 -0
- package/src/cosmos/feegrant/module/v1/module.ts +80 -0
- package/src/cosmos/feegrant/v1beta1/feegrant.ts +573 -0
- package/src/cosmos/feegrant/v1beta1/genesis.ts +100 -0
- package/src/cosmos/feegrant/v1beta1/query.lcd.ts +42 -0
- package/src/cosmos/feegrant/v1beta1/query.rpc.Query.ts +58 -0
- package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +23 -0
- package/src/cosmos/feegrant/v1beta1/query.ts +677 -0
- package/src/cosmos/feegrant/v1beta1/tx.amino.ts +18 -0
- package/src/cosmos/feegrant/v1beta1/tx.d.ts +232 -0
- package/src/cosmos/feegrant/v1beta1/tx.js +471 -0
- package/src/cosmos/feegrant/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.d.ts +5 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.js +27 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +21 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +53 -0
- package/src/cosmos/feegrant/v1beta1/tx.ts +597 -0
- package/src/cosmos/genutil/module/v1/module.ts +80 -0
- package/src/cosmos/genutil/v1beta1/genesis.ts +101 -0
- package/src/cosmos/gov/module/v1/module.ts +121 -0
- package/src/cosmos/gov/v1/genesis.ts +280 -0
- package/src/cosmos/gov/v1/gov.d.ts +696 -0
- package/src/cosmos/gov/v1/gov.js +1363 -0
- package/src/cosmos/gov/v1/gov.ts +1843 -0
- package/src/cosmos/gov/v1/query.lcd.ts +85 -0
- package/src/cosmos/gov/v1/query.rpc.Query.ts +118 -0
- package/src/cosmos/gov/v1/query.rpc.func.ts +65 -0
- package/src/cosmos/gov/v1/query.ts +1970 -0
- package/src/cosmos/gov/v1/tx.amino.ts +38 -0
- package/src/cosmos/gov/v1/tx.d.ts +624 -0
- package/src/cosmos/gov/v1/tx.js +1277 -0
- package/src/cosmos/gov/v1/tx.registry.ts +3 -0
- package/src/cosmos/gov/v1/tx.rpc.func.d.ts +9 -0
- package/src/cosmos/gov/v1/tx.rpc.func.js +55 -0
- package/src/cosmos/gov/v1/tx.rpc.func.ts +45 -0
- package/src/cosmos/gov/v1/tx.rpc.msg.ts +89 -0
- package/src/cosmos/gov/v1/tx.ts +1657 -0
- package/src/cosmos/gov/v1beta1/genesis.ts +202 -0
- package/src/cosmos/gov/v1beta1/gov.d.ts +522 -0
- package/src/cosmos/gov/v1beta1/gov.js +1114 -0
- package/src/cosmos/gov/v1beta1/gov.ts +1425 -0
- package/src/cosmos/gov/v1beta1/query.d.ts +606 -0
- package/src/cosmos/gov/v1beta1/query.js +1409 -0
- package/src/cosmos/gov/v1beta1/query.lcd.ts +80 -0
- package/src/cosmos/gov/v1beta1/query.rpc.Query.ts +107 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.d.ts +10 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.js +69 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.ts +58 -0
- package/src/cosmos/gov/v1beta1/query.ts +1749 -0
- package/src/cosmos/gov/v1beta1/tx.amino.ts +23 -0
- package/src/cosmos/gov/v1beta1/tx.d.ts +325 -0
- package/src/cosmos/gov/v1beta1/tx.js +699 -0
- package/src/cosmos/gov/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.d.ts +6 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.js +34 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +27 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.msg.ts +53 -0
- package/src/cosmos/gov/v1beta1/tx.ts +881 -0
- package/src/cosmos/group/module/v1/module.ts +128 -0
- package/src/cosmos/group/v1/events.ts +1044 -0
- package/src/cosmos/group/v1/genesis.ts +240 -0
- package/src/cosmos/group/v1/query.lcd.ts +145 -0
- package/src/cosmos/group/v1/query.rpc.Query.ts +191 -0
- package/src/cosmos/group/v1/query.rpc.func.ts +100 -0
- package/src/cosmos/group/v1/query.ts +3015 -0
- package/src/cosmos/group/v1/tx.amino.ts +73 -0
- package/src/cosmos/group/v1/tx.d.ts +1140 -0
- package/src/cosmos/group/v1/tx.js +2567 -0
- package/src/cosmos/group/v1/tx.registry.ts +3 -0
- package/src/cosmos/group/v1/tx.rpc.func.d.ts +16 -0
- package/src/cosmos/group/v1/tx.rpc.func.js +104 -0
- package/src/cosmos/group/v1/tx.rpc.func.ts +87 -0
- package/src/cosmos/group/v1/tx.rpc.msg.ts +127 -0
- package/src/cosmos/group/v1/tx.ts +3207 -0
- package/src/cosmos/group/v1/types.d.ts +799 -0
- package/src/cosmos/group/v1/types.js +1542 -0
- package/src/cosmos/group/v1/types.ts +2081 -0
- package/src/cosmos/ics23/v1/proofs.d.ts +730 -0
- package/src/cosmos/ics23/v1/proofs.js +1605 -0
- package/src/cosmos/ics23/v1/proofs.ts +2060 -0
- package/src/cosmos/mint/module/v1/module.ts +113 -0
- package/src/cosmos/mint/v1beta1/genesis.ts +116 -0
- package/src/cosmos/mint/v1beta1/mint.ts +291 -0
- package/src/cosmos/mint/v1beta1/query.lcd.ts +27 -0
- package/src/cosmos/mint/v1beta1/query.rpc.Query.ts +52 -0
- package/src/cosmos/mint/v1beta1/query.rpc.func.ts +23 -0
- package/src/cosmos/mint/v1beta1/query.ts +541 -0
- package/src/cosmos/mint/v1beta1/tx.amino.ts +8 -0
- package/src/cosmos/mint/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +9 -0
- package/src/cosmos/mint/v1beta1/tx.rpc.msg.ts +31 -0
- package/src/cosmos/mint/v1beta1/tx.ts +219 -0
- package/src/cosmos/msg/textual/v1/textual.ts +1 -0
- package/src/cosmos/msg/v1/msg.d.ts +1 -0
- package/src/cosmos/msg/v1/msg.js +2 -0
- package/src/cosmos/msg/v1/msg.ts +1 -0
- package/src/cosmos/nft/module/v1/module.ts +80 -0
- package/src/cosmos/nft/v1beta1/event.ts +403 -0
- package/src/cosmos/nft/v1beta1/genesis.ts +234 -0
- package/src/cosmos/nft/v1beta1/nft.ts +356 -0
- package/src/cosmos/nft/v1beta1/query.lcd.ts +69 -0
- package/src/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
- package/src/cosmos/nft/v1beta1/query.rpc.func.ts +51 -0
- package/src/cosmos/nft/v1beta1/query.ts +1465 -0
- package/src/cosmos/nft/v1beta1/tx.amino.ts +8 -0
- package/src/cosmos/nft/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +9 -0
- package/src/cosmos/nft/v1beta1/tx.rpc.msg.ts +23 -0
- package/src/cosmos/nft/v1beta1/tx.ts +224 -0
- package/src/cosmos/orm/module/v1alpha1/module.ts +88 -0
- package/src/cosmos/orm/query/v1alpha1/query.rpc.Query.ts +41 -0
- package/src/cosmos/orm/query/v1alpha1/query.rpc.func.ts +16 -0
- package/src/cosmos/orm/query/v1alpha1/query.ts +993 -0
- package/src/cosmos/orm/v1/orm.ts +589 -0
- package/src/cosmos/orm/v1alpha1/schema.ts +325 -0
- package/src/cosmos/params/module/v1/module.ts +80 -0
- package/src/cosmos/params/v1beta1/params.ts +255 -0
- package/src/cosmos/params/v1beta1/query.lcd.ts +34 -0
- package/src/cosmos/params/v1beta1/query.rpc.Query.ts +51 -0
- package/src/cosmos/params/v1beta1/query.rpc.func.ts +16 -0
- package/src/cosmos/params/v1beta1/query.ts +525 -0
- package/src/cosmos/query/v1/query.d.ts +1 -0
- package/src/cosmos/query/v1/query.js +2 -0
- package/src/cosmos/query/v1/query.ts +1 -0
- package/src/cosmos/reflection/v1/reflection.rpc.func.ts +9 -0
- package/src/cosmos/reflection/v1/reflection.ts +179 -0
- package/src/cosmos/rpc.query.ts +29 -0
- package/src/cosmos/rpc.tx.ts +34 -0
- package/src/cosmos/slashing/module/v1/module.ts +99 -0
- package/src/cosmos/slashing/v1beta1/genesis.ts +492 -0
- package/src/cosmos/slashing/v1beta1/query.lcd.ts +36 -0
- package/src/cosmos/slashing/v1beta1/query.rpc.Query.ts +54 -0
- package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +23 -0
- package/src/cosmos/slashing/v1beta1/query.ts +598 -0
- package/src/cosmos/slashing/v1beta1/slashing.ts +357 -0
- package/src/cosmos/slashing/v1beta1/tx.amino.ts +13 -0
- package/src/cosmos/slashing/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +15 -0
- package/src/cosmos/slashing/v1beta1/tx.rpc.msg.ts +45 -0
- package/src/cosmos/slashing/v1beta1/tx.ts +390 -0
- package/src/cosmos/staking/module/v1/module.ts +157 -0
- package/src/cosmos/staking/v1beta1/authz.ts +323 -0
- package/src/cosmos/staking/v1beta1/genesis.ts +346 -0
- package/src/cosmos/staking/v1beta1/query.d.ts +1124 -0
- package/src/cosmos/staking/v1beta1/query.js +2414 -0
- package/src/cosmos/staking/v1beta1/query.lcd.ts +159 -0
- package/src/cosmos/staking/v1beta1/query.rpc.Query.ts +241 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.d.ts +16 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.js +117 -0
- package/src/cosmos/staking/v1beta1/query.rpc.func.ts +100 -0
- package/src/cosmos/staking/v1beta1/query.ts +3073 -0
- package/src/cosmos/staking/v1beta1/staking.d.ts +1024 -0
- package/src/cosmos/staking/v1beta1/staking.js +2371 -0
- package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
- package/src/cosmos/staking/v1beta1/tx.amino.ts +38 -0
- package/src/cosmos/staking/v1beta1/tx.d.ts +590 -0
- package/src/cosmos/staking/v1beta1/tx.js +1290 -0
- package/src/cosmos/staking/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.d.ts +9 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.js +55 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +45 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.msg.ts +97 -0
- package/src/cosmos/staking/v1beta1/tx.ts +1638 -0
- package/src/cosmos/store/internal/kv/v1beta1/kv.ts +207 -0
- package/src/cosmos/store/snapshots/v1/snapshot.ts +863 -0
- package/src/cosmos/store/snapshots/v2/snapshot.ts +823 -0
- package/src/cosmos/store/streaming/abci/grpc.ts +393 -0
- package/src/cosmos/store/v1beta1/commit_info.ts +362 -0
- package/src/cosmos/store/v1beta1/listening.ts +286 -0
- package/src/cosmos/streaming/v1/grpc.ts +985 -0
- package/src/cosmos/tx/config/v1/config.ts +127 -0
- package/src/cosmos/tx/signing/v1beta1/signing.d.ts +270 -0
- package/src/cosmos/tx/signing/v1beta1/signing.js +570 -0
- package/src/cosmos/tx/signing/v1beta1/signing.ts +688 -0
- package/src/cosmos/tx/v1beta1/service.d.ts +916 -0
- package/src/cosmos/tx/v1beta1/service.js +1729 -0
- package/src/cosmos/tx/v1beta1/service.lcd.ts +57 -0
- package/src/cosmos/tx/v1beta1/service.rpc.Service.ts +148 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.d.ts +11 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.js +77 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.ts +65 -0
- package/src/cosmos/tx/v1beta1/service.ts +2294 -0
- package/src/cosmos/tx/v1beta1/tx.d.ts +856 -0
- package/src/cosmos/tx/v1beta1/tx.js +1398 -0
- package/src/cosmos/tx/v1beta1/tx.ts +2029 -0
- package/src/cosmos/upgrade/module/v1/module.ts +99 -0
- package/src/cosmos/upgrade/v1beta1/query.lcd.ts +52 -0
- package/src/cosmos/upgrade/v1beta1/query.rpc.Query.ts +98 -0
- package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +37 -0
- package/src/cosmos/upgrade/v1beta1/query.ts +1016 -0
- package/src/cosmos/upgrade/v1beta1/tx.amino.ts +13 -0
- package/src/cosmos/upgrade/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +15 -0
- package/src/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +45 -0
- package/src/cosmos/upgrade/v1beta1/tx.ts +398 -0
- package/src/cosmos/upgrade/v1beta1/upgrade.d.ts +245 -0
- package/src/cosmos/upgrade/v1beta1/upgrade.js +416 -0
- package/src/cosmos/upgrade/v1beta1/upgrade.ts +591 -0
- package/src/cosmos/validate/module/v1/module.ts +80 -0
- package/src/cosmos/vesting/module/v1/module.ts +80 -0
- package/src/cosmos/vesting/v1beta1/tx.amino.ts +18 -0
- package/src/cosmos/vesting/v1beta1/tx.d.ts +256 -0
- package/src/cosmos/vesting/v1beta1/tx.js +553 -0
- package/src/cosmos/vesting/v1beta1/tx.registry.ts +3 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.d.ts +5 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.js +27 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +21 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.msg.ts +59 -0
- package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
- package/src/cosmos/vesting/v1beta1/vesting.d.ts +256 -0
- package/src/cosmos/vesting/v1beta1/vesting.js +586 -0
- package/src/cosmos/vesting/v1beta1/vesting.ts +735 -0
- package/src/cosmos_proto/cosmos.d.ts +153 -0
- package/src/cosmos_proto/cosmos.js +234 -0
- package/src/cosmos_proto/cosmos.ts +341 -0
- package/src/cosmwasm/wasm/v1/authz.ts +1231 -0
- package/src/cosmwasm/wasm/v1/genesis.ts +532 -0
- package/src/cosmwasm/wasm/v1/ibc.ts +355 -0
- package/src/cosmwasm/wasm/v1/proposal_legacy.ts +2432 -0
- package/src/cosmwasm/wasm/v1/query.lcd.ts +108 -0
- package/src/cosmwasm/wasm/v1/query.rpc.Query.ts +144 -0
- package/src/cosmwasm/wasm/v1/query.rpc.func.ts +79 -0
- package/src/cosmwasm/wasm/v1/query.ts +2560 -0
- package/src/cosmwasm/wasm/v1/tx.amino.ts +88 -0
- package/src/cosmwasm/wasm/v1/tx.registry.ts +3 -0
- package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +105 -0
- package/src/cosmwasm/wasm/v1/tx.rpc.msg.ts +225 -0
- package/src/cosmwasm/wasm/v1/tx.ts +4191 -0
- package/src/cosmwasm/wasm/v1/types.ts +1120 -0
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +80 -0
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.js +146 -0
- package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +193 -0
- package/src/ethermint/evm/v1/events.d.ts +162 -0
- package/src/ethermint/evm/v1/events.js +384 -0
- package/src/ethermint/evm/v1/events.ts +485 -0
- package/src/ethermint/evm/v1/evm.d.ts +530 -0
- package/src/ethermint/evm/v1/evm.js +1184 -0
- package/src/ethermint/evm/v1/evm.ts +1590 -0
- package/src/ethermint/evm/v1/genesis.d.ts +87 -0
- package/src/ethermint/evm/v1/genesis.js +188 -0
- package/src/ethermint/evm/v1/genesis.ts +240 -0
- package/src/ethermint/evm/v1/query.d.ts +913 -0
- package/src/ethermint/evm/v1/query.js +1973 -0
- package/src/ethermint/evm/v1/query.lcd.ts +157 -0
- package/src/ethermint/evm/v1/query.rpc.Query.ts +164 -0
- package/src/ethermint/evm/v1/query.rpc.func.d.ts +15 -0
- package/src/ethermint/evm/v1/query.rpc.func.js +102 -0
- package/src/ethermint/evm/v1/query.rpc.func.ts +87 -0
- package/src/ethermint/evm/v1/query.ts +2535 -0
- package/src/ethermint/evm/v1/tx.amino.ts +13 -0
- package/src/ethermint/evm/v1/tx.d.ts +452 -0
- package/src/ethermint/evm/v1/tx.js +1011 -0
- package/src/ethermint/evm/v1/tx.registry.ts +3 -0
- package/src/ethermint/evm/v1/tx.rpc.func.d.ts +4 -0
- package/src/ethermint/evm/v1/tx.rpc.func.js +20 -0
- package/src/ethermint/evm/v1/tx.rpc.func.ts +15 -0
- package/src/ethermint/evm/v1/tx.rpc.msg.ts +35 -0
- package/src/ethermint/evm/v1/tx.ts +1333 -0
- package/src/ethermint/feemarket/v1/events.d.ts +70 -0
- package/src/ethermint/feemarket/v1/events.js +157 -0
- package/src/ethermint/feemarket/v1/events.ts +195 -0
- package/src/ethermint/feemarket/v1/feemarket.d.ts +78 -0
- package/src/ethermint/feemarket/v1/feemarket.js +155 -0
- package/src/ethermint/feemarket/v1/feemarket.ts +213 -0
- package/src/ethermint/feemarket/v1/genesis.d.ts +45 -0
- package/src/ethermint/feemarket/v1/genesis.js +88 -0
- package/src/ethermint/feemarket/v1/genesis.ts +114 -0
- package/src/ethermint/feemarket/v1/query.d.ts +195 -0
- package/src/ethermint/feemarket/v1/query.js +387 -0
- package/src/ethermint/feemarket/v1/query.lcd.ts +27 -0
- package/src/ethermint/feemarket/v1/query.rpc.Query.ts +52 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.d.ts +5 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.js +29 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.ts +23 -0
- package/src/ethermint/feemarket/v1/query.ts +487 -0
- package/src/ethermint/feemarket/v1/tx.amino.ts +8 -0
- package/src/ethermint/feemarket/v1/tx.d.ts +81 -0
- package/src/ethermint/feemarket/v1/tx.js +153 -0
- package/src/ethermint/feemarket/v1/tx.registry.ts +3 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.d.ts +3 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.js +13 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.ts +9 -0
- package/src/ethermint/feemarket/v1/tx.rpc.msg.ts +27 -0
- package/src/ethermint/feemarket/v1/tx.ts +197 -0
- package/src/ethermint/types/v1/account.d.ts +45 -0
- package/src/ethermint/types/v1/account.js +88 -0
- package/src/ethermint/types/v1/account.ts +114 -0
- package/src/ethermint/types/v1/dynamic_fee.d.ts +34 -0
- package/src/ethermint/types/v1/dynamic_fee.js +75 -0
- package/src/ethermint/types/v1/dynamic_fee.ts +91 -0
- package/src/ethermint/types/v1/indexer.d.ts +76 -0
- package/src/ethermint/types/v1/indexer.js +147 -0
- package/src/ethermint/types/v1/indexer.ts +205 -0
- package/src/ethermint/types/v1/web3.d.ts +66 -0
- package/src/ethermint/types/v1/web3.js +100 -0
- package/src/ethermint/types/v1/web3.ts +147 -0
- package/src/extern.d.ts +10 -0
- package/src/extern.js +36 -0
- package/src/extern.ts +38 -0
- package/src/gogoproto/gogo.d.ts +1 -0
- package/src/gogoproto/gogo.js +2 -0
- package/src/gogoproto/gogo.ts +1 -0
- package/src/google/api/annotations.d.ts +1 -0
- package/src/google/api/annotations.js +2 -0
- package/src/google/api/annotations.ts +1 -0
- package/src/google/api/http.d.ts +764 -0
- package/src/google/api/http.js +353 -0
- package/src/google/api/http.ts +1069 -0
- package/src/google/protobuf/any.d.ts +268 -0
- package/src/google/protobuf/any.js +81 -0
- package/src/google/protobuf/any.ts +331 -0
- package/src/google/protobuf/descriptor.d.ts +2919 -0
- package/src/google/protobuf/descriptor.js +5100 -0
- package/src/google/protobuf/descriptor.ts +7177 -0
- package/src/google/protobuf/duration.d.ts +162 -0
- package/src/google/protobuf/duration.js +81 -0
- package/src/google/protobuf/duration.ts +225 -0
- package/src/google/protobuf/timestamp.d.ts +222 -0
- package/src/google/protobuf/timestamp.js +78 -0
- package/src/google/protobuf/timestamp.ts +281 -0
- package/src/helper-func-types.d.ts +117 -0
- package/src/helper-func-types.js +55 -0
- package/src/helper-func-types.ts +191 -0
- package/src/helpers.d.ts +82 -0
- package/src/helpers.js +143 -0
- package/src/helpers.ts +259 -0
- package/src/ibc/applications/fee/v1/ack.ts +131 -0
- package/src/ibc/applications/fee/v1/fee.ts +481 -0
- package/src/ibc/applications/fee/v1/genesis.ts +661 -0
- package/src/ibc/applications/fee/v1/metadata.ts +121 -0
- package/src/ibc/applications/fee/v1/query.lcd.ts +117 -0
- package/src/ibc/applications/fee/v1/query.rpc.Query.ts +129 -0
- package/src/ibc/applications/fee/v1/query.rpc.func.ts +72 -0
- package/src/ibc/applications/fee/v1/query.ts +2134 -0
- package/src/ibc/applications/fee/v1/tx.amino.ts +23 -0
- package/src/ibc/applications/fee/v1/tx.registry.ts +3 -0
- package/src/ibc/applications/fee/v1/tx.rpc.func.ts +27 -0
- package/src/ibc/applications/fee/v1/tx.rpc.msg.ts +83 -0
- package/src/ibc/applications/fee/v1/tx.ts +889 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +105 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +22 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +41 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +16 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +18 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +3 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +21 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +39 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +685 -0
- package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +661 -0
- package/src/ibc/applications/interchain_accounts/host/v1/host.ts +253 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +17 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +30 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +9 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.ts +177 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +13 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +3 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +15 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +31 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +429 -0
- package/src/ibc/applications/interchain_accounts/v1/account.ts +112 -0
- package/src/ibc/applications/interchain_accounts/v1/metadata.ts +191 -0
- package/src/ibc/applications/interchain_accounts/v1/packet.ts +259 -0
- package/src/ibc/applications/transfer/v1/authz.ts +280 -0
- package/src/ibc/applications/transfer/v1/genesis.ts +153 -0
- package/src/ibc/applications/transfer/v1/query.lcd.ts +69 -0
- package/src/ibc/applications/transfer/v1/query.rpc.Query.ts +87 -0
- package/src/ibc/applications/transfer/v1/query.rpc.func.ts +44 -0
- package/src/ibc/applications/transfer/v1/query.ts +1205 -0
- package/src/ibc/applications/transfer/v1/transfer.d.ts +112 -0
- package/src/ibc/applications/transfer/v1/transfer.js +185 -0
- package/src/ibc/applications/transfer/v1/transfer.ts +261 -0
- package/src/ibc/applications/transfer/v1/tx.amino.ts +13 -0
- package/src/ibc/applications/transfer/v1/tx.d.ts +202 -0
- package/src/ibc/applications/transfer/v1/tx.js +402 -0
- package/src/ibc/applications/transfer/v1/tx.registry.ts +3 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.d.ts +4 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.js +20 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +15 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.msg.ts +31 -0
- package/src/ibc/applications/transfer/v1/tx.ts +532 -0
- package/src/ibc/applications/transfer/v2/packet.ts +171 -0
- package/src/ibc/core/channel/v1/channel.d.ts +547 -0
- package/src/ibc/core/channel/v1/channel.js +1167 -0
- package/src/ibc/core/channel/v1/channel.ts +1510 -0
- package/src/ibc/core/channel/v1/genesis.ts +354 -0
- package/src/ibc/core/channel/v1/query.lcd.ts +135 -0
- package/src/ibc/core/channel/v1/query.rpc.Query.ts +240 -0
- package/src/ibc/core/channel/v1/query.rpc.func.ts +121 -0
- package/src/ibc/core/channel/v1/query.ts +4354 -0
- package/src/ibc/core/channel/v1/tx.amino.ts +98 -0
- package/src/ibc/core/channel/v1/tx.d.ts +1490 -0
- package/src/ibc/core/channel/v1/tx.js +4027 -0
- package/src/ibc/core/channel/v1/tx.registry.ts +3 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.d.ts +21 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.js +139 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.ts +117 -0
- package/src/ibc/core/channel/v1/tx.rpc.msg.ts +171 -0
- package/src/ibc/core/channel/v1/tx.ts +4866 -0
- package/src/ibc/core/channel/v1/upgrade.d.ts +139 -0
- package/src/ibc/core/channel/v1/upgrade.js +304 -0
- package/src/ibc/core/channel/v1/upgrade.ts +388 -0
- package/src/ibc/core/client/v1/client.d.ts +372 -0
- package/src/ibc/core/client/v1/client.js +675 -0
- package/src/ibc/core/client/v1/client.ts +927 -0
- package/src/ibc/core/client/v1/genesis.ts +426 -0
- package/src/ibc/core/client/v1/query.lcd.ts +86 -0
- package/src/ibc/core/client/v1/query.rpc.Query.ts +139 -0
- package/src/ibc/core/client/v1/query.rpc.func.ts +72 -0
- package/src/ibc/core/client/v1/query.ts +2280 -0
- package/src/ibc/core/client/v1/tx.amino.ts +38 -0
- package/src/ibc/core/client/v1/tx.d.ts +587 -0
- package/src/ibc/core/client/v1/tx.js +1202 -0
- package/src/ibc/core/client/v1/tx.registry.ts +3 -0
- package/src/ibc/core/client/v1/tx.rpc.func.d.ts +9 -0
- package/src/ibc/core/client/v1/tx.rpc.func.js +55 -0
- package/src/ibc/core/client/v1/tx.rpc.func.ts +45 -0
- package/src/ibc/core/client/v1/tx.rpc.msg.ts +71 -0
- package/src/ibc/core/client/v1/tx.ts +1543 -0
- package/src/ibc/core/commitment/v1/commitment.d.ts +165 -0
- package/src/ibc/core/commitment/v1/commitment.js +325 -0
- package/src/ibc/core/commitment/v1/commitment.ts +418 -0
- package/src/ibc/core/connection/v1/connection.d.ts +376 -0
- package/src/ibc/core/connection/v1/connection.js +781 -0
- package/src/ibc/core/connection/v1/connection.ts +1010 -0
- package/src/ibc/core/connection/v1/genesis.ts +146 -0
- package/src/ibc/core/connection/v1/query.lcd.ts +54 -0
- package/src/ibc/core/connection/v1/query.rpc.Query.ts +99 -0
- package/src/ibc/core/connection/v1/query.rpc.func.ts +44 -0
- package/src/ibc/core/connection/v1/query.ts +1408 -0
- package/src/ibc/core/connection/v1/tx.amino.ts +28 -0
- package/src/ibc/core/connection/v1/tx.d.ts +457 -0
- package/src/ibc/core/connection/v1/tx.js +1087 -0
- package/src/ibc/core/connection/v1/tx.registry.ts +3 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.d.ts +7 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.js +41 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.ts +33 -0
- package/src/ibc/core/connection/v1/tx.rpc.msg.ts +63 -0
- package/src/ibc/core/connection/v1/tx.ts +1365 -0
- package/src/ibc/core/types/v1/genesis.ts +137 -0
- package/src/ibc/lightclients/localhost/v2/localhost.ts +100 -0
- package/src/ibc/lightclients/solomachine/v2/solomachine.ts +2103 -0
- package/src/ibc/lightclients/solomachine/v3/solomachine.ts +1070 -0
- package/src/ibc/lightclients/tendermint/v1/tendermint.ts +838 -0
- package/src/ibc/lightclients/wasm/v1/genesis.ts +197 -0
- package/src/ibc/lightclients/wasm/v1/query.lcd.ts +31 -0
- package/src/ibc/lightclients/wasm/v1/query.rpc.Query.ts +43 -0
- package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +16 -0
- package/src/ibc/lightclients/wasm/v1/query.ts +404 -0
- package/src/ibc/lightclients/wasm/v1/tx.amino.ts +18 -0
- package/src/ibc/lightclients/wasm/v1/tx.registry.ts +3 -0
- package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +21 -0
- package/src/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +39 -0
- package/src/ibc/lightclients/wasm/v1/tx.ts +621 -0
- package/src/ibc/lightclients/wasm/v1/wasm.ts +438 -0
- package/src/registry.d.ts +33 -0
- package/src/registry.js +158 -0
- package/src/registry.ts +218 -0
- package/src/tendermint/abci/types.d.ts +1843 -0
- package/src/tendermint/abci/types.js +5233 -0
- package/src/tendermint/abci/types.ts +6283 -0
- package/src/tendermint/crypto/keys.d.ts +34 -0
- package/src/tendermint/crypto/keys.js +88 -0
- package/src/tendermint/crypto/keys.ts +103 -0
- package/src/tendermint/crypto/proof.d.ts +174 -0
- package/src/tendermint/crypto/proof.js +458 -0
- package/src/tendermint/crypto/proof.ts +555 -0
- package/src/tendermint/p2p/types.ts +507 -0
- package/src/tendermint/types/block.d.ts +38 -0
- package/src/tendermint/types/block.js +113 -0
- package/src/tendermint/types/block.ts +131 -0
- package/src/tendermint/types/evidence.d.ts +138 -0
- package/src/tendermint/types/evidence.js +403 -0
- package/src/tendermint/types/evidence.ts +476 -0
- package/src/tendermint/types/params.d.ts +323 -0
- package/src/tendermint/types/params.js +595 -0
- package/src/tendermint/types/params.ts +814 -0
- package/src/tendermint/types/types.d.ts +640 -0
- package/src/tendermint/types/types.js +1754 -0
- package/src/tendermint/types/types.ts +2157 -0
- package/src/tendermint/types/validator.d.ts +113 -0
- package/src/tendermint/types/validator.js +342 -0
- package/src/tendermint/types/validator.ts +389 -0
- package/src/tendermint/version/types.d.ts +82 -0
- package/src/tendermint/version/types.js +169 -0
- package/src/tendermint/version/types.ts +219 -0
- package/src/types.d.ts +124 -0
- package/src/types.js +7 -0
- package/src/types.ts +155 -0
- package/src/utf8.d.ts +27 -0
- package/src/utf8.js +140 -0
- package/src/utf8.ts +148 -0
- package/src/varint.d.ts +105 -0
- package/src/varint.js +425 -0
- package/src/varint.ts +488 -0
- package/src/xpla/lcd.ts +180 -0
- package/src/xpla/reward/v1beta1/genesis.d.ts +35 -0
- package/src/xpla/reward/v1beta1/genesis.js +76 -0
- package/src/xpla/reward/v1beta1/genesis.ts +92 -0
- package/src/xpla/reward/v1beta1/query.d.ts +136 -0
- package/src/xpla/reward/v1beta1/query.js +264 -0
- package/src/xpla/reward/v1beta1/query.lcd.ts +22 -0
- package/src/xpla/reward/v1beta1/query.rpc.Query.ts +41 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.d.ts +4 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.js +21 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.ts +16 -0
- package/src/xpla/reward/v1beta1/query.ts +333 -0
- package/src/xpla/reward/v1beta1/reward.d.ts +42 -0
- package/src/xpla/reward/v1beta1/reward.js +131 -0
- package/src/xpla/reward/v1beta1/reward.ts +153 -0
- package/src/xpla/reward/v1beta1/tx.amino.ts +13 -0
- package/src/xpla/reward/v1beta1/tx.d.ts +158 -0
- package/src/xpla/reward/v1beta1/tx.js +304 -0
- package/src/xpla/reward/v1beta1/tx.registry.ts +3 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.d.ts +4 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.js +20 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.ts +15 -0
- package/src/xpla/reward/v1beta1/tx.rpc.msg.ts +41 -0
- package/src/xpla/reward/v1beta1/tx.ts +391 -0
- package/src/xpla/rpc.query.ts +129 -0
- package/src/xpla/rpc.tx.ts +6 -0
- package/src/xpla/volunteer/v1beta1/genesis.d.ts +33 -0
- package/src/xpla/volunteer/v1beta1/genesis.js +79 -0
- package/src/xpla/volunteer/v1beta1/genesis.ts +92 -0
- package/src/xpla/volunteer/v1beta1/proposal.d.ts +183 -0
- package/src/xpla/volunteer/v1beta1/proposal.js +537 -0
- package/src/xpla/volunteer/v1beta1/proposal.ts +649 -0
- package/src/xpla/volunteer/v1beta1/query.d.ts +60 -0
- package/src/xpla/volunteer/v1beta1/query.js +135 -0
- package/src/xpla/volunteer/v1beta1/query.lcd.ts +17 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.Query.ts +30 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.d.ts +3 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.js +13 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +9 -0
- package/src/xpla/volunteer/v1beta1/query.ts +160 -0
- package/src/xpla/volunteer/v1beta1/tx.amino.ts +13 -0
- package/src/xpla/volunteer/v1beta1/tx.d.ts +168 -0
- package/src/xpla/volunteer/v1beta1/tx.js +351 -0
- package/src/xpla/volunteer/v1beta1/tx.registry.ts +3 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.d.ts +4 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.js +20 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +15 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.msg.ts +35 -0
- package/src/xpla/volunteer/v1beta1/tx.ts +448 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.d.ts +38 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.js +87 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +107 -0
- package/tsconfig.esm.json +10 -0
- package/tsconfig.json +10 -0
|
@@ -0,0 +1,2280 @@
|
|
|
1
|
+
import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "../../../../cosmos/base/query/v1beta1/pagination";
|
|
2
|
+
import { Height, HeightAmino, IdentifiedClientState, IdentifiedClientStateAmino, ConsensusStateWithHeight, ConsensusStateWithHeightAmino, Params, ParamsAmino } from "./client";
|
|
3
|
+
import { MerklePath, MerklePathAmino } from "../../commitment/v1/commitment";
|
|
4
|
+
import { Any, AnyAmino } from "../../../../google/protobuf/any";
|
|
5
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
6
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers";
|
|
7
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
8
|
+
/**
|
|
9
|
+
* QueryClientStateRequest is the request type for the Query/ClientState RPC
|
|
10
|
+
* method
|
|
11
|
+
*/
|
|
12
|
+
export interface QueryClientStateRequest {
|
|
13
|
+
/** client state unique identifier */
|
|
14
|
+
clientId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface QueryClientStateRequestProtoMsg {
|
|
17
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStateRequest";
|
|
18
|
+
value: Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* QueryClientStateRequest is the request type for the Query/ClientState RPC
|
|
22
|
+
* method
|
|
23
|
+
*/
|
|
24
|
+
export interface QueryClientStateRequestAmino {
|
|
25
|
+
/** client state unique identifier */
|
|
26
|
+
client_id: string;
|
|
27
|
+
}
|
|
28
|
+
export interface QueryClientStateRequestAminoMsg {
|
|
29
|
+
type: "cosmos-sdk/QueryClientStateRequest";
|
|
30
|
+
value: QueryClientStateRequestAmino;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* QueryClientStateResponse is the response type for the Query/ClientState RPC
|
|
34
|
+
* method. Besides the client state, it includes a proof and the height from
|
|
35
|
+
* which the proof was retrieved.
|
|
36
|
+
*/
|
|
37
|
+
export interface QueryClientStateResponse {
|
|
38
|
+
/** client state associated with the request identifier */
|
|
39
|
+
clientState?: Any;
|
|
40
|
+
/** merkle proof of existence */
|
|
41
|
+
proof: Uint8Array;
|
|
42
|
+
/** height at which the proof was retrieved */
|
|
43
|
+
proofHeight: Height;
|
|
44
|
+
}
|
|
45
|
+
export interface QueryClientStateResponseProtoMsg {
|
|
46
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStateResponse";
|
|
47
|
+
value: Uint8Array;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* QueryClientStateResponse is the response type for the Query/ClientState RPC
|
|
51
|
+
* method. Besides the client state, it includes a proof and the height from
|
|
52
|
+
* which the proof was retrieved.
|
|
53
|
+
*/
|
|
54
|
+
export interface QueryClientStateResponseAmino {
|
|
55
|
+
/** client state associated with the request identifier */
|
|
56
|
+
client_state?: AnyAmino;
|
|
57
|
+
/** merkle proof of existence */
|
|
58
|
+
proof: string;
|
|
59
|
+
/** height at which the proof was retrieved */
|
|
60
|
+
proof_height: HeightAmino;
|
|
61
|
+
}
|
|
62
|
+
export interface QueryClientStateResponseAminoMsg {
|
|
63
|
+
type: "cosmos-sdk/QueryClientStateResponse";
|
|
64
|
+
value: QueryClientStateResponseAmino;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* QueryClientStatesRequest is the request type for the Query/ClientStates RPC
|
|
68
|
+
* method
|
|
69
|
+
*/
|
|
70
|
+
export interface QueryClientStatesRequest {
|
|
71
|
+
/** pagination request */
|
|
72
|
+
pagination?: PageRequest;
|
|
73
|
+
}
|
|
74
|
+
export interface QueryClientStatesRequestProtoMsg {
|
|
75
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest";
|
|
76
|
+
value: Uint8Array;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* QueryClientStatesRequest is the request type for the Query/ClientStates RPC
|
|
80
|
+
* method
|
|
81
|
+
*/
|
|
82
|
+
export interface QueryClientStatesRequestAmino {
|
|
83
|
+
/** pagination request */
|
|
84
|
+
pagination?: PageRequestAmino;
|
|
85
|
+
}
|
|
86
|
+
export interface QueryClientStatesRequestAminoMsg {
|
|
87
|
+
type: "cosmos-sdk/QueryClientStatesRequest";
|
|
88
|
+
value: QueryClientStatesRequestAmino;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* QueryClientStatesResponse is the response type for the Query/ClientStates RPC
|
|
92
|
+
* method.
|
|
93
|
+
*/
|
|
94
|
+
export interface QueryClientStatesResponse {
|
|
95
|
+
/** list of stored ClientStates of the chain. */
|
|
96
|
+
clientStates: IdentifiedClientState[];
|
|
97
|
+
/** pagination response */
|
|
98
|
+
pagination?: PageResponse;
|
|
99
|
+
}
|
|
100
|
+
export interface QueryClientStatesResponseProtoMsg {
|
|
101
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse";
|
|
102
|
+
value: Uint8Array;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* QueryClientStatesResponse is the response type for the Query/ClientStates RPC
|
|
106
|
+
* method.
|
|
107
|
+
*/
|
|
108
|
+
export interface QueryClientStatesResponseAmino {
|
|
109
|
+
/** list of stored ClientStates of the chain. */
|
|
110
|
+
client_states: IdentifiedClientStateAmino[];
|
|
111
|
+
/** pagination response */
|
|
112
|
+
pagination?: PageResponseAmino;
|
|
113
|
+
}
|
|
114
|
+
export interface QueryClientStatesResponseAminoMsg {
|
|
115
|
+
type: "cosmos-sdk/QueryClientStatesResponse";
|
|
116
|
+
value: QueryClientStatesResponseAmino;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* QueryConsensusStateRequest is the request type for the Query/ConsensusState
|
|
120
|
+
* RPC method. Besides the consensus state, it includes a proof and the height
|
|
121
|
+
* from which the proof was retrieved.
|
|
122
|
+
*/
|
|
123
|
+
export interface QueryConsensusStateRequest {
|
|
124
|
+
/** client identifier */
|
|
125
|
+
clientId: string;
|
|
126
|
+
/** consensus state revision number */
|
|
127
|
+
revisionNumber: bigint;
|
|
128
|
+
/** consensus state revision height */
|
|
129
|
+
revisionHeight: bigint;
|
|
130
|
+
/**
|
|
131
|
+
* latest_height overrrides the height field and queries the latest stored
|
|
132
|
+
* ConsensusState
|
|
133
|
+
*/
|
|
134
|
+
latestHeight: boolean;
|
|
135
|
+
}
|
|
136
|
+
export interface QueryConsensusStateRequestProtoMsg {
|
|
137
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest";
|
|
138
|
+
value: Uint8Array;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* QueryConsensusStateRequest is the request type for the Query/ConsensusState
|
|
142
|
+
* RPC method. Besides the consensus state, it includes a proof and the height
|
|
143
|
+
* from which the proof was retrieved.
|
|
144
|
+
*/
|
|
145
|
+
export interface QueryConsensusStateRequestAmino {
|
|
146
|
+
/** client identifier */
|
|
147
|
+
client_id: string;
|
|
148
|
+
/** consensus state revision number */
|
|
149
|
+
revision_number: string;
|
|
150
|
+
/** consensus state revision height */
|
|
151
|
+
revision_height: string;
|
|
152
|
+
/**
|
|
153
|
+
* latest_height overrrides the height field and queries the latest stored
|
|
154
|
+
* ConsensusState
|
|
155
|
+
*/
|
|
156
|
+
latest_height: boolean;
|
|
157
|
+
}
|
|
158
|
+
export interface QueryConsensusStateRequestAminoMsg {
|
|
159
|
+
type: "cosmos-sdk/QueryConsensusStateRequest";
|
|
160
|
+
value: QueryConsensusStateRequestAmino;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* QueryConsensusStateResponse is the response type for the Query/ConsensusState
|
|
164
|
+
* RPC method
|
|
165
|
+
*/
|
|
166
|
+
export interface QueryConsensusStateResponse {
|
|
167
|
+
/** consensus state associated with the client identifier at the given height */
|
|
168
|
+
consensusState?: Any;
|
|
169
|
+
/** merkle proof of existence */
|
|
170
|
+
proof: Uint8Array;
|
|
171
|
+
/** height at which the proof was retrieved */
|
|
172
|
+
proofHeight: Height;
|
|
173
|
+
}
|
|
174
|
+
export interface QueryConsensusStateResponseProtoMsg {
|
|
175
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse";
|
|
176
|
+
value: Uint8Array;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* QueryConsensusStateResponse is the response type for the Query/ConsensusState
|
|
180
|
+
* RPC method
|
|
181
|
+
*/
|
|
182
|
+
export interface QueryConsensusStateResponseAmino {
|
|
183
|
+
/** consensus state associated with the client identifier at the given height */
|
|
184
|
+
consensus_state?: AnyAmino;
|
|
185
|
+
/** merkle proof of existence */
|
|
186
|
+
proof: string;
|
|
187
|
+
/** height at which the proof was retrieved */
|
|
188
|
+
proof_height: HeightAmino;
|
|
189
|
+
}
|
|
190
|
+
export interface QueryConsensusStateResponseAminoMsg {
|
|
191
|
+
type: "cosmos-sdk/QueryConsensusStateResponse";
|
|
192
|
+
value: QueryConsensusStateResponseAmino;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* QueryConsensusStatesRequest is the request type for the Query/ConsensusStates
|
|
196
|
+
* RPC method.
|
|
197
|
+
*/
|
|
198
|
+
export interface QueryConsensusStatesRequest {
|
|
199
|
+
/** client identifier */
|
|
200
|
+
clientId: string;
|
|
201
|
+
/** pagination request */
|
|
202
|
+
pagination?: PageRequest;
|
|
203
|
+
}
|
|
204
|
+
export interface QueryConsensusStatesRequestProtoMsg {
|
|
205
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest";
|
|
206
|
+
value: Uint8Array;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* QueryConsensusStatesRequest is the request type for the Query/ConsensusStates
|
|
210
|
+
* RPC method.
|
|
211
|
+
*/
|
|
212
|
+
export interface QueryConsensusStatesRequestAmino {
|
|
213
|
+
/** client identifier */
|
|
214
|
+
client_id: string;
|
|
215
|
+
/** pagination request */
|
|
216
|
+
pagination?: PageRequestAmino;
|
|
217
|
+
}
|
|
218
|
+
export interface QueryConsensusStatesRequestAminoMsg {
|
|
219
|
+
type: "cosmos-sdk/QueryConsensusStatesRequest";
|
|
220
|
+
value: QueryConsensusStatesRequestAmino;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* QueryConsensusStatesResponse is the response type for the
|
|
224
|
+
* Query/ConsensusStates RPC method
|
|
225
|
+
*/
|
|
226
|
+
export interface QueryConsensusStatesResponse {
|
|
227
|
+
/** consensus states associated with the identifier */
|
|
228
|
+
consensusStates: ConsensusStateWithHeight[];
|
|
229
|
+
/** pagination response */
|
|
230
|
+
pagination?: PageResponse;
|
|
231
|
+
}
|
|
232
|
+
export interface QueryConsensusStatesResponseProtoMsg {
|
|
233
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse";
|
|
234
|
+
value: Uint8Array;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* QueryConsensusStatesResponse is the response type for the
|
|
238
|
+
* Query/ConsensusStates RPC method
|
|
239
|
+
*/
|
|
240
|
+
export interface QueryConsensusStatesResponseAmino {
|
|
241
|
+
/** consensus states associated with the identifier */
|
|
242
|
+
consensus_states: ConsensusStateWithHeightAmino[];
|
|
243
|
+
/** pagination response */
|
|
244
|
+
pagination?: PageResponseAmino;
|
|
245
|
+
}
|
|
246
|
+
export interface QueryConsensusStatesResponseAminoMsg {
|
|
247
|
+
type: "cosmos-sdk/QueryConsensusStatesResponse";
|
|
248
|
+
value: QueryConsensusStatesResponseAmino;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights
|
|
252
|
+
* RPC method.
|
|
253
|
+
*/
|
|
254
|
+
export interface QueryConsensusStateHeightsRequest {
|
|
255
|
+
/** client identifier */
|
|
256
|
+
clientId: string;
|
|
257
|
+
/** pagination request */
|
|
258
|
+
pagination?: PageRequest;
|
|
259
|
+
}
|
|
260
|
+
export interface QueryConsensusStateHeightsRequestProtoMsg {
|
|
261
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest";
|
|
262
|
+
value: Uint8Array;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights
|
|
266
|
+
* RPC method.
|
|
267
|
+
*/
|
|
268
|
+
export interface QueryConsensusStateHeightsRequestAmino {
|
|
269
|
+
/** client identifier */
|
|
270
|
+
client_id: string;
|
|
271
|
+
/** pagination request */
|
|
272
|
+
pagination?: PageRequestAmino;
|
|
273
|
+
}
|
|
274
|
+
export interface QueryConsensusStateHeightsRequestAminoMsg {
|
|
275
|
+
type: "cosmos-sdk/QueryConsensusStateHeightsRequest";
|
|
276
|
+
value: QueryConsensusStateHeightsRequestAmino;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* QueryConsensusStateHeightsResponse is the response type for the
|
|
280
|
+
* Query/ConsensusStateHeights RPC method
|
|
281
|
+
*/
|
|
282
|
+
export interface QueryConsensusStateHeightsResponse {
|
|
283
|
+
/** consensus state heights */
|
|
284
|
+
consensusStateHeights: Height[];
|
|
285
|
+
/** pagination response */
|
|
286
|
+
pagination?: PageResponse;
|
|
287
|
+
}
|
|
288
|
+
export interface QueryConsensusStateHeightsResponseProtoMsg {
|
|
289
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse";
|
|
290
|
+
value: Uint8Array;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* QueryConsensusStateHeightsResponse is the response type for the
|
|
294
|
+
* Query/ConsensusStateHeights RPC method
|
|
295
|
+
*/
|
|
296
|
+
export interface QueryConsensusStateHeightsResponseAmino {
|
|
297
|
+
/** consensus state heights */
|
|
298
|
+
consensus_state_heights: HeightAmino[];
|
|
299
|
+
/** pagination response */
|
|
300
|
+
pagination?: PageResponseAmino;
|
|
301
|
+
}
|
|
302
|
+
export interface QueryConsensusStateHeightsResponseAminoMsg {
|
|
303
|
+
type: "cosmos-sdk/QueryConsensusStateHeightsResponse";
|
|
304
|
+
value: QueryConsensusStateHeightsResponseAmino;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* QueryClientStatusRequest is the request type for the Query/ClientStatus RPC
|
|
308
|
+
* method
|
|
309
|
+
*/
|
|
310
|
+
export interface QueryClientStatusRequest {
|
|
311
|
+
/** client unique identifier */
|
|
312
|
+
clientId: string;
|
|
313
|
+
}
|
|
314
|
+
export interface QueryClientStatusRequestProtoMsg {
|
|
315
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest";
|
|
316
|
+
value: Uint8Array;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* QueryClientStatusRequest is the request type for the Query/ClientStatus RPC
|
|
320
|
+
* method
|
|
321
|
+
*/
|
|
322
|
+
export interface QueryClientStatusRequestAmino {
|
|
323
|
+
/** client unique identifier */
|
|
324
|
+
client_id: string;
|
|
325
|
+
}
|
|
326
|
+
export interface QueryClientStatusRequestAminoMsg {
|
|
327
|
+
type: "cosmos-sdk/QueryClientStatusRequest";
|
|
328
|
+
value: QueryClientStatusRequestAmino;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* QueryClientStatusResponse is the response type for the Query/ClientStatus RPC
|
|
332
|
+
* method. It returns the current status of the IBC client.
|
|
333
|
+
*/
|
|
334
|
+
export interface QueryClientStatusResponse {
|
|
335
|
+
status: string;
|
|
336
|
+
}
|
|
337
|
+
export interface QueryClientStatusResponseProtoMsg {
|
|
338
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse";
|
|
339
|
+
value: Uint8Array;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* QueryClientStatusResponse is the response type for the Query/ClientStatus RPC
|
|
343
|
+
* method. It returns the current status of the IBC client.
|
|
344
|
+
*/
|
|
345
|
+
export interface QueryClientStatusResponseAmino {
|
|
346
|
+
status: string;
|
|
347
|
+
}
|
|
348
|
+
export interface QueryClientStatusResponseAminoMsg {
|
|
349
|
+
type: "cosmos-sdk/QueryClientStatusResponse";
|
|
350
|
+
value: QueryClientStatusResponseAmino;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* QueryClientParamsRequest is the request type for the Query/ClientParams RPC
|
|
354
|
+
* method.
|
|
355
|
+
*/
|
|
356
|
+
export interface QueryClientParamsRequest {}
|
|
357
|
+
export interface QueryClientParamsRequestProtoMsg {
|
|
358
|
+
typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest";
|
|
359
|
+
value: Uint8Array;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* QueryClientParamsRequest is the request type for the Query/ClientParams RPC
|
|
363
|
+
* method.
|
|
364
|
+
*/
|
|
365
|
+
export interface QueryClientParamsRequestAmino {}
|
|
366
|
+
export interface QueryClientParamsRequestAminoMsg {
|
|
367
|
+
type: "cosmos-sdk/QueryClientParamsRequest";
|
|
368
|
+
value: QueryClientParamsRequestAmino;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* QueryClientParamsResponse is the response type for the Query/ClientParams RPC
|
|
372
|
+
* method.
|
|
373
|
+
*/
|
|
374
|
+
export interface QueryClientParamsResponse {
|
|
375
|
+
/** params defines the parameters of the module. */
|
|
376
|
+
params?: Params;
|
|
377
|
+
}
|
|
378
|
+
export interface QueryClientParamsResponseProtoMsg {
|
|
379
|
+
typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse";
|
|
380
|
+
value: Uint8Array;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* QueryClientParamsResponse is the response type for the Query/ClientParams RPC
|
|
384
|
+
* method.
|
|
385
|
+
*/
|
|
386
|
+
export interface QueryClientParamsResponseAmino {
|
|
387
|
+
/** params defines the parameters of the module. */
|
|
388
|
+
params?: ParamsAmino;
|
|
389
|
+
}
|
|
390
|
+
export interface QueryClientParamsResponseAminoMsg {
|
|
391
|
+
type: "cosmos-sdk/QueryClientParamsResponse";
|
|
392
|
+
value: QueryClientParamsResponseAmino;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* QueryUpgradedClientStateRequest is the request type for the
|
|
396
|
+
* Query/UpgradedClientState RPC method
|
|
397
|
+
*/
|
|
398
|
+
export interface QueryUpgradedClientStateRequest {}
|
|
399
|
+
export interface QueryUpgradedClientStateRequestProtoMsg {
|
|
400
|
+
typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest";
|
|
401
|
+
value: Uint8Array;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* QueryUpgradedClientStateRequest is the request type for the
|
|
405
|
+
* Query/UpgradedClientState RPC method
|
|
406
|
+
*/
|
|
407
|
+
export interface QueryUpgradedClientStateRequestAmino {}
|
|
408
|
+
export interface QueryUpgradedClientStateRequestAminoMsg {
|
|
409
|
+
type: "cosmos-sdk/QueryUpgradedClientStateRequest";
|
|
410
|
+
value: QueryUpgradedClientStateRequestAmino;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* QueryUpgradedClientStateResponse is the response type for the
|
|
414
|
+
* Query/UpgradedClientState RPC method.
|
|
415
|
+
*/
|
|
416
|
+
export interface QueryUpgradedClientStateResponse {
|
|
417
|
+
/** client state associated with the request identifier */
|
|
418
|
+
upgradedClientState?: Any;
|
|
419
|
+
}
|
|
420
|
+
export interface QueryUpgradedClientStateResponseProtoMsg {
|
|
421
|
+
typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse";
|
|
422
|
+
value: Uint8Array;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* QueryUpgradedClientStateResponse is the response type for the
|
|
426
|
+
* Query/UpgradedClientState RPC method.
|
|
427
|
+
*/
|
|
428
|
+
export interface QueryUpgradedClientStateResponseAmino {
|
|
429
|
+
/** client state associated with the request identifier */
|
|
430
|
+
upgraded_client_state?: AnyAmino;
|
|
431
|
+
}
|
|
432
|
+
export interface QueryUpgradedClientStateResponseAminoMsg {
|
|
433
|
+
type: "cosmos-sdk/QueryUpgradedClientStateResponse";
|
|
434
|
+
value: QueryUpgradedClientStateResponseAmino;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* QueryUpgradedConsensusStateRequest is the request type for the
|
|
438
|
+
* Query/UpgradedConsensusState RPC method
|
|
439
|
+
*/
|
|
440
|
+
export interface QueryUpgradedConsensusStateRequest {}
|
|
441
|
+
export interface QueryUpgradedConsensusStateRequestProtoMsg {
|
|
442
|
+
typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest";
|
|
443
|
+
value: Uint8Array;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* QueryUpgradedConsensusStateRequest is the request type for the
|
|
447
|
+
* Query/UpgradedConsensusState RPC method
|
|
448
|
+
*/
|
|
449
|
+
export interface QueryUpgradedConsensusStateRequestAmino {}
|
|
450
|
+
export interface QueryUpgradedConsensusStateRequestAminoMsg {
|
|
451
|
+
type: "cosmos-sdk/QueryUpgradedConsensusStateRequest";
|
|
452
|
+
value: QueryUpgradedConsensusStateRequestAmino;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* QueryUpgradedConsensusStateResponse is the response type for the
|
|
456
|
+
* Query/UpgradedConsensusState RPC method.
|
|
457
|
+
*/
|
|
458
|
+
export interface QueryUpgradedConsensusStateResponse {
|
|
459
|
+
/** Consensus state associated with the request identifier */
|
|
460
|
+
upgradedConsensusState?: Any;
|
|
461
|
+
}
|
|
462
|
+
export interface QueryUpgradedConsensusStateResponseProtoMsg {
|
|
463
|
+
typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse";
|
|
464
|
+
value: Uint8Array;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* QueryUpgradedConsensusStateResponse is the response type for the
|
|
468
|
+
* Query/UpgradedConsensusState RPC method.
|
|
469
|
+
*/
|
|
470
|
+
export interface QueryUpgradedConsensusStateResponseAmino {
|
|
471
|
+
/** Consensus state associated with the request identifier */
|
|
472
|
+
upgraded_consensus_state?: AnyAmino;
|
|
473
|
+
}
|
|
474
|
+
export interface QueryUpgradedConsensusStateResponseAminoMsg {
|
|
475
|
+
type: "cosmos-sdk/QueryUpgradedConsensusStateResponse";
|
|
476
|
+
value: QueryUpgradedConsensusStateResponseAmino;
|
|
477
|
+
}
|
|
478
|
+
/** QueryVerifyMembershipRequest is the request type for the Query/VerifyMembership RPC method */
|
|
479
|
+
export interface QueryVerifyMembershipRequest {
|
|
480
|
+
/** client unique identifier. */
|
|
481
|
+
clientId: string;
|
|
482
|
+
/** the proof to be verified by the client. */
|
|
483
|
+
proof: Uint8Array;
|
|
484
|
+
/** the height of the commitment root at which the proof is verified. */
|
|
485
|
+
proofHeight: Height;
|
|
486
|
+
/** the commitment key path. */
|
|
487
|
+
merklePath: MerklePath;
|
|
488
|
+
/** the value which is proven. */
|
|
489
|
+
value: Uint8Array;
|
|
490
|
+
/** optional time delay */
|
|
491
|
+
timeDelay: bigint;
|
|
492
|
+
/** optional block delay */
|
|
493
|
+
blockDelay: bigint;
|
|
494
|
+
}
|
|
495
|
+
export interface QueryVerifyMembershipRequestProtoMsg {
|
|
496
|
+
typeUrl: "/ibc.core.client.v1.QueryVerifyMembershipRequest";
|
|
497
|
+
value: Uint8Array;
|
|
498
|
+
}
|
|
499
|
+
/** QueryVerifyMembershipRequest is the request type for the Query/VerifyMembership RPC method */
|
|
500
|
+
export interface QueryVerifyMembershipRequestAmino {
|
|
501
|
+
/** client unique identifier. */
|
|
502
|
+
client_id: string;
|
|
503
|
+
/** the proof to be verified by the client. */
|
|
504
|
+
proof: string;
|
|
505
|
+
/** the height of the commitment root at which the proof is verified. */
|
|
506
|
+
proof_height: HeightAmino;
|
|
507
|
+
/** the commitment key path. */
|
|
508
|
+
merkle_path: MerklePathAmino;
|
|
509
|
+
/** the value which is proven. */
|
|
510
|
+
value: string;
|
|
511
|
+
/** optional time delay */
|
|
512
|
+
time_delay: string;
|
|
513
|
+
/** optional block delay */
|
|
514
|
+
block_delay: string;
|
|
515
|
+
}
|
|
516
|
+
export interface QueryVerifyMembershipRequestAminoMsg {
|
|
517
|
+
type: "cosmos-sdk/QueryVerifyMembershipRequest";
|
|
518
|
+
value: QueryVerifyMembershipRequestAmino;
|
|
519
|
+
}
|
|
520
|
+
/** QueryVerifyMembershipResponse is the response type for the Query/VerifyMembership RPC method */
|
|
521
|
+
export interface QueryVerifyMembershipResponse {
|
|
522
|
+
/** boolean indicating success or failure of proof verification. */
|
|
523
|
+
success: boolean;
|
|
524
|
+
}
|
|
525
|
+
export interface QueryVerifyMembershipResponseProtoMsg {
|
|
526
|
+
typeUrl: "/ibc.core.client.v1.QueryVerifyMembershipResponse";
|
|
527
|
+
value: Uint8Array;
|
|
528
|
+
}
|
|
529
|
+
/** QueryVerifyMembershipResponse is the response type for the Query/VerifyMembership RPC method */
|
|
530
|
+
export interface QueryVerifyMembershipResponseAmino {
|
|
531
|
+
/** boolean indicating success or failure of proof verification. */
|
|
532
|
+
success: boolean;
|
|
533
|
+
}
|
|
534
|
+
export interface QueryVerifyMembershipResponseAminoMsg {
|
|
535
|
+
type: "cosmos-sdk/QueryVerifyMembershipResponse";
|
|
536
|
+
value: QueryVerifyMembershipResponseAmino;
|
|
537
|
+
}
|
|
538
|
+
function createBaseQueryClientStateRequest(): QueryClientStateRequest {
|
|
539
|
+
return {
|
|
540
|
+
clientId: ""
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
export const QueryClientStateRequest = {
|
|
544
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStateRequest",
|
|
545
|
+
aminoType: "cosmos-sdk/QueryClientStateRequest",
|
|
546
|
+
is(o: any): o is QueryClientStateRequest {
|
|
547
|
+
return o && (o.$typeUrl === QueryClientStateRequest.typeUrl || typeof o.clientId === "string");
|
|
548
|
+
},
|
|
549
|
+
isAmino(o: any): o is QueryClientStateRequestAmino {
|
|
550
|
+
return o && (o.$typeUrl === QueryClientStateRequest.typeUrl || typeof o.client_id === "string");
|
|
551
|
+
},
|
|
552
|
+
encode(message: QueryClientStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
553
|
+
if (message.clientId !== "") {
|
|
554
|
+
writer.uint32(10).string(message.clientId);
|
|
555
|
+
}
|
|
556
|
+
return writer;
|
|
557
|
+
},
|
|
558
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateRequest {
|
|
559
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
560
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
561
|
+
const message = createBaseQueryClientStateRequest();
|
|
562
|
+
while (reader.pos < end) {
|
|
563
|
+
const tag = reader.uint32();
|
|
564
|
+
switch (tag >>> 3) {
|
|
565
|
+
case 1:
|
|
566
|
+
message.clientId = reader.string();
|
|
567
|
+
break;
|
|
568
|
+
default:
|
|
569
|
+
reader.skipType(tag & 7);
|
|
570
|
+
break;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
return message;
|
|
574
|
+
},
|
|
575
|
+
fromPartial(object: DeepPartial<QueryClientStateRequest>): QueryClientStateRequest {
|
|
576
|
+
const message = createBaseQueryClientStateRequest();
|
|
577
|
+
message.clientId = object.clientId ?? "";
|
|
578
|
+
return message;
|
|
579
|
+
},
|
|
580
|
+
fromAmino(object: QueryClientStateRequestAmino): QueryClientStateRequest {
|
|
581
|
+
const message = createBaseQueryClientStateRequest();
|
|
582
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
583
|
+
message.clientId = object.client_id;
|
|
584
|
+
}
|
|
585
|
+
return message;
|
|
586
|
+
},
|
|
587
|
+
toAmino(message: QueryClientStateRequest): QueryClientStateRequestAmino {
|
|
588
|
+
const obj: any = {};
|
|
589
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
590
|
+
return obj;
|
|
591
|
+
},
|
|
592
|
+
fromAminoMsg(object: QueryClientStateRequestAminoMsg): QueryClientStateRequest {
|
|
593
|
+
return QueryClientStateRequest.fromAmino(object.value);
|
|
594
|
+
},
|
|
595
|
+
toAminoMsg(message: QueryClientStateRequest): QueryClientStateRequestAminoMsg {
|
|
596
|
+
return {
|
|
597
|
+
type: "cosmos-sdk/QueryClientStateRequest",
|
|
598
|
+
value: QueryClientStateRequest.toAmino(message)
|
|
599
|
+
};
|
|
600
|
+
},
|
|
601
|
+
fromProtoMsg(message: QueryClientStateRequestProtoMsg): QueryClientStateRequest {
|
|
602
|
+
return QueryClientStateRequest.decode(message.value);
|
|
603
|
+
},
|
|
604
|
+
toProto(message: QueryClientStateRequest): Uint8Array {
|
|
605
|
+
return QueryClientStateRequest.encode(message).finish();
|
|
606
|
+
},
|
|
607
|
+
toProtoMsg(message: QueryClientStateRequest): QueryClientStateRequestProtoMsg {
|
|
608
|
+
return {
|
|
609
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStateRequest",
|
|
610
|
+
value: QueryClientStateRequest.encode(message).finish()
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
GlobalDecoderRegistry.register(QueryClientStateRequest.typeUrl, QueryClientStateRequest);
|
|
615
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryClientStateRequest.aminoType, QueryClientStateRequest.typeUrl);
|
|
616
|
+
function createBaseQueryClientStateResponse(): QueryClientStateResponse {
|
|
617
|
+
return {
|
|
618
|
+
clientState: undefined,
|
|
619
|
+
proof: new Uint8Array(),
|
|
620
|
+
proofHeight: Height.fromPartial({})
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
export const QueryClientStateResponse = {
|
|
624
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStateResponse",
|
|
625
|
+
aminoType: "cosmos-sdk/QueryClientStateResponse",
|
|
626
|
+
is(o: any): o is QueryClientStateResponse {
|
|
627
|
+
return o && (o.$typeUrl === QueryClientStateResponse.typeUrl || (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.is(o.proofHeight));
|
|
628
|
+
},
|
|
629
|
+
isAmino(o: any): o is QueryClientStateResponseAmino {
|
|
630
|
+
return o && (o.$typeUrl === QueryClientStateResponse.typeUrl || (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.isAmino(o.proof_height));
|
|
631
|
+
},
|
|
632
|
+
encode(message: QueryClientStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
633
|
+
if (message.clientState !== undefined) {
|
|
634
|
+
Any.encode(message.clientState, writer.uint32(10).fork()).ldelim();
|
|
635
|
+
}
|
|
636
|
+
if (message.proof.length !== 0) {
|
|
637
|
+
writer.uint32(18).bytes(message.proof);
|
|
638
|
+
}
|
|
639
|
+
if (message.proofHeight !== undefined) {
|
|
640
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
641
|
+
}
|
|
642
|
+
return writer;
|
|
643
|
+
},
|
|
644
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateResponse {
|
|
645
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
646
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
647
|
+
const message = createBaseQueryClientStateResponse();
|
|
648
|
+
while (reader.pos < end) {
|
|
649
|
+
const tag = reader.uint32();
|
|
650
|
+
switch (tag >>> 3) {
|
|
651
|
+
case 1:
|
|
652
|
+
message.clientState = Any.decode(reader, reader.uint32());
|
|
653
|
+
break;
|
|
654
|
+
case 2:
|
|
655
|
+
message.proof = reader.bytes();
|
|
656
|
+
break;
|
|
657
|
+
case 3:
|
|
658
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
659
|
+
break;
|
|
660
|
+
default:
|
|
661
|
+
reader.skipType(tag & 7);
|
|
662
|
+
break;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
return message;
|
|
666
|
+
},
|
|
667
|
+
fromPartial(object: DeepPartial<QueryClientStateResponse>): QueryClientStateResponse {
|
|
668
|
+
const message = createBaseQueryClientStateResponse();
|
|
669
|
+
message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined;
|
|
670
|
+
message.proof = object.proof ?? new Uint8Array();
|
|
671
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
672
|
+
return message;
|
|
673
|
+
},
|
|
674
|
+
fromAmino(object: QueryClientStateResponseAmino): QueryClientStateResponse {
|
|
675
|
+
const message = createBaseQueryClientStateResponse();
|
|
676
|
+
if (object.client_state !== undefined && object.client_state !== null) {
|
|
677
|
+
message.clientState = Any.fromAmino(object.client_state);
|
|
678
|
+
}
|
|
679
|
+
if (object.proof !== undefined && object.proof !== null) {
|
|
680
|
+
message.proof = bytesFromBase64(object.proof);
|
|
681
|
+
}
|
|
682
|
+
if (object.proof_height !== undefined && object.proof_height !== null) {
|
|
683
|
+
message.proofHeight = Height.fromAmino(object.proof_height);
|
|
684
|
+
}
|
|
685
|
+
return message;
|
|
686
|
+
},
|
|
687
|
+
toAmino(message: QueryClientStateResponse): QueryClientStateResponseAmino {
|
|
688
|
+
const obj: any = {};
|
|
689
|
+
obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined;
|
|
690
|
+
obj.proof = message.proof ? base64FromBytes(message.proof) : undefined;
|
|
691
|
+
obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {};
|
|
692
|
+
return obj;
|
|
693
|
+
},
|
|
694
|
+
fromAminoMsg(object: QueryClientStateResponseAminoMsg): QueryClientStateResponse {
|
|
695
|
+
return QueryClientStateResponse.fromAmino(object.value);
|
|
696
|
+
},
|
|
697
|
+
toAminoMsg(message: QueryClientStateResponse): QueryClientStateResponseAminoMsg {
|
|
698
|
+
return {
|
|
699
|
+
type: "cosmos-sdk/QueryClientStateResponse",
|
|
700
|
+
value: QueryClientStateResponse.toAmino(message)
|
|
701
|
+
};
|
|
702
|
+
},
|
|
703
|
+
fromProtoMsg(message: QueryClientStateResponseProtoMsg): QueryClientStateResponse {
|
|
704
|
+
return QueryClientStateResponse.decode(message.value);
|
|
705
|
+
},
|
|
706
|
+
toProto(message: QueryClientStateResponse): Uint8Array {
|
|
707
|
+
return QueryClientStateResponse.encode(message).finish();
|
|
708
|
+
},
|
|
709
|
+
toProtoMsg(message: QueryClientStateResponse): QueryClientStateResponseProtoMsg {
|
|
710
|
+
return {
|
|
711
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStateResponse",
|
|
712
|
+
value: QueryClientStateResponse.encode(message).finish()
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
GlobalDecoderRegistry.register(QueryClientStateResponse.typeUrl, QueryClientStateResponse);
|
|
717
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryClientStateResponse.aminoType, QueryClientStateResponse.typeUrl);
|
|
718
|
+
function createBaseQueryClientStatesRequest(): QueryClientStatesRequest {
|
|
719
|
+
return {
|
|
720
|
+
pagination: undefined
|
|
721
|
+
};
|
|
722
|
+
}
|
|
723
|
+
export const QueryClientStatesRequest = {
|
|
724
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest",
|
|
725
|
+
aminoType: "cosmos-sdk/QueryClientStatesRequest",
|
|
726
|
+
is(o: any): o is QueryClientStatesRequest {
|
|
727
|
+
return o && o.$typeUrl === QueryClientStatesRequest.typeUrl;
|
|
728
|
+
},
|
|
729
|
+
isAmino(o: any): o is QueryClientStatesRequestAmino {
|
|
730
|
+
return o && o.$typeUrl === QueryClientStatesRequest.typeUrl;
|
|
731
|
+
},
|
|
732
|
+
encode(message: QueryClientStatesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
733
|
+
if (message.pagination !== undefined) {
|
|
734
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
735
|
+
}
|
|
736
|
+
return writer;
|
|
737
|
+
},
|
|
738
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesRequest {
|
|
739
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
740
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
741
|
+
const message = createBaseQueryClientStatesRequest();
|
|
742
|
+
while (reader.pos < end) {
|
|
743
|
+
const tag = reader.uint32();
|
|
744
|
+
switch (tag >>> 3) {
|
|
745
|
+
case 1:
|
|
746
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
747
|
+
break;
|
|
748
|
+
default:
|
|
749
|
+
reader.skipType(tag & 7);
|
|
750
|
+
break;
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
return message;
|
|
754
|
+
},
|
|
755
|
+
fromPartial(object: DeepPartial<QueryClientStatesRequest>): QueryClientStatesRequest {
|
|
756
|
+
const message = createBaseQueryClientStatesRequest();
|
|
757
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
758
|
+
return message;
|
|
759
|
+
},
|
|
760
|
+
fromAmino(object: QueryClientStatesRequestAmino): QueryClientStatesRequest {
|
|
761
|
+
const message = createBaseQueryClientStatesRequest();
|
|
762
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
763
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
764
|
+
}
|
|
765
|
+
return message;
|
|
766
|
+
},
|
|
767
|
+
toAmino(message: QueryClientStatesRequest): QueryClientStatesRequestAmino {
|
|
768
|
+
const obj: any = {};
|
|
769
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
770
|
+
return obj;
|
|
771
|
+
},
|
|
772
|
+
fromAminoMsg(object: QueryClientStatesRequestAminoMsg): QueryClientStatesRequest {
|
|
773
|
+
return QueryClientStatesRequest.fromAmino(object.value);
|
|
774
|
+
},
|
|
775
|
+
toAminoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestAminoMsg {
|
|
776
|
+
return {
|
|
777
|
+
type: "cosmos-sdk/QueryClientStatesRequest",
|
|
778
|
+
value: QueryClientStatesRequest.toAmino(message)
|
|
779
|
+
};
|
|
780
|
+
},
|
|
781
|
+
fromProtoMsg(message: QueryClientStatesRequestProtoMsg): QueryClientStatesRequest {
|
|
782
|
+
return QueryClientStatesRequest.decode(message.value);
|
|
783
|
+
},
|
|
784
|
+
toProto(message: QueryClientStatesRequest): Uint8Array {
|
|
785
|
+
return QueryClientStatesRequest.encode(message).finish();
|
|
786
|
+
},
|
|
787
|
+
toProtoMsg(message: QueryClientStatesRequest): QueryClientStatesRequestProtoMsg {
|
|
788
|
+
return {
|
|
789
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest",
|
|
790
|
+
value: QueryClientStatesRequest.encode(message).finish()
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
GlobalDecoderRegistry.register(QueryClientStatesRequest.typeUrl, QueryClientStatesRequest);
|
|
795
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryClientStatesRequest.aminoType, QueryClientStatesRequest.typeUrl);
|
|
796
|
+
function createBaseQueryClientStatesResponse(): QueryClientStatesResponse {
|
|
797
|
+
return {
|
|
798
|
+
clientStates: [],
|
|
799
|
+
pagination: undefined
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
export const QueryClientStatesResponse = {
|
|
803
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse",
|
|
804
|
+
aminoType: "cosmos-sdk/QueryClientStatesResponse",
|
|
805
|
+
is(o: any): o is QueryClientStatesResponse {
|
|
806
|
+
return o && (o.$typeUrl === QueryClientStatesResponse.typeUrl || Array.isArray(o.clientStates) && (!o.clientStates.length || IdentifiedClientState.is(o.clientStates[0])));
|
|
807
|
+
},
|
|
808
|
+
isAmino(o: any): o is QueryClientStatesResponseAmino {
|
|
809
|
+
return o && (o.$typeUrl === QueryClientStatesResponse.typeUrl || Array.isArray(o.client_states) && (!o.client_states.length || IdentifiedClientState.isAmino(o.client_states[0])));
|
|
810
|
+
},
|
|
811
|
+
encode(message: QueryClientStatesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
812
|
+
for (const v of message.clientStates) {
|
|
813
|
+
IdentifiedClientState.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
814
|
+
}
|
|
815
|
+
if (message.pagination !== undefined) {
|
|
816
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
817
|
+
}
|
|
818
|
+
return writer;
|
|
819
|
+
},
|
|
820
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesResponse {
|
|
821
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
822
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
823
|
+
const message = createBaseQueryClientStatesResponse();
|
|
824
|
+
while (reader.pos < end) {
|
|
825
|
+
const tag = reader.uint32();
|
|
826
|
+
switch (tag >>> 3) {
|
|
827
|
+
case 1:
|
|
828
|
+
message.clientStates.push(IdentifiedClientState.decode(reader, reader.uint32()));
|
|
829
|
+
break;
|
|
830
|
+
case 2:
|
|
831
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
832
|
+
break;
|
|
833
|
+
default:
|
|
834
|
+
reader.skipType(tag & 7);
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
return message;
|
|
839
|
+
},
|
|
840
|
+
fromPartial(object: DeepPartial<QueryClientStatesResponse>): QueryClientStatesResponse {
|
|
841
|
+
const message = createBaseQueryClientStatesResponse();
|
|
842
|
+
message.clientStates = object.clientStates?.map(e => IdentifiedClientState.fromPartial(e)) || [];
|
|
843
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
844
|
+
return message;
|
|
845
|
+
},
|
|
846
|
+
fromAmino(object: QueryClientStatesResponseAmino): QueryClientStatesResponse {
|
|
847
|
+
const message = createBaseQueryClientStatesResponse();
|
|
848
|
+
message.clientStates = object.client_states?.map(e => IdentifiedClientState.fromAmino(e)) || [];
|
|
849
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
850
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
851
|
+
}
|
|
852
|
+
return message;
|
|
853
|
+
},
|
|
854
|
+
toAmino(message: QueryClientStatesResponse): QueryClientStatesResponseAmino {
|
|
855
|
+
const obj: any = {};
|
|
856
|
+
if (message.clientStates) {
|
|
857
|
+
obj.client_states = message.clientStates.map(e => e ? IdentifiedClientState.toAmino(e) : undefined);
|
|
858
|
+
} else {
|
|
859
|
+
obj.client_states = message.clientStates;
|
|
860
|
+
}
|
|
861
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
862
|
+
return obj;
|
|
863
|
+
},
|
|
864
|
+
fromAminoMsg(object: QueryClientStatesResponseAminoMsg): QueryClientStatesResponse {
|
|
865
|
+
return QueryClientStatesResponse.fromAmino(object.value);
|
|
866
|
+
},
|
|
867
|
+
toAminoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseAminoMsg {
|
|
868
|
+
return {
|
|
869
|
+
type: "cosmos-sdk/QueryClientStatesResponse",
|
|
870
|
+
value: QueryClientStatesResponse.toAmino(message)
|
|
871
|
+
};
|
|
872
|
+
},
|
|
873
|
+
fromProtoMsg(message: QueryClientStatesResponseProtoMsg): QueryClientStatesResponse {
|
|
874
|
+
return QueryClientStatesResponse.decode(message.value);
|
|
875
|
+
},
|
|
876
|
+
toProto(message: QueryClientStatesResponse): Uint8Array {
|
|
877
|
+
return QueryClientStatesResponse.encode(message).finish();
|
|
878
|
+
},
|
|
879
|
+
toProtoMsg(message: QueryClientStatesResponse): QueryClientStatesResponseProtoMsg {
|
|
880
|
+
return {
|
|
881
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse",
|
|
882
|
+
value: QueryClientStatesResponse.encode(message).finish()
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
};
|
|
886
|
+
GlobalDecoderRegistry.register(QueryClientStatesResponse.typeUrl, QueryClientStatesResponse);
|
|
887
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryClientStatesResponse.aminoType, QueryClientStatesResponse.typeUrl);
|
|
888
|
+
function createBaseQueryConsensusStateRequest(): QueryConsensusStateRequest {
|
|
889
|
+
return {
|
|
890
|
+
clientId: "",
|
|
891
|
+
revisionNumber: BigInt(0),
|
|
892
|
+
revisionHeight: BigInt(0),
|
|
893
|
+
latestHeight: false
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
export const QueryConsensusStateRequest = {
|
|
897
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest",
|
|
898
|
+
aminoType: "cosmos-sdk/QueryConsensusStateRequest",
|
|
899
|
+
is(o: any): o is QueryConsensusStateRequest {
|
|
900
|
+
return o && (o.$typeUrl === QueryConsensusStateRequest.typeUrl || typeof o.clientId === "string" && typeof o.revisionNumber === "bigint" && typeof o.revisionHeight === "bigint" && typeof o.latestHeight === "boolean");
|
|
901
|
+
},
|
|
902
|
+
isAmino(o: any): o is QueryConsensusStateRequestAmino {
|
|
903
|
+
return o && (o.$typeUrl === QueryConsensusStateRequest.typeUrl || typeof o.client_id === "string" && typeof o.revision_number === "bigint" && typeof o.revision_height === "bigint" && typeof o.latest_height === "boolean");
|
|
904
|
+
},
|
|
905
|
+
encode(message: QueryConsensusStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
906
|
+
if (message.clientId !== "") {
|
|
907
|
+
writer.uint32(10).string(message.clientId);
|
|
908
|
+
}
|
|
909
|
+
if (message.revisionNumber !== BigInt(0)) {
|
|
910
|
+
writer.uint32(16).uint64(message.revisionNumber);
|
|
911
|
+
}
|
|
912
|
+
if (message.revisionHeight !== BigInt(0)) {
|
|
913
|
+
writer.uint32(24).uint64(message.revisionHeight);
|
|
914
|
+
}
|
|
915
|
+
if (message.latestHeight === true) {
|
|
916
|
+
writer.uint32(32).bool(message.latestHeight);
|
|
917
|
+
}
|
|
918
|
+
return writer;
|
|
919
|
+
},
|
|
920
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateRequest {
|
|
921
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
922
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
923
|
+
const message = createBaseQueryConsensusStateRequest();
|
|
924
|
+
while (reader.pos < end) {
|
|
925
|
+
const tag = reader.uint32();
|
|
926
|
+
switch (tag >>> 3) {
|
|
927
|
+
case 1:
|
|
928
|
+
message.clientId = reader.string();
|
|
929
|
+
break;
|
|
930
|
+
case 2:
|
|
931
|
+
message.revisionNumber = reader.uint64();
|
|
932
|
+
break;
|
|
933
|
+
case 3:
|
|
934
|
+
message.revisionHeight = reader.uint64();
|
|
935
|
+
break;
|
|
936
|
+
case 4:
|
|
937
|
+
message.latestHeight = reader.bool();
|
|
938
|
+
break;
|
|
939
|
+
default:
|
|
940
|
+
reader.skipType(tag & 7);
|
|
941
|
+
break;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
return message;
|
|
945
|
+
},
|
|
946
|
+
fromPartial(object: DeepPartial<QueryConsensusStateRequest>): QueryConsensusStateRequest {
|
|
947
|
+
const message = createBaseQueryConsensusStateRequest();
|
|
948
|
+
message.clientId = object.clientId ?? "";
|
|
949
|
+
message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0);
|
|
950
|
+
message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0);
|
|
951
|
+
message.latestHeight = object.latestHeight ?? false;
|
|
952
|
+
return message;
|
|
953
|
+
},
|
|
954
|
+
fromAmino(object: QueryConsensusStateRequestAmino): QueryConsensusStateRequest {
|
|
955
|
+
const message = createBaseQueryConsensusStateRequest();
|
|
956
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
957
|
+
message.clientId = object.client_id;
|
|
958
|
+
}
|
|
959
|
+
if (object.revision_number !== undefined && object.revision_number !== null) {
|
|
960
|
+
message.revisionNumber = BigInt(object.revision_number);
|
|
961
|
+
}
|
|
962
|
+
if (object.revision_height !== undefined && object.revision_height !== null) {
|
|
963
|
+
message.revisionHeight = BigInt(object.revision_height);
|
|
964
|
+
}
|
|
965
|
+
if (object.latest_height !== undefined && object.latest_height !== null) {
|
|
966
|
+
message.latestHeight = object.latest_height;
|
|
967
|
+
}
|
|
968
|
+
return message;
|
|
969
|
+
},
|
|
970
|
+
toAmino(message: QueryConsensusStateRequest): QueryConsensusStateRequestAmino {
|
|
971
|
+
const obj: any = {};
|
|
972
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
973
|
+
obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber?.toString() : undefined;
|
|
974
|
+
obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight?.toString() : undefined;
|
|
975
|
+
obj.latest_height = message.latestHeight === false ? undefined : message.latestHeight;
|
|
976
|
+
return obj;
|
|
977
|
+
},
|
|
978
|
+
fromAminoMsg(object: QueryConsensusStateRequestAminoMsg): QueryConsensusStateRequest {
|
|
979
|
+
return QueryConsensusStateRequest.fromAmino(object.value);
|
|
980
|
+
},
|
|
981
|
+
toAminoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestAminoMsg {
|
|
982
|
+
return {
|
|
983
|
+
type: "cosmos-sdk/QueryConsensusStateRequest",
|
|
984
|
+
value: QueryConsensusStateRequest.toAmino(message)
|
|
985
|
+
};
|
|
986
|
+
},
|
|
987
|
+
fromProtoMsg(message: QueryConsensusStateRequestProtoMsg): QueryConsensusStateRequest {
|
|
988
|
+
return QueryConsensusStateRequest.decode(message.value);
|
|
989
|
+
},
|
|
990
|
+
toProto(message: QueryConsensusStateRequest): Uint8Array {
|
|
991
|
+
return QueryConsensusStateRequest.encode(message).finish();
|
|
992
|
+
},
|
|
993
|
+
toProtoMsg(message: QueryConsensusStateRequest): QueryConsensusStateRequestProtoMsg {
|
|
994
|
+
return {
|
|
995
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest",
|
|
996
|
+
value: QueryConsensusStateRequest.encode(message).finish()
|
|
997
|
+
};
|
|
998
|
+
}
|
|
999
|
+
};
|
|
1000
|
+
GlobalDecoderRegistry.register(QueryConsensusStateRequest.typeUrl, QueryConsensusStateRequest);
|
|
1001
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConsensusStateRequest.aminoType, QueryConsensusStateRequest.typeUrl);
|
|
1002
|
+
function createBaseQueryConsensusStateResponse(): QueryConsensusStateResponse {
|
|
1003
|
+
return {
|
|
1004
|
+
consensusState: undefined,
|
|
1005
|
+
proof: new Uint8Array(),
|
|
1006
|
+
proofHeight: Height.fromPartial({})
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
export const QueryConsensusStateResponse = {
|
|
1010
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse",
|
|
1011
|
+
aminoType: "cosmos-sdk/QueryConsensusStateResponse",
|
|
1012
|
+
is(o: any): o is QueryConsensusStateResponse {
|
|
1013
|
+
return o && (o.$typeUrl === QueryConsensusStateResponse.typeUrl || (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.is(o.proofHeight));
|
|
1014
|
+
},
|
|
1015
|
+
isAmino(o: any): o is QueryConsensusStateResponseAmino {
|
|
1016
|
+
return o && (o.$typeUrl === QueryConsensusStateResponse.typeUrl || (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.isAmino(o.proof_height));
|
|
1017
|
+
},
|
|
1018
|
+
encode(message: QueryConsensusStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1019
|
+
if (message.consensusState !== undefined) {
|
|
1020
|
+
Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim();
|
|
1021
|
+
}
|
|
1022
|
+
if (message.proof.length !== 0) {
|
|
1023
|
+
writer.uint32(18).bytes(message.proof);
|
|
1024
|
+
}
|
|
1025
|
+
if (message.proofHeight !== undefined) {
|
|
1026
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
1027
|
+
}
|
|
1028
|
+
return writer;
|
|
1029
|
+
},
|
|
1030
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateResponse {
|
|
1031
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1032
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1033
|
+
const message = createBaseQueryConsensusStateResponse();
|
|
1034
|
+
while (reader.pos < end) {
|
|
1035
|
+
const tag = reader.uint32();
|
|
1036
|
+
switch (tag >>> 3) {
|
|
1037
|
+
case 1:
|
|
1038
|
+
message.consensusState = Any.decode(reader, reader.uint32());
|
|
1039
|
+
break;
|
|
1040
|
+
case 2:
|
|
1041
|
+
message.proof = reader.bytes();
|
|
1042
|
+
break;
|
|
1043
|
+
case 3:
|
|
1044
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1045
|
+
break;
|
|
1046
|
+
default:
|
|
1047
|
+
reader.skipType(tag & 7);
|
|
1048
|
+
break;
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
return message;
|
|
1052
|
+
},
|
|
1053
|
+
fromPartial(object: DeepPartial<QueryConsensusStateResponse>): QueryConsensusStateResponse {
|
|
1054
|
+
const message = createBaseQueryConsensusStateResponse();
|
|
1055
|
+
message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined;
|
|
1056
|
+
message.proof = object.proof ?? new Uint8Array();
|
|
1057
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
1058
|
+
return message;
|
|
1059
|
+
},
|
|
1060
|
+
fromAmino(object: QueryConsensusStateResponseAmino): QueryConsensusStateResponse {
|
|
1061
|
+
const message = createBaseQueryConsensusStateResponse();
|
|
1062
|
+
if (object.consensus_state !== undefined && object.consensus_state !== null) {
|
|
1063
|
+
message.consensusState = Any.fromAmino(object.consensus_state);
|
|
1064
|
+
}
|
|
1065
|
+
if (object.proof !== undefined && object.proof !== null) {
|
|
1066
|
+
message.proof = bytesFromBase64(object.proof);
|
|
1067
|
+
}
|
|
1068
|
+
if (object.proof_height !== undefined && object.proof_height !== null) {
|
|
1069
|
+
message.proofHeight = Height.fromAmino(object.proof_height);
|
|
1070
|
+
}
|
|
1071
|
+
return message;
|
|
1072
|
+
},
|
|
1073
|
+
toAmino(message: QueryConsensusStateResponse): QueryConsensusStateResponseAmino {
|
|
1074
|
+
const obj: any = {};
|
|
1075
|
+
obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined;
|
|
1076
|
+
obj.proof = message.proof ? base64FromBytes(message.proof) : undefined;
|
|
1077
|
+
obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {};
|
|
1078
|
+
return obj;
|
|
1079
|
+
},
|
|
1080
|
+
fromAminoMsg(object: QueryConsensusStateResponseAminoMsg): QueryConsensusStateResponse {
|
|
1081
|
+
return QueryConsensusStateResponse.fromAmino(object.value);
|
|
1082
|
+
},
|
|
1083
|
+
toAminoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseAminoMsg {
|
|
1084
|
+
return {
|
|
1085
|
+
type: "cosmos-sdk/QueryConsensusStateResponse",
|
|
1086
|
+
value: QueryConsensusStateResponse.toAmino(message)
|
|
1087
|
+
};
|
|
1088
|
+
},
|
|
1089
|
+
fromProtoMsg(message: QueryConsensusStateResponseProtoMsg): QueryConsensusStateResponse {
|
|
1090
|
+
return QueryConsensusStateResponse.decode(message.value);
|
|
1091
|
+
},
|
|
1092
|
+
toProto(message: QueryConsensusStateResponse): Uint8Array {
|
|
1093
|
+
return QueryConsensusStateResponse.encode(message).finish();
|
|
1094
|
+
},
|
|
1095
|
+
toProtoMsg(message: QueryConsensusStateResponse): QueryConsensusStateResponseProtoMsg {
|
|
1096
|
+
return {
|
|
1097
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse",
|
|
1098
|
+
value: QueryConsensusStateResponse.encode(message).finish()
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
};
|
|
1102
|
+
GlobalDecoderRegistry.register(QueryConsensusStateResponse.typeUrl, QueryConsensusStateResponse);
|
|
1103
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConsensusStateResponse.aminoType, QueryConsensusStateResponse.typeUrl);
|
|
1104
|
+
function createBaseQueryConsensusStatesRequest(): QueryConsensusStatesRequest {
|
|
1105
|
+
return {
|
|
1106
|
+
clientId: "",
|
|
1107
|
+
pagination: undefined
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
export const QueryConsensusStatesRequest = {
|
|
1111
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest",
|
|
1112
|
+
aminoType: "cosmos-sdk/QueryConsensusStatesRequest",
|
|
1113
|
+
is(o: any): o is QueryConsensusStatesRequest {
|
|
1114
|
+
return o && (o.$typeUrl === QueryConsensusStatesRequest.typeUrl || typeof o.clientId === "string");
|
|
1115
|
+
},
|
|
1116
|
+
isAmino(o: any): o is QueryConsensusStatesRequestAmino {
|
|
1117
|
+
return o && (o.$typeUrl === QueryConsensusStatesRequest.typeUrl || typeof o.client_id === "string");
|
|
1118
|
+
},
|
|
1119
|
+
encode(message: QueryConsensusStatesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1120
|
+
if (message.clientId !== "") {
|
|
1121
|
+
writer.uint32(10).string(message.clientId);
|
|
1122
|
+
}
|
|
1123
|
+
if (message.pagination !== undefined) {
|
|
1124
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1125
|
+
}
|
|
1126
|
+
return writer;
|
|
1127
|
+
},
|
|
1128
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesRequest {
|
|
1129
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1130
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1131
|
+
const message = createBaseQueryConsensusStatesRequest();
|
|
1132
|
+
while (reader.pos < end) {
|
|
1133
|
+
const tag = reader.uint32();
|
|
1134
|
+
switch (tag >>> 3) {
|
|
1135
|
+
case 1:
|
|
1136
|
+
message.clientId = reader.string();
|
|
1137
|
+
break;
|
|
1138
|
+
case 2:
|
|
1139
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1140
|
+
break;
|
|
1141
|
+
default:
|
|
1142
|
+
reader.skipType(tag & 7);
|
|
1143
|
+
break;
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
return message;
|
|
1147
|
+
},
|
|
1148
|
+
fromPartial(object: DeepPartial<QueryConsensusStatesRequest>): QueryConsensusStatesRequest {
|
|
1149
|
+
const message = createBaseQueryConsensusStatesRequest();
|
|
1150
|
+
message.clientId = object.clientId ?? "";
|
|
1151
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1152
|
+
return message;
|
|
1153
|
+
},
|
|
1154
|
+
fromAmino(object: QueryConsensusStatesRequestAmino): QueryConsensusStatesRequest {
|
|
1155
|
+
const message = createBaseQueryConsensusStatesRequest();
|
|
1156
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
1157
|
+
message.clientId = object.client_id;
|
|
1158
|
+
}
|
|
1159
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1160
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1161
|
+
}
|
|
1162
|
+
return message;
|
|
1163
|
+
},
|
|
1164
|
+
toAmino(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAmino {
|
|
1165
|
+
const obj: any = {};
|
|
1166
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
1167
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1168
|
+
return obj;
|
|
1169
|
+
},
|
|
1170
|
+
fromAminoMsg(object: QueryConsensusStatesRequestAminoMsg): QueryConsensusStatesRequest {
|
|
1171
|
+
return QueryConsensusStatesRequest.fromAmino(object.value);
|
|
1172
|
+
},
|
|
1173
|
+
toAminoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAminoMsg {
|
|
1174
|
+
return {
|
|
1175
|
+
type: "cosmos-sdk/QueryConsensusStatesRequest",
|
|
1176
|
+
value: QueryConsensusStatesRequest.toAmino(message)
|
|
1177
|
+
};
|
|
1178
|
+
},
|
|
1179
|
+
fromProtoMsg(message: QueryConsensusStatesRequestProtoMsg): QueryConsensusStatesRequest {
|
|
1180
|
+
return QueryConsensusStatesRequest.decode(message.value);
|
|
1181
|
+
},
|
|
1182
|
+
toProto(message: QueryConsensusStatesRequest): Uint8Array {
|
|
1183
|
+
return QueryConsensusStatesRequest.encode(message).finish();
|
|
1184
|
+
},
|
|
1185
|
+
toProtoMsg(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestProtoMsg {
|
|
1186
|
+
return {
|
|
1187
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest",
|
|
1188
|
+
value: QueryConsensusStatesRequest.encode(message).finish()
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
GlobalDecoderRegistry.register(QueryConsensusStatesRequest.typeUrl, QueryConsensusStatesRequest);
|
|
1193
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConsensusStatesRequest.aminoType, QueryConsensusStatesRequest.typeUrl);
|
|
1194
|
+
function createBaseQueryConsensusStatesResponse(): QueryConsensusStatesResponse {
|
|
1195
|
+
return {
|
|
1196
|
+
consensusStates: [],
|
|
1197
|
+
pagination: undefined
|
|
1198
|
+
};
|
|
1199
|
+
}
|
|
1200
|
+
export const QueryConsensusStatesResponse = {
|
|
1201
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse",
|
|
1202
|
+
aminoType: "cosmos-sdk/QueryConsensusStatesResponse",
|
|
1203
|
+
is(o: any): o is QueryConsensusStatesResponse {
|
|
1204
|
+
return o && (o.$typeUrl === QueryConsensusStatesResponse.typeUrl || Array.isArray(o.consensusStates) && (!o.consensusStates.length || ConsensusStateWithHeight.is(o.consensusStates[0])));
|
|
1205
|
+
},
|
|
1206
|
+
isAmino(o: any): o is QueryConsensusStatesResponseAmino {
|
|
1207
|
+
return o && (o.$typeUrl === QueryConsensusStatesResponse.typeUrl || Array.isArray(o.consensus_states) && (!o.consensus_states.length || ConsensusStateWithHeight.isAmino(o.consensus_states[0])));
|
|
1208
|
+
},
|
|
1209
|
+
encode(message: QueryConsensusStatesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1210
|
+
for (const v of message.consensusStates) {
|
|
1211
|
+
ConsensusStateWithHeight.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1212
|
+
}
|
|
1213
|
+
if (message.pagination !== undefined) {
|
|
1214
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1215
|
+
}
|
|
1216
|
+
return writer;
|
|
1217
|
+
},
|
|
1218
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesResponse {
|
|
1219
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1220
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1221
|
+
const message = createBaseQueryConsensusStatesResponse();
|
|
1222
|
+
while (reader.pos < end) {
|
|
1223
|
+
const tag = reader.uint32();
|
|
1224
|
+
switch (tag >>> 3) {
|
|
1225
|
+
case 1:
|
|
1226
|
+
message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32()));
|
|
1227
|
+
break;
|
|
1228
|
+
case 2:
|
|
1229
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1230
|
+
break;
|
|
1231
|
+
default:
|
|
1232
|
+
reader.skipType(tag & 7);
|
|
1233
|
+
break;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
return message;
|
|
1237
|
+
},
|
|
1238
|
+
fromPartial(object: DeepPartial<QueryConsensusStatesResponse>): QueryConsensusStatesResponse {
|
|
1239
|
+
const message = createBaseQueryConsensusStatesResponse();
|
|
1240
|
+
message.consensusStates = object.consensusStates?.map(e => ConsensusStateWithHeight.fromPartial(e)) || [];
|
|
1241
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1242
|
+
return message;
|
|
1243
|
+
},
|
|
1244
|
+
fromAmino(object: QueryConsensusStatesResponseAmino): QueryConsensusStatesResponse {
|
|
1245
|
+
const message = createBaseQueryConsensusStatesResponse();
|
|
1246
|
+
message.consensusStates = object.consensus_states?.map(e => ConsensusStateWithHeight.fromAmino(e)) || [];
|
|
1247
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1248
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1249
|
+
}
|
|
1250
|
+
return message;
|
|
1251
|
+
},
|
|
1252
|
+
toAmino(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseAmino {
|
|
1253
|
+
const obj: any = {};
|
|
1254
|
+
if (message.consensusStates) {
|
|
1255
|
+
obj.consensus_states = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toAmino(e) : undefined);
|
|
1256
|
+
} else {
|
|
1257
|
+
obj.consensus_states = message.consensusStates;
|
|
1258
|
+
}
|
|
1259
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1260
|
+
return obj;
|
|
1261
|
+
},
|
|
1262
|
+
fromAminoMsg(object: QueryConsensusStatesResponseAminoMsg): QueryConsensusStatesResponse {
|
|
1263
|
+
return QueryConsensusStatesResponse.fromAmino(object.value);
|
|
1264
|
+
},
|
|
1265
|
+
toAminoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseAminoMsg {
|
|
1266
|
+
return {
|
|
1267
|
+
type: "cosmos-sdk/QueryConsensusStatesResponse",
|
|
1268
|
+
value: QueryConsensusStatesResponse.toAmino(message)
|
|
1269
|
+
};
|
|
1270
|
+
},
|
|
1271
|
+
fromProtoMsg(message: QueryConsensusStatesResponseProtoMsg): QueryConsensusStatesResponse {
|
|
1272
|
+
return QueryConsensusStatesResponse.decode(message.value);
|
|
1273
|
+
},
|
|
1274
|
+
toProto(message: QueryConsensusStatesResponse): Uint8Array {
|
|
1275
|
+
return QueryConsensusStatesResponse.encode(message).finish();
|
|
1276
|
+
},
|
|
1277
|
+
toProtoMsg(message: QueryConsensusStatesResponse): QueryConsensusStatesResponseProtoMsg {
|
|
1278
|
+
return {
|
|
1279
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse",
|
|
1280
|
+
value: QueryConsensusStatesResponse.encode(message).finish()
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1283
|
+
};
|
|
1284
|
+
GlobalDecoderRegistry.register(QueryConsensusStatesResponse.typeUrl, QueryConsensusStatesResponse);
|
|
1285
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConsensusStatesResponse.aminoType, QueryConsensusStatesResponse.typeUrl);
|
|
1286
|
+
function createBaseQueryConsensusStateHeightsRequest(): QueryConsensusStateHeightsRequest {
|
|
1287
|
+
return {
|
|
1288
|
+
clientId: "",
|
|
1289
|
+
pagination: undefined
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
export const QueryConsensusStateHeightsRequest = {
|
|
1293
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest",
|
|
1294
|
+
aminoType: "cosmos-sdk/QueryConsensusStateHeightsRequest",
|
|
1295
|
+
is(o: any): o is QueryConsensusStateHeightsRequest {
|
|
1296
|
+
return o && (o.$typeUrl === QueryConsensusStateHeightsRequest.typeUrl || typeof o.clientId === "string");
|
|
1297
|
+
},
|
|
1298
|
+
isAmino(o: any): o is QueryConsensusStateHeightsRequestAmino {
|
|
1299
|
+
return o && (o.$typeUrl === QueryConsensusStateHeightsRequest.typeUrl || typeof o.client_id === "string");
|
|
1300
|
+
},
|
|
1301
|
+
encode(message: QueryConsensusStateHeightsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1302
|
+
if (message.clientId !== "") {
|
|
1303
|
+
writer.uint32(10).string(message.clientId);
|
|
1304
|
+
}
|
|
1305
|
+
if (message.pagination !== undefined) {
|
|
1306
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1307
|
+
}
|
|
1308
|
+
return writer;
|
|
1309
|
+
},
|
|
1310
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsRequest {
|
|
1311
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1312
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1313
|
+
const message = createBaseQueryConsensusStateHeightsRequest();
|
|
1314
|
+
while (reader.pos < end) {
|
|
1315
|
+
const tag = reader.uint32();
|
|
1316
|
+
switch (tag >>> 3) {
|
|
1317
|
+
case 1:
|
|
1318
|
+
message.clientId = reader.string();
|
|
1319
|
+
break;
|
|
1320
|
+
case 2:
|
|
1321
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1322
|
+
break;
|
|
1323
|
+
default:
|
|
1324
|
+
reader.skipType(tag & 7);
|
|
1325
|
+
break;
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
return message;
|
|
1329
|
+
},
|
|
1330
|
+
fromPartial(object: DeepPartial<QueryConsensusStateHeightsRequest>): QueryConsensusStateHeightsRequest {
|
|
1331
|
+
const message = createBaseQueryConsensusStateHeightsRequest();
|
|
1332
|
+
message.clientId = object.clientId ?? "";
|
|
1333
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1334
|
+
return message;
|
|
1335
|
+
},
|
|
1336
|
+
fromAmino(object: QueryConsensusStateHeightsRequestAmino): QueryConsensusStateHeightsRequest {
|
|
1337
|
+
const message = createBaseQueryConsensusStateHeightsRequest();
|
|
1338
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
1339
|
+
message.clientId = object.client_id;
|
|
1340
|
+
}
|
|
1341
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1342
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1343
|
+
}
|
|
1344
|
+
return message;
|
|
1345
|
+
},
|
|
1346
|
+
toAmino(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestAmino {
|
|
1347
|
+
const obj: any = {};
|
|
1348
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
1349
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1350
|
+
return obj;
|
|
1351
|
+
},
|
|
1352
|
+
fromAminoMsg(object: QueryConsensusStateHeightsRequestAminoMsg): QueryConsensusStateHeightsRequest {
|
|
1353
|
+
return QueryConsensusStateHeightsRequest.fromAmino(object.value);
|
|
1354
|
+
},
|
|
1355
|
+
toAminoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestAminoMsg {
|
|
1356
|
+
return {
|
|
1357
|
+
type: "cosmos-sdk/QueryConsensusStateHeightsRequest",
|
|
1358
|
+
value: QueryConsensusStateHeightsRequest.toAmino(message)
|
|
1359
|
+
};
|
|
1360
|
+
},
|
|
1361
|
+
fromProtoMsg(message: QueryConsensusStateHeightsRequestProtoMsg): QueryConsensusStateHeightsRequest {
|
|
1362
|
+
return QueryConsensusStateHeightsRequest.decode(message.value);
|
|
1363
|
+
},
|
|
1364
|
+
toProto(message: QueryConsensusStateHeightsRequest): Uint8Array {
|
|
1365
|
+
return QueryConsensusStateHeightsRequest.encode(message).finish();
|
|
1366
|
+
},
|
|
1367
|
+
toProtoMsg(message: QueryConsensusStateHeightsRequest): QueryConsensusStateHeightsRequestProtoMsg {
|
|
1368
|
+
return {
|
|
1369
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest",
|
|
1370
|
+
value: QueryConsensusStateHeightsRequest.encode(message).finish()
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
};
|
|
1374
|
+
GlobalDecoderRegistry.register(QueryConsensusStateHeightsRequest.typeUrl, QueryConsensusStateHeightsRequest);
|
|
1375
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConsensusStateHeightsRequest.aminoType, QueryConsensusStateHeightsRequest.typeUrl);
|
|
1376
|
+
function createBaseQueryConsensusStateHeightsResponse(): QueryConsensusStateHeightsResponse {
|
|
1377
|
+
return {
|
|
1378
|
+
consensusStateHeights: [],
|
|
1379
|
+
pagination: undefined
|
|
1380
|
+
};
|
|
1381
|
+
}
|
|
1382
|
+
export const QueryConsensusStateHeightsResponse = {
|
|
1383
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse",
|
|
1384
|
+
aminoType: "cosmos-sdk/QueryConsensusStateHeightsResponse",
|
|
1385
|
+
is(o: any): o is QueryConsensusStateHeightsResponse {
|
|
1386
|
+
return o && (o.$typeUrl === QueryConsensusStateHeightsResponse.typeUrl || Array.isArray(o.consensusStateHeights) && (!o.consensusStateHeights.length || Height.is(o.consensusStateHeights[0])));
|
|
1387
|
+
},
|
|
1388
|
+
isAmino(o: any): o is QueryConsensusStateHeightsResponseAmino {
|
|
1389
|
+
return o && (o.$typeUrl === QueryConsensusStateHeightsResponse.typeUrl || Array.isArray(o.consensus_state_heights) && (!o.consensus_state_heights.length || Height.isAmino(o.consensus_state_heights[0])));
|
|
1390
|
+
},
|
|
1391
|
+
encode(message: QueryConsensusStateHeightsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1392
|
+
for (const v of message.consensusStateHeights) {
|
|
1393
|
+
Height.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1394
|
+
}
|
|
1395
|
+
if (message.pagination !== undefined) {
|
|
1396
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1397
|
+
}
|
|
1398
|
+
return writer;
|
|
1399
|
+
},
|
|
1400
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsResponse {
|
|
1401
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1402
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1403
|
+
const message = createBaseQueryConsensusStateHeightsResponse();
|
|
1404
|
+
while (reader.pos < end) {
|
|
1405
|
+
const tag = reader.uint32();
|
|
1406
|
+
switch (tag >>> 3) {
|
|
1407
|
+
case 1:
|
|
1408
|
+
message.consensusStateHeights.push(Height.decode(reader, reader.uint32()));
|
|
1409
|
+
break;
|
|
1410
|
+
case 2:
|
|
1411
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1412
|
+
break;
|
|
1413
|
+
default:
|
|
1414
|
+
reader.skipType(tag & 7);
|
|
1415
|
+
break;
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
return message;
|
|
1419
|
+
},
|
|
1420
|
+
fromPartial(object: DeepPartial<QueryConsensusStateHeightsResponse>): QueryConsensusStateHeightsResponse {
|
|
1421
|
+
const message = createBaseQueryConsensusStateHeightsResponse();
|
|
1422
|
+
message.consensusStateHeights = object.consensusStateHeights?.map(e => Height.fromPartial(e)) || [];
|
|
1423
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1424
|
+
return message;
|
|
1425
|
+
},
|
|
1426
|
+
fromAmino(object: QueryConsensusStateHeightsResponseAmino): QueryConsensusStateHeightsResponse {
|
|
1427
|
+
const message = createBaseQueryConsensusStateHeightsResponse();
|
|
1428
|
+
message.consensusStateHeights = object.consensus_state_heights?.map(e => Height.fromAmino(e)) || [];
|
|
1429
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1430
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1431
|
+
}
|
|
1432
|
+
return message;
|
|
1433
|
+
},
|
|
1434
|
+
toAmino(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseAmino {
|
|
1435
|
+
const obj: any = {};
|
|
1436
|
+
if (message.consensusStateHeights) {
|
|
1437
|
+
obj.consensus_state_heights = message.consensusStateHeights.map(e => e ? Height.toAmino(e) : undefined);
|
|
1438
|
+
} else {
|
|
1439
|
+
obj.consensus_state_heights = message.consensusStateHeights;
|
|
1440
|
+
}
|
|
1441
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1442
|
+
return obj;
|
|
1443
|
+
},
|
|
1444
|
+
fromAminoMsg(object: QueryConsensusStateHeightsResponseAminoMsg): QueryConsensusStateHeightsResponse {
|
|
1445
|
+
return QueryConsensusStateHeightsResponse.fromAmino(object.value);
|
|
1446
|
+
},
|
|
1447
|
+
toAminoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseAminoMsg {
|
|
1448
|
+
return {
|
|
1449
|
+
type: "cosmos-sdk/QueryConsensusStateHeightsResponse",
|
|
1450
|
+
value: QueryConsensusStateHeightsResponse.toAmino(message)
|
|
1451
|
+
};
|
|
1452
|
+
},
|
|
1453
|
+
fromProtoMsg(message: QueryConsensusStateHeightsResponseProtoMsg): QueryConsensusStateHeightsResponse {
|
|
1454
|
+
return QueryConsensusStateHeightsResponse.decode(message.value);
|
|
1455
|
+
},
|
|
1456
|
+
toProto(message: QueryConsensusStateHeightsResponse): Uint8Array {
|
|
1457
|
+
return QueryConsensusStateHeightsResponse.encode(message).finish();
|
|
1458
|
+
},
|
|
1459
|
+
toProtoMsg(message: QueryConsensusStateHeightsResponse): QueryConsensusStateHeightsResponseProtoMsg {
|
|
1460
|
+
return {
|
|
1461
|
+
typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse",
|
|
1462
|
+
value: QueryConsensusStateHeightsResponse.encode(message).finish()
|
|
1463
|
+
};
|
|
1464
|
+
}
|
|
1465
|
+
};
|
|
1466
|
+
GlobalDecoderRegistry.register(QueryConsensusStateHeightsResponse.typeUrl, QueryConsensusStateHeightsResponse);
|
|
1467
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConsensusStateHeightsResponse.aminoType, QueryConsensusStateHeightsResponse.typeUrl);
|
|
1468
|
+
function createBaseQueryClientStatusRequest(): QueryClientStatusRequest {
|
|
1469
|
+
return {
|
|
1470
|
+
clientId: ""
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
export const QueryClientStatusRequest = {
|
|
1474
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest",
|
|
1475
|
+
aminoType: "cosmos-sdk/QueryClientStatusRequest",
|
|
1476
|
+
is(o: any): o is QueryClientStatusRequest {
|
|
1477
|
+
return o && (o.$typeUrl === QueryClientStatusRequest.typeUrl || typeof o.clientId === "string");
|
|
1478
|
+
},
|
|
1479
|
+
isAmino(o: any): o is QueryClientStatusRequestAmino {
|
|
1480
|
+
return o && (o.$typeUrl === QueryClientStatusRequest.typeUrl || typeof o.client_id === "string");
|
|
1481
|
+
},
|
|
1482
|
+
encode(message: QueryClientStatusRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1483
|
+
if (message.clientId !== "") {
|
|
1484
|
+
writer.uint32(10).string(message.clientId);
|
|
1485
|
+
}
|
|
1486
|
+
return writer;
|
|
1487
|
+
},
|
|
1488
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusRequest {
|
|
1489
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1490
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1491
|
+
const message = createBaseQueryClientStatusRequest();
|
|
1492
|
+
while (reader.pos < end) {
|
|
1493
|
+
const tag = reader.uint32();
|
|
1494
|
+
switch (tag >>> 3) {
|
|
1495
|
+
case 1:
|
|
1496
|
+
message.clientId = reader.string();
|
|
1497
|
+
break;
|
|
1498
|
+
default:
|
|
1499
|
+
reader.skipType(tag & 7);
|
|
1500
|
+
break;
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
return message;
|
|
1504
|
+
},
|
|
1505
|
+
fromPartial(object: DeepPartial<QueryClientStatusRequest>): QueryClientStatusRequest {
|
|
1506
|
+
const message = createBaseQueryClientStatusRequest();
|
|
1507
|
+
message.clientId = object.clientId ?? "";
|
|
1508
|
+
return message;
|
|
1509
|
+
},
|
|
1510
|
+
fromAmino(object: QueryClientStatusRequestAmino): QueryClientStatusRequest {
|
|
1511
|
+
const message = createBaseQueryClientStatusRequest();
|
|
1512
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
1513
|
+
message.clientId = object.client_id;
|
|
1514
|
+
}
|
|
1515
|
+
return message;
|
|
1516
|
+
},
|
|
1517
|
+
toAmino(message: QueryClientStatusRequest): QueryClientStatusRequestAmino {
|
|
1518
|
+
const obj: any = {};
|
|
1519
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
1520
|
+
return obj;
|
|
1521
|
+
},
|
|
1522
|
+
fromAminoMsg(object: QueryClientStatusRequestAminoMsg): QueryClientStatusRequest {
|
|
1523
|
+
return QueryClientStatusRequest.fromAmino(object.value);
|
|
1524
|
+
},
|
|
1525
|
+
toAminoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestAminoMsg {
|
|
1526
|
+
return {
|
|
1527
|
+
type: "cosmos-sdk/QueryClientStatusRequest",
|
|
1528
|
+
value: QueryClientStatusRequest.toAmino(message)
|
|
1529
|
+
};
|
|
1530
|
+
},
|
|
1531
|
+
fromProtoMsg(message: QueryClientStatusRequestProtoMsg): QueryClientStatusRequest {
|
|
1532
|
+
return QueryClientStatusRequest.decode(message.value);
|
|
1533
|
+
},
|
|
1534
|
+
toProto(message: QueryClientStatusRequest): Uint8Array {
|
|
1535
|
+
return QueryClientStatusRequest.encode(message).finish();
|
|
1536
|
+
},
|
|
1537
|
+
toProtoMsg(message: QueryClientStatusRequest): QueryClientStatusRequestProtoMsg {
|
|
1538
|
+
return {
|
|
1539
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest",
|
|
1540
|
+
value: QueryClientStatusRequest.encode(message).finish()
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
};
|
|
1544
|
+
GlobalDecoderRegistry.register(QueryClientStatusRequest.typeUrl, QueryClientStatusRequest);
|
|
1545
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryClientStatusRequest.aminoType, QueryClientStatusRequest.typeUrl);
|
|
1546
|
+
function createBaseQueryClientStatusResponse(): QueryClientStatusResponse {
|
|
1547
|
+
return {
|
|
1548
|
+
status: ""
|
|
1549
|
+
};
|
|
1550
|
+
}
|
|
1551
|
+
export const QueryClientStatusResponse = {
|
|
1552
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse",
|
|
1553
|
+
aminoType: "cosmos-sdk/QueryClientStatusResponse",
|
|
1554
|
+
is(o: any): o is QueryClientStatusResponse {
|
|
1555
|
+
return o && (o.$typeUrl === QueryClientStatusResponse.typeUrl || typeof o.status === "string");
|
|
1556
|
+
},
|
|
1557
|
+
isAmino(o: any): o is QueryClientStatusResponseAmino {
|
|
1558
|
+
return o && (o.$typeUrl === QueryClientStatusResponse.typeUrl || typeof o.status === "string");
|
|
1559
|
+
},
|
|
1560
|
+
encode(message: QueryClientStatusResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1561
|
+
if (message.status !== "") {
|
|
1562
|
+
writer.uint32(10).string(message.status);
|
|
1563
|
+
}
|
|
1564
|
+
return writer;
|
|
1565
|
+
},
|
|
1566
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusResponse {
|
|
1567
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1568
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1569
|
+
const message = createBaseQueryClientStatusResponse();
|
|
1570
|
+
while (reader.pos < end) {
|
|
1571
|
+
const tag = reader.uint32();
|
|
1572
|
+
switch (tag >>> 3) {
|
|
1573
|
+
case 1:
|
|
1574
|
+
message.status = reader.string();
|
|
1575
|
+
break;
|
|
1576
|
+
default:
|
|
1577
|
+
reader.skipType(tag & 7);
|
|
1578
|
+
break;
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
return message;
|
|
1582
|
+
},
|
|
1583
|
+
fromPartial(object: DeepPartial<QueryClientStatusResponse>): QueryClientStatusResponse {
|
|
1584
|
+
const message = createBaseQueryClientStatusResponse();
|
|
1585
|
+
message.status = object.status ?? "";
|
|
1586
|
+
return message;
|
|
1587
|
+
},
|
|
1588
|
+
fromAmino(object: QueryClientStatusResponseAmino): QueryClientStatusResponse {
|
|
1589
|
+
const message = createBaseQueryClientStatusResponse();
|
|
1590
|
+
if (object.status !== undefined && object.status !== null) {
|
|
1591
|
+
message.status = object.status;
|
|
1592
|
+
}
|
|
1593
|
+
return message;
|
|
1594
|
+
},
|
|
1595
|
+
toAmino(message: QueryClientStatusResponse): QueryClientStatusResponseAmino {
|
|
1596
|
+
const obj: any = {};
|
|
1597
|
+
obj.status = message.status === "" ? undefined : message.status;
|
|
1598
|
+
return obj;
|
|
1599
|
+
},
|
|
1600
|
+
fromAminoMsg(object: QueryClientStatusResponseAminoMsg): QueryClientStatusResponse {
|
|
1601
|
+
return QueryClientStatusResponse.fromAmino(object.value);
|
|
1602
|
+
},
|
|
1603
|
+
toAminoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseAminoMsg {
|
|
1604
|
+
return {
|
|
1605
|
+
type: "cosmos-sdk/QueryClientStatusResponse",
|
|
1606
|
+
value: QueryClientStatusResponse.toAmino(message)
|
|
1607
|
+
};
|
|
1608
|
+
},
|
|
1609
|
+
fromProtoMsg(message: QueryClientStatusResponseProtoMsg): QueryClientStatusResponse {
|
|
1610
|
+
return QueryClientStatusResponse.decode(message.value);
|
|
1611
|
+
},
|
|
1612
|
+
toProto(message: QueryClientStatusResponse): Uint8Array {
|
|
1613
|
+
return QueryClientStatusResponse.encode(message).finish();
|
|
1614
|
+
},
|
|
1615
|
+
toProtoMsg(message: QueryClientStatusResponse): QueryClientStatusResponseProtoMsg {
|
|
1616
|
+
return {
|
|
1617
|
+
typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse",
|
|
1618
|
+
value: QueryClientStatusResponse.encode(message).finish()
|
|
1619
|
+
};
|
|
1620
|
+
}
|
|
1621
|
+
};
|
|
1622
|
+
GlobalDecoderRegistry.register(QueryClientStatusResponse.typeUrl, QueryClientStatusResponse);
|
|
1623
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryClientStatusResponse.aminoType, QueryClientStatusResponse.typeUrl);
|
|
1624
|
+
function createBaseQueryClientParamsRequest(): QueryClientParamsRequest {
|
|
1625
|
+
return {};
|
|
1626
|
+
}
|
|
1627
|
+
export const QueryClientParamsRequest = {
|
|
1628
|
+
typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest",
|
|
1629
|
+
aminoType: "cosmos-sdk/QueryClientParamsRequest",
|
|
1630
|
+
is(o: any): o is QueryClientParamsRequest {
|
|
1631
|
+
return o && o.$typeUrl === QueryClientParamsRequest.typeUrl;
|
|
1632
|
+
},
|
|
1633
|
+
isAmino(o: any): o is QueryClientParamsRequestAmino {
|
|
1634
|
+
return o && o.$typeUrl === QueryClientParamsRequest.typeUrl;
|
|
1635
|
+
},
|
|
1636
|
+
encode(_: QueryClientParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1637
|
+
return writer;
|
|
1638
|
+
},
|
|
1639
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsRequest {
|
|
1640
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1641
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1642
|
+
const message = createBaseQueryClientParamsRequest();
|
|
1643
|
+
while (reader.pos < end) {
|
|
1644
|
+
const tag = reader.uint32();
|
|
1645
|
+
switch (tag >>> 3) {
|
|
1646
|
+
default:
|
|
1647
|
+
reader.skipType(tag & 7);
|
|
1648
|
+
break;
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
return message;
|
|
1652
|
+
},
|
|
1653
|
+
fromPartial(_: DeepPartial<QueryClientParamsRequest>): QueryClientParamsRequest {
|
|
1654
|
+
const message = createBaseQueryClientParamsRequest();
|
|
1655
|
+
return message;
|
|
1656
|
+
},
|
|
1657
|
+
fromAmino(_: QueryClientParamsRequestAmino): QueryClientParamsRequest {
|
|
1658
|
+
const message = createBaseQueryClientParamsRequest();
|
|
1659
|
+
return message;
|
|
1660
|
+
},
|
|
1661
|
+
toAmino(_: QueryClientParamsRequest): QueryClientParamsRequestAmino {
|
|
1662
|
+
const obj: any = {};
|
|
1663
|
+
return obj;
|
|
1664
|
+
},
|
|
1665
|
+
fromAminoMsg(object: QueryClientParamsRequestAminoMsg): QueryClientParamsRequest {
|
|
1666
|
+
return QueryClientParamsRequest.fromAmino(object.value);
|
|
1667
|
+
},
|
|
1668
|
+
toAminoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestAminoMsg {
|
|
1669
|
+
return {
|
|
1670
|
+
type: "cosmos-sdk/QueryClientParamsRequest",
|
|
1671
|
+
value: QueryClientParamsRequest.toAmino(message)
|
|
1672
|
+
};
|
|
1673
|
+
},
|
|
1674
|
+
fromProtoMsg(message: QueryClientParamsRequestProtoMsg): QueryClientParamsRequest {
|
|
1675
|
+
return QueryClientParamsRequest.decode(message.value);
|
|
1676
|
+
},
|
|
1677
|
+
toProto(message: QueryClientParamsRequest): Uint8Array {
|
|
1678
|
+
return QueryClientParamsRequest.encode(message).finish();
|
|
1679
|
+
},
|
|
1680
|
+
toProtoMsg(message: QueryClientParamsRequest): QueryClientParamsRequestProtoMsg {
|
|
1681
|
+
return {
|
|
1682
|
+
typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest",
|
|
1683
|
+
value: QueryClientParamsRequest.encode(message).finish()
|
|
1684
|
+
};
|
|
1685
|
+
}
|
|
1686
|
+
};
|
|
1687
|
+
GlobalDecoderRegistry.register(QueryClientParamsRequest.typeUrl, QueryClientParamsRequest);
|
|
1688
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryClientParamsRequest.aminoType, QueryClientParamsRequest.typeUrl);
|
|
1689
|
+
function createBaseQueryClientParamsResponse(): QueryClientParamsResponse {
|
|
1690
|
+
return {
|
|
1691
|
+
params: undefined
|
|
1692
|
+
};
|
|
1693
|
+
}
|
|
1694
|
+
export const QueryClientParamsResponse = {
|
|
1695
|
+
typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse",
|
|
1696
|
+
aminoType: "cosmos-sdk/QueryClientParamsResponse",
|
|
1697
|
+
is(o: any): o is QueryClientParamsResponse {
|
|
1698
|
+
return o && o.$typeUrl === QueryClientParamsResponse.typeUrl;
|
|
1699
|
+
},
|
|
1700
|
+
isAmino(o: any): o is QueryClientParamsResponseAmino {
|
|
1701
|
+
return o && o.$typeUrl === QueryClientParamsResponse.typeUrl;
|
|
1702
|
+
},
|
|
1703
|
+
encode(message: QueryClientParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1704
|
+
if (message.params !== undefined) {
|
|
1705
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
1706
|
+
}
|
|
1707
|
+
return writer;
|
|
1708
|
+
},
|
|
1709
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsResponse {
|
|
1710
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1711
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1712
|
+
const message = createBaseQueryClientParamsResponse();
|
|
1713
|
+
while (reader.pos < end) {
|
|
1714
|
+
const tag = reader.uint32();
|
|
1715
|
+
switch (tag >>> 3) {
|
|
1716
|
+
case 1:
|
|
1717
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
1718
|
+
break;
|
|
1719
|
+
default:
|
|
1720
|
+
reader.skipType(tag & 7);
|
|
1721
|
+
break;
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
return message;
|
|
1725
|
+
},
|
|
1726
|
+
fromPartial(object: DeepPartial<QueryClientParamsResponse>): QueryClientParamsResponse {
|
|
1727
|
+
const message = createBaseQueryClientParamsResponse();
|
|
1728
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
1729
|
+
return message;
|
|
1730
|
+
},
|
|
1731
|
+
fromAmino(object: QueryClientParamsResponseAmino): QueryClientParamsResponse {
|
|
1732
|
+
const message = createBaseQueryClientParamsResponse();
|
|
1733
|
+
if (object.params !== undefined && object.params !== null) {
|
|
1734
|
+
message.params = Params.fromAmino(object.params);
|
|
1735
|
+
}
|
|
1736
|
+
return message;
|
|
1737
|
+
},
|
|
1738
|
+
toAmino(message: QueryClientParamsResponse): QueryClientParamsResponseAmino {
|
|
1739
|
+
const obj: any = {};
|
|
1740
|
+
obj.params = message.params ? Params.toAmino(message.params) : undefined;
|
|
1741
|
+
return obj;
|
|
1742
|
+
},
|
|
1743
|
+
fromAminoMsg(object: QueryClientParamsResponseAminoMsg): QueryClientParamsResponse {
|
|
1744
|
+
return QueryClientParamsResponse.fromAmino(object.value);
|
|
1745
|
+
},
|
|
1746
|
+
toAminoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseAminoMsg {
|
|
1747
|
+
return {
|
|
1748
|
+
type: "cosmos-sdk/QueryClientParamsResponse",
|
|
1749
|
+
value: QueryClientParamsResponse.toAmino(message)
|
|
1750
|
+
};
|
|
1751
|
+
},
|
|
1752
|
+
fromProtoMsg(message: QueryClientParamsResponseProtoMsg): QueryClientParamsResponse {
|
|
1753
|
+
return QueryClientParamsResponse.decode(message.value);
|
|
1754
|
+
},
|
|
1755
|
+
toProto(message: QueryClientParamsResponse): Uint8Array {
|
|
1756
|
+
return QueryClientParamsResponse.encode(message).finish();
|
|
1757
|
+
},
|
|
1758
|
+
toProtoMsg(message: QueryClientParamsResponse): QueryClientParamsResponseProtoMsg {
|
|
1759
|
+
return {
|
|
1760
|
+
typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse",
|
|
1761
|
+
value: QueryClientParamsResponse.encode(message).finish()
|
|
1762
|
+
};
|
|
1763
|
+
}
|
|
1764
|
+
};
|
|
1765
|
+
GlobalDecoderRegistry.register(QueryClientParamsResponse.typeUrl, QueryClientParamsResponse);
|
|
1766
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryClientParamsResponse.aminoType, QueryClientParamsResponse.typeUrl);
|
|
1767
|
+
function createBaseQueryUpgradedClientStateRequest(): QueryUpgradedClientStateRequest {
|
|
1768
|
+
return {};
|
|
1769
|
+
}
|
|
1770
|
+
export const QueryUpgradedClientStateRequest = {
|
|
1771
|
+
typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest",
|
|
1772
|
+
aminoType: "cosmos-sdk/QueryUpgradedClientStateRequest",
|
|
1773
|
+
is(o: any): o is QueryUpgradedClientStateRequest {
|
|
1774
|
+
return o && o.$typeUrl === QueryUpgradedClientStateRequest.typeUrl;
|
|
1775
|
+
},
|
|
1776
|
+
isAmino(o: any): o is QueryUpgradedClientStateRequestAmino {
|
|
1777
|
+
return o && o.$typeUrl === QueryUpgradedClientStateRequest.typeUrl;
|
|
1778
|
+
},
|
|
1779
|
+
encode(_: QueryUpgradedClientStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1780
|
+
return writer;
|
|
1781
|
+
},
|
|
1782
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateRequest {
|
|
1783
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1784
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1785
|
+
const message = createBaseQueryUpgradedClientStateRequest();
|
|
1786
|
+
while (reader.pos < end) {
|
|
1787
|
+
const tag = reader.uint32();
|
|
1788
|
+
switch (tag >>> 3) {
|
|
1789
|
+
default:
|
|
1790
|
+
reader.skipType(tag & 7);
|
|
1791
|
+
break;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
return message;
|
|
1795
|
+
},
|
|
1796
|
+
fromPartial(_: DeepPartial<QueryUpgradedClientStateRequest>): QueryUpgradedClientStateRequest {
|
|
1797
|
+
const message = createBaseQueryUpgradedClientStateRequest();
|
|
1798
|
+
return message;
|
|
1799
|
+
},
|
|
1800
|
+
fromAmino(_: QueryUpgradedClientStateRequestAmino): QueryUpgradedClientStateRequest {
|
|
1801
|
+
const message = createBaseQueryUpgradedClientStateRequest();
|
|
1802
|
+
return message;
|
|
1803
|
+
},
|
|
1804
|
+
toAmino(_: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestAmino {
|
|
1805
|
+
const obj: any = {};
|
|
1806
|
+
return obj;
|
|
1807
|
+
},
|
|
1808
|
+
fromAminoMsg(object: QueryUpgradedClientStateRequestAminoMsg): QueryUpgradedClientStateRequest {
|
|
1809
|
+
return QueryUpgradedClientStateRequest.fromAmino(object.value);
|
|
1810
|
+
},
|
|
1811
|
+
toAminoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestAminoMsg {
|
|
1812
|
+
return {
|
|
1813
|
+
type: "cosmos-sdk/QueryUpgradedClientStateRequest",
|
|
1814
|
+
value: QueryUpgradedClientStateRequest.toAmino(message)
|
|
1815
|
+
};
|
|
1816
|
+
},
|
|
1817
|
+
fromProtoMsg(message: QueryUpgradedClientStateRequestProtoMsg): QueryUpgradedClientStateRequest {
|
|
1818
|
+
return QueryUpgradedClientStateRequest.decode(message.value);
|
|
1819
|
+
},
|
|
1820
|
+
toProto(message: QueryUpgradedClientStateRequest): Uint8Array {
|
|
1821
|
+
return QueryUpgradedClientStateRequest.encode(message).finish();
|
|
1822
|
+
},
|
|
1823
|
+
toProtoMsg(message: QueryUpgradedClientStateRequest): QueryUpgradedClientStateRequestProtoMsg {
|
|
1824
|
+
return {
|
|
1825
|
+
typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest",
|
|
1826
|
+
value: QueryUpgradedClientStateRequest.encode(message).finish()
|
|
1827
|
+
};
|
|
1828
|
+
}
|
|
1829
|
+
};
|
|
1830
|
+
GlobalDecoderRegistry.register(QueryUpgradedClientStateRequest.typeUrl, QueryUpgradedClientStateRequest);
|
|
1831
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryUpgradedClientStateRequest.aminoType, QueryUpgradedClientStateRequest.typeUrl);
|
|
1832
|
+
function createBaseQueryUpgradedClientStateResponse(): QueryUpgradedClientStateResponse {
|
|
1833
|
+
return {
|
|
1834
|
+
upgradedClientState: undefined
|
|
1835
|
+
};
|
|
1836
|
+
}
|
|
1837
|
+
export const QueryUpgradedClientStateResponse = {
|
|
1838
|
+
typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse",
|
|
1839
|
+
aminoType: "cosmos-sdk/QueryUpgradedClientStateResponse",
|
|
1840
|
+
is(o: any): o is QueryUpgradedClientStateResponse {
|
|
1841
|
+
return o && o.$typeUrl === QueryUpgradedClientStateResponse.typeUrl;
|
|
1842
|
+
},
|
|
1843
|
+
isAmino(o: any): o is QueryUpgradedClientStateResponseAmino {
|
|
1844
|
+
return o && o.$typeUrl === QueryUpgradedClientStateResponse.typeUrl;
|
|
1845
|
+
},
|
|
1846
|
+
encode(message: QueryUpgradedClientStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1847
|
+
if (message.upgradedClientState !== undefined) {
|
|
1848
|
+
Any.encode(message.upgradedClientState, writer.uint32(10).fork()).ldelim();
|
|
1849
|
+
}
|
|
1850
|
+
return writer;
|
|
1851
|
+
},
|
|
1852
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateResponse {
|
|
1853
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1854
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1855
|
+
const message = createBaseQueryUpgradedClientStateResponse();
|
|
1856
|
+
while (reader.pos < end) {
|
|
1857
|
+
const tag = reader.uint32();
|
|
1858
|
+
switch (tag >>> 3) {
|
|
1859
|
+
case 1:
|
|
1860
|
+
message.upgradedClientState = Any.decode(reader, reader.uint32());
|
|
1861
|
+
break;
|
|
1862
|
+
default:
|
|
1863
|
+
reader.skipType(tag & 7);
|
|
1864
|
+
break;
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
return message;
|
|
1868
|
+
},
|
|
1869
|
+
fromPartial(object: DeepPartial<QueryUpgradedClientStateResponse>): QueryUpgradedClientStateResponse {
|
|
1870
|
+
const message = createBaseQueryUpgradedClientStateResponse();
|
|
1871
|
+
message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined;
|
|
1872
|
+
return message;
|
|
1873
|
+
},
|
|
1874
|
+
fromAmino(object: QueryUpgradedClientStateResponseAmino): QueryUpgradedClientStateResponse {
|
|
1875
|
+
const message = createBaseQueryUpgradedClientStateResponse();
|
|
1876
|
+
if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) {
|
|
1877
|
+
message.upgradedClientState = Any.fromAmino(object.upgraded_client_state);
|
|
1878
|
+
}
|
|
1879
|
+
return message;
|
|
1880
|
+
},
|
|
1881
|
+
toAmino(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseAmino {
|
|
1882
|
+
const obj: any = {};
|
|
1883
|
+
obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined;
|
|
1884
|
+
return obj;
|
|
1885
|
+
},
|
|
1886
|
+
fromAminoMsg(object: QueryUpgradedClientStateResponseAminoMsg): QueryUpgradedClientStateResponse {
|
|
1887
|
+
return QueryUpgradedClientStateResponse.fromAmino(object.value);
|
|
1888
|
+
},
|
|
1889
|
+
toAminoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseAminoMsg {
|
|
1890
|
+
return {
|
|
1891
|
+
type: "cosmos-sdk/QueryUpgradedClientStateResponse",
|
|
1892
|
+
value: QueryUpgradedClientStateResponse.toAmino(message)
|
|
1893
|
+
};
|
|
1894
|
+
},
|
|
1895
|
+
fromProtoMsg(message: QueryUpgradedClientStateResponseProtoMsg): QueryUpgradedClientStateResponse {
|
|
1896
|
+
return QueryUpgradedClientStateResponse.decode(message.value);
|
|
1897
|
+
},
|
|
1898
|
+
toProto(message: QueryUpgradedClientStateResponse): Uint8Array {
|
|
1899
|
+
return QueryUpgradedClientStateResponse.encode(message).finish();
|
|
1900
|
+
},
|
|
1901
|
+
toProtoMsg(message: QueryUpgradedClientStateResponse): QueryUpgradedClientStateResponseProtoMsg {
|
|
1902
|
+
return {
|
|
1903
|
+
typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse",
|
|
1904
|
+
value: QueryUpgradedClientStateResponse.encode(message).finish()
|
|
1905
|
+
};
|
|
1906
|
+
}
|
|
1907
|
+
};
|
|
1908
|
+
GlobalDecoderRegistry.register(QueryUpgradedClientStateResponse.typeUrl, QueryUpgradedClientStateResponse);
|
|
1909
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryUpgradedClientStateResponse.aminoType, QueryUpgradedClientStateResponse.typeUrl);
|
|
1910
|
+
function createBaseQueryUpgradedConsensusStateRequest(): QueryUpgradedConsensusStateRequest {
|
|
1911
|
+
return {};
|
|
1912
|
+
}
|
|
1913
|
+
export const QueryUpgradedConsensusStateRequest = {
|
|
1914
|
+
typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest",
|
|
1915
|
+
aminoType: "cosmos-sdk/QueryUpgradedConsensusStateRequest",
|
|
1916
|
+
is(o: any): o is QueryUpgradedConsensusStateRequest {
|
|
1917
|
+
return o && o.$typeUrl === QueryUpgradedConsensusStateRequest.typeUrl;
|
|
1918
|
+
},
|
|
1919
|
+
isAmino(o: any): o is QueryUpgradedConsensusStateRequestAmino {
|
|
1920
|
+
return o && o.$typeUrl === QueryUpgradedConsensusStateRequest.typeUrl;
|
|
1921
|
+
},
|
|
1922
|
+
encode(_: QueryUpgradedConsensusStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1923
|
+
return writer;
|
|
1924
|
+
},
|
|
1925
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest {
|
|
1926
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1927
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1928
|
+
const message = createBaseQueryUpgradedConsensusStateRequest();
|
|
1929
|
+
while (reader.pos < end) {
|
|
1930
|
+
const tag = reader.uint32();
|
|
1931
|
+
switch (tag >>> 3) {
|
|
1932
|
+
default:
|
|
1933
|
+
reader.skipType(tag & 7);
|
|
1934
|
+
break;
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
return message;
|
|
1938
|
+
},
|
|
1939
|
+
fromPartial(_: DeepPartial<QueryUpgradedConsensusStateRequest>): QueryUpgradedConsensusStateRequest {
|
|
1940
|
+
const message = createBaseQueryUpgradedConsensusStateRequest();
|
|
1941
|
+
return message;
|
|
1942
|
+
},
|
|
1943
|
+
fromAmino(_: QueryUpgradedConsensusStateRequestAmino): QueryUpgradedConsensusStateRequest {
|
|
1944
|
+
const message = createBaseQueryUpgradedConsensusStateRequest();
|
|
1945
|
+
return message;
|
|
1946
|
+
},
|
|
1947
|
+
toAmino(_: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino {
|
|
1948
|
+
const obj: any = {};
|
|
1949
|
+
return obj;
|
|
1950
|
+
},
|
|
1951
|
+
fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest {
|
|
1952
|
+
return QueryUpgradedConsensusStateRequest.fromAmino(object.value);
|
|
1953
|
+
},
|
|
1954
|
+
toAminoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAminoMsg {
|
|
1955
|
+
return {
|
|
1956
|
+
type: "cosmos-sdk/QueryUpgradedConsensusStateRequest",
|
|
1957
|
+
value: QueryUpgradedConsensusStateRequest.toAmino(message)
|
|
1958
|
+
};
|
|
1959
|
+
},
|
|
1960
|
+
fromProtoMsg(message: QueryUpgradedConsensusStateRequestProtoMsg): QueryUpgradedConsensusStateRequest {
|
|
1961
|
+
return QueryUpgradedConsensusStateRequest.decode(message.value);
|
|
1962
|
+
},
|
|
1963
|
+
toProto(message: QueryUpgradedConsensusStateRequest): Uint8Array {
|
|
1964
|
+
return QueryUpgradedConsensusStateRequest.encode(message).finish();
|
|
1965
|
+
},
|
|
1966
|
+
toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg {
|
|
1967
|
+
return {
|
|
1968
|
+
typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest",
|
|
1969
|
+
value: QueryUpgradedConsensusStateRequest.encode(message).finish()
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
};
|
|
1973
|
+
GlobalDecoderRegistry.register(QueryUpgradedConsensusStateRequest.typeUrl, QueryUpgradedConsensusStateRequest);
|
|
1974
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryUpgradedConsensusStateRequest.aminoType, QueryUpgradedConsensusStateRequest.typeUrl);
|
|
1975
|
+
function createBaseQueryUpgradedConsensusStateResponse(): QueryUpgradedConsensusStateResponse {
|
|
1976
|
+
return {
|
|
1977
|
+
upgradedConsensusState: undefined
|
|
1978
|
+
};
|
|
1979
|
+
}
|
|
1980
|
+
export const QueryUpgradedConsensusStateResponse = {
|
|
1981
|
+
typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse",
|
|
1982
|
+
aminoType: "cosmos-sdk/QueryUpgradedConsensusStateResponse",
|
|
1983
|
+
is(o: any): o is QueryUpgradedConsensusStateResponse {
|
|
1984
|
+
return o && o.$typeUrl === QueryUpgradedConsensusStateResponse.typeUrl;
|
|
1985
|
+
},
|
|
1986
|
+
isAmino(o: any): o is QueryUpgradedConsensusStateResponseAmino {
|
|
1987
|
+
return o && o.$typeUrl === QueryUpgradedConsensusStateResponse.typeUrl;
|
|
1988
|
+
},
|
|
1989
|
+
encode(message: QueryUpgradedConsensusStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1990
|
+
if (message.upgradedConsensusState !== undefined) {
|
|
1991
|
+
Any.encode(message.upgradedConsensusState, writer.uint32(10).fork()).ldelim();
|
|
1992
|
+
}
|
|
1993
|
+
return writer;
|
|
1994
|
+
},
|
|
1995
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse {
|
|
1996
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1997
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1998
|
+
const message = createBaseQueryUpgradedConsensusStateResponse();
|
|
1999
|
+
while (reader.pos < end) {
|
|
2000
|
+
const tag = reader.uint32();
|
|
2001
|
+
switch (tag >>> 3) {
|
|
2002
|
+
case 1:
|
|
2003
|
+
message.upgradedConsensusState = Any.decode(reader, reader.uint32());
|
|
2004
|
+
break;
|
|
2005
|
+
default:
|
|
2006
|
+
reader.skipType(tag & 7);
|
|
2007
|
+
break;
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
return message;
|
|
2011
|
+
},
|
|
2012
|
+
fromPartial(object: DeepPartial<QueryUpgradedConsensusStateResponse>): QueryUpgradedConsensusStateResponse {
|
|
2013
|
+
const message = createBaseQueryUpgradedConsensusStateResponse();
|
|
2014
|
+
message.upgradedConsensusState = object.upgradedConsensusState !== undefined && object.upgradedConsensusState !== null ? Any.fromPartial(object.upgradedConsensusState) : undefined;
|
|
2015
|
+
return message;
|
|
2016
|
+
},
|
|
2017
|
+
fromAmino(object: QueryUpgradedConsensusStateResponseAmino): QueryUpgradedConsensusStateResponse {
|
|
2018
|
+
const message = createBaseQueryUpgradedConsensusStateResponse();
|
|
2019
|
+
if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) {
|
|
2020
|
+
message.upgradedConsensusState = Any.fromAmino(object.upgraded_consensus_state);
|
|
2021
|
+
}
|
|
2022
|
+
return message;
|
|
2023
|
+
},
|
|
2024
|
+
toAmino(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAmino {
|
|
2025
|
+
const obj: any = {};
|
|
2026
|
+
obj.upgraded_consensus_state = message.upgradedConsensusState ? Any.toAmino(message.upgradedConsensusState) : undefined;
|
|
2027
|
+
return obj;
|
|
2028
|
+
},
|
|
2029
|
+
fromAminoMsg(object: QueryUpgradedConsensusStateResponseAminoMsg): QueryUpgradedConsensusStateResponse {
|
|
2030
|
+
return QueryUpgradedConsensusStateResponse.fromAmino(object.value);
|
|
2031
|
+
},
|
|
2032
|
+
toAminoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAminoMsg {
|
|
2033
|
+
return {
|
|
2034
|
+
type: "cosmos-sdk/QueryUpgradedConsensusStateResponse",
|
|
2035
|
+
value: QueryUpgradedConsensusStateResponse.toAmino(message)
|
|
2036
|
+
};
|
|
2037
|
+
},
|
|
2038
|
+
fromProtoMsg(message: QueryUpgradedConsensusStateResponseProtoMsg): QueryUpgradedConsensusStateResponse {
|
|
2039
|
+
return QueryUpgradedConsensusStateResponse.decode(message.value);
|
|
2040
|
+
},
|
|
2041
|
+
toProto(message: QueryUpgradedConsensusStateResponse): Uint8Array {
|
|
2042
|
+
return QueryUpgradedConsensusStateResponse.encode(message).finish();
|
|
2043
|
+
},
|
|
2044
|
+
toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg {
|
|
2045
|
+
return {
|
|
2046
|
+
typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse",
|
|
2047
|
+
value: QueryUpgradedConsensusStateResponse.encode(message).finish()
|
|
2048
|
+
};
|
|
2049
|
+
}
|
|
2050
|
+
};
|
|
2051
|
+
GlobalDecoderRegistry.register(QueryUpgradedConsensusStateResponse.typeUrl, QueryUpgradedConsensusStateResponse);
|
|
2052
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryUpgradedConsensusStateResponse.aminoType, QueryUpgradedConsensusStateResponse.typeUrl);
|
|
2053
|
+
function createBaseQueryVerifyMembershipRequest(): QueryVerifyMembershipRequest {
|
|
2054
|
+
return {
|
|
2055
|
+
clientId: "",
|
|
2056
|
+
proof: new Uint8Array(),
|
|
2057
|
+
proofHeight: Height.fromPartial({}),
|
|
2058
|
+
merklePath: MerklePath.fromPartial({}),
|
|
2059
|
+
value: new Uint8Array(),
|
|
2060
|
+
timeDelay: BigInt(0),
|
|
2061
|
+
blockDelay: BigInt(0)
|
|
2062
|
+
};
|
|
2063
|
+
}
|
|
2064
|
+
export const QueryVerifyMembershipRequest = {
|
|
2065
|
+
typeUrl: "/ibc.core.client.v1.QueryVerifyMembershipRequest",
|
|
2066
|
+
aminoType: "cosmos-sdk/QueryVerifyMembershipRequest",
|
|
2067
|
+
is(o: any): o is QueryVerifyMembershipRequest {
|
|
2068
|
+
return o && (o.$typeUrl === QueryVerifyMembershipRequest.typeUrl || typeof o.clientId === "string" && (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.is(o.proofHeight) && MerklePath.is(o.merklePath) && (o.value instanceof Uint8Array || typeof o.value === "string") && typeof o.timeDelay === "bigint" && typeof o.blockDelay === "bigint");
|
|
2069
|
+
},
|
|
2070
|
+
isAmino(o: any): o is QueryVerifyMembershipRequestAmino {
|
|
2071
|
+
return o && (o.$typeUrl === QueryVerifyMembershipRequest.typeUrl || typeof o.client_id === "string" && (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.isAmino(o.proof_height) && MerklePath.isAmino(o.merkle_path) && (o.value instanceof Uint8Array || typeof o.value === "string") && typeof o.time_delay === "bigint" && typeof o.block_delay === "bigint");
|
|
2072
|
+
},
|
|
2073
|
+
encode(message: QueryVerifyMembershipRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2074
|
+
if (message.clientId !== "") {
|
|
2075
|
+
writer.uint32(10).string(message.clientId);
|
|
2076
|
+
}
|
|
2077
|
+
if (message.proof.length !== 0) {
|
|
2078
|
+
writer.uint32(18).bytes(message.proof);
|
|
2079
|
+
}
|
|
2080
|
+
if (message.proofHeight !== undefined) {
|
|
2081
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
2082
|
+
}
|
|
2083
|
+
if (message.merklePath !== undefined) {
|
|
2084
|
+
MerklePath.encode(message.merklePath, writer.uint32(34).fork()).ldelim();
|
|
2085
|
+
}
|
|
2086
|
+
if (message.value.length !== 0) {
|
|
2087
|
+
writer.uint32(42).bytes(message.value);
|
|
2088
|
+
}
|
|
2089
|
+
if (message.timeDelay !== BigInt(0)) {
|
|
2090
|
+
writer.uint32(48).uint64(message.timeDelay);
|
|
2091
|
+
}
|
|
2092
|
+
if (message.blockDelay !== BigInt(0)) {
|
|
2093
|
+
writer.uint32(56).uint64(message.blockDelay);
|
|
2094
|
+
}
|
|
2095
|
+
return writer;
|
|
2096
|
+
},
|
|
2097
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryVerifyMembershipRequest {
|
|
2098
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2099
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2100
|
+
const message = createBaseQueryVerifyMembershipRequest();
|
|
2101
|
+
while (reader.pos < end) {
|
|
2102
|
+
const tag = reader.uint32();
|
|
2103
|
+
switch (tag >>> 3) {
|
|
2104
|
+
case 1:
|
|
2105
|
+
message.clientId = reader.string();
|
|
2106
|
+
break;
|
|
2107
|
+
case 2:
|
|
2108
|
+
message.proof = reader.bytes();
|
|
2109
|
+
break;
|
|
2110
|
+
case 3:
|
|
2111
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
2112
|
+
break;
|
|
2113
|
+
case 4:
|
|
2114
|
+
message.merklePath = MerklePath.decode(reader, reader.uint32());
|
|
2115
|
+
break;
|
|
2116
|
+
case 5:
|
|
2117
|
+
message.value = reader.bytes();
|
|
2118
|
+
break;
|
|
2119
|
+
case 6:
|
|
2120
|
+
message.timeDelay = reader.uint64();
|
|
2121
|
+
break;
|
|
2122
|
+
case 7:
|
|
2123
|
+
message.blockDelay = reader.uint64();
|
|
2124
|
+
break;
|
|
2125
|
+
default:
|
|
2126
|
+
reader.skipType(tag & 7);
|
|
2127
|
+
break;
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
return message;
|
|
2131
|
+
},
|
|
2132
|
+
fromPartial(object: DeepPartial<QueryVerifyMembershipRequest>): QueryVerifyMembershipRequest {
|
|
2133
|
+
const message = createBaseQueryVerifyMembershipRequest();
|
|
2134
|
+
message.clientId = object.clientId ?? "";
|
|
2135
|
+
message.proof = object.proof ?? new Uint8Array();
|
|
2136
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
2137
|
+
message.merklePath = object.merklePath !== undefined && object.merklePath !== null ? MerklePath.fromPartial(object.merklePath) : undefined;
|
|
2138
|
+
message.value = object.value ?? new Uint8Array();
|
|
2139
|
+
message.timeDelay = object.timeDelay !== undefined && object.timeDelay !== null ? BigInt(object.timeDelay.toString()) : BigInt(0);
|
|
2140
|
+
message.blockDelay = object.blockDelay !== undefined && object.blockDelay !== null ? BigInt(object.blockDelay.toString()) : BigInt(0);
|
|
2141
|
+
return message;
|
|
2142
|
+
},
|
|
2143
|
+
fromAmino(object: QueryVerifyMembershipRequestAmino): QueryVerifyMembershipRequest {
|
|
2144
|
+
const message = createBaseQueryVerifyMembershipRequest();
|
|
2145
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
2146
|
+
message.clientId = object.client_id;
|
|
2147
|
+
}
|
|
2148
|
+
if (object.proof !== undefined && object.proof !== null) {
|
|
2149
|
+
message.proof = bytesFromBase64(object.proof);
|
|
2150
|
+
}
|
|
2151
|
+
if (object.proof_height !== undefined && object.proof_height !== null) {
|
|
2152
|
+
message.proofHeight = Height.fromAmino(object.proof_height);
|
|
2153
|
+
}
|
|
2154
|
+
if (object.merkle_path !== undefined && object.merkle_path !== null) {
|
|
2155
|
+
message.merklePath = MerklePath.fromAmino(object.merkle_path);
|
|
2156
|
+
}
|
|
2157
|
+
if (object.value !== undefined && object.value !== null) {
|
|
2158
|
+
message.value = bytesFromBase64(object.value);
|
|
2159
|
+
}
|
|
2160
|
+
if (object.time_delay !== undefined && object.time_delay !== null) {
|
|
2161
|
+
message.timeDelay = BigInt(object.time_delay);
|
|
2162
|
+
}
|
|
2163
|
+
if (object.block_delay !== undefined && object.block_delay !== null) {
|
|
2164
|
+
message.blockDelay = BigInt(object.block_delay);
|
|
2165
|
+
}
|
|
2166
|
+
return message;
|
|
2167
|
+
},
|
|
2168
|
+
toAmino(message: QueryVerifyMembershipRequest): QueryVerifyMembershipRequestAmino {
|
|
2169
|
+
const obj: any = {};
|
|
2170
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
2171
|
+
obj.proof = message.proof ? base64FromBytes(message.proof) : undefined;
|
|
2172
|
+
obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {};
|
|
2173
|
+
obj.merkle_path = message.merklePath ? MerklePath.toAmino(message.merklePath) : undefined;
|
|
2174
|
+
obj.value = message.value ? base64FromBytes(message.value) : undefined;
|
|
2175
|
+
obj.time_delay = message.timeDelay !== BigInt(0) ? message.timeDelay?.toString() : undefined;
|
|
2176
|
+
obj.block_delay = message.blockDelay !== BigInt(0) ? message.blockDelay?.toString() : undefined;
|
|
2177
|
+
return obj;
|
|
2178
|
+
},
|
|
2179
|
+
fromAminoMsg(object: QueryVerifyMembershipRequestAminoMsg): QueryVerifyMembershipRequest {
|
|
2180
|
+
return QueryVerifyMembershipRequest.fromAmino(object.value);
|
|
2181
|
+
},
|
|
2182
|
+
toAminoMsg(message: QueryVerifyMembershipRequest): QueryVerifyMembershipRequestAminoMsg {
|
|
2183
|
+
return {
|
|
2184
|
+
type: "cosmos-sdk/QueryVerifyMembershipRequest",
|
|
2185
|
+
value: QueryVerifyMembershipRequest.toAmino(message)
|
|
2186
|
+
};
|
|
2187
|
+
},
|
|
2188
|
+
fromProtoMsg(message: QueryVerifyMembershipRequestProtoMsg): QueryVerifyMembershipRequest {
|
|
2189
|
+
return QueryVerifyMembershipRequest.decode(message.value);
|
|
2190
|
+
},
|
|
2191
|
+
toProto(message: QueryVerifyMembershipRequest): Uint8Array {
|
|
2192
|
+
return QueryVerifyMembershipRequest.encode(message).finish();
|
|
2193
|
+
},
|
|
2194
|
+
toProtoMsg(message: QueryVerifyMembershipRequest): QueryVerifyMembershipRequestProtoMsg {
|
|
2195
|
+
return {
|
|
2196
|
+
typeUrl: "/ibc.core.client.v1.QueryVerifyMembershipRequest",
|
|
2197
|
+
value: QueryVerifyMembershipRequest.encode(message).finish()
|
|
2198
|
+
};
|
|
2199
|
+
}
|
|
2200
|
+
};
|
|
2201
|
+
GlobalDecoderRegistry.register(QueryVerifyMembershipRequest.typeUrl, QueryVerifyMembershipRequest);
|
|
2202
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryVerifyMembershipRequest.aminoType, QueryVerifyMembershipRequest.typeUrl);
|
|
2203
|
+
function createBaseQueryVerifyMembershipResponse(): QueryVerifyMembershipResponse {
|
|
2204
|
+
return {
|
|
2205
|
+
success: false
|
|
2206
|
+
};
|
|
2207
|
+
}
|
|
2208
|
+
export const QueryVerifyMembershipResponse = {
|
|
2209
|
+
typeUrl: "/ibc.core.client.v1.QueryVerifyMembershipResponse",
|
|
2210
|
+
aminoType: "cosmos-sdk/QueryVerifyMembershipResponse",
|
|
2211
|
+
is(o: any): o is QueryVerifyMembershipResponse {
|
|
2212
|
+
return o && (o.$typeUrl === QueryVerifyMembershipResponse.typeUrl || typeof o.success === "boolean");
|
|
2213
|
+
},
|
|
2214
|
+
isAmino(o: any): o is QueryVerifyMembershipResponseAmino {
|
|
2215
|
+
return o && (o.$typeUrl === QueryVerifyMembershipResponse.typeUrl || typeof o.success === "boolean");
|
|
2216
|
+
},
|
|
2217
|
+
encode(message: QueryVerifyMembershipResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2218
|
+
if (message.success === true) {
|
|
2219
|
+
writer.uint32(8).bool(message.success);
|
|
2220
|
+
}
|
|
2221
|
+
return writer;
|
|
2222
|
+
},
|
|
2223
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryVerifyMembershipResponse {
|
|
2224
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2225
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2226
|
+
const message = createBaseQueryVerifyMembershipResponse();
|
|
2227
|
+
while (reader.pos < end) {
|
|
2228
|
+
const tag = reader.uint32();
|
|
2229
|
+
switch (tag >>> 3) {
|
|
2230
|
+
case 1:
|
|
2231
|
+
message.success = reader.bool();
|
|
2232
|
+
break;
|
|
2233
|
+
default:
|
|
2234
|
+
reader.skipType(tag & 7);
|
|
2235
|
+
break;
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
return message;
|
|
2239
|
+
},
|
|
2240
|
+
fromPartial(object: DeepPartial<QueryVerifyMembershipResponse>): QueryVerifyMembershipResponse {
|
|
2241
|
+
const message = createBaseQueryVerifyMembershipResponse();
|
|
2242
|
+
message.success = object.success ?? false;
|
|
2243
|
+
return message;
|
|
2244
|
+
},
|
|
2245
|
+
fromAmino(object: QueryVerifyMembershipResponseAmino): QueryVerifyMembershipResponse {
|
|
2246
|
+
const message = createBaseQueryVerifyMembershipResponse();
|
|
2247
|
+
if (object.success !== undefined && object.success !== null) {
|
|
2248
|
+
message.success = object.success;
|
|
2249
|
+
}
|
|
2250
|
+
return message;
|
|
2251
|
+
},
|
|
2252
|
+
toAmino(message: QueryVerifyMembershipResponse): QueryVerifyMembershipResponseAmino {
|
|
2253
|
+
const obj: any = {};
|
|
2254
|
+
obj.success = message.success === false ? undefined : message.success;
|
|
2255
|
+
return obj;
|
|
2256
|
+
},
|
|
2257
|
+
fromAminoMsg(object: QueryVerifyMembershipResponseAminoMsg): QueryVerifyMembershipResponse {
|
|
2258
|
+
return QueryVerifyMembershipResponse.fromAmino(object.value);
|
|
2259
|
+
},
|
|
2260
|
+
toAminoMsg(message: QueryVerifyMembershipResponse): QueryVerifyMembershipResponseAminoMsg {
|
|
2261
|
+
return {
|
|
2262
|
+
type: "cosmos-sdk/QueryVerifyMembershipResponse",
|
|
2263
|
+
value: QueryVerifyMembershipResponse.toAmino(message)
|
|
2264
|
+
};
|
|
2265
|
+
},
|
|
2266
|
+
fromProtoMsg(message: QueryVerifyMembershipResponseProtoMsg): QueryVerifyMembershipResponse {
|
|
2267
|
+
return QueryVerifyMembershipResponse.decode(message.value);
|
|
2268
|
+
},
|
|
2269
|
+
toProto(message: QueryVerifyMembershipResponse): Uint8Array {
|
|
2270
|
+
return QueryVerifyMembershipResponse.encode(message).finish();
|
|
2271
|
+
},
|
|
2272
|
+
toProtoMsg(message: QueryVerifyMembershipResponse): QueryVerifyMembershipResponseProtoMsg {
|
|
2273
|
+
return {
|
|
2274
|
+
typeUrl: "/ibc.core.client.v1.QueryVerifyMembershipResponse",
|
|
2275
|
+
value: QueryVerifyMembershipResponse.encode(message).finish()
|
|
2276
|
+
};
|
|
2277
|
+
}
|
|
2278
|
+
};
|
|
2279
|
+
GlobalDecoderRegistry.register(QueryVerifyMembershipResponse.typeUrl, QueryVerifyMembershipResponse);
|
|
2280
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryVerifyMembershipResponse.aminoType, QueryVerifyMembershipResponse.typeUrl);
|