@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,1010 @@
|
|
|
1
|
+
import { MerklePrefix, MerklePrefixAmino } from "../../commitment/v1/commitment";
|
|
2
|
+
import { isSet, DeepPartial } from "../../../../helpers";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
5
|
+
/**
|
|
6
|
+
* State defines if a connection is in one of the following states:
|
|
7
|
+
* INIT, TRYOPEN, OPEN or UNINITIALIZED.
|
|
8
|
+
*/
|
|
9
|
+
export enum State {
|
|
10
|
+
/** STATE_UNINITIALIZED_UNSPECIFIED - Default State */
|
|
11
|
+
STATE_UNINITIALIZED_UNSPECIFIED = 0,
|
|
12
|
+
/** STATE_INIT - A connection end has just started the opening handshake. */
|
|
13
|
+
STATE_INIT = 1,
|
|
14
|
+
/**
|
|
15
|
+
* STATE_TRYOPEN - A connection end has acknowledged the handshake step on the counterparty
|
|
16
|
+
* chain.
|
|
17
|
+
*/
|
|
18
|
+
STATE_TRYOPEN = 2,
|
|
19
|
+
/** STATE_OPEN - A connection end has completed the handshake. */
|
|
20
|
+
STATE_OPEN = 3,
|
|
21
|
+
UNRECOGNIZED = -1,
|
|
22
|
+
}
|
|
23
|
+
export const StateAmino = State;
|
|
24
|
+
export function stateFromJSON(object: any): State {
|
|
25
|
+
switch (object) {
|
|
26
|
+
case 0:
|
|
27
|
+
case "STATE_UNINITIALIZED_UNSPECIFIED":
|
|
28
|
+
return State.STATE_UNINITIALIZED_UNSPECIFIED;
|
|
29
|
+
case 1:
|
|
30
|
+
case "STATE_INIT":
|
|
31
|
+
return State.STATE_INIT;
|
|
32
|
+
case 2:
|
|
33
|
+
case "STATE_TRYOPEN":
|
|
34
|
+
return State.STATE_TRYOPEN;
|
|
35
|
+
case 3:
|
|
36
|
+
case "STATE_OPEN":
|
|
37
|
+
return State.STATE_OPEN;
|
|
38
|
+
case -1:
|
|
39
|
+
case "UNRECOGNIZED":
|
|
40
|
+
default:
|
|
41
|
+
return State.UNRECOGNIZED;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export function stateToJSON(object: State): string {
|
|
45
|
+
switch (object) {
|
|
46
|
+
case State.STATE_UNINITIALIZED_UNSPECIFIED:
|
|
47
|
+
return "STATE_UNINITIALIZED_UNSPECIFIED";
|
|
48
|
+
case State.STATE_INIT:
|
|
49
|
+
return "STATE_INIT";
|
|
50
|
+
case State.STATE_TRYOPEN:
|
|
51
|
+
return "STATE_TRYOPEN";
|
|
52
|
+
case State.STATE_OPEN:
|
|
53
|
+
return "STATE_OPEN";
|
|
54
|
+
case State.UNRECOGNIZED:
|
|
55
|
+
default:
|
|
56
|
+
return "UNRECOGNIZED";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* ConnectionEnd defines a stateful object on a chain connected to another
|
|
61
|
+
* separate one.
|
|
62
|
+
* NOTE: there must only be 2 defined ConnectionEnds to establish
|
|
63
|
+
* a connection between two chains.
|
|
64
|
+
*/
|
|
65
|
+
export interface ConnectionEnd {
|
|
66
|
+
/** client associated with this connection. */
|
|
67
|
+
clientId: string;
|
|
68
|
+
/**
|
|
69
|
+
* IBC version which can be utilised to determine encodings or protocols for
|
|
70
|
+
* channels or packets utilising this connection.
|
|
71
|
+
*/
|
|
72
|
+
versions: Version[];
|
|
73
|
+
/** current state of the connection end. */
|
|
74
|
+
state: State;
|
|
75
|
+
/** counterparty chain associated with this connection. */
|
|
76
|
+
counterparty: Counterparty;
|
|
77
|
+
/**
|
|
78
|
+
* delay period that must pass before a consensus state can be used for
|
|
79
|
+
* packet-verification NOTE: delay period logic is only implemented by some
|
|
80
|
+
* clients.
|
|
81
|
+
*/
|
|
82
|
+
delayPeriod: bigint;
|
|
83
|
+
}
|
|
84
|
+
export interface ConnectionEndProtoMsg {
|
|
85
|
+
typeUrl: "/ibc.core.connection.v1.ConnectionEnd";
|
|
86
|
+
value: Uint8Array;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* ConnectionEnd defines a stateful object on a chain connected to another
|
|
90
|
+
* separate one.
|
|
91
|
+
* NOTE: there must only be 2 defined ConnectionEnds to establish
|
|
92
|
+
* a connection between two chains.
|
|
93
|
+
*/
|
|
94
|
+
export interface ConnectionEndAmino {
|
|
95
|
+
/** client associated with this connection. */
|
|
96
|
+
client_id: string;
|
|
97
|
+
/**
|
|
98
|
+
* IBC version which can be utilised to determine encodings or protocols for
|
|
99
|
+
* channels or packets utilising this connection.
|
|
100
|
+
*/
|
|
101
|
+
versions: VersionAmino[];
|
|
102
|
+
/** current state of the connection end. */
|
|
103
|
+
state: State;
|
|
104
|
+
/** counterparty chain associated with this connection. */
|
|
105
|
+
counterparty: CounterpartyAmino;
|
|
106
|
+
/**
|
|
107
|
+
* delay period that must pass before a consensus state can be used for
|
|
108
|
+
* packet-verification NOTE: delay period logic is only implemented by some
|
|
109
|
+
* clients.
|
|
110
|
+
*/
|
|
111
|
+
delay_period: string;
|
|
112
|
+
}
|
|
113
|
+
export interface ConnectionEndAminoMsg {
|
|
114
|
+
type: "cosmos-sdk/ConnectionEnd";
|
|
115
|
+
value: ConnectionEndAmino;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* IdentifiedConnection defines a connection with additional connection
|
|
119
|
+
* identifier field.
|
|
120
|
+
*/
|
|
121
|
+
export interface IdentifiedConnection {
|
|
122
|
+
/** connection identifier. */
|
|
123
|
+
id: string;
|
|
124
|
+
/** client associated with this connection. */
|
|
125
|
+
clientId: string;
|
|
126
|
+
/**
|
|
127
|
+
* IBC version which can be utilised to determine encodings or protocols for
|
|
128
|
+
* channels or packets utilising this connection
|
|
129
|
+
*/
|
|
130
|
+
versions: Version[];
|
|
131
|
+
/** current state of the connection end. */
|
|
132
|
+
state: State;
|
|
133
|
+
/** counterparty chain associated with this connection. */
|
|
134
|
+
counterparty: Counterparty;
|
|
135
|
+
/** delay period associated with this connection. */
|
|
136
|
+
delayPeriod: bigint;
|
|
137
|
+
}
|
|
138
|
+
export interface IdentifiedConnectionProtoMsg {
|
|
139
|
+
typeUrl: "/ibc.core.connection.v1.IdentifiedConnection";
|
|
140
|
+
value: Uint8Array;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* IdentifiedConnection defines a connection with additional connection
|
|
144
|
+
* identifier field.
|
|
145
|
+
*/
|
|
146
|
+
export interface IdentifiedConnectionAmino {
|
|
147
|
+
/** connection identifier. */
|
|
148
|
+
id: string;
|
|
149
|
+
/** client associated with this connection. */
|
|
150
|
+
client_id: string;
|
|
151
|
+
/**
|
|
152
|
+
* IBC version which can be utilised to determine encodings or protocols for
|
|
153
|
+
* channels or packets utilising this connection
|
|
154
|
+
*/
|
|
155
|
+
versions: VersionAmino[];
|
|
156
|
+
/** current state of the connection end. */
|
|
157
|
+
state: State;
|
|
158
|
+
/** counterparty chain associated with this connection. */
|
|
159
|
+
counterparty: CounterpartyAmino;
|
|
160
|
+
/** delay period associated with this connection. */
|
|
161
|
+
delay_period: string;
|
|
162
|
+
}
|
|
163
|
+
export interface IdentifiedConnectionAminoMsg {
|
|
164
|
+
type: "cosmos-sdk/IdentifiedConnection";
|
|
165
|
+
value: IdentifiedConnectionAmino;
|
|
166
|
+
}
|
|
167
|
+
/** Counterparty defines the counterparty chain associated with a connection end. */
|
|
168
|
+
export interface Counterparty {
|
|
169
|
+
/**
|
|
170
|
+
* identifies the client on the counterparty chain associated with a given
|
|
171
|
+
* connection.
|
|
172
|
+
*/
|
|
173
|
+
clientId: string;
|
|
174
|
+
/**
|
|
175
|
+
* identifies the connection end on the counterparty chain associated with a
|
|
176
|
+
* given connection.
|
|
177
|
+
*/
|
|
178
|
+
connectionId: string;
|
|
179
|
+
/** commitment merkle prefix of the counterparty chain. */
|
|
180
|
+
prefix: MerklePrefix;
|
|
181
|
+
}
|
|
182
|
+
export interface CounterpartyProtoMsg {
|
|
183
|
+
typeUrl: "/ibc.core.connection.v1.Counterparty";
|
|
184
|
+
value: Uint8Array;
|
|
185
|
+
}
|
|
186
|
+
/** Counterparty defines the counterparty chain associated with a connection end. */
|
|
187
|
+
export interface CounterpartyAmino {
|
|
188
|
+
/**
|
|
189
|
+
* identifies the client on the counterparty chain associated with a given
|
|
190
|
+
* connection.
|
|
191
|
+
*/
|
|
192
|
+
client_id: string;
|
|
193
|
+
/**
|
|
194
|
+
* identifies the connection end on the counterparty chain associated with a
|
|
195
|
+
* given connection.
|
|
196
|
+
*/
|
|
197
|
+
connection_id: string;
|
|
198
|
+
/** commitment merkle prefix of the counterparty chain. */
|
|
199
|
+
prefix: MerklePrefixAmino;
|
|
200
|
+
}
|
|
201
|
+
export interface CounterpartyAminoMsg {
|
|
202
|
+
type: "cosmos-sdk/Counterparty";
|
|
203
|
+
value: CounterpartyAmino;
|
|
204
|
+
}
|
|
205
|
+
/** ClientPaths define all the connection paths for a client state. */
|
|
206
|
+
export interface ClientPaths {
|
|
207
|
+
/** list of connection paths */
|
|
208
|
+
paths: string[];
|
|
209
|
+
}
|
|
210
|
+
export interface ClientPathsProtoMsg {
|
|
211
|
+
typeUrl: "/ibc.core.connection.v1.ClientPaths";
|
|
212
|
+
value: Uint8Array;
|
|
213
|
+
}
|
|
214
|
+
/** ClientPaths define all the connection paths for a client state. */
|
|
215
|
+
export interface ClientPathsAmino {
|
|
216
|
+
/** list of connection paths */
|
|
217
|
+
paths: string[];
|
|
218
|
+
}
|
|
219
|
+
export interface ClientPathsAminoMsg {
|
|
220
|
+
type: "cosmos-sdk/ClientPaths";
|
|
221
|
+
value: ClientPathsAmino;
|
|
222
|
+
}
|
|
223
|
+
/** ConnectionPaths define all the connection paths for a given client state. */
|
|
224
|
+
export interface ConnectionPaths {
|
|
225
|
+
/** client state unique identifier */
|
|
226
|
+
clientId: string;
|
|
227
|
+
/** list of connection paths */
|
|
228
|
+
paths: string[];
|
|
229
|
+
}
|
|
230
|
+
export interface ConnectionPathsProtoMsg {
|
|
231
|
+
typeUrl: "/ibc.core.connection.v1.ConnectionPaths";
|
|
232
|
+
value: Uint8Array;
|
|
233
|
+
}
|
|
234
|
+
/** ConnectionPaths define all the connection paths for a given client state. */
|
|
235
|
+
export interface ConnectionPathsAmino {
|
|
236
|
+
/** client state unique identifier */
|
|
237
|
+
client_id: string;
|
|
238
|
+
/** list of connection paths */
|
|
239
|
+
paths: string[];
|
|
240
|
+
}
|
|
241
|
+
export interface ConnectionPathsAminoMsg {
|
|
242
|
+
type: "cosmos-sdk/ConnectionPaths";
|
|
243
|
+
value: ConnectionPathsAmino;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Version defines the versioning scheme used to negotiate the IBC verison in
|
|
247
|
+
* the connection handshake.
|
|
248
|
+
*/
|
|
249
|
+
export interface Version {
|
|
250
|
+
/** unique version identifier */
|
|
251
|
+
identifier: string;
|
|
252
|
+
/** list of features compatible with the specified identifier */
|
|
253
|
+
features: string[];
|
|
254
|
+
}
|
|
255
|
+
export interface VersionProtoMsg {
|
|
256
|
+
typeUrl: "/ibc.core.connection.v1.Version";
|
|
257
|
+
value: Uint8Array;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Version defines the versioning scheme used to negotiate the IBC verison in
|
|
261
|
+
* the connection handshake.
|
|
262
|
+
*/
|
|
263
|
+
export interface VersionAmino {
|
|
264
|
+
/** unique version identifier */
|
|
265
|
+
identifier: string;
|
|
266
|
+
/** list of features compatible with the specified identifier */
|
|
267
|
+
features: string[];
|
|
268
|
+
}
|
|
269
|
+
export interface VersionAminoMsg {
|
|
270
|
+
type: "cosmos-sdk/Version";
|
|
271
|
+
value: VersionAmino;
|
|
272
|
+
}
|
|
273
|
+
/** Params defines the set of Connection parameters. */
|
|
274
|
+
export interface Params {
|
|
275
|
+
/**
|
|
276
|
+
* maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the
|
|
277
|
+
* largest amount of time that the chain might reasonably take to produce the next block under normal operating
|
|
278
|
+
* conditions. A safe choice is 3-5x the expected time per block.
|
|
279
|
+
*/
|
|
280
|
+
maxExpectedTimePerBlock: bigint;
|
|
281
|
+
}
|
|
282
|
+
export interface ParamsProtoMsg {
|
|
283
|
+
typeUrl: "/ibc.core.connection.v1.Params";
|
|
284
|
+
value: Uint8Array;
|
|
285
|
+
}
|
|
286
|
+
/** Params defines the set of Connection parameters. */
|
|
287
|
+
export interface ParamsAmino {
|
|
288
|
+
/**
|
|
289
|
+
* maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the
|
|
290
|
+
* largest amount of time that the chain might reasonably take to produce the next block under normal operating
|
|
291
|
+
* conditions. A safe choice is 3-5x the expected time per block.
|
|
292
|
+
*/
|
|
293
|
+
max_expected_time_per_block: string;
|
|
294
|
+
}
|
|
295
|
+
export interface ParamsAminoMsg {
|
|
296
|
+
type: "cosmos-sdk/Params";
|
|
297
|
+
value: ParamsAmino;
|
|
298
|
+
}
|
|
299
|
+
function createBaseConnectionEnd(): ConnectionEnd {
|
|
300
|
+
return {
|
|
301
|
+
clientId: "",
|
|
302
|
+
versions: [],
|
|
303
|
+
state: 0,
|
|
304
|
+
counterparty: Counterparty.fromPartial({}),
|
|
305
|
+
delayPeriod: BigInt(0)
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
export const ConnectionEnd = {
|
|
309
|
+
typeUrl: "/ibc.core.connection.v1.ConnectionEnd",
|
|
310
|
+
aminoType: "cosmos-sdk/ConnectionEnd",
|
|
311
|
+
is(o: any): o is ConnectionEnd {
|
|
312
|
+
return o && (o.$typeUrl === ConnectionEnd.typeUrl || typeof o.clientId === "string" && Array.isArray(o.versions) && (!o.versions.length || Version.is(o.versions[0])) && isSet(o.state) && Counterparty.is(o.counterparty) && typeof o.delayPeriod === "bigint");
|
|
313
|
+
},
|
|
314
|
+
isAmino(o: any): o is ConnectionEndAmino {
|
|
315
|
+
return o && (o.$typeUrl === ConnectionEnd.typeUrl || typeof o.client_id === "string" && Array.isArray(o.versions) && (!o.versions.length || Version.isAmino(o.versions[0])) && isSet(o.state) && Counterparty.isAmino(o.counterparty) && typeof o.delay_period === "bigint");
|
|
316
|
+
},
|
|
317
|
+
encode(message: ConnectionEnd, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
318
|
+
if (message.clientId !== "") {
|
|
319
|
+
writer.uint32(10).string(message.clientId);
|
|
320
|
+
}
|
|
321
|
+
for (const v of message.versions) {
|
|
322
|
+
Version.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
323
|
+
}
|
|
324
|
+
if (message.state !== 0) {
|
|
325
|
+
writer.uint32(24).int32(message.state);
|
|
326
|
+
}
|
|
327
|
+
if (message.counterparty !== undefined) {
|
|
328
|
+
Counterparty.encode(message.counterparty, writer.uint32(34).fork()).ldelim();
|
|
329
|
+
}
|
|
330
|
+
if (message.delayPeriod !== BigInt(0)) {
|
|
331
|
+
writer.uint32(40).uint64(message.delayPeriod);
|
|
332
|
+
}
|
|
333
|
+
return writer;
|
|
334
|
+
},
|
|
335
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ConnectionEnd {
|
|
336
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
337
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
338
|
+
const message = createBaseConnectionEnd();
|
|
339
|
+
while (reader.pos < end) {
|
|
340
|
+
const tag = reader.uint32();
|
|
341
|
+
switch (tag >>> 3) {
|
|
342
|
+
case 1:
|
|
343
|
+
message.clientId = reader.string();
|
|
344
|
+
break;
|
|
345
|
+
case 2:
|
|
346
|
+
message.versions.push(Version.decode(reader, reader.uint32()));
|
|
347
|
+
break;
|
|
348
|
+
case 3:
|
|
349
|
+
message.state = reader.int32() as any;
|
|
350
|
+
break;
|
|
351
|
+
case 4:
|
|
352
|
+
message.counterparty = Counterparty.decode(reader, reader.uint32());
|
|
353
|
+
break;
|
|
354
|
+
case 5:
|
|
355
|
+
message.delayPeriod = reader.uint64();
|
|
356
|
+
break;
|
|
357
|
+
default:
|
|
358
|
+
reader.skipType(tag & 7);
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return message;
|
|
363
|
+
},
|
|
364
|
+
fromPartial(object: DeepPartial<ConnectionEnd>): ConnectionEnd {
|
|
365
|
+
const message = createBaseConnectionEnd();
|
|
366
|
+
message.clientId = object.clientId ?? "";
|
|
367
|
+
message.versions = object.versions?.map(e => Version.fromPartial(e)) || [];
|
|
368
|
+
message.state = object.state ?? 0;
|
|
369
|
+
message.counterparty = object.counterparty !== undefined && object.counterparty !== null ? Counterparty.fromPartial(object.counterparty) : undefined;
|
|
370
|
+
message.delayPeriod = object.delayPeriod !== undefined && object.delayPeriod !== null ? BigInt(object.delayPeriod.toString()) : BigInt(0);
|
|
371
|
+
return message;
|
|
372
|
+
},
|
|
373
|
+
fromAmino(object: ConnectionEndAmino): ConnectionEnd {
|
|
374
|
+
const message = createBaseConnectionEnd();
|
|
375
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
376
|
+
message.clientId = object.client_id;
|
|
377
|
+
}
|
|
378
|
+
message.versions = object.versions?.map(e => Version.fromAmino(e)) || [];
|
|
379
|
+
if (object.state !== undefined && object.state !== null) {
|
|
380
|
+
message.state = object.state;
|
|
381
|
+
}
|
|
382
|
+
if (object.counterparty !== undefined && object.counterparty !== null) {
|
|
383
|
+
message.counterparty = Counterparty.fromAmino(object.counterparty);
|
|
384
|
+
}
|
|
385
|
+
if (object.delay_period !== undefined && object.delay_period !== null) {
|
|
386
|
+
message.delayPeriod = BigInt(object.delay_period);
|
|
387
|
+
}
|
|
388
|
+
return message;
|
|
389
|
+
},
|
|
390
|
+
toAmino(message: ConnectionEnd): ConnectionEndAmino {
|
|
391
|
+
const obj: any = {};
|
|
392
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
393
|
+
if (message.versions) {
|
|
394
|
+
obj.versions = message.versions.map(e => e ? Version.toAmino(e) : undefined);
|
|
395
|
+
} else {
|
|
396
|
+
obj.versions = message.versions;
|
|
397
|
+
}
|
|
398
|
+
obj.state = message.state === 0 ? undefined : message.state;
|
|
399
|
+
obj.counterparty = message.counterparty ? Counterparty.toAmino(message.counterparty) : undefined;
|
|
400
|
+
obj.delay_period = message.delayPeriod !== BigInt(0) ? message.delayPeriod?.toString() : undefined;
|
|
401
|
+
return obj;
|
|
402
|
+
},
|
|
403
|
+
fromAminoMsg(object: ConnectionEndAminoMsg): ConnectionEnd {
|
|
404
|
+
return ConnectionEnd.fromAmino(object.value);
|
|
405
|
+
},
|
|
406
|
+
toAminoMsg(message: ConnectionEnd): ConnectionEndAminoMsg {
|
|
407
|
+
return {
|
|
408
|
+
type: "cosmos-sdk/ConnectionEnd",
|
|
409
|
+
value: ConnectionEnd.toAmino(message)
|
|
410
|
+
};
|
|
411
|
+
},
|
|
412
|
+
fromProtoMsg(message: ConnectionEndProtoMsg): ConnectionEnd {
|
|
413
|
+
return ConnectionEnd.decode(message.value);
|
|
414
|
+
},
|
|
415
|
+
toProto(message: ConnectionEnd): Uint8Array {
|
|
416
|
+
return ConnectionEnd.encode(message).finish();
|
|
417
|
+
},
|
|
418
|
+
toProtoMsg(message: ConnectionEnd): ConnectionEndProtoMsg {
|
|
419
|
+
return {
|
|
420
|
+
typeUrl: "/ibc.core.connection.v1.ConnectionEnd",
|
|
421
|
+
value: ConnectionEnd.encode(message).finish()
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
GlobalDecoderRegistry.register(ConnectionEnd.typeUrl, ConnectionEnd);
|
|
426
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ConnectionEnd.aminoType, ConnectionEnd.typeUrl);
|
|
427
|
+
function createBaseIdentifiedConnection(): IdentifiedConnection {
|
|
428
|
+
return {
|
|
429
|
+
id: "",
|
|
430
|
+
clientId: "",
|
|
431
|
+
versions: [],
|
|
432
|
+
state: 0,
|
|
433
|
+
counterparty: Counterparty.fromPartial({}),
|
|
434
|
+
delayPeriod: BigInt(0)
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
export const IdentifiedConnection = {
|
|
438
|
+
typeUrl: "/ibc.core.connection.v1.IdentifiedConnection",
|
|
439
|
+
aminoType: "cosmos-sdk/IdentifiedConnection",
|
|
440
|
+
is(o: any): o is IdentifiedConnection {
|
|
441
|
+
return o && (o.$typeUrl === IdentifiedConnection.typeUrl || typeof o.id === "string" && typeof o.clientId === "string" && Array.isArray(o.versions) && (!o.versions.length || Version.is(o.versions[0])) && isSet(o.state) && Counterparty.is(o.counterparty) && typeof o.delayPeriod === "bigint");
|
|
442
|
+
},
|
|
443
|
+
isAmino(o: any): o is IdentifiedConnectionAmino {
|
|
444
|
+
return o && (o.$typeUrl === IdentifiedConnection.typeUrl || typeof o.id === "string" && typeof o.client_id === "string" && Array.isArray(o.versions) && (!o.versions.length || Version.isAmino(o.versions[0])) && isSet(o.state) && Counterparty.isAmino(o.counterparty) && typeof o.delay_period === "bigint");
|
|
445
|
+
},
|
|
446
|
+
encode(message: IdentifiedConnection, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
447
|
+
if (message.id !== "") {
|
|
448
|
+
writer.uint32(10).string(message.id);
|
|
449
|
+
}
|
|
450
|
+
if (message.clientId !== "") {
|
|
451
|
+
writer.uint32(18).string(message.clientId);
|
|
452
|
+
}
|
|
453
|
+
for (const v of message.versions) {
|
|
454
|
+
Version.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
455
|
+
}
|
|
456
|
+
if (message.state !== 0) {
|
|
457
|
+
writer.uint32(32).int32(message.state);
|
|
458
|
+
}
|
|
459
|
+
if (message.counterparty !== undefined) {
|
|
460
|
+
Counterparty.encode(message.counterparty, writer.uint32(42).fork()).ldelim();
|
|
461
|
+
}
|
|
462
|
+
if (message.delayPeriod !== BigInt(0)) {
|
|
463
|
+
writer.uint32(48).uint64(message.delayPeriod);
|
|
464
|
+
}
|
|
465
|
+
return writer;
|
|
466
|
+
},
|
|
467
|
+
decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedConnection {
|
|
468
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
469
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
470
|
+
const message = createBaseIdentifiedConnection();
|
|
471
|
+
while (reader.pos < end) {
|
|
472
|
+
const tag = reader.uint32();
|
|
473
|
+
switch (tag >>> 3) {
|
|
474
|
+
case 1:
|
|
475
|
+
message.id = reader.string();
|
|
476
|
+
break;
|
|
477
|
+
case 2:
|
|
478
|
+
message.clientId = reader.string();
|
|
479
|
+
break;
|
|
480
|
+
case 3:
|
|
481
|
+
message.versions.push(Version.decode(reader, reader.uint32()));
|
|
482
|
+
break;
|
|
483
|
+
case 4:
|
|
484
|
+
message.state = reader.int32() as any;
|
|
485
|
+
break;
|
|
486
|
+
case 5:
|
|
487
|
+
message.counterparty = Counterparty.decode(reader, reader.uint32());
|
|
488
|
+
break;
|
|
489
|
+
case 6:
|
|
490
|
+
message.delayPeriod = reader.uint64();
|
|
491
|
+
break;
|
|
492
|
+
default:
|
|
493
|
+
reader.skipType(tag & 7);
|
|
494
|
+
break;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
return message;
|
|
498
|
+
},
|
|
499
|
+
fromPartial(object: DeepPartial<IdentifiedConnection>): IdentifiedConnection {
|
|
500
|
+
const message = createBaseIdentifiedConnection();
|
|
501
|
+
message.id = object.id ?? "";
|
|
502
|
+
message.clientId = object.clientId ?? "";
|
|
503
|
+
message.versions = object.versions?.map(e => Version.fromPartial(e)) || [];
|
|
504
|
+
message.state = object.state ?? 0;
|
|
505
|
+
message.counterparty = object.counterparty !== undefined && object.counterparty !== null ? Counterparty.fromPartial(object.counterparty) : undefined;
|
|
506
|
+
message.delayPeriod = object.delayPeriod !== undefined && object.delayPeriod !== null ? BigInt(object.delayPeriod.toString()) : BigInt(0);
|
|
507
|
+
return message;
|
|
508
|
+
},
|
|
509
|
+
fromAmino(object: IdentifiedConnectionAmino): IdentifiedConnection {
|
|
510
|
+
const message = createBaseIdentifiedConnection();
|
|
511
|
+
if (object.id !== undefined && object.id !== null) {
|
|
512
|
+
message.id = object.id;
|
|
513
|
+
}
|
|
514
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
515
|
+
message.clientId = object.client_id;
|
|
516
|
+
}
|
|
517
|
+
message.versions = object.versions?.map(e => Version.fromAmino(e)) || [];
|
|
518
|
+
if (object.state !== undefined && object.state !== null) {
|
|
519
|
+
message.state = object.state;
|
|
520
|
+
}
|
|
521
|
+
if (object.counterparty !== undefined && object.counterparty !== null) {
|
|
522
|
+
message.counterparty = Counterparty.fromAmino(object.counterparty);
|
|
523
|
+
}
|
|
524
|
+
if (object.delay_period !== undefined && object.delay_period !== null) {
|
|
525
|
+
message.delayPeriod = BigInt(object.delay_period);
|
|
526
|
+
}
|
|
527
|
+
return message;
|
|
528
|
+
},
|
|
529
|
+
toAmino(message: IdentifiedConnection): IdentifiedConnectionAmino {
|
|
530
|
+
const obj: any = {};
|
|
531
|
+
obj.id = message.id === "" ? undefined : message.id;
|
|
532
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
533
|
+
if (message.versions) {
|
|
534
|
+
obj.versions = message.versions.map(e => e ? Version.toAmino(e) : undefined);
|
|
535
|
+
} else {
|
|
536
|
+
obj.versions = message.versions;
|
|
537
|
+
}
|
|
538
|
+
obj.state = message.state === 0 ? undefined : message.state;
|
|
539
|
+
obj.counterparty = message.counterparty ? Counterparty.toAmino(message.counterparty) : undefined;
|
|
540
|
+
obj.delay_period = message.delayPeriod !== BigInt(0) ? message.delayPeriod?.toString() : undefined;
|
|
541
|
+
return obj;
|
|
542
|
+
},
|
|
543
|
+
fromAminoMsg(object: IdentifiedConnectionAminoMsg): IdentifiedConnection {
|
|
544
|
+
return IdentifiedConnection.fromAmino(object.value);
|
|
545
|
+
},
|
|
546
|
+
toAminoMsg(message: IdentifiedConnection): IdentifiedConnectionAminoMsg {
|
|
547
|
+
return {
|
|
548
|
+
type: "cosmos-sdk/IdentifiedConnection",
|
|
549
|
+
value: IdentifiedConnection.toAmino(message)
|
|
550
|
+
};
|
|
551
|
+
},
|
|
552
|
+
fromProtoMsg(message: IdentifiedConnectionProtoMsg): IdentifiedConnection {
|
|
553
|
+
return IdentifiedConnection.decode(message.value);
|
|
554
|
+
},
|
|
555
|
+
toProto(message: IdentifiedConnection): Uint8Array {
|
|
556
|
+
return IdentifiedConnection.encode(message).finish();
|
|
557
|
+
},
|
|
558
|
+
toProtoMsg(message: IdentifiedConnection): IdentifiedConnectionProtoMsg {
|
|
559
|
+
return {
|
|
560
|
+
typeUrl: "/ibc.core.connection.v1.IdentifiedConnection",
|
|
561
|
+
value: IdentifiedConnection.encode(message).finish()
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
GlobalDecoderRegistry.register(IdentifiedConnection.typeUrl, IdentifiedConnection);
|
|
566
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(IdentifiedConnection.aminoType, IdentifiedConnection.typeUrl);
|
|
567
|
+
function createBaseCounterparty(): Counterparty {
|
|
568
|
+
return {
|
|
569
|
+
clientId: "",
|
|
570
|
+
connectionId: "",
|
|
571
|
+
prefix: MerklePrefix.fromPartial({})
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
export const Counterparty = {
|
|
575
|
+
typeUrl: "/ibc.core.connection.v1.Counterparty",
|
|
576
|
+
aminoType: "cosmos-sdk/Counterparty",
|
|
577
|
+
is(o: any): o is Counterparty {
|
|
578
|
+
return o && (o.$typeUrl === Counterparty.typeUrl || typeof o.clientId === "string" && typeof o.connectionId === "string" && MerklePrefix.is(o.prefix));
|
|
579
|
+
},
|
|
580
|
+
isAmino(o: any): o is CounterpartyAmino {
|
|
581
|
+
return o && (o.$typeUrl === Counterparty.typeUrl || typeof o.client_id === "string" && typeof o.connection_id === "string" && MerklePrefix.isAmino(o.prefix));
|
|
582
|
+
},
|
|
583
|
+
encode(message: Counterparty, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
584
|
+
if (message.clientId !== "") {
|
|
585
|
+
writer.uint32(10).string(message.clientId);
|
|
586
|
+
}
|
|
587
|
+
if (message.connectionId !== "") {
|
|
588
|
+
writer.uint32(18).string(message.connectionId);
|
|
589
|
+
}
|
|
590
|
+
if (message.prefix !== undefined) {
|
|
591
|
+
MerklePrefix.encode(message.prefix, writer.uint32(26).fork()).ldelim();
|
|
592
|
+
}
|
|
593
|
+
return writer;
|
|
594
|
+
},
|
|
595
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Counterparty {
|
|
596
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
597
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
598
|
+
const message = createBaseCounterparty();
|
|
599
|
+
while (reader.pos < end) {
|
|
600
|
+
const tag = reader.uint32();
|
|
601
|
+
switch (tag >>> 3) {
|
|
602
|
+
case 1:
|
|
603
|
+
message.clientId = reader.string();
|
|
604
|
+
break;
|
|
605
|
+
case 2:
|
|
606
|
+
message.connectionId = reader.string();
|
|
607
|
+
break;
|
|
608
|
+
case 3:
|
|
609
|
+
message.prefix = MerklePrefix.decode(reader, reader.uint32());
|
|
610
|
+
break;
|
|
611
|
+
default:
|
|
612
|
+
reader.skipType(tag & 7);
|
|
613
|
+
break;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
return message;
|
|
617
|
+
},
|
|
618
|
+
fromPartial(object: DeepPartial<Counterparty>): Counterparty {
|
|
619
|
+
const message = createBaseCounterparty();
|
|
620
|
+
message.clientId = object.clientId ?? "";
|
|
621
|
+
message.connectionId = object.connectionId ?? "";
|
|
622
|
+
message.prefix = object.prefix !== undefined && object.prefix !== null ? MerklePrefix.fromPartial(object.prefix) : undefined;
|
|
623
|
+
return message;
|
|
624
|
+
},
|
|
625
|
+
fromAmino(object: CounterpartyAmino): Counterparty {
|
|
626
|
+
const message = createBaseCounterparty();
|
|
627
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
628
|
+
message.clientId = object.client_id;
|
|
629
|
+
}
|
|
630
|
+
if (object.connection_id !== undefined && object.connection_id !== null) {
|
|
631
|
+
message.connectionId = object.connection_id;
|
|
632
|
+
}
|
|
633
|
+
if (object.prefix !== undefined && object.prefix !== null) {
|
|
634
|
+
message.prefix = MerklePrefix.fromAmino(object.prefix);
|
|
635
|
+
}
|
|
636
|
+
return message;
|
|
637
|
+
},
|
|
638
|
+
toAmino(message: Counterparty): CounterpartyAmino {
|
|
639
|
+
const obj: any = {};
|
|
640
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
641
|
+
obj.connection_id = message.connectionId === "" ? undefined : message.connectionId;
|
|
642
|
+
obj.prefix = message.prefix ? MerklePrefix.toAmino(message.prefix) : undefined;
|
|
643
|
+
return obj;
|
|
644
|
+
},
|
|
645
|
+
fromAminoMsg(object: CounterpartyAminoMsg): Counterparty {
|
|
646
|
+
return Counterparty.fromAmino(object.value);
|
|
647
|
+
},
|
|
648
|
+
toAminoMsg(message: Counterparty): CounterpartyAminoMsg {
|
|
649
|
+
return {
|
|
650
|
+
type: "cosmos-sdk/Counterparty",
|
|
651
|
+
value: Counterparty.toAmino(message)
|
|
652
|
+
};
|
|
653
|
+
},
|
|
654
|
+
fromProtoMsg(message: CounterpartyProtoMsg): Counterparty {
|
|
655
|
+
return Counterparty.decode(message.value);
|
|
656
|
+
},
|
|
657
|
+
toProto(message: Counterparty): Uint8Array {
|
|
658
|
+
return Counterparty.encode(message).finish();
|
|
659
|
+
},
|
|
660
|
+
toProtoMsg(message: Counterparty): CounterpartyProtoMsg {
|
|
661
|
+
return {
|
|
662
|
+
typeUrl: "/ibc.core.connection.v1.Counterparty",
|
|
663
|
+
value: Counterparty.encode(message).finish()
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
GlobalDecoderRegistry.register(Counterparty.typeUrl, Counterparty);
|
|
668
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Counterparty.aminoType, Counterparty.typeUrl);
|
|
669
|
+
function createBaseClientPaths(): ClientPaths {
|
|
670
|
+
return {
|
|
671
|
+
paths: []
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
export const ClientPaths = {
|
|
675
|
+
typeUrl: "/ibc.core.connection.v1.ClientPaths",
|
|
676
|
+
aminoType: "cosmos-sdk/ClientPaths",
|
|
677
|
+
is(o: any): o is ClientPaths {
|
|
678
|
+
return o && (o.$typeUrl === ClientPaths.typeUrl || Array.isArray(o.paths) && (!o.paths.length || typeof o.paths[0] === "string"));
|
|
679
|
+
},
|
|
680
|
+
isAmino(o: any): o is ClientPathsAmino {
|
|
681
|
+
return o && (o.$typeUrl === ClientPaths.typeUrl || Array.isArray(o.paths) && (!o.paths.length || typeof o.paths[0] === "string"));
|
|
682
|
+
},
|
|
683
|
+
encode(message: ClientPaths, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
684
|
+
for (const v of message.paths) {
|
|
685
|
+
writer.uint32(10).string(v!);
|
|
686
|
+
}
|
|
687
|
+
return writer;
|
|
688
|
+
},
|
|
689
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ClientPaths {
|
|
690
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
691
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
692
|
+
const message = createBaseClientPaths();
|
|
693
|
+
while (reader.pos < end) {
|
|
694
|
+
const tag = reader.uint32();
|
|
695
|
+
switch (tag >>> 3) {
|
|
696
|
+
case 1:
|
|
697
|
+
message.paths.push(reader.string());
|
|
698
|
+
break;
|
|
699
|
+
default:
|
|
700
|
+
reader.skipType(tag & 7);
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
return message;
|
|
705
|
+
},
|
|
706
|
+
fromPartial(object: DeepPartial<ClientPaths>): ClientPaths {
|
|
707
|
+
const message = createBaseClientPaths();
|
|
708
|
+
message.paths = object.paths?.map(e => e) || [];
|
|
709
|
+
return message;
|
|
710
|
+
},
|
|
711
|
+
fromAmino(object: ClientPathsAmino): ClientPaths {
|
|
712
|
+
const message = createBaseClientPaths();
|
|
713
|
+
message.paths = object.paths?.map(e => e) || [];
|
|
714
|
+
return message;
|
|
715
|
+
},
|
|
716
|
+
toAmino(message: ClientPaths): ClientPathsAmino {
|
|
717
|
+
const obj: any = {};
|
|
718
|
+
if (message.paths) {
|
|
719
|
+
obj.paths = message.paths.map(e => e);
|
|
720
|
+
} else {
|
|
721
|
+
obj.paths = message.paths;
|
|
722
|
+
}
|
|
723
|
+
return obj;
|
|
724
|
+
},
|
|
725
|
+
fromAminoMsg(object: ClientPathsAminoMsg): ClientPaths {
|
|
726
|
+
return ClientPaths.fromAmino(object.value);
|
|
727
|
+
},
|
|
728
|
+
toAminoMsg(message: ClientPaths): ClientPathsAminoMsg {
|
|
729
|
+
return {
|
|
730
|
+
type: "cosmos-sdk/ClientPaths",
|
|
731
|
+
value: ClientPaths.toAmino(message)
|
|
732
|
+
};
|
|
733
|
+
},
|
|
734
|
+
fromProtoMsg(message: ClientPathsProtoMsg): ClientPaths {
|
|
735
|
+
return ClientPaths.decode(message.value);
|
|
736
|
+
},
|
|
737
|
+
toProto(message: ClientPaths): Uint8Array {
|
|
738
|
+
return ClientPaths.encode(message).finish();
|
|
739
|
+
},
|
|
740
|
+
toProtoMsg(message: ClientPaths): ClientPathsProtoMsg {
|
|
741
|
+
return {
|
|
742
|
+
typeUrl: "/ibc.core.connection.v1.ClientPaths",
|
|
743
|
+
value: ClientPaths.encode(message).finish()
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
};
|
|
747
|
+
GlobalDecoderRegistry.register(ClientPaths.typeUrl, ClientPaths);
|
|
748
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ClientPaths.aminoType, ClientPaths.typeUrl);
|
|
749
|
+
function createBaseConnectionPaths(): ConnectionPaths {
|
|
750
|
+
return {
|
|
751
|
+
clientId: "",
|
|
752
|
+
paths: []
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
export const ConnectionPaths = {
|
|
756
|
+
typeUrl: "/ibc.core.connection.v1.ConnectionPaths",
|
|
757
|
+
aminoType: "cosmos-sdk/ConnectionPaths",
|
|
758
|
+
is(o: any): o is ConnectionPaths {
|
|
759
|
+
return o && (o.$typeUrl === ConnectionPaths.typeUrl || typeof o.clientId === "string" && Array.isArray(o.paths) && (!o.paths.length || typeof o.paths[0] === "string"));
|
|
760
|
+
},
|
|
761
|
+
isAmino(o: any): o is ConnectionPathsAmino {
|
|
762
|
+
return o && (o.$typeUrl === ConnectionPaths.typeUrl || typeof o.client_id === "string" && Array.isArray(o.paths) && (!o.paths.length || typeof o.paths[0] === "string"));
|
|
763
|
+
},
|
|
764
|
+
encode(message: ConnectionPaths, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
765
|
+
if (message.clientId !== "") {
|
|
766
|
+
writer.uint32(10).string(message.clientId);
|
|
767
|
+
}
|
|
768
|
+
for (const v of message.paths) {
|
|
769
|
+
writer.uint32(18).string(v!);
|
|
770
|
+
}
|
|
771
|
+
return writer;
|
|
772
|
+
},
|
|
773
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ConnectionPaths {
|
|
774
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
775
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
776
|
+
const message = createBaseConnectionPaths();
|
|
777
|
+
while (reader.pos < end) {
|
|
778
|
+
const tag = reader.uint32();
|
|
779
|
+
switch (tag >>> 3) {
|
|
780
|
+
case 1:
|
|
781
|
+
message.clientId = reader.string();
|
|
782
|
+
break;
|
|
783
|
+
case 2:
|
|
784
|
+
message.paths.push(reader.string());
|
|
785
|
+
break;
|
|
786
|
+
default:
|
|
787
|
+
reader.skipType(tag & 7);
|
|
788
|
+
break;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
return message;
|
|
792
|
+
},
|
|
793
|
+
fromPartial(object: DeepPartial<ConnectionPaths>): ConnectionPaths {
|
|
794
|
+
const message = createBaseConnectionPaths();
|
|
795
|
+
message.clientId = object.clientId ?? "";
|
|
796
|
+
message.paths = object.paths?.map(e => e) || [];
|
|
797
|
+
return message;
|
|
798
|
+
},
|
|
799
|
+
fromAmino(object: ConnectionPathsAmino): ConnectionPaths {
|
|
800
|
+
const message = createBaseConnectionPaths();
|
|
801
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
802
|
+
message.clientId = object.client_id;
|
|
803
|
+
}
|
|
804
|
+
message.paths = object.paths?.map(e => e) || [];
|
|
805
|
+
return message;
|
|
806
|
+
},
|
|
807
|
+
toAmino(message: ConnectionPaths): ConnectionPathsAmino {
|
|
808
|
+
const obj: any = {};
|
|
809
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
810
|
+
if (message.paths) {
|
|
811
|
+
obj.paths = message.paths.map(e => e);
|
|
812
|
+
} else {
|
|
813
|
+
obj.paths = message.paths;
|
|
814
|
+
}
|
|
815
|
+
return obj;
|
|
816
|
+
},
|
|
817
|
+
fromAminoMsg(object: ConnectionPathsAminoMsg): ConnectionPaths {
|
|
818
|
+
return ConnectionPaths.fromAmino(object.value);
|
|
819
|
+
},
|
|
820
|
+
toAminoMsg(message: ConnectionPaths): ConnectionPathsAminoMsg {
|
|
821
|
+
return {
|
|
822
|
+
type: "cosmos-sdk/ConnectionPaths",
|
|
823
|
+
value: ConnectionPaths.toAmino(message)
|
|
824
|
+
};
|
|
825
|
+
},
|
|
826
|
+
fromProtoMsg(message: ConnectionPathsProtoMsg): ConnectionPaths {
|
|
827
|
+
return ConnectionPaths.decode(message.value);
|
|
828
|
+
},
|
|
829
|
+
toProto(message: ConnectionPaths): Uint8Array {
|
|
830
|
+
return ConnectionPaths.encode(message).finish();
|
|
831
|
+
},
|
|
832
|
+
toProtoMsg(message: ConnectionPaths): ConnectionPathsProtoMsg {
|
|
833
|
+
return {
|
|
834
|
+
typeUrl: "/ibc.core.connection.v1.ConnectionPaths",
|
|
835
|
+
value: ConnectionPaths.encode(message).finish()
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
GlobalDecoderRegistry.register(ConnectionPaths.typeUrl, ConnectionPaths);
|
|
840
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ConnectionPaths.aminoType, ConnectionPaths.typeUrl);
|
|
841
|
+
function createBaseVersion(): Version {
|
|
842
|
+
return {
|
|
843
|
+
identifier: "",
|
|
844
|
+
features: []
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
export const Version = {
|
|
848
|
+
typeUrl: "/ibc.core.connection.v1.Version",
|
|
849
|
+
aminoType: "cosmos-sdk/Version",
|
|
850
|
+
is(o: any): o is Version {
|
|
851
|
+
return o && (o.$typeUrl === Version.typeUrl || typeof o.identifier === "string" && Array.isArray(o.features) && (!o.features.length || typeof o.features[0] === "string"));
|
|
852
|
+
},
|
|
853
|
+
isAmino(o: any): o is VersionAmino {
|
|
854
|
+
return o && (o.$typeUrl === Version.typeUrl || typeof o.identifier === "string" && Array.isArray(o.features) && (!o.features.length || typeof o.features[0] === "string"));
|
|
855
|
+
},
|
|
856
|
+
encode(message: Version, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
857
|
+
if (message.identifier !== "") {
|
|
858
|
+
writer.uint32(10).string(message.identifier);
|
|
859
|
+
}
|
|
860
|
+
for (const v of message.features) {
|
|
861
|
+
writer.uint32(18).string(v!);
|
|
862
|
+
}
|
|
863
|
+
return writer;
|
|
864
|
+
},
|
|
865
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Version {
|
|
866
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
867
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
868
|
+
const message = createBaseVersion();
|
|
869
|
+
while (reader.pos < end) {
|
|
870
|
+
const tag = reader.uint32();
|
|
871
|
+
switch (tag >>> 3) {
|
|
872
|
+
case 1:
|
|
873
|
+
message.identifier = reader.string();
|
|
874
|
+
break;
|
|
875
|
+
case 2:
|
|
876
|
+
message.features.push(reader.string());
|
|
877
|
+
break;
|
|
878
|
+
default:
|
|
879
|
+
reader.skipType(tag & 7);
|
|
880
|
+
break;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
return message;
|
|
884
|
+
},
|
|
885
|
+
fromPartial(object: DeepPartial<Version>): Version {
|
|
886
|
+
const message = createBaseVersion();
|
|
887
|
+
message.identifier = object.identifier ?? "";
|
|
888
|
+
message.features = object.features?.map(e => e) || [];
|
|
889
|
+
return message;
|
|
890
|
+
},
|
|
891
|
+
fromAmino(object: VersionAmino): Version {
|
|
892
|
+
const message = createBaseVersion();
|
|
893
|
+
if (object.identifier !== undefined && object.identifier !== null) {
|
|
894
|
+
message.identifier = object.identifier;
|
|
895
|
+
}
|
|
896
|
+
message.features = object.features?.map(e => e) || [];
|
|
897
|
+
return message;
|
|
898
|
+
},
|
|
899
|
+
toAmino(message: Version): VersionAmino {
|
|
900
|
+
const obj: any = {};
|
|
901
|
+
obj.identifier = message.identifier === "" ? undefined : message.identifier;
|
|
902
|
+
if (message.features) {
|
|
903
|
+
obj.features = message.features.map(e => e);
|
|
904
|
+
} else {
|
|
905
|
+
obj.features = message.features;
|
|
906
|
+
}
|
|
907
|
+
return obj;
|
|
908
|
+
},
|
|
909
|
+
fromAminoMsg(object: VersionAminoMsg): Version {
|
|
910
|
+
return Version.fromAmino(object.value);
|
|
911
|
+
},
|
|
912
|
+
toAminoMsg(message: Version): VersionAminoMsg {
|
|
913
|
+
return {
|
|
914
|
+
type: "cosmos-sdk/Version",
|
|
915
|
+
value: Version.toAmino(message)
|
|
916
|
+
};
|
|
917
|
+
},
|
|
918
|
+
fromProtoMsg(message: VersionProtoMsg): Version {
|
|
919
|
+
return Version.decode(message.value);
|
|
920
|
+
},
|
|
921
|
+
toProto(message: Version): Uint8Array {
|
|
922
|
+
return Version.encode(message).finish();
|
|
923
|
+
},
|
|
924
|
+
toProtoMsg(message: Version): VersionProtoMsg {
|
|
925
|
+
return {
|
|
926
|
+
typeUrl: "/ibc.core.connection.v1.Version",
|
|
927
|
+
value: Version.encode(message).finish()
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
};
|
|
931
|
+
GlobalDecoderRegistry.register(Version.typeUrl, Version);
|
|
932
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Version.aminoType, Version.typeUrl);
|
|
933
|
+
function createBaseParams(): Params {
|
|
934
|
+
return {
|
|
935
|
+
maxExpectedTimePerBlock: BigInt(0)
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
export const Params = {
|
|
939
|
+
typeUrl: "/ibc.core.connection.v1.Params",
|
|
940
|
+
aminoType: "cosmos-sdk/Params",
|
|
941
|
+
is(o: any): o is Params {
|
|
942
|
+
return o && (o.$typeUrl === Params.typeUrl || typeof o.maxExpectedTimePerBlock === "bigint");
|
|
943
|
+
},
|
|
944
|
+
isAmino(o: any): o is ParamsAmino {
|
|
945
|
+
return o && (o.$typeUrl === Params.typeUrl || typeof o.max_expected_time_per_block === "bigint");
|
|
946
|
+
},
|
|
947
|
+
encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
948
|
+
if (message.maxExpectedTimePerBlock !== BigInt(0)) {
|
|
949
|
+
writer.uint32(8).uint64(message.maxExpectedTimePerBlock);
|
|
950
|
+
}
|
|
951
|
+
return writer;
|
|
952
|
+
},
|
|
953
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params {
|
|
954
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
955
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
956
|
+
const message = createBaseParams();
|
|
957
|
+
while (reader.pos < end) {
|
|
958
|
+
const tag = reader.uint32();
|
|
959
|
+
switch (tag >>> 3) {
|
|
960
|
+
case 1:
|
|
961
|
+
message.maxExpectedTimePerBlock = reader.uint64();
|
|
962
|
+
break;
|
|
963
|
+
default:
|
|
964
|
+
reader.skipType(tag & 7);
|
|
965
|
+
break;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
return message;
|
|
969
|
+
},
|
|
970
|
+
fromPartial(object: DeepPartial<Params>): Params {
|
|
971
|
+
const message = createBaseParams();
|
|
972
|
+
message.maxExpectedTimePerBlock = object.maxExpectedTimePerBlock !== undefined && object.maxExpectedTimePerBlock !== null ? BigInt(object.maxExpectedTimePerBlock.toString()) : BigInt(0);
|
|
973
|
+
return message;
|
|
974
|
+
},
|
|
975
|
+
fromAmino(object: ParamsAmino): Params {
|
|
976
|
+
const message = createBaseParams();
|
|
977
|
+
if (object.max_expected_time_per_block !== undefined && object.max_expected_time_per_block !== null) {
|
|
978
|
+
message.maxExpectedTimePerBlock = BigInt(object.max_expected_time_per_block);
|
|
979
|
+
}
|
|
980
|
+
return message;
|
|
981
|
+
},
|
|
982
|
+
toAmino(message: Params): ParamsAmino {
|
|
983
|
+
const obj: any = {};
|
|
984
|
+
obj.max_expected_time_per_block = message.maxExpectedTimePerBlock !== BigInt(0) ? message.maxExpectedTimePerBlock?.toString() : undefined;
|
|
985
|
+
return obj;
|
|
986
|
+
},
|
|
987
|
+
fromAminoMsg(object: ParamsAminoMsg): Params {
|
|
988
|
+
return Params.fromAmino(object.value);
|
|
989
|
+
},
|
|
990
|
+
toAminoMsg(message: Params): ParamsAminoMsg {
|
|
991
|
+
return {
|
|
992
|
+
type: "cosmos-sdk/Params",
|
|
993
|
+
value: Params.toAmino(message)
|
|
994
|
+
};
|
|
995
|
+
},
|
|
996
|
+
fromProtoMsg(message: ParamsProtoMsg): Params {
|
|
997
|
+
return Params.decode(message.value);
|
|
998
|
+
},
|
|
999
|
+
toProto(message: Params): Uint8Array {
|
|
1000
|
+
return Params.encode(message).finish();
|
|
1001
|
+
},
|
|
1002
|
+
toProtoMsg(message: Params): ParamsProtoMsg {
|
|
1003
|
+
return {
|
|
1004
|
+
typeUrl: "/ibc.core.connection.v1.Params",
|
|
1005
|
+
value: Params.encode(message).finish()
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
};
|
|
1009
|
+
GlobalDecoderRegistry.register(Params.typeUrl, Params);
|
|
1010
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
|