@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,927 @@
|
|
|
1
|
+
import { Any, AnyAmino } from "../../../../google/protobuf/any";
|
|
2
|
+
import { Plan, PlanAmino } from "../../../../cosmos/upgrade/v1beta1/upgrade";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
6
|
+
/**
|
|
7
|
+
* IdentifiedClientState defines a client state with an additional client
|
|
8
|
+
* identifier field.
|
|
9
|
+
*/
|
|
10
|
+
export interface IdentifiedClientState {
|
|
11
|
+
/** client identifier */
|
|
12
|
+
clientId: string;
|
|
13
|
+
/** client state */
|
|
14
|
+
clientState?: Any;
|
|
15
|
+
}
|
|
16
|
+
export interface IdentifiedClientStateProtoMsg {
|
|
17
|
+
typeUrl: "/ibc.core.client.v1.IdentifiedClientState";
|
|
18
|
+
value: Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* IdentifiedClientState defines a client state with an additional client
|
|
22
|
+
* identifier field.
|
|
23
|
+
*/
|
|
24
|
+
export interface IdentifiedClientStateAmino {
|
|
25
|
+
/** client identifier */
|
|
26
|
+
client_id: string;
|
|
27
|
+
/** client state */
|
|
28
|
+
client_state?: AnyAmino;
|
|
29
|
+
}
|
|
30
|
+
export interface IdentifiedClientStateAminoMsg {
|
|
31
|
+
type: "cosmos-sdk/IdentifiedClientState";
|
|
32
|
+
value: IdentifiedClientStateAmino;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* ConsensusStateWithHeight defines a consensus state with an additional height
|
|
36
|
+
* field.
|
|
37
|
+
*/
|
|
38
|
+
export interface ConsensusStateWithHeight {
|
|
39
|
+
/** consensus state height */
|
|
40
|
+
height: Height;
|
|
41
|
+
/** consensus state */
|
|
42
|
+
consensusState?: Any;
|
|
43
|
+
}
|
|
44
|
+
export interface ConsensusStateWithHeightProtoMsg {
|
|
45
|
+
typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight";
|
|
46
|
+
value: Uint8Array;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* ConsensusStateWithHeight defines a consensus state with an additional height
|
|
50
|
+
* field.
|
|
51
|
+
*/
|
|
52
|
+
export interface ConsensusStateWithHeightAmino {
|
|
53
|
+
/** consensus state height */
|
|
54
|
+
height: HeightAmino;
|
|
55
|
+
/** consensus state */
|
|
56
|
+
consensus_state?: AnyAmino;
|
|
57
|
+
}
|
|
58
|
+
export interface ConsensusStateWithHeightAminoMsg {
|
|
59
|
+
type: "cosmos-sdk/ConsensusStateWithHeight";
|
|
60
|
+
value: ConsensusStateWithHeightAmino;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* ClientConsensusStates defines all the stored consensus states for a given
|
|
64
|
+
* client.
|
|
65
|
+
*/
|
|
66
|
+
export interface ClientConsensusStates {
|
|
67
|
+
/** client identifier */
|
|
68
|
+
clientId: string;
|
|
69
|
+
/** consensus states and their heights associated with the client */
|
|
70
|
+
consensusStates: ConsensusStateWithHeight[];
|
|
71
|
+
}
|
|
72
|
+
export interface ClientConsensusStatesProtoMsg {
|
|
73
|
+
typeUrl: "/ibc.core.client.v1.ClientConsensusStates";
|
|
74
|
+
value: Uint8Array;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* ClientConsensusStates defines all the stored consensus states for a given
|
|
78
|
+
* client.
|
|
79
|
+
*/
|
|
80
|
+
export interface ClientConsensusStatesAmino {
|
|
81
|
+
/** client identifier */
|
|
82
|
+
client_id: string;
|
|
83
|
+
/** consensus states and their heights associated with the client */
|
|
84
|
+
consensus_states: ConsensusStateWithHeightAmino[];
|
|
85
|
+
}
|
|
86
|
+
export interface ClientConsensusStatesAminoMsg {
|
|
87
|
+
type: "cosmos-sdk/ClientConsensusStates";
|
|
88
|
+
value: ClientConsensusStatesAmino;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Height is a monotonically increasing data type
|
|
92
|
+
* that can be compared against another Height for the purposes of updating and
|
|
93
|
+
* freezing clients
|
|
94
|
+
*
|
|
95
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
96
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
97
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
98
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
99
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
100
|
+
* gets reset
|
|
101
|
+
*/
|
|
102
|
+
export interface Height {
|
|
103
|
+
/** the revision that the client is currently on */
|
|
104
|
+
revisionNumber: bigint;
|
|
105
|
+
/** the height within the given revision */
|
|
106
|
+
revisionHeight: bigint;
|
|
107
|
+
}
|
|
108
|
+
export interface HeightProtoMsg {
|
|
109
|
+
typeUrl: "/ibc.core.client.v1.Height";
|
|
110
|
+
value: Uint8Array;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Height is a monotonically increasing data type
|
|
114
|
+
* that can be compared against another Height for the purposes of updating and
|
|
115
|
+
* freezing clients
|
|
116
|
+
*
|
|
117
|
+
* Normally the RevisionHeight is incremented at each height while keeping
|
|
118
|
+
* RevisionNumber the same. However some consensus algorithms may choose to
|
|
119
|
+
* reset the height in certain conditions e.g. hard forks, state-machine
|
|
120
|
+
* breaking changes In these cases, the RevisionNumber is incremented so that
|
|
121
|
+
* height continues to be monitonically increasing even as the RevisionHeight
|
|
122
|
+
* gets reset
|
|
123
|
+
*/
|
|
124
|
+
export interface HeightAmino {
|
|
125
|
+
/** the revision that the client is currently on */
|
|
126
|
+
revision_number: string;
|
|
127
|
+
/** the height within the given revision */
|
|
128
|
+
revision_height: string;
|
|
129
|
+
}
|
|
130
|
+
export interface HeightAminoMsg {
|
|
131
|
+
type: "cosmos-sdk/Height";
|
|
132
|
+
value: HeightAmino;
|
|
133
|
+
}
|
|
134
|
+
/** Params defines the set of IBC light client parameters. */
|
|
135
|
+
export interface Params {
|
|
136
|
+
/**
|
|
137
|
+
* allowed_clients defines the list of allowed client state types which can be created
|
|
138
|
+
* and interacted with. If a client type is removed from the allowed clients list, usage
|
|
139
|
+
* of this client will be disabled until it is added again to the list.
|
|
140
|
+
*/
|
|
141
|
+
allowedClients: string[];
|
|
142
|
+
}
|
|
143
|
+
export interface ParamsProtoMsg {
|
|
144
|
+
typeUrl: "/ibc.core.client.v1.Params";
|
|
145
|
+
value: Uint8Array;
|
|
146
|
+
}
|
|
147
|
+
/** Params defines the set of IBC light client parameters. */
|
|
148
|
+
export interface ParamsAmino {
|
|
149
|
+
/**
|
|
150
|
+
* allowed_clients defines the list of allowed client state types which can be created
|
|
151
|
+
* and interacted with. If a client type is removed from the allowed clients list, usage
|
|
152
|
+
* of this client will be disabled until it is added again to the list.
|
|
153
|
+
*/
|
|
154
|
+
allowed_clients: string[];
|
|
155
|
+
}
|
|
156
|
+
export interface ParamsAminoMsg {
|
|
157
|
+
type: "cosmos-sdk/Params";
|
|
158
|
+
value: ParamsAmino;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* ClientUpdateProposal is a legacy governance proposal. If it passes, the substitute
|
|
162
|
+
* client's latest consensus state is copied over to the subject client. The proposal
|
|
163
|
+
* handler may fail if the subject and the substitute do not match in client and
|
|
164
|
+
* chain parameters (with exception to latest height, frozen height, and chain-id).
|
|
165
|
+
*
|
|
166
|
+
* Deprecated: Please use MsgRecoverClient in favour of this message type.
|
|
167
|
+
*/
|
|
168
|
+
/** @deprecated */
|
|
169
|
+
export interface ClientUpdateProposal {
|
|
170
|
+
/** the title of the update proposal */
|
|
171
|
+
title: string;
|
|
172
|
+
/** the description of the proposal */
|
|
173
|
+
description: string;
|
|
174
|
+
/** the client identifier for the client to be updated if the proposal passes */
|
|
175
|
+
subjectClientId: string;
|
|
176
|
+
/**
|
|
177
|
+
* the substitute client identifier for the client standing in for the subject
|
|
178
|
+
* client
|
|
179
|
+
*/
|
|
180
|
+
substituteClientId: string;
|
|
181
|
+
}
|
|
182
|
+
export interface ClientUpdateProposalProtoMsg {
|
|
183
|
+
typeUrl: "/ibc.core.client.v1.ClientUpdateProposal";
|
|
184
|
+
value: Uint8Array;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* ClientUpdateProposal is a legacy governance proposal. If it passes, the substitute
|
|
188
|
+
* client's latest consensus state is copied over to the subject client. The proposal
|
|
189
|
+
* handler may fail if the subject and the substitute do not match in client and
|
|
190
|
+
* chain parameters (with exception to latest height, frozen height, and chain-id).
|
|
191
|
+
*
|
|
192
|
+
* Deprecated: Please use MsgRecoverClient in favour of this message type.
|
|
193
|
+
*/
|
|
194
|
+
/** @deprecated */
|
|
195
|
+
export interface ClientUpdateProposalAmino {
|
|
196
|
+
/** the title of the update proposal */
|
|
197
|
+
title: string;
|
|
198
|
+
/** the description of the proposal */
|
|
199
|
+
description: string;
|
|
200
|
+
/** the client identifier for the client to be updated if the proposal passes */
|
|
201
|
+
subject_client_id: string;
|
|
202
|
+
/**
|
|
203
|
+
* the substitute client identifier for the client standing in for the subject
|
|
204
|
+
* client
|
|
205
|
+
*/
|
|
206
|
+
substitute_client_id: string;
|
|
207
|
+
}
|
|
208
|
+
export interface ClientUpdateProposalAminoMsg {
|
|
209
|
+
type: "cosmos-sdk/ClientUpdateProposal";
|
|
210
|
+
value: ClientUpdateProposalAmino;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* UpgradeProposal is a gov Content type for initiating an IBC breaking
|
|
214
|
+
* upgrade.
|
|
215
|
+
*
|
|
216
|
+
* Deprecated: Please use MsgIBCSoftwareUpgrade in favour of this message type.
|
|
217
|
+
*/
|
|
218
|
+
/** @deprecated */
|
|
219
|
+
export interface UpgradeProposal {
|
|
220
|
+
title: string;
|
|
221
|
+
description: string;
|
|
222
|
+
plan: Plan;
|
|
223
|
+
/**
|
|
224
|
+
* An UpgradedClientState must be provided to perform an IBC breaking upgrade.
|
|
225
|
+
* This will make the chain commit to the correct upgraded (self) client state
|
|
226
|
+
* before the upgrade occurs, so that connecting chains can verify that the
|
|
227
|
+
* new upgraded client is valid by verifying a proof on the previous version
|
|
228
|
+
* of the chain. This will allow IBC connections to persist smoothly across
|
|
229
|
+
* planned chain upgrades
|
|
230
|
+
*/
|
|
231
|
+
upgradedClientState?: Any;
|
|
232
|
+
}
|
|
233
|
+
export interface UpgradeProposalProtoMsg {
|
|
234
|
+
typeUrl: "/ibc.core.client.v1.UpgradeProposal";
|
|
235
|
+
value: Uint8Array;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* UpgradeProposal is a gov Content type for initiating an IBC breaking
|
|
239
|
+
* upgrade.
|
|
240
|
+
*
|
|
241
|
+
* Deprecated: Please use MsgIBCSoftwareUpgrade in favour of this message type.
|
|
242
|
+
*/
|
|
243
|
+
/** @deprecated */
|
|
244
|
+
export interface UpgradeProposalAmino {
|
|
245
|
+
title: string;
|
|
246
|
+
description: string;
|
|
247
|
+
plan: PlanAmino;
|
|
248
|
+
/**
|
|
249
|
+
* An UpgradedClientState must be provided to perform an IBC breaking upgrade.
|
|
250
|
+
* This will make the chain commit to the correct upgraded (self) client state
|
|
251
|
+
* before the upgrade occurs, so that connecting chains can verify that the
|
|
252
|
+
* new upgraded client is valid by verifying a proof on the previous version
|
|
253
|
+
* of the chain. This will allow IBC connections to persist smoothly across
|
|
254
|
+
* planned chain upgrades
|
|
255
|
+
*/
|
|
256
|
+
upgraded_client_state?: AnyAmino;
|
|
257
|
+
}
|
|
258
|
+
export interface UpgradeProposalAminoMsg {
|
|
259
|
+
type: "cosmos-sdk/UpgradeProposal";
|
|
260
|
+
value: UpgradeProposalAmino;
|
|
261
|
+
}
|
|
262
|
+
function createBaseIdentifiedClientState(): IdentifiedClientState {
|
|
263
|
+
return {
|
|
264
|
+
clientId: "",
|
|
265
|
+
clientState: undefined
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
export const IdentifiedClientState = {
|
|
269
|
+
typeUrl: "/ibc.core.client.v1.IdentifiedClientState",
|
|
270
|
+
aminoType: "cosmos-sdk/IdentifiedClientState",
|
|
271
|
+
is(o: any): o is IdentifiedClientState {
|
|
272
|
+
return o && (o.$typeUrl === IdentifiedClientState.typeUrl || typeof o.clientId === "string");
|
|
273
|
+
},
|
|
274
|
+
isAmino(o: any): o is IdentifiedClientStateAmino {
|
|
275
|
+
return o && (o.$typeUrl === IdentifiedClientState.typeUrl || typeof o.client_id === "string");
|
|
276
|
+
},
|
|
277
|
+
encode(message: IdentifiedClientState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
278
|
+
if (message.clientId !== "") {
|
|
279
|
+
writer.uint32(10).string(message.clientId);
|
|
280
|
+
}
|
|
281
|
+
if (message.clientState !== undefined) {
|
|
282
|
+
Any.encode(message.clientState, writer.uint32(18).fork()).ldelim();
|
|
283
|
+
}
|
|
284
|
+
return writer;
|
|
285
|
+
},
|
|
286
|
+
decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedClientState {
|
|
287
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
288
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
289
|
+
const message = createBaseIdentifiedClientState();
|
|
290
|
+
while (reader.pos < end) {
|
|
291
|
+
const tag = reader.uint32();
|
|
292
|
+
switch (tag >>> 3) {
|
|
293
|
+
case 1:
|
|
294
|
+
message.clientId = reader.string();
|
|
295
|
+
break;
|
|
296
|
+
case 2:
|
|
297
|
+
message.clientState = Any.decode(reader, reader.uint32());
|
|
298
|
+
break;
|
|
299
|
+
default:
|
|
300
|
+
reader.skipType(tag & 7);
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return message;
|
|
305
|
+
},
|
|
306
|
+
fromPartial(object: DeepPartial<IdentifiedClientState>): IdentifiedClientState {
|
|
307
|
+
const message = createBaseIdentifiedClientState();
|
|
308
|
+
message.clientId = object.clientId ?? "";
|
|
309
|
+
message.clientState = object.clientState !== undefined && object.clientState !== null ? Any.fromPartial(object.clientState) : undefined;
|
|
310
|
+
return message;
|
|
311
|
+
},
|
|
312
|
+
fromAmino(object: IdentifiedClientStateAmino): IdentifiedClientState {
|
|
313
|
+
const message = createBaseIdentifiedClientState();
|
|
314
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
315
|
+
message.clientId = object.client_id;
|
|
316
|
+
}
|
|
317
|
+
if (object.client_state !== undefined && object.client_state !== null) {
|
|
318
|
+
message.clientState = Any.fromAmino(object.client_state);
|
|
319
|
+
}
|
|
320
|
+
return message;
|
|
321
|
+
},
|
|
322
|
+
toAmino(message: IdentifiedClientState): IdentifiedClientStateAmino {
|
|
323
|
+
const obj: any = {};
|
|
324
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
325
|
+
obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined;
|
|
326
|
+
return obj;
|
|
327
|
+
},
|
|
328
|
+
fromAminoMsg(object: IdentifiedClientStateAminoMsg): IdentifiedClientState {
|
|
329
|
+
return IdentifiedClientState.fromAmino(object.value);
|
|
330
|
+
},
|
|
331
|
+
toAminoMsg(message: IdentifiedClientState): IdentifiedClientStateAminoMsg {
|
|
332
|
+
return {
|
|
333
|
+
type: "cosmos-sdk/IdentifiedClientState",
|
|
334
|
+
value: IdentifiedClientState.toAmino(message)
|
|
335
|
+
};
|
|
336
|
+
},
|
|
337
|
+
fromProtoMsg(message: IdentifiedClientStateProtoMsg): IdentifiedClientState {
|
|
338
|
+
return IdentifiedClientState.decode(message.value);
|
|
339
|
+
},
|
|
340
|
+
toProto(message: IdentifiedClientState): Uint8Array {
|
|
341
|
+
return IdentifiedClientState.encode(message).finish();
|
|
342
|
+
},
|
|
343
|
+
toProtoMsg(message: IdentifiedClientState): IdentifiedClientStateProtoMsg {
|
|
344
|
+
return {
|
|
345
|
+
typeUrl: "/ibc.core.client.v1.IdentifiedClientState",
|
|
346
|
+
value: IdentifiedClientState.encode(message).finish()
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
GlobalDecoderRegistry.register(IdentifiedClientState.typeUrl, IdentifiedClientState);
|
|
351
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(IdentifiedClientState.aminoType, IdentifiedClientState.typeUrl);
|
|
352
|
+
function createBaseConsensusStateWithHeight(): ConsensusStateWithHeight {
|
|
353
|
+
return {
|
|
354
|
+
height: Height.fromPartial({}),
|
|
355
|
+
consensusState: undefined
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
export const ConsensusStateWithHeight = {
|
|
359
|
+
typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight",
|
|
360
|
+
aminoType: "cosmos-sdk/ConsensusStateWithHeight",
|
|
361
|
+
is(o: any): o is ConsensusStateWithHeight {
|
|
362
|
+
return o && (o.$typeUrl === ConsensusStateWithHeight.typeUrl || Height.is(o.height));
|
|
363
|
+
},
|
|
364
|
+
isAmino(o: any): o is ConsensusStateWithHeightAmino {
|
|
365
|
+
return o && (o.$typeUrl === ConsensusStateWithHeight.typeUrl || Height.isAmino(o.height));
|
|
366
|
+
},
|
|
367
|
+
encode(message: ConsensusStateWithHeight, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
368
|
+
if (message.height !== undefined) {
|
|
369
|
+
Height.encode(message.height, writer.uint32(10).fork()).ldelim();
|
|
370
|
+
}
|
|
371
|
+
if (message.consensusState !== undefined) {
|
|
372
|
+
Any.encode(message.consensusState, writer.uint32(18).fork()).ldelim();
|
|
373
|
+
}
|
|
374
|
+
return writer;
|
|
375
|
+
},
|
|
376
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ConsensusStateWithHeight {
|
|
377
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
378
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
379
|
+
const message = createBaseConsensusStateWithHeight();
|
|
380
|
+
while (reader.pos < end) {
|
|
381
|
+
const tag = reader.uint32();
|
|
382
|
+
switch (tag >>> 3) {
|
|
383
|
+
case 1:
|
|
384
|
+
message.height = Height.decode(reader, reader.uint32());
|
|
385
|
+
break;
|
|
386
|
+
case 2:
|
|
387
|
+
message.consensusState = Any.decode(reader, reader.uint32());
|
|
388
|
+
break;
|
|
389
|
+
default:
|
|
390
|
+
reader.skipType(tag & 7);
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
return message;
|
|
395
|
+
},
|
|
396
|
+
fromPartial(object: DeepPartial<ConsensusStateWithHeight>): ConsensusStateWithHeight {
|
|
397
|
+
const message = createBaseConsensusStateWithHeight();
|
|
398
|
+
message.height = object.height !== undefined && object.height !== null ? Height.fromPartial(object.height) : undefined;
|
|
399
|
+
message.consensusState = object.consensusState !== undefined && object.consensusState !== null ? Any.fromPartial(object.consensusState) : undefined;
|
|
400
|
+
return message;
|
|
401
|
+
},
|
|
402
|
+
fromAmino(object: ConsensusStateWithHeightAmino): ConsensusStateWithHeight {
|
|
403
|
+
const message = createBaseConsensusStateWithHeight();
|
|
404
|
+
if (object.height !== undefined && object.height !== null) {
|
|
405
|
+
message.height = Height.fromAmino(object.height);
|
|
406
|
+
}
|
|
407
|
+
if (object.consensus_state !== undefined && object.consensus_state !== null) {
|
|
408
|
+
message.consensusState = Any.fromAmino(object.consensus_state);
|
|
409
|
+
}
|
|
410
|
+
return message;
|
|
411
|
+
},
|
|
412
|
+
toAmino(message: ConsensusStateWithHeight): ConsensusStateWithHeightAmino {
|
|
413
|
+
const obj: any = {};
|
|
414
|
+
obj.height = message.height ? Height.toAmino(message.height) : undefined;
|
|
415
|
+
obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined;
|
|
416
|
+
return obj;
|
|
417
|
+
},
|
|
418
|
+
fromAminoMsg(object: ConsensusStateWithHeightAminoMsg): ConsensusStateWithHeight {
|
|
419
|
+
return ConsensusStateWithHeight.fromAmino(object.value);
|
|
420
|
+
},
|
|
421
|
+
toAminoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightAminoMsg {
|
|
422
|
+
return {
|
|
423
|
+
type: "cosmos-sdk/ConsensusStateWithHeight",
|
|
424
|
+
value: ConsensusStateWithHeight.toAmino(message)
|
|
425
|
+
};
|
|
426
|
+
},
|
|
427
|
+
fromProtoMsg(message: ConsensusStateWithHeightProtoMsg): ConsensusStateWithHeight {
|
|
428
|
+
return ConsensusStateWithHeight.decode(message.value);
|
|
429
|
+
},
|
|
430
|
+
toProto(message: ConsensusStateWithHeight): Uint8Array {
|
|
431
|
+
return ConsensusStateWithHeight.encode(message).finish();
|
|
432
|
+
},
|
|
433
|
+
toProtoMsg(message: ConsensusStateWithHeight): ConsensusStateWithHeightProtoMsg {
|
|
434
|
+
return {
|
|
435
|
+
typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight",
|
|
436
|
+
value: ConsensusStateWithHeight.encode(message).finish()
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
GlobalDecoderRegistry.register(ConsensusStateWithHeight.typeUrl, ConsensusStateWithHeight);
|
|
441
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ConsensusStateWithHeight.aminoType, ConsensusStateWithHeight.typeUrl);
|
|
442
|
+
function createBaseClientConsensusStates(): ClientConsensusStates {
|
|
443
|
+
return {
|
|
444
|
+
clientId: "",
|
|
445
|
+
consensusStates: []
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
export const ClientConsensusStates = {
|
|
449
|
+
typeUrl: "/ibc.core.client.v1.ClientConsensusStates",
|
|
450
|
+
aminoType: "cosmos-sdk/ClientConsensusStates",
|
|
451
|
+
is(o: any): o is ClientConsensusStates {
|
|
452
|
+
return o && (o.$typeUrl === ClientConsensusStates.typeUrl || typeof o.clientId === "string" && Array.isArray(o.consensusStates) && (!o.consensusStates.length || ConsensusStateWithHeight.is(o.consensusStates[0])));
|
|
453
|
+
},
|
|
454
|
+
isAmino(o: any): o is ClientConsensusStatesAmino {
|
|
455
|
+
return o && (o.$typeUrl === ClientConsensusStates.typeUrl || typeof o.client_id === "string" && Array.isArray(o.consensus_states) && (!o.consensus_states.length || ConsensusStateWithHeight.isAmino(o.consensus_states[0])));
|
|
456
|
+
},
|
|
457
|
+
encode(message: ClientConsensusStates, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
458
|
+
if (message.clientId !== "") {
|
|
459
|
+
writer.uint32(10).string(message.clientId);
|
|
460
|
+
}
|
|
461
|
+
for (const v of message.consensusStates) {
|
|
462
|
+
ConsensusStateWithHeight.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
463
|
+
}
|
|
464
|
+
return writer;
|
|
465
|
+
},
|
|
466
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ClientConsensusStates {
|
|
467
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
468
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
469
|
+
const message = createBaseClientConsensusStates();
|
|
470
|
+
while (reader.pos < end) {
|
|
471
|
+
const tag = reader.uint32();
|
|
472
|
+
switch (tag >>> 3) {
|
|
473
|
+
case 1:
|
|
474
|
+
message.clientId = reader.string();
|
|
475
|
+
break;
|
|
476
|
+
case 2:
|
|
477
|
+
message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32()));
|
|
478
|
+
break;
|
|
479
|
+
default:
|
|
480
|
+
reader.skipType(tag & 7);
|
|
481
|
+
break;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
return message;
|
|
485
|
+
},
|
|
486
|
+
fromPartial(object: DeepPartial<ClientConsensusStates>): ClientConsensusStates {
|
|
487
|
+
const message = createBaseClientConsensusStates();
|
|
488
|
+
message.clientId = object.clientId ?? "";
|
|
489
|
+
message.consensusStates = object.consensusStates?.map(e => ConsensusStateWithHeight.fromPartial(e)) || [];
|
|
490
|
+
return message;
|
|
491
|
+
},
|
|
492
|
+
fromAmino(object: ClientConsensusStatesAmino): ClientConsensusStates {
|
|
493
|
+
const message = createBaseClientConsensusStates();
|
|
494
|
+
if (object.client_id !== undefined && object.client_id !== null) {
|
|
495
|
+
message.clientId = object.client_id;
|
|
496
|
+
}
|
|
497
|
+
message.consensusStates = object.consensus_states?.map(e => ConsensusStateWithHeight.fromAmino(e)) || [];
|
|
498
|
+
return message;
|
|
499
|
+
},
|
|
500
|
+
toAmino(message: ClientConsensusStates): ClientConsensusStatesAmino {
|
|
501
|
+
const obj: any = {};
|
|
502
|
+
obj.client_id = message.clientId === "" ? undefined : message.clientId;
|
|
503
|
+
if (message.consensusStates) {
|
|
504
|
+
obj.consensus_states = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toAmino(e) : undefined);
|
|
505
|
+
} else {
|
|
506
|
+
obj.consensus_states = message.consensusStates;
|
|
507
|
+
}
|
|
508
|
+
return obj;
|
|
509
|
+
},
|
|
510
|
+
fromAminoMsg(object: ClientConsensusStatesAminoMsg): ClientConsensusStates {
|
|
511
|
+
return ClientConsensusStates.fromAmino(object.value);
|
|
512
|
+
},
|
|
513
|
+
toAminoMsg(message: ClientConsensusStates): ClientConsensusStatesAminoMsg {
|
|
514
|
+
return {
|
|
515
|
+
type: "cosmos-sdk/ClientConsensusStates",
|
|
516
|
+
value: ClientConsensusStates.toAmino(message)
|
|
517
|
+
};
|
|
518
|
+
},
|
|
519
|
+
fromProtoMsg(message: ClientConsensusStatesProtoMsg): ClientConsensusStates {
|
|
520
|
+
return ClientConsensusStates.decode(message.value);
|
|
521
|
+
},
|
|
522
|
+
toProto(message: ClientConsensusStates): Uint8Array {
|
|
523
|
+
return ClientConsensusStates.encode(message).finish();
|
|
524
|
+
},
|
|
525
|
+
toProtoMsg(message: ClientConsensusStates): ClientConsensusStatesProtoMsg {
|
|
526
|
+
return {
|
|
527
|
+
typeUrl: "/ibc.core.client.v1.ClientConsensusStates",
|
|
528
|
+
value: ClientConsensusStates.encode(message).finish()
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
GlobalDecoderRegistry.register(ClientConsensusStates.typeUrl, ClientConsensusStates);
|
|
533
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ClientConsensusStates.aminoType, ClientConsensusStates.typeUrl);
|
|
534
|
+
function createBaseHeight(): Height {
|
|
535
|
+
return {
|
|
536
|
+
revisionNumber: BigInt(0),
|
|
537
|
+
revisionHeight: BigInt(0)
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
export const Height = {
|
|
541
|
+
typeUrl: "/ibc.core.client.v1.Height",
|
|
542
|
+
aminoType: "cosmos-sdk/Height",
|
|
543
|
+
is(o: any): o is Height {
|
|
544
|
+
return o && (o.$typeUrl === Height.typeUrl || typeof o.revisionNumber === "bigint" && typeof o.revisionHeight === "bigint");
|
|
545
|
+
},
|
|
546
|
+
isAmino(o: any): o is HeightAmino {
|
|
547
|
+
return o && (o.$typeUrl === Height.typeUrl || typeof o.revision_number === "bigint" && typeof o.revision_height === "bigint");
|
|
548
|
+
},
|
|
549
|
+
encode(message: Height, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
550
|
+
if (message.revisionNumber !== BigInt(0)) {
|
|
551
|
+
writer.uint32(8).uint64(message.revisionNumber);
|
|
552
|
+
}
|
|
553
|
+
if (message.revisionHeight !== BigInt(0)) {
|
|
554
|
+
writer.uint32(16).uint64(message.revisionHeight);
|
|
555
|
+
}
|
|
556
|
+
return writer;
|
|
557
|
+
},
|
|
558
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Height {
|
|
559
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
560
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
561
|
+
const message = createBaseHeight();
|
|
562
|
+
while (reader.pos < end) {
|
|
563
|
+
const tag = reader.uint32();
|
|
564
|
+
switch (tag >>> 3) {
|
|
565
|
+
case 1:
|
|
566
|
+
message.revisionNumber = reader.uint64();
|
|
567
|
+
break;
|
|
568
|
+
case 2:
|
|
569
|
+
message.revisionHeight = reader.uint64();
|
|
570
|
+
break;
|
|
571
|
+
default:
|
|
572
|
+
reader.skipType(tag & 7);
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
return message;
|
|
577
|
+
},
|
|
578
|
+
fromPartial(object: DeepPartial<Height>): Height {
|
|
579
|
+
const message = createBaseHeight();
|
|
580
|
+
message.revisionNumber = object.revisionNumber !== undefined && object.revisionNumber !== null ? BigInt(object.revisionNumber.toString()) : BigInt(0);
|
|
581
|
+
message.revisionHeight = object.revisionHeight !== undefined && object.revisionHeight !== null ? BigInt(object.revisionHeight.toString()) : BigInt(0);
|
|
582
|
+
return message;
|
|
583
|
+
},
|
|
584
|
+
fromAmino(object: HeightAmino): Height {
|
|
585
|
+
return {
|
|
586
|
+
revisionNumber: BigInt(object.revision_number || "0"),
|
|
587
|
+
revisionHeight: BigInt(object.revision_height || "0")
|
|
588
|
+
};
|
|
589
|
+
},
|
|
590
|
+
toAmino(message: Height): HeightAmino {
|
|
591
|
+
const obj: any = {};
|
|
592
|
+
obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber?.toString() : undefined;
|
|
593
|
+
obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight?.toString() : undefined;
|
|
594
|
+
return obj;
|
|
595
|
+
},
|
|
596
|
+
fromAminoMsg(object: HeightAminoMsg): Height {
|
|
597
|
+
return Height.fromAmino(object.value);
|
|
598
|
+
},
|
|
599
|
+
toAminoMsg(message: Height): HeightAminoMsg {
|
|
600
|
+
return {
|
|
601
|
+
type: "cosmos-sdk/Height",
|
|
602
|
+
value: Height.toAmino(message)
|
|
603
|
+
};
|
|
604
|
+
},
|
|
605
|
+
fromProtoMsg(message: HeightProtoMsg): Height {
|
|
606
|
+
return Height.decode(message.value);
|
|
607
|
+
},
|
|
608
|
+
toProto(message: Height): Uint8Array {
|
|
609
|
+
return Height.encode(message).finish();
|
|
610
|
+
},
|
|
611
|
+
toProtoMsg(message: Height): HeightProtoMsg {
|
|
612
|
+
return {
|
|
613
|
+
typeUrl: "/ibc.core.client.v1.Height",
|
|
614
|
+
value: Height.encode(message).finish()
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
GlobalDecoderRegistry.register(Height.typeUrl, Height);
|
|
619
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Height.aminoType, Height.typeUrl);
|
|
620
|
+
function createBaseParams(): Params {
|
|
621
|
+
return {
|
|
622
|
+
allowedClients: []
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
export const Params = {
|
|
626
|
+
typeUrl: "/ibc.core.client.v1.Params",
|
|
627
|
+
aminoType: "cosmos-sdk/Params",
|
|
628
|
+
is(o: any): o is Params {
|
|
629
|
+
return o && (o.$typeUrl === Params.typeUrl || Array.isArray(o.allowedClients) && (!o.allowedClients.length || typeof o.allowedClients[0] === "string"));
|
|
630
|
+
},
|
|
631
|
+
isAmino(o: any): o is ParamsAmino {
|
|
632
|
+
return o && (o.$typeUrl === Params.typeUrl || Array.isArray(o.allowed_clients) && (!o.allowed_clients.length || typeof o.allowed_clients[0] === "string"));
|
|
633
|
+
},
|
|
634
|
+
encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
635
|
+
for (const v of message.allowedClients) {
|
|
636
|
+
writer.uint32(10).string(v!);
|
|
637
|
+
}
|
|
638
|
+
return writer;
|
|
639
|
+
},
|
|
640
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params {
|
|
641
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
642
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
643
|
+
const message = createBaseParams();
|
|
644
|
+
while (reader.pos < end) {
|
|
645
|
+
const tag = reader.uint32();
|
|
646
|
+
switch (tag >>> 3) {
|
|
647
|
+
case 1:
|
|
648
|
+
message.allowedClients.push(reader.string());
|
|
649
|
+
break;
|
|
650
|
+
default:
|
|
651
|
+
reader.skipType(tag & 7);
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
return message;
|
|
656
|
+
},
|
|
657
|
+
fromPartial(object: DeepPartial<Params>): Params {
|
|
658
|
+
const message = createBaseParams();
|
|
659
|
+
message.allowedClients = object.allowedClients?.map(e => e) || [];
|
|
660
|
+
return message;
|
|
661
|
+
},
|
|
662
|
+
fromAmino(object: ParamsAmino): Params {
|
|
663
|
+
const message = createBaseParams();
|
|
664
|
+
message.allowedClients = object.allowed_clients?.map(e => e) || [];
|
|
665
|
+
return message;
|
|
666
|
+
},
|
|
667
|
+
toAmino(message: Params): ParamsAmino {
|
|
668
|
+
const obj: any = {};
|
|
669
|
+
if (message.allowedClients) {
|
|
670
|
+
obj.allowed_clients = message.allowedClients.map(e => e);
|
|
671
|
+
} else {
|
|
672
|
+
obj.allowed_clients = message.allowedClients;
|
|
673
|
+
}
|
|
674
|
+
return obj;
|
|
675
|
+
},
|
|
676
|
+
fromAminoMsg(object: ParamsAminoMsg): Params {
|
|
677
|
+
return Params.fromAmino(object.value);
|
|
678
|
+
},
|
|
679
|
+
toAminoMsg(message: Params): ParamsAminoMsg {
|
|
680
|
+
return {
|
|
681
|
+
type: "cosmos-sdk/Params",
|
|
682
|
+
value: Params.toAmino(message)
|
|
683
|
+
};
|
|
684
|
+
},
|
|
685
|
+
fromProtoMsg(message: ParamsProtoMsg): Params {
|
|
686
|
+
return Params.decode(message.value);
|
|
687
|
+
},
|
|
688
|
+
toProto(message: Params): Uint8Array {
|
|
689
|
+
return Params.encode(message).finish();
|
|
690
|
+
},
|
|
691
|
+
toProtoMsg(message: Params): ParamsProtoMsg {
|
|
692
|
+
return {
|
|
693
|
+
typeUrl: "/ibc.core.client.v1.Params",
|
|
694
|
+
value: Params.encode(message).finish()
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
};
|
|
698
|
+
GlobalDecoderRegistry.register(Params.typeUrl, Params);
|
|
699
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
|
|
700
|
+
function createBaseClientUpdateProposal(): ClientUpdateProposal {
|
|
701
|
+
return {
|
|
702
|
+
title: "",
|
|
703
|
+
description: "",
|
|
704
|
+
subjectClientId: "",
|
|
705
|
+
substituteClientId: ""
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
export const ClientUpdateProposal = {
|
|
709
|
+
typeUrl: "/ibc.core.client.v1.ClientUpdateProposal",
|
|
710
|
+
aminoType: "cosmos-sdk/ClientUpdateProposal",
|
|
711
|
+
is(o: any): o is ClientUpdateProposal {
|
|
712
|
+
return o && (o.$typeUrl === ClientUpdateProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.subjectClientId === "string" && typeof o.substituteClientId === "string");
|
|
713
|
+
},
|
|
714
|
+
isAmino(o: any): o is ClientUpdateProposalAmino {
|
|
715
|
+
return o && (o.$typeUrl === ClientUpdateProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.subject_client_id === "string" && typeof o.substitute_client_id === "string");
|
|
716
|
+
},
|
|
717
|
+
encode(message: ClientUpdateProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
718
|
+
if (message.title !== "") {
|
|
719
|
+
writer.uint32(10).string(message.title);
|
|
720
|
+
}
|
|
721
|
+
if (message.description !== "") {
|
|
722
|
+
writer.uint32(18).string(message.description);
|
|
723
|
+
}
|
|
724
|
+
if (message.subjectClientId !== "") {
|
|
725
|
+
writer.uint32(26).string(message.subjectClientId);
|
|
726
|
+
}
|
|
727
|
+
if (message.substituteClientId !== "") {
|
|
728
|
+
writer.uint32(34).string(message.substituteClientId);
|
|
729
|
+
}
|
|
730
|
+
return writer;
|
|
731
|
+
},
|
|
732
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ClientUpdateProposal {
|
|
733
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
734
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
735
|
+
const message = createBaseClientUpdateProposal();
|
|
736
|
+
while (reader.pos < end) {
|
|
737
|
+
const tag = reader.uint32();
|
|
738
|
+
switch (tag >>> 3) {
|
|
739
|
+
case 1:
|
|
740
|
+
message.title = reader.string();
|
|
741
|
+
break;
|
|
742
|
+
case 2:
|
|
743
|
+
message.description = reader.string();
|
|
744
|
+
break;
|
|
745
|
+
case 3:
|
|
746
|
+
message.subjectClientId = reader.string();
|
|
747
|
+
break;
|
|
748
|
+
case 4:
|
|
749
|
+
message.substituteClientId = reader.string();
|
|
750
|
+
break;
|
|
751
|
+
default:
|
|
752
|
+
reader.skipType(tag & 7);
|
|
753
|
+
break;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
return message;
|
|
757
|
+
},
|
|
758
|
+
fromPartial(object: DeepPartial<ClientUpdateProposal>): ClientUpdateProposal {
|
|
759
|
+
const message = createBaseClientUpdateProposal();
|
|
760
|
+
message.title = object.title ?? "";
|
|
761
|
+
message.description = object.description ?? "";
|
|
762
|
+
message.subjectClientId = object.subjectClientId ?? "";
|
|
763
|
+
message.substituteClientId = object.substituteClientId ?? "";
|
|
764
|
+
return message;
|
|
765
|
+
},
|
|
766
|
+
fromAmino(object: ClientUpdateProposalAmino): ClientUpdateProposal {
|
|
767
|
+
const message = createBaseClientUpdateProposal();
|
|
768
|
+
if (object.title !== undefined && object.title !== null) {
|
|
769
|
+
message.title = object.title;
|
|
770
|
+
}
|
|
771
|
+
if (object.description !== undefined && object.description !== null) {
|
|
772
|
+
message.description = object.description;
|
|
773
|
+
}
|
|
774
|
+
if (object.subject_client_id !== undefined && object.subject_client_id !== null) {
|
|
775
|
+
message.subjectClientId = object.subject_client_id;
|
|
776
|
+
}
|
|
777
|
+
if (object.substitute_client_id !== undefined && object.substitute_client_id !== null) {
|
|
778
|
+
message.substituteClientId = object.substitute_client_id;
|
|
779
|
+
}
|
|
780
|
+
return message;
|
|
781
|
+
},
|
|
782
|
+
toAmino(message: ClientUpdateProposal): ClientUpdateProposalAmino {
|
|
783
|
+
const obj: any = {};
|
|
784
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
785
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
786
|
+
obj.subject_client_id = message.subjectClientId === "" ? undefined : message.subjectClientId;
|
|
787
|
+
obj.substitute_client_id = message.substituteClientId === "" ? undefined : message.substituteClientId;
|
|
788
|
+
return obj;
|
|
789
|
+
},
|
|
790
|
+
fromAminoMsg(object: ClientUpdateProposalAminoMsg): ClientUpdateProposal {
|
|
791
|
+
return ClientUpdateProposal.fromAmino(object.value);
|
|
792
|
+
},
|
|
793
|
+
toAminoMsg(message: ClientUpdateProposal): ClientUpdateProposalAminoMsg {
|
|
794
|
+
return {
|
|
795
|
+
type: "cosmos-sdk/ClientUpdateProposal",
|
|
796
|
+
value: ClientUpdateProposal.toAmino(message)
|
|
797
|
+
};
|
|
798
|
+
},
|
|
799
|
+
fromProtoMsg(message: ClientUpdateProposalProtoMsg): ClientUpdateProposal {
|
|
800
|
+
return ClientUpdateProposal.decode(message.value);
|
|
801
|
+
},
|
|
802
|
+
toProto(message: ClientUpdateProposal): Uint8Array {
|
|
803
|
+
return ClientUpdateProposal.encode(message).finish();
|
|
804
|
+
},
|
|
805
|
+
toProtoMsg(message: ClientUpdateProposal): ClientUpdateProposalProtoMsg {
|
|
806
|
+
return {
|
|
807
|
+
typeUrl: "/ibc.core.client.v1.ClientUpdateProposal",
|
|
808
|
+
value: ClientUpdateProposal.encode(message).finish()
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
GlobalDecoderRegistry.register(ClientUpdateProposal.typeUrl, ClientUpdateProposal);
|
|
813
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ClientUpdateProposal.aminoType, ClientUpdateProposal.typeUrl);
|
|
814
|
+
function createBaseUpgradeProposal(): UpgradeProposal {
|
|
815
|
+
return {
|
|
816
|
+
title: "",
|
|
817
|
+
description: "",
|
|
818
|
+
plan: Plan.fromPartial({}),
|
|
819
|
+
upgradedClientState: undefined
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
export const UpgradeProposal = {
|
|
823
|
+
typeUrl: "/ibc.core.client.v1.UpgradeProposal",
|
|
824
|
+
aminoType: "cosmos-sdk/UpgradeProposal",
|
|
825
|
+
is(o: any): o is UpgradeProposal {
|
|
826
|
+
return o && (o.$typeUrl === UpgradeProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Plan.is(o.plan));
|
|
827
|
+
},
|
|
828
|
+
isAmino(o: any): o is UpgradeProposalAmino {
|
|
829
|
+
return o && (o.$typeUrl === UpgradeProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Plan.isAmino(o.plan));
|
|
830
|
+
},
|
|
831
|
+
encode(message: UpgradeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
832
|
+
if (message.title !== "") {
|
|
833
|
+
writer.uint32(10).string(message.title);
|
|
834
|
+
}
|
|
835
|
+
if (message.description !== "") {
|
|
836
|
+
writer.uint32(18).string(message.description);
|
|
837
|
+
}
|
|
838
|
+
if (message.plan !== undefined) {
|
|
839
|
+
Plan.encode(message.plan, writer.uint32(26).fork()).ldelim();
|
|
840
|
+
}
|
|
841
|
+
if (message.upgradedClientState !== undefined) {
|
|
842
|
+
Any.encode(message.upgradedClientState, writer.uint32(34).fork()).ldelim();
|
|
843
|
+
}
|
|
844
|
+
return writer;
|
|
845
|
+
},
|
|
846
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UpgradeProposal {
|
|
847
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
848
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
849
|
+
const message = createBaseUpgradeProposal();
|
|
850
|
+
while (reader.pos < end) {
|
|
851
|
+
const tag = reader.uint32();
|
|
852
|
+
switch (tag >>> 3) {
|
|
853
|
+
case 1:
|
|
854
|
+
message.title = reader.string();
|
|
855
|
+
break;
|
|
856
|
+
case 2:
|
|
857
|
+
message.description = reader.string();
|
|
858
|
+
break;
|
|
859
|
+
case 3:
|
|
860
|
+
message.plan = Plan.decode(reader, reader.uint32());
|
|
861
|
+
break;
|
|
862
|
+
case 4:
|
|
863
|
+
message.upgradedClientState = Any.decode(reader, reader.uint32());
|
|
864
|
+
break;
|
|
865
|
+
default:
|
|
866
|
+
reader.skipType(tag & 7);
|
|
867
|
+
break;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
return message;
|
|
871
|
+
},
|
|
872
|
+
fromPartial(object: DeepPartial<UpgradeProposal>): UpgradeProposal {
|
|
873
|
+
const message = createBaseUpgradeProposal();
|
|
874
|
+
message.title = object.title ?? "";
|
|
875
|
+
message.description = object.description ?? "";
|
|
876
|
+
message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined;
|
|
877
|
+
message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined;
|
|
878
|
+
return message;
|
|
879
|
+
},
|
|
880
|
+
fromAmino(object: UpgradeProposalAmino): UpgradeProposal {
|
|
881
|
+
const message = createBaseUpgradeProposal();
|
|
882
|
+
if (object.title !== undefined && object.title !== null) {
|
|
883
|
+
message.title = object.title;
|
|
884
|
+
}
|
|
885
|
+
if (object.description !== undefined && object.description !== null) {
|
|
886
|
+
message.description = object.description;
|
|
887
|
+
}
|
|
888
|
+
if (object.plan !== undefined && object.plan !== null) {
|
|
889
|
+
message.plan = Plan.fromAmino(object.plan);
|
|
890
|
+
}
|
|
891
|
+
if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) {
|
|
892
|
+
message.upgradedClientState = Any.fromAmino(object.upgraded_client_state);
|
|
893
|
+
}
|
|
894
|
+
return message;
|
|
895
|
+
},
|
|
896
|
+
toAmino(message: UpgradeProposal): UpgradeProposalAmino {
|
|
897
|
+
const obj: any = {};
|
|
898
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
899
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
900
|
+
obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined;
|
|
901
|
+
obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined;
|
|
902
|
+
return obj;
|
|
903
|
+
},
|
|
904
|
+
fromAminoMsg(object: UpgradeProposalAminoMsg): UpgradeProposal {
|
|
905
|
+
return UpgradeProposal.fromAmino(object.value);
|
|
906
|
+
},
|
|
907
|
+
toAminoMsg(message: UpgradeProposal): UpgradeProposalAminoMsg {
|
|
908
|
+
return {
|
|
909
|
+
type: "cosmos-sdk/UpgradeProposal",
|
|
910
|
+
value: UpgradeProposal.toAmino(message)
|
|
911
|
+
};
|
|
912
|
+
},
|
|
913
|
+
fromProtoMsg(message: UpgradeProposalProtoMsg): UpgradeProposal {
|
|
914
|
+
return UpgradeProposal.decode(message.value);
|
|
915
|
+
},
|
|
916
|
+
toProto(message: UpgradeProposal): Uint8Array {
|
|
917
|
+
return UpgradeProposal.encode(message).finish();
|
|
918
|
+
},
|
|
919
|
+
toProtoMsg(message: UpgradeProposal): UpgradeProposalProtoMsg {
|
|
920
|
+
return {
|
|
921
|
+
typeUrl: "/ibc.core.client.v1.UpgradeProposal",
|
|
922
|
+
value: UpgradeProposal.encode(message).finish()
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
};
|
|
926
|
+
GlobalDecoderRegistry.register(UpgradeProposal.typeUrl, UpgradeProposal);
|
|
927
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(UpgradeProposal.aminoType, UpgradeProposal.typeUrl);
|