@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,280 @@
|
|
|
1
|
+
import { Coin, CoinAmino } from "../../../../cosmos/base/v1beta1/coin";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
5
|
+
/** Allocation defines the spend limit for a particular port and channel */
|
|
6
|
+
export interface Allocation {
|
|
7
|
+
/** the port on which the packet will be sent */
|
|
8
|
+
sourcePort: string;
|
|
9
|
+
/** the channel by which the packet will be sent */
|
|
10
|
+
sourceChannel: string;
|
|
11
|
+
/** spend limitation on the channel */
|
|
12
|
+
spendLimit: Coin[];
|
|
13
|
+
/** allow list of receivers, an empty allow list permits any receiver address */
|
|
14
|
+
allowList: string[];
|
|
15
|
+
/**
|
|
16
|
+
* allow list of memo strings, an empty list prohibits all memo strings;
|
|
17
|
+
* a list only with "*" permits any memo string
|
|
18
|
+
*/
|
|
19
|
+
allowedPacketData: string[];
|
|
20
|
+
}
|
|
21
|
+
export interface AllocationProtoMsg {
|
|
22
|
+
typeUrl: "/ibc.applications.transfer.v1.Allocation";
|
|
23
|
+
value: Uint8Array;
|
|
24
|
+
}
|
|
25
|
+
/** Allocation defines the spend limit for a particular port and channel */
|
|
26
|
+
export interface AllocationAmino {
|
|
27
|
+
/** the port on which the packet will be sent */
|
|
28
|
+
source_port: string;
|
|
29
|
+
/** the channel by which the packet will be sent */
|
|
30
|
+
source_channel: string;
|
|
31
|
+
/** spend limitation on the channel */
|
|
32
|
+
spend_limit: CoinAmino[];
|
|
33
|
+
/** allow list of receivers, an empty allow list permits any receiver address */
|
|
34
|
+
allow_list: string[];
|
|
35
|
+
/**
|
|
36
|
+
* allow list of memo strings, an empty list prohibits all memo strings;
|
|
37
|
+
* a list only with "*" permits any memo string
|
|
38
|
+
*/
|
|
39
|
+
allowed_packet_data: string[];
|
|
40
|
+
}
|
|
41
|
+
export interface AllocationAminoMsg {
|
|
42
|
+
type: "cosmos-sdk/Allocation";
|
|
43
|
+
value: AllocationAmino;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* TransferAuthorization allows the grantee to spend up to spend_limit coins from
|
|
47
|
+
* the granter's account for ibc transfer on a specific channel
|
|
48
|
+
*/
|
|
49
|
+
export interface TransferAuthorization {
|
|
50
|
+
/** port and channel amounts */
|
|
51
|
+
allocations: Allocation[];
|
|
52
|
+
}
|
|
53
|
+
export interface TransferAuthorizationProtoMsg {
|
|
54
|
+
typeUrl: "/ibc.applications.transfer.v1.TransferAuthorization";
|
|
55
|
+
value: Uint8Array;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* TransferAuthorization allows the grantee to spend up to spend_limit coins from
|
|
59
|
+
* the granter's account for ibc transfer on a specific channel
|
|
60
|
+
*/
|
|
61
|
+
export interface TransferAuthorizationAmino {
|
|
62
|
+
/** port and channel amounts */
|
|
63
|
+
allocations: AllocationAmino[];
|
|
64
|
+
}
|
|
65
|
+
export interface TransferAuthorizationAminoMsg {
|
|
66
|
+
type: "cosmos-sdk/TransferAuthorization";
|
|
67
|
+
value: TransferAuthorizationAmino;
|
|
68
|
+
}
|
|
69
|
+
function createBaseAllocation(): Allocation {
|
|
70
|
+
return {
|
|
71
|
+
sourcePort: "",
|
|
72
|
+
sourceChannel: "",
|
|
73
|
+
spendLimit: [],
|
|
74
|
+
allowList: [],
|
|
75
|
+
allowedPacketData: []
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export const Allocation = {
|
|
79
|
+
typeUrl: "/ibc.applications.transfer.v1.Allocation",
|
|
80
|
+
aminoType: "cosmos-sdk/Allocation",
|
|
81
|
+
is(o: any): o is Allocation {
|
|
82
|
+
return o && (o.$typeUrl === Allocation.typeUrl || typeof o.sourcePort === "string" && typeof o.sourceChannel === "string" && Array.isArray(o.spendLimit) && (!o.spendLimit.length || Coin.is(o.spendLimit[0])) && Array.isArray(o.allowList) && (!o.allowList.length || typeof o.allowList[0] === "string") && Array.isArray(o.allowedPacketData) && (!o.allowedPacketData.length || typeof o.allowedPacketData[0] === "string"));
|
|
83
|
+
},
|
|
84
|
+
isAmino(o: any): o is AllocationAmino {
|
|
85
|
+
return o && (o.$typeUrl === Allocation.typeUrl || typeof o.source_port === "string" && typeof o.source_channel === "string" && Array.isArray(o.spend_limit) && (!o.spend_limit.length || Coin.isAmino(o.spend_limit[0])) && Array.isArray(o.allow_list) && (!o.allow_list.length || typeof o.allow_list[0] === "string") && Array.isArray(o.allowed_packet_data) && (!o.allowed_packet_data.length || typeof o.allowed_packet_data[0] === "string"));
|
|
86
|
+
},
|
|
87
|
+
encode(message: Allocation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
88
|
+
if (message.sourcePort !== "") {
|
|
89
|
+
writer.uint32(10).string(message.sourcePort);
|
|
90
|
+
}
|
|
91
|
+
if (message.sourceChannel !== "") {
|
|
92
|
+
writer.uint32(18).string(message.sourceChannel);
|
|
93
|
+
}
|
|
94
|
+
for (const v of message.spendLimit) {
|
|
95
|
+
Coin.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
96
|
+
}
|
|
97
|
+
for (const v of message.allowList) {
|
|
98
|
+
writer.uint32(34).string(v!);
|
|
99
|
+
}
|
|
100
|
+
for (const v of message.allowedPacketData) {
|
|
101
|
+
writer.uint32(42).string(v!);
|
|
102
|
+
}
|
|
103
|
+
return writer;
|
|
104
|
+
},
|
|
105
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Allocation {
|
|
106
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
107
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
|
+
const message = createBaseAllocation();
|
|
109
|
+
while (reader.pos < end) {
|
|
110
|
+
const tag = reader.uint32();
|
|
111
|
+
switch (tag >>> 3) {
|
|
112
|
+
case 1:
|
|
113
|
+
message.sourcePort = reader.string();
|
|
114
|
+
break;
|
|
115
|
+
case 2:
|
|
116
|
+
message.sourceChannel = reader.string();
|
|
117
|
+
break;
|
|
118
|
+
case 3:
|
|
119
|
+
message.spendLimit.push(Coin.decode(reader, reader.uint32()));
|
|
120
|
+
break;
|
|
121
|
+
case 4:
|
|
122
|
+
message.allowList.push(reader.string());
|
|
123
|
+
break;
|
|
124
|
+
case 5:
|
|
125
|
+
message.allowedPacketData.push(reader.string());
|
|
126
|
+
break;
|
|
127
|
+
default:
|
|
128
|
+
reader.skipType(tag & 7);
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return message;
|
|
133
|
+
},
|
|
134
|
+
fromPartial(object: DeepPartial<Allocation>): Allocation {
|
|
135
|
+
const message = createBaseAllocation();
|
|
136
|
+
message.sourcePort = object.sourcePort ?? "";
|
|
137
|
+
message.sourceChannel = object.sourceChannel ?? "";
|
|
138
|
+
message.spendLimit = object.spendLimit?.map(e => Coin.fromPartial(e)) || [];
|
|
139
|
+
message.allowList = object.allowList?.map(e => e) || [];
|
|
140
|
+
message.allowedPacketData = object.allowedPacketData?.map(e => e) || [];
|
|
141
|
+
return message;
|
|
142
|
+
},
|
|
143
|
+
fromAmino(object: AllocationAmino): Allocation {
|
|
144
|
+
const message = createBaseAllocation();
|
|
145
|
+
if (object.source_port !== undefined && object.source_port !== null) {
|
|
146
|
+
message.sourcePort = object.source_port;
|
|
147
|
+
}
|
|
148
|
+
if (object.source_channel !== undefined && object.source_channel !== null) {
|
|
149
|
+
message.sourceChannel = object.source_channel;
|
|
150
|
+
}
|
|
151
|
+
message.spendLimit = object.spend_limit?.map(e => Coin.fromAmino(e)) || [];
|
|
152
|
+
message.allowList = object.allow_list?.map(e => e) || [];
|
|
153
|
+
message.allowedPacketData = object.allowed_packet_data?.map(e => e) || [];
|
|
154
|
+
return message;
|
|
155
|
+
},
|
|
156
|
+
toAmino(message: Allocation): AllocationAmino {
|
|
157
|
+
const obj: any = {};
|
|
158
|
+
obj.source_port = message.sourcePort === "" ? undefined : message.sourcePort;
|
|
159
|
+
obj.source_channel = message.sourceChannel === "" ? undefined : message.sourceChannel;
|
|
160
|
+
if (message.spendLimit) {
|
|
161
|
+
obj.spend_limit = message.spendLimit.map(e => e ? Coin.toAmino(e) : undefined);
|
|
162
|
+
} else {
|
|
163
|
+
obj.spend_limit = message.spendLimit;
|
|
164
|
+
}
|
|
165
|
+
if (message.allowList) {
|
|
166
|
+
obj.allow_list = message.allowList.map(e => e);
|
|
167
|
+
} else {
|
|
168
|
+
obj.allow_list = message.allowList;
|
|
169
|
+
}
|
|
170
|
+
if (message.allowedPacketData) {
|
|
171
|
+
obj.allowed_packet_data = message.allowedPacketData.map(e => e);
|
|
172
|
+
} else {
|
|
173
|
+
obj.allowed_packet_data = message.allowedPacketData;
|
|
174
|
+
}
|
|
175
|
+
return obj;
|
|
176
|
+
},
|
|
177
|
+
fromAminoMsg(object: AllocationAminoMsg): Allocation {
|
|
178
|
+
return Allocation.fromAmino(object.value);
|
|
179
|
+
},
|
|
180
|
+
toAminoMsg(message: Allocation): AllocationAminoMsg {
|
|
181
|
+
return {
|
|
182
|
+
type: "cosmos-sdk/Allocation",
|
|
183
|
+
value: Allocation.toAmino(message)
|
|
184
|
+
};
|
|
185
|
+
},
|
|
186
|
+
fromProtoMsg(message: AllocationProtoMsg): Allocation {
|
|
187
|
+
return Allocation.decode(message.value);
|
|
188
|
+
},
|
|
189
|
+
toProto(message: Allocation): Uint8Array {
|
|
190
|
+
return Allocation.encode(message).finish();
|
|
191
|
+
},
|
|
192
|
+
toProtoMsg(message: Allocation): AllocationProtoMsg {
|
|
193
|
+
return {
|
|
194
|
+
typeUrl: "/ibc.applications.transfer.v1.Allocation",
|
|
195
|
+
value: Allocation.encode(message).finish()
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
GlobalDecoderRegistry.register(Allocation.typeUrl, Allocation);
|
|
200
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Allocation.aminoType, Allocation.typeUrl);
|
|
201
|
+
function createBaseTransferAuthorization(): TransferAuthorization {
|
|
202
|
+
return {
|
|
203
|
+
allocations: []
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
export const TransferAuthorization = {
|
|
207
|
+
typeUrl: "/ibc.applications.transfer.v1.TransferAuthorization",
|
|
208
|
+
aminoType: "cosmos-sdk/TransferAuthorization",
|
|
209
|
+
is(o: any): o is TransferAuthorization {
|
|
210
|
+
return o && (o.$typeUrl === TransferAuthorization.typeUrl || Array.isArray(o.allocations) && (!o.allocations.length || Allocation.is(o.allocations[0])));
|
|
211
|
+
},
|
|
212
|
+
isAmino(o: any): o is TransferAuthorizationAmino {
|
|
213
|
+
return o && (o.$typeUrl === TransferAuthorization.typeUrl || Array.isArray(o.allocations) && (!o.allocations.length || Allocation.isAmino(o.allocations[0])));
|
|
214
|
+
},
|
|
215
|
+
encode(message: TransferAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
216
|
+
for (const v of message.allocations) {
|
|
217
|
+
Allocation.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
218
|
+
}
|
|
219
|
+
return writer;
|
|
220
|
+
},
|
|
221
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TransferAuthorization {
|
|
222
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
223
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
224
|
+
const message = createBaseTransferAuthorization();
|
|
225
|
+
while (reader.pos < end) {
|
|
226
|
+
const tag = reader.uint32();
|
|
227
|
+
switch (tag >>> 3) {
|
|
228
|
+
case 1:
|
|
229
|
+
message.allocations.push(Allocation.decode(reader, reader.uint32()));
|
|
230
|
+
break;
|
|
231
|
+
default:
|
|
232
|
+
reader.skipType(tag & 7);
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
return message;
|
|
237
|
+
},
|
|
238
|
+
fromPartial(object: DeepPartial<TransferAuthorization>): TransferAuthorization {
|
|
239
|
+
const message = createBaseTransferAuthorization();
|
|
240
|
+
message.allocations = object.allocations?.map(e => Allocation.fromPartial(e)) || [];
|
|
241
|
+
return message;
|
|
242
|
+
},
|
|
243
|
+
fromAmino(object: TransferAuthorizationAmino): TransferAuthorization {
|
|
244
|
+
const message = createBaseTransferAuthorization();
|
|
245
|
+
message.allocations = object.allocations?.map(e => Allocation.fromAmino(e)) || [];
|
|
246
|
+
return message;
|
|
247
|
+
},
|
|
248
|
+
toAmino(message: TransferAuthorization): TransferAuthorizationAmino {
|
|
249
|
+
const obj: any = {};
|
|
250
|
+
if (message.allocations) {
|
|
251
|
+
obj.allocations = message.allocations.map(e => e ? Allocation.toAmino(e) : undefined);
|
|
252
|
+
} else {
|
|
253
|
+
obj.allocations = message.allocations;
|
|
254
|
+
}
|
|
255
|
+
return obj;
|
|
256
|
+
},
|
|
257
|
+
fromAminoMsg(object: TransferAuthorizationAminoMsg): TransferAuthorization {
|
|
258
|
+
return TransferAuthorization.fromAmino(object.value);
|
|
259
|
+
},
|
|
260
|
+
toAminoMsg(message: TransferAuthorization): TransferAuthorizationAminoMsg {
|
|
261
|
+
return {
|
|
262
|
+
type: "cosmos-sdk/TransferAuthorization",
|
|
263
|
+
value: TransferAuthorization.toAmino(message)
|
|
264
|
+
};
|
|
265
|
+
},
|
|
266
|
+
fromProtoMsg(message: TransferAuthorizationProtoMsg): TransferAuthorization {
|
|
267
|
+
return TransferAuthorization.decode(message.value);
|
|
268
|
+
},
|
|
269
|
+
toProto(message: TransferAuthorization): Uint8Array {
|
|
270
|
+
return TransferAuthorization.encode(message).finish();
|
|
271
|
+
},
|
|
272
|
+
toProtoMsg(message: TransferAuthorization): TransferAuthorizationProtoMsg {
|
|
273
|
+
return {
|
|
274
|
+
typeUrl: "/ibc.applications.transfer.v1.TransferAuthorization",
|
|
275
|
+
value: TransferAuthorization.encode(message).finish()
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
GlobalDecoderRegistry.register(TransferAuthorization.typeUrl, TransferAuthorization);
|
|
280
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(TransferAuthorization.aminoType, TransferAuthorization.typeUrl);
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { DenomTrace, DenomTraceAmino, Params, ParamsAmino } from "./transfer";
|
|
2
|
+
import { Coin, CoinAmino } from "../../../../cosmos/base/v1beta1/coin";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
6
|
+
/** GenesisState defines the ibc-transfer genesis state */
|
|
7
|
+
export interface GenesisState {
|
|
8
|
+
portId: string;
|
|
9
|
+
denomTraces: DenomTrace[];
|
|
10
|
+
params: Params;
|
|
11
|
+
/**
|
|
12
|
+
* total_escrowed contains the total amount of tokens escrowed
|
|
13
|
+
* by the transfer module
|
|
14
|
+
*/
|
|
15
|
+
totalEscrowed: Coin[];
|
|
16
|
+
}
|
|
17
|
+
export interface GenesisStateProtoMsg {
|
|
18
|
+
typeUrl: "/ibc.applications.transfer.v1.GenesisState";
|
|
19
|
+
value: Uint8Array;
|
|
20
|
+
}
|
|
21
|
+
/** GenesisState defines the ibc-transfer genesis state */
|
|
22
|
+
export interface GenesisStateAmino {
|
|
23
|
+
port_id: string;
|
|
24
|
+
denom_traces: DenomTraceAmino[];
|
|
25
|
+
params: ParamsAmino;
|
|
26
|
+
/**
|
|
27
|
+
* total_escrowed contains the total amount of tokens escrowed
|
|
28
|
+
* by the transfer module
|
|
29
|
+
*/
|
|
30
|
+
total_escrowed: CoinAmino[];
|
|
31
|
+
}
|
|
32
|
+
export interface GenesisStateAminoMsg {
|
|
33
|
+
type: "cosmos-sdk/GenesisState";
|
|
34
|
+
value: GenesisStateAmino;
|
|
35
|
+
}
|
|
36
|
+
function createBaseGenesisState(): GenesisState {
|
|
37
|
+
return {
|
|
38
|
+
portId: "",
|
|
39
|
+
denomTraces: [],
|
|
40
|
+
params: Params.fromPartial({}),
|
|
41
|
+
totalEscrowed: []
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export const GenesisState = {
|
|
45
|
+
typeUrl: "/ibc.applications.transfer.v1.GenesisState",
|
|
46
|
+
aminoType: "cosmos-sdk/GenesisState",
|
|
47
|
+
is(o: any): o is GenesisState {
|
|
48
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || typeof o.portId === "string" && Array.isArray(o.denomTraces) && (!o.denomTraces.length || DenomTrace.is(o.denomTraces[0])) && Params.is(o.params) && Array.isArray(o.totalEscrowed) && (!o.totalEscrowed.length || Coin.is(o.totalEscrowed[0])));
|
|
49
|
+
},
|
|
50
|
+
isAmino(o: any): o is GenesisStateAmino {
|
|
51
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || typeof o.port_id === "string" && Array.isArray(o.denom_traces) && (!o.denom_traces.length || DenomTrace.isAmino(o.denom_traces[0])) && Params.isAmino(o.params) && Array.isArray(o.total_escrowed) && (!o.total_escrowed.length || Coin.isAmino(o.total_escrowed[0])));
|
|
52
|
+
},
|
|
53
|
+
encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
54
|
+
if (message.portId !== "") {
|
|
55
|
+
writer.uint32(10).string(message.portId);
|
|
56
|
+
}
|
|
57
|
+
for (const v of message.denomTraces) {
|
|
58
|
+
DenomTrace.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
59
|
+
}
|
|
60
|
+
if (message.params !== undefined) {
|
|
61
|
+
Params.encode(message.params, writer.uint32(26).fork()).ldelim();
|
|
62
|
+
}
|
|
63
|
+
for (const v of message.totalEscrowed) {
|
|
64
|
+
Coin.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
65
|
+
}
|
|
66
|
+
return writer;
|
|
67
|
+
},
|
|
68
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
|
|
69
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
70
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
71
|
+
const message = createBaseGenesisState();
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
const tag = reader.uint32();
|
|
74
|
+
switch (tag >>> 3) {
|
|
75
|
+
case 1:
|
|
76
|
+
message.portId = reader.string();
|
|
77
|
+
break;
|
|
78
|
+
case 2:
|
|
79
|
+
message.denomTraces.push(DenomTrace.decode(reader, reader.uint32()));
|
|
80
|
+
break;
|
|
81
|
+
case 3:
|
|
82
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
83
|
+
break;
|
|
84
|
+
case 4:
|
|
85
|
+
message.totalEscrowed.push(Coin.decode(reader, reader.uint32()));
|
|
86
|
+
break;
|
|
87
|
+
default:
|
|
88
|
+
reader.skipType(tag & 7);
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState {
|
|
95
|
+
const message = createBaseGenesisState();
|
|
96
|
+
message.portId = object.portId ?? "";
|
|
97
|
+
message.denomTraces = object.denomTraces?.map(e => DenomTrace.fromPartial(e)) || [];
|
|
98
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
99
|
+
message.totalEscrowed = object.totalEscrowed?.map(e => Coin.fromPartial(e)) || [];
|
|
100
|
+
return message;
|
|
101
|
+
},
|
|
102
|
+
fromAmino(object: GenesisStateAmino): GenesisState {
|
|
103
|
+
const message = createBaseGenesisState();
|
|
104
|
+
if (object.port_id !== undefined && object.port_id !== null) {
|
|
105
|
+
message.portId = object.port_id;
|
|
106
|
+
}
|
|
107
|
+
message.denomTraces = object.denom_traces?.map(e => DenomTrace.fromAmino(e)) || [];
|
|
108
|
+
if (object.params !== undefined && object.params !== null) {
|
|
109
|
+
message.params = Params.fromAmino(object.params);
|
|
110
|
+
}
|
|
111
|
+
message.totalEscrowed = object.total_escrowed?.map(e => Coin.fromAmino(e)) || [];
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
toAmino(message: GenesisState): GenesisStateAmino {
|
|
115
|
+
const obj: any = {};
|
|
116
|
+
obj.port_id = message.portId === "" ? undefined : message.portId;
|
|
117
|
+
if (message.denomTraces) {
|
|
118
|
+
obj.denom_traces = message.denomTraces.map(e => e ? DenomTrace.toAmino(e) : undefined);
|
|
119
|
+
} else {
|
|
120
|
+
obj.denom_traces = message.denomTraces;
|
|
121
|
+
}
|
|
122
|
+
obj.params = message.params ? Params.toAmino(message.params) : undefined;
|
|
123
|
+
if (message.totalEscrowed) {
|
|
124
|
+
obj.total_escrowed = message.totalEscrowed.map(e => e ? Coin.toAmino(e) : undefined);
|
|
125
|
+
} else {
|
|
126
|
+
obj.total_escrowed = message.totalEscrowed;
|
|
127
|
+
}
|
|
128
|
+
return obj;
|
|
129
|
+
},
|
|
130
|
+
fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
|
|
131
|
+
return GenesisState.fromAmino(object.value);
|
|
132
|
+
},
|
|
133
|
+
toAminoMsg(message: GenesisState): GenesisStateAminoMsg {
|
|
134
|
+
return {
|
|
135
|
+
type: "cosmos-sdk/GenesisState",
|
|
136
|
+
value: GenesisState.toAmino(message)
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
|
|
140
|
+
return GenesisState.decode(message.value);
|
|
141
|
+
},
|
|
142
|
+
toProto(message: GenesisState): Uint8Array {
|
|
143
|
+
return GenesisState.encode(message).finish();
|
|
144
|
+
},
|
|
145
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg {
|
|
146
|
+
return {
|
|
147
|
+
typeUrl: "/ibc.applications.transfer.v1.GenesisState",
|
|
148
|
+
value: GenesisState.encode(message).finish()
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
|
|
153
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GenesisState.aminoType, GenesisState.typeUrl);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { RpcResolver, buildQuery } from "../../../../helper-func-types";
|
|
2
|
+
import { buildUseQuery } from "../../../../react-query";
|
|
3
|
+
import { QueryDenomTracesRequest, QueryDenomTracesResponse, QueryDenomTraceRequest, QueryDenomTraceResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomHashRequest, QueryDenomHashResponse, QueryEscrowAddressRequest, QueryEscrowAddressResponse, QueryTotalEscrowForDenomRequest, QueryTotalEscrowForDenomResponse } from "./query";
|
|
4
|
+
export const createGetDenomTraces = (clientResolver?: RpcResolver) => buildQuery<QueryDenomTracesRequest, QueryDenomTracesResponse>({
|
|
5
|
+
encode: QueryDenomTracesRequest.encode,
|
|
6
|
+
decode: QueryDenomTracesResponse.decode,
|
|
7
|
+
service: "ibc.applications.transfer.v1.Query",
|
|
8
|
+
method: "DenomTraces",
|
|
9
|
+
clientResolver
|
|
10
|
+
});
|
|
11
|
+
export const useGetDenomTraces = buildUseQuery<QueryDenomTracesRequest, QueryDenomTracesResponse>({
|
|
12
|
+
builderQueryFn: createGetDenomTraces,
|
|
13
|
+
queryKeyPrefix: "DenomTracesQuery"
|
|
14
|
+
});
|
|
15
|
+
export const createGetDenomTrace = (clientResolver?: RpcResolver) => buildQuery<QueryDenomTraceRequest, QueryDenomTraceResponse>({
|
|
16
|
+
encode: QueryDenomTraceRequest.encode,
|
|
17
|
+
decode: QueryDenomTraceResponse.decode,
|
|
18
|
+
service: "ibc.applications.transfer.v1.Query",
|
|
19
|
+
method: "DenomTrace",
|
|
20
|
+
clientResolver
|
|
21
|
+
});
|
|
22
|
+
export const useGetDenomTrace = buildUseQuery<QueryDenomTraceRequest, QueryDenomTraceResponse>({
|
|
23
|
+
builderQueryFn: createGetDenomTrace,
|
|
24
|
+
queryKeyPrefix: "DenomTraceQuery"
|
|
25
|
+
});
|
|
26
|
+
export const createGetParams = (clientResolver?: RpcResolver) => buildQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
27
|
+
encode: QueryParamsRequest.encode,
|
|
28
|
+
decode: QueryParamsResponse.decode,
|
|
29
|
+
service: "ibc.applications.transfer.v1.Query",
|
|
30
|
+
method: "Params",
|
|
31
|
+
clientResolver
|
|
32
|
+
});
|
|
33
|
+
export const useGetParams = buildUseQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
34
|
+
builderQueryFn: createGetParams,
|
|
35
|
+
queryKeyPrefix: "ParamsQuery"
|
|
36
|
+
});
|
|
37
|
+
export const createGetDenomHash = (clientResolver?: RpcResolver) => buildQuery<QueryDenomHashRequest, QueryDenomHashResponse>({
|
|
38
|
+
encode: QueryDenomHashRequest.encode,
|
|
39
|
+
decode: QueryDenomHashResponse.decode,
|
|
40
|
+
service: "ibc.applications.transfer.v1.Query",
|
|
41
|
+
method: "DenomHash",
|
|
42
|
+
clientResolver
|
|
43
|
+
});
|
|
44
|
+
export const useGetDenomHash = buildUseQuery<QueryDenomHashRequest, QueryDenomHashResponse>({
|
|
45
|
+
builderQueryFn: createGetDenomHash,
|
|
46
|
+
queryKeyPrefix: "DenomHashQuery"
|
|
47
|
+
});
|
|
48
|
+
export const createGetEscrowAddress = (clientResolver?: RpcResolver) => buildQuery<QueryEscrowAddressRequest, QueryEscrowAddressResponse>({
|
|
49
|
+
encode: QueryEscrowAddressRequest.encode,
|
|
50
|
+
decode: QueryEscrowAddressResponse.decode,
|
|
51
|
+
service: "ibc.applications.transfer.v1.Query",
|
|
52
|
+
method: "EscrowAddress",
|
|
53
|
+
clientResolver
|
|
54
|
+
});
|
|
55
|
+
export const useGetEscrowAddress = buildUseQuery<QueryEscrowAddressRequest, QueryEscrowAddressResponse>({
|
|
56
|
+
builderQueryFn: createGetEscrowAddress,
|
|
57
|
+
queryKeyPrefix: "EscrowAddressQuery"
|
|
58
|
+
});
|
|
59
|
+
export const createGetTotalEscrowForDenom = (clientResolver?: RpcResolver) => buildQuery<QueryTotalEscrowForDenomRequest, QueryTotalEscrowForDenomResponse>({
|
|
60
|
+
encode: QueryTotalEscrowForDenomRequest.encode,
|
|
61
|
+
decode: QueryTotalEscrowForDenomResponse.decode,
|
|
62
|
+
service: "ibc.applications.transfer.v1.Query",
|
|
63
|
+
method: "TotalEscrowForDenom",
|
|
64
|
+
clientResolver
|
|
65
|
+
});
|
|
66
|
+
export const useGetTotalEscrowForDenom = buildUseQuery<QueryTotalEscrowForDenomRequest, QueryTotalEscrowForDenomResponse>({
|
|
67
|
+
builderQueryFn: createGetTotalEscrowForDenom,
|
|
68
|
+
queryKeyPrefix: "TotalEscrowForDenomQuery"
|
|
69
|
+
});
|