@xpla/xpla-react 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 +8 -0
- package/package.json +47 -0
- package/src/amino/amino.ts +1 -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.func.ts +14 -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.ts +550 -0
- package/src/cosmos/auth/v1beta1/genesis.ts +119 -0
- package/src/cosmos/auth/v1beta1/query.rpc.func.ts +113 -0
- package/src/cosmos/auth/v1beta1/query.ts +2034 -0
- package/src/cosmos/auth/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +13 -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.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.rpc.func.ts +36 -0
- package/src/cosmos/authz/v1beta1/query.ts +707 -0
- package/src/cosmos/authz/v1beta1/tx.registry.ts +65 -0
- package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +31 -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.func.ts +14 -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.ts +974 -0
- package/src/cosmos/bank/v1beta1/genesis.ts +307 -0
- package/src/cosmos/bank/v1beta1/query.rpc.func.ts +146 -0
- package/src/cosmos/bank/v1beta1/query.ts +3027 -0
- package/src/cosmos/bank/v1beta1/tx.registry.ts +83 -0
- package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +40 -0
- package/src/cosmos/bank/v1beta1/tx.ts +861 -0
- package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
- package/src/cosmos/base/grpc/v2/service.rpc.func.ts +25 -0
- package/src/cosmos/base/grpc/v2/service.ts +473 -0
- package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +25 -0
- package/src/cosmos/base/node/v1beta1/query.ts +454 -0
- package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +25 -0
- package/src/cosmos/base/reflection/v1beta1/reflection.ts +382 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +69 -0
- package/src/cosmos/base/reflection/v2alpha1/reflection.ts +2727 -0
- package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +80 -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.ts +439 -0
- package/src/cosmos/circuit/module/v1/module.ts +99 -0
- package/src/cosmos/circuit/v1/query.rpc.func.ts +36 -0
- package/src/cosmos/circuit/v1/query.ts +574 -0
- package/src/cosmos/circuit/v1/tx.registry.ts +65 -0
- package/src/cosmos/circuit/v1/tx.rpc.func.ts +31 -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.rpc.func.ts +14 -0
- package/src/cosmos/consensus/v1/query.ts +185 -0
- package/src/cosmos/consensus/v1/tx.registry.ts +29 -0
- package/src/cosmos/consensus/v1/tx.rpc.func.ts +13 -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.registry.ts +47 -0
- package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +22 -0
- package/src/cosmos/crisis/v1beta1/tx.ts +416 -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.ts +225 -0
- package/src/cosmos/crypto/secp256k1/keys.ts +203 -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.ts +1494 -0
- package/src/cosmos/distribution/v1beta1/genesis.ts +1129 -0
- package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +113 -0
- package/src/cosmos/distribution/v1beta1/query.ts +2126 -0
- package/src/cosmos/distribution/v1beta1/tx.registry.ts +137 -0
- package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +67 -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.rpc.func.ts +25 -0
- package/src/cosmos/evidence/v1beta1/query.ts +451 -0
- package/src/cosmos/evidence/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +13 -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.rpc.func.ts +36 -0
- package/src/cosmos/feegrant/v1beta1/query.ts +677 -0
- package/src/cosmos/feegrant/v1beta1/tx.registry.ts +65 -0
- package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +31 -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.ts +1843 -0
- package/src/cosmos/gov/v1/query.rpc.func.ts +102 -0
- package/src/cosmos/gov/v1/query.ts +1970 -0
- package/src/cosmos/gov/v1/tx.registry.ts +137 -0
- package/src/cosmos/gov/v1/tx.rpc.func.ts +67 -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.ts +1425 -0
- package/src/cosmos/gov/v1beta1/query.rpc.func.ts +91 -0
- package/src/cosmos/gov/v1beta1/query.ts +1749 -0
- package/src/cosmos/gov/v1beta1/tx.registry.ts +83 -0
- package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +40 -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.rpc.func.ts +157 -0
- package/src/cosmos/group/v1/query.ts +3015 -0
- package/src/cosmos/group/v1/tx.registry.ts +263 -0
- package/src/cosmos/group/v1/tx.rpc.func.ts +130 -0
- package/src/cosmos/group/v1/tx.ts +3207 -0
- package/src/cosmos/group/v1/types.ts +2081 -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.rpc.func.ts +36 -0
- package/src/cosmos/mint/v1beta1/query.ts +541 -0
- package/src/cosmos/mint/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +13 -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.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.rpc.func.ts +80 -0
- package/src/cosmos/nft/v1beta1/query.ts +1465 -0
- package/src/cosmos/nft/v1beta1/tx.registry.ts +29 -0
- package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +13 -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.func.ts +25 -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.rpc.func.ts +25 -0
- package/src/cosmos/params/v1beta1/query.ts +525 -0
- package/src/cosmos/query/v1/query.ts +1 -0
- package/src/cosmos/reflection/v1/reflection.rpc.func.ts +14 -0
- package/src/cosmos/reflection/v1/reflection.ts +179 -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.rpc.func.ts +36 -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.registry.ts +47 -0
- package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +22 -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.rpc.func.ts +157 -0
- package/src/cosmos/staking/v1beta1/query.ts +3073 -0
- package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
- package/src/cosmos/staking/v1beta1/tx.registry.ts +137 -0
- package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +67 -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.ts +688 -0
- package/src/cosmos/tx/v1beta1/service.rpc.func.ts +102 -0
- package/src/cosmos/tx/v1beta1/service.ts +2294 -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.rpc.func.ts +58 -0
- package/src/cosmos/upgrade/v1beta1/query.ts +1016 -0
- package/src/cosmos/upgrade/v1beta1/tx.registry.ts +47 -0
- package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +22 -0
- package/src/cosmos/upgrade/v1beta1/tx.ts +398 -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.registry.ts +65 -0
- package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +31 -0
- package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
- package/src/cosmos/vesting/v1beta1/vesting.ts +735 -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.rpc.func.ts +124 -0
- package/src/cosmwasm/wasm/v1/query.ts +2560 -0
- package/src/cosmwasm/wasm/v1/tx.registry.ts +317 -0
- package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +157 -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.ts +193 -0
- package/src/ethermint/evm/v1/events.ts +485 -0
- package/src/ethermint/evm/v1/evm.ts +1590 -0
- package/src/ethermint/evm/v1/genesis.ts +240 -0
- package/src/ethermint/evm/v1/query.rpc.func.ts +136 -0
- package/src/ethermint/evm/v1/query.ts +2535 -0
- package/src/ethermint/evm/v1/tx.registry.ts +47 -0
- package/src/ethermint/evm/v1/tx.rpc.func.ts +22 -0
- package/src/ethermint/evm/v1/tx.ts +1333 -0
- package/src/ethermint/feemarket/v1/events.ts +195 -0
- package/src/ethermint/feemarket/v1/feemarket.ts +213 -0
- package/src/ethermint/feemarket/v1/genesis.ts +114 -0
- package/src/ethermint/feemarket/v1/query.rpc.func.ts +36 -0
- package/src/ethermint/feemarket/v1/query.ts +487 -0
- package/src/ethermint/feemarket/v1/tx.registry.ts +29 -0
- package/src/ethermint/feemarket/v1/tx.rpc.func.ts +13 -0
- package/src/ethermint/feemarket/v1/tx.ts +197 -0
- package/src/ethermint/types/v1/account.ts +114 -0
- package/src/ethermint/types/v1/dynamic_fee.ts +91 -0
- package/src/ethermint/types/v1/indexer.ts +205 -0
- package/src/ethermint/types/v1/web3.ts +147 -0
- package/src/extern.ts +38 -0
- package/src/gogoproto/gogo.ts +1 -0
- package/src/google/api/annotations.ts +1 -0
- package/src/google/api/http.ts +1069 -0
- package/src/google/protobuf/any.ts +331 -0
- package/src/google/protobuf/descriptor.ts +7177 -0
- package/src/google/protobuf/duration.ts +225 -0
- package/src/google/protobuf/timestamp.ts +281 -0
- package/src/helper-func-types.ts +191 -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.rpc.func.ts +113 -0
- package/src/ibc/applications/fee/v1/query.ts +2134 -0
- package/src/ibc/applications/fee/v1/tx.registry.ts +83 -0
- package/src/ibc/applications/fee/v1/tx.rpc.func.ts +40 -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.rpc.func.ts +25 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +65 -0
- package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +31 -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.rpc.func.ts +14 -0
- package/src/ibc/applications/interchain_accounts/host/v1/query.ts +177 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +47 -0
- package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +22 -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.rpc.func.ts +69 -0
- package/src/ibc/applications/transfer/v1/query.ts +1205 -0
- package/src/ibc/applications/transfer/v1/transfer.ts +261 -0
- package/src/ibc/applications/transfer/v1/tx.registry.ts +47 -0
- package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +22 -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.ts +1510 -0
- package/src/ibc/core/channel/v1/genesis.ts +354 -0
- package/src/ibc/core/channel/v1/query.rpc.func.ts +190 -0
- package/src/ibc/core/channel/v1/query.ts +4354 -0
- package/src/ibc/core/channel/v1/tx.registry.ts +353 -0
- package/src/ibc/core/channel/v1/tx.rpc.func.ts +175 -0
- package/src/ibc/core/channel/v1/tx.ts +4866 -0
- package/src/ibc/core/channel/v1/upgrade.ts +388 -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.rpc.func.ts +113 -0
- package/src/ibc/core/client/v1/query.ts +2280 -0
- package/src/ibc/core/client/v1/tx.registry.ts +137 -0
- package/src/ibc/core/client/v1/tx.rpc.func.ts +67 -0
- package/src/ibc/core/client/v1/tx.ts +1543 -0
- package/src/ibc/core/commitment/v1/commitment.ts +418 -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.rpc.func.ts +69 -0
- package/src/ibc/core/connection/v1/query.ts +1408 -0
- package/src/ibc/core/connection/v1/tx.registry.ts +101 -0
- package/src/ibc/core/connection/v1/tx.rpc.func.ts +49 -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.rpc.func.ts +25 -0
- package/src/ibc/lightclients/wasm/v1/query.ts +404 -0
- package/src/ibc/lightclients/wasm/v1/tx.registry.ts +65 -0
- package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +31 -0
- package/src/ibc/lightclients/wasm/v1/tx.ts +621 -0
- package/src/ibc/lightclients/wasm/v1/wasm.ts +438 -0
- package/src/react-query.ts +185 -0
- package/src/registry.ts +218 -0
- package/src/tendermint/abci/types.ts +6283 -0
- package/src/tendermint/crypto/keys.ts +103 -0
- package/src/tendermint/crypto/proof.ts +555 -0
- package/src/tendermint/p2p/types.ts +507 -0
- package/src/tendermint/types/block.ts +131 -0
- package/src/tendermint/types/evidence.ts +476 -0
- package/src/tendermint/types/params.ts +814 -0
- package/src/tendermint/types/types.ts +2157 -0
- package/src/tendermint/types/validator.ts +389 -0
- package/src/tendermint/version/types.ts +219 -0
- package/src/types.ts +155 -0
- package/src/utf8.ts +148 -0
- package/src/varint.ts +488 -0
- package/src/xpla/reward/v1beta1/genesis.ts +92 -0
- package/src/xpla/reward/v1beta1/query.rpc.func.ts +25 -0
- package/src/xpla/reward/v1beta1/query.ts +333 -0
- package/src/xpla/reward/v1beta1/reward.ts +153 -0
- package/src/xpla/reward/v1beta1/tx.registry.ts +47 -0
- package/src/xpla/reward/v1beta1/tx.rpc.func.ts +22 -0
- package/src/xpla/reward/v1beta1/tx.ts +391 -0
- package/src/xpla/volunteer/v1beta1/genesis.ts +92 -0
- package/src/xpla/volunteer/v1beta1/proposal.ts +649 -0
- package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +14 -0
- package/src/xpla/volunteer/v1beta1/query.ts +160 -0
- package/src/xpla/volunteer/v1beta1/tx.registry.ts +47 -0
- package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +22 -0
- package/src/xpla/volunteer/v1beta1/tx.ts +448 -0
- package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +107 -0
- package/tsconfig.esm.json +10 -0
- package/tsconfig.json +10 -0
|
@@ -0,0 +1,1408 @@
|
|
|
1
|
+
import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "../../../../cosmos/base/query/v1beta1/pagination";
|
|
2
|
+
import { ConnectionEnd, ConnectionEndAmino, IdentifiedConnection, IdentifiedConnectionAmino } from "./connection";
|
|
3
|
+
import { Height, HeightAmino, IdentifiedClientState, IdentifiedClientStateAmino, Params, ParamsAmino } from "../../client/v1/client";
|
|
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
|
+
* QueryConnectionRequest is the request type for the Query/Connection RPC
|
|
10
|
+
* method
|
|
11
|
+
*/
|
|
12
|
+
export interface QueryConnectionRequest {
|
|
13
|
+
/** connection unique identifier */
|
|
14
|
+
connectionId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface QueryConnectionRequestProtoMsg {
|
|
17
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionRequest";
|
|
18
|
+
value: Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* QueryConnectionRequest is the request type for the Query/Connection RPC
|
|
22
|
+
* method
|
|
23
|
+
*/
|
|
24
|
+
export interface QueryConnectionRequestAmino {
|
|
25
|
+
/** connection unique identifier */
|
|
26
|
+
connection_id: string;
|
|
27
|
+
}
|
|
28
|
+
export interface QueryConnectionRequestAminoMsg {
|
|
29
|
+
type: "cosmos-sdk/QueryConnectionRequest";
|
|
30
|
+
value: QueryConnectionRequestAmino;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* QueryConnectionResponse is the response type for the Query/Connection RPC
|
|
34
|
+
* method. Besides the connection end, it includes a proof and the height from
|
|
35
|
+
* which the proof was retrieved.
|
|
36
|
+
*/
|
|
37
|
+
export interface QueryConnectionResponse {
|
|
38
|
+
/** connection associated with the request identifier */
|
|
39
|
+
connection?: ConnectionEnd;
|
|
40
|
+
/** merkle proof of existence */
|
|
41
|
+
proof: Uint8Array;
|
|
42
|
+
/** height at which the proof was retrieved */
|
|
43
|
+
proofHeight: Height;
|
|
44
|
+
}
|
|
45
|
+
export interface QueryConnectionResponseProtoMsg {
|
|
46
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionResponse";
|
|
47
|
+
value: Uint8Array;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* QueryConnectionResponse is the response type for the Query/Connection RPC
|
|
51
|
+
* method. Besides the connection end, it includes a proof and the height from
|
|
52
|
+
* which the proof was retrieved.
|
|
53
|
+
*/
|
|
54
|
+
export interface QueryConnectionResponseAmino {
|
|
55
|
+
/** connection associated with the request identifier */
|
|
56
|
+
connection?: ConnectionEndAmino;
|
|
57
|
+
/** merkle proof of existence */
|
|
58
|
+
proof: string;
|
|
59
|
+
/** height at which the proof was retrieved */
|
|
60
|
+
proof_height: HeightAmino;
|
|
61
|
+
}
|
|
62
|
+
export interface QueryConnectionResponseAminoMsg {
|
|
63
|
+
type: "cosmos-sdk/QueryConnectionResponse";
|
|
64
|
+
value: QueryConnectionResponseAmino;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* QueryConnectionsRequest is the request type for the Query/Connections RPC
|
|
68
|
+
* method
|
|
69
|
+
*/
|
|
70
|
+
export interface QueryConnectionsRequest {
|
|
71
|
+
pagination?: PageRequest;
|
|
72
|
+
}
|
|
73
|
+
export interface QueryConnectionsRequestProtoMsg {
|
|
74
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionsRequest";
|
|
75
|
+
value: Uint8Array;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* QueryConnectionsRequest is the request type for the Query/Connections RPC
|
|
79
|
+
* method
|
|
80
|
+
*/
|
|
81
|
+
export interface QueryConnectionsRequestAmino {
|
|
82
|
+
pagination?: PageRequestAmino;
|
|
83
|
+
}
|
|
84
|
+
export interface QueryConnectionsRequestAminoMsg {
|
|
85
|
+
type: "cosmos-sdk/QueryConnectionsRequest";
|
|
86
|
+
value: QueryConnectionsRequestAmino;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* QueryConnectionsResponse is the response type for the Query/Connections RPC
|
|
90
|
+
* method.
|
|
91
|
+
*/
|
|
92
|
+
export interface QueryConnectionsResponse {
|
|
93
|
+
/** list of stored connections of the chain. */
|
|
94
|
+
connections: IdentifiedConnection[];
|
|
95
|
+
/** pagination response */
|
|
96
|
+
pagination?: PageResponse;
|
|
97
|
+
/** query block height */
|
|
98
|
+
height: Height;
|
|
99
|
+
}
|
|
100
|
+
export interface QueryConnectionsResponseProtoMsg {
|
|
101
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionsResponse";
|
|
102
|
+
value: Uint8Array;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* QueryConnectionsResponse is the response type for the Query/Connections RPC
|
|
106
|
+
* method.
|
|
107
|
+
*/
|
|
108
|
+
export interface QueryConnectionsResponseAmino {
|
|
109
|
+
/** list of stored connections of the chain. */
|
|
110
|
+
connections: IdentifiedConnectionAmino[];
|
|
111
|
+
/** pagination response */
|
|
112
|
+
pagination?: PageResponseAmino;
|
|
113
|
+
/** query block height */
|
|
114
|
+
height: HeightAmino;
|
|
115
|
+
}
|
|
116
|
+
export interface QueryConnectionsResponseAminoMsg {
|
|
117
|
+
type: "cosmos-sdk/QueryConnectionsResponse";
|
|
118
|
+
value: QueryConnectionsResponseAmino;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* QueryClientConnectionsRequest is the request type for the
|
|
122
|
+
* Query/ClientConnections RPC method
|
|
123
|
+
*/
|
|
124
|
+
export interface QueryClientConnectionsRequest {
|
|
125
|
+
/** client identifier associated with a connection */
|
|
126
|
+
clientId: string;
|
|
127
|
+
}
|
|
128
|
+
export interface QueryClientConnectionsRequestProtoMsg {
|
|
129
|
+
typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsRequest";
|
|
130
|
+
value: Uint8Array;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* QueryClientConnectionsRequest is the request type for the
|
|
134
|
+
* Query/ClientConnections RPC method
|
|
135
|
+
*/
|
|
136
|
+
export interface QueryClientConnectionsRequestAmino {
|
|
137
|
+
/** client identifier associated with a connection */
|
|
138
|
+
client_id: string;
|
|
139
|
+
}
|
|
140
|
+
export interface QueryClientConnectionsRequestAminoMsg {
|
|
141
|
+
type: "cosmos-sdk/QueryClientConnectionsRequest";
|
|
142
|
+
value: QueryClientConnectionsRequestAmino;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* QueryClientConnectionsResponse is the response type for the
|
|
146
|
+
* Query/ClientConnections RPC method
|
|
147
|
+
*/
|
|
148
|
+
export interface QueryClientConnectionsResponse {
|
|
149
|
+
/** slice of all the connection paths associated with a client. */
|
|
150
|
+
connectionPaths: string[];
|
|
151
|
+
/** merkle proof of existence */
|
|
152
|
+
proof: Uint8Array;
|
|
153
|
+
/** height at which the proof was generated */
|
|
154
|
+
proofHeight: Height;
|
|
155
|
+
}
|
|
156
|
+
export interface QueryClientConnectionsResponseProtoMsg {
|
|
157
|
+
typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsResponse";
|
|
158
|
+
value: Uint8Array;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* QueryClientConnectionsResponse is the response type for the
|
|
162
|
+
* Query/ClientConnections RPC method
|
|
163
|
+
*/
|
|
164
|
+
export interface QueryClientConnectionsResponseAmino {
|
|
165
|
+
/** slice of all the connection paths associated with a client. */
|
|
166
|
+
connection_paths: string[];
|
|
167
|
+
/** merkle proof of existence */
|
|
168
|
+
proof: string;
|
|
169
|
+
/** height at which the proof was generated */
|
|
170
|
+
proof_height: HeightAmino;
|
|
171
|
+
}
|
|
172
|
+
export interface QueryClientConnectionsResponseAminoMsg {
|
|
173
|
+
type: "cosmos-sdk/QueryClientConnectionsResponse";
|
|
174
|
+
value: QueryClientConnectionsResponseAmino;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* QueryConnectionClientStateRequest is the request type for the
|
|
178
|
+
* Query/ConnectionClientState RPC method
|
|
179
|
+
*/
|
|
180
|
+
export interface QueryConnectionClientStateRequest {
|
|
181
|
+
/** connection identifier */
|
|
182
|
+
connectionId: string;
|
|
183
|
+
}
|
|
184
|
+
export interface QueryConnectionClientStateRequestProtoMsg {
|
|
185
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateRequest";
|
|
186
|
+
value: Uint8Array;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* QueryConnectionClientStateRequest is the request type for the
|
|
190
|
+
* Query/ConnectionClientState RPC method
|
|
191
|
+
*/
|
|
192
|
+
export interface QueryConnectionClientStateRequestAmino {
|
|
193
|
+
/** connection identifier */
|
|
194
|
+
connection_id: string;
|
|
195
|
+
}
|
|
196
|
+
export interface QueryConnectionClientStateRequestAminoMsg {
|
|
197
|
+
type: "cosmos-sdk/QueryConnectionClientStateRequest";
|
|
198
|
+
value: QueryConnectionClientStateRequestAmino;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* QueryConnectionClientStateResponse is the response type for the
|
|
202
|
+
* Query/ConnectionClientState RPC method
|
|
203
|
+
*/
|
|
204
|
+
export interface QueryConnectionClientStateResponse {
|
|
205
|
+
/** client state associated with the channel */
|
|
206
|
+
identifiedClientState?: IdentifiedClientState;
|
|
207
|
+
/** merkle proof of existence */
|
|
208
|
+
proof: Uint8Array;
|
|
209
|
+
/** height at which the proof was retrieved */
|
|
210
|
+
proofHeight: Height;
|
|
211
|
+
}
|
|
212
|
+
export interface QueryConnectionClientStateResponseProtoMsg {
|
|
213
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateResponse";
|
|
214
|
+
value: Uint8Array;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* QueryConnectionClientStateResponse is the response type for the
|
|
218
|
+
* Query/ConnectionClientState RPC method
|
|
219
|
+
*/
|
|
220
|
+
export interface QueryConnectionClientStateResponseAmino {
|
|
221
|
+
/** client state associated with the channel */
|
|
222
|
+
identified_client_state?: IdentifiedClientStateAmino;
|
|
223
|
+
/** merkle proof of existence */
|
|
224
|
+
proof: string;
|
|
225
|
+
/** height at which the proof was retrieved */
|
|
226
|
+
proof_height: HeightAmino;
|
|
227
|
+
}
|
|
228
|
+
export interface QueryConnectionClientStateResponseAminoMsg {
|
|
229
|
+
type: "cosmos-sdk/QueryConnectionClientStateResponse";
|
|
230
|
+
value: QueryConnectionClientStateResponseAmino;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* QueryConnectionConsensusStateRequest is the request type for the
|
|
234
|
+
* Query/ConnectionConsensusState RPC method
|
|
235
|
+
*/
|
|
236
|
+
export interface QueryConnectionConsensusStateRequest {
|
|
237
|
+
/** connection identifier */
|
|
238
|
+
connectionId: string;
|
|
239
|
+
revisionNumber: bigint;
|
|
240
|
+
revisionHeight: bigint;
|
|
241
|
+
}
|
|
242
|
+
export interface QueryConnectionConsensusStateRequestProtoMsg {
|
|
243
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateRequest";
|
|
244
|
+
value: Uint8Array;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* QueryConnectionConsensusStateRequest is the request type for the
|
|
248
|
+
* Query/ConnectionConsensusState RPC method
|
|
249
|
+
*/
|
|
250
|
+
export interface QueryConnectionConsensusStateRequestAmino {
|
|
251
|
+
/** connection identifier */
|
|
252
|
+
connection_id: string;
|
|
253
|
+
revision_number: string;
|
|
254
|
+
revision_height: string;
|
|
255
|
+
}
|
|
256
|
+
export interface QueryConnectionConsensusStateRequestAminoMsg {
|
|
257
|
+
type: "cosmos-sdk/QueryConnectionConsensusStateRequest";
|
|
258
|
+
value: QueryConnectionConsensusStateRequestAmino;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* QueryConnectionConsensusStateResponse is the response type for the
|
|
262
|
+
* Query/ConnectionConsensusState RPC method
|
|
263
|
+
*/
|
|
264
|
+
export interface QueryConnectionConsensusStateResponse {
|
|
265
|
+
/** consensus state associated with the channel */
|
|
266
|
+
consensusState?: Any;
|
|
267
|
+
/** client ID associated with the consensus state */
|
|
268
|
+
clientId: string;
|
|
269
|
+
/** merkle proof of existence */
|
|
270
|
+
proof: Uint8Array;
|
|
271
|
+
/** height at which the proof was retrieved */
|
|
272
|
+
proofHeight: Height;
|
|
273
|
+
}
|
|
274
|
+
export interface QueryConnectionConsensusStateResponseProtoMsg {
|
|
275
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateResponse";
|
|
276
|
+
value: Uint8Array;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* QueryConnectionConsensusStateResponse is the response type for the
|
|
280
|
+
* Query/ConnectionConsensusState RPC method
|
|
281
|
+
*/
|
|
282
|
+
export interface QueryConnectionConsensusStateResponseAmino {
|
|
283
|
+
/** consensus state associated with the channel */
|
|
284
|
+
consensus_state?: AnyAmino;
|
|
285
|
+
/** client ID associated with the consensus state */
|
|
286
|
+
client_id: string;
|
|
287
|
+
/** merkle proof of existence */
|
|
288
|
+
proof: string;
|
|
289
|
+
/** height at which the proof was retrieved */
|
|
290
|
+
proof_height: HeightAmino;
|
|
291
|
+
}
|
|
292
|
+
export interface QueryConnectionConsensusStateResponseAminoMsg {
|
|
293
|
+
type: "cosmos-sdk/QueryConnectionConsensusStateResponse";
|
|
294
|
+
value: QueryConnectionConsensusStateResponseAmino;
|
|
295
|
+
}
|
|
296
|
+
/** QueryConnectionParamsRequest is the request type for the Query/ConnectionParams RPC method. */
|
|
297
|
+
export interface QueryConnectionParamsRequest {}
|
|
298
|
+
export interface QueryConnectionParamsRequestProtoMsg {
|
|
299
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsRequest";
|
|
300
|
+
value: Uint8Array;
|
|
301
|
+
}
|
|
302
|
+
/** QueryConnectionParamsRequest is the request type for the Query/ConnectionParams RPC method. */
|
|
303
|
+
export interface QueryConnectionParamsRequestAmino {}
|
|
304
|
+
export interface QueryConnectionParamsRequestAminoMsg {
|
|
305
|
+
type: "cosmos-sdk/QueryConnectionParamsRequest";
|
|
306
|
+
value: QueryConnectionParamsRequestAmino;
|
|
307
|
+
}
|
|
308
|
+
/** QueryConnectionParamsResponse is the response type for the Query/ConnectionParams RPC method. */
|
|
309
|
+
export interface QueryConnectionParamsResponse {
|
|
310
|
+
/** params defines the parameters of the module. */
|
|
311
|
+
params?: Params;
|
|
312
|
+
}
|
|
313
|
+
export interface QueryConnectionParamsResponseProtoMsg {
|
|
314
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsResponse";
|
|
315
|
+
value: Uint8Array;
|
|
316
|
+
}
|
|
317
|
+
/** QueryConnectionParamsResponse is the response type for the Query/ConnectionParams RPC method. */
|
|
318
|
+
export interface QueryConnectionParamsResponseAmino {
|
|
319
|
+
/** params defines the parameters of the module. */
|
|
320
|
+
params?: ParamsAmino;
|
|
321
|
+
}
|
|
322
|
+
export interface QueryConnectionParamsResponseAminoMsg {
|
|
323
|
+
type: "cosmos-sdk/QueryConnectionParamsResponse";
|
|
324
|
+
value: QueryConnectionParamsResponseAmino;
|
|
325
|
+
}
|
|
326
|
+
function createBaseQueryConnectionRequest(): QueryConnectionRequest {
|
|
327
|
+
return {
|
|
328
|
+
connectionId: ""
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
export const QueryConnectionRequest = {
|
|
332
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionRequest",
|
|
333
|
+
aminoType: "cosmos-sdk/QueryConnectionRequest",
|
|
334
|
+
is(o: any): o is QueryConnectionRequest {
|
|
335
|
+
return o && (o.$typeUrl === QueryConnectionRequest.typeUrl || typeof o.connectionId === "string");
|
|
336
|
+
},
|
|
337
|
+
isAmino(o: any): o is QueryConnectionRequestAmino {
|
|
338
|
+
return o && (o.$typeUrl === QueryConnectionRequest.typeUrl || typeof o.connection_id === "string");
|
|
339
|
+
},
|
|
340
|
+
encode(message: QueryConnectionRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
341
|
+
if (message.connectionId !== "") {
|
|
342
|
+
writer.uint32(10).string(message.connectionId);
|
|
343
|
+
}
|
|
344
|
+
return writer;
|
|
345
|
+
},
|
|
346
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionRequest {
|
|
347
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
348
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
349
|
+
const message = createBaseQueryConnectionRequest();
|
|
350
|
+
while (reader.pos < end) {
|
|
351
|
+
const tag = reader.uint32();
|
|
352
|
+
switch (tag >>> 3) {
|
|
353
|
+
case 1:
|
|
354
|
+
message.connectionId = reader.string();
|
|
355
|
+
break;
|
|
356
|
+
default:
|
|
357
|
+
reader.skipType(tag & 7);
|
|
358
|
+
break;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
return message;
|
|
362
|
+
},
|
|
363
|
+
fromPartial(object: DeepPartial<QueryConnectionRequest>): QueryConnectionRequest {
|
|
364
|
+
const message = createBaseQueryConnectionRequest();
|
|
365
|
+
message.connectionId = object.connectionId ?? "";
|
|
366
|
+
return message;
|
|
367
|
+
},
|
|
368
|
+
fromAmino(object: QueryConnectionRequestAmino): QueryConnectionRequest {
|
|
369
|
+
const message = createBaseQueryConnectionRequest();
|
|
370
|
+
if (object.connection_id !== undefined && object.connection_id !== null) {
|
|
371
|
+
message.connectionId = object.connection_id;
|
|
372
|
+
}
|
|
373
|
+
return message;
|
|
374
|
+
},
|
|
375
|
+
toAmino(message: QueryConnectionRequest): QueryConnectionRequestAmino {
|
|
376
|
+
const obj: any = {};
|
|
377
|
+
obj.connection_id = message.connectionId === "" ? undefined : message.connectionId;
|
|
378
|
+
return obj;
|
|
379
|
+
},
|
|
380
|
+
fromAminoMsg(object: QueryConnectionRequestAminoMsg): QueryConnectionRequest {
|
|
381
|
+
return QueryConnectionRequest.fromAmino(object.value);
|
|
382
|
+
},
|
|
383
|
+
toAminoMsg(message: QueryConnectionRequest): QueryConnectionRequestAminoMsg {
|
|
384
|
+
return {
|
|
385
|
+
type: "cosmos-sdk/QueryConnectionRequest",
|
|
386
|
+
value: QueryConnectionRequest.toAmino(message)
|
|
387
|
+
};
|
|
388
|
+
},
|
|
389
|
+
fromProtoMsg(message: QueryConnectionRequestProtoMsg): QueryConnectionRequest {
|
|
390
|
+
return QueryConnectionRequest.decode(message.value);
|
|
391
|
+
},
|
|
392
|
+
toProto(message: QueryConnectionRequest): Uint8Array {
|
|
393
|
+
return QueryConnectionRequest.encode(message).finish();
|
|
394
|
+
},
|
|
395
|
+
toProtoMsg(message: QueryConnectionRequest): QueryConnectionRequestProtoMsg {
|
|
396
|
+
return {
|
|
397
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionRequest",
|
|
398
|
+
value: QueryConnectionRequest.encode(message).finish()
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
GlobalDecoderRegistry.register(QueryConnectionRequest.typeUrl, QueryConnectionRequest);
|
|
403
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConnectionRequest.aminoType, QueryConnectionRequest.typeUrl);
|
|
404
|
+
function createBaseQueryConnectionResponse(): QueryConnectionResponse {
|
|
405
|
+
return {
|
|
406
|
+
connection: undefined,
|
|
407
|
+
proof: new Uint8Array(),
|
|
408
|
+
proofHeight: Height.fromPartial({})
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
export const QueryConnectionResponse = {
|
|
412
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionResponse",
|
|
413
|
+
aminoType: "cosmos-sdk/QueryConnectionResponse",
|
|
414
|
+
is(o: any): o is QueryConnectionResponse {
|
|
415
|
+
return o && (o.$typeUrl === QueryConnectionResponse.typeUrl || (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.is(o.proofHeight));
|
|
416
|
+
},
|
|
417
|
+
isAmino(o: any): o is QueryConnectionResponseAmino {
|
|
418
|
+
return o && (o.$typeUrl === QueryConnectionResponse.typeUrl || (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.isAmino(o.proof_height));
|
|
419
|
+
},
|
|
420
|
+
encode(message: QueryConnectionResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
421
|
+
if (message.connection !== undefined) {
|
|
422
|
+
ConnectionEnd.encode(message.connection, writer.uint32(10).fork()).ldelim();
|
|
423
|
+
}
|
|
424
|
+
if (message.proof.length !== 0) {
|
|
425
|
+
writer.uint32(18).bytes(message.proof);
|
|
426
|
+
}
|
|
427
|
+
if (message.proofHeight !== undefined) {
|
|
428
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
429
|
+
}
|
|
430
|
+
return writer;
|
|
431
|
+
},
|
|
432
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionResponse {
|
|
433
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
434
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
435
|
+
const message = createBaseQueryConnectionResponse();
|
|
436
|
+
while (reader.pos < end) {
|
|
437
|
+
const tag = reader.uint32();
|
|
438
|
+
switch (tag >>> 3) {
|
|
439
|
+
case 1:
|
|
440
|
+
message.connection = ConnectionEnd.decode(reader, reader.uint32());
|
|
441
|
+
break;
|
|
442
|
+
case 2:
|
|
443
|
+
message.proof = reader.bytes();
|
|
444
|
+
break;
|
|
445
|
+
case 3:
|
|
446
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
447
|
+
break;
|
|
448
|
+
default:
|
|
449
|
+
reader.skipType(tag & 7);
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
return message;
|
|
454
|
+
},
|
|
455
|
+
fromPartial(object: DeepPartial<QueryConnectionResponse>): QueryConnectionResponse {
|
|
456
|
+
const message = createBaseQueryConnectionResponse();
|
|
457
|
+
message.connection = object.connection !== undefined && object.connection !== null ? ConnectionEnd.fromPartial(object.connection) : undefined;
|
|
458
|
+
message.proof = object.proof ?? new Uint8Array();
|
|
459
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
460
|
+
return message;
|
|
461
|
+
},
|
|
462
|
+
fromAmino(object: QueryConnectionResponseAmino): QueryConnectionResponse {
|
|
463
|
+
const message = createBaseQueryConnectionResponse();
|
|
464
|
+
if (object.connection !== undefined && object.connection !== null) {
|
|
465
|
+
message.connection = ConnectionEnd.fromAmino(object.connection);
|
|
466
|
+
}
|
|
467
|
+
if (object.proof !== undefined && object.proof !== null) {
|
|
468
|
+
message.proof = bytesFromBase64(object.proof);
|
|
469
|
+
}
|
|
470
|
+
if (object.proof_height !== undefined && object.proof_height !== null) {
|
|
471
|
+
message.proofHeight = Height.fromAmino(object.proof_height);
|
|
472
|
+
}
|
|
473
|
+
return message;
|
|
474
|
+
},
|
|
475
|
+
toAmino(message: QueryConnectionResponse): QueryConnectionResponseAmino {
|
|
476
|
+
const obj: any = {};
|
|
477
|
+
obj.connection = message.connection ? ConnectionEnd.toAmino(message.connection) : undefined;
|
|
478
|
+
obj.proof = message.proof ? base64FromBytes(message.proof) : undefined;
|
|
479
|
+
obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {};
|
|
480
|
+
return obj;
|
|
481
|
+
},
|
|
482
|
+
fromAminoMsg(object: QueryConnectionResponseAminoMsg): QueryConnectionResponse {
|
|
483
|
+
return QueryConnectionResponse.fromAmino(object.value);
|
|
484
|
+
},
|
|
485
|
+
toAminoMsg(message: QueryConnectionResponse): QueryConnectionResponseAminoMsg {
|
|
486
|
+
return {
|
|
487
|
+
type: "cosmos-sdk/QueryConnectionResponse",
|
|
488
|
+
value: QueryConnectionResponse.toAmino(message)
|
|
489
|
+
};
|
|
490
|
+
},
|
|
491
|
+
fromProtoMsg(message: QueryConnectionResponseProtoMsg): QueryConnectionResponse {
|
|
492
|
+
return QueryConnectionResponse.decode(message.value);
|
|
493
|
+
},
|
|
494
|
+
toProto(message: QueryConnectionResponse): Uint8Array {
|
|
495
|
+
return QueryConnectionResponse.encode(message).finish();
|
|
496
|
+
},
|
|
497
|
+
toProtoMsg(message: QueryConnectionResponse): QueryConnectionResponseProtoMsg {
|
|
498
|
+
return {
|
|
499
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionResponse",
|
|
500
|
+
value: QueryConnectionResponse.encode(message).finish()
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
GlobalDecoderRegistry.register(QueryConnectionResponse.typeUrl, QueryConnectionResponse);
|
|
505
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConnectionResponse.aminoType, QueryConnectionResponse.typeUrl);
|
|
506
|
+
function createBaseQueryConnectionsRequest(): QueryConnectionsRequest {
|
|
507
|
+
return {
|
|
508
|
+
pagination: undefined
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
export const QueryConnectionsRequest = {
|
|
512
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionsRequest",
|
|
513
|
+
aminoType: "cosmos-sdk/QueryConnectionsRequest",
|
|
514
|
+
is(o: any): o is QueryConnectionsRequest {
|
|
515
|
+
return o && o.$typeUrl === QueryConnectionsRequest.typeUrl;
|
|
516
|
+
},
|
|
517
|
+
isAmino(o: any): o is QueryConnectionsRequestAmino {
|
|
518
|
+
return o && o.$typeUrl === QueryConnectionsRequest.typeUrl;
|
|
519
|
+
},
|
|
520
|
+
encode(message: QueryConnectionsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
521
|
+
if (message.pagination !== undefined) {
|
|
522
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
523
|
+
}
|
|
524
|
+
return writer;
|
|
525
|
+
},
|
|
526
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionsRequest {
|
|
527
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
528
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
529
|
+
const message = createBaseQueryConnectionsRequest();
|
|
530
|
+
while (reader.pos < end) {
|
|
531
|
+
const tag = reader.uint32();
|
|
532
|
+
switch (tag >>> 3) {
|
|
533
|
+
case 1:
|
|
534
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
535
|
+
break;
|
|
536
|
+
default:
|
|
537
|
+
reader.skipType(tag & 7);
|
|
538
|
+
break;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
return message;
|
|
542
|
+
},
|
|
543
|
+
fromPartial(object: DeepPartial<QueryConnectionsRequest>): QueryConnectionsRequest {
|
|
544
|
+
const message = createBaseQueryConnectionsRequest();
|
|
545
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
546
|
+
return message;
|
|
547
|
+
},
|
|
548
|
+
fromAmino(object: QueryConnectionsRequestAmino): QueryConnectionsRequest {
|
|
549
|
+
const message = createBaseQueryConnectionsRequest();
|
|
550
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
551
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
552
|
+
}
|
|
553
|
+
return message;
|
|
554
|
+
},
|
|
555
|
+
toAmino(message: QueryConnectionsRequest): QueryConnectionsRequestAmino {
|
|
556
|
+
const obj: any = {};
|
|
557
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
558
|
+
return obj;
|
|
559
|
+
},
|
|
560
|
+
fromAminoMsg(object: QueryConnectionsRequestAminoMsg): QueryConnectionsRequest {
|
|
561
|
+
return QueryConnectionsRequest.fromAmino(object.value);
|
|
562
|
+
},
|
|
563
|
+
toAminoMsg(message: QueryConnectionsRequest): QueryConnectionsRequestAminoMsg {
|
|
564
|
+
return {
|
|
565
|
+
type: "cosmos-sdk/QueryConnectionsRequest",
|
|
566
|
+
value: QueryConnectionsRequest.toAmino(message)
|
|
567
|
+
};
|
|
568
|
+
},
|
|
569
|
+
fromProtoMsg(message: QueryConnectionsRequestProtoMsg): QueryConnectionsRequest {
|
|
570
|
+
return QueryConnectionsRequest.decode(message.value);
|
|
571
|
+
},
|
|
572
|
+
toProto(message: QueryConnectionsRequest): Uint8Array {
|
|
573
|
+
return QueryConnectionsRequest.encode(message).finish();
|
|
574
|
+
},
|
|
575
|
+
toProtoMsg(message: QueryConnectionsRequest): QueryConnectionsRequestProtoMsg {
|
|
576
|
+
return {
|
|
577
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionsRequest",
|
|
578
|
+
value: QueryConnectionsRequest.encode(message).finish()
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
};
|
|
582
|
+
GlobalDecoderRegistry.register(QueryConnectionsRequest.typeUrl, QueryConnectionsRequest);
|
|
583
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConnectionsRequest.aminoType, QueryConnectionsRequest.typeUrl);
|
|
584
|
+
function createBaseQueryConnectionsResponse(): QueryConnectionsResponse {
|
|
585
|
+
return {
|
|
586
|
+
connections: [],
|
|
587
|
+
pagination: undefined,
|
|
588
|
+
height: Height.fromPartial({})
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
export const QueryConnectionsResponse = {
|
|
592
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionsResponse",
|
|
593
|
+
aminoType: "cosmos-sdk/QueryConnectionsResponse",
|
|
594
|
+
is(o: any): o is QueryConnectionsResponse {
|
|
595
|
+
return o && (o.$typeUrl === QueryConnectionsResponse.typeUrl || Array.isArray(o.connections) && (!o.connections.length || IdentifiedConnection.is(o.connections[0])) && Height.is(o.height));
|
|
596
|
+
},
|
|
597
|
+
isAmino(o: any): o is QueryConnectionsResponseAmino {
|
|
598
|
+
return o && (o.$typeUrl === QueryConnectionsResponse.typeUrl || Array.isArray(o.connections) && (!o.connections.length || IdentifiedConnection.isAmino(o.connections[0])) && Height.isAmino(o.height));
|
|
599
|
+
},
|
|
600
|
+
encode(message: QueryConnectionsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
601
|
+
for (const v of message.connections) {
|
|
602
|
+
IdentifiedConnection.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
603
|
+
}
|
|
604
|
+
if (message.pagination !== undefined) {
|
|
605
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
606
|
+
}
|
|
607
|
+
if (message.height !== undefined) {
|
|
608
|
+
Height.encode(message.height, writer.uint32(26).fork()).ldelim();
|
|
609
|
+
}
|
|
610
|
+
return writer;
|
|
611
|
+
},
|
|
612
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionsResponse {
|
|
613
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
614
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
615
|
+
const message = createBaseQueryConnectionsResponse();
|
|
616
|
+
while (reader.pos < end) {
|
|
617
|
+
const tag = reader.uint32();
|
|
618
|
+
switch (tag >>> 3) {
|
|
619
|
+
case 1:
|
|
620
|
+
message.connections.push(IdentifiedConnection.decode(reader, reader.uint32()));
|
|
621
|
+
break;
|
|
622
|
+
case 2:
|
|
623
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
624
|
+
break;
|
|
625
|
+
case 3:
|
|
626
|
+
message.height = Height.decode(reader, reader.uint32());
|
|
627
|
+
break;
|
|
628
|
+
default:
|
|
629
|
+
reader.skipType(tag & 7);
|
|
630
|
+
break;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
return message;
|
|
634
|
+
},
|
|
635
|
+
fromPartial(object: DeepPartial<QueryConnectionsResponse>): QueryConnectionsResponse {
|
|
636
|
+
const message = createBaseQueryConnectionsResponse();
|
|
637
|
+
message.connections = object.connections?.map(e => IdentifiedConnection.fromPartial(e)) || [];
|
|
638
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
639
|
+
message.height = object.height !== undefined && object.height !== null ? Height.fromPartial(object.height) : undefined;
|
|
640
|
+
return message;
|
|
641
|
+
},
|
|
642
|
+
fromAmino(object: QueryConnectionsResponseAmino): QueryConnectionsResponse {
|
|
643
|
+
const message = createBaseQueryConnectionsResponse();
|
|
644
|
+
message.connections = object.connections?.map(e => IdentifiedConnection.fromAmino(e)) || [];
|
|
645
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
646
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
647
|
+
}
|
|
648
|
+
if (object.height !== undefined && object.height !== null) {
|
|
649
|
+
message.height = Height.fromAmino(object.height);
|
|
650
|
+
}
|
|
651
|
+
return message;
|
|
652
|
+
},
|
|
653
|
+
toAmino(message: QueryConnectionsResponse): QueryConnectionsResponseAmino {
|
|
654
|
+
const obj: any = {};
|
|
655
|
+
if (message.connections) {
|
|
656
|
+
obj.connections = message.connections.map(e => e ? IdentifiedConnection.toAmino(e) : undefined);
|
|
657
|
+
} else {
|
|
658
|
+
obj.connections = message.connections;
|
|
659
|
+
}
|
|
660
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
661
|
+
obj.height = message.height ? Height.toAmino(message.height) : {};
|
|
662
|
+
return obj;
|
|
663
|
+
},
|
|
664
|
+
fromAminoMsg(object: QueryConnectionsResponseAminoMsg): QueryConnectionsResponse {
|
|
665
|
+
return QueryConnectionsResponse.fromAmino(object.value);
|
|
666
|
+
},
|
|
667
|
+
toAminoMsg(message: QueryConnectionsResponse): QueryConnectionsResponseAminoMsg {
|
|
668
|
+
return {
|
|
669
|
+
type: "cosmos-sdk/QueryConnectionsResponse",
|
|
670
|
+
value: QueryConnectionsResponse.toAmino(message)
|
|
671
|
+
};
|
|
672
|
+
},
|
|
673
|
+
fromProtoMsg(message: QueryConnectionsResponseProtoMsg): QueryConnectionsResponse {
|
|
674
|
+
return QueryConnectionsResponse.decode(message.value);
|
|
675
|
+
},
|
|
676
|
+
toProto(message: QueryConnectionsResponse): Uint8Array {
|
|
677
|
+
return QueryConnectionsResponse.encode(message).finish();
|
|
678
|
+
},
|
|
679
|
+
toProtoMsg(message: QueryConnectionsResponse): QueryConnectionsResponseProtoMsg {
|
|
680
|
+
return {
|
|
681
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionsResponse",
|
|
682
|
+
value: QueryConnectionsResponse.encode(message).finish()
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
GlobalDecoderRegistry.register(QueryConnectionsResponse.typeUrl, QueryConnectionsResponse);
|
|
687
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConnectionsResponse.aminoType, QueryConnectionsResponse.typeUrl);
|
|
688
|
+
function createBaseQueryClientConnectionsRequest(): QueryClientConnectionsRequest {
|
|
689
|
+
return {
|
|
690
|
+
clientId: ""
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
export const QueryClientConnectionsRequest = {
|
|
694
|
+
typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsRequest",
|
|
695
|
+
aminoType: "cosmos-sdk/QueryClientConnectionsRequest",
|
|
696
|
+
is(o: any): o is QueryClientConnectionsRequest {
|
|
697
|
+
return o && (o.$typeUrl === QueryClientConnectionsRequest.typeUrl || typeof o.clientId === "string");
|
|
698
|
+
},
|
|
699
|
+
isAmino(o: any): o is QueryClientConnectionsRequestAmino {
|
|
700
|
+
return o && (o.$typeUrl === QueryClientConnectionsRequest.typeUrl || typeof o.client_id === "string");
|
|
701
|
+
},
|
|
702
|
+
encode(message: QueryClientConnectionsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
703
|
+
if (message.clientId !== "") {
|
|
704
|
+
writer.uint32(10).string(message.clientId);
|
|
705
|
+
}
|
|
706
|
+
return writer;
|
|
707
|
+
},
|
|
708
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientConnectionsRequest {
|
|
709
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
710
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
711
|
+
const message = createBaseQueryClientConnectionsRequest();
|
|
712
|
+
while (reader.pos < end) {
|
|
713
|
+
const tag = reader.uint32();
|
|
714
|
+
switch (tag >>> 3) {
|
|
715
|
+
case 1:
|
|
716
|
+
message.clientId = reader.string();
|
|
717
|
+
break;
|
|
718
|
+
default:
|
|
719
|
+
reader.skipType(tag & 7);
|
|
720
|
+
break;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
return message;
|
|
724
|
+
},
|
|
725
|
+
fromPartial(object: DeepPartial<QueryClientConnectionsRequest>): QueryClientConnectionsRequest {
|
|
726
|
+
const message = createBaseQueryClientConnectionsRequest();
|
|
727
|
+
message.clientId = object.clientId ?? "";
|
|
728
|
+
return message;
|
|
729
|
+
},
|
|
730
|
+
fromAmino(object: QueryClientConnectionsRequestAmino): QueryClientConnectionsRequest {
|
|
731
|
+
const message = createBaseQueryClientConnectionsRequest();
|
|
732
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
733
|
+
message.clientId = object.client_id;
|
|
734
|
+
}
|
|
735
|
+
return message;
|
|
736
|
+
},
|
|
737
|
+
toAmino(message: QueryClientConnectionsRequest): QueryClientConnectionsRequestAmino {
|
|
738
|
+
const obj: any = {};
|
|
739
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
740
|
+
return obj;
|
|
741
|
+
},
|
|
742
|
+
fromAminoMsg(object: QueryClientConnectionsRequestAminoMsg): QueryClientConnectionsRequest {
|
|
743
|
+
return QueryClientConnectionsRequest.fromAmino(object.value);
|
|
744
|
+
},
|
|
745
|
+
toAminoMsg(message: QueryClientConnectionsRequest): QueryClientConnectionsRequestAminoMsg {
|
|
746
|
+
return {
|
|
747
|
+
type: "cosmos-sdk/QueryClientConnectionsRequest",
|
|
748
|
+
value: QueryClientConnectionsRequest.toAmino(message)
|
|
749
|
+
};
|
|
750
|
+
},
|
|
751
|
+
fromProtoMsg(message: QueryClientConnectionsRequestProtoMsg): QueryClientConnectionsRequest {
|
|
752
|
+
return QueryClientConnectionsRequest.decode(message.value);
|
|
753
|
+
},
|
|
754
|
+
toProto(message: QueryClientConnectionsRequest): Uint8Array {
|
|
755
|
+
return QueryClientConnectionsRequest.encode(message).finish();
|
|
756
|
+
},
|
|
757
|
+
toProtoMsg(message: QueryClientConnectionsRequest): QueryClientConnectionsRequestProtoMsg {
|
|
758
|
+
return {
|
|
759
|
+
typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsRequest",
|
|
760
|
+
value: QueryClientConnectionsRequest.encode(message).finish()
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
GlobalDecoderRegistry.register(QueryClientConnectionsRequest.typeUrl, QueryClientConnectionsRequest);
|
|
765
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryClientConnectionsRequest.aminoType, QueryClientConnectionsRequest.typeUrl);
|
|
766
|
+
function createBaseQueryClientConnectionsResponse(): QueryClientConnectionsResponse {
|
|
767
|
+
return {
|
|
768
|
+
connectionPaths: [],
|
|
769
|
+
proof: new Uint8Array(),
|
|
770
|
+
proofHeight: Height.fromPartial({})
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
export const QueryClientConnectionsResponse = {
|
|
774
|
+
typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsResponse",
|
|
775
|
+
aminoType: "cosmos-sdk/QueryClientConnectionsResponse",
|
|
776
|
+
is(o: any): o is QueryClientConnectionsResponse {
|
|
777
|
+
return o && (o.$typeUrl === QueryClientConnectionsResponse.typeUrl || Array.isArray(o.connectionPaths) && (!o.connectionPaths.length || typeof o.connectionPaths[0] === "string") && (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.is(o.proofHeight));
|
|
778
|
+
},
|
|
779
|
+
isAmino(o: any): o is QueryClientConnectionsResponseAmino {
|
|
780
|
+
return o && (o.$typeUrl === QueryClientConnectionsResponse.typeUrl || Array.isArray(o.connection_paths) && (!o.connection_paths.length || typeof o.connection_paths[0] === "string") && (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.isAmino(o.proof_height));
|
|
781
|
+
},
|
|
782
|
+
encode(message: QueryClientConnectionsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
783
|
+
for (const v of message.connectionPaths) {
|
|
784
|
+
writer.uint32(10).string(v!);
|
|
785
|
+
}
|
|
786
|
+
if (message.proof.length !== 0) {
|
|
787
|
+
writer.uint32(18).bytes(message.proof);
|
|
788
|
+
}
|
|
789
|
+
if (message.proofHeight !== undefined) {
|
|
790
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
791
|
+
}
|
|
792
|
+
return writer;
|
|
793
|
+
},
|
|
794
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientConnectionsResponse {
|
|
795
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
796
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
797
|
+
const message = createBaseQueryClientConnectionsResponse();
|
|
798
|
+
while (reader.pos < end) {
|
|
799
|
+
const tag = reader.uint32();
|
|
800
|
+
switch (tag >>> 3) {
|
|
801
|
+
case 1:
|
|
802
|
+
message.connectionPaths.push(reader.string());
|
|
803
|
+
break;
|
|
804
|
+
case 2:
|
|
805
|
+
message.proof = reader.bytes();
|
|
806
|
+
break;
|
|
807
|
+
case 3:
|
|
808
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
809
|
+
break;
|
|
810
|
+
default:
|
|
811
|
+
reader.skipType(tag & 7);
|
|
812
|
+
break;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
return message;
|
|
816
|
+
},
|
|
817
|
+
fromPartial(object: DeepPartial<QueryClientConnectionsResponse>): QueryClientConnectionsResponse {
|
|
818
|
+
const message = createBaseQueryClientConnectionsResponse();
|
|
819
|
+
message.connectionPaths = object.connectionPaths?.map(e => e) || [];
|
|
820
|
+
message.proof = object.proof ?? new Uint8Array();
|
|
821
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
822
|
+
return message;
|
|
823
|
+
},
|
|
824
|
+
fromAmino(object: QueryClientConnectionsResponseAmino): QueryClientConnectionsResponse {
|
|
825
|
+
const message = createBaseQueryClientConnectionsResponse();
|
|
826
|
+
message.connectionPaths = object.connection_paths?.map(e => e) || [];
|
|
827
|
+
if (object.proof !== undefined && object.proof !== null) {
|
|
828
|
+
message.proof = bytesFromBase64(object.proof);
|
|
829
|
+
}
|
|
830
|
+
if (object.proof_height !== undefined && object.proof_height !== null) {
|
|
831
|
+
message.proofHeight = Height.fromAmino(object.proof_height);
|
|
832
|
+
}
|
|
833
|
+
return message;
|
|
834
|
+
},
|
|
835
|
+
toAmino(message: QueryClientConnectionsResponse): QueryClientConnectionsResponseAmino {
|
|
836
|
+
const obj: any = {};
|
|
837
|
+
if (message.connectionPaths) {
|
|
838
|
+
obj.connection_paths = message.connectionPaths.map(e => e);
|
|
839
|
+
} else {
|
|
840
|
+
obj.connection_paths = message.connectionPaths;
|
|
841
|
+
}
|
|
842
|
+
obj.proof = message.proof ? base64FromBytes(message.proof) : undefined;
|
|
843
|
+
obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {};
|
|
844
|
+
return obj;
|
|
845
|
+
},
|
|
846
|
+
fromAminoMsg(object: QueryClientConnectionsResponseAminoMsg): QueryClientConnectionsResponse {
|
|
847
|
+
return QueryClientConnectionsResponse.fromAmino(object.value);
|
|
848
|
+
},
|
|
849
|
+
toAminoMsg(message: QueryClientConnectionsResponse): QueryClientConnectionsResponseAminoMsg {
|
|
850
|
+
return {
|
|
851
|
+
type: "cosmos-sdk/QueryClientConnectionsResponse",
|
|
852
|
+
value: QueryClientConnectionsResponse.toAmino(message)
|
|
853
|
+
};
|
|
854
|
+
},
|
|
855
|
+
fromProtoMsg(message: QueryClientConnectionsResponseProtoMsg): QueryClientConnectionsResponse {
|
|
856
|
+
return QueryClientConnectionsResponse.decode(message.value);
|
|
857
|
+
},
|
|
858
|
+
toProto(message: QueryClientConnectionsResponse): Uint8Array {
|
|
859
|
+
return QueryClientConnectionsResponse.encode(message).finish();
|
|
860
|
+
},
|
|
861
|
+
toProtoMsg(message: QueryClientConnectionsResponse): QueryClientConnectionsResponseProtoMsg {
|
|
862
|
+
return {
|
|
863
|
+
typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsResponse",
|
|
864
|
+
value: QueryClientConnectionsResponse.encode(message).finish()
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
};
|
|
868
|
+
GlobalDecoderRegistry.register(QueryClientConnectionsResponse.typeUrl, QueryClientConnectionsResponse);
|
|
869
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryClientConnectionsResponse.aminoType, QueryClientConnectionsResponse.typeUrl);
|
|
870
|
+
function createBaseQueryConnectionClientStateRequest(): QueryConnectionClientStateRequest {
|
|
871
|
+
return {
|
|
872
|
+
connectionId: ""
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
export const QueryConnectionClientStateRequest = {
|
|
876
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateRequest",
|
|
877
|
+
aminoType: "cosmos-sdk/QueryConnectionClientStateRequest",
|
|
878
|
+
is(o: any): o is QueryConnectionClientStateRequest {
|
|
879
|
+
return o && (o.$typeUrl === QueryConnectionClientStateRequest.typeUrl || typeof o.connectionId === "string");
|
|
880
|
+
},
|
|
881
|
+
isAmino(o: any): o is QueryConnectionClientStateRequestAmino {
|
|
882
|
+
return o && (o.$typeUrl === QueryConnectionClientStateRequest.typeUrl || typeof o.connection_id === "string");
|
|
883
|
+
},
|
|
884
|
+
encode(message: QueryConnectionClientStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
885
|
+
if (message.connectionId !== "") {
|
|
886
|
+
writer.uint32(10).string(message.connectionId);
|
|
887
|
+
}
|
|
888
|
+
return writer;
|
|
889
|
+
},
|
|
890
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionClientStateRequest {
|
|
891
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
892
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
893
|
+
const message = createBaseQueryConnectionClientStateRequest();
|
|
894
|
+
while (reader.pos < end) {
|
|
895
|
+
const tag = reader.uint32();
|
|
896
|
+
switch (tag >>> 3) {
|
|
897
|
+
case 1:
|
|
898
|
+
message.connectionId = reader.string();
|
|
899
|
+
break;
|
|
900
|
+
default:
|
|
901
|
+
reader.skipType(tag & 7);
|
|
902
|
+
break;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
return message;
|
|
906
|
+
},
|
|
907
|
+
fromPartial(object: DeepPartial<QueryConnectionClientStateRequest>): QueryConnectionClientStateRequest {
|
|
908
|
+
const message = createBaseQueryConnectionClientStateRequest();
|
|
909
|
+
message.connectionId = object.connectionId ?? "";
|
|
910
|
+
return message;
|
|
911
|
+
},
|
|
912
|
+
fromAmino(object: QueryConnectionClientStateRequestAmino): QueryConnectionClientStateRequest {
|
|
913
|
+
const message = createBaseQueryConnectionClientStateRequest();
|
|
914
|
+
if (object.connection_id !== undefined && object.connection_id !== null) {
|
|
915
|
+
message.connectionId = object.connection_id;
|
|
916
|
+
}
|
|
917
|
+
return message;
|
|
918
|
+
},
|
|
919
|
+
toAmino(message: QueryConnectionClientStateRequest): QueryConnectionClientStateRequestAmino {
|
|
920
|
+
const obj: any = {};
|
|
921
|
+
obj.connection_id = message.connectionId === "" ? undefined : message.connectionId;
|
|
922
|
+
return obj;
|
|
923
|
+
},
|
|
924
|
+
fromAminoMsg(object: QueryConnectionClientStateRequestAminoMsg): QueryConnectionClientStateRequest {
|
|
925
|
+
return QueryConnectionClientStateRequest.fromAmino(object.value);
|
|
926
|
+
},
|
|
927
|
+
toAminoMsg(message: QueryConnectionClientStateRequest): QueryConnectionClientStateRequestAminoMsg {
|
|
928
|
+
return {
|
|
929
|
+
type: "cosmos-sdk/QueryConnectionClientStateRequest",
|
|
930
|
+
value: QueryConnectionClientStateRequest.toAmino(message)
|
|
931
|
+
};
|
|
932
|
+
},
|
|
933
|
+
fromProtoMsg(message: QueryConnectionClientStateRequestProtoMsg): QueryConnectionClientStateRequest {
|
|
934
|
+
return QueryConnectionClientStateRequest.decode(message.value);
|
|
935
|
+
},
|
|
936
|
+
toProto(message: QueryConnectionClientStateRequest): Uint8Array {
|
|
937
|
+
return QueryConnectionClientStateRequest.encode(message).finish();
|
|
938
|
+
},
|
|
939
|
+
toProtoMsg(message: QueryConnectionClientStateRequest): QueryConnectionClientStateRequestProtoMsg {
|
|
940
|
+
return {
|
|
941
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateRequest",
|
|
942
|
+
value: QueryConnectionClientStateRequest.encode(message).finish()
|
|
943
|
+
};
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
GlobalDecoderRegistry.register(QueryConnectionClientStateRequest.typeUrl, QueryConnectionClientStateRequest);
|
|
947
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConnectionClientStateRequest.aminoType, QueryConnectionClientStateRequest.typeUrl);
|
|
948
|
+
function createBaseQueryConnectionClientStateResponse(): QueryConnectionClientStateResponse {
|
|
949
|
+
return {
|
|
950
|
+
identifiedClientState: undefined,
|
|
951
|
+
proof: new Uint8Array(),
|
|
952
|
+
proofHeight: Height.fromPartial({})
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
export const QueryConnectionClientStateResponse = {
|
|
956
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateResponse",
|
|
957
|
+
aminoType: "cosmos-sdk/QueryConnectionClientStateResponse",
|
|
958
|
+
is(o: any): o is QueryConnectionClientStateResponse {
|
|
959
|
+
return o && (o.$typeUrl === QueryConnectionClientStateResponse.typeUrl || (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.is(o.proofHeight));
|
|
960
|
+
},
|
|
961
|
+
isAmino(o: any): o is QueryConnectionClientStateResponseAmino {
|
|
962
|
+
return o && (o.$typeUrl === QueryConnectionClientStateResponse.typeUrl || (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.isAmino(o.proof_height));
|
|
963
|
+
},
|
|
964
|
+
encode(message: QueryConnectionClientStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
965
|
+
if (message.identifiedClientState !== undefined) {
|
|
966
|
+
IdentifiedClientState.encode(message.identifiedClientState, writer.uint32(10).fork()).ldelim();
|
|
967
|
+
}
|
|
968
|
+
if (message.proof.length !== 0) {
|
|
969
|
+
writer.uint32(18).bytes(message.proof);
|
|
970
|
+
}
|
|
971
|
+
if (message.proofHeight !== undefined) {
|
|
972
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
973
|
+
}
|
|
974
|
+
return writer;
|
|
975
|
+
},
|
|
976
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionClientStateResponse {
|
|
977
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
978
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
979
|
+
const message = createBaseQueryConnectionClientStateResponse();
|
|
980
|
+
while (reader.pos < end) {
|
|
981
|
+
const tag = reader.uint32();
|
|
982
|
+
switch (tag >>> 3) {
|
|
983
|
+
case 1:
|
|
984
|
+
message.identifiedClientState = IdentifiedClientState.decode(reader, reader.uint32());
|
|
985
|
+
break;
|
|
986
|
+
case 2:
|
|
987
|
+
message.proof = reader.bytes();
|
|
988
|
+
break;
|
|
989
|
+
case 3:
|
|
990
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
991
|
+
break;
|
|
992
|
+
default:
|
|
993
|
+
reader.skipType(tag & 7);
|
|
994
|
+
break;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
return message;
|
|
998
|
+
},
|
|
999
|
+
fromPartial(object: DeepPartial<QueryConnectionClientStateResponse>): QueryConnectionClientStateResponse {
|
|
1000
|
+
const message = createBaseQueryConnectionClientStateResponse();
|
|
1001
|
+
message.identifiedClientState = object.identifiedClientState !== undefined && object.identifiedClientState !== null ? IdentifiedClientState.fromPartial(object.identifiedClientState) : undefined;
|
|
1002
|
+
message.proof = object.proof ?? new Uint8Array();
|
|
1003
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
1004
|
+
return message;
|
|
1005
|
+
},
|
|
1006
|
+
fromAmino(object: QueryConnectionClientStateResponseAmino): QueryConnectionClientStateResponse {
|
|
1007
|
+
const message = createBaseQueryConnectionClientStateResponse();
|
|
1008
|
+
if (object.identified_client_state !== undefined && object.identified_client_state !== null) {
|
|
1009
|
+
message.identifiedClientState = IdentifiedClientState.fromAmino(object.identified_client_state);
|
|
1010
|
+
}
|
|
1011
|
+
if (object.proof !== undefined && object.proof !== null) {
|
|
1012
|
+
message.proof = bytesFromBase64(object.proof);
|
|
1013
|
+
}
|
|
1014
|
+
if (object.proof_height !== undefined && object.proof_height !== null) {
|
|
1015
|
+
message.proofHeight = Height.fromAmino(object.proof_height);
|
|
1016
|
+
}
|
|
1017
|
+
return message;
|
|
1018
|
+
},
|
|
1019
|
+
toAmino(message: QueryConnectionClientStateResponse): QueryConnectionClientStateResponseAmino {
|
|
1020
|
+
const obj: any = {};
|
|
1021
|
+
obj.identified_client_state = message.identifiedClientState ? IdentifiedClientState.toAmino(message.identifiedClientState) : undefined;
|
|
1022
|
+
obj.proof = message.proof ? base64FromBytes(message.proof) : undefined;
|
|
1023
|
+
obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {};
|
|
1024
|
+
return obj;
|
|
1025
|
+
},
|
|
1026
|
+
fromAminoMsg(object: QueryConnectionClientStateResponseAminoMsg): QueryConnectionClientStateResponse {
|
|
1027
|
+
return QueryConnectionClientStateResponse.fromAmino(object.value);
|
|
1028
|
+
},
|
|
1029
|
+
toAminoMsg(message: QueryConnectionClientStateResponse): QueryConnectionClientStateResponseAminoMsg {
|
|
1030
|
+
return {
|
|
1031
|
+
type: "cosmos-sdk/QueryConnectionClientStateResponse",
|
|
1032
|
+
value: QueryConnectionClientStateResponse.toAmino(message)
|
|
1033
|
+
};
|
|
1034
|
+
},
|
|
1035
|
+
fromProtoMsg(message: QueryConnectionClientStateResponseProtoMsg): QueryConnectionClientStateResponse {
|
|
1036
|
+
return QueryConnectionClientStateResponse.decode(message.value);
|
|
1037
|
+
},
|
|
1038
|
+
toProto(message: QueryConnectionClientStateResponse): Uint8Array {
|
|
1039
|
+
return QueryConnectionClientStateResponse.encode(message).finish();
|
|
1040
|
+
},
|
|
1041
|
+
toProtoMsg(message: QueryConnectionClientStateResponse): QueryConnectionClientStateResponseProtoMsg {
|
|
1042
|
+
return {
|
|
1043
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateResponse",
|
|
1044
|
+
value: QueryConnectionClientStateResponse.encode(message).finish()
|
|
1045
|
+
};
|
|
1046
|
+
}
|
|
1047
|
+
};
|
|
1048
|
+
GlobalDecoderRegistry.register(QueryConnectionClientStateResponse.typeUrl, QueryConnectionClientStateResponse);
|
|
1049
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConnectionClientStateResponse.aminoType, QueryConnectionClientStateResponse.typeUrl);
|
|
1050
|
+
function createBaseQueryConnectionConsensusStateRequest(): QueryConnectionConsensusStateRequest {
|
|
1051
|
+
return {
|
|
1052
|
+
connectionId: "",
|
|
1053
|
+
revisionNumber: BigInt(0),
|
|
1054
|
+
revisionHeight: BigInt(0)
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
export const QueryConnectionConsensusStateRequest = {
|
|
1058
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateRequest",
|
|
1059
|
+
aminoType: "cosmos-sdk/QueryConnectionConsensusStateRequest",
|
|
1060
|
+
is(o: any): o is QueryConnectionConsensusStateRequest {
|
|
1061
|
+
return o && (o.$typeUrl === QueryConnectionConsensusStateRequest.typeUrl || typeof o.connectionId === "string" && typeof o.revisionNumber === "bigint" && typeof o.revisionHeight === "bigint");
|
|
1062
|
+
},
|
|
1063
|
+
isAmino(o: any): o is QueryConnectionConsensusStateRequestAmino {
|
|
1064
|
+
return o && (o.$typeUrl === QueryConnectionConsensusStateRequest.typeUrl || typeof o.connection_id === "string" && typeof o.revision_number === "bigint" && typeof o.revision_height === "bigint");
|
|
1065
|
+
},
|
|
1066
|
+
encode(message: QueryConnectionConsensusStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1067
|
+
if (message.connectionId !== "") {
|
|
1068
|
+
writer.uint32(10).string(message.connectionId);
|
|
1069
|
+
}
|
|
1070
|
+
if (message.revisionNumber !== BigInt(0)) {
|
|
1071
|
+
writer.uint32(16).uint64(message.revisionNumber);
|
|
1072
|
+
}
|
|
1073
|
+
if (message.revisionHeight !== BigInt(0)) {
|
|
1074
|
+
writer.uint32(24).uint64(message.revisionHeight);
|
|
1075
|
+
}
|
|
1076
|
+
return writer;
|
|
1077
|
+
},
|
|
1078
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionConsensusStateRequest {
|
|
1079
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1080
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1081
|
+
const message = createBaseQueryConnectionConsensusStateRequest();
|
|
1082
|
+
while (reader.pos < end) {
|
|
1083
|
+
const tag = reader.uint32();
|
|
1084
|
+
switch (tag >>> 3) {
|
|
1085
|
+
case 1:
|
|
1086
|
+
message.connectionId = reader.string();
|
|
1087
|
+
break;
|
|
1088
|
+
case 2:
|
|
1089
|
+
message.revisionNumber = reader.uint64();
|
|
1090
|
+
break;
|
|
1091
|
+
case 3:
|
|
1092
|
+
message.revisionHeight = reader.uint64();
|
|
1093
|
+
break;
|
|
1094
|
+
default:
|
|
1095
|
+
reader.skipType(tag & 7);
|
|
1096
|
+
break;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
return message;
|
|
1100
|
+
},
|
|
1101
|
+
fromPartial(object: DeepPartial<QueryConnectionConsensusStateRequest>): QueryConnectionConsensusStateRequest {
|
|
1102
|
+
const message = createBaseQueryConnectionConsensusStateRequest();
|
|
1103
|
+
message.connectionId = object.connectionId ?? "";
|
|
1104
|
+
message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0);
|
|
1105
|
+
message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0);
|
|
1106
|
+
return message;
|
|
1107
|
+
},
|
|
1108
|
+
fromAmino(object: QueryConnectionConsensusStateRequestAmino): QueryConnectionConsensusStateRequest {
|
|
1109
|
+
const message = createBaseQueryConnectionConsensusStateRequest();
|
|
1110
|
+
if (object.connection_id !== undefined && object.connection_id !== null) {
|
|
1111
|
+
message.connectionId = object.connection_id;
|
|
1112
|
+
}
|
|
1113
|
+
if (object.revision_number !== undefined && object.revision_number !== null) {
|
|
1114
|
+
message.revisionNumber = BigInt(object.revision_number);
|
|
1115
|
+
}
|
|
1116
|
+
if (object.revision_height !== undefined && object.revision_height !== null) {
|
|
1117
|
+
message.revisionHeight = BigInt(object.revision_height);
|
|
1118
|
+
}
|
|
1119
|
+
return message;
|
|
1120
|
+
},
|
|
1121
|
+
toAmino(message: QueryConnectionConsensusStateRequest): QueryConnectionConsensusStateRequestAmino {
|
|
1122
|
+
const obj: any = {};
|
|
1123
|
+
obj.connection_id = message.connectionId === "" ? undefined : message.connectionId;
|
|
1124
|
+
obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber?.toString() : undefined;
|
|
1125
|
+
obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight?.toString() : undefined;
|
|
1126
|
+
return obj;
|
|
1127
|
+
},
|
|
1128
|
+
fromAminoMsg(object: QueryConnectionConsensusStateRequestAminoMsg): QueryConnectionConsensusStateRequest {
|
|
1129
|
+
return QueryConnectionConsensusStateRequest.fromAmino(object.value);
|
|
1130
|
+
},
|
|
1131
|
+
toAminoMsg(message: QueryConnectionConsensusStateRequest): QueryConnectionConsensusStateRequestAminoMsg {
|
|
1132
|
+
return {
|
|
1133
|
+
type: "cosmos-sdk/QueryConnectionConsensusStateRequest",
|
|
1134
|
+
value: QueryConnectionConsensusStateRequest.toAmino(message)
|
|
1135
|
+
};
|
|
1136
|
+
},
|
|
1137
|
+
fromProtoMsg(message: QueryConnectionConsensusStateRequestProtoMsg): QueryConnectionConsensusStateRequest {
|
|
1138
|
+
return QueryConnectionConsensusStateRequest.decode(message.value);
|
|
1139
|
+
},
|
|
1140
|
+
toProto(message: QueryConnectionConsensusStateRequest): Uint8Array {
|
|
1141
|
+
return QueryConnectionConsensusStateRequest.encode(message).finish();
|
|
1142
|
+
},
|
|
1143
|
+
toProtoMsg(message: QueryConnectionConsensusStateRequest): QueryConnectionConsensusStateRequestProtoMsg {
|
|
1144
|
+
return {
|
|
1145
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateRequest",
|
|
1146
|
+
value: QueryConnectionConsensusStateRequest.encode(message).finish()
|
|
1147
|
+
};
|
|
1148
|
+
}
|
|
1149
|
+
};
|
|
1150
|
+
GlobalDecoderRegistry.register(QueryConnectionConsensusStateRequest.typeUrl, QueryConnectionConsensusStateRequest);
|
|
1151
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConnectionConsensusStateRequest.aminoType, QueryConnectionConsensusStateRequest.typeUrl);
|
|
1152
|
+
function createBaseQueryConnectionConsensusStateResponse(): QueryConnectionConsensusStateResponse {
|
|
1153
|
+
return {
|
|
1154
|
+
consensusState: undefined,
|
|
1155
|
+
clientId: "",
|
|
1156
|
+
proof: new Uint8Array(),
|
|
1157
|
+
proofHeight: Height.fromPartial({})
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
export const QueryConnectionConsensusStateResponse = {
|
|
1161
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateResponse",
|
|
1162
|
+
aminoType: "cosmos-sdk/QueryConnectionConsensusStateResponse",
|
|
1163
|
+
is(o: any): o is QueryConnectionConsensusStateResponse {
|
|
1164
|
+
return o && (o.$typeUrl === QueryConnectionConsensusStateResponse.typeUrl || typeof o.clientId === "string" && (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.is(o.proofHeight));
|
|
1165
|
+
},
|
|
1166
|
+
isAmino(o: any): o is QueryConnectionConsensusStateResponseAmino {
|
|
1167
|
+
return o && (o.$typeUrl === QueryConnectionConsensusStateResponse.typeUrl || typeof o.client_id === "string" && (o.proof instanceof Uint8Array || typeof o.proof === "string") && Height.isAmino(o.proof_height));
|
|
1168
|
+
},
|
|
1169
|
+
encode(message: QueryConnectionConsensusStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1170
|
+
if (message.consensusState !== undefined) {
|
|
1171
|
+
Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim();
|
|
1172
|
+
}
|
|
1173
|
+
if (message.clientId !== "") {
|
|
1174
|
+
writer.uint32(18).string(message.clientId);
|
|
1175
|
+
}
|
|
1176
|
+
if (message.proof.length !== 0) {
|
|
1177
|
+
writer.uint32(26).bytes(message.proof);
|
|
1178
|
+
}
|
|
1179
|
+
if (message.proofHeight !== undefined) {
|
|
1180
|
+
Height.encode(message.proofHeight, writer.uint32(34).fork()).ldelim();
|
|
1181
|
+
}
|
|
1182
|
+
return writer;
|
|
1183
|
+
},
|
|
1184
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionConsensusStateResponse {
|
|
1185
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1186
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1187
|
+
const message = createBaseQueryConnectionConsensusStateResponse();
|
|
1188
|
+
while (reader.pos < end) {
|
|
1189
|
+
const tag = reader.uint32();
|
|
1190
|
+
switch (tag >>> 3) {
|
|
1191
|
+
case 1:
|
|
1192
|
+
message.consensusState = Any.decode(reader, reader.uint32());
|
|
1193
|
+
break;
|
|
1194
|
+
case 2:
|
|
1195
|
+
message.clientId = reader.string();
|
|
1196
|
+
break;
|
|
1197
|
+
case 3:
|
|
1198
|
+
message.proof = reader.bytes();
|
|
1199
|
+
break;
|
|
1200
|
+
case 4:
|
|
1201
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1202
|
+
break;
|
|
1203
|
+
default:
|
|
1204
|
+
reader.skipType(tag & 7);
|
|
1205
|
+
break;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
return message;
|
|
1209
|
+
},
|
|
1210
|
+
fromPartial(object: DeepPartial<QueryConnectionConsensusStateResponse>): QueryConnectionConsensusStateResponse {
|
|
1211
|
+
const message = createBaseQueryConnectionConsensusStateResponse();
|
|
1212
|
+
message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined;
|
|
1213
|
+
message.clientId = object.clientId ?? "";
|
|
1214
|
+
message.proof = object.proof ?? new Uint8Array();
|
|
1215
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
1216
|
+
return message;
|
|
1217
|
+
},
|
|
1218
|
+
fromAmino(object: QueryConnectionConsensusStateResponseAmino): QueryConnectionConsensusStateResponse {
|
|
1219
|
+
const message = createBaseQueryConnectionConsensusStateResponse();
|
|
1220
|
+
if (object.consensus_state !== undefined && object.consensus_state !== null) {
|
|
1221
|
+
message.consensusState = Any.fromAmino(object.consensus_state);
|
|
1222
|
+
}
|
|
1223
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
1224
|
+
message.clientId = object.client_id;
|
|
1225
|
+
}
|
|
1226
|
+
if (object.proof !== undefined && object.proof !== null) {
|
|
1227
|
+
message.proof = bytesFromBase64(object.proof);
|
|
1228
|
+
}
|
|
1229
|
+
if (object.proof_height !== undefined && object.proof_height !== null) {
|
|
1230
|
+
message.proofHeight = Height.fromAmino(object.proof_height);
|
|
1231
|
+
}
|
|
1232
|
+
return message;
|
|
1233
|
+
},
|
|
1234
|
+
toAmino(message: QueryConnectionConsensusStateResponse): QueryConnectionConsensusStateResponseAmino {
|
|
1235
|
+
const obj: any = {};
|
|
1236
|
+
obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined;
|
|
1237
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
1238
|
+
obj.proof = message.proof ? base64FromBytes(message.proof) : undefined;
|
|
1239
|
+
obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {};
|
|
1240
|
+
return obj;
|
|
1241
|
+
},
|
|
1242
|
+
fromAminoMsg(object: QueryConnectionConsensusStateResponseAminoMsg): QueryConnectionConsensusStateResponse {
|
|
1243
|
+
return QueryConnectionConsensusStateResponse.fromAmino(object.value);
|
|
1244
|
+
},
|
|
1245
|
+
toAminoMsg(message: QueryConnectionConsensusStateResponse): QueryConnectionConsensusStateResponseAminoMsg {
|
|
1246
|
+
return {
|
|
1247
|
+
type: "cosmos-sdk/QueryConnectionConsensusStateResponse",
|
|
1248
|
+
value: QueryConnectionConsensusStateResponse.toAmino(message)
|
|
1249
|
+
};
|
|
1250
|
+
},
|
|
1251
|
+
fromProtoMsg(message: QueryConnectionConsensusStateResponseProtoMsg): QueryConnectionConsensusStateResponse {
|
|
1252
|
+
return QueryConnectionConsensusStateResponse.decode(message.value);
|
|
1253
|
+
},
|
|
1254
|
+
toProto(message: QueryConnectionConsensusStateResponse): Uint8Array {
|
|
1255
|
+
return QueryConnectionConsensusStateResponse.encode(message).finish();
|
|
1256
|
+
},
|
|
1257
|
+
toProtoMsg(message: QueryConnectionConsensusStateResponse): QueryConnectionConsensusStateResponseProtoMsg {
|
|
1258
|
+
return {
|
|
1259
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateResponse",
|
|
1260
|
+
value: QueryConnectionConsensusStateResponse.encode(message).finish()
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
GlobalDecoderRegistry.register(QueryConnectionConsensusStateResponse.typeUrl, QueryConnectionConsensusStateResponse);
|
|
1265
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConnectionConsensusStateResponse.aminoType, QueryConnectionConsensusStateResponse.typeUrl);
|
|
1266
|
+
function createBaseQueryConnectionParamsRequest(): QueryConnectionParamsRequest {
|
|
1267
|
+
return {};
|
|
1268
|
+
}
|
|
1269
|
+
export const QueryConnectionParamsRequest = {
|
|
1270
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsRequest",
|
|
1271
|
+
aminoType: "cosmos-sdk/QueryConnectionParamsRequest",
|
|
1272
|
+
is(o: any): o is QueryConnectionParamsRequest {
|
|
1273
|
+
return o && o.$typeUrl === QueryConnectionParamsRequest.typeUrl;
|
|
1274
|
+
},
|
|
1275
|
+
isAmino(o: any): o is QueryConnectionParamsRequestAmino {
|
|
1276
|
+
return o && o.$typeUrl === QueryConnectionParamsRequest.typeUrl;
|
|
1277
|
+
},
|
|
1278
|
+
encode(_: QueryConnectionParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1279
|
+
return writer;
|
|
1280
|
+
},
|
|
1281
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionParamsRequest {
|
|
1282
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1283
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1284
|
+
const message = createBaseQueryConnectionParamsRequest();
|
|
1285
|
+
while (reader.pos < end) {
|
|
1286
|
+
const tag = reader.uint32();
|
|
1287
|
+
switch (tag >>> 3) {
|
|
1288
|
+
default:
|
|
1289
|
+
reader.skipType(tag & 7);
|
|
1290
|
+
break;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
return message;
|
|
1294
|
+
},
|
|
1295
|
+
fromPartial(_: DeepPartial<QueryConnectionParamsRequest>): QueryConnectionParamsRequest {
|
|
1296
|
+
const message = createBaseQueryConnectionParamsRequest();
|
|
1297
|
+
return message;
|
|
1298
|
+
},
|
|
1299
|
+
fromAmino(_: QueryConnectionParamsRequestAmino): QueryConnectionParamsRequest {
|
|
1300
|
+
const message = createBaseQueryConnectionParamsRequest();
|
|
1301
|
+
return message;
|
|
1302
|
+
},
|
|
1303
|
+
toAmino(_: QueryConnectionParamsRequest): QueryConnectionParamsRequestAmino {
|
|
1304
|
+
const obj: any = {};
|
|
1305
|
+
return obj;
|
|
1306
|
+
},
|
|
1307
|
+
fromAminoMsg(object: QueryConnectionParamsRequestAminoMsg): QueryConnectionParamsRequest {
|
|
1308
|
+
return QueryConnectionParamsRequest.fromAmino(object.value);
|
|
1309
|
+
},
|
|
1310
|
+
toAminoMsg(message: QueryConnectionParamsRequest): QueryConnectionParamsRequestAminoMsg {
|
|
1311
|
+
return {
|
|
1312
|
+
type: "cosmos-sdk/QueryConnectionParamsRequest",
|
|
1313
|
+
value: QueryConnectionParamsRequest.toAmino(message)
|
|
1314
|
+
};
|
|
1315
|
+
},
|
|
1316
|
+
fromProtoMsg(message: QueryConnectionParamsRequestProtoMsg): QueryConnectionParamsRequest {
|
|
1317
|
+
return QueryConnectionParamsRequest.decode(message.value);
|
|
1318
|
+
},
|
|
1319
|
+
toProto(message: QueryConnectionParamsRequest): Uint8Array {
|
|
1320
|
+
return QueryConnectionParamsRequest.encode(message).finish();
|
|
1321
|
+
},
|
|
1322
|
+
toProtoMsg(message: QueryConnectionParamsRequest): QueryConnectionParamsRequestProtoMsg {
|
|
1323
|
+
return {
|
|
1324
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsRequest",
|
|
1325
|
+
value: QueryConnectionParamsRequest.encode(message).finish()
|
|
1326
|
+
};
|
|
1327
|
+
}
|
|
1328
|
+
};
|
|
1329
|
+
GlobalDecoderRegistry.register(QueryConnectionParamsRequest.typeUrl, QueryConnectionParamsRequest);
|
|
1330
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConnectionParamsRequest.aminoType, QueryConnectionParamsRequest.typeUrl);
|
|
1331
|
+
function createBaseQueryConnectionParamsResponse(): QueryConnectionParamsResponse {
|
|
1332
|
+
return {
|
|
1333
|
+
params: undefined
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
export const QueryConnectionParamsResponse = {
|
|
1337
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsResponse",
|
|
1338
|
+
aminoType: "cosmos-sdk/QueryConnectionParamsResponse",
|
|
1339
|
+
is(o: any): o is QueryConnectionParamsResponse {
|
|
1340
|
+
return o && o.$typeUrl === QueryConnectionParamsResponse.typeUrl;
|
|
1341
|
+
},
|
|
1342
|
+
isAmino(o: any): o is QueryConnectionParamsResponseAmino {
|
|
1343
|
+
return o && o.$typeUrl === QueryConnectionParamsResponse.typeUrl;
|
|
1344
|
+
},
|
|
1345
|
+
encode(message: QueryConnectionParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1346
|
+
if (message.params !== undefined) {
|
|
1347
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
1348
|
+
}
|
|
1349
|
+
return writer;
|
|
1350
|
+
},
|
|
1351
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionParamsResponse {
|
|
1352
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1353
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1354
|
+
const message = createBaseQueryConnectionParamsResponse();
|
|
1355
|
+
while (reader.pos < end) {
|
|
1356
|
+
const tag = reader.uint32();
|
|
1357
|
+
switch (tag >>> 3) {
|
|
1358
|
+
case 1:
|
|
1359
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
1360
|
+
break;
|
|
1361
|
+
default:
|
|
1362
|
+
reader.skipType(tag & 7);
|
|
1363
|
+
break;
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
return message;
|
|
1367
|
+
},
|
|
1368
|
+
fromPartial(object: DeepPartial<QueryConnectionParamsResponse>): QueryConnectionParamsResponse {
|
|
1369
|
+
const message = createBaseQueryConnectionParamsResponse();
|
|
1370
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
1371
|
+
return message;
|
|
1372
|
+
},
|
|
1373
|
+
fromAmino(object: QueryConnectionParamsResponseAmino): QueryConnectionParamsResponse {
|
|
1374
|
+
const message = createBaseQueryConnectionParamsResponse();
|
|
1375
|
+
if (object.params !== undefined && object.params !== null) {
|
|
1376
|
+
message.params = Params.fromAmino(object.params);
|
|
1377
|
+
}
|
|
1378
|
+
return message;
|
|
1379
|
+
},
|
|
1380
|
+
toAmino(message: QueryConnectionParamsResponse): QueryConnectionParamsResponseAmino {
|
|
1381
|
+
const obj: any = {};
|
|
1382
|
+
obj.params = message.params ? Params.toAmino(message.params) : undefined;
|
|
1383
|
+
return obj;
|
|
1384
|
+
},
|
|
1385
|
+
fromAminoMsg(object: QueryConnectionParamsResponseAminoMsg): QueryConnectionParamsResponse {
|
|
1386
|
+
return QueryConnectionParamsResponse.fromAmino(object.value);
|
|
1387
|
+
},
|
|
1388
|
+
toAminoMsg(message: QueryConnectionParamsResponse): QueryConnectionParamsResponseAminoMsg {
|
|
1389
|
+
return {
|
|
1390
|
+
type: "cosmos-sdk/QueryConnectionParamsResponse",
|
|
1391
|
+
value: QueryConnectionParamsResponse.toAmino(message)
|
|
1392
|
+
};
|
|
1393
|
+
},
|
|
1394
|
+
fromProtoMsg(message: QueryConnectionParamsResponseProtoMsg): QueryConnectionParamsResponse {
|
|
1395
|
+
return QueryConnectionParamsResponse.decode(message.value);
|
|
1396
|
+
},
|
|
1397
|
+
toProto(message: QueryConnectionParamsResponse): Uint8Array {
|
|
1398
|
+
return QueryConnectionParamsResponse.encode(message).finish();
|
|
1399
|
+
},
|
|
1400
|
+
toProtoMsg(message: QueryConnectionParamsResponse): QueryConnectionParamsResponseProtoMsg {
|
|
1401
|
+
return {
|
|
1402
|
+
typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsResponse",
|
|
1403
|
+
value: QueryConnectionParamsResponse.encode(message).finish()
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1406
|
+
};
|
|
1407
|
+
GlobalDecoderRegistry.register(QueryConnectionParamsResponse.typeUrl, QueryConnectionParamsResponse);
|
|
1408
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryConnectionParamsResponse.aminoType, QueryConnectionParamsResponse.typeUrl);
|