@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,307 @@
|
|
|
1
|
+
import { Params, ParamsAmino, Metadata, MetadataAmino, SendEnabled, SendEnabledAmino } from "./bank";
|
|
2
|
+
import { Coin, CoinAmino } from "../../base/v1beta1/coin";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
|
+
/** GenesisState defines the bank module's genesis state. */
|
|
7
|
+
export interface GenesisState {
|
|
8
|
+
/** params defines all the parameters of the module. */
|
|
9
|
+
params: Params;
|
|
10
|
+
/** balances is an array containing the balances of all the accounts. */
|
|
11
|
+
balances: Balance[];
|
|
12
|
+
/**
|
|
13
|
+
* supply represents the total supply. If it is left empty, then supply will be calculated based on the provided
|
|
14
|
+
* balances. Otherwise, it will be used to validate that the sum of the balances equals this amount.
|
|
15
|
+
*/
|
|
16
|
+
supply: Coin[];
|
|
17
|
+
/** denom_metadata defines the metadata of the different coins. */
|
|
18
|
+
denomMetadata: Metadata[];
|
|
19
|
+
/**
|
|
20
|
+
* send_enabled defines the denoms where send is enabled or disabled.
|
|
21
|
+
*
|
|
22
|
+
* Since: cosmos-sdk 0.47
|
|
23
|
+
*/
|
|
24
|
+
sendEnabled: SendEnabled[];
|
|
25
|
+
}
|
|
26
|
+
export interface GenesisStateProtoMsg {
|
|
27
|
+
typeUrl: "/cosmos.bank.v1beta1.GenesisState";
|
|
28
|
+
value: Uint8Array;
|
|
29
|
+
}
|
|
30
|
+
/** GenesisState defines the bank module's genesis state. */
|
|
31
|
+
export interface GenesisStateAmino {
|
|
32
|
+
/** params defines all the parameters of the module. */
|
|
33
|
+
params: ParamsAmino;
|
|
34
|
+
/** balances is an array containing the balances of all the accounts. */
|
|
35
|
+
balances: BalanceAmino[];
|
|
36
|
+
/**
|
|
37
|
+
* supply represents the total supply. If it is left empty, then supply will be calculated based on the provided
|
|
38
|
+
* balances. Otherwise, it will be used to validate that the sum of the balances equals this amount.
|
|
39
|
+
*/
|
|
40
|
+
supply: CoinAmino[];
|
|
41
|
+
/** denom_metadata defines the metadata of the different coins. */
|
|
42
|
+
denom_metadata: MetadataAmino[];
|
|
43
|
+
/**
|
|
44
|
+
* send_enabled defines the denoms where send is enabled or disabled.
|
|
45
|
+
*
|
|
46
|
+
* Since: cosmos-sdk 0.47
|
|
47
|
+
*/
|
|
48
|
+
send_enabled: SendEnabledAmino[];
|
|
49
|
+
}
|
|
50
|
+
export interface GenesisStateAminoMsg {
|
|
51
|
+
type: "cosmos-sdk/GenesisState";
|
|
52
|
+
value: GenesisStateAmino;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Balance defines an account address and balance pair used in the bank module's
|
|
56
|
+
* genesis state.
|
|
57
|
+
*/
|
|
58
|
+
export interface Balance {
|
|
59
|
+
/** address is the address of the balance holder. */
|
|
60
|
+
address: string;
|
|
61
|
+
/** coins defines the different coins this balance holds. */
|
|
62
|
+
coins: Coin[];
|
|
63
|
+
}
|
|
64
|
+
export interface BalanceProtoMsg {
|
|
65
|
+
typeUrl: "/cosmos.bank.v1beta1.Balance";
|
|
66
|
+
value: Uint8Array;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Balance defines an account address and balance pair used in the bank module's
|
|
70
|
+
* genesis state.
|
|
71
|
+
*/
|
|
72
|
+
export interface BalanceAmino {
|
|
73
|
+
/** address is the address of the balance holder. */
|
|
74
|
+
address: string;
|
|
75
|
+
/** coins defines the different coins this balance holds. */
|
|
76
|
+
coins: CoinAmino[];
|
|
77
|
+
}
|
|
78
|
+
export interface BalanceAminoMsg {
|
|
79
|
+
type: "cosmos-sdk/Balance";
|
|
80
|
+
value: BalanceAmino;
|
|
81
|
+
}
|
|
82
|
+
function createBaseGenesisState(): GenesisState {
|
|
83
|
+
return {
|
|
84
|
+
params: Params.fromPartial({}),
|
|
85
|
+
balances: [],
|
|
86
|
+
supply: [],
|
|
87
|
+
denomMetadata: [],
|
|
88
|
+
sendEnabled: []
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
export const GenesisState = {
|
|
92
|
+
typeUrl: "/cosmos.bank.v1beta1.GenesisState",
|
|
93
|
+
aminoType: "cosmos-sdk/GenesisState",
|
|
94
|
+
is(o: any): o is GenesisState {
|
|
95
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Params.is(o.params) && Array.isArray(o.balances) && (!o.balances.length || Balance.is(o.balances[0])) && Array.isArray(o.supply) && (!o.supply.length || Coin.is(o.supply[0])) && Array.isArray(o.denomMetadata) && (!o.denomMetadata.length || Metadata.is(o.denomMetadata[0])) && Array.isArray(o.sendEnabled) && (!o.sendEnabled.length || SendEnabled.is(o.sendEnabled[0])));
|
|
96
|
+
},
|
|
97
|
+
isAmino(o: any): o is GenesisStateAmino {
|
|
98
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Params.isAmino(o.params) && Array.isArray(o.balances) && (!o.balances.length || Balance.isAmino(o.balances[0])) && Array.isArray(o.supply) && (!o.supply.length || Coin.isAmino(o.supply[0])) && Array.isArray(o.denom_metadata) && (!o.denom_metadata.length || Metadata.isAmino(o.denom_metadata[0])) && Array.isArray(o.send_enabled) && (!o.send_enabled.length || SendEnabled.isAmino(o.send_enabled[0])));
|
|
99
|
+
},
|
|
100
|
+
encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
101
|
+
if (message.params !== undefined) {
|
|
102
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
103
|
+
}
|
|
104
|
+
for (const v of message.balances) {
|
|
105
|
+
Balance.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
106
|
+
}
|
|
107
|
+
for (const v of message.supply) {
|
|
108
|
+
Coin.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
109
|
+
}
|
|
110
|
+
for (const v of message.denomMetadata) {
|
|
111
|
+
Metadata.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
112
|
+
}
|
|
113
|
+
for (const v of message.sendEnabled) {
|
|
114
|
+
SendEnabled.encode(v!, writer.uint32(42).fork()).ldelim();
|
|
115
|
+
}
|
|
116
|
+
return writer;
|
|
117
|
+
},
|
|
118
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
|
|
119
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
120
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
121
|
+
const message = createBaseGenesisState();
|
|
122
|
+
while (reader.pos < end) {
|
|
123
|
+
const tag = reader.uint32();
|
|
124
|
+
switch (tag >>> 3) {
|
|
125
|
+
case 1:
|
|
126
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
127
|
+
break;
|
|
128
|
+
case 2:
|
|
129
|
+
message.balances.push(Balance.decode(reader, reader.uint32()));
|
|
130
|
+
break;
|
|
131
|
+
case 3:
|
|
132
|
+
message.supply.push(Coin.decode(reader, reader.uint32()));
|
|
133
|
+
break;
|
|
134
|
+
case 4:
|
|
135
|
+
message.denomMetadata.push(Metadata.decode(reader, reader.uint32()));
|
|
136
|
+
break;
|
|
137
|
+
case 5:
|
|
138
|
+
message.sendEnabled.push(SendEnabled.decode(reader, reader.uint32()));
|
|
139
|
+
break;
|
|
140
|
+
default:
|
|
141
|
+
reader.skipType(tag & 7);
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return message;
|
|
146
|
+
},
|
|
147
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState {
|
|
148
|
+
const message = createBaseGenesisState();
|
|
149
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
150
|
+
message.balances = object.balances?.map(e => Balance.fromPartial(e)) || [];
|
|
151
|
+
message.supply = object.supply?.map(e => Coin.fromPartial(e)) || [];
|
|
152
|
+
message.denomMetadata = object.denomMetadata?.map(e => Metadata.fromPartial(e)) || [];
|
|
153
|
+
message.sendEnabled = object.sendEnabled?.map(e => SendEnabled.fromPartial(e)) || [];
|
|
154
|
+
return message;
|
|
155
|
+
},
|
|
156
|
+
fromAmino(object: GenesisStateAmino): GenesisState {
|
|
157
|
+
const message = createBaseGenesisState();
|
|
158
|
+
if (object.params !== undefined && object.params !== null) {
|
|
159
|
+
message.params = Params.fromAmino(object.params);
|
|
160
|
+
}
|
|
161
|
+
message.balances = object.balances?.map(e => Balance.fromAmino(e)) || [];
|
|
162
|
+
message.supply = object.supply?.map(e => Coin.fromAmino(e)) || [];
|
|
163
|
+
message.denomMetadata = object.denom_metadata?.map(e => Metadata.fromAmino(e)) || [];
|
|
164
|
+
message.sendEnabled = object.send_enabled?.map(e => SendEnabled.fromAmino(e)) || [];
|
|
165
|
+
return message;
|
|
166
|
+
},
|
|
167
|
+
toAmino(message: GenesisState): GenesisStateAmino {
|
|
168
|
+
const obj: any = {};
|
|
169
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
170
|
+
if (message.balances) {
|
|
171
|
+
obj.balances = message.balances.map(e => e ? Balance.toAmino(e) : undefined);
|
|
172
|
+
} else {
|
|
173
|
+
obj.balances = message.balances;
|
|
174
|
+
}
|
|
175
|
+
if (message.supply) {
|
|
176
|
+
obj.supply = message.supply.map(e => e ? Coin.toAmino(e) : undefined);
|
|
177
|
+
} else {
|
|
178
|
+
obj.supply = message.supply;
|
|
179
|
+
}
|
|
180
|
+
if (message.denomMetadata) {
|
|
181
|
+
obj.denom_metadata = message.denomMetadata.map(e => e ? Metadata.toAmino(e) : undefined);
|
|
182
|
+
} else {
|
|
183
|
+
obj.denom_metadata = message.denomMetadata;
|
|
184
|
+
}
|
|
185
|
+
if (message.sendEnabled) {
|
|
186
|
+
obj.send_enabled = message.sendEnabled.map(e => e ? SendEnabled.toAmino(e) : undefined);
|
|
187
|
+
} else {
|
|
188
|
+
obj.send_enabled = message.sendEnabled;
|
|
189
|
+
}
|
|
190
|
+
return obj;
|
|
191
|
+
},
|
|
192
|
+
fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
|
|
193
|
+
return GenesisState.fromAmino(object.value);
|
|
194
|
+
},
|
|
195
|
+
toAminoMsg(message: GenesisState): GenesisStateAminoMsg {
|
|
196
|
+
return {
|
|
197
|
+
type: "cosmos-sdk/GenesisState",
|
|
198
|
+
value: GenesisState.toAmino(message)
|
|
199
|
+
};
|
|
200
|
+
},
|
|
201
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
|
|
202
|
+
return GenesisState.decode(message.value);
|
|
203
|
+
},
|
|
204
|
+
toProto(message: GenesisState): Uint8Array {
|
|
205
|
+
return GenesisState.encode(message).finish();
|
|
206
|
+
},
|
|
207
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg {
|
|
208
|
+
return {
|
|
209
|
+
typeUrl: "/cosmos.bank.v1beta1.GenesisState",
|
|
210
|
+
value: GenesisState.encode(message).finish()
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
|
|
215
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GenesisState.aminoType, GenesisState.typeUrl);
|
|
216
|
+
function createBaseBalance(): Balance {
|
|
217
|
+
return {
|
|
218
|
+
address: "",
|
|
219
|
+
coins: []
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
export const Balance = {
|
|
223
|
+
typeUrl: "/cosmos.bank.v1beta1.Balance",
|
|
224
|
+
aminoType: "cosmos-sdk/Balance",
|
|
225
|
+
is(o: any): o is Balance {
|
|
226
|
+
return o && (o.$typeUrl === Balance.typeUrl || typeof o.address === "string" && Array.isArray(o.coins) && (!o.coins.length || Coin.is(o.coins[0])));
|
|
227
|
+
},
|
|
228
|
+
isAmino(o: any): o is BalanceAmino {
|
|
229
|
+
return o && (o.$typeUrl === Balance.typeUrl || typeof o.address === "string" && Array.isArray(o.coins) && (!o.coins.length || Coin.isAmino(o.coins[0])));
|
|
230
|
+
},
|
|
231
|
+
encode(message: Balance, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
232
|
+
if (message.address !== "") {
|
|
233
|
+
writer.uint32(10).string(message.address);
|
|
234
|
+
}
|
|
235
|
+
for (const v of message.coins) {
|
|
236
|
+
Coin.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
237
|
+
}
|
|
238
|
+
return writer;
|
|
239
|
+
},
|
|
240
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Balance {
|
|
241
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
242
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
243
|
+
const message = createBaseBalance();
|
|
244
|
+
while (reader.pos < end) {
|
|
245
|
+
const tag = reader.uint32();
|
|
246
|
+
switch (tag >>> 3) {
|
|
247
|
+
case 1:
|
|
248
|
+
message.address = reader.string();
|
|
249
|
+
break;
|
|
250
|
+
case 2:
|
|
251
|
+
message.coins.push(Coin.decode(reader, reader.uint32()));
|
|
252
|
+
break;
|
|
253
|
+
default:
|
|
254
|
+
reader.skipType(tag & 7);
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return message;
|
|
259
|
+
},
|
|
260
|
+
fromPartial(object: DeepPartial<Balance>): Balance {
|
|
261
|
+
const message = createBaseBalance();
|
|
262
|
+
message.address = object.address ?? "";
|
|
263
|
+
message.coins = object.coins?.map(e => Coin.fromPartial(e)) || [];
|
|
264
|
+
return message;
|
|
265
|
+
},
|
|
266
|
+
fromAmino(object: BalanceAmino): Balance {
|
|
267
|
+
const message = createBaseBalance();
|
|
268
|
+
if (object.address !== undefined && object.address !== null) {
|
|
269
|
+
message.address = object.address;
|
|
270
|
+
}
|
|
271
|
+
message.coins = object.coins?.map(e => Coin.fromAmino(e)) || [];
|
|
272
|
+
return message;
|
|
273
|
+
},
|
|
274
|
+
toAmino(message: Balance): BalanceAmino {
|
|
275
|
+
const obj: any = {};
|
|
276
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
277
|
+
if (message.coins) {
|
|
278
|
+
obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined);
|
|
279
|
+
} else {
|
|
280
|
+
obj.coins = message.coins;
|
|
281
|
+
}
|
|
282
|
+
return obj;
|
|
283
|
+
},
|
|
284
|
+
fromAminoMsg(object: BalanceAminoMsg): Balance {
|
|
285
|
+
return Balance.fromAmino(object.value);
|
|
286
|
+
},
|
|
287
|
+
toAminoMsg(message: Balance): BalanceAminoMsg {
|
|
288
|
+
return {
|
|
289
|
+
type: "cosmos-sdk/Balance",
|
|
290
|
+
value: Balance.toAmino(message)
|
|
291
|
+
};
|
|
292
|
+
},
|
|
293
|
+
fromProtoMsg(message: BalanceProtoMsg): Balance {
|
|
294
|
+
return Balance.decode(message.value);
|
|
295
|
+
},
|
|
296
|
+
toProto(message: Balance): Uint8Array {
|
|
297
|
+
return Balance.encode(message).finish();
|
|
298
|
+
},
|
|
299
|
+
toProtoMsg(message: Balance): BalanceProtoMsg {
|
|
300
|
+
return {
|
|
301
|
+
typeUrl: "/cosmos.bank.v1beta1.Balance",
|
|
302
|
+
value: Balance.encode(message).finish()
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
GlobalDecoderRegistry.register(Balance.typeUrl, Balance);
|
|
307
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Balance.aminoType, Balance.typeUrl);
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { RpcResolver, buildQuery } from "../../../helper-func-types";
|
|
2
|
+
import { buildUseQuery } from "../../../react-query";
|
|
3
|
+
import { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomMetadataByQueryStringRequest, QueryDenomMetadataByQueryStringResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse, QueryDenomOwnersByQueryRequest, QueryDenomOwnersByQueryResponse, QuerySendEnabledRequest, QuerySendEnabledResponse } from "./query";
|
|
4
|
+
export const createGetBalance = (clientResolver?: RpcResolver) => buildQuery<QueryBalanceRequest, QueryBalanceResponse>({
|
|
5
|
+
encode: QueryBalanceRequest.encode,
|
|
6
|
+
decode: QueryBalanceResponse.decode,
|
|
7
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
8
|
+
method: "Balance",
|
|
9
|
+
clientResolver
|
|
10
|
+
});
|
|
11
|
+
export const useGetBalance = buildUseQuery<QueryBalanceRequest, QueryBalanceResponse>({
|
|
12
|
+
builderQueryFn: createGetBalance,
|
|
13
|
+
queryKeyPrefix: "BalanceQuery"
|
|
14
|
+
});
|
|
15
|
+
export const createGetAllBalances = (clientResolver?: RpcResolver) => buildQuery<QueryAllBalancesRequest, QueryAllBalancesResponse>({
|
|
16
|
+
encode: QueryAllBalancesRequest.encode,
|
|
17
|
+
decode: QueryAllBalancesResponse.decode,
|
|
18
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
19
|
+
method: "AllBalances",
|
|
20
|
+
clientResolver
|
|
21
|
+
});
|
|
22
|
+
export const useGetAllBalances = buildUseQuery<QueryAllBalancesRequest, QueryAllBalancesResponse>({
|
|
23
|
+
builderQueryFn: createGetAllBalances,
|
|
24
|
+
queryKeyPrefix: "AllBalancesQuery"
|
|
25
|
+
});
|
|
26
|
+
export const createGetSpendableBalances = (clientResolver?: RpcResolver) => buildQuery<QuerySpendableBalancesRequest, QuerySpendableBalancesResponse>({
|
|
27
|
+
encode: QuerySpendableBalancesRequest.encode,
|
|
28
|
+
decode: QuerySpendableBalancesResponse.decode,
|
|
29
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
30
|
+
method: "SpendableBalances",
|
|
31
|
+
clientResolver
|
|
32
|
+
});
|
|
33
|
+
export const useGetSpendableBalances = buildUseQuery<QuerySpendableBalancesRequest, QuerySpendableBalancesResponse>({
|
|
34
|
+
builderQueryFn: createGetSpendableBalances,
|
|
35
|
+
queryKeyPrefix: "SpendableBalancesQuery"
|
|
36
|
+
});
|
|
37
|
+
export const createGetSpendableBalanceByDenom = (clientResolver?: RpcResolver) => buildQuery<QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponse>({
|
|
38
|
+
encode: QuerySpendableBalanceByDenomRequest.encode,
|
|
39
|
+
decode: QuerySpendableBalanceByDenomResponse.decode,
|
|
40
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
41
|
+
method: "SpendableBalanceByDenom",
|
|
42
|
+
clientResolver
|
|
43
|
+
});
|
|
44
|
+
export const useGetSpendableBalanceByDenom = buildUseQuery<QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponse>({
|
|
45
|
+
builderQueryFn: createGetSpendableBalanceByDenom,
|
|
46
|
+
queryKeyPrefix: "SpendableBalanceByDenomQuery"
|
|
47
|
+
});
|
|
48
|
+
export const createGetTotalSupply = (clientResolver?: RpcResolver) => buildQuery<QueryTotalSupplyRequest, QueryTotalSupplyResponse>({
|
|
49
|
+
encode: QueryTotalSupplyRequest.encode,
|
|
50
|
+
decode: QueryTotalSupplyResponse.decode,
|
|
51
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
52
|
+
method: "TotalSupply",
|
|
53
|
+
clientResolver
|
|
54
|
+
});
|
|
55
|
+
export const useGetTotalSupply = buildUseQuery<QueryTotalSupplyRequest, QueryTotalSupplyResponse>({
|
|
56
|
+
builderQueryFn: createGetTotalSupply,
|
|
57
|
+
queryKeyPrefix: "TotalSupplyQuery"
|
|
58
|
+
});
|
|
59
|
+
export const createGetSupplyOf = (clientResolver?: RpcResolver) => buildQuery<QuerySupplyOfRequest, QuerySupplyOfResponse>({
|
|
60
|
+
encode: QuerySupplyOfRequest.encode,
|
|
61
|
+
decode: QuerySupplyOfResponse.decode,
|
|
62
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
63
|
+
method: "SupplyOf",
|
|
64
|
+
clientResolver
|
|
65
|
+
});
|
|
66
|
+
export const useGetSupplyOf = buildUseQuery<QuerySupplyOfRequest, QuerySupplyOfResponse>({
|
|
67
|
+
builderQueryFn: createGetSupplyOf,
|
|
68
|
+
queryKeyPrefix: "SupplyOfQuery"
|
|
69
|
+
});
|
|
70
|
+
export const createGetParams = (clientResolver?: RpcResolver) => buildQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
71
|
+
encode: QueryParamsRequest.encode,
|
|
72
|
+
decode: QueryParamsResponse.decode,
|
|
73
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
74
|
+
method: "Params",
|
|
75
|
+
clientResolver
|
|
76
|
+
});
|
|
77
|
+
export const useGetParams = buildUseQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
78
|
+
builderQueryFn: createGetParams,
|
|
79
|
+
queryKeyPrefix: "ParamsQuery"
|
|
80
|
+
});
|
|
81
|
+
export const createGetDenomMetadata = (clientResolver?: RpcResolver) => buildQuery<QueryDenomMetadataRequest, QueryDenomMetadataResponse>({
|
|
82
|
+
encode: QueryDenomMetadataRequest.encode,
|
|
83
|
+
decode: QueryDenomMetadataResponse.decode,
|
|
84
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
85
|
+
method: "DenomMetadata",
|
|
86
|
+
clientResolver
|
|
87
|
+
});
|
|
88
|
+
export const useGetDenomMetadata = buildUseQuery<QueryDenomMetadataRequest, QueryDenomMetadataResponse>({
|
|
89
|
+
builderQueryFn: createGetDenomMetadata,
|
|
90
|
+
queryKeyPrefix: "DenomMetadataQuery"
|
|
91
|
+
});
|
|
92
|
+
export const createGetDenomMetadataByQueryString = (clientResolver?: RpcResolver) => buildQuery<QueryDenomMetadataByQueryStringRequest, QueryDenomMetadataByQueryStringResponse>({
|
|
93
|
+
encode: QueryDenomMetadataByQueryStringRequest.encode,
|
|
94
|
+
decode: QueryDenomMetadataByQueryStringResponse.decode,
|
|
95
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
96
|
+
method: "DenomMetadataByQueryString",
|
|
97
|
+
clientResolver
|
|
98
|
+
});
|
|
99
|
+
export const useGetDenomMetadataByQueryString = buildUseQuery<QueryDenomMetadataByQueryStringRequest, QueryDenomMetadataByQueryStringResponse>({
|
|
100
|
+
builderQueryFn: createGetDenomMetadataByQueryString,
|
|
101
|
+
queryKeyPrefix: "DenomMetadataByQueryStringQuery"
|
|
102
|
+
});
|
|
103
|
+
export const createGetDenomsMetadata = (clientResolver?: RpcResolver) => buildQuery<QueryDenomsMetadataRequest, QueryDenomsMetadataResponse>({
|
|
104
|
+
encode: QueryDenomsMetadataRequest.encode,
|
|
105
|
+
decode: QueryDenomsMetadataResponse.decode,
|
|
106
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
107
|
+
method: "DenomsMetadata",
|
|
108
|
+
clientResolver
|
|
109
|
+
});
|
|
110
|
+
export const useGetDenomsMetadata = buildUseQuery<QueryDenomsMetadataRequest, QueryDenomsMetadataResponse>({
|
|
111
|
+
builderQueryFn: createGetDenomsMetadata,
|
|
112
|
+
queryKeyPrefix: "DenomsMetadataQuery"
|
|
113
|
+
});
|
|
114
|
+
export const createGetDenomOwners = (clientResolver?: RpcResolver) => buildQuery<QueryDenomOwnersRequest, QueryDenomOwnersResponse>({
|
|
115
|
+
encode: QueryDenomOwnersRequest.encode,
|
|
116
|
+
decode: QueryDenomOwnersResponse.decode,
|
|
117
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
118
|
+
method: "DenomOwners",
|
|
119
|
+
clientResolver
|
|
120
|
+
});
|
|
121
|
+
export const useGetDenomOwners = buildUseQuery<QueryDenomOwnersRequest, QueryDenomOwnersResponse>({
|
|
122
|
+
builderQueryFn: createGetDenomOwners,
|
|
123
|
+
queryKeyPrefix: "DenomOwnersQuery"
|
|
124
|
+
});
|
|
125
|
+
export const createGetDenomOwnersByQuery = (clientResolver?: RpcResolver) => buildQuery<QueryDenomOwnersByQueryRequest, QueryDenomOwnersByQueryResponse>({
|
|
126
|
+
encode: QueryDenomOwnersByQueryRequest.encode,
|
|
127
|
+
decode: QueryDenomOwnersByQueryResponse.decode,
|
|
128
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
129
|
+
method: "DenomOwnersByQuery",
|
|
130
|
+
clientResolver
|
|
131
|
+
});
|
|
132
|
+
export const useGetDenomOwnersByQuery = buildUseQuery<QueryDenomOwnersByQueryRequest, QueryDenomOwnersByQueryResponse>({
|
|
133
|
+
builderQueryFn: createGetDenomOwnersByQuery,
|
|
134
|
+
queryKeyPrefix: "DenomOwnersByQueryQuery"
|
|
135
|
+
});
|
|
136
|
+
export const createGetSendEnabled = (clientResolver?: RpcResolver) => buildQuery<QuerySendEnabledRequest, QuerySendEnabledResponse>({
|
|
137
|
+
encode: QuerySendEnabledRequest.encode,
|
|
138
|
+
decode: QuerySendEnabledResponse.decode,
|
|
139
|
+
service: "cosmos.bank.v1beta1.Query",
|
|
140
|
+
method: "SendEnabled",
|
|
141
|
+
clientResolver
|
|
142
|
+
});
|
|
143
|
+
export const useGetSendEnabled = buildUseQuery<QuerySendEnabledRequest, QuerySendEnabledResponse>({
|
|
144
|
+
builderQueryFn: createGetSendEnabled,
|
|
145
|
+
queryKeyPrefix: "SendEnabledQuery"
|
|
146
|
+
});
|