@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,382 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
|
+
/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */
|
|
5
|
+
export interface ListAllInterfacesRequest {}
|
|
6
|
+
export interface ListAllInterfacesRequestProtoMsg {
|
|
7
|
+
typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesRequest";
|
|
8
|
+
value: Uint8Array;
|
|
9
|
+
}
|
|
10
|
+
/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */
|
|
11
|
+
export interface ListAllInterfacesRequestAmino {}
|
|
12
|
+
export interface ListAllInterfacesRequestAminoMsg {
|
|
13
|
+
type: "cosmos-sdk/ListAllInterfacesRequest";
|
|
14
|
+
value: ListAllInterfacesRequestAmino;
|
|
15
|
+
}
|
|
16
|
+
/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */
|
|
17
|
+
export interface ListAllInterfacesResponse {
|
|
18
|
+
/** interface_names is an array of all the registered interfaces. */
|
|
19
|
+
interfaceNames: string[];
|
|
20
|
+
}
|
|
21
|
+
export interface ListAllInterfacesResponseProtoMsg {
|
|
22
|
+
typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesResponse";
|
|
23
|
+
value: Uint8Array;
|
|
24
|
+
}
|
|
25
|
+
/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */
|
|
26
|
+
export interface ListAllInterfacesResponseAmino {
|
|
27
|
+
/** interface_names is an array of all the registered interfaces. */
|
|
28
|
+
interface_names: string[];
|
|
29
|
+
}
|
|
30
|
+
export interface ListAllInterfacesResponseAminoMsg {
|
|
31
|
+
type: "cosmos-sdk/ListAllInterfacesResponse";
|
|
32
|
+
value: ListAllInterfacesResponseAmino;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* ListImplementationsRequest is the request type of the ListImplementations
|
|
36
|
+
* RPC.
|
|
37
|
+
*/
|
|
38
|
+
export interface ListImplementationsRequest {
|
|
39
|
+
/** interface_name defines the interface to query the implementations for. */
|
|
40
|
+
interfaceName: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ListImplementationsRequestProtoMsg {
|
|
43
|
+
typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsRequest";
|
|
44
|
+
value: Uint8Array;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* ListImplementationsRequest is the request type of the ListImplementations
|
|
48
|
+
* RPC.
|
|
49
|
+
*/
|
|
50
|
+
export interface ListImplementationsRequestAmino {
|
|
51
|
+
/** interface_name defines the interface to query the implementations for. */
|
|
52
|
+
interface_name: string;
|
|
53
|
+
}
|
|
54
|
+
export interface ListImplementationsRequestAminoMsg {
|
|
55
|
+
type: "cosmos-sdk/ListImplementationsRequest";
|
|
56
|
+
value: ListImplementationsRequestAmino;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* ListImplementationsResponse is the response type of the ListImplementations
|
|
60
|
+
* RPC.
|
|
61
|
+
*/
|
|
62
|
+
export interface ListImplementationsResponse {
|
|
63
|
+
implementationMessageNames: string[];
|
|
64
|
+
}
|
|
65
|
+
export interface ListImplementationsResponseProtoMsg {
|
|
66
|
+
typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsResponse";
|
|
67
|
+
value: Uint8Array;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* ListImplementationsResponse is the response type of the ListImplementations
|
|
71
|
+
* RPC.
|
|
72
|
+
*/
|
|
73
|
+
export interface ListImplementationsResponseAmino {
|
|
74
|
+
implementation_message_names: string[];
|
|
75
|
+
}
|
|
76
|
+
export interface ListImplementationsResponseAminoMsg {
|
|
77
|
+
type: "cosmos-sdk/ListImplementationsResponse";
|
|
78
|
+
value: ListImplementationsResponseAmino;
|
|
79
|
+
}
|
|
80
|
+
function createBaseListAllInterfacesRequest(): ListAllInterfacesRequest {
|
|
81
|
+
return {};
|
|
82
|
+
}
|
|
83
|
+
export const ListAllInterfacesRequest = {
|
|
84
|
+
typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesRequest",
|
|
85
|
+
aminoType: "cosmos-sdk/ListAllInterfacesRequest",
|
|
86
|
+
is(o: any): o is ListAllInterfacesRequest {
|
|
87
|
+
return o && o.$typeUrl === ListAllInterfacesRequest.typeUrl;
|
|
88
|
+
},
|
|
89
|
+
isAmino(o: any): o is ListAllInterfacesRequestAmino {
|
|
90
|
+
return o && o.$typeUrl === ListAllInterfacesRequest.typeUrl;
|
|
91
|
+
},
|
|
92
|
+
encode(_: ListAllInterfacesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
93
|
+
return writer;
|
|
94
|
+
},
|
|
95
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesRequest {
|
|
96
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
97
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
98
|
+
const message = createBaseListAllInterfacesRequest();
|
|
99
|
+
while (reader.pos < end) {
|
|
100
|
+
const tag = reader.uint32();
|
|
101
|
+
switch (tag >>> 3) {
|
|
102
|
+
default:
|
|
103
|
+
reader.skipType(tag & 7);
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return message;
|
|
108
|
+
},
|
|
109
|
+
fromPartial(_: DeepPartial<ListAllInterfacesRequest>): ListAllInterfacesRequest {
|
|
110
|
+
const message = createBaseListAllInterfacesRequest();
|
|
111
|
+
return message;
|
|
112
|
+
},
|
|
113
|
+
fromAmino(_: ListAllInterfacesRequestAmino): ListAllInterfacesRequest {
|
|
114
|
+
const message = createBaseListAllInterfacesRequest();
|
|
115
|
+
return message;
|
|
116
|
+
},
|
|
117
|
+
toAmino(_: ListAllInterfacesRequest): ListAllInterfacesRequestAmino {
|
|
118
|
+
const obj: any = {};
|
|
119
|
+
return obj;
|
|
120
|
+
},
|
|
121
|
+
fromAminoMsg(object: ListAllInterfacesRequestAminoMsg): ListAllInterfacesRequest {
|
|
122
|
+
return ListAllInterfacesRequest.fromAmino(object.value);
|
|
123
|
+
},
|
|
124
|
+
toAminoMsg(message: ListAllInterfacesRequest): ListAllInterfacesRequestAminoMsg {
|
|
125
|
+
return {
|
|
126
|
+
type: "cosmos-sdk/ListAllInterfacesRequest",
|
|
127
|
+
value: ListAllInterfacesRequest.toAmino(message)
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
fromProtoMsg(message: ListAllInterfacesRequestProtoMsg): ListAllInterfacesRequest {
|
|
131
|
+
return ListAllInterfacesRequest.decode(message.value);
|
|
132
|
+
},
|
|
133
|
+
toProto(message: ListAllInterfacesRequest): Uint8Array {
|
|
134
|
+
return ListAllInterfacesRequest.encode(message).finish();
|
|
135
|
+
},
|
|
136
|
+
toProtoMsg(message: ListAllInterfacesRequest): ListAllInterfacesRequestProtoMsg {
|
|
137
|
+
return {
|
|
138
|
+
typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesRequest",
|
|
139
|
+
value: ListAllInterfacesRequest.encode(message).finish()
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
GlobalDecoderRegistry.register(ListAllInterfacesRequest.typeUrl, ListAllInterfacesRequest);
|
|
144
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ListAllInterfacesRequest.aminoType, ListAllInterfacesRequest.typeUrl);
|
|
145
|
+
function createBaseListAllInterfacesResponse(): ListAllInterfacesResponse {
|
|
146
|
+
return {
|
|
147
|
+
interfaceNames: []
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
export const ListAllInterfacesResponse = {
|
|
151
|
+
typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesResponse",
|
|
152
|
+
aminoType: "cosmos-sdk/ListAllInterfacesResponse",
|
|
153
|
+
is(o: any): o is ListAllInterfacesResponse {
|
|
154
|
+
return o && (o.$typeUrl === ListAllInterfacesResponse.typeUrl || Array.isArray(o.interfaceNames) && (!o.interfaceNames.length || typeof o.interfaceNames[0] === "string"));
|
|
155
|
+
},
|
|
156
|
+
isAmino(o: any): o is ListAllInterfacesResponseAmino {
|
|
157
|
+
return o && (o.$typeUrl === ListAllInterfacesResponse.typeUrl || Array.isArray(o.interface_names) && (!o.interface_names.length || typeof o.interface_names[0] === "string"));
|
|
158
|
+
},
|
|
159
|
+
encode(message: ListAllInterfacesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
160
|
+
for (const v of message.interfaceNames) {
|
|
161
|
+
writer.uint32(10).string(v!);
|
|
162
|
+
}
|
|
163
|
+
return writer;
|
|
164
|
+
},
|
|
165
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesResponse {
|
|
166
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
167
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
168
|
+
const message = createBaseListAllInterfacesResponse();
|
|
169
|
+
while (reader.pos < end) {
|
|
170
|
+
const tag = reader.uint32();
|
|
171
|
+
switch (tag >>> 3) {
|
|
172
|
+
case 1:
|
|
173
|
+
message.interfaceNames.push(reader.string());
|
|
174
|
+
break;
|
|
175
|
+
default:
|
|
176
|
+
reader.skipType(tag & 7);
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return message;
|
|
181
|
+
},
|
|
182
|
+
fromPartial(object: DeepPartial<ListAllInterfacesResponse>): ListAllInterfacesResponse {
|
|
183
|
+
const message = createBaseListAllInterfacesResponse();
|
|
184
|
+
message.interfaceNames = object.interfaceNames?.map(e => e) || [];
|
|
185
|
+
return message;
|
|
186
|
+
},
|
|
187
|
+
fromAmino(object: ListAllInterfacesResponseAmino): ListAllInterfacesResponse {
|
|
188
|
+
const message = createBaseListAllInterfacesResponse();
|
|
189
|
+
message.interfaceNames = object.interface_names?.map(e => e) || [];
|
|
190
|
+
return message;
|
|
191
|
+
},
|
|
192
|
+
toAmino(message: ListAllInterfacesResponse): ListAllInterfacesResponseAmino {
|
|
193
|
+
const obj: any = {};
|
|
194
|
+
if (message.interfaceNames) {
|
|
195
|
+
obj.interface_names = message.interfaceNames.map(e => e);
|
|
196
|
+
} else {
|
|
197
|
+
obj.interface_names = message.interfaceNames;
|
|
198
|
+
}
|
|
199
|
+
return obj;
|
|
200
|
+
},
|
|
201
|
+
fromAminoMsg(object: ListAllInterfacesResponseAminoMsg): ListAllInterfacesResponse {
|
|
202
|
+
return ListAllInterfacesResponse.fromAmino(object.value);
|
|
203
|
+
},
|
|
204
|
+
toAminoMsg(message: ListAllInterfacesResponse): ListAllInterfacesResponseAminoMsg {
|
|
205
|
+
return {
|
|
206
|
+
type: "cosmos-sdk/ListAllInterfacesResponse",
|
|
207
|
+
value: ListAllInterfacesResponse.toAmino(message)
|
|
208
|
+
};
|
|
209
|
+
},
|
|
210
|
+
fromProtoMsg(message: ListAllInterfacesResponseProtoMsg): ListAllInterfacesResponse {
|
|
211
|
+
return ListAllInterfacesResponse.decode(message.value);
|
|
212
|
+
},
|
|
213
|
+
toProto(message: ListAllInterfacesResponse): Uint8Array {
|
|
214
|
+
return ListAllInterfacesResponse.encode(message).finish();
|
|
215
|
+
},
|
|
216
|
+
toProtoMsg(message: ListAllInterfacesResponse): ListAllInterfacesResponseProtoMsg {
|
|
217
|
+
return {
|
|
218
|
+
typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesResponse",
|
|
219
|
+
value: ListAllInterfacesResponse.encode(message).finish()
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
GlobalDecoderRegistry.register(ListAllInterfacesResponse.typeUrl, ListAllInterfacesResponse);
|
|
224
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ListAllInterfacesResponse.aminoType, ListAllInterfacesResponse.typeUrl);
|
|
225
|
+
function createBaseListImplementationsRequest(): ListImplementationsRequest {
|
|
226
|
+
return {
|
|
227
|
+
interfaceName: ""
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
export const ListImplementationsRequest = {
|
|
231
|
+
typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsRequest",
|
|
232
|
+
aminoType: "cosmos-sdk/ListImplementationsRequest",
|
|
233
|
+
is(o: any): o is ListImplementationsRequest {
|
|
234
|
+
return o && (o.$typeUrl === ListImplementationsRequest.typeUrl || typeof o.interfaceName === "string");
|
|
235
|
+
},
|
|
236
|
+
isAmino(o: any): o is ListImplementationsRequestAmino {
|
|
237
|
+
return o && (o.$typeUrl === ListImplementationsRequest.typeUrl || typeof o.interface_name === "string");
|
|
238
|
+
},
|
|
239
|
+
encode(message: ListImplementationsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
240
|
+
if (message.interfaceName !== "") {
|
|
241
|
+
writer.uint32(10).string(message.interfaceName);
|
|
242
|
+
}
|
|
243
|
+
return writer;
|
|
244
|
+
},
|
|
245
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsRequest {
|
|
246
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
247
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
248
|
+
const message = createBaseListImplementationsRequest();
|
|
249
|
+
while (reader.pos < end) {
|
|
250
|
+
const tag = reader.uint32();
|
|
251
|
+
switch (tag >>> 3) {
|
|
252
|
+
case 1:
|
|
253
|
+
message.interfaceName = reader.string();
|
|
254
|
+
break;
|
|
255
|
+
default:
|
|
256
|
+
reader.skipType(tag & 7);
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return message;
|
|
261
|
+
},
|
|
262
|
+
fromPartial(object: DeepPartial<ListImplementationsRequest>): ListImplementationsRequest {
|
|
263
|
+
const message = createBaseListImplementationsRequest();
|
|
264
|
+
message.interfaceName = object.interfaceName ?? "";
|
|
265
|
+
return message;
|
|
266
|
+
},
|
|
267
|
+
fromAmino(object: ListImplementationsRequestAmino): ListImplementationsRequest {
|
|
268
|
+
const message = createBaseListImplementationsRequest();
|
|
269
|
+
if (object.interface_name !== undefined && object.interface_name !== null) {
|
|
270
|
+
message.interfaceName = object.interface_name;
|
|
271
|
+
}
|
|
272
|
+
return message;
|
|
273
|
+
},
|
|
274
|
+
toAmino(message: ListImplementationsRequest): ListImplementationsRequestAmino {
|
|
275
|
+
const obj: any = {};
|
|
276
|
+
obj.interface_name = message.interfaceName === "" ? undefined : message.interfaceName;
|
|
277
|
+
return obj;
|
|
278
|
+
},
|
|
279
|
+
fromAminoMsg(object: ListImplementationsRequestAminoMsg): ListImplementationsRequest {
|
|
280
|
+
return ListImplementationsRequest.fromAmino(object.value);
|
|
281
|
+
},
|
|
282
|
+
toAminoMsg(message: ListImplementationsRequest): ListImplementationsRequestAminoMsg {
|
|
283
|
+
return {
|
|
284
|
+
type: "cosmos-sdk/ListImplementationsRequest",
|
|
285
|
+
value: ListImplementationsRequest.toAmino(message)
|
|
286
|
+
};
|
|
287
|
+
},
|
|
288
|
+
fromProtoMsg(message: ListImplementationsRequestProtoMsg): ListImplementationsRequest {
|
|
289
|
+
return ListImplementationsRequest.decode(message.value);
|
|
290
|
+
},
|
|
291
|
+
toProto(message: ListImplementationsRequest): Uint8Array {
|
|
292
|
+
return ListImplementationsRequest.encode(message).finish();
|
|
293
|
+
},
|
|
294
|
+
toProtoMsg(message: ListImplementationsRequest): ListImplementationsRequestProtoMsg {
|
|
295
|
+
return {
|
|
296
|
+
typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsRequest",
|
|
297
|
+
value: ListImplementationsRequest.encode(message).finish()
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
GlobalDecoderRegistry.register(ListImplementationsRequest.typeUrl, ListImplementationsRequest);
|
|
302
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ListImplementationsRequest.aminoType, ListImplementationsRequest.typeUrl);
|
|
303
|
+
function createBaseListImplementationsResponse(): ListImplementationsResponse {
|
|
304
|
+
return {
|
|
305
|
+
implementationMessageNames: []
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
export const ListImplementationsResponse = {
|
|
309
|
+
typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsResponse",
|
|
310
|
+
aminoType: "cosmos-sdk/ListImplementationsResponse",
|
|
311
|
+
is(o: any): o is ListImplementationsResponse {
|
|
312
|
+
return o && (o.$typeUrl === ListImplementationsResponse.typeUrl || Array.isArray(o.implementationMessageNames) && (!o.implementationMessageNames.length || typeof o.implementationMessageNames[0] === "string"));
|
|
313
|
+
},
|
|
314
|
+
isAmino(o: any): o is ListImplementationsResponseAmino {
|
|
315
|
+
return o && (o.$typeUrl === ListImplementationsResponse.typeUrl || Array.isArray(o.implementation_message_names) && (!o.implementation_message_names.length || typeof o.implementation_message_names[0] === "string"));
|
|
316
|
+
},
|
|
317
|
+
encode(message: ListImplementationsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
318
|
+
for (const v of message.implementationMessageNames) {
|
|
319
|
+
writer.uint32(10).string(v!);
|
|
320
|
+
}
|
|
321
|
+
return writer;
|
|
322
|
+
},
|
|
323
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsResponse {
|
|
324
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
325
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
326
|
+
const message = createBaseListImplementationsResponse();
|
|
327
|
+
while (reader.pos < end) {
|
|
328
|
+
const tag = reader.uint32();
|
|
329
|
+
switch (tag >>> 3) {
|
|
330
|
+
case 1:
|
|
331
|
+
message.implementationMessageNames.push(reader.string());
|
|
332
|
+
break;
|
|
333
|
+
default:
|
|
334
|
+
reader.skipType(tag & 7);
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return message;
|
|
339
|
+
},
|
|
340
|
+
fromPartial(object: DeepPartial<ListImplementationsResponse>): ListImplementationsResponse {
|
|
341
|
+
const message = createBaseListImplementationsResponse();
|
|
342
|
+
message.implementationMessageNames = object.implementationMessageNames?.map(e => e) || [];
|
|
343
|
+
return message;
|
|
344
|
+
},
|
|
345
|
+
fromAmino(object: ListImplementationsResponseAmino): ListImplementationsResponse {
|
|
346
|
+
const message = createBaseListImplementationsResponse();
|
|
347
|
+
message.implementationMessageNames = object.implementation_message_names?.map(e => e) || [];
|
|
348
|
+
return message;
|
|
349
|
+
},
|
|
350
|
+
toAmino(message: ListImplementationsResponse): ListImplementationsResponseAmino {
|
|
351
|
+
const obj: any = {};
|
|
352
|
+
if (message.implementationMessageNames) {
|
|
353
|
+
obj.implementation_message_names = message.implementationMessageNames.map(e => e);
|
|
354
|
+
} else {
|
|
355
|
+
obj.implementation_message_names = message.implementationMessageNames;
|
|
356
|
+
}
|
|
357
|
+
return obj;
|
|
358
|
+
},
|
|
359
|
+
fromAminoMsg(object: ListImplementationsResponseAminoMsg): ListImplementationsResponse {
|
|
360
|
+
return ListImplementationsResponse.fromAmino(object.value);
|
|
361
|
+
},
|
|
362
|
+
toAminoMsg(message: ListImplementationsResponse): ListImplementationsResponseAminoMsg {
|
|
363
|
+
return {
|
|
364
|
+
type: "cosmos-sdk/ListImplementationsResponse",
|
|
365
|
+
value: ListImplementationsResponse.toAmino(message)
|
|
366
|
+
};
|
|
367
|
+
},
|
|
368
|
+
fromProtoMsg(message: ListImplementationsResponseProtoMsg): ListImplementationsResponse {
|
|
369
|
+
return ListImplementationsResponse.decode(message.value);
|
|
370
|
+
},
|
|
371
|
+
toProto(message: ListImplementationsResponse): Uint8Array {
|
|
372
|
+
return ListImplementationsResponse.encode(message).finish();
|
|
373
|
+
},
|
|
374
|
+
toProtoMsg(message: ListImplementationsResponse): ListImplementationsResponseProtoMsg {
|
|
375
|
+
return {
|
|
376
|
+
typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsResponse",
|
|
377
|
+
value: ListImplementationsResponse.encode(message).finish()
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
GlobalDecoderRegistry.register(ListImplementationsResponse.typeUrl, ListImplementationsResponse);
|
|
382
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ListImplementationsResponse.aminoType, ListImplementationsResponse.typeUrl);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { RpcResolver, buildQuery } from "../../../../helper-func-types";
|
|
2
|
+
import { buildUseQuery } from "../../../../react-query";
|
|
3
|
+
import { GetAuthnDescriptorRequest, GetAuthnDescriptorResponse, GetChainDescriptorRequest, GetChainDescriptorResponse, GetCodecDescriptorRequest, GetCodecDescriptorResponse, GetConfigurationDescriptorRequest, GetConfigurationDescriptorResponse, GetQueryServicesDescriptorRequest, GetQueryServicesDescriptorResponse, GetTxDescriptorRequest, GetTxDescriptorResponse } from "./reflection";
|
|
4
|
+
export const createGetGetAuthnDescriptor = (clientResolver?: RpcResolver) => buildQuery<GetAuthnDescriptorRequest, GetAuthnDescriptorResponse>({
|
|
5
|
+
encode: GetAuthnDescriptorRequest.encode,
|
|
6
|
+
decode: GetAuthnDescriptorResponse.decode,
|
|
7
|
+
service: "cosmos.base.reflection.v2alpha1.ReflectionService",
|
|
8
|
+
method: "GetAuthnDescriptor",
|
|
9
|
+
clientResolver
|
|
10
|
+
});
|
|
11
|
+
export const useGetGetAuthnDescriptor = buildUseQuery<GetAuthnDescriptorRequest, GetAuthnDescriptorResponse>({
|
|
12
|
+
builderQueryFn: createGetGetAuthnDescriptor,
|
|
13
|
+
queryKeyPrefix: "GetAuthnDescriptorQuery"
|
|
14
|
+
});
|
|
15
|
+
export const createGetGetChainDescriptor = (clientResolver?: RpcResolver) => buildQuery<GetChainDescriptorRequest, GetChainDescriptorResponse>({
|
|
16
|
+
encode: GetChainDescriptorRequest.encode,
|
|
17
|
+
decode: GetChainDescriptorResponse.decode,
|
|
18
|
+
service: "cosmos.base.reflection.v2alpha1.ReflectionService",
|
|
19
|
+
method: "GetChainDescriptor",
|
|
20
|
+
clientResolver
|
|
21
|
+
});
|
|
22
|
+
export const useGetGetChainDescriptor = buildUseQuery<GetChainDescriptorRequest, GetChainDescriptorResponse>({
|
|
23
|
+
builderQueryFn: createGetGetChainDescriptor,
|
|
24
|
+
queryKeyPrefix: "GetChainDescriptorQuery"
|
|
25
|
+
});
|
|
26
|
+
export const createGetGetCodecDescriptor = (clientResolver?: RpcResolver) => buildQuery<GetCodecDescriptorRequest, GetCodecDescriptorResponse>({
|
|
27
|
+
encode: GetCodecDescriptorRequest.encode,
|
|
28
|
+
decode: GetCodecDescriptorResponse.decode,
|
|
29
|
+
service: "cosmos.base.reflection.v2alpha1.ReflectionService",
|
|
30
|
+
method: "GetCodecDescriptor",
|
|
31
|
+
clientResolver
|
|
32
|
+
});
|
|
33
|
+
export const useGetGetCodecDescriptor = buildUseQuery<GetCodecDescriptorRequest, GetCodecDescriptorResponse>({
|
|
34
|
+
builderQueryFn: createGetGetCodecDescriptor,
|
|
35
|
+
queryKeyPrefix: "GetCodecDescriptorQuery"
|
|
36
|
+
});
|
|
37
|
+
export const createGetGetConfigurationDescriptor = (clientResolver?: RpcResolver) => buildQuery<GetConfigurationDescriptorRequest, GetConfigurationDescriptorResponse>({
|
|
38
|
+
encode: GetConfigurationDescriptorRequest.encode,
|
|
39
|
+
decode: GetConfigurationDescriptorResponse.decode,
|
|
40
|
+
service: "cosmos.base.reflection.v2alpha1.ReflectionService",
|
|
41
|
+
method: "GetConfigurationDescriptor",
|
|
42
|
+
clientResolver
|
|
43
|
+
});
|
|
44
|
+
export const useGetGetConfigurationDescriptor = buildUseQuery<GetConfigurationDescriptorRequest, GetConfigurationDescriptorResponse>({
|
|
45
|
+
builderQueryFn: createGetGetConfigurationDescriptor,
|
|
46
|
+
queryKeyPrefix: "GetConfigurationDescriptorQuery"
|
|
47
|
+
});
|
|
48
|
+
export const createGetGetQueryServicesDescriptor = (clientResolver?: RpcResolver) => buildQuery<GetQueryServicesDescriptorRequest, GetQueryServicesDescriptorResponse>({
|
|
49
|
+
encode: GetQueryServicesDescriptorRequest.encode,
|
|
50
|
+
decode: GetQueryServicesDescriptorResponse.decode,
|
|
51
|
+
service: "cosmos.base.reflection.v2alpha1.ReflectionService",
|
|
52
|
+
method: "GetQueryServicesDescriptor",
|
|
53
|
+
clientResolver
|
|
54
|
+
});
|
|
55
|
+
export const useGetGetQueryServicesDescriptor = buildUseQuery<GetQueryServicesDescriptorRequest, GetQueryServicesDescriptorResponse>({
|
|
56
|
+
builderQueryFn: createGetGetQueryServicesDescriptor,
|
|
57
|
+
queryKeyPrefix: "GetQueryServicesDescriptorQuery"
|
|
58
|
+
});
|
|
59
|
+
export const createGetGetTxDescriptor = (clientResolver?: RpcResolver) => buildQuery<GetTxDescriptorRequest, GetTxDescriptorResponse>({
|
|
60
|
+
encode: GetTxDescriptorRequest.encode,
|
|
61
|
+
decode: GetTxDescriptorResponse.decode,
|
|
62
|
+
service: "cosmos.base.reflection.v2alpha1.ReflectionService",
|
|
63
|
+
method: "GetTxDescriptor",
|
|
64
|
+
clientResolver
|
|
65
|
+
});
|
|
66
|
+
export const useGetGetTxDescriptor = buildUseQuery<GetTxDescriptorRequest, GetTxDescriptorResponse>({
|
|
67
|
+
builderQueryFn: createGetGetTxDescriptor,
|
|
68
|
+
queryKeyPrefix: "GetTxDescriptorQuery"
|
|
69
|
+
});
|