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