@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,105 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../../../registry";
|
|
4
|
+
/**
|
|
5
|
+
* Params defines the set of on-chain interchain accounts parameters.
|
|
6
|
+
* The following parameters may be used to disable the controller submodule.
|
|
7
|
+
*/
|
|
8
|
+
export interface Params {
|
|
9
|
+
/** controller_enabled enables or disables the controller submodule. */
|
|
10
|
+
controllerEnabled: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface ParamsProtoMsg {
|
|
13
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.Params";
|
|
14
|
+
value: Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Params defines the set of on-chain interchain accounts parameters.
|
|
18
|
+
* The following parameters may be used to disable the controller submodule.
|
|
19
|
+
*/
|
|
20
|
+
export interface ParamsAmino {
|
|
21
|
+
/** controller_enabled enables or disables the controller submodule. */
|
|
22
|
+
controller_enabled: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface ParamsAminoMsg {
|
|
25
|
+
type: "cosmos-sdk/Params";
|
|
26
|
+
value: ParamsAmino;
|
|
27
|
+
}
|
|
28
|
+
function createBaseParams(): Params {
|
|
29
|
+
return {
|
|
30
|
+
controllerEnabled: false
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export const Params = {
|
|
34
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.Params",
|
|
35
|
+
aminoType: "cosmos-sdk/Params",
|
|
36
|
+
is(o: any): o is Params {
|
|
37
|
+
return o && (o.$typeUrl === Params.typeUrl || typeof o.controllerEnabled === "boolean");
|
|
38
|
+
},
|
|
39
|
+
isAmino(o: any): o is ParamsAmino {
|
|
40
|
+
return o && (o.$typeUrl === Params.typeUrl || typeof o.controller_enabled === "boolean");
|
|
41
|
+
},
|
|
42
|
+
encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
43
|
+
if (message.controllerEnabled === true) {
|
|
44
|
+
writer.uint32(8).bool(message.controllerEnabled);
|
|
45
|
+
}
|
|
46
|
+
return writer;
|
|
47
|
+
},
|
|
48
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params {
|
|
49
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
51
|
+
const message = createBaseParams();
|
|
52
|
+
while (reader.pos < end) {
|
|
53
|
+
const tag = reader.uint32();
|
|
54
|
+
switch (tag >>> 3) {
|
|
55
|
+
case 1:
|
|
56
|
+
message.controllerEnabled = reader.bool();
|
|
57
|
+
break;
|
|
58
|
+
default:
|
|
59
|
+
reader.skipType(tag & 7);
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
fromPartial(object: DeepPartial<Params>): Params {
|
|
66
|
+
const message = createBaseParams();
|
|
67
|
+
message.controllerEnabled = object.controllerEnabled ?? false;
|
|
68
|
+
return message;
|
|
69
|
+
},
|
|
70
|
+
fromAmino(object: ParamsAmino): Params {
|
|
71
|
+
const message = createBaseParams();
|
|
72
|
+
if (object.controller_enabled !== undefined && object.controller_enabled !== null) {
|
|
73
|
+
message.controllerEnabled = object.controller_enabled;
|
|
74
|
+
}
|
|
75
|
+
return message;
|
|
76
|
+
},
|
|
77
|
+
toAmino(message: Params): ParamsAmino {
|
|
78
|
+
const obj: any = {};
|
|
79
|
+
obj.controller_enabled = message.controllerEnabled === false ? undefined : message.controllerEnabled;
|
|
80
|
+
return obj;
|
|
81
|
+
},
|
|
82
|
+
fromAminoMsg(object: ParamsAminoMsg): Params {
|
|
83
|
+
return Params.fromAmino(object.value);
|
|
84
|
+
},
|
|
85
|
+
toAminoMsg(message: Params): ParamsAminoMsg {
|
|
86
|
+
return {
|
|
87
|
+
type: "cosmos-sdk/Params",
|
|
88
|
+
value: Params.toAmino(message)
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
fromProtoMsg(message: ParamsProtoMsg): Params {
|
|
92
|
+
return Params.decode(message.value);
|
|
93
|
+
},
|
|
94
|
+
toProto(message: Params): Uint8Array {
|
|
95
|
+
return Params.encode(message).finish();
|
|
96
|
+
},
|
|
97
|
+
toProtoMsg(message: Params): ParamsProtoMsg {
|
|
98
|
+
return {
|
|
99
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.Params",
|
|
100
|
+
value: Params.encode(message).finish()
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
GlobalDecoderRegistry.register(Params.typeUrl, Params);
|
|
105
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RpcResolver, buildQuery } from "../../../../../helper-func-types";
|
|
2
|
+
import { buildUseQuery } from "../../../../../react-query";
|
|
3
|
+
import { QueryInterchainAccountRequest, QueryInterchainAccountResponse, QueryParamsRequest, QueryParamsResponse } from "./query";
|
|
4
|
+
export const createGetInterchainAccount = (clientResolver?: RpcResolver) => buildQuery<QueryInterchainAccountRequest, QueryInterchainAccountResponse>({
|
|
5
|
+
encode: QueryInterchainAccountRequest.encode,
|
|
6
|
+
decode: QueryInterchainAccountResponse.decode,
|
|
7
|
+
service: "ibc.applications.interchain_accounts.controller.v1.Query",
|
|
8
|
+
method: "InterchainAccount",
|
|
9
|
+
clientResolver
|
|
10
|
+
});
|
|
11
|
+
export const useGetInterchainAccount = buildUseQuery<QueryInterchainAccountRequest, QueryInterchainAccountResponse>({
|
|
12
|
+
builderQueryFn: createGetInterchainAccount,
|
|
13
|
+
queryKeyPrefix: "InterchainAccountQuery"
|
|
14
|
+
});
|
|
15
|
+
export const createGetParams = (clientResolver?: RpcResolver) => buildQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
16
|
+
encode: QueryParamsRequest.encode,
|
|
17
|
+
decode: QueryParamsResponse.decode,
|
|
18
|
+
service: "ibc.applications.interchain_accounts.controller.v1.Query",
|
|
19
|
+
method: "Params",
|
|
20
|
+
clientResolver
|
|
21
|
+
});
|
|
22
|
+
export const useGetParams = buildUseQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
23
|
+
builderQueryFn: createGetParams,
|
|
24
|
+
queryKeyPrefix: "ParamsQuery"
|
|
25
|
+
});
|
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import { Params, ParamsAmino } from "./controller";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../../../registry";
|
|
5
|
+
/** QueryInterchainAccountRequest is the request type for the Query/InterchainAccount RPC method. */
|
|
6
|
+
export interface QueryInterchainAccountRequest {
|
|
7
|
+
owner: string;
|
|
8
|
+
connectionId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface QueryInterchainAccountRequestProtoMsg {
|
|
11
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest";
|
|
12
|
+
value: Uint8Array;
|
|
13
|
+
}
|
|
14
|
+
/** QueryInterchainAccountRequest is the request type for the Query/InterchainAccount RPC method. */
|
|
15
|
+
export interface QueryInterchainAccountRequestAmino {
|
|
16
|
+
owner: string;
|
|
17
|
+
connection_id: string;
|
|
18
|
+
}
|
|
19
|
+
export interface QueryInterchainAccountRequestAminoMsg {
|
|
20
|
+
type: "cosmos-sdk/QueryInterchainAccountRequest";
|
|
21
|
+
value: QueryInterchainAccountRequestAmino;
|
|
22
|
+
}
|
|
23
|
+
/** QueryInterchainAccountResponse the response type for the Query/InterchainAccount RPC method. */
|
|
24
|
+
export interface QueryInterchainAccountResponse {
|
|
25
|
+
address: string;
|
|
26
|
+
}
|
|
27
|
+
export interface QueryInterchainAccountResponseProtoMsg {
|
|
28
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse";
|
|
29
|
+
value: Uint8Array;
|
|
30
|
+
}
|
|
31
|
+
/** QueryInterchainAccountResponse the response type for the Query/InterchainAccount RPC method. */
|
|
32
|
+
export interface QueryInterchainAccountResponseAmino {
|
|
33
|
+
address: string;
|
|
34
|
+
}
|
|
35
|
+
export interface QueryInterchainAccountResponseAminoMsg {
|
|
36
|
+
type: "cosmos-sdk/QueryInterchainAccountResponse";
|
|
37
|
+
value: QueryInterchainAccountResponseAmino;
|
|
38
|
+
}
|
|
39
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
40
|
+
export interface QueryParamsRequest {}
|
|
41
|
+
export interface QueryParamsRequestProtoMsg {
|
|
42
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest";
|
|
43
|
+
value: Uint8Array;
|
|
44
|
+
}
|
|
45
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
46
|
+
export interface QueryParamsRequestAmino {}
|
|
47
|
+
export interface QueryParamsRequestAminoMsg {
|
|
48
|
+
type: "cosmos-sdk/QueryParamsRequest";
|
|
49
|
+
value: QueryParamsRequestAmino;
|
|
50
|
+
}
|
|
51
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
52
|
+
export interface QueryParamsResponse {
|
|
53
|
+
/** params defines the parameters of the module. */
|
|
54
|
+
params?: Params;
|
|
55
|
+
}
|
|
56
|
+
export interface QueryParamsResponseProtoMsg {
|
|
57
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse";
|
|
58
|
+
value: Uint8Array;
|
|
59
|
+
}
|
|
60
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
61
|
+
export interface QueryParamsResponseAmino {
|
|
62
|
+
/** params defines the parameters of the module. */
|
|
63
|
+
params?: ParamsAmino;
|
|
64
|
+
}
|
|
65
|
+
export interface QueryParamsResponseAminoMsg {
|
|
66
|
+
type: "cosmos-sdk/QueryParamsResponse";
|
|
67
|
+
value: QueryParamsResponseAmino;
|
|
68
|
+
}
|
|
69
|
+
function createBaseQueryInterchainAccountRequest(): QueryInterchainAccountRequest {
|
|
70
|
+
return {
|
|
71
|
+
owner: "",
|
|
72
|
+
connectionId: ""
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export const QueryInterchainAccountRequest = {
|
|
76
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest",
|
|
77
|
+
aminoType: "cosmos-sdk/QueryInterchainAccountRequest",
|
|
78
|
+
is(o: any): o is QueryInterchainAccountRequest {
|
|
79
|
+
return o && (o.$typeUrl === QueryInterchainAccountRequest.typeUrl || typeof o.owner === "string" && typeof o.connectionId === "string");
|
|
80
|
+
},
|
|
81
|
+
isAmino(o: any): o is QueryInterchainAccountRequestAmino {
|
|
82
|
+
return o && (o.$typeUrl === QueryInterchainAccountRequest.typeUrl || typeof o.owner === "string" && typeof o.connection_id === "string");
|
|
83
|
+
},
|
|
84
|
+
encode(message: QueryInterchainAccountRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
85
|
+
if (message.owner !== "") {
|
|
86
|
+
writer.uint32(10).string(message.owner);
|
|
87
|
+
}
|
|
88
|
+
if (message.connectionId !== "") {
|
|
89
|
+
writer.uint32(18).string(message.connectionId);
|
|
90
|
+
}
|
|
91
|
+
return writer;
|
|
92
|
+
},
|
|
93
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountRequest {
|
|
94
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
95
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
96
|
+
const message = createBaseQueryInterchainAccountRequest();
|
|
97
|
+
while (reader.pos < end) {
|
|
98
|
+
const tag = reader.uint32();
|
|
99
|
+
switch (tag >>> 3) {
|
|
100
|
+
case 1:
|
|
101
|
+
message.owner = reader.string();
|
|
102
|
+
break;
|
|
103
|
+
case 2:
|
|
104
|
+
message.connectionId = reader.string();
|
|
105
|
+
break;
|
|
106
|
+
default:
|
|
107
|
+
reader.skipType(tag & 7);
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return message;
|
|
112
|
+
},
|
|
113
|
+
fromPartial(object: DeepPartial<QueryInterchainAccountRequest>): QueryInterchainAccountRequest {
|
|
114
|
+
const message = createBaseQueryInterchainAccountRequest();
|
|
115
|
+
message.owner = object.owner ?? "";
|
|
116
|
+
message.connectionId = object.connectionId ?? "";
|
|
117
|
+
return message;
|
|
118
|
+
},
|
|
119
|
+
fromAmino(object: QueryInterchainAccountRequestAmino): QueryInterchainAccountRequest {
|
|
120
|
+
const message = createBaseQueryInterchainAccountRequest();
|
|
121
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
122
|
+
message.owner = object.owner;
|
|
123
|
+
}
|
|
124
|
+
if (object.connection_id !== undefined && object.connection_id !== null) {
|
|
125
|
+
message.connectionId = object.connection_id;
|
|
126
|
+
}
|
|
127
|
+
return message;
|
|
128
|
+
},
|
|
129
|
+
toAmino(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestAmino {
|
|
130
|
+
const obj: any = {};
|
|
131
|
+
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
132
|
+
obj.connection_id = message.connectionId === "" ? undefined : message.connectionId;
|
|
133
|
+
return obj;
|
|
134
|
+
},
|
|
135
|
+
fromAminoMsg(object: QueryInterchainAccountRequestAminoMsg): QueryInterchainAccountRequest {
|
|
136
|
+
return QueryInterchainAccountRequest.fromAmino(object.value);
|
|
137
|
+
},
|
|
138
|
+
toAminoMsg(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestAminoMsg {
|
|
139
|
+
return {
|
|
140
|
+
type: "cosmos-sdk/QueryInterchainAccountRequest",
|
|
141
|
+
value: QueryInterchainAccountRequest.toAmino(message)
|
|
142
|
+
};
|
|
143
|
+
},
|
|
144
|
+
fromProtoMsg(message: QueryInterchainAccountRequestProtoMsg): QueryInterchainAccountRequest {
|
|
145
|
+
return QueryInterchainAccountRequest.decode(message.value);
|
|
146
|
+
},
|
|
147
|
+
toProto(message: QueryInterchainAccountRequest): Uint8Array {
|
|
148
|
+
return QueryInterchainAccountRequest.encode(message).finish();
|
|
149
|
+
},
|
|
150
|
+
toProtoMsg(message: QueryInterchainAccountRequest): QueryInterchainAccountRequestProtoMsg {
|
|
151
|
+
return {
|
|
152
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest",
|
|
153
|
+
value: QueryInterchainAccountRequest.encode(message).finish()
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
GlobalDecoderRegistry.register(QueryInterchainAccountRequest.typeUrl, QueryInterchainAccountRequest);
|
|
158
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryInterchainAccountRequest.aminoType, QueryInterchainAccountRequest.typeUrl);
|
|
159
|
+
function createBaseQueryInterchainAccountResponse(): QueryInterchainAccountResponse {
|
|
160
|
+
return {
|
|
161
|
+
address: ""
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
export const QueryInterchainAccountResponse = {
|
|
165
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse",
|
|
166
|
+
aminoType: "cosmos-sdk/QueryInterchainAccountResponse",
|
|
167
|
+
is(o: any): o is QueryInterchainAccountResponse {
|
|
168
|
+
return o && (o.$typeUrl === QueryInterchainAccountResponse.typeUrl || typeof o.address === "string");
|
|
169
|
+
},
|
|
170
|
+
isAmino(o: any): o is QueryInterchainAccountResponseAmino {
|
|
171
|
+
return o && (o.$typeUrl === QueryInterchainAccountResponse.typeUrl || typeof o.address === "string");
|
|
172
|
+
},
|
|
173
|
+
encode(message: QueryInterchainAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
174
|
+
if (message.address !== "") {
|
|
175
|
+
writer.uint32(10).string(message.address);
|
|
176
|
+
}
|
|
177
|
+
return writer;
|
|
178
|
+
},
|
|
179
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryInterchainAccountResponse {
|
|
180
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
181
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
182
|
+
const message = createBaseQueryInterchainAccountResponse();
|
|
183
|
+
while (reader.pos < end) {
|
|
184
|
+
const tag = reader.uint32();
|
|
185
|
+
switch (tag >>> 3) {
|
|
186
|
+
case 1:
|
|
187
|
+
message.address = reader.string();
|
|
188
|
+
break;
|
|
189
|
+
default:
|
|
190
|
+
reader.skipType(tag & 7);
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return message;
|
|
195
|
+
},
|
|
196
|
+
fromPartial(object: DeepPartial<QueryInterchainAccountResponse>): QueryInterchainAccountResponse {
|
|
197
|
+
const message = createBaseQueryInterchainAccountResponse();
|
|
198
|
+
message.address = object.address ?? "";
|
|
199
|
+
return message;
|
|
200
|
+
},
|
|
201
|
+
fromAmino(object: QueryInterchainAccountResponseAmino): QueryInterchainAccountResponse {
|
|
202
|
+
const message = createBaseQueryInterchainAccountResponse();
|
|
203
|
+
if (object.address !== undefined && object.address !== null) {
|
|
204
|
+
message.address = object.address;
|
|
205
|
+
}
|
|
206
|
+
return message;
|
|
207
|
+
},
|
|
208
|
+
toAmino(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseAmino {
|
|
209
|
+
const obj: any = {};
|
|
210
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
211
|
+
return obj;
|
|
212
|
+
},
|
|
213
|
+
fromAminoMsg(object: QueryInterchainAccountResponseAminoMsg): QueryInterchainAccountResponse {
|
|
214
|
+
return QueryInterchainAccountResponse.fromAmino(object.value);
|
|
215
|
+
},
|
|
216
|
+
toAminoMsg(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseAminoMsg {
|
|
217
|
+
return {
|
|
218
|
+
type: "cosmos-sdk/QueryInterchainAccountResponse",
|
|
219
|
+
value: QueryInterchainAccountResponse.toAmino(message)
|
|
220
|
+
};
|
|
221
|
+
},
|
|
222
|
+
fromProtoMsg(message: QueryInterchainAccountResponseProtoMsg): QueryInterchainAccountResponse {
|
|
223
|
+
return QueryInterchainAccountResponse.decode(message.value);
|
|
224
|
+
},
|
|
225
|
+
toProto(message: QueryInterchainAccountResponse): Uint8Array {
|
|
226
|
+
return QueryInterchainAccountResponse.encode(message).finish();
|
|
227
|
+
},
|
|
228
|
+
toProtoMsg(message: QueryInterchainAccountResponse): QueryInterchainAccountResponseProtoMsg {
|
|
229
|
+
return {
|
|
230
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse",
|
|
231
|
+
value: QueryInterchainAccountResponse.encode(message).finish()
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
GlobalDecoderRegistry.register(QueryInterchainAccountResponse.typeUrl, QueryInterchainAccountResponse);
|
|
236
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryInterchainAccountResponse.aminoType, QueryInterchainAccountResponse.typeUrl);
|
|
237
|
+
function createBaseQueryParamsRequest(): QueryParamsRequest {
|
|
238
|
+
return {};
|
|
239
|
+
}
|
|
240
|
+
export const QueryParamsRequest = {
|
|
241
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest",
|
|
242
|
+
aminoType: "cosmos-sdk/QueryParamsRequest",
|
|
243
|
+
is(o: any): o is QueryParamsRequest {
|
|
244
|
+
return o && o.$typeUrl === QueryParamsRequest.typeUrl;
|
|
245
|
+
},
|
|
246
|
+
isAmino(o: any): o is QueryParamsRequestAmino {
|
|
247
|
+
return o && o.$typeUrl === QueryParamsRequest.typeUrl;
|
|
248
|
+
},
|
|
249
|
+
encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
250
|
+
return writer;
|
|
251
|
+
},
|
|
252
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest {
|
|
253
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
254
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
255
|
+
const message = createBaseQueryParamsRequest();
|
|
256
|
+
while (reader.pos < end) {
|
|
257
|
+
const tag = reader.uint32();
|
|
258
|
+
switch (tag >>> 3) {
|
|
259
|
+
default:
|
|
260
|
+
reader.skipType(tag & 7);
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return message;
|
|
265
|
+
},
|
|
266
|
+
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest {
|
|
267
|
+
const message = createBaseQueryParamsRequest();
|
|
268
|
+
return message;
|
|
269
|
+
},
|
|
270
|
+
fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest {
|
|
271
|
+
const message = createBaseQueryParamsRequest();
|
|
272
|
+
return message;
|
|
273
|
+
},
|
|
274
|
+
toAmino(_: QueryParamsRequest): QueryParamsRequestAmino {
|
|
275
|
+
const obj: any = {};
|
|
276
|
+
return obj;
|
|
277
|
+
},
|
|
278
|
+
fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest {
|
|
279
|
+
return QueryParamsRequest.fromAmino(object.value);
|
|
280
|
+
},
|
|
281
|
+
toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg {
|
|
282
|
+
return {
|
|
283
|
+
type: "cosmos-sdk/QueryParamsRequest",
|
|
284
|
+
value: QueryParamsRequest.toAmino(message)
|
|
285
|
+
};
|
|
286
|
+
},
|
|
287
|
+
fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest {
|
|
288
|
+
return QueryParamsRequest.decode(message.value);
|
|
289
|
+
},
|
|
290
|
+
toProto(message: QueryParamsRequest): Uint8Array {
|
|
291
|
+
return QueryParamsRequest.encode(message).finish();
|
|
292
|
+
},
|
|
293
|
+
toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg {
|
|
294
|
+
return {
|
|
295
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest",
|
|
296
|
+
value: QueryParamsRequest.encode(message).finish()
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
GlobalDecoderRegistry.register(QueryParamsRequest.typeUrl, QueryParamsRequest);
|
|
301
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsRequest.aminoType, QueryParamsRequest.typeUrl);
|
|
302
|
+
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
303
|
+
return {
|
|
304
|
+
params: undefined
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
export const QueryParamsResponse = {
|
|
308
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse",
|
|
309
|
+
aminoType: "cosmos-sdk/QueryParamsResponse",
|
|
310
|
+
is(o: any): o is QueryParamsResponse {
|
|
311
|
+
return o && o.$typeUrl === QueryParamsResponse.typeUrl;
|
|
312
|
+
},
|
|
313
|
+
isAmino(o: any): o is QueryParamsResponseAmino {
|
|
314
|
+
return o && o.$typeUrl === QueryParamsResponse.typeUrl;
|
|
315
|
+
},
|
|
316
|
+
encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
317
|
+
if (message.params !== undefined) {
|
|
318
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
319
|
+
}
|
|
320
|
+
return writer;
|
|
321
|
+
},
|
|
322
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse {
|
|
323
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
324
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
325
|
+
const message = createBaseQueryParamsResponse();
|
|
326
|
+
while (reader.pos < end) {
|
|
327
|
+
const tag = reader.uint32();
|
|
328
|
+
switch (tag >>> 3) {
|
|
329
|
+
case 1:
|
|
330
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
331
|
+
break;
|
|
332
|
+
default:
|
|
333
|
+
reader.skipType(tag & 7);
|
|
334
|
+
break;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
return message;
|
|
338
|
+
},
|
|
339
|
+
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse {
|
|
340
|
+
const message = createBaseQueryParamsResponse();
|
|
341
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
342
|
+
return message;
|
|
343
|
+
},
|
|
344
|
+
fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse {
|
|
345
|
+
const message = createBaseQueryParamsResponse();
|
|
346
|
+
if (object.params !== undefined && object.params !== null) {
|
|
347
|
+
message.params = Params.fromAmino(object.params);
|
|
348
|
+
}
|
|
349
|
+
return message;
|
|
350
|
+
},
|
|
351
|
+
toAmino(message: QueryParamsResponse): QueryParamsResponseAmino {
|
|
352
|
+
const obj: any = {};
|
|
353
|
+
obj.params = message.params ? Params.toAmino(message.params) : undefined;
|
|
354
|
+
return obj;
|
|
355
|
+
},
|
|
356
|
+
fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse {
|
|
357
|
+
return QueryParamsResponse.fromAmino(object.value);
|
|
358
|
+
},
|
|
359
|
+
toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg {
|
|
360
|
+
return {
|
|
361
|
+
type: "cosmos-sdk/QueryParamsResponse",
|
|
362
|
+
value: QueryParamsResponse.toAmino(message)
|
|
363
|
+
};
|
|
364
|
+
},
|
|
365
|
+
fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse {
|
|
366
|
+
return QueryParamsResponse.decode(message.value);
|
|
367
|
+
},
|
|
368
|
+
toProto(message: QueryParamsResponse): Uint8Array {
|
|
369
|
+
return QueryParamsResponse.encode(message).finish();
|
|
370
|
+
},
|
|
371
|
+
toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg {
|
|
372
|
+
return {
|
|
373
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse",
|
|
374
|
+
value: QueryParamsResponse.encode(message).finish()
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
GlobalDecoderRegistry.register(QueryParamsResponse.typeUrl, QueryParamsResponse);
|
|
379
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsResponse.aminoType, QueryParamsResponse.typeUrl);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { TelescopeGeneratedType } from "../../../../../types";
|
|
2
|
+
import { MsgRegisterInterchainAccount, MsgSendTx, MsgUpdateParams } from "./tx";
|
|
3
|
+
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount", MsgRegisterInterchainAccount], ["/ibc.applications.interchain_accounts.controller.v1.MsgSendTx", MsgSendTx], ["/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams", MsgUpdateParams]];
|
|
4
|
+
export const MessageComposer = {
|
|
5
|
+
encoded: {
|
|
6
|
+
registerInterchainAccount(value: MsgRegisterInterchainAccount) {
|
|
7
|
+
return {
|
|
8
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount",
|
|
9
|
+
value: MsgRegisterInterchainAccount.encode(value).finish()
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
sendTx(value: MsgSendTx) {
|
|
13
|
+
return {
|
|
14
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx",
|
|
15
|
+
value: MsgSendTx.encode(value).finish()
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
updateParams(value: MsgUpdateParams) {
|
|
19
|
+
return {
|
|
20
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams",
|
|
21
|
+
value: MsgUpdateParams.encode(value).finish()
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
withTypeUrl: {
|
|
26
|
+
registerInterchainAccount(value: MsgRegisterInterchainAccount) {
|
|
27
|
+
return {
|
|
28
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount",
|
|
29
|
+
value
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
sendTx(value: MsgSendTx) {
|
|
33
|
+
return {
|
|
34
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx",
|
|
35
|
+
value
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
updateParams(value: MsgUpdateParams) {
|
|
39
|
+
return {
|
|
40
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams",
|
|
41
|
+
value
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
fromPartial: {
|
|
46
|
+
registerInterchainAccount(value: MsgRegisterInterchainAccount) {
|
|
47
|
+
return {
|
|
48
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount",
|
|
49
|
+
value: MsgRegisterInterchainAccount.fromPartial(value)
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
sendTx(value: MsgSendTx) {
|
|
53
|
+
return {
|
|
54
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx",
|
|
55
|
+
value: MsgSendTx.fromPartial(value)
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
updateParams(value: MsgUpdateParams) {
|
|
59
|
+
return {
|
|
60
|
+
typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams",
|
|
61
|
+
value: MsgUpdateParams.fromPartial(value)
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { buildTx, SigningClientResolver } from "../../../../../helper-func-types";
|
|
2
|
+
import { buildUseMutation } from "../../../../../react-query";
|
|
3
|
+
import { toEncoders, toConverters } from "@interchainjs/cosmos/utils";
|
|
4
|
+
import { MsgRegisterInterchainAccount, MsgSendTx, MsgUpdateParams } from "./tx";
|
|
5
|
+
export const createRegisterInterchainAccount = (clientResolver?: SigningClientResolver) => buildTx<MsgRegisterInterchainAccount>({
|
|
6
|
+
clientResolver,
|
|
7
|
+
typeUrl: MsgRegisterInterchainAccount.typeUrl,
|
|
8
|
+
encoders: toEncoders(MsgRegisterInterchainAccount),
|
|
9
|
+
converters: toConverters(MsgRegisterInterchainAccount)
|
|
10
|
+
});
|
|
11
|
+
export const useRegisterInterchainAccount = buildUseMutation<MsgRegisterInterchainAccount, Error>({
|
|
12
|
+
builderMutationFn: createRegisterInterchainAccount
|
|
13
|
+
});
|
|
14
|
+
export const createSendTx = (clientResolver?: SigningClientResolver) => buildTx<MsgSendTx>({
|
|
15
|
+
clientResolver,
|
|
16
|
+
typeUrl: MsgSendTx.typeUrl,
|
|
17
|
+
encoders: toEncoders(MsgSendTx),
|
|
18
|
+
converters: toConverters(MsgSendTx)
|
|
19
|
+
});
|
|
20
|
+
export const useSendTx = buildUseMutation<MsgSendTx, Error>({
|
|
21
|
+
builderMutationFn: createSendTx
|
|
22
|
+
});
|
|
23
|
+
export const createUpdateParams = (clientResolver?: SigningClientResolver) => buildTx<MsgUpdateParams>({
|
|
24
|
+
clientResolver,
|
|
25
|
+
typeUrl: MsgUpdateParams.typeUrl,
|
|
26
|
+
encoders: toEncoders(MsgUpdateParams),
|
|
27
|
+
converters: toConverters(MsgUpdateParams)
|
|
28
|
+
});
|
|
29
|
+
export const useUpdateParams = buildUseMutation<MsgUpdateParams, Error>({
|
|
30
|
+
builderMutationFn: createUpdateParams
|
|
31
|
+
});
|