@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,1365 @@
|
|
|
1
|
+
import { Counterparty, CounterpartyAmino, Version, VersionAmino } from "./connection";
|
|
2
|
+
import { Any, AnyAmino } from "../../../../google/protobuf/any";
|
|
3
|
+
import { Height, HeightAmino, Params, ParamsAmino } from "../../client/v1/client";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
5
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers";
|
|
6
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
7
|
+
/**
|
|
8
|
+
* MsgConnectionOpenInit defines the msg sent by an account on Chain A to
|
|
9
|
+
* initialize a connection with Chain B.
|
|
10
|
+
*/
|
|
11
|
+
export interface MsgConnectionOpenInit {
|
|
12
|
+
clientId: string;
|
|
13
|
+
counterparty: Counterparty;
|
|
14
|
+
version?: Version;
|
|
15
|
+
delayPeriod: bigint;
|
|
16
|
+
signer: string;
|
|
17
|
+
}
|
|
18
|
+
export interface MsgConnectionOpenInitProtoMsg {
|
|
19
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit";
|
|
20
|
+
value: Uint8Array;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* MsgConnectionOpenInit defines the msg sent by an account on Chain A to
|
|
24
|
+
* initialize a connection with Chain B.
|
|
25
|
+
*/
|
|
26
|
+
export interface MsgConnectionOpenInitAmino {
|
|
27
|
+
client_id: string;
|
|
28
|
+
counterparty: CounterpartyAmino;
|
|
29
|
+
version?: VersionAmino;
|
|
30
|
+
delay_period: string;
|
|
31
|
+
signer: string;
|
|
32
|
+
}
|
|
33
|
+
export interface MsgConnectionOpenInitAminoMsg {
|
|
34
|
+
type: "cosmos-sdk/MsgConnectionOpenInit";
|
|
35
|
+
value: MsgConnectionOpenInitAmino;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response
|
|
39
|
+
* type.
|
|
40
|
+
*/
|
|
41
|
+
export interface MsgConnectionOpenInitResponse {}
|
|
42
|
+
export interface MsgConnectionOpenInitResponseProtoMsg {
|
|
43
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInitResponse";
|
|
44
|
+
value: Uint8Array;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response
|
|
48
|
+
* type.
|
|
49
|
+
*/
|
|
50
|
+
export interface MsgConnectionOpenInitResponseAmino {}
|
|
51
|
+
export interface MsgConnectionOpenInitResponseAminoMsg {
|
|
52
|
+
type: "cosmos-sdk/MsgConnectionOpenInitResponse";
|
|
53
|
+
value: MsgConnectionOpenInitResponseAmino;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a
|
|
57
|
+
* connection on Chain B.
|
|
58
|
+
*/
|
|
59
|
+
export interface MsgConnectionOpenTry {
|
|
60
|
+
clientId: string;
|
|
61
|
+
/** Deprecated: this field is unused. Crossing hellos are no longer supported in core IBC. */
|
|
62
|
+
/** @deprecated */
|
|
63
|
+
previousConnectionId: string;
|
|
64
|
+
clientState?: Any;
|
|
65
|
+
counterparty: Counterparty;
|
|
66
|
+
delayPeriod: bigint;
|
|
67
|
+
counterpartyVersions: Version[];
|
|
68
|
+
proofHeight: Height;
|
|
69
|
+
/**
|
|
70
|
+
* proof of the initialization the connection on Chain A: `UNITIALIZED ->
|
|
71
|
+
* INIT`
|
|
72
|
+
*/
|
|
73
|
+
proofInit: Uint8Array;
|
|
74
|
+
/** proof of client state included in message */
|
|
75
|
+
proofClient: Uint8Array;
|
|
76
|
+
/** proof of client consensus state */
|
|
77
|
+
proofConsensus: Uint8Array;
|
|
78
|
+
consensusHeight: Height;
|
|
79
|
+
signer: string;
|
|
80
|
+
/** optional proof data for host state machines that are unable to introspect their own consensus state */
|
|
81
|
+
hostConsensusStateProof: Uint8Array;
|
|
82
|
+
}
|
|
83
|
+
export interface MsgConnectionOpenTryProtoMsg {
|
|
84
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry";
|
|
85
|
+
value: Uint8Array;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a
|
|
89
|
+
* connection on Chain B.
|
|
90
|
+
*/
|
|
91
|
+
export interface MsgConnectionOpenTryAmino {
|
|
92
|
+
client_id: string;
|
|
93
|
+
/** Deprecated: this field is unused. Crossing hellos are no longer supported in core IBC. */
|
|
94
|
+
/** @deprecated */
|
|
95
|
+
previous_connection_id: string;
|
|
96
|
+
client_state?: AnyAmino;
|
|
97
|
+
counterparty: CounterpartyAmino;
|
|
98
|
+
delay_period: string;
|
|
99
|
+
counterparty_versions: VersionAmino[];
|
|
100
|
+
proof_height: HeightAmino;
|
|
101
|
+
/**
|
|
102
|
+
* proof of the initialization the connection on Chain A: `UNITIALIZED ->
|
|
103
|
+
* INIT`
|
|
104
|
+
*/
|
|
105
|
+
proof_init: string;
|
|
106
|
+
/** proof of client state included in message */
|
|
107
|
+
proof_client: string;
|
|
108
|
+
/** proof of client consensus state */
|
|
109
|
+
proof_consensus: string;
|
|
110
|
+
consensus_height: HeightAmino;
|
|
111
|
+
signer: string;
|
|
112
|
+
/** optional proof data for host state machines that are unable to introspect their own consensus state */
|
|
113
|
+
host_consensus_state_proof: string;
|
|
114
|
+
}
|
|
115
|
+
export interface MsgConnectionOpenTryAminoMsg {
|
|
116
|
+
type: "cosmos-sdk/MsgConnectionOpenTry";
|
|
117
|
+
value: MsgConnectionOpenTryAmino;
|
|
118
|
+
}
|
|
119
|
+
/** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */
|
|
120
|
+
export interface MsgConnectionOpenTryResponse {}
|
|
121
|
+
export interface MsgConnectionOpenTryResponseProtoMsg {
|
|
122
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTryResponse";
|
|
123
|
+
value: Uint8Array;
|
|
124
|
+
}
|
|
125
|
+
/** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */
|
|
126
|
+
export interface MsgConnectionOpenTryResponseAmino {}
|
|
127
|
+
export interface MsgConnectionOpenTryResponseAminoMsg {
|
|
128
|
+
type: "cosmos-sdk/MsgConnectionOpenTryResponse";
|
|
129
|
+
value: MsgConnectionOpenTryResponseAmino;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to
|
|
133
|
+
* acknowledge the change of connection state to TRYOPEN on Chain B.
|
|
134
|
+
*/
|
|
135
|
+
export interface MsgConnectionOpenAck {
|
|
136
|
+
connectionId: string;
|
|
137
|
+
counterpartyConnectionId: string;
|
|
138
|
+
version?: Version;
|
|
139
|
+
clientState?: Any;
|
|
140
|
+
proofHeight: Height;
|
|
141
|
+
/**
|
|
142
|
+
* proof of the initialization the connection on Chain B: `UNITIALIZED ->
|
|
143
|
+
* TRYOPEN`
|
|
144
|
+
*/
|
|
145
|
+
proofTry: Uint8Array;
|
|
146
|
+
/** proof of client state included in message */
|
|
147
|
+
proofClient: Uint8Array;
|
|
148
|
+
/** proof of client consensus state */
|
|
149
|
+
proofConsensus: Uint8Array;
|
|
150
|
+
consensusHeight: Height;
|
|
151
|
+
signer: string;
|
|
152
|
+
/** optional proof data for host state machines that are unable to introspect their own consensus state */
|
|
153
|
+
hostConsensusStateProof: Uint8Array;
|
|
154
|
+
}
|
|
155
|
+
export interface MsgConnectionOpenAckProtoMsg {
|
|
156
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck";
|
|
157
|
+
value: Uint8Array;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to
|
|
161
|
+
* acknowledge the change of connection state to TRYOPEN on Chain B.
|
|
162
|
+
*/
|
|
163
|
+
export interface MsgConnectionOpenAckAmino {
|
|
164
|
+
connection_id: string;
|
|
165
|
+
counterparty_connection_id: string;
|
|
166
|
+
version?: VersionAmino;
|
|
167
|
+
client_state?: AnyAmino;
|
|
168
|
+
proof_height: HeightAmino;
|
|
169
|
+
/**
|
|
170
|
+
* proof of the initialization the connection on Chain B: `UNITIALIZED ->
|
|
171
|
+
* TRYOPEN`
|
|
172
|
+
*/
|
|
173
|
+
proof_try: string;
|
|
174
|
+
/** proof of client state included in message */
|
|
175
|
+
proof_client: string;
|
|
176
|
+
/** proof of client consensus state */
|
|
177
|
+
proof_consensus: string;
|
|
178
|
+
consensus_height: HeightAmino;
|
|
179
|
+
signer: string;
|
|
180
|
+
/** optional proof data for host state machines that are unable to introspect their own consensus state */
|
|
181
|
+
host_consensus_state_proof: string;
|
|
182
|
+
}
|
|
183
|
+
export interface MsgConnectionOpenAckAminoMsg {
|
|
184
|
+
type: "cosmos-sdk/MsgConnectionOpenAck";
|
|
185
|
+
value: MsgConnectionOpenAckAmino;
|
|
186
|
+
}
|
|
187
|
+
/** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */
|
|
188
|
+
export interface MsgConnectionOpenAckResponse {}
|
|
189
|
+
export interface MsgConnectionOpenAckResponseProtoMsg {
|
|
190
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAckResponse";
|
|
191
|
+
value: Uint8Array;
|
|
192
|
+
}
|
|
193
|
+
/** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */
|
|
194
|
+
export interface MsgConnectionOpenAckResponseAmino {}
|
|
195
|
+
export interface MsgConnectionOpenAckResponseAminoMsg {
|
|
196
|
+
type: "cosmos-sdk/MsgConnectionOpenAckResponse";
|
|
197
|
+
value: MsgConnectionOpenAckResponseAmino;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to
|
|
201
|
+
* acknowledge the change of connection state to OPEN on Chain A.
|
|
202
|
+
*/
|
|
203
|
+
export interface MsgConnectionOpenConfirm {
|
|
204
|
+
connectionId: string;
|
|
205
|
+
/** proof for the change of the connection state on Chain A: `INIT -> OPEN` */
|
|
206
|
+
proofAck: Uint8Array;
|
|
207
|
+
proofHeight: Height;
|
|
208
|
+
signer: string;
|
|
209
|
+
}
|
|
210
|
+
export interface MsgConnectionOpenConfirmProtoMsg {
|
|
211
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm";
|
|
212
|
+
value: Uint8Array;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to
|
|
216
|
+
* acknowledge the change of connection state to OPEN on Chain A.
|
|
217
|
+
*/
|
|
218
|
+
export interface MsgConnectionOpenConfirmAmino {
|
|
219
|
+
connection_id: string;
|
|
220
|
+
/** proof for the change of the connection state on Chain A: `INIT -> OPEN` */
|
|
221
|
+
proof_ack: string;
|
|
222
|
+
proof_height: HeightAmino;
|
|
223
|
+
signer: string;
|
|
224
|
+
}
|
|
225
|
+
export interface MsgConnectionOpenConfirmAminoMsg {
|
|
226
|
+
type: "cosmos-sdk/MsgConnectionOpenConfirm";
|
|
227
|
+
value: MsgConnectionOpenConfirmAmino;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm
|
|
231
|
+
* response type.
|
|
232
|
+
*/
|
|
233
|
+
export interface MsgConnectionOpenConfirmResponse {}
|
|
234
|
+
export interface MsgConnectionOpenConfirmResponseProtoMsg {
|
|
235
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse";
|
|
236
|
+
value: Uint8Array;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm
|
|
240
|
+
* response type.
|
|
241
|
+
*/
|
|
242
|
+
export interface MsgConnectionOpenConfirmResponseAmino {}
|
|
243
|
+
export interface MsgConnectionOpenConfirmResponseAminoMsg {
|
|
244
|
+
type: "cosmos-sdk/MsgConnectionOpenConfirmResponse";
|
|
245
|
+
value: MsgConnectionOpenConfirmResponseAmino;
|
|
246
|
+
}
|
|
247
|
+
/** MsgUpdateParams defines the sdk.Msg type to update the connection parameters. */
|
|
248
|
+
export interface MsgUpdateParams {
|
|
249
|
+
/** signer address */
|
|
250
|
+
signer: string;
|
|
251
|
+
/**
|
|
252
|
+
* params defines the connection parameters to update.
|
|
253
|
+
*
|
|
254
|
+
* NOTE: All parameters must be supplied.
|
|
255
|
+
*/
|
|
256
|
+
params: Params;
|
|
257
|
+
}
|
|
258
|
+
export interface MsgUpdateParamsProtoMsg {
|
|
259
|
+
typeUrl: "/ibc.core.connection.v1.MsgUpdateParams";
|
|
260
|
+
value: Uint8Array;
|
|
261
|
+
}
|
|
262
|
+
/** MsgUpdateParams defines the sdk.Msg type to update the connection parameters. */
|
|
263
|
+
export interface MsgUpdateParamsAmino {
|
|
264
|
+
/** signer address */
|
|
265
|
+
signer: string;
|
|
266
|
+
/**
|
|
267
|
+
* params defines the connection parameters to update.
|
|
268
|
+
*
|
|
269
|
+
* NOTE: All parameters must be supplied.
|
|
270
|
+
*/
|
|
271
|
+
params: ParamsAmino;
|
|
272
|
+
}
|
|
273
|
+
export interface MsgUpdateParamsAminoMsg {
|
|
274
|
+
type: "cosmos-sdk/MsgUpdateParams";
|
|
275
|
+
value: MsgUpdateParamsAmino;
|
|
276
|
+
}
|
|
277
|
+
/** MsgUpdateParamsResponse defines the MsgUpdateParams response type. */
|
|
278
|
+
export interface MsgUpdateParamsResponse {}
|
|
279
|
+
export interface MsgUpdateParamsResponseProtoMsg {
|
|
280
|
+
typeUrl: "/ibc.core.connection.v1.MsgUpdateParamsResponse";
|
|
281
|
+
value: Uint8Array;
|
|
282
|
+
}
|
|
283
|
+
/** MsgUpdateParamsResponse defines the MsgUpdateParams response type. */
|
|
284
|
+
export interface MsgUpdateParamsResponseAmino {}
|
|
285
|
+
export interface MsgUpdateParamsResponseAminoMsg {
|
|
286
|
+
type: "cosmos-sdk/MsgUpdateParamsResponse";
|
|
287
|
+
value: MsgUpdateParamsResponseAmino;
|
|
288
|
+
}
|
|
289
|
+
function createBaseMsgConnectionOpenInit(): MsgConnectionOpenInit {
|
|
290
|
+
return {
|
|
291
|
+
clientId: "",
|
|
292
|
+
counterparty: Counterparty.fromPartial({}),
|
|
293
|
+
version: undefined,
|
|
294
|
+
delayPeriod: BigInt(0),
|
|
295
|
+
signer: ""
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
export const MsgConnectionOpenInit = {
|
|
299
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit",
|
|
300
|
+
aminoType: "cosmos-sdk/MsgConnectionOpenInit",
|
|
301
|
+
is(o: any): o is MsgConnectionOpenInit {
|
|
302
|
+
return o && (o.$typeUrl === MsgConnectionOpenInit.typeUrl || typeof o.clientId === "string" && Counterparty.is(o.counterparty) && typeof o.delayPeriod === "bigint" && typeof o.signer === "string");
|
|
303
|
+
},
|
|
304
|
+
isAmino(o: any): o is MsgConnectionOpenInitAmino {
|
|
305
|
+
return o && (o.$typeUrl === MsgConnectionOpenInit.typeUrl || typeof o.client_id === "string" && Counterparty.isAmino(o.counterparty) && typeof o.delay_period === "bigint" && typeof o.signer === "string");
|
|
306
|
+
},
|
|
307
|
+
encode(message: MsgConnectionOpenInit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
308
|
+
if (message.clientId !== "") {
|
|
309
|
+
writer.uint32(10).string(message.clientId);
|
|
310
|
+
}
|
|
311
|
+
if (message.counterparty !== undefined) {
|
|
312
|
+
Counterparty.encode(message.counterparty, writer.uint32(18).fork()).ldelim();
|
|
313
|
+
}
|
|
314
|
+
if (message.version !== undefined) {
|
|
315
|
+
Version.encode(message.version, writer.uint32(26).fork()).ldelim();
|
|
316
|
+
}
|
|
317
|
+
if (message.delayPeriod !== BigInt(0)) {
|
|
318
|
+
writer.uint32(32).uint64(message.delayPeriod);
|
|
319
|
+
}
|
|
320
|
+
if (message.signer !== "") {
|
|
321
|
+
writer.uint32(42).string(message.signer);
|
|
322
|
+
}
|
|
323
|
+
return writer;
|
|
324
|
+
},
|
|
325
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgConnectionOpenInit {
|
|
326
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
327
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
328
|
+
const message = createBaseMsgConnectionOpenInit();
|
|
329
|
+
while (reader.pos < end) {
|
|
330
|
+
const tag = reader.uint32();
|
|
331
|
+
switch (tag >>> 3) {
|
|
332
|
+
case 1:
|
|
333
|
+
message.clientId = reader.string();
|
|
334
|
+
break;
|
|
335
|
+
case 2:
|
|
336
|
+
message.counterparty = Counterparty.decode(reader, reader.uint32());
|
|
337
|
+
break;
|
|
338
|
+
case 3:
|
|
339
|
+
message.version = Version.decode(reader, reader.uint32());
|
|
340
|
+
break;
|
|
341
|
+
case 4:
|
|
342
|
+
message.delayPeriod = reader.uint64();
|
|
343
|
+
break;
|
|
344
|
+
case 5:
|
|
345
|
+
message.signer = reader.string();
|
|
346
|
+
break;
|
|
347
|
+
default:
|
|
348
|
+
reader.skipType(tag & 7);
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
return message;
|
|
353
|
+
},
|
|
354
|
+
fromPartial(object: DeepPartial<MsgConnectionOpenInit>): MsgConnectionOpenInit {
|
|
355
|
+
const message = createBaseMsgConnectionOpenInit();
|
|
356
|
+
message.clientId = object.clientId ?? "";
|
|
357
|
+
message.counterparty = object.counterparty !== undefined && object.counterparty !== null ? Counterparty.fromPartial(object.counterparty) : undefined;
|
|
358
|
+
message.version = object.version !== undefined && object.version !== null ? Version.fromPartial(object.version) : undefined;
|
|
359
|
+
message.delayPeriod = object.delayPeriod !== undefined && object.delayPeriod !== null ? BigInt(object.delayPeriod.toString()) : BigInt(0);
|
|
360
|
+
message.signer = object.signer ?? "";
|
|
361
|
+
return message;
|
|
362
|
+
},
|
|
363
|
+
fromAmino(object: MsgConnectionOpenInitAmino): MsgConnectionOpenInit {
|
|
364
|
+
const message = createBaseMsgConnectionOpenInit();
|
|
365
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
366
|
+
message.clientId = object.client_id;
|
|
367
|
+
}
|
|
368
|
+
if (object.counterparty !== undefined && object.counterparty !== null) {
|
|
369
|
+
message.counterparty = Counterparty.fromAmino(object.counterparty);
|
|
370
|
+
}
|
|
371
|
+
if (object.version !== undefined && object.version !== null) {
|
|
372
|
+
message.version = Version.fromAmino(object.version);
|
|
373
|
+
}
|
|
374
|
+
if (object.delay_period !== undefined && object.delay_period !== null) {
|
|
375
|
+
message.delayPeriod = BigInt(object.delay_period);
|
|
376
|
+
}
|
|
377
|
+
if (object.signer !== undefined && object.signer !== null) {
|
|
378
|
+
message.signer = object.signer;
|
|
379
|
+
}
|
|
380
|
+
return message;
|
|
381
|
+
},
|
|
382
|
+
toAmino(message: MsgConnectionOpenInit): MsgConnectionOpenInitAmino {
|
|
383
|
+
const obj: any = {};
|
|
384
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
385
|
+
obj.counterparty = message.counterparty ? Counterparty.toAmino(message.counterparty) : undefined;
|
|
386
|
+
obj.version = message.version ? Version.toAmino(message.version) : undefined;
|
|
387
|
+
obj.delay_period = message.delayPeriod !== BigInt(0) ? message.delayPeriod?.toString() : undefined;
|
|
388
|
+
obj.signer = message.signer === "" ? undefined : message.signer;
|
|
389
|
+
return obj;
|
|
390
|
+
},
|
|
391
|
+
fromAminoMsg(object: MsgConnectionOpenInitAminoMsg): MsgConnectionOpenInit {
|
|
392
|
+
return MsgConnectionOpenInit.fromAmino(object.value);
|
|
393
|
+
},
|
|
394
|
+
toAminoMsg(message: MsgConnectionOpenInit): MsgConnectionOpenInitAminoMsg {
|
|
395
|
+
return {
|
|
396
|
+
type: "cosmos-sdk/MsgConnectionOpenInit",
|
|
397
|
+
value: MsgConnectionOpenInit.toAmino(message)
|
|
398
|
+
};
|
|
399
|
+
},
|
|
400
|
+
fromProtoMsg(message: MsgConnectionOpenInitProtoMsg): MsgConnectionOpenInit {
|
|
401
|
+
return MsgConnectionOpenInit.decode(message.value);
|
|
402
|
+
},
|
|
403
|
+
toProto(message: MsgConnectionOpenInit): Uint8Array {
|
|
404
|
+
return MsgConnectionOpenInit.encode(message).finish();
|
|
405
|
+
},
|
|
406
|
+
toProtoMsg(message: MsgConnectionOpenInit): MsgConnectionOpenInitProtoMsg {
|
|
407
|
+
return {
|
|
408
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit",
|
|
409
|
+
value: MsgConnectionOpenInit.encode(message).finish()
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
GlobalDecoderRegistry.register(MsgConnectionOpenInit.typeUrl, MsgConnectionOpenInit);
|
|
414
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgConnectionOpenInit.aminoType, MsgConnectionOpenInit.typeUrl);
|
|
415
|
+
function createBaseMsgConnectionOpenInitResponse(): MsgConnectionOpenInitResponse {
|
|
416
|
+
return {};
|
|
417
|
+
}
|
|
418
|
+
export const MsgConnectionOpenInitResponse = {
|
|
419
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInitResponse",
|
|
420
|
+
aminoType: "cosmos-sdk/MsgConnectionOpenInitResponse",
|
|
421
|
+
is(o: any): o is MsgConnectionOpenInitResponse {
|
|
422
|
+
return o && o.$typeUrl === MsgConnectionOpenInitResponse.typeUrl;
|
|
423
|
+
},
|
|
424
|
+
isAmino(o: any): o is MsgConnectionOpenInitResponseAmino {
|
|
425
|
+
return o && o.$typeUrl === MsgConnectionOpenInitResponse.typeUrl;
|
|
426
|
+
},
|
|
427
|
+
encode(_: MsgConnectionOpenInitResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
428
|
+
return writer;
|
|
429
|
+
},
|
|
430
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgConnectionOpenInitResponse {
|
|
431
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
432
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
433
|
+
const message = createBaseMsgConnectionOpenInitResponse();
|
|
434
|
+
while (reader.pos < end) {
|
|
435
|
+
const tag = reader.uint32();
|
|
436
|
+
switch (tag >>> 3) {
|
|
437
|
+
default:
|
|
438
|
+
reader.skipType(tag & 7);
|
|
439
|
+
break;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
return message;
|
|
443
|
+
},
|
|
444
|
+
fromPartial(_: DeepPartial<MsgConnectionOpenInitResponse>): MsgConnectionOpenInitResponse {
|
|
445
|
+
const message = createBaseMsgConnectionOpenInitResponse();
|
|
446
|
+
return message;
|
|
447
|
+
},
|
|
448
|
+
fromAmino(_: MsgConnectionOpenInitResponseAmino): MsgConnectionOpenInitResponse {
|
|
449
|
+
const message = createBaseMsgConnectionOpenInitResponse();
|
|
450
|
+
return message;
|
|
451
|
+
},
|
|
452
|
+
toAmino(_: MsgConnectionOpenInitResponse): MsgConnectionOpenInitResponseAmino {
|
|
453
|
+
const obj: any = {};
|
|
454
|
+
return obj;
|
|
455
|
+
},
|
|
456
|
+
fromAminoMsg(object: MsgConnectionOpenInitResponseAminoMsg): MsgConnectionOpenInitResponse {
|
|
457
|
+
return MsgConnectionOpenInitResponse.fromAmino(object.value);
|
|
458
|
+
},
|
|
459
|
+
toAminoMsg(message: MsgConnectionOpenInitResponse): MsgConnectionOpenInitResponseAminoMsg {
|
|
460
|
+
return {
|
|
461
|
+
type: "cosmos-sdk/MsgConnectionOpenInitResponse",
|
|
462
|
+
value: MsgConnectionOpenInitResponse.toAmino(message)
|
|
463
|
+
};
|
|
464
|
+
},
|
|
465
|
+
fromProtoMsg(message: MsgConnectionOpenInitResponseProtoMsg): MsgConnectionOpenInitResponse {
|
|
466
|
+
return MsgConnectionOpenInitResponse.decode(message.value);
|
|
467
|
+
},
|
|
468
|
+
toProto(message: MsgConnectionOpenInitResponse): Uint8Array {
|
|
469
|
+
return MsgConnectionOpenInitResponse.encode(message).finish();
|
|
470
|
+
},
|
|
471
|
+
toProtoMsg(message: MsgConnectionOpenInitResponse): MsgConnectionOpenInitResponseProtoMsg {
|
|
472
|
+
return {
|
|
473
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInitResponse",
|
|
474
|
+
value: MsgConnectionOpenInitResponse.encode(message).finish()
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
GlobalDecoderRegistry.register(MsgConnectionOpenInitResponse.typeUrl, MsgConnectionOpenInitResponse);
|
|
479
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgConnectionOpenInitResponse.aminoType, MsgConnectionOpenInitResponse.typeUrl);
|
|
480
|
+
function createBaseMsgConnectionOpenTry(): MsgConnectionOpenTry {
|
|
481
|
+
return {
|
|
482
|
+
clientId: "",
|
|
483
|
+
previousConnectionId: "",
|
|
484
|
+
clientState: undefined,
|
|
485
|
+
counterparty: Counterparty.fromPartial({}),
|
|
486
|
+
delayPeriod: BigInt(0),
|
|
487
|
+
counterpartyVersions: [],
|
|
488
|
+
proofHeight: Height.fromPartial({}),
|
|
489
|
+
proofInit: new Uint8Array(),
|
|
490
|
+
proofClient: new Uint8Array(),
|
|
491
|
+
proofConsensus: new Uint8Array(),
|
|
492
|
+
consensusHeight: Height.fromPartial({}),
|
|
493
|
+
signer: "",
|
|
494
|
+
hostConsensusStateProof: new Uint8Array()
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
export const MsgConnectionOpenTry = {
|
|
498
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry",
|
|
499
|
+
aminoType: "cosmos-sdk/MsgConnectionOpenTry",
|
|
500
|
+
is(o: any): o is MsgConnectionOpenTry {
|
|
501
|
+
return o && (o.$typeUrl === MsgConnectionOpenTry.typeUrl || typeof o.clientId === "string" && typeof o.previousConnectionId === "string" && Counterparty.is(o.counterparty) && typeof o.delayPeriod === "bigint" && Array.isArray(o.counterpartyVersions) && (!o.counterpartyVersions.length || Version.is(o.counterpartyVersions[0])) && Height.is(o.proofHeight) && (o.proofInit instanceof Uint8Array || typeof o.proofInit === "string") && (o.proofClient instanceof Uint8Array || typeof o.proofClient === "string") && (o.proofConsensus instanceof Uint8Array || typeof o.proofConsensus === "string") && Height.is(o.consensusHeight) && typeof o.signer === "string" && (o.hostConsensusStateProof instanceof Uint8Array || typeof o.hostConsensusStateProof === "string"));
|
|
502
|
+
},
|
|
503
|
+
isAmino(o: any): o is MsgConnectionOpenTryAmino {
|
|
504
|
+
return o && (o.$typeUrl === MsgConnectionOpenTry.typeUrl || typeof o.client_id === "string" && typeof o.previous_connection_id === "string" && Counterparty.isAmino(o.counterparty) && typeof o.delay_period === "bigint" && Array.isArray(o.counterparty_versions) && (!o.counterparty_versions.length || Version.isAmino(o.counterparty_versions[0])) && Height.isAmino(o.proof_height) && (o.proof_init instanceof Uint8Array || typeof o.proof_init === "string") && (o.proof_client instanceof Uint8Array || typeof o.proof_client === "string") && (o.proof_consensus instanceof Uint8Array || typeof o.proof_consensus === "string") && Height.isAmino(o.consensus_height) && typeof o.signer === "string" && (o.host_consensus_state_proof instanceof Uint8Array || typeof o.host_consensus_state_proof === "string"));
|
|
505
|
+
},
|
|
506
|
+
encode(message: MsgConnectionOpenTry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
507
|
+
if (message.clientId !== "") {
|
|
508
|
+
writer.uint32(10).string(message.clientId);
|
|
509
|
+
}
|
|
510
|
+
if (message.previousConnectionId !== "") {
|
|
511
|
+
writer.uint32(18).string(message.previousConnectionId);
|
|
512
|
+
}
|
|
513
|
+
if (message.clientState !== undefined) {
|
|
514
|
+
Any.encode(message.clientState, writer.uint32(26).fork()).ldelim();
|
|
515
|
+
}
|
|
516
|
+
if (message.counterparty !== undefined) {
|
|
517
|
+
Counterparty.encode(message.counterparty, writer.uint32(34).fork()).ldelim();
|
|
518
|
+
}
|
|
519
|
+
if (message.delayPeriod !== BigInt(0)) {
|
|
520
|
+
writer.uint32(40).uint64(message.delayPeriod);
|
|
521
|
+
}
|
|
522
|
+
for (const v of message.counterpartyVersions) {
|
|
523
|
+
Version.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
524
|
+
}
|
|
525
|
+
if (message.proofHeight !== undefined) {
|
|
526
|
+
Height.encode(message.proofHeight, writer.uint32(58).fork()).ldelim();
|
|
527
|
+
}
|
|
528
|
+
if (message.proofInit.length !== 0) {
|
|
529
|
+
writer.uint32(66).bytes(message.proofInit);
|
|
530
|
+
}
|
|
531
|
+
if (message.proofClient.length !== 0) {
|
|
532
|
+
writer.uint32(74).bytes(message.proofClient);
|
|
533
|
+
}
|
|
534
|
+
if (message.proofConsensus.length !== 0) {
|
|
535
|
+
writer.uint32(82).bytes(message.proofConsensus);
|
|
536
|
+
}
|
|
537
|
+
if (message.consensusHeight !== undefined) {
|
|
538
|
+
Height.encode(message.consensusHeight, writer.uint32(90).fork()).ldelim();
|
|
539
|
+
}
|
|
540
|
+
if (message.signer !== "") {
|
|
541
|
+
writer.uint32(98).string(message.signer);
|
|
542
|
+
}
|
|
543
|
+
if (message.hostConsensusStateProof.length !== 0) {
|
|
544
|
+
writer.uint32(106).bytes(message.hostConsensusStateProof);
|
|
545
|
+
}
|
|
546
|
+
return writer;
|
|
547
|
+
},
|
|
548
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgConnectionOpenTry {
|
|
549
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
550
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
551
|
+
const message = createBaseMsgConnectionOpenTry();
|
|
552
|
+
while (reader.pos < end) {
|
|
553
|
+
const tag = reader.uint32();
|
|
554
|
+
switch (tag >>> 3) {
|
|
555
|
+
case 1:
|
|
556
|
+
message.clientId = reader.string();
|
|
557
|
+
break;
|
|
558
|
+
case 2:
|
|
559
|
+
message.previousConnectionId = reader.string();
|
|
560
|
+
break;
|
|
561
|
+
case 3:
|
|
562
|
+
message.clientState = Any.decode(reader, reader.uint32());
|
|
563
|
+
break;
|
|
564
|
+
case 4:
|
|
565
|
+
message.counterparty = Counterparty.decode(reader, reader.uint32());
|
|
566
|
+
break;
|
|
567
|
+
case 5:
|
|
568
|
+
message.delayPeriod = reader.uint64();
|
|
569
|
+
break;
|
|
570
|
+
case 6:
|
|
571
|
+
message.counterpartyVersions.push(Version.decode(reader, reader.uint32()));
|
|
572
|
+
break;
|
|
573
|
+
case 7:
|
|
574
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
575
|
+
break;
|
|
576
|
+
case 8:
|
|
577
|
+
message.proofInit = reader.bytes();
|
|
578
|
+
break;
|
|
579
|
+
case 9:
|
|
580
|
+
message.proofClient = reader.bytes();
|
|
581
|
+
break;
|
|
582
|
+
case 10:
|
|
583
|
+
message.proofConsensus = reader.bytes();
|
|
584
|
+
break;
|
|
585
|
+
case 11:
|
|
586
|
+
message.consensusHeight = Height.decode(reader, reader.uint32());
|
|
587
|
+
break;
|
|
588
|
+
case 12:
|
|
589
|
+
message.signer = reader.string();
|
|
590
|
+
break;
|
|
591
|
+
case 13:
|
|
592
|
+
message.hostConsensusStateProof = reader.bytes();
|
|
593
|
+
break;
|
|
594
|
+
default:
|
|
595
|
+
reader.skipType(tag & 7);
|
|
596
|
+
break;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return message;
|
|
600
|
+
},
|
|
601
|
+
fromPartial(object: DeepPartial<MsgConnectionOpenTry>): MsgConnectionOpenTry {
|
|
602
|
+
const message = createBaseMsgConnectionOpenTry();
|
|
603
|
+
message.clientId = object.clientId ?? "";
|
|
604
|
+
message.previousConnectionId = object.previousConnectionId ?? "";
|
|
605
|
+
message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined;
|
|
606
|
+
message.counterparty = object.counterparty !== undefined && object.counterparty !== null ? Counterparty.fromPartial(object.counterparty) : undefined;
|
|
607
|
+
message.delayPeriod = object.delayPeriod !== undefined && object.delayPeriod !== null ? BigInt(object.delayPeriod.toString()) : BigInt(0);
|
|
608
|
+
message.counterpartyVersions = object.counterpartyVersions?.map(e => Version.fromPartial(e)) || [];
|
|
609
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
610
|
+
message.proofInit = object.proofInit ?? new Uint8Array();
|
|
611
|
+
message.proofClient = object.proofClient ?? new Uint8Array();
|
|
612
|
+
message.proofConsensus = object.proofConsensus ?? new Uint8Array();
|
|
613
|
+
message.consensusHeight = object.consensusHeight !== undefined && object.consensusHeight !== null ? Height.fromPartial(object.consensusHeight) : undefined;
|
|
614
|
+
message.signer = object.signer ?? "";
|
|
615
|
+
message.hostConsensusStateProof = object.hostConsensusStateProof ?? new Uint8Array();
|
|
616
|
+
return message;
|
|
617
|
+
},
|
|
618
|
+
fromAmino(object: MsgConnectionOpenTryAmino): MsgConnectionOpenTry {
|
|
619
|
+
const message = createBaseMsgConnectionOpenTry();
|
|
620
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
621
|
+
message.clientId = object.client_id;
|
|
622
|
+
}
|
|
623
|
+
if (object.previous_connection_id !== undefined && object.previous_connection_id !== null) {
|
|
624
|
+
message.previousConnectionId = object.previous_connection_id;
|
|
625
|
+
}
|
|
626
|
+
if (object.client_state !== undefined && object.client_state !== null) {
|
|
627
|
+
message.clientState = Any.fromAmino(object.client_state);
|
|
628
|
+
}
|
|
629
|
+
if (object.counterparty !== undefined && object.counterparty !== null) {
|
|
630
|
+
message.counterparty = Counterparty.fromAmino(object.counterparty);
|
|
631
|
+
}
|
|
632
|
+
if (object.delay_period !== undefined && object.delay_period !== null) {
|
|
633
|
+
message.delayPeriod = BigInt(object.delay_period);
|
|
634
|
+
}
|
|
635
|
+
message.counterpartyVersions = object.counterparty_versions?.map(e => Version.fromAmino(e)) || [];
|
|
636
|
+
if (object.proof_height !== undefined && object.proof_height !== null) {
|
|
637
|
+
message.proofHeight = Height.fromAmino(object.proof_height);
|
|
638
|
+
}
|
|
639
|
+
if (object.proof_init !== undefined && object.proof_init !== null) {
|
|
640
|
+
message.proofInit = bytesFromBase64(object.proof_init);
|
|
641
|
+
}
|
|
642
|
+
if (object.proof_client !== undefined && object.proof_client !== null) {
|
|
643
|
+
message.proofClient = bytesFromBase64(object.proof_client);
|
|
644
|
+
}
|
|
645
|
+
if (object.proof_consensus !== undefined && object.proof_consensus !== null) {
|
|
646
|
+
message.proofConsensus = bytesFromBase64(object.proof_consensus);
|
|
647
|
+
}
|
|
648
|
+
if (object.consensus_height !== undefined && object.consensus_height !== null) {
|
|
649
|
+
message.consensusHeight = Height.fromAmino(object.consensus_height);
|
|
650
|
+
}
|
|
651
|
+
if (object.signer !== undefined && object.signer !== null) {
|
|
652
|
+
message.signer = object.signer;
|
|
653
|
+
}
|
|
654
|
+
if (object.host_consensus_state_proof !== undefined && object.host_consensus_state_proof !== null) {
|
|
655
|
+
message.hostConsensusStateProof = bytesFromBase64(object.host_consensus_state_proof);
|
|
656
|
+
}
|
|
657
|
+
return message;
|
|
658
|
+
},
|
|
659
|
+
toAmino(message: MsgConnectionOpenTry): MsgConnectionOpenTryAmino {
|
|
660
|
+
const obj: any = {};
|
|
661
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
662
|
+
obj.previous_connection_id = message.previousConnectionId === "" ? undefined : message.previousConnectionId;
|
|
663
|
+
obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined;
|
|
664
|
+
obj.counterparty = message.counterparty ? Counterparty.toAmino(message.counterparty) : undefined;
|
|
665
|
+
obj.delay_period = message.delayPeriod !== BigInt(0) ? message.delayPeriod?.toString() : undefined;
|
|
666
|
+
if (message.counterpartyVersions) {
|
|
667
|
+
obj.counterparty_versions = message.counterpartyVersions.map(e => e ? Version.toAmino(e) : undefined);
|
|
668
|
+
} else {
|
|
669
|
+
obj.counterparty_versions = message.counterpartyVersions;
|
|
670
|
+
}
|
|
671
|
+
obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {};
|
|
672
|
+
obj.proof_init = message.proofInit ? base64FromBytes(message.proofInit) : undefined;
|
|
673
|
+
obj.proof_client = message.proofClient ? base64FromBytes(message.proofClient) : undefined;
|
|
674
|
+
obj.proof_consensus = message.proofConsensus ? base64FromBytes(message.proofConsensus) : undefined;
|
|
675
|
+
obj.consensus_height = message.consensusHeight ? Height.toAmino(message.consensusHeight) : {};
|
|
676
|
+
obj.signer = message.signer === "" ? undefined : message.signer;
|
|
677
|
+
obj.host_consensus_state_proof = message.hostConsensusStateProof ? base64FromBytes(message.hostConsensusStateProof) : undefined;
|
|
678
|
+
return obj;
|
|
679
|
+
},
|
|
680
|
+
fromAminoMsg(object: MsgConnectionOpenTryAminoMsg): MsgConnectionOpenTry {
|
|
681
|
+
return MsgConnectionOpenTry.fromAmino(object.value);
|
|
682
|
+
},
|
|
683
|
+
toAminoMsg(message: MsgConnectionOpenTry): MsgConnectionOpenTryAminoMsg {
|
|
684
|
+
return {
|
|
685
|
+
type: "cosmos-sdk/MsgConnectionOpenTry",
|
|
686
|
+
value: MsgConnectionOpenTry.toAmino(message)
|
|
687
|
+
};
|
|
688
|
+
},
|
|
689
|
+
fromProtoMsg(message: MsgConnectionOpenTryProtoMsg): MsgConnectionOpenTry {
|
|
690
|
+
return MsgConnectionOpenTry.decode(message.value);
|
|
691
|
+
},
|
|
692
|
+
toProto(message: MsgConnectionOpenTry): Uint8Array {
|
|
693
|
+
return MsgConnectionOpenTry.encode(message).finish();
|
|
694
|
+
},
|
|
695
|
+
toProtoMsg(message: MsgConnectionOpenTry): MsgConnectionOpenTryProtoMsg {
|
|
696
|
+
return {
|
|
697
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry",
|
|
698
|
+
value: MsgConnectionOpenTry.encode(message).finish()
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
GlobalDecoderRegistry.register(MsgConnectionOpenTry.typeUrl, MsgConnectionOpenTry);
|
|
703
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgConnectionOpenTry.aminoType, MsgConnectionOpenTry.typeUrl);
|
|
704
|
+
function createBaseMsgConnectionOpenTryResponse(): MsgConnectionOpenTryResponse {
|
|
705
|
+
return {};
|
|
706
|
+
}
|
|
707
|
+
export const MsgConnectionOpenTryResponse = {
|
|
708
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTryResponse",
|
|
709
|
+
aminoType: "cosmos-sdk/MsgConnectionOpenTryResponse",
|
|
710
|
+
is(o: any): o is MsgConnectionOpenTryResponse {
|
|
711
|
+
return o && o.$typeUrl === MsgConnectionOpenTryResponse.typeUrl;
|
|
712
|
+
},
|
|
713
|
+
isAmino(o: any): o is MsgConnectionOpenTryResponseAmino {
|
|
714
|
+
return o && o.$typeUrl === MsgConnectionOpenTryResponse.typeUrl;
|
|
715
|
+
},
|
|
716
|
+
encode(_: MsgConnectionOpenTryResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
717
|
+
return writer;
|
|
718
|
+
},
|
|
719
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgConnectionOpenTryResponse {
|
|
720
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
721
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
722
|
+
const message = createBaseMsgConnectionOpenTryResponse();
|
|
723
|
+
while (reader.pos < end) {
|
|
724
|
+
const tag = reader.uint32();
|
|
725
|
+
switch (tag >>> 3) {
|
|
726
|
+
default:
|
|
727
|
+
reader.skipType(tag & 7);
|
|
728
|
+
break;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
return message;
|
|
732
|
+
},
|
|
733
|
+
fromPartial(_: DeepPartial<MsgConnectionOpenTryResponse>): MsgConnectionOpenTryResponse {
|
|
734
|
+
const message = createBaseMsgConnectionOpenTryResponse();
|
|
735
|
+
return message;
|
|
736
|
+
},
|
|
737
|
+
fromAmino(_: MsgConnectionOpenTryResponseAmino): MsgConnectionOpenTryResponse {
|
|
738
|
+
const message = createBaseMsgConnectionOpenTryResponse();
|
|
739
|
+
return message;
|
|
740
|
+
},
|
|
741
|
+
toAmino(_: MsgConnectionOpenTryResponse): MsgConnectionOpenTryResponseAmino {
|
|
742
|
+
const obj: any = {};
|
|
743
|
+
return obj;
|
|
744
|
+
},
|
|
745
|
+
fromAminoMsg(object: MsgConnectionOpenTryResponseAminoMsg): MsgConnectionOpenTryResponse {
|
|
746
|
+
return MsgConnectionOpenTryResponse.fromAmino(object.value);
|
|
747
|
+
},
|
|
748
|
+
toAminoMsg(message: MsgConnectionOpenTryResponse): MsgConnectionOpenTryResponseAminoMsg {
|
|
749
|
+
return {
|
|
750
|
+
type: "cosmos-sdk/MsgConnectionOpenTryResponse",
|
|
751
|
+
value: MsgConnectionOpenTryResponse.toAmino(message)
|
|
752
|
+
};
|
|
753
|
+
},
|
|
754
|
+
fromProtoMsg(message: MsgConnectionOpenTryResponseProtoMsg): MsgConnectionOpenTryResponse {
|
|
755
|
+
return MsgConnectionOpenTryResponse.decode(message.value);
|
|
756
|
+
},
|
|
757
|
+
toProto(message: MsgConnectionOpenTryResponse): Uint8Array {
|
|
758
|
+
return MsgConnectionOpenTryResponse.encode(message).finish();
|
|
759
|
+
},
|
|
760
|
+
toProtoMsg(message: MsgConnectionOpenTryResponse): MsgConnectionOpenTryResponseProtoMsg {
|
|
761
|
+
return {
|
|
762
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTryResponse",
|
|
763
|
+
value: MsgConnectionOpenTryResponse.encode(message).finish()
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
GlobalDecoderRegistry.register(MsgConnectionOpenTryResponse.typeUrl, MsgConnectionOpenTryResponse);
|
|
768
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgConnectionOpenTryResponse.aminoType, MsgConnectionOpenTryResponse.typeUrl);
|
|
769
|
+
function createBaseMsgConnectionOpenAck(): MsgConnectionOpenAck {
|
|
770
|
+
return {
|
|
771
|
+
connectionId: "",
|
|
772
|
+
counterpartyConnectionId: "",
|
|
773
|
+
version: undefined,
|
|
774
|
+
clientState: undefined,
|
|
775
|
+
proofHeight: Height.fromPartial({}),
|
|
776
|
+
proofTry: new Uint8Array(),
|
|
777
|
+
proofClient: new Uint8Array(),
|
|
778
|
+
proofConsensus: new Uint8Array(),
|
|
779
|
+
consensusHeight: Height.fromPartial({}),
|
|
780
|
+
signer: "",
|
|
781
|
+
hostConsensusStateProof: new Uint8Array()
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
export const MsgConnectionOpenAck = {
|
|
785
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck",
|
|
786
|
+
aminoType: "cosmos-sdk/MsgConnectionOpenAck",
|
|
787
|
+
is(o: any): o is MsgConnectionOpenAck {
|
|
788
|
+
return o && (o.$typeUrl === MsgConnectionOpenAck.typeUrl || typeof o.connectionId === "string" && typeof o.counterpartyConnectionId === "string" && Height.is(o.proofHeight) && (o.proofTry instanceof Uint8Array || typeof o.proofTry === "string") && (o.proofClient instanceof Uint8Array || typeof o.proofClient === "string") && (o.proofConsensus instanceof Uint8Array || typeof o.proofConsensus === "string") && Height.is(o.consensusHeight) && typeof o.signer === "string" && (o.hostConsensusStateProof instanceof Uint8Array || typeof o.hostConsensusStateProof === "string"));
|
|
789
|
+
},
|
|
790
|
+
isAmino(o: any): o is MsgConnectionOpenAckAmino {
|
|
791
|
+
return o && (o.$typeUrl === MsgConnectionOpenAck.typeUrl || typeof o.connection_id === "string" && typeof o.counterparty_connection_id === "string" && Height.isAmino(o.proof_height) && (o.proof_try instanceof Uint8Array || typeof o.proof_try === "string") && (o.proof_client instanceof Uint8Array || typeof o.proof_client === "string") && (o.proof_consensus instanceof Uint8Array || typeof o.proof_consensus === "string") && Height.isAmino(o.consensus_height) && typeof o.signer === "string" && (o.host_consensus_state_proof instanceof Uint8Array || typeof o.host_consensus_state_proof === "string"));
|
|
792
|
+
},
|
|
793
|
+
encode(message: MsgConnectionOpenAck, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
794
|
+
if (message.connectionId !== "") {
|
|
795
|
+
writer.uint32(10).string(message.connectionId);
|
|
796
|
+
}
|
|
797
|
+
if (message.counterpartyConnectionId !== "") {
|
|
798
|
+
writer.uint32(18).string(message.counterpartyConnectionId);
|
|
799
|
+
}
|
|
800
|
+
if (message.version !== undefined) {
|
|
801
|
+
Version.encode(message.version, writer.uint32(26).fork()).ldelim();
|
|
802
|
+
}
|
|
803
|
+
if (message.clientState !== undefined) {
|
|
804
|
+
Any.encode(message.clientState, writer.uint32(34).fork()).ldelim();
|
|
805
|
+
}
|
|
806
|
+
if (message.proofHeight !== undefined) {
|
|
807
|
+
Height.encode(message.proofHeight, writer.uint32(42).fork()).ldelim();
|
|
808
|
+
}
|
|
809
|
+
if (message.proofTry.length !== 0) {
|
|
810
|
+
writer.uint32(50).bytes(message.proofTry);
|
|
811
|
+
}
|
|
812
|
+
if (message.proofClient.length !== 0) {
|
|
813
|
+
writer.uint32(58).bytes(message.proofClient);
|
|
814
|
+
}
|
|
815
|
+
if (message.proofConsensus.length !== 0) {
|
|
816
|
+
writer.uint32(66).bytes(message.proofConsensus);
|
|
817
|
+
}
|
|
818
|
+
if (message.consensusHeight !== undefined) {
|
|
819
|
+
Height.encode(message.consensusHeight, writer.uint32(74).fork()).ldelim();
|
|
820
|
+
}
|
|
821
|
+
if (message.signer !== "") {
|
|
822
|
+
writer.uint32(82).string(message.signer);
|
|
823
|
+
}
|
|
824
|
+
if (message.hostConsensusStateProof.length !== 0) {
|
|
825
|
+
writer.uint32(90).bytes(message.hostConsensusStateProof);
|
|
826
|
+
}
|
|
827
|
+
return writer;
|
|
828
|
+
},
|
|
829
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgConnectionOpenAck {
|
|
830
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
831
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
832
|
+
const message = createBaseMsgConnectionOpenAck();
|
|
833
|
+
while (reader.pos < end) {
|
|
834
|
+
const tag = reader.uint32();
|
|
835
|
+
switch (tag >>> 3) {
|
|
836
|
+
case 1:
|
|
837
|
+
message.connectionId = reader.string();
|
|
838
|
+
break;
|
|
839
|
+
case 2:
|
|
840
|
+
message.counterpartyConnectionId = reader.string();
|
|
841
|
+
break;
|
|
842
|
+
case 3:
|
|
843
|
+
message.version = Version.decode(reader, reader.uint32());
|
|
844
|
+
break;
|
|
845
|
+
case 4:
|
|
846
|
+
message.clientState = Any.decode(reader, reader.uint32());
|
|
847
|
+
break;
|
|
848
|
+
case 5:
|
|
849
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
850
|
+
break;
|
|
851
|
+
case 6:
|
|
852
|
+
message.proofTry = reader.bytes();
|
|
853
|
+
break;
|
|
854
|
+
case 7:
|
|
855
|
+
message.proofClient = reader.bytes();
|
|
856
|
+
break;
|
|
857
|
+
case 8:
|
|
858
|
+
message.proofConsensus = reader.bytes();
|
|
859
|
+
break;
|
|
860
|
+
case 9:
|
|
861
|
+
message.consensusHeight = Height.decode(reader, reader.uint32());
|
|
862
|
+
break;
|
|
863
|
+
case 10:
|
|
864
|
+
message.signer = reader.string();
|
|
865
|
+
break;
|
|
866
|
+
case 11:
|
|
867
|
+
message.hostConsensusStateProof = reader.bytes();
|
|
868
|
+
break;
|
|
869
|
+
default:
|
|
870
|
+
reader.skipType(tag & 7);
|
|
871
|
+
break;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
return message;
|
|
875
|
+
},
|
|
876
|
+
fromPartial(object: DeepPartial<MsgConnectionOpenAck>): MsgConnectionOpenAck {
|
|
877
|
+
const message = createBaseMsgConnectionOpenAck();
|
|
878
|
+
message.connectionId = object.connectionId ?? "";
|
|
879
|
+
message.counterpartyConnectionId = object.counterpartyConnectionId ?? "";
|
|
880
|
+
message.version = object.version !== undefined && object.version !== null ? Version.fromPartial(object.version) : undefined;
|
|
881
|
+
message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined;
|
|
882
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
883
|
+
message.proofTry = object.proofTry ?? new Uint8Array();
|
|
884
|
+
message.proofClient = object.proofClient ?? new Uint8Array();
|
|
885
|
+
message.proofConsensus = object.proofConsensus ?? new Uint8Array();
|
|
886
|
+
message.consensusHeight = object.consensusHeight !== undefined && object.consensusHeight !== null ? Height.fromPartial(object.consensusHeight) : undefined;
|
|
887
|
+
message.signer = object.signer ?? "";
|
|
888
|
+
message.hostConsensusStateProof = object.hostConsensusStateProof ?? new Uint8Array();
|
|
889
|
+
return message;
|
|
890
|
+
},
|
|
891
|
+
fromAmino(object: MsgConnectionOpenAckAmino): MsgConnectionOpenAck {
|
|
892
|
+
const message = createBaseMsgConnectionOpenAck();
|
|
893
|
+
if (object.connection_id !== undefined && object.connection_id !== null) {
|
|
894
|
+
message.connectionId = object.connection_id;
|
|
895
|
+
}
|
|
896
|
+
if (object.counterparty_connection_id !== undefined && object.counterparty_connection_id !== null) {
|
|
897
|
+
message.counterpartyConnectionId = object.counterparty_connection_id;
|
|
898
|
+
}
|
|
899
|
+
if (object.version !== undefined && object.version !== null) {
|
|
900
|
+
message.version = Version.fromAmino(object.version);
|
|
901
|
+
}
|
|
902
|
+
if (object.client_state !== undefined && object.client_state !== null) {
|
|
903
|
+
message.clientState = Any.fromAmino(object.client_state);
|
|
904
|
+
}
|
|
905
|
+
if (object.proof_height !== undefined && object.proof_height !== null) {
|
|
906
|
+
message.proofHeight = Height.fromAmino(object.proof_height);
|
|
907
|
+
}
|
|
908
|
+
if (object.proof_try !== undefined && object.proof_try !== null) {
|
|
909
|
+
message.proofTry = bytesFromBase64(object.proof_try);
|
|
910
|
+
}
|
|
911
|
+
if (object.proof_client !== undefined && object.proof_client !== null) {
|
|
912
|
+
message.proofClient = bytesFromBase64(object.proof_client);
|
|
913
|
+
}
|
|
914
|
+
if (object.proof_consensus !== undefined && object.proof_consensus !== null) {
|
|
915
|
+
message.proofConsensus = bytesFromBase64(object.proof_consensus);
|
|
916
|
+
}
|
|
917
|
+
if (object.consensus_height !== undefined && object.consensus_height !== null) {
|
|
918
|
+
message.consensusHeight = Height.fromAmino(object.consensus_height);
|
|
919
|
+
}
|
|
920
|
+
if (object.signer !== undefined && object.signer !== null) {
|
|
921
|
+
message.signer = object.signer;
|
|
922
|
+
}
|
|
923
|
+
if (object.host_consensus_state_proof !== undefined && object.host_consensus_state_proof !== null) {
|
|
924
|
+
message.hostConsensusStateProof = bytesFromBase64(object.host_consensus_state_proof);
|
|
925
|
+
}
|
|
926
|
+
return message;
|
|
927
|
+
},
|
|
928
|
+
toAmino(message: MsgConnectionOpenAck): MsgConnectionOpenAckAmino {
|
|
929
|
+
const obj: any = {};
|
|
930
|
+
obj.connection_id = message.connectionId === "" ? undefined : message.connectionId;
|
|
931
|
+
obj.counterparty_connection_id = message.counterpartyConnectionId === "" ? undefined : message.counterpartyConnectionId;
|
|
932
|
+
obj.version = message.version ? Version.toAmino(message.version) : undefined;
|
|
933
|
+
obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined;
|
|
934
|
+
obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {};
|
|
935
|
+
obj.proof_try = message.proofTry ? base64FromBytes(message.proofTry) : undefined;
|
|
936
|
+
obj.proof_client = message.proofClient ? base64FromBytes(message.proofClient) : undefined;
|
|
937
|
+
obj.proof_consensus = message.proofConsensus ? base64FromBytes(message.proofConsensus) : undefined;
|
|
938
|
+
obj.consensus_height = message.consensusHeight ? Height.toAmino(message.consensusHeight) : {};
|
|
939
|
+
obj.signer = message.signer === "" ? undefined : message.signer;
|
|
940
|
+
obj.host_consensus_state_proof = message.hostConsensusStateProof ? base64FromBytes(message.hostConsensusStateProof) : undefined;
|
|
941
|
+
return obj;
|
|
942
|
+
},
|
|
943
|
+
fromAminoMsg(object: MsgConnectionOpenAckAminoMsg): MsgConnectionOpenAck {
|
|
944
|
+
return MsgConnectionOpenAck.fromAmino(object.value);
|
|
945
|
+
},
|
|
946
|
+
toAminoMsg(message: MsgConnectionOpenAck): MsgConnectionOpenAckAminoMsg {
|
|
947
|
+
return {
|
|
948
|
+
type: "cosmos-sdk/MsgConnectionOpenAck",
|
|
949
|
+
value: MsgConnectionOpenAck.toAmino(message)
|
|
950
|
+
};
|
|
951
|
+
},
|
|
952
|
+
fromProtoMsg(message: MsgConnectionOpenAckProtoMsg): MsgConnectionOpenAck {
|
|
953
|
+
return MsgConnectionOpenAck.decode(message.value);
|
|
954
|
+
},
|
|
955
|
+
toProto(message: MsgConnectionOpenAck): Uint8Array {
|
|
956
|
+
return MsgConnectionOpenAck.encode(message).finish();
|
|
957
|
+
},
|
|
958
|
+
toProtoMsg(message: MsgConnectionOpenAck): MsgConnectionOpenAckProtoMsg {
|
|
959
|
+
return {
|
|
960
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck",
|
|
961
|
+
value: MsgConnectionOpenAck.encode(message).finish()
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
};
|
|
965
|
+
GlobalDecoderRegistry.register(MsgConnectionOpenAck.typeUrl, MsgConnectionOpenAck);
|
|
966
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgConnectionOpenAck.aminoType, MsgConnectionOpenAck.typeUrl);
|
|
967
|
+
function createBaseMsgConnectionOpenAckResponse(): MsgConnectionOpenAckResponse {
|
|
968
|
+
return {};
|
|
969
|
+
}
|
|
970
|
+
export const MsgConnectionOpenAckResponse = {
|
|
971
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAckResponse",
|
|
972
|
+
aminoType: "cosmos-sdk/MsgConnectionOpenAckResponse",
|
|
973
|
+
is(o: any): o is MsgConnectionOpenAckResponse {
|
|
974
|
+
return o && o.$typeUrl === MsgConnectionOpenAckResponse.typeUrl;
|
|
975
|
+
},
|
|
976
|
+
isAmino(o: any): o is MsgConnectionOpenAckResponseAmino {
|
|
977
|
+
return o && o.$typeUrl === MsgConnectionOpenAckResponse.typeUrl;
|
|
978
|
+
},
|
|
979
|
+
encode(_: MsgConnectionOpenAckResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
980
|
+
return writer;
|
|
981
|
+
},
|
|
982
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgConnectionOpenAckResponse {
|
|
983
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
984
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
985
|
+
const message = createBaseMsgConnectionOpenAckResponse();
|
|
986
|
+
while (reader.pos < end) {
|
|
987
|
+
const tag = reader.uint32();
|
|
988
|
+
switch (tag >>> 3) {
|
|
989
|
+
default:
|
|
990
|
+
reader.skipType(tag & 7);
|
|
991
|
+
break;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
return message;
|
|
995
|
+
},
|
|
996
|
+
fromPartial(_: DeepPartial<MsgConnectionOpenAckResponse>): MsgConnectionOpenAckResponse {
|
|
997
|
+
const message = createBaseMsgConnectionOpenAckResponse();
|
|
998
|
+
return message;
|
|
999
|
+
},
|
|
1000
|
+
fromAmino(_: MsgConnectionOpenAckResponseAmino): MsgConnectionOpenAckResponse {
|
|
1001
|
+
const message = createBaseMsgConnectionOpenAckResponse();
|
|
1002
|
+
return message;
|
|
1003
|
+
},
|
|
1004
|
+
toAmino(_: MsgConnectionOpenAckResponse): MsgConnectionOpenAckResponseAmino {
|
|
1005
|
+
const obj: any = {};
|
|
1006
|
+
return obj;
|
|
1007
|
+
},
|
|
1008
|
+
fromAminoMsg(object: MsgConnectionOpenAckResponseAminoMsg): MsgConnectionOpenAckResponse {
|
|
1009
|
+
return MsgConnectionOpenAckResponse.fromAmino(object.value);
|
|
1010
|
+
},
|
|
1011
|
+
toAminoMsg(message: MsgConnectionOpenAckResponse): MsgConnectionOpenAckResponseAminoMsg {
|
|
1012
|
+
return {
|
|
1013
|
+
type: "cosmos-sdk/MsgConnectionOpenAckResponse",
|
|
1014
|
+
value: MsgConnectionOpenAckResponse.toAmino(message)
|
|
1015
|
+
};
|
|
1016
|
+
},
|
|
1017
|
+
fromProtoMsg(message: MsgConnectionOpenAckResponseProtoMsg): MsgConnectionOpenAckResponse {
|
|
1018
|
+
return MsgConnectionOpenAckResponse.decode(message.value);
|
|
1019
|
+
},
|
|
1020
|
+
toProto(message: MsgConnectionOpenAckResponse): Uint8Array {
|
|
1021
|
+
return MsgConnectionOpenAckResponse.encode(message).finish();
|
|
1022
|
+
},
|
|
1023
|
+
toProtoMsg(message: MsgConnectionOpenAckResponse): MsgConnectionOpenAckResponseProtoMsg {
|
|
1024
|
+
return {
|
|
1025
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAckResponse",
|
|
1026
|
+
value: MsgConnectionOpenAckResponse.encode(message).finish()
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
};
|
|
1030
|
+
GlobalDecoderRegistry.register(MsgConnectionOpenAckResponse.typeUrl, MsgConnectionOpenAckResponse);
|
|
1031
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgConnectionOpenAckResponse.aminoType, MsgConnectionOpenAckResponse.typeUrl);
|
|
1032
|
+
function createBaseMsgConnectionOpenConfirm(): MsgConnectionOpenConfirm {
|
|
1033
|
+
return {
|
|
1034
|
+
connectionId: "",
|
|
1035
|
+
proofAck: new Uint8Array(),
|
|
1036
|
+
proofHeight: Height.fromPartial({}),
|
|
1037
|
+
signer: ""
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
export const MsgConnectionOpenConfirm = {
|
|
1041
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm",
|
|
1042
|
+
aminoType: "cosmos-sdk/MsgConnectionOpenConfirm",
|
|
1043
|
+
is(o: any): o is MsgConnectionOpenConfirm {
|
|
1044
|
+
return o && (o.$typeUrl === MsgConnectionOpenConfirm.typeUrl || typeof o.connectionId === "string" && (o.proofAck instanceof Uint8Array || typeof o.proofAck === "string") && Height.is(o.proofHeight) && typeof o.signer === "string");
|
|
1045
|
+
},
|
|
1046
|
+
isAmino(o: any): o is MsgConnectionOpenConfirmAmino {
|
|
1047
|
+
return o && (o.$typeUrl === MsgConnectionOpenConfirm.typeUrl || typeof o.connection_id === "string" && (o.proof_ack instanceof Uint8Array || typeof o.proof_ack === "string") && Height.isAmino(o.proof_height) && typeof o.signer === "string");
|
|
1048
|
+
},
|
|
1049
|
+
encode(message: MsgConnectionOpenConfirm, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1050
|
+
if (message.connectionId !== "") {
|
|
1051
|
+
writer.uint32(10).string(message.connectionId);
|
|
1052
|
+
}
|
|
1053
|
+
if (message.proofAck.length !== 0) {
|
|
1054
|
+
writer.uint32(18).bytes(message.proofAck);
|
|
1055
|
+
}
|
|
1056
|
+
if (message.proofHeight !== undefined) {
|
|
1057
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
1058
|
+
}
|
|
1059
|
+
if (message.signer !== "") {
|
|
1060
|
+
writer.uint32(34).string(message.signer);
|
|
1061
|
+
}
|
|
1062
|
+
return writer;
|
|
1063
|
+
},
|
|
1064
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgConnectionOpenConfirm {
|
|
1065
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1066
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1067
|
+
const message = createBaseMsgConnectionOpenConfirm();
|
|
1068
|
+
while (reader.pos < end) {
|
|
1069
|
+
const tag = reader.uint32();
|
|
1070
|
+
switch (tag >>> 3) {
|
|
1071
|
+
case 1:
|
|
1072
|
+
message.connectionId = reader.string();
|
|
1073
|
+
break;
|
|
1074
|
+
case 2:
|
|
1075
|
+
message.proofAck = reader.bytes();
|
|
1076
|
+
break;
|
|
1077
|
+
case 3:
|
|
1078
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1079
|
+
break;
|
|
1080
|
+
case 4:
|
|
1081
|
+
message.signer = reader.string();
|
|
1082
|
+
break;
|
|
1083
|
+
default:
|
|
1084
|
+
reader.skipType(tag & 7);
|
|
1085
|
+
break;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
return message;
|
|
1089
|
+
},
|
|
1090
|
+
fromPartial(object: DeepPartial<MsgConnectionOpenConfirm>): MsgConnectionOpenConfirm {
|
|
1091
|
+
const message = createBaseMsgConnectionOpenConfirm();
|
|
1092
|
+
message.connectionId = object.connectionId ?? "";
|
|
1093
|
+
message.proofAck = object.proofAck ?? new Uint8Array();
|
|
1094
|
+
message.proofHeight = object.proofHeight !== undefined && object.proofHeight !== null ? Height.fromPartial(object.proofHeight) : undefined;
|
|
1095
|
+
message.signer = object.signer ?? "";
|
|
1096
|
+
return message;
|
|
1097
|
+
},
|
|
1098
|
+
fromAmino(object: MsgConnectionOpenConfirmAmino): MsgConnectionOpenConfirm {
|
|
1099
|
+
const message = createBaseMsgConnectionOpenConfirm();
|
|
1100
|
+
if (object.connection_id !== undefined && object.connection_id !== null) {
|
|
1101
|
+
message.connectionId = object.connection_id;
|
|
1102
|
+
}
|
|
1103
|
+
if (object.proof_ack !== undefined && object.proof_ack !== null) {
|
|
1104
|
+
message.proofAck = bytesFromBase64(object.proof_ack);
|
|
1105
|
+
}
|
|
1106
|
+
if (object.proof_height !== undefined && object.proof_height !== null) {
|
|
1107
|
+
message.proofHeight = Height.fromAmino(object.proof_height);
|
|
1108
|
+
}
|
|
1109
|
+
if (object.signer !== undefined && object.signer !== null) {
|
|
1110
|
+
message.signer = object.signer;
|
|
1111
|
+
}
|
|
1112
|
+
return message;
|
|
1113
|
+
},
|
|
1114
|
+
toAmino(message: MsgConnectionOpenConfirm): MsgConnectionOpenConfirmAmino {
|
|
1115
|
+
const obj: any = {};
|
|
1116
|
+
obj.connection_id = message.connectionId === "" ? undefined : message.connectionId;
|
|
1117
|
+
obj.proof_ack = message.proofAck ? base64FromBytes(message.proofAck) : undefined;
|
|
1118
|
+
obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {};
|
|
1119
|
+
obj.signer = message.signer === "" ? undefined : message.signer;
|
|
1120
|
+
return obj;
|
|
1121
|
+
},
|
|
1122
|
+
fromAminoMsg(object: MsgConnectionOpenConfirmAminoMsg): MsgConnectionOpenConfirm {
|
|
1123
|
+
return MsgConnectionOpenConfirm.fromAmino(object.value);
|
|
1124
|
+
},
|
|
1125
|
+
toAminoMsg(message: MsgConnectionOpenConfirm): MsgConnectionOpenConfirmAminoMsg {
|
|
1126
|
+
return {
|
|
1127
|
+
type: "cosmos-sdk/MsgConnectionOpenConfirm",
|
|
1128
|
+
value: MsgConnectionOpenConfirm.toAmino(message)
|
|
1129
|
+
};
|
|
1130
|
+
},
|
|
1131
|
+
fromProtoMsg(message: MsgConnectionOpenConfirmProtoMsg): MsgConnectionOpenConfirm {
|
|
1132
|
+
return MsgConnectionOpenConfirm.decode(message.value);
|
|
1133
|
+
},
|
|
1134
|
+
toProto(message: MsgConnectionOpenConfirm): Uint8Array {
|
|
1135
|
+
return MsgConnectionOpenConfirm.encode(message).finish();
|
|
1136
|
+
},
|
|
1137
|
+
toProtoMsg(message: MsgConnectionOpenConfirm): MsgConnectionOpenConfirmProtoMsg {
|
|
1138
|
+
return {
|
|
1139
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm",
|
|
1140
|
+
value: MsgConnectionOpenConfirm.encode(message).finish()
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1143
|
+
};
|
|
1144
|
+
GlobalDecoderRegistry.register(MsgConnectionOpenConfirm.typeUrl, MsgConnectionOpenConfirm);
|
|
1145
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgConnectionOpenConfirm.aminoType, MsgConnectionOpenConfirm.typeUrl);
|
|
1146
|
+
function createBaseMsgConnectionOpenConfirmResponse(): MsgConnectionOpenConfirmResponse {
|
|
1147
|
+
return {};
|
|
1148
|
+
}
|
|
1149
|
+
export const MsgConnectionOpenConfirmResponse = {
|
|
1150
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse",
|
|
1151
|
+
aminoType: "cosmos-sdk/MsgConnectionOpenConfirmResponse",
|
|
1152
|
+
is(o: any): o is MsgConnectionOpenConfirmResponse {
|
|
1153
|
+
return o && o.$typeUrl === MsgConnectionOpenConfirmResponse.typeUrl;
|
|
1154
|
+
},
|
|
1155
|
+
isAmino(o: any): o is MsgConnectionOpenConfirmResponseAmino {
|
|
1156
|
+
return o && o.$typeUrl === MsgConnectionOpenConfirmResponse.typeUrl;
|
|
1157
|
+
},
|
|
1158
|
+
encode(_: MsgConnectionOpenConfirmResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1159
|
+
return writer;
|
|
1160
|
+
},
|
|
1161
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgConnectionOpenConfirmResponse {
|
|
1162
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1163
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1164
|
+
const message = createBaseMsgConnectionOpenConfirmResponse();
|
|
1165
|
+
while (reader.pos < end) {
|
|
1166
|
+
const tag = reader.uint32();
|
|
1167
|
+
switch (tag >>> 3) {
|
|
1168
|
+
default:
|
|
1169
|
+
reader.skipType(tag & 7);
|
|
1170
|
+
break;
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
return message;
|
|
1174
|
+
},
|
|
1175
|
+
fromPartial(_: DeepPartial<MsgConnectionOpenConfirmResponse>): MsgConnectionOpenConfirmResponse {
|
|
1176
|
+
const message = createBaseMsgConnectionOpenConfirmResponse();
|
|
1177
|
+
return message;
|
|
1178
|
+
},
|
|
1179
|
+
fromAmino(_: MsgConnectionOpenConfirmResponseAmino): MsgConnectionOpenConfirmResponse {
|
|
1180
|
+
const message = createBaseMsgConnectionOpenConfirmResponse();
|
|
1181
|
+
return message;
|
|
1182
|
+
},
|
|
1183
|
+
toAmino(_: MsgConnectionOpenConfirmResponse): MsgConnectionOpenConfirmResponseAmino {
|
|
1184
|
+
const obj: any = {};
|
|
1185
|
+
return obj;
|
|
1186
|
+
},
|
|
1187
|
+
fromAminoMsg(object: MsgConnectionOpenConfirmResponseAminoMsg): MsgConnectionOpenConfirmResponse {
|
|
1188
|
+
return MsgConnectionOpenConfirmResponse.fromAmino(object.value);
|
|
1189
|
+
},
|
|
1190
|
+
toAminoMsg(message: MsgConnectionOpenConfirmResponse): MsgConnectionOpenConfirmResponseAminoMsg {
|
|
1191
|
+
return {
|
|
1192
|
+
type: "cosmos-sdk/MsgConnectionOpenConfirmResponse",
|
|
1193
|
+
value: MsgConnectionOpenConfirmResponse.toAmino(message)
|
|
1194
|
+
};
|
|
1195
|
+
},
|
|
1196
|
+
fromProtoMsg(message: MsgConnectionOpenConfirmResponseProtoMsg): MsgConnectionOpenConfirmResponse {
|
|
1197
|
+
return MsgConnectionOpenConfirmResponse.decode(message.value);
|
|
1198
|
+
},
|
|
1199
|
+
toProto(message: MsgConnectionOpenConfirmResponse): Uint8Array {
|
|
1200
|
+
return MsgConnectionOpenConfirmResponse.encode(message).finish();
|
|
1201
|
+
},
|
|
1202
|
+
toProtoMsg(message: MsgConnectionOpenConfirmResponse): MsgConnectionOpenConfirmResponseProtoMsg {
|
|
1203
|
+
return {
|
|
1204
|
+
typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse",
|
|
1205
|
+
value: MsgConnectionOpenConfirmResponse.encode(message).finish()
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1209
|
+
GlobalDecoderRegistry.register(MsgConnectionOpenConfirmResponse.typeUrl, MsgConnectionOpenConfirmResponse);
|
|
1210
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgConnectionOpenConfirmResponse.aminoType, MsgConnectionOpenConfirmResponse.typeUrl);
|
|
1211
|
+
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
1212
|
+
return {
|
|
1213
|
+
signer: "",
|
|
1214
|
+
params: Params.fromPartial({})
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
export const MsgUpdateParams = {
|
|
1218
|
+
typeUrl: "/ibc.core.connection.v1.MsgUpdateParams",
|
|
1219
|
+
aminoType: "cosmos-sdk/MsgUpdateParams",
|
|
1220
|
+
is(o: any): o is MsgUpdateParams {
|
|
1221
|
+
return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.signer === "string" && Params.is(o.params));
|
|
1222
|
+
},
|
|
1223
|
+
isAmino(o: any): o is MsgUpdateParamsAmino {
|
|
1224
|
+
return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.signer === "string" && Params.isAmino(o.params));
|
|
1225
|
+
},
|
|
1226
|
+
encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1227
|
+
if (message.signer !== "") {
|
|
1228
|
+
writer.uint32(10).string(message.signer);
|
|
1229
|
+
}
|
|
1230
|
+
if (message.params !== undefined) {
|
|
1231
|
+
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
1232
|
+
}
|
|
1233
|
+
return writer;
|
|
1234
|
+
},
|
|
1235
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
1236
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1237
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1238
|
+
const message = createBaseMsgUpdateParams();
|
|
1239
|
+
while (reader.pos < end) {
|
|
1240
|
+
const tag = reader.uint32();
|
|
1241
|
+
switch (tag >>> 3) {
|
|
1242
|
+
case 1:
|
|
1243
|
+
message.signer = reader.string();
|
|
1244
|
+
break;
|
|
1245
|
+
case 2:
|
|
1246
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
1247
|
+
break;
|
|
1248
|
+
default:
|
|
1249
|
+
reader.skipType(tag & 7);
|
|
1250
|
+
break;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
return message;
|
|
1254
|
+
},
|
|
1255
|
+
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams {
|
|
1256
|
+
const message = createBaseMsgUpdateParams();
|
|
1257
|
+
message.signer = object.signer ?? "";
|
|
1258
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
1259
|
+
return message;
|
|
1260
|
+
},
|
|
1261
|
+
fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
|
|
1262
|
+
const message = createBaseMsgUpdateParams();
|
|
1263
|
+
if (object.signer !== undefined && object.signer !== null) {
|
|
1264
|
+
message.signer = object.signer;
|
|
1265
|
+
}
|
|
1266
|
+
if (object.params !== undefined && object.params !== null) {
|
|
1267
|
+
message.params = Params.fromAmino(object.params);
|
|
1268
|
+
}
|
|
1269
|
+
return message;
|
|
1270
|
+
},
|
|
1271
|
+
toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
|
|
1272
|
+
const obj: any = {};
|
|
1273
|
+
obj.signer = message.signer === "" ? undefined : message.signer;
|
|
1274
|
+
obj.params = message.params ? Params.toAmino(message.params) : undefined;
|
|
1275
|
+
return obj;
|
|
1276
|
+
},
|
|
1277
|
+
fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
|
|
1278
|
+
return MsgUpdateParams.fromAmino(object.value);
|
|
1279
|
+
},
|
|
1280
|
+
toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
|
|
1281
|
+
return {
|
|
1282
|
+
type: "cosmos-sdk/MsgUpdateParams",
|
|
1283
|
+
value: MsgUpdateParams.toAmino(message)
|
|
1284
|
+
};
|
|
1285
|
+
},
|
|
1286
|
+
fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
|
|
1287
|
+
return MsgUpdateParams.decode(message.value);
|
|
1288
|
+
},
|
|
1289
|
+
toProto(message: MsgUpdateParams): Uint8Array {
|
|
1290
|
+
return MsgUpdateParams.encode(message).finish();
|
|
1291
|
+
},
|
|
1292
|
+
toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
|
|
1293
|
+
return {
|
|
1294
|
+
typeUrl: "/ibc.core.connection.v1.MsgUpdateParams",
|
|
1295
|
+
value: MsgUpdateParams.encode(message).finish()
|
|
1296
|
+
};
|
|
1297
|
+
}
|
|
1298
|
+
};
|
|
1299
|
+
GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
|
|
1300
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
|
|
1301
|
+
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
1302
|
+
return {};
|
|
1303
|
+
}
|
|
1304
|
+
export const MsgUpdateParamsResponse = {
|
|
1305
|
+
typeUrl: "/ibc.core.connection.v1.MsgUpdateParamsResponse",
|
|
1306
|
+
aminoType: "cosmos-sdk/MsgUpdateParamsResponse",
|
|
1307
|
+
is(o: any): o is MsgUpdateParamsResponse {
|
|
1308
|
+
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
|
|
1309
|
+
},
|
|
1310
|
+
isAmino(o: any): o is MsgUpdateParamsResponseAmino {
|
|
1311
|
+
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
|
|
1312
|
+
},
|
|
1313
|
+
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1314
|
+
return writer;
|
|
1315
|
+
},
|
|
1316
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
1317
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1318
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1319
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1320
|
+
while (reader.pos < end) {
|
|
1321
|
+
const tag = reader.uint32();
|
|
1322
|
+
switch (tag >>> 3) {
|
|
1323
|
+
default:
|
|
1324
|
+
reader.skipType(tag & 7);
|
|
1325
|
+
break;
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
return message;
|
|
1329
|
+
},
|
|
1330
|
+
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
|
|
1331
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1332
|
+
return message;
|
|
1333
|
+
},
|
|
1334
|
+
fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
|
|
1335
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
1336
|
+
return message;
|
|
1337
|
+
},
|
|
1338
|
+
toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
|
|
1339
|
+
const obj: any = {};
|
|
1340
|
+
return obj;
|
|
1341
|
+
},
|
|
1342
|
+
fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
|
|
1343
|
+
return MsgUpdateParamsResponse.fromAmino(object.value);
|
|
1344
|
+
},
|
|
1345
|
+
toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg {
|
|
1346
|
+
return {
|
|
1347
|
+
type: "cosmos-sdk/MsgUpdateParamsResponse",
|
|
1348
|
+
value: MsgUpdateParamsResponse.toAmino(message)
|
|
1349
|
+
};
|
|
1350
|
+
},
|
|
1351
|
+
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
|
|
1352
|
+
return MsgUpdateParamsResponse.decode(message.value);
|
|
1353
|
+
},
|
|
1354
|
+
toProto(message: MsgUpdateParamsResponse): Uint8Array {
|
|
1355
|
+
return MsgUpdateParamsResponse.encode(message).finish();
|
|
1356
|
+
},
|
|
1357
|
+
toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
|
|
1358
|
+
return {
|
|
1359
|
+
typeUrl: "/ibc.core.connection.v1.MsgUpdateParamsResponse",
|
|
1360
|
+
value: MsgUpdateParamsResponse.encode(message).finish()
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1363
|
+
};
|
|
1364
|
+
GlobalDecoderRegistry.register(MsgUpdateParamsResponse.typeUrl, MsgUpdateParamsResponse);
|
|
1365
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParamsResponse.aminoType, MsgUpdateParamsResponse.typeUrl);
|