@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,677 @@
|
|
|
1
|
+
import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "../../base/query/v1beta1/pagination";
|
|
2
|
+
import { Grant, GrantAmino } from "./feegrant";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
|
+
/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */
|
|
7
|
+
export interface QueryAllowanceRequest {
|
|
8
|
+
/** granter is the address of the user granting an allowance of their funds. */
|
|
9
|
+
granter: string;
|
|
10
|
+
/** grantee is the address of the user being granted an allowance of another user's funds. */
|
|
11
|
+
grantee: string;
|
|
12
|
+
}
|
|
13
|
+
export interface QueryAllowanceRequestProtoMsg {
|
|
14
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest";
|
|
15
|
+
value: Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */
|
|
18
|
+
export interface QueryAllowanceRequestAmino {
|
|
19
|
+
/** granter is the address of the user granting an allowance of their funds. */
|
|
20
|
+
granter: string;
|
|
21
|
+
/** grantee is the address of the user being granted an allowance of another user's funds. */
|
|
22
|
+
grantee: string;
|
|
23
|
+
}
|
|
24
|
+
export interface QueryAllowanceRequestAminoMsg {
|
|
25
|
+
type: "cosmos-sdk/QueryAllowanceRequest";
|
|
26
|
+
value: QueryAllowanceRequestAmino;
|
|
27
|
+
}
|
|
28
|
+
/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */
|
|
29
|
+
export interface QueryAllowanceResponse {
|
|
30
|
+
/** allowance is a allowance granted for grantee by granter. */
|
|
31
|
+
allowance?: Grant;
|
|
32
|
+
}
|
|
33
|
+
export interface QueryAllowanceResponseProtoMsg {
|
|
34
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse";
|
|
35
|
+
value: Uint8Array;
|
|
36
|
+
}
|
|
37
|
+
/** QueryAllowanceResponse is the response type for the Query/Allowance RPC method. */
|
|
38
|
+
export interface QueryAllowanceResponseAmino {
|
|
39
|
+
/** allowance is a allowance granted for grantee by granter. */
|
|
40
|
+
allowance?: GrantAmino;
|
|
41
|
+
}
|
|
42
|
+
export interface QueryAllowanceResponseAminoMsg {
|
|
43
|
+
type: "cosmos-sdk/QueryAllowanceResponse";
|
|
44
|
+
value: QueryAllowanceResponseAmino;
|
|
45
|
+
}
|
|
46
|
+
/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */
|
|
47
|
+
export interface QueryAllowancesRequest {
|
|
48
|
+
grantee: string;
|
|
49
|
+
/** pagination defines an pagination for the request. */
|
|
50
|
+
pagination?: PageRequest;
|
|
51
|
+
}
|
|
52
|
+
export interface QueryAllowancesRequestProtoMsg {
|
|
53
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest";
|
|
54
|
+
value: Uint8Array;
|
|
55
|
+
}
|
|
56
|
+
/** QueryAllowancesRequest is the request type for the Query/Allowances RPC method. */
|
|
57
|
+
export interface QueryAllowancesRequestAmino {
|
|
58
|
+
grantee: string;
|
|
59
|
+
/** pagination defines an pagination for the request. */
|
|
60
|
+
pagination?: PageRequestAmino;
|
|
61
|
+
}
|
|
62
|
+
export interface QueryAllowancesRequestAminoMsg {
|
|
63
|
+
type: "cosmos-sdk/QueryAllowancesRequest";
|
|
64
|
+
value: QueryAllowancesRequestAmino;
|
|
65
|
+
}
|
|
66
|
+
/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */
|
|
67
|
+
export interface QueryAllowancesResponse {
|
|
68
|
+
/** allowances are allowance's granted for grantee by granter. */
|
|
69
|
+
allowances: Grant[];
|
|
70
|
+
/** pagination defines an pagination for the response. */
|
|
71
|
+
pagination?: PageResponse;
|
|
72
|
+
}
|
|
73
|
+
export interface QueryAllowancesResponseProtoMsg {
|
|
74
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse";
|
|
75
|
+
value: Uint8Array;
|
|
76
|
+
}
|
|
77
|
+
/** QueryAllowancesResponse is the response type for the Query/Allowances RPC method. */
|
|
78
|
+
export interface QueryAllowancesResponseAmino {
|
|
79
|
+
/** allowances are allowance's granted for grantee by granter. */
|
|
80
|
+
allowances: GrantAmino[];
|
|
81
|
+
/** pagination defines an pagination for the response. */
|
|
82
|
+
pagination?: PageResponseAmino;
|
|
83
|
+
}
|
|
84
|
+
export interface QueryAllowancesResponseAminoMsg {
|
|
85
|
+
type: "cosmos-sdk/QueryAllowancesResponse";
|
|
86
|
+
value: QueryAllowancesResponseAmino;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method.
|
|
90
|
+
*
|
|
91
|
+
* Since: cosmos-sdk 0.46
|
|
92
|
+
*/
|
|
93
|
+
export interface QueryAllowancesByGranterRequest {
|
|
94
|
+
granter: string;
|
|
95
|
+
/** pagination defines an pagination for the request. */
|
|
96
|
+
pagination?: PageRequest;
|
|
97
|
+
}
|
|
98
|
+
export interface QueryAllowancesByGranterRequestProtoMsg {
|
|
99
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest";
|
|
100
|
+
value: Uint8Array;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method.
|
|
104
|
+
*
|
|
105
|
+
* Since: cosmos-sdk 0.46
|
|
106
|
+
*/
|
|
107
|
+
export interface QueryAllowancesByGranterRequestAmino {
|
|
108
|
+
granter: string;
|
|
109
|
+
/** pagination defines an pagination for the request. */
|
|
110
|
+
pagination?: PageRequestAmino;
|
|
111
|
+
}
|
|
112
|
+
export interface QueryAllowancesByGranterRequestAminoMsg {
|
|
113
|
+
type: "cosmos-sdk/QueryAllowancesByGranterRequest";
|
|
114
|
+
value: QueryAllowancesByGranterRequestAmino;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method.
|
|
118
|
+
*
|
|
119
|
+
* Since: cosmos-sdk 0.46
|
|
120
|
+
*/
|
|
121
|
+
export interface QueryAllowancesByGranterResponse {
|
|
122
|
+
/** allowances that have been issued by the granter. */
|
|
123
|
+
allowances: Grant[];
|
|
124
|
+
/** pagination defines an pagination for the response. */
|
|
125
|
+
pagination?: PageResponse;
|
|
126
|
+
}
|
|
127
|
+
export interface QueryAllowancesByGranterResponseProtoMsg {
|
|
128
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse";
|
|
129
|
+
value: Uint8Array;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method.
|
|
133
|
+
*
|
|
134
|
+
* Since: cosmos-sdk 0.46
|
|
135
|
+
*/
|
|
136
|
+
export interface QueryAllowancesByGranterResponseAmino {
|
|
137
|
+
/** allowances that have been issued by the granter. */
|
|
138
|
+
allowances: GrantAmino[];
|
|
139
|
+
/** pagination defines an pagination for the response. */
|
|
140
|
+
pagination?: PageResponseAmino;
|
|
141
|
+
}
|
|
142
|
+
export interface QueryAllowancesByGranterResponseAminoMsg {
|
|
143
|
+
type: "cosmos-sdk/QueryAllowancesByGranterResponse";
|
|
144
|
+
value: QueryAllowancesByGranterResponseAmino;
|
|
145
|
+
}
|
|
146
|
+
function createBaseQueryAllowanceRequest(): QueryAllowanceRequest {
|
|
147
|
+
return {
|
|
148
|
+
granter: "",
|
|
149
|
+
grantee: ""
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
export const QueryAllowanceRequest = {
|
|
153
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest",
|
|
154
|
+
aminoType: "cosmos-sdk/QueryAllowanceRequest",
|
|
155
|
+
is(o: any): o is QueryAllowanceRequest {
|
|
156
|
+
return o && (o.$typeUrl === QueryAllowanceRequest.typeUrl || typeof o.granter === "string" && typeof o.grantee === "string");
|
|
157
|
+
},
|
|
158
|
+
isAmino(o: any): o is QueryAllowanceRequestAmino {
|
|
159
|
+
return o && (o.$typeUrl === QueryAllowanceRequest.typeUrl || typeof o.granter === "string" && typeof o.grantee === "string");
|
|
160
|
+
},
|
|
161
|
+
encode(message: QueryAllowanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
162
|
+
if (message.granter !== "") {
|
|
163
|
+
writer.uint32(10).string(message.granter);
|
|
164
|
+
}
|
|
165
|
+
if (message.grantee !== "") {
|
|
166
|
+
writer.uint32(18).string(message.grantee);
|
|
167
|
+
}
|
|
168
|
+
return writer;
|
|
169
|
+
},
|
|
170
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceRequest {
|
|
171
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
172
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
173
|
+
const message = createBaseQueryAllowanceRequest();
|
|
174
|
+
while (reader.pos < end) {
|
|
175
|
+
const tag = reader.uint32();
|
|
176
|
+
switch (tag >>> 3) {
|
|
177
|
+
case 1:
|
|
178
|
+
message.granter = reader.string();
|
|
179
|
+
break;
|
|
180
|
+
case 2:
|
|
181
|
+
message.grantee = reader.string();
|
|
182
|
+
break;
|
|
183
|
+
default:
|
|
184
|
+
reader.skipType(tag & 7);
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return message;
|
|
189
|
+
},
|
|
190
|
+
fromPartial(object: DeepPartial<QueryAllowanceRequest>): QueryAllowanceRequest {
|
|
191
|
+
const message = createBaseQueryAllowanceRequest();
|
|
192
|
+
message.granter = object.granter ?? "";
|
|
193
|
+
message.grantee = object.grantee ?? "";
|
|
194
|
+
return message;
|
|
195
|
+
},
|
|
196
|
+
fromAmino(object: QueryAllowanceRequestAmino): QueryAllowanceRequest {
|
|
197
|
+
const message = createBaseQueryAllowanceRequest();
|
|
198
|
+
if (object.granter !== undefined && object.granter !== null) {
|
|
199
|
+
message.granter = object.granter;
|
|
200
|
+
}
|
|
201
|
+
if (object.grantee !== undefined && object.grantee !== null) {
|
|
202
|
+
message.grantee = object.grantee;
|
|
203
|
+
}
|
|
204
|
+
return message;
|
|
205
|
+
},
|
|
206
|
+
toAmino(message: QueryAllowanceRequest): QueryAllowanceRequestAmino {
|
|
207
|
+
const obj: any = {};
|
|
208
|
+
obj.granter = message.granter === "" ? undefined : message.granter;
|
|
209
|
+
obj.grantee = message.grantee === "" ? undefined : message.grantee;
|
|
210
|
+
return obj;
|
|
211
|
+
},
|
|
212
|
+
fromAminoMsg(object: QueryAllowanceRequestAminoMsg): QueryAllowanceRequest {
|
|
213
|
+
return QueryAllowanceRequest.fromAmino(object.value);
|
|
214
|
+
},
|
|
215
|
+
toAminoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestAminoMsg {
|
|
216
|
+
return {
|
|
217
|
+
type: "cosmos-sdk/QueryAllowanceRequest",
|
|
218
|
+
value: QueryAllowanceRequest.toAmino(message)
|
|
219
|
+
};
|
|
220
|
+
},
|
|
221
|
+
fromProtoMsg(message: QueryAllowanceRequestProtoMsg): QueryAllowanceRequest {
|
|
222
|
+
return QueryAllowanceRequest.decode(message.value);
|
|
223
|
+
},
|
|
224
|
+
toProto(message: QueryAllowanceRequest): Uint8Array {
|
|
225
|
+
return QueryAllowanceRequest.encode(message).finish();
|
|
226
|
+
},
|
|
227
|
+
toProtoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestProtoMsg {
|
|
228
|
+
return {
|
|
229
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest",
|
|
230
|
+
value: QueryAllowanceRequest.encode(message).finish()
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
GlobalDecoderRegistry.register(QueryAllowanceRequest.typeUrl, QueryAllowanceRequest);
|
|
235
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllowanceRequest.aminoType, QueryAllowanceRequest.typeUrl);
|
|
236
|
+
function createBaseQueryAllowanceResponse(): QueryAllowanceResponse {
|
|
237
|
+
return {
|
|
238
|
+
allowance: undefined
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
export const QueryAllowanceResponse = {
|
|
242
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse",
|
|
243
|
+
aminoType: "cosmos-sdk/QueryAllowanceResponse",
|
|
244
|
+
is(o: any): o is QueryAllowanceResponse {
|
|
245
|
+
return o && o.$typeUrl === QueryAllowanceResponse.typeUrl;
|
|
246
|
+
},
|
|
247
|
+
isAmino(o: any): o is QueryAllowanceResponseAmino {
|
|
248
|
+
return o && o.$typeUrl === QueryAllowanceResponse.typeUrl;
|
|
249
|
+
},
|
|
250
|
+
encode(message: QueryAllowanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
251
|
+
if (message.allowance !== undefined) {
|
|
252
|
+
Grant.encode(message.allowance, writer.uint32(10).fork()).ldelim();
|
|
253
|
+
}
|
|
254
|
+
return writer;
|
|
255
|
+
},
|
|
256
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceResponse {
|
|
257
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
258
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
259
|
+
const message = createBaseQueryAllowanceResponse();
|
|
260
|
+
while (reader.pos < end) {
|
|
261
|
+
const tag = reader.uint32();
|
|
262
|
+
switch (tag >>> 3) {
|
|
263
|
+
case 1:
|
|
264
|
+
message.allowance = Grant.decode(reader, reader.uint32());
|
|
265
|
+
break;
|
|
266
|
+
default:
|
|
267
|
+
reader.skipType(tag & 7);
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return message;
|
|
272
|
+
},
|
|
273
|
+
fromPartial(object: DeepPartial<QueryAllowanceResponse>): QueryAllowanceResponse {
|
|
274
|
+
const message = createBaseQueryAllowanceResponse();
|
|
275
|
+
message.allowance = object.allowance !== undefined && object.allowance !== null ? Grant.fromPartial(object.allowance) : undefined;
|
|
276
|
+
return message;
|
|
277
|
+
},
|
|
278
|
+
fromAmino(object: QueryAllowanceResponseAmino): QueryAllowanceResponse {
|
|
279
|
+
const message = createBaseQueryAllowanceResponse();
|
|
280
|
+
if (object.allowance !== undefined && object.allowance !== null) {
|
|
281
|
+
message.allowance = Grant.fromAmino(object.allowance);
|
|
282
|
+
}
|
|
283
|
+
return message;
|
|
284
|
+
},
|
|
285
|
+
toAmino(message: QueryAllowanceResponse): QueryAllowanceResponseAmino {
|
|
286
|
+
const obj: any = {};
|
|
287
|
+
obj.allowance = message.allowance ? Grant.toAmino(message.allowance) : undefined;
|
|
288
|
+
return obj;
|
|
289
|
+
},
|
|
290
|
+
fromAminoMsg(object: QueryAllowanceResponseAminoMsg): QueryAllowanceResponse {
|
|
291
|
+
return QueryAllowanceResponse.fromAmino(object.value);
|
|
292
|
+
},
|
|
293
|
+
toAminoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseAminoMsg {
|
|
294
|
+
return {
|
|
295
|
+
type: "cosmos-sdk/QueryAllowanceResponse",
|
|
296
|
+
value: QueryAllowanceResponse.toAmino(message)
|
|
297
|
+
};
|
|
298
|
+
},
|
|
299
|
+
fromProtoMsg(message: QueryAllowanceResponseProtoMsg): QueryAllowanceResponse {
|
|
300
|
+
return QueryAllowanceResponse.decode(message.value);
|
|
301
|
+
},
|
|
302
|
+
toProto(message: QueryAllowanceResponse): Uint8Array {
|
|
303
|
+
return QueryAllowanceResponse.encode(message).finish();
|
|
304
|
+
},
|
|
305
|
+
toProtoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseProtoMsg {
|
|
306
|
+
return {
|
|
307
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse",
|
|
308
|
+
value: QueryAllowanceResponse.encode(message).finish()
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
GlobalDecoderRegistry.register(QueryAllowanceResponse.typeUrl, QueryAllowanceResponse);
|
|
313
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllowanceResponse.aminoType, QueryAllowanceResponse.typeUrl);
|
|
314
|
+
function createBaseQueryAllowancesRequest(): QueryAllowancesRequest {
|
|
315
|
+
return {
|
|
316
|
+
grantee: "",
|
|
317
|
+
pagination: undefined
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
export const QueryAllowancesRequest = {
|
|
321
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest",
|
|
322
|
+
aminoType: "cosmos-sdk/QueryAllowancesRequest",
|
|
323
|
+
is(o: any): o is QueryAllowancesRequest {
|
|
324
|
+
return o && (o.$typeUrl === QueryAllowancesRequest.typeUrl || typeof o.grantee === "string");
|
|
325
|
+
},
|
|
326
|
+
isAmino(o: any): o is QueryAllowancesRequestAmino {
|
|
327
|
+
return o && (o.$typeUrl === QueryAllowancesRequest.typeUrl || typeof o.grantee === "string");
|
|
328
|
+
},
|
|
329
|
+
encode(message: QueryAllowancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
330
|
+
if (message.grantee !== "") {
|
|
331
|
+
writer.uint32(10).string(message.grantee);
|
|
332
|
+
}
|
|
333
|
+
if (message.pagination !== undefined) {
|
|
334
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
335
|
+
}
|
|
336
|
+
return writer;
|
|
337
|
+
},
|
|
338
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesRequest {
|
|
339
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
340
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
341
|
+
const message = createBaseQueryAllowancesRequest();
|
|
342
|
+
while (reader.pos < end) {
|
|
343
|
+
const tag = reader.uint32();
|
|
344
|
+
switch (tag >>> 3) {
|
|
345
|
+
case 1:
|
|
346
|
+
message.grantee = reader.string();
|
|
347
|
+
break;
|
|
348
|
+
case 2:
|
|
349
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
350
|
+
break;
|
|
351
|
+
default:
|
|
352
|
+
reader.skipType(tag & 7);
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return message;
|
|
357
|
+
},
|
|
358
|
+
fromPartial(object: DeepPartial<QueryAllowancesRequest>): QueryAllowancesRequest {
|
|
359
|
+
const message = createBaseQueryAllowancesRequest();
|
|
360
|
+
message.grantee = object.grantee ?? "";
|
|
361
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
362
|
+
return message;
|
|
363
|
+
},
|
|
364
|
+
fromAmino(object: QueryAllowancesRequestAmino): QueryAllowancesRequest {
|
|
365
|
+
const message = createBaseQueryAllowancesRequest();
|
|
366
|
+
if (object.grantee !== undefined && object.grantee !== null) {
|
|
367
|
+
message.grantee = object.grantee;
|
|
368
|
+
}
|
|
369
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
370
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
371
|
+
}
|
|
372
|
+
return message;
|
|
373
|
+
},
|
|
374
|
+
toAmino(message: QueryAllowancesRequest): QueryAllowancesRequestAmino {
|
|
375
|
+
const obj: any = {};
|
|
376
|
+
obj.grantee = message.grantee === "" ? undefined : message.grantee;
|
|
377
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
378
|
+
return obj;
|
|
379
|
+
},
|
|
380
|
+
fromAminoMsg(object: QueryAllowancesRequestAminoMsg): QueryAllowancesRequest {
|
|
381
|
+
return QueryAllowancesRequest.fromAmino(object.value);
|
|
382
|
+
},
|
|
383
|
+
toAminoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestAminoMsg {
|
|
384
|
+
return {
|
|
385
|
+
type: "cosmos-sdk/QueryAllowancesRequest",
|
|
386
|
+
value: QueryAllowancesRequest.toAmino(message)
|
|
387
|
+
};
|
|
388
|
+
},
|
|
389
|
+
fromProtoMsg(message: QueryAllowancesRequestProtoMsg): QueryAllowancesRequest {
|
|
390
|
+
return QueryAllowancesRequest.decode(message.value);
|
|
391
|
+
},
|
|
392
|
+
toProto(message: QueryAllowancesRequest): Uint8Array {
|
|
393
|
+
return QueryAllowancesRequest.encode(message).finish();
|
|
394
|
+
},
|
|
395
|
+
toProtoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestProtoMsg {
|
|
396
|
+
return {
|
|
397
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest",
|
|
398
|
+
value: QueryAllowancesRequest.encode(message).finish()
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
GlobalDecoderRegistry.register(QueryAllowancesRequest.typeUrl, QueryAllowancesRequest);
|
|
403
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllowancesRequest.aminoType, QueryAllowancesRequest.typeUrl);
|
|
404
|
+
function createBaseQueryAllowancesResponse(): QueryAllowancesResponse {
|
|
405
|
+
return {
|
|
406
|
+
allowances: [],
|
|
407
|
+
pagination: undefined
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
export const QueryAllowancesResponse = {
|
|
411
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse",
|
|
412
|
+
aminoType: "cosmos-sdk/QueryAllowancesResponse",
|
|
413
|
+
is(o: any): o is QueryAllowancesResponse {
|
|
414
|
+
return o && (o.$typeUrl === QueryAllowancesResponse.typeUrl || Array.isArray(o.allowances) && (!o.allowances.length || Grant.is(o.allowances[0])));
|
|
415
|
+
},
|
|
416
|
+
isAmino(o: any): o is QueryAllowancesResponseAmino {
|
|
417
|
+
return o && (o.$typeUrl === QueryAllowancesResponse.typeUrl || Array.isArray(o.allowances) && (!o.allowances.length || Grant.isAmino(o.allowances[0])));
|
|
418
|
+
},
|
|
419
|
+
encode(message: QueryAllowancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
420
|
+
for (const v of message.allowances) {
|
|
421
|
+
Grant.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
422
|
+
}
|
|
423
|
+
if (message.pagination !== undefined) {
|
|
424
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
425
|
+
}
|
|
426
|
+
return writer;
|
|
427
|
+
},
|
|
428
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesResponse {
|
|
429
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
430
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
431
|
+
const message = createBaseQueryAllowancesResponse();
|
|
432
|
+
while (reader.pos < end) {
|
|
433
|
+
const tag = reader.uint32();
|
|
434
|
+
switch (tag >>> 3) {
|
|
435
|
+
case 1:
|
|
436
|
+
message.allowances.push(Grant.decode(reader, reader.uint32()));
|
|
437
|
+
break;
|
|
438
|
+
case 2:
|
|
439
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
440
|
+
break;
|
|
441
|
+
default:
|
|
442
|
+
reader.skipType(tag & 7);
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
return message;
|
|
447
|
+
},
|
|
448
|
+
fromPartial(object: DeepPartial<QueryAllowancesResponse>): QueryAllowancesResponse {
|
|
449
|
+
const message = createBaseQueryAllowancesResponse();
|
|
450
|
+
message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || [];
|
|
451
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
452
|
+
return message;
|
|
453
|
+
},
|
|
454
|
+
fromAmino(object: QueryAllowancesResponseAmino): QueryAllowancesResponse {
|
|
455
|
+
const message = createBaseQueryAllowancesResponse();
|
|
456
|
+
message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || [];
|
|
457
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
458
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
459
|
+
}
|
|
460
|
+
return message;
|
|
461
|
+
},
|
|
462
|
+
toAmino(message: QueryAllowancesResponse): QueryAllowancesResponseAmino {
|
|
463
|
+
const obj: any = {};
|
|
464
|
+
if (message.allowances) {
|
|
465
|
+
obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined);
|
|
466
|
+
} else {
|
|
467
|
+
obj.allowances = message.allowances;
|
|
468
|
+
}
|
|
469
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
470
|
+
return obj;
|
|
471
|
+
},
|
|
472
|
+
fromAminoMsg(object: QueryAllowancesResponseAminoMsg): QueryAllowancesResponse {
|
|
473
|
+
return QueryAllowancesResponse.fromAmino(object.value);
|
|
474
|
+
},
|
|
475
|
+
toAminoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseAminoMsg {
|
|
476
|
+
return {
|
|
477
|
+
type: "cosmos-sdk/QueryAllowancesResponse",
|
|
478
|
+
value: QueryAllowancesResponse.toAmino(message)
|
|
479
|
+
};
|
|
480
|
+
},
|
|
481
|
+
fromProtoMsg(message: QueryAllowancesResponseProtoMsg): QueryAllowancesResponse {
|
|
482
|
+
return QueryAllowancesResponse.decode(message.value);
|
|
483
|
+
},
|
|
484
|
+
toProto(message: QueryAllowancesResponse): Uint8Array {
|
|
485
|
+
return QueryAllowancesResponse.encode(message).finish();
|
|
486
|
+
},
|
|
487
|
+
toProtoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseProtoMsg {
|
|
488
|
+
return {
|
|
489
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse",
|
|
490
|
+
value: QueryAllowancesResponse.encode(message).finish()
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
GlobalDecoderRegistry.register(QueryAllowancesResponse.typeUrl, QueryAllowancesResponse);
|
|
495
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllowancesResponse.aminoType, QueryAllowancesResponse.typeUrl);
|
|
496
|
+
function createBaseQueryAllowancesByGranterRequest(): QueryAllowancesByGranterRequest {
|
|
497
|
+
return {
|
|
498
|
+
granter: "",
|
|
499
|
+
pagination: undefined
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
export const QueryAllowancesByGranterRequest = {
|
|
503
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest",
|
|
504
|
+
aminoType: "cosmos-sdk/QueryAllowancesByGranterRequest",
|
|
505
|
+
is(o: any): o is QueryAllowancesByGranterRequest {
|
|
506
|
+
return o && (o.$typeUrl === QueryAllowancesByGranterRequest.typeUrl || typeof o.granter === "string");
|
|
507
|
+
},
|
|
508
|
+
isAmino(o: any): o is QueryAllowancesByGranterRequestAmino {
|
|
509
|
+
return o && (o.$typeUrl === QueryAllowancesByGranterRequest.typeUrl || typeof o.granter === "string");
|
|
510
|
+
},
|
|
511
|
+
encode(message: QueryAllowancesByGranterRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
512
|
+
if (message.granter !== "") {
|
|
513
|
+
writer.uint32(10).string(message.granter);
|
|
514
|
+
}
|
|
515
|
+
if (message.pagination !== undefined) {
|
|
516
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
517
|
+
}
|
|
518
|
+
return writer;
|
|
519
|
+
},
|
|
520
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterRequest {
|
|
521
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
522
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
523
|
+
const message = createBaseQueryAllowancesByGranterRequest();
|
|
524
|
+
while (reader.pos < end) {
|
|
525
|
+
const tag = reader.uint32();
|
|
526
|
+
switch (tag >>> 3) {
|
|
527
|
+
case 1:
|
|
528
|
+
message.granter = reader.string();
|
|
529
|
+
break;
|
|
530
|
+
case 2:
|
|
531
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
532
|
+
break;
|
|
533
|
+
default:
|
|
534
|
+
reader.skipType(tag & 7);
|
|
535
|
+
break;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
return message;
|
|
539
|
+
},
|
|
540
|
+
fromPartial(object: DeepPartial<QueryAllowancesByGranterRequest>): QueryAllowancesByGranterRequest {
|
|
541
|
+
const message = createBaseQueryAllowancesByGranterRequest();
|
|
542
|
+
message.granter = object.granter ?? "";
|
|
543
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
544
|
+
return message;
|
|
545
|
+
},
|
|
546
|
+
fromAmino(object: QueryAllowancesByGranterRequestAmino): QueryAllowancesByGranterRequest {
|
|
547
|
+
const message = createBaseQueryAllowancesByGranterRequest();
|
|
548
|
+
if (object.granter !== undefined && object.granter !== null) {
|
|
549
|
+
message.granter = object.granter;
|
|
550
|
+
}
|
|
551
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
552
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
553
|
+
}
|
|
554
|
+
return message;
|
|
555
|
+
},
|
|
556
|
+
toAmino(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAmino {
|
|
557
|
+
const obj: any = {};
|
|
558
|
+
obj.granter = message.granter === "" ? undefined : message.granter;
|
|
559
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
560
|
+
return obj;
|
|
561
|
+
},
|
|
562
|
+
fromAminoMsg(object: QueryAllowancesByGranterRequestAminoMsg): QueryAllowancesByGranterRequest {
|
|
563
|
+
return QueryAllowancesByGranterRequest.fromAmino(object.value);
|
|
564
|
+
},
|
|
565
|
+
toAminoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAminoMsg {
|
|
566
|
+
return {
|
|
567
|
+
type: "cosmos-sdk/QueryAllowancesByGranterRequest",
|
|
568
|
+
value: QueryAllowancesByGranterRequest.toAmino(message)
|
|
569
|
+
};
|
|
570
|
+
},
|
|
571
|
+
fromProtoMsg(message: QueryAllowancesByGranterRequestProtoMsg): QueryAllowancesByGranterRequest {
|
|
572
|
+
return QueryAllowancesByGranterRequest.decode(message.value);
|
|
573
|
+
},
|
|
574
|
+
toProto(message: QueryAllowancesByGranterRequest): Uint8Array {
|
|
575
|
+
return QueryAllowancesByGranterRequest.encode(message).finish();
|
|
576
|
+
},
|
|
577
|
+
toProtoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestProtoMsg {
|
|
578
|
+
return {
|
|
579
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest",
|
|
580
|
+
value: QueryAllowancesByGranterRequest.encode(message).finish()
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
};
|
|
584
|
+
GlobalDecoderRegistry.register(QueryAllowancesByGranterRequest.typeUrl, QueryAllowancesByGranterRequest);
|
|
585
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllowancesByGranterRequest.aminoType, QueryAllowancesByGranterRequest.typeUrl);
|
|
586
|
+
function createBaseQueryAllowancesByGranterResponse(): QueryAllowancesByGranterResponse {
|
|
587
|
+
return {
|
|
588
|
+
allowances: [],
|
|
589
|
+
pagination: undefined
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
export const QueryAllowancesByGranterResponse = {
|
|
593
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse",
|
|
594
|
+
aminoType: "cosmos-sdk/QueryAllowancesByGranterResponse",
|
|
595
|
+
is(o: any): o is QueryAllowancesByGranterResponse {
|
|
596
|
+
return o && (o.$typeUrl === QueryAllowancesByGranterResponse.typeUrl || Array.isArray(o.allowances) && (!o.allowances.length || Grant.is(o.allowances[0])));
|
|
597
|
+
},
|
|
598
|
+
isAmino(o: any): o is QueryAllowancesByGranterResponseAmino {
|
|
599
|
+
return o && (o.$typeUrl === QueryAllowancesByGranterResponse.typeUrl || Array.isArray(o.allowances) && (!o.allowances.length || Grant.isAmino(o.allowances[0])));
|
|
600
|
+
},
|
|
601
|
+
encode(message: QueryAllowancesByGranterResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
602
|
+
for (const v of message.allowances) {
|
|
603
|
+
Grant.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
604
|
+
}
|
|
605
|
+
if (message.pagination !== undefined) {
|
|
606
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
607
|
+
}
|
|
608
|
+
return writer;
|
|
609
|
+
},
|
|
610
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterResponse {
|
|
611
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
612
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
613
|
+
const message = createBaseQueryAllowancesByGranterResponse();
|
|
614
|
+
while (reader.pos < end) {
|
|
615
|
+
const tag = reader.uint32();
|
|
616
|
+
switch (tag >>> 3) {
|
|
617
|
+
case 1:
|
|
618
|
+
message.allowances.push(Grant.decode(reader, reader.uint32()));
|
|
619
|
+
break;
|
|
620
|
+
case 2:
|
|
621
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
622
|
+
break;
|
|
623
|
+
default:
|
|
624
|
+
reader.skipType(tag & 7);
|
|
625
|
+
break;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
return message;
|
|
629
|
+
},
|
|
630
|
+
fromPartial(object: DeepPartial<QueryAllowancesByGranterResponse>): QueryAllowancesByGranterResponse {
|
|
631
|
+
const message = createBaseQueryAllowancesByGranterResponse();
|
|
632
|
+
message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || [];
|
|
633
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
634
|
+
return message;
|
|
635
|
+
},
|
|
636
|
+
fromAmino(object: QueryAllowancesByGranterResponseAmino): QueryAllowancesByGranterResponse {
|
|
637
|
+
const message = createBaseQueryAllowancesByGranterResponse();
|
|
638
|
+
message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || [];
|
|
639
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
640
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
641
|
+
}
|
|
642
|
+
return message;
|
|
643
|
+
},
|
|
644
|
+
toAmino(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAmino {
|
|
645
|
+
const obj: any = {};
|
|
646
|
+
if (message.allowances) {
|
|
647
|
+
obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined);
|
|
648
|
+
} else {
|
|
649
|
+
obj.allowances = message.allowances;
|
|
650
|
+
}
|
|
651
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
652
|
+
return obj;
|
|
653
|
+
},
|
|
654
|
+
fromAminoMsg(object: QueryAllowancesByGranterResponseAminoMsg): QueryAllowancesByGranterResponse {
|
|
655
|
+
return QueryAllowancesByGranterResponse.fromAmino(object.value);
|
|
656
|
+
},
|
|
657
|
+
toAminoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAminoMsg {
|
|
658
|
+
return {
|
|
659
|
+
type: "cosmos-sdk/QueryAllowancesByGranterResponse",
|
|
660
|
+
value: QueryAllowancesByGranterResponse.toAmino(message)
|
|
661
|
+
};
|
|
662
|
+
},
|
|
663
|
+
fromProtoMsg(message: QueryAllowancesByGranterResponseProtoMsg): QueryAllowancesByGranterResponse {
|
|
664
|
+
return QueryAllowancesByGranterResponse.decode(message.value);
|
|
665
|
+
},
|
|
666
|
+
toProto(message: QueryAllowancesByGranterResponse): Uint8Array {
|
|
667
|
+
return QueryAllowancesByGranterResponse.encode(message).finish();
|
|
668
|
+
},
|
|
669
|
+
toProtoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseProtoMsg {
|
|
670
|
+
return {
|
|
671
|
+
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse",
|
|
672
|
+
value: QueryAllowancesByGranterResponse.encode(message).finish()
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
GlobalDecoderRegistry.register(QueryAllowancesByGranterResponse.typeUrl, QueryAllowancesByGranterResponse);
|
|
677
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAllowancesByGranterResponse.aminoType, QueryAllowancesByGranterResponse.typeUrl);
|