@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,253 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../../binary";
|
|
2
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } 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 host submodule.
|
|
7
|
+
*/
|
|
8
|
+
export interface Params {
|
|
9
|
+
/** host_enabled enables or disables the host submodule. */
|
|
10
|
+
hostEnabled: boolean;
|
|
11
|
+
/** allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain. */
|
|
12
|
+
allowMessages: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface ParamsProtoMsg {
|
|
15
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.Params";
|
|
16
|
+
value: Uint8Array;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Params defines the set of on-chain interchain accounts parameters.
|
|
20
|
+
* The following parameters may be used to disable the host submodule.
|
|
21
|
+
*/
|
|
22
|
+
export interface ParamsAmino {
|
|
23
|
+
/** host_enabled enables or disables the host submodule. */
|
|
24
|
+
host_enabled: boolean;
|
|
25
|
+
/** allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain. */
|
|
26
|
+
allow_messages: string[];
|
|
27
|
+
}
|
|
28
|
+
export interface ParamsAminoMsg {
|
|
29
|
+
type: "cosmos-sdk/Params";
|
|
30
|
+
value: ParamsAmino;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* QueryRequest defines the parameters for a particular query request
|
|
34
|
+
* by an interchain account.
|
|
35
|
+
*/
|
|
36
|
+
export interface QueryRequest {
|
|
37
|
+
/**
|
|
38
|
+
* path defines the path of the query request as defined by ADR-021.
|
|
39
|
+
* https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md#custom-query-registration-and-routing
|
|
40
|
+
*/
|
|
41
|
+
path: string;
|
|
42
|
+
/**
|
|
43
|
+
* data defines the payload of the query request as defined by ADR-021.
|
|
44
|
+
* https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md#custom-query-registration-and-routing
|
|
45
|
+
*/
|
|
46
|
+
data: Uint8Array;
|
|
47
|
+
}
|
|
48
|
+
export interface QueryRequestProtoMsg {
|
|
49
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryRequest";
|
|
50
|
+
value: Uint8Array;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* QueryRequest defines the parameters for a particular query request
|
|
54
|
+
* by an interchain account.
|
|
55
|
+
*/
|
|
56
|
+
export interface QueryRequestAmino {
|
|
57
|
+
/**
|
|
58
|
+
* path defines the path of the query request as defined by ADR-021.
|
|
59
|
+
* https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md#custom-query-registration-and-routing
|
|
60
|
+
*/
|
|
61
|
+
path: string;
|
|
62
|
+
/**
|
|
63
|
+
* data defines the payload of the query request as defined by ADR-021.
|
|
64
|
+
* https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md#custom-query-registration-and-routing
|
|
65
|
+
*/
|
|
66
|
+
data: string;
|
|
67
|
+
}
|
|
68
|
+
export interface QueryRequestAminoMsg {
|
|
69
|
+
type: "cosmos-sdk/QueryRequest";
|
|
70
|
+
value: QueryRequestAmino;
|
|
71
|
+
}
|
|
72
|
+
function createBaseParams(): Params {
|
|
73
|
+
return {
|
|
74
|
+
hostEnabled: false,
|
|
75
|
+
allowMessages: []
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export const Params = {
|
|
79
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.Params",
|
|
80
|
+
aminoType: "cosmos-sdk/Params",
|
|
81
|
+
is(o: any): o is Params {
|
|
82
|
+
return o && (o.$typeUrl === Params.typeUrl || typeof o.hostEnabled === "boolean" && Array.isArray(o.allowMessages) && (!o.allowMessages.length || typeof o.allowMessages[0] === "string"));
|
|
83
|
+
},
|
|
84
|
+
isAmino(o: any): o is ParamsAmino {
|
|
85
|
+
return o && (o.$typeUrl === Params.typeUrl || typeof o.host_enabled === "boolean" && Array.isArray(o.allow_messages) && (!o.allow_messages.length || typeof o.allow_messages[0] === "string"));
|
|
86
|
+
},
|
|
87
|
+
encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
88
|
+
if (message.hostEnabled === true) {
|
|
89
|
+
writer.uint32(8).bool(message.hostEnabled);
|
|
90
|
+
}
|
|
91
|
+
for (const v of message.allowMessages) {
|
|
92
|
+
writer.uint32(18).string(v!);
|
|
93
|
+
}
|
|
94
|
+
return writer;
|
|
95
|
+
},
|
|
96
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params {
|
|
97
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
98
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
99
|
+
const message = createBaseParams();
|
|
100
|
+
while (reader.pos < end) {
|
|
101
|
+
const tag = reader.uint32();
|
|
102
|
+
switch (tag >>> 3) {
|
|
103
|
+
case 1:
|
|
104
|
+
message.hostEnabled = reader.bool();
|
|
105
|
+
break;
|
|
106
|
+
case 2:
|
|
107
|
+
message.allowMessages.push(reader.string());
|
|
108
|
+
break;
|
|
109
|
+
default:
|
|
110
|
+
reader.skipType(tag & 7);
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return message;
|
|
115
|
+
},
|
|
116
|
+
fromPartial(object: DeepPartial<Params>): Params {
|
|
117
|
+
const message = createBaseParams();
|
|
118
|
+
message.hostEnabled = object.hostEnabled ?? false;
|
|
119
|
+
message.allowMessages = object.allowMessages?.map(e => e) || [];
|
|
120
|
+
return message;
|
|
121
|
+
},
|
|
122
|
+
fromAmino(object: ParamsAmino): Params {
|
|
123
|
+
const message = createBaseParams();
|
|
124
|
+
if (object.host_enabled !== undefined && object.host_enabled !== null) {
|
|
125
|
+
message.hostEnabled = object.host_enabled;
|
|
126
|
+
}
|
|
127
|
+
message.allowMessages = object.allow_messages?.map(e => e) || [];
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
toAmino(message: Params): ParamsAmino {
|
|
131
|
+
const obj: any = {};
|
|
132
|
+
obj.host_enabled = message.hostEnabled === false ? undefined : message.hostEnabled;
|
|
133
|
+
if (message.allowMessages) {
|
|
134
|
+
obj.allow_messages = message.allowMessages.map(e => e);
|
|
135
|
+
} else {
|
|
136
|
+
obj.allow_messages = message.allowMessages;
|
|
137
|
+
}
|
|
138
|
+
return obj;
|
|
139
|
+
},
|
|
140
|
+
fromAminoMsg(object: ParamsAminoMsg): Params {
|
|
141
|
+
return Params.fromAmino(object.value);
|
|
142
|
+
},
|
|
143
|
+
toAminoMsg(message: Params): ParamsAminoMsg {
|
|
144
|
+
return {
|
|
145
|
+
type: "cosmos-sdk/Params",
|
|
146
|
+
value: Params.toAmino(message)
|
|
147
|
+
};
|
|
148
|
+
},
|
|
149
|
+
fromProtoMsg(message: ParamsProtoMsg): Params {
|
|
150
|
+
return Params.decode(message.value);
|
|
151
|
+
},
|
|
152
|
+
toProto(message: Params): Uint8Array {
|
|
153
|
+
return Params.encode(message).finish();
|
|
154
|
+
},
|
|
155
|
+
toProtoMsg(message: Params): ParamsProtoMsg {
|
|
156
|
+
return {
|
|
157
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.Params",
|
|
158
|
+
value: Params.encode(message).finish()
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
GlobalDecoderRegistry.register(Params.typeUrl, Params);
|
|
163
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
|
|
164
|
+
function createBaseQueryRequest(): QueryRequest {
|
|
165
|
+
return {
|
|
166
|
+
path: "",
|
|
167
|
+
data: new Uint8Array()
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
export const QueryRequest = {
|
|
171
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryRequest",
|
|
172
|
+
aminoType: "cosmos-sdk/QueryRequest",
|
|
173
|
+
is(o: any): o is QueryRequest {
|
|
174
|
+
return o && (o.$typeUrl === QueryRequest.typeUrl || typeof o.path === "string" && (o.data instanceof Uint8Array || typeof o.data === "string"));
|
|
175
|
+
},
|
|
176
|
+
isAmino(o: any): o is QueryRequestAmino {
|
|
177
|
+
return o && (o.$typeUrl === QueryRequest.typeUrl || typeof o.path === "string" && (o.data instanceof Uint8Array || typeof o.data === "string"));
|
|
178
|
+
},
|
|
179
|
+
encode(message: QueryRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
180
|
+
if (message.path !== "") {
|
|
181
|
+
writer.uint32(10).string(message.path);
|
|
182
|
+
}
|
|
183
|
+
if (message.data.length !== 0) {
|
|
184
|
+
writer.uint32(18).bytes(message.data);
|
|
185
|
+
}
|
|
186
|
+
return writer;
|
|
187
|
+
},
|
|
188
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryRequest {
|
|
189
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
190
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
191
|
+
const message = createBaseQueryRequest();
|
|
192
|
+
while (reader.pos < end) {
|
|
193
|
+
const tag = reader.uint32();
|
|
194
|
+
switch (tag >>> 3) {
|
|
195
|
+
case 1:
|
|
196
|
+
message.path = reader.string();
|
|
197
|
+
break;
|
|
198
|
+
case 2:
|
|
199
|
+
message.data = reader.bytes();
|
|
200
|
+
break;
|
|
201
|
+
default:
|
|
202
|
+
reader.skipType(tag & 7);
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return message;
|
|
207
|
+
},
|
|
208
|
+
fromPartial(object: DeepPartial<QueryRequest>): QueryRequest {
|
|
209
|
+
const message = createBaseQueryRequest();
|
|
210
|
+
message.path = object.path ?? "";
|
|
211
|
+
message.data = object.data ?? new Uint8Array();
|
|
212
|
+
return message;
|
|
213
|
+
},
|
|
214
|
+
fromAmino(object: QueryRequestAmino): QueryRequest {
|
|
215
|
+
const message = createBaseQueryRequest();
|
|
216
|
+
if (object.path !== undefined && object.path !== null) {
|
|
217
|
+
message.path = object.path;
|
|
218
|
+
}
|
|
219
|
+
if (object.data !== undefined && object.data !== null) {
|
|
220
|
+
message.data = bytesFromBase64(object.data);
|
|
221
|
+
}
|
|
222
|
+
return message;
|
|
223
|
+
},
|
|
224
|
+
toAmino(message: QueryRequest): QueryRequestAmino {
|
|
225
|
+
const obj: any = {};
|
|
226
|
+
obj.path = message.path === "" ? undefined : message.path;
|
|
227
|
+
obj.data = message.data ? base64FromBytes(message.data) : undefined;
|
|
228
|
+
return obj;
|
|
229
|
+
},
|
|
230
|
+
fromAminoMsg(object: QueryRequestAminoMsg): QueryRequest {
|
|
231
|
+
return QueryRequest.fromAmino(object.value);
|
|
232
|
+
},
|
|
233
|
+
toAminoMsg(message: QueryRequest): QueryRequestAminoMsg {
|
|
234
|
+
return {
|
|
235
|
+
type: "cosmos-sdk/QueryRequest",
|
|
236
|
+
value: QueryRequest.toAmino(message)
|
|
237
|
+
};
|
|
238
|
+
},
|
|
239
|
+
fromProtoMsg(message: QueryRequestProtoMsg): QueryRequest {
|
|
240
|
+
return QueryRequest.decode(message.value);
|
|
241
|
+
},
|
|
242
|
+
toProto(message: QueryRequest): Uint8Array {
|
|
243
|
+
return QueryRequest.encode(message).finish();
|
|
244
|
+
},
|
|
245
|
+
toProtoMsg(message: QueryRequest): QueryRequestProtoMsg {
|
|
246
|
+
return {
|
|
247
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryRequest",
|
|
248
|
+
value: QueryRequest.encode(message).finish()
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
GlobalDecoderRegistry.register(QueryRequest.typeUrl, QueryRequest);
|
|
253
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryRequest.aminoType, QueryRequest.typeUrl);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RpcResolver, buildQuery } from "../../../../../helper-func-types";
|
|
2
|
+
import { buildUseQuery } from "../../../../../react-query";
|
|
3
|
+
import { QueryParamsRequest, QueryParamsResponse } from "./query";
|
|
4
|
+
export const createGetParams = (clientResolver?: RpcResolver) => buildQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
5
|
+
encode: QueryParamsRequest.encode,
|
|
6
|
+
decode: QueryParamsResponse.decode,
|
|
7
|
+
service: "ibc.applications.interchain_accounts.host.v1.Query",
|
|
8
|
+
method: "Params",
|
|
9
|
+
clientResolver
|
|
10
|
+
});
|
|
11
|
+
export const useGetParams = buildUseQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
12
|
+
builderQueryFn: createGetParams,
|
|
13
|
+
queryKeyPrefix: "ParamsQuery"
|
|
14
|
+
});
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { Params, ParamsAmino } from "./host";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../../../registry";
|
|
5
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
6
|
+
export interface QueryParamsRequest {}
|
|
7
|
+
export interface QueryParamsRequestProtoMsg {
|
|
8
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryParamsRequest";
|
|
9
|
+
value: Uint8Array;
|
|
10
|
+
}
|
|
11
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
12
|
+
export interface QueryParamsRequestAmino {}
|
|
13
|
+
export interface QueryParamsRequestAminoMsg {
|
|
14
|
+
type: "cosmos-sdk/QueryParamsRequest";
|
|
15
|
+
value: QueryParamsRequestAmino;
|
|
16
|
+
}
|
|
17
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
18
|
+
export interface QueryParamsResponse {
|
|
19
|
+
/** params defines the parameters of the module. */
|
|
20
|
+
params?: Params;
|
|
21
|
+
}
|
|
22
|
+
export interface QueryParamsResponseProtoMsg {
|
|
23
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryParamsResponse";
|
|
24
|
+
value: Uint8Array;
|
|
25
|
+
}
|
|
26
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
27
|
+
export interface QueryParamsResponseAmino {
|
|
28
|
+
/** params defines the parameters of the module. */
|
|
29
|
+
params?: ParamsAmino;
|
|
30
|
+
}
|
|
31
|
+
export interface QueryParamsResponseAminoMsg {
|
|
32
|
+
type: "cosmos-sdk/QueryParamsResponse";
|
|
33
|
+
value: QueryParamsResponseAmino;
|
|
34
|
+
}
|
|
35
|
+
function createBaseQueryParamsRequest(): QueryParamsRequest {
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
38
|
+
export const QueryParamsRequest = {
|
|
39
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryParamsRequest",
|
|
40
|
+
aminoType: "cosmos-sdk/QueryParamsRequest",
|
|
41
|
+
is(o: any): o is QueryParamsRequest {
|
|
42
|
+
return o && o.$typeUrl === QueryParamsRequest.typeUrl;
|
|
43
|
+
},
|
|
44
|
+
isAmino(o: any): o is QueryParamsRequestAmino {
|
|
45
|
+
return o && o.$typeUrl === QueryParamsRequest.typeUrl;
|
|
46
|
+
},
|
|
47
|
+
encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
48
|
+
return writer;
|
|
49
|
+
},
|
|
50
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest {
|
|
51
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
52
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
53
|
+
const message = createBaseQueryParamsRequest();
|
|
54
|
+
while (reader.pos < end) {
|
|
55
|
+
const tag = reader.uint32();
|
|
56
|
+
switch (tag >>> 3) {
|
|
57
|
+
default:
|
|
58
|
+
reader.skipType(tag & 7);
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest {
|
|
65
|
+
const message = createBaseQueryParamsRequest();
|
|
66
|
+
return message;
|
|
67
|
+
},
|
|
68
|
+
fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest {
|
|
69
|
+
const message = createBaseQueryParamsRequest();
|
|
70
|
+
return message;
|
|
71
|
+
},
|
|
72
|
+
toAmino(_: QueryParamsRequest): QueryParamsRequestAmino {
|
|
73
|
+
const obj: any = {};
|
|
74
|
+
return obj;
|
|
75
|
+
},
|
|
76
|
+
fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest {
|
|
77
|
+
return QueryParamsRequest.fromAmino(object.value);
|
|
78
|
+
},
|
|
79
|
+
toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg {
|
|
80
|
+
return {
|
|
81
|
+
type: "cosmos-sdk/QueryParamsRequest",
|
|
82
|
+
value: QueryParamsRequest.toAmino(message)
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest {
|
|
86
|
+
return QueryParamsRequest.decode(message.value);
|
|
87
|
+
},
|
|
88
|
+
toProto(message: QueryParamsRequest): Uint8Array {
|
|
89
|
+
return QueryParamsRequest.encode(message).finish();
|
|
90
|
+
},
|
|
91
|
+
toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg {
|
|
92
|
+
return {
|
|
93
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryParamsRequest",
|
|
94
|
+
value: QueryParamsRequest.encode(message).finish()
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
GlobalDecoderRegistry.register(QueryParamsRequest.typeUrl, QueryParamsRequest);
|
|
99
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsRequest.aminoType, QueryParamsRequest.typeUrl);
|
|
100
|
+
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
101
|
+
return {
|
|
102
|
+
params: undefined
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export const QueryParamsResponse = {
|
|
106
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryParamsResponse",
|
|
107
|
+
aminoType: "cosmos-sdk/QueryParamsResponse",
|
|
108
|
+
is(o: any): o is QueryParamsResponse {
|
|
109
|
+
return o && o.$typeUrl === QueryParamsResponse.typeUrl;
|
|
110
|
+
},
|
|
111
|
+
isAmino(o: any): o is QueryParamsResponseAmino {
|
|
112
|
+
return o && o.$typeUrl === QueryParamsResponse.typeUrl;
|
|
113
|
+
},
|
|
114
|
+
encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
115
|
+
if (message.params !== undefined) {
|
|
116
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
117
|
+
}
|
|
118
|
+
return writer;
|
|
119
|
+
},
|
|
120
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse {
|
|
121
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
122
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
123
|
+
const message = createBaseQueryParamsResponse();
|
|
124
|
+
while (reader.pos < end) {
|
|
125
|
+
const tag = reader.uint32();
|
|
126
|
+
switch (tag >>> 3) {
|
|
127
|
+
case 1:
|
|
128
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
129
|
+
break;
|
|
130
|
+
default:
|
|
131
|
+
reader.skipType(tag & 7);
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return message;
|
|
136
|
+
},
|
|
137
|
+
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse {
|
|
138
|
+
const message = createBaseQueryParamsResponse();
|
|
139
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
140
|
+
return message;
|
|
141
|
+
},
|
|
142
|
+
fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse {
|
|
143
|
+
const message = createBaseQueryParamsResponse();
|
|
144
|
+
if (object.params !== undefined && object.params !== null) {
|
|
145
|
+
message.params = Params.fromAmino(object.params);
|
|
146
|
+
}
|
|
147
|
+
return message;
|
|
148
|
+
},
|
|
149
|
+
toAmino(message: QueryParamsResponse): QueryParamsResponseAmino {
|
|
150
|
+
const obj: any = {};
|
|
151
|
+
obj.params = message.params ? Params.toAmino(message.params) : undefined;
|
|
152
|
+
return obj;
|
|
153
|
+
},
|
|
154
|
+
fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse {
|
|
155
|
+
return QueryParamsResponse.fromAmino(object.value);
|
|
156
|
+
},
|
|
157
|
+
toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg {
|
|
158
|
+
return {
|
|
159
|
+
type: "cosmos-sdk/QueryParamsResponse",
|
|
160
|
+
value: QueryParamsResponse.toAmino(message)
|
|
161
|
+
};
|
|
162
|
+
},
|
|
163
|
+
fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse {
|
|
164
|
+
return QueryParamsResponse.decode(message.value);
|
|
165
|
+
},
|
|
166
|
+
toProto(message: QueryParamsResponse): Uint8Array {
|
|
167
|
+
return QueryParamsResponse.encode(message).finish();
|
|
168
|
+
},
|
|
169
|
+
toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg {
|
|
170
|
+
return {
|
|
171
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryParamsResponse",
|
|
172
|
+
value: QueryParamsResponse.encode(message).finish()
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
GlobalDecoderRegistry.register(QueryParamsResponse.typeUrl, QueryParamsResponse);
|
|
177
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsResponse.aminoType, QueryParamsResponse.typeUrl);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { TelescopeGeneratedType } from "../../../../../types";
|
|
2
|
+
import { MsgUpdateParams, MsgModuleQuerySafe } from "./tx";
|
|
3
|
+
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/ibc.applications.interchain_accounts.host.v1.MsgUpdateParams", MsgUpdateParams], ["/ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe", MsgModuleQuerySafe]];
|
|
4
|
+
export const MessageComposer = {
|
|
5
|
+
encoded: {
|
|
6
|
+
updateParams(value: MsgUpdateParams) {
|
|
7
|
+
return {
|
|
8
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.MsgUpdateParams",
|
|
9
|
+
value: MsgUpdateParams.encode(value).finish()
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
moduleQuerySafe(value: MsgModuleQuerySafe) {
|
|
13
|
+
return {
|
|
14
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe",
|
|
15
|
+
value: MsgModuleQuerySafe.encode(value).finish()
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
withTypeUrl: {
|
|
20
|
+
updateParams(value: MsgUpdateParams) {
|
|
21
|
+
return {
|
|
22
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.MsgUpdateParams",
|
|
23
|
+
value
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
moduleQuerySafe(value: MsgModuleQuerySafe) {
|
|
27
|
+
return {
|
|
28
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe",
|
|
29
|
+
value
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
fromPartial: {
|
|
34
|
+
updateParams(value: MsgUpdateParams) {
|
|
35
|
+
return {
|
|
36
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.MsgUpdateParams",
|
|
37
|
+
value: MsgUpdateParams.fromPartial(value)
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
moduleQuerySafe(value: MsgModuleQuerySafe) {
|
|
41
|
+
return {
|
|
42
|
+
typeUrl: "/ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe",
|
|
43
|
+
value: MsgModuleQuerySafe.fromPartial(value)
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { buildTx, SigningClientResolver } from "../../../../../helper-func-types";
|
|
2
|
+
import { buildUseMutation } from "../../../../../react-query";
|
|
3
|
+
import { toEncoders, toConverters } from "@interchainjs/cosmos/utils";
|
|
4
|
+
import { MsgUpdateParams, MsgModuleQuerySafe } from "./tx";
|
|
5
|
+
export const createUpdateParams = (clientResolver?: SigningClientResolver) => buildTx<MsgUpdateParams>({
|
|
6
|
+
clientResolver,
|
|
7
|
+
typeUrl: MsgUpdateParams.typeUrl,
|
|
8
|
+
encoders: toEncoders(MsgUpdateParams),
|
|
9
|
+
converters: toConverters(MsgUpdateParams)
|
|
10
|
+
});
|
|
11
|
+
export const useUpdateParams = buildUseMutation<MsgUpdateParams, Error>({
|
|
12
|
+
builderMutationFn: createUpdateParams
|
|
13
|
+
});
|
|
14
|
+
export const createModuleQuerySafe = (clientResolver?: SigningClientResolver) => buildTx<MsgModuleQuerySafe>({
|
|
15
|
+
clientResolver,
|
|
16
|
+
typeUrl: MsgModuleQuerySafe.typeUrl,
|
|
17
|
+
encoders: toEncoders(MsgModuleQuerySafe),
|
|
18
|
+
converters: toConverters(MsgModuleQuerySafe)
|
|
19
|
+
});
|
|
20
|
+
export const useModuleQuerySafe = buildUseMutation<MsgModuleQuerySafe, Error>({
|
|
21
|
+
builderMutationFn: createModuleQuerySafe
|
|
22
|
+
});
|