@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,191 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
|
+
/**
|
|
5
|
+
* Metadata defines a set of protocol specific data encoded into the ICS27 channel version bytestring
|
|
6
|
+
* See ICS004: https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#Versioning
|
|
7
|
+
*/
|
|
8
|
+
export interface Metadata {
|
|
9
|
+
/** version defines the ICS27 protocol version */
|
|
10
|
+
version: string;
|
|
11
|
+
/** controller_connection_id is the connection identifier associated with the controller chain */
|
|
12
|
+
controllerConnectionId: string;
|
|
13
|
+
/** host_connection_id is the connection identifier associated with the host chain */
|
|
14
|
+
hostConnectionId: string;
|
|
15
|
+
/**
|
|
16
|
+
* address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step
|
|
17
|
+
* NOTE: the address field is empty on the OnChanOpenInit handshake step
|
|
18
|
+
*/
|
|
19
|
+
address: string;
|
|
20
|
+
/** encoding defines the supported codec format */
|
|
21
|
+
encoding: string;
|
|
22
|
+
/** tx_type defines the type of transactions the interchain account can execute */
|
|
23
|
+
txType: string;
|
|
24
|
+
}
|
|
25
|
+
export interface MetadataProtoMsg {
|
|
26
|
+
typeUrl: "/ibc.applications.interchain_accounts.v1.Metadata";
|
|
27
|
+
value: Uint8Array;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Metadata defines a set of protocol specific data encoded into the ICS27 channel version bytestring
|
|
31
|
+
* See ICS004: https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#Versioning
|
|
32
|
+
*/
|
|
33
|
+
export interface MetadataAmino {
|
|
34
|
+
/** version defines the ICS27 protocol version */
|
|
35
|
+
version: string;
|
|
36
|
+
/** controller_connection_id is the connection identifier associated with the controller chain */
|
|
37
|
+
controller_connection_id: string;
|
|
38
|
+
/** host_connection_id is the connection identifier associated with the host chain */
|
|
39
|
+
host_connection_id: string;
|
|
40
|
+
/**
|
|
41
|
+
* address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step
|
|
42
|
+
* NOTE: the address field is empty on the OnChanOpenInit handshake step
|
|
43
|
+
*/
|
|
44
|
+
address: string;
|
|
45
|
+
/** encoding defines the supported codec format */
|
|
46
|
+
encoding: string;
|
|
47
|
+
/** tx_type defines the type of transactions the interchain account can execute */
|
|
48
|
+
tx_type: string;
|
|
49
|
+
}
|
|
50
|
+
export interface MetadataAminoMsg {
|
|
51
|
+
type: "cosmos-sdk/Metadata";
|
|
52
|
+
value: MetadataAmino;
|
|
53
|
+
}
|
|
54
|
+
function createBaseMetadata(): Metadata {
|
|
55
|
+
return {
|
|
56
|
+
version: "",
|
|
57
|
+
controllerConnectionId: "",
|
|
58
|
+
hostConnectionId: "",
|
|
59
|
+
address: "",
|
|
60
|
+
encoding: "",
|
|
61
|
+
txType: ""
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export const Metadata = {
|
|
65
|
+
typeUrl: "/ibc.applications.interchain_accounts.v1.Metadata",
|
|
66
|
+
aminoType: "cosmos-sdk/Metadata",
|
|
67
|
+
is(o: any): o is Metadata {
|
|
68
|
+
return o && (o.$typeUrl === Metadata.typeUrl || typeof o.version === "string" && typeof o.controllerConnectionId === "string" && typeof o.hostConnectionId === "string" && typeof o.address === "string" && typeof o.encoding === "string" && typeof o.txType === "string");
|
|
69
|
+
},
|
|
70
|
+
isAmino(o: any): o is MetadataAmino {
|
|
71
|
+
return o && (o.$typeUrl === Metadata.typeUrl || typeof o.version === "string" && typeof o.controller_connection_id === "string" && typeof o.host_connection_id === "string" && typeof o.address === "string" && typeof o.encoding === "string" && typeof o.tx_type === "string");
|
|
72
|
+
},
|
|
73
|
+
encode(message: Metadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
74
|
+
if (message.version !== "") {
|
|
75
|
+
writer.uint32(10).string(message.version);
|
|
76
|
+
}
|
|
77
|
+
if (message.controllerConnectionId !== "") {
|
|
78
|
+
writer.uint32(18).string(message.controllerConnectionId);
|
|
79
|
+
}
|
|
80
|
+
if (message.hostConnectionId !== "") {
|
|
81
|
+
writer.uint32(26).string(message.hostConnectionId);
|
|
82
|
+
}
|
|
83
|
+
if (message.address !== "") {
|
|
84
|
+
writer.uint32(34).string(message.address);
|
|
85
|
+
}
|
|
86
|
+
if (message.encoding !== "") {
|
|
87
|
+
writer.uint32(42).string(message.encoding);
|
|
88
|
+
}
|
|
89
|
+
if (message.txType !== "") {
|
|
90
|
+
writer.uint32(50).string(message.txType);
|
|
91
|
+
}
|
|
92
|
+
return writer;
|
|
93
|
+
},
|
|
94
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Metadata {
|
|
95
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
96
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
+
const message = createBaseMetadata();
|
|
98
|
+
while (reader.pos < end) {
|
|
99
|
+
const tag = reader.uint32();
|
|
100
|
+
switch (tag >>> 3) {
|
|
101
|
+
case 1:
|
|
102
|
+
message.version = reader.string();
|
|
103
|
+
break;
|
|
104
|
+
case 2:
|
|
105
|
+
message.controllerConnectionId = reader.string();
|
|
106
|
+
break;
|
|
107
|
+
case 3:
|
|
108
|
+
message.hostConnectionId = reader.string();
|
|
109
|
+
break;
|
|
110
|
+
case 4:
|
|
111
|
+
message.address = reader.string();
|
|
112
|
+
break;
|
|
113
|
+
case 5:
|
|
114
|
+
message.encoding = reader.string();
|
|
115
|
+
break;
|
|
116
|
+
case 6:
|
|
117
|
+
message.txType = reader.string();
|
|
118
|
+
break;
|
|
119
|
+
default:
|
|
120
|
+
reader.skipType(tag & 7);
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return message;
|
|
125
|
+
},
|
|
126
|
+
fromPartial(object: DeepPartial<Metadata>): Metadata {
|
|
127
|
+
const message = createBaseMetadata();
|
|
128
|
+
message.version = object.version ?? "";
|
|
129
|
+
message.controllerConnectionId = object.controllerConnectionId ?? "";
|
|
130
|
+
message.hostConnectionId = object.hostConnectionId ?? "";
|
|
131
|
+
message.address = object.address ?? "";
|
|
132
|
+
message.encoding = object.encoding ?? "";
|
|
133
|
+
message.txType = object.txType ?? "";
|
|
134
|
+
return message;
|
|
135
|
+
},
|
|
136
|
+
fromAmino(object: MetadataAmino): Metadata {
|
|
137
|
+
const message = createBaseMetadata();
|
|
138
|
+
if (object.version !== undefined && object.version !== null) {
|
|
139
|
+
message.version = object.version;
|
|
140
|
+
}
|
|
141
|
+
if (object.controller_connection_id !== undefined && object.controller_connection_id !== null) {
|
|
142
|
+
message.controllerConnectionId = object.controller_connection_id;
|
|
143
|
+
}
|
|
144
|
+
if (object.host_connection_id !== undefined && object.host_connection_id !== null) {
|
|
145
|
+
message.hostConnectionId = object.host_connection_id;
|
|
146
|
+
}
|
|
147
|
+
if (object.address !== undefined && object.address !== null) {
|
|
148
|
+
message.address = object.address;
|
|
149
|
+
}
|
|
150
|
+
if (object.encoding !== undefined && object.encoding !== null) {
|
|
151
|
+
message.encoding = object.encoding;
|
|
152
|
+
}
|
|
153
|
+
if (object.tx_type !== undefined && object.tx_type !== null) {
|
|
154
|
+
message.txType = object.tx_type;
|
|
155
|
+
}
|
|
156
|
+
return message;
|
|
157
|
+
},
|
|
158
|
+
toAmino(message: Metadata): MetadataAmino {
|
|
159
|
+
const obj: any = {};
|
|
160
|
+
obj.version = message.version === "" ? undefined : message.version;
|
|
161
|
+
obj.controller_connection_id = message.controllerConnectionId === "" ? undefined : message.controllerConnectionId;
|
|
162
|
+
obj.host_connection_id = message.hostConnectionId === "" ? undefined : message.hostConnectionId;
|
|
163
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
164
|
+
obj.encoding = message.encoding === "" ? undefined : message.encoding;
|
|
165
|
+
obj.tx_type = message.txType === "" ? undefined : message.txType;
|
|
166
|
+
return obj;
|
|
167
|
+
},
|
|
168
|
+
fromAminoMsg(object: MetadataAminoMsg): Metadata {
|
|
169
|
+
return Metadata.fromAmino(object.value);
|
|
170
|
+
},
|
|
171
|
+
toAminoMsg(message: Metadata): MetadataAminoMsg {
|
|
172
|
+
return {
|
|
173
|
+
type: "cosmos-sdk/Metadata",
|
|
174
|
+
value: Metadata.toAmino(message)
|
|
175
|
+
};
|
|
176
|
+
},
|
|
177
|
+
fromProtoMsg(message: MetadataProtoMsg): Metadata {
|
|
178
|
+
return Metadata.decode(message.value);
|
|
179
|
+
},
|
|
180
|
+
toProto(message: Metadata): Uint8Array {
|
|
181
|
+
return Metadata.encode(message).finish();
|
|
182
|
+
},
|
|
183
|
+
toProtoMsg(message: Metadata): MetadataProtoMsg {
|
|
184
|
+
return {
|
|
185
|
+
typeUrl: "/ibc.applications.interchain_accounts.v1.Metadata",
|
|
186
|
+
value: Metadata.encode(message).finish()
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
GlobalDecoderRegistry.register(Metadata.typeUrl, Metadata);
|
|
191
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Metadata.aminoType, Metadata.typeUrl);
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { Any, AnyAmino } from "../../../../google/protobuf/any";
|
|
2
|
+
import { isSet, DeepPartial, bytesFromBase64, base64FromBytes } from "../../../../helpers";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
5
|
+
/**
|
|
6
|
+
* Type defines a classification of message issued from a controller chain to its associated interchain accounts
|
|
7
|
+
* host
|
|
8
|
+
*/
|
|
9
|
+
export enum Type {
|
|
10
|
+
/** TYPE_UNSPECIFIED - Default zero value enumeration */
|
|
11
|
+
TYPE_UNSPECIFIED = 0,
|
|
12
|
+
/** TYPE_EXECUTE_TX - Execute a transaction on an interchain accounts host chain */
|
|
13
|
+
TYPE_EXECUTE_TX = 1,
|
|
14
|
+
UNRECOGNIZED = -1,
|
|
15
|
+
}
|
|
16
|
+
export const TypeAmino = Type;
|
|
17
|
+
export function typeFromJSON(object: any): Type {
|
|
18
|
+
switch (object) {
|
|
19
|
+
case 0:
|
|
20
|
+
case "TYPE_UNSPECIFIED":
|
|
21
|
+
return Type.TYPE_UNSPECIFIED;
|
|
22
|
+
case 1:
|
|
23
|
+
case "TYPE_EXECUTE_TX":
|
|
24
|
+
return Type.TYPE_EXECUTE_TX;
|
|
25
|
+
case -1:
|
|
26
|
+
case "UNRECOGNIZED":
|
|
27
|
+
default:
|
|
28
|
+
return Type.UNRECOGNIZED;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export function typeToJSON(object: Type): string {
|
|
32
|
+
switch (object) {
|
|
33
|
+
case Type.TYPE_UNSPECIFIED:
|
|
34
|
+
return "TYPE_UNSPECIFIED";
|
|
35
|
+
case Type.TYPE_EXECUTE_TX:
|
|
36
|
+
return "TYPE_EXECUTE_TX";
|
|
37
|
+
case Type.UNRECOGNIZED:
|
|
38
|
+
default:
|
|
39
|
+
return "UNRECOGNIZED";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/** InterchainAccountPacketData is comprised of a raw transaction, type of transaction and optional memo field. */
|
|
43
|
+
export interface InterchainAccountPacketData {
|
|
44
|
+
type: Type;
|
|
45
|
+
data: Uint8Array;
|
|
46
|
+
memo: string;
|
|
47
|
+
}
|
|
48
|
+
export interface InterchainAccountPacketDataProtoMsg {
|
|
49
|
+
typeUrl: "/ibc.applications.interchain_accounts.v1.InterchainAccountPacketData";
|
|
50
|
+
value: Uint8Array;
|
|
51
|
+
}
|
|
52
|
+
/** InterchainAccountPacketData is comprised of a raw transaction, type of transaction and optional memo field. */
|
|
53
|
+
export interface InterchainAccountPacketDataAmino {
|
|
54
|
+
type: Type;
|
|
55
|
+
data: string;
|
|
56
|
+
memo: string;
|
|
57
|
+
}
|
|
58
|
+
export interface InterchainAccountPacketDataAminoMsg {
|
|
59
|
+
type: "cosmos-sdk/InterchainAccountPacketData";
|
|
60
|
+
value: InterchainAccountPacketDataAmino;
|
|
61
|
+
}
|
|
62
|
+
/** CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions to an SDK host chain. */
|
|
63
|
+
export interface CosmosTx {
|
|
64
|
+
messages: Any[];
|
|
65
|
+
}
|
|
66
|
+
export interface CosmosTxProtoMsg {
|
|
67
|
+
typeUrl: "/ibc.applications.interchain_accounts.v1.CosmosTx";
|
|
68
|
+
value: Uint8Array;
|
|
69
|
+
}
|
|
70
|
+
/** CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions to an SDK host chain. */
|
|
71
|
+
export interface CosmosTxAmino {
|
|
72
|
+
messages: AnyAmino[];
|
|
73
|
+
}
|
|
74
|
+
export interface CosmosTxAminoMsg {
|
|
75
|
+
type: "cosmos-sdk/CosmosTx";
|
|
76
|
+
value: CosmosTxAmino;
|
|
77
|
+
}
|
|
78
|
+
function createBaseInterchainAccountPacketData(): InterchainAccountPacketData {
|
|
79
|
+
return {
|
|
80
|
+
type: 0,
|
|
81
|
+
data: new Uint8Array(),
|
|
82
|
+
memo: ""
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export const InterchainAccountPacketData = {
|
|
86
|
+
typeUrl: "/ibc.applications.interchain_accounts.v1.InterchainAccountPacketData",
|
|
87
|
+
aminoType: "cosmos-sdk/InterchainAccountPacketData",
|
|
88
|
+
is(o: any): o is InterchainAccountPacketData {
|
|
89
|
+
return o && (o.$typeUrl === InterchainAccountPacketData.typeUrl || isSet(o.type) && (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.memo === "string");
|
|
90
|
+
},
|
|
91
|
+
isAmino(o: any): o is InterchainAccountPacketDataAmino {
|
|
92
|
+
return o && (o.$typeUrl === InterchainAccountPacketData.typeUrl || isSet(o.type) && (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.memo === "string");
|
|
93
|
+
},
|
|
94
|
+
encode(message: InterchainAccountPacketData, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
95
|
+
if (message.type !== 0) {
|
|
96
|
+
writer.uint32(8).int32(message.type);
|
|
97
|
+
}
|
|
98
|
+
if (message.data.length !== 0) {
|
|
99
|
+
writer.uint32(18).bytes(message.data);
|
|
100
|
+
}
|
|
101
|
+
if (message.memo !== "") {
|
|
102
|
+
writer.uint32(26).string(message.memo);
|
|
103
|
+
}
|
|
104
|
+
return writer;
|
|
105
|
+
},
|
|
106
|
+
decode(input: BinaryReader | Uint8Array, length?: number): InterchainAccountPacketData {
|
|
107
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
108
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
109
|
+
const message = createBaseInterchainAccountPacketData();
|
|
110
|
+
while (reader.pos < end) {
|
|
111
|
+
const tag = reader.uint32();
|
|
112
|
+
switch (tag >>> 3) {
|
|
113
|
+
case 1:
|
|
114
|
+
message.type = reader.int32() as any;
|
|
115
|
+
break;
|
|
116
|
+
case 2:
|
|
117
|
+
message.data = reader.bytes();
|
|
118
|
+
break;
|
|
119
|
+
case 3:
|
|
120
|
+
message.memo = reader.string();
|
|
121
|
+
break;
|
|
122
|
+
default:
|
|
123
|
+
reader.skipType(tag & 7);
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return message;
|
|
128
|
+
},
|
|
129
|
+
fromPartial(object: DeepPartial<InterchainAccountPacketData>): InterchainAccountPacketData {
|
|
130
|
+
const message = createBaseInterchainAccountPacketData();
|
|
131
|
+
message.type = object.type ?? 0;
|
|
132
|
+
message.data = object.data ?? new Uint8Array();
|
|
133
|
+
message.memo = object.memo ?? "";
|
|
134
|
+
return message;
|
|
135
|
+
},
|
|
136
|
+
fromAmino(object: InterchainAccountPacketDataAmino): InterchainAccountPacketData {
|
|
137
|
+
const message = createBaseInterchainAccountPacketData();
|
|
138
|
+
if (object.type !== undefined && object.type !== null) {
|
|
139
|
+
message.type = object.type;
|
|
140
|
+
}
|
|
141
|
+
if (object.data !== undefined && object.data !== null) {
|
|
142
|
+
message.data = bytesFromBase64(object.data);
|
|
143
|
+
}
|
|
144
|
+
if (object.memo !== undefined && object.memo !== null) {
|
|
145
|
+
message.memo = object.memo;
|
|
146
|
+
}
|
|
147
|
+
return message;
|
|
148
|
+
},
|
|
149
|
+
toAmino(message: InterchainAccountPacketData): InterchainAccountPacketDataAmino {
|
|
150
|
+
const obj: any = {};
|
|
151
|
+
obj.type = message.type === 0 ? undefined : message.type;
|
|
152
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
153
|
+
obj.memo = message.memo === "" ? undefined : message.memo;
|
|
154
|
+
return obj;
|
|
155
|
+
},
|
|
156
|
+
fromAminoMsg(object: InterchainAccountPacketDataAminoMsg): InterchainAccountPacketData {
|
|
157
|
+
return InterchainAccountPacketData.fromAmino(object.value);
|
|
158
|
+
},
|
|
159
|
+
toAminoMsg(message: InterchainAccountPacketData): InterchainAccountPacketDataAminoMsg {
|
|
160
|
+
return {
|
|
161
|
+
type: "cosmos-sdk/InterchainAccountPacketData",
|
|
162
|
+
value: InterchainAccountPacketData.toAmino(message)
|
|
163
|
+
};
|
|
164
|
+
},
|
|
165
|
+
fromProtoMsg(message: InterchainAccountPacketDataProtoMsg): InterchainAccountPacketData {
|
|
166
|
+
return InterchainAccountPacketData.decode(message.value);
|
|
167
|
+
},
|
|
168
|
+
toProto(message: InterchainAccountPacketData): Uint8Array {
|
|
169
|
+
return InterchainAccountPacketData.encode(message).finish();
|
|
170
|
+
},
|
|
171
|
+
toProtoMsg(message: InterchainAccountPacketData): InterchainAccountPacketDataProtoMsg {
|
|
172
|
+
return {
|
|
173
|
+
typeUrl: "/ibc.applications.interchain_accounts.v1.InterchainAccountPacketData",
|
|
174
|
+
value: InterchainAccountPacketData.encode(message).finish()
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
GlobalDecoderRegistry.register(InterchainAccountPacketData.typeUrl, InterchainAccountPacketData);
|
|
179
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(InterchainAccountPacketData.aminoType, InterchainAccountPacketData.typeUrl);
|
|
180
|
+
function createBaseCosmosTx(): CosmosTx {
|
|
181
|
+
return {
|
|
182
|
+
messages: []
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
export const CosmosTx = {
|
|
186
|
+
typeUrl: "/ibc.applications.interchain_accounts.v1.CosmosTx",
|
|
187
|
+
aminoType: "cosmos-sdk/CosmosTx",
|
|
188
|
+
is(o: any): o is CosmosTx {
|
|
189
|
+
return o && (o.$typeUrl === CosmosTx.typeUrl || Array.isArray(o.messages) && (!o.messages.length || Any.is(o.messages[0])));
|
|
190
|
+
},
|
|
191
|
+
isAmino(o: any): o is CosmosTxAmino {
|
|
192
|
+
return o && (o.$typeUrl === CosmosTx.typeUrl || Array.isArray(o.messages) && (!o.messages.length || Any.isAmino(o.messages[0])));
|
|
193
|
+
},
|
|
194
|
+
encode(message: CosmosTx, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
195
|
+
for (const v of message.messages) {
|
|
196
|
+
Any.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
197
|
+
}
|
|
198
|
+
return writer;
|
|
199
|
+
},
|
|
200
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CosmosTx {
|
|
201
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
202
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
203
|
+
const message = createBaseCosmosTx();
|
|
204
|
+
while (reader.pos < end) {
|
|
205
|
+
const tag = reader.uint32();
|
|
206
|
+
switch (tag >>> 3) {
|
|
207
|
+
case 1:
|
|
208
|
+
message.messages.push(Any.decode(reader, reader.uint32()));
|
|
209
|
+
break;
|
|
210
|
+
default:
|
|
211
|
+
reader.skipType(tag & 7);
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return message;
|
|
216
|
+
},
|
|
217
|
+
fromPartial(object: DeepPartial<CosmosTx>): CosmosTx {
|
|
218
|
+
const message = createBaseCosmosTx();
|
|
219
|
+
message.messages = object.messages?.map(e => Any.fromPartial(e)) || [];
|
|
220
|
+
return message;
|
|
221
|
+
},
|
|
222
|
+
fromAmino(object: CosmosTxAmino): CosmosTx {
|
|
223
|
+
const message = createBaseCosmosTx();
|
|
224
|
+
message.messages = object.messages?.map(e => Any.fromAmino(e)) || [];
|
|
225
|
+
return message;
|
|
226
|
+
},
|
|
227
|
+
toAmino(message: CosmosTx): CosmosTxAmino {
|
|
228
|
+
const obj: any = {};
|
|
229
|
+
if (message.messages) {
|
|
230
|
+
obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined);
|
|
231
|
+
} else {
|
|
232
|
+
obj.messages = message.messages;
|
|
233
|
+
}
|
|
234
|
+
return obj;
|
|
235
|
+
},
|
|
236
|
+
fromAminoMsg(object: CosmosTxAminoMsg): CosmosTx {
|
|
237
|
+
return CosmosTx.fromAmino(object.value);
|
|
238
|
+
},
|
|
239
|
+
toAminoMsg(message: CosmosTx): CosmosTxAminoMsg {
|
|
240
|
+
return {
|
|
241
|
+
type: "cosmos-sdk/CosmosTx",
|
|
242
|
+
value: CosmosTx.toAmino(message)
|
|
243
|
+
};
|
|
244
|
+
},
|
|
245
|
+
fromProtoMsg(message: CosmosTxProtoMsg): CosmosTx {
|
|
246
|
+
return CosmosTx.decode(message.value);
|
|
247
|
+
},
|
|
248
|
+
toProto(message: CosmosTx): Uint8Array {
|
|
249
|
+
return CosmosTx.encode(message).finish();
|
|
250
|
+
},
|
|
251
|
+
toProtoMsg(message: CosmosTx): CosmosTxProtoMsg {
|
|
252
|
+
return {
|
|
253
|
+
typeUrl: "/ibc.applications.interchain_accounts.v1.CosmosTx",
|
|
254
|
+
value: CosmosTx.encode(message).finish()
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
GlobalDecoderRegistry.register(CosmosTx.typeUrl, CosmosTx);
|
|
259
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(CosmosTx.aminoType, CosmosTx.typeUrl);
|