@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,14 @@
|
|
|
1
|
+
import { RpcResolver, buildQuery } from "../../../helper-func-types";
|
|
2
|
+
import { buildUseQuery } from "../../../react-query";
|
|
3
|
+
import { AppOptionsRequest, AppOptionsResponse } from "./query";
|
|
4
|
+
export const createGetAppOptions = (clientResolver?: RpcResolver) => buildQuery<AppOptionsRequest, AppOptionsResponse>({
|
|
5
|
+
encode: AppOptionsRequest.encode,
|
|
6
|
+
decode: AppOptionsResponse.decode,
|
|
7
|
+
service: "cosmos.autocli.v1.Query",
|
|
8
|
+
method: "AppOptions",
|
|
9
|
+
clientResolver
|
|
10
|
+
});
|
|
11
|
+
export const useGetAppOptions = buildUseQuery<AppOptionsRequest, AppOptionsResponse>({
|
|
12
|
+
builderQueryFn: createGetAppOptions,
|
|
13
|
+
queryKeyPrefix: "AppOptionsQuery"
|
|
14
|
+
});
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { ModuleOptions, ModuleOptionsAmino } from "./options";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial, isSet } from "../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
|
+
/** AppOptionsRequest is the RemoteInfoService/AppOptions request type. */
|
|
6
|
+
export interface AppOptionsRequest {}
|
|
7
|
+
export interface AppOptionsRequestProtoMsg {
|
|
8
|
+
typeUrl: "/cosmos.autocli.v1.AppOptionsRequest";
|
|
9
|
+
value: Uint8Array;
|
|
10
|
+
}
|
|
11
|
+
/** AppOptionsRequest is the RemoteInfoService/AppOptions request type. */
|
|
12
|
+
export interface AppOptionsRequestAmino {}
|
|
13
|
+
export interface AppOptionsRequestAminoMsg {
|
|
14
|
+
type: "cosmos-sdk/AppOptionsRequest";
|
|
15
|
+
value: AppOptionsRequestAmino;
|
|
16
|
+
}
|
|
17
|
+
export interface AppOptionsResponse_ModuleOptionsEntry {
|
|
18
|
+
key: string;
|
|
19
|
+
value?: ModuleOptions;
|
|
20
|
+
}
|
|
21
|
+
export interface AppOptionsResponse_ModuleOptionsEntryProtoMsg {
|
|
22
|
+
typeUrl: string;
|
|
23
|
+
value: Uint8Array;
|
|
24
|
+
}
|
|
25
|
+
export interface AppOptionsResponse_ModuleOptionsEntryAmino {
|
|
26
|
+
key: string;
|
|
27
|
+
value?: ModuleOptionsAmino;
|
|
28
|
+
}
|
|
29
|
+
export interface AppOptionsResponse_ModuleOptionsEntryAminoMsg {
|
|
30
|
+
type: string;
|
|
31
|
+
value: AppOptionsResponse_ModuleOptionsEntryAmino;
|
|
32
|
+
}
|
|
33
|
+
/** AppOptionsResponse is the RemoteInfoService/AppOptions response type. */
|
|
34
|
+
export interface AppOptionsResponse {
|
|
35
|
+
/** module_options is a map of module name to autocli module options. */
|
|
36
|
+
moduleOptions: {
|
|
37
|
+
[key: string]: ModuleOptions;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface AppOptionsResponseProtoMsg {
|
|
41
|
+
typeUrl: "/cosmos.autocli.v1.AppOptionsResponse";
|
|
42
|
+
value: Uint8Array;
|
|
43
|
+
}
|
|
44
|
+
/** AppOptionsResponse is the RemoteInfoService/AppOptions response type. */
|
|
45
|
+
export interface AppOptionsResponseAmino {
|
|
46
|
+
/** module_options is a map of module name to autocli module options. */
|
|
47
|
+
module_options: {
|
|
48
|
+
[key: string]: ModuleOptionsAmino;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export interface AppOptionsResponseAminoMsg {
|
|
52
|
+
type: "cosmos-sdk/AppOptionsResponse";
|
|
53
|
+
value: AppOptionsResponseAmino;
|
|
54
|
+
}
|
|
55
|
+
function createBaseAppOptionsRequest(): AppOptionsRequest {
|
|
56
|
+
return {};
|
|
57
|
+
}
|
|
58
|
+
export const AppOptionsRequest = {
|
|
59
|
+
typeUrl: "/cosmos.autocli.v1.AppOptionsRequest",
|
|
60
|
+
aminoType: "cosmos-sdk/AppOptionsRequest",
|
|
61
|
+
is(o: any): o is AppOptionsRequest {
|
|
62
|
+
return o && o.$typeUrl === AppOptionsRequest.typeUrl;
|
|
63
|
+
},
|
|
64
|
+
isAmino(o: any): o is AppOptionsRequestAmino {
|
|
65
|
+
return o && o.$typeUrl === AppOptionsRequest.typeUrl;
|
|
66
|
+
},
|
|
67
|
+
encode(_: AppOptionsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
68
|
+
return writer;
|
|
69
|
+
},
|
|
70
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AppOptionsRequest {
|
|
71
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
72
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
73
|
+
const message = createBaseAppOptionsRequest();
|
|
74
|
+
while (reader.pos < end) {
|
|
75
|
+
const tag = reader.uint32();
|
|
76
|
+
switch (tag >>> 3) {
|
|
77
|
+
default:
|
|
78
|
+
reader.skipType(tag & 7);
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return message;
|
|
83
|
+
},
|
|
84
|
+
fromPartial(_: DeepPartial<AppOptionsRequest>): AppOptionsRequest {
|
|
85
|
+
const message = createBaseAppOptionsRequest();
|
|
86
|
+
return message;
|
|
87
|
+
},
|
|
88
|
+
fromAmino(_: AppOptionsRequestAmino): AppOptionsRequest {
|
|
89
|
+
const message = createBaseAppOptionsRequest();
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
toAmino(_: AppOptionsRequest): AppOptionsRequestAmino {
|
|
93
|
+
const obj: any = {};
|
|
94
|
+
return obj;
|
|
95
|
+
},
|
|
96
|
+
fromAminoMsg(object: AppOptionsRequestAminoMsg): AppOptionsRequest {
|
|
97
|
+
return AppOptionsRequest.fromAmino(object.value);
|
|
98
|
+
},
|
|
99
|
+
toAminoMsg(message: AppOptionsRequest): AppOptionsRequestAminoMsg {
|
|
100
|
+
return {
|
|
101
|
+
type: "cosmos-sdk/AppOptionsRequest",
|
|
102
|
+
value: AppOptionsRequest.toAmino(message)
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
fromProtoMsg(message: AppOptionsRequestProtoMsg): AppOptionsRequest {
|
|
106
|
+
return AppOptionsRequest.decode(message.value);
|
|
107
|
+
},
|
|
108
|
+
toProto(message: AppOptionsRequest): Uint8Array {
|
|
109
|
+
return AppOptionsRequest.encode(message).finish();
|
|
110
|
+
},
|
|
111
|
+
toProtoMsg(message: AppOptionsRequest): AppOptionsRequestProtoMsg {
|
|
112
|
+
return {
|
|
113
|
+
typeUrl: "/cosmos.autocli.v1.AppOptionsRequest",
|
|
114
|
+
value: AppOptionsRequest.encode(message).finish()
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
GlobalDecoderRegistry.register(AppOptionsRequest.typeUrl, AppOptionsRequest);
|
|
119
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(AppOptionsRequest.aminoType, AppOptionsRequest.typeUrl);
|
|
120
|
+
function createBaseAppOptionsResponse_ModuleOptionsEntry(): AppOptionsResponse_ModuleOptionsEntry {
|
|
121
|
+
return {
|
|
122
|
+
key: "",
|
|
123
|
+
value: undefined
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
export const AppOptionsResponse_ModuleOptionsEntry = {
|
|
127
|
+
encode(message: AppOptionsResponse_ModuleOptionsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
128
|
+
if (message.key !== "") {
|
|
129
|
+
writer.uint32(10).string(message.key);
|
|
130
|
+
}
|
|
131
|
+
if (message.value !== undefined) {
|
|
132
|
+
ModuleOptions.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
133
|
+
}
|
|
134
|
+
return writer;
|
|
135
|
+
},
|
|
136
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AppOptionsResponse_ModuleOptionsEntry {
|
|
137
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
138
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
139
|
+
const message = createBaseAppOptionsResponse_ModuleOptionsEntry();
|
|
140
|
+
while (reader.pos < end) {
|
|
141
|
+
const tag = reader.uint32();
|
|
142
|
+
switch (tag >>> 3) {
|
|
143
|
+
case 1:
|
|
144
|
+
message.key = reader.string();
|
|
145
|
+
break;
|
|
146
|
+
case 2:
|
|
147
|
+
message.value = ModuleOptions.decode(reader, reader.uint32());
|
|
148
|
+
break;
|
|
149
|
+
default:
|
|
150
|
+
reader.skipType(tag & 7);
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return message;
|
|
155
|
+
},
|
|
156
|
+
fromPartial(object: DeepPartial<AppOptionsResponse_ModuleOptionsEntry>): AppOptionsResponse_ModuleOptionsEntry {
|
|
157
|
+
const message = createBaseAppOptionsResponse_ModuleOptionsEntry();
|
|
158
|
+
message.key = object.key ?? "";
|
|
159
|
+
message.value = object.value !== undefined && object.value !== null ? ModuleOptions.fromPartial(object.value) : undefined;
|
|
160
|
+
return message;
|
|
161
|
+
},
|
|
162
|
+
fromAmino(object: AppOptionsResponse_ModuleOptionsEntryAmino): AppOptionsResponse_ModuleOptionsEntry {
|
|
163
|
+
const message = createBaseAppOptionsResponse_ModuleOptionsEntry();
|
|
164
|
+
if (object.key !== undefined && object.key !== null) {
|
|
165
|
+
message.key = object.key;
|
|
166
|
+
}
|
|
167
|
+
if (object.value !== undefined && object.value !== null) {
|
|
168
|
+
message.value = ModuleOptions.fromAmino(object.value);
|
|
169
|
+
}
|
|
170
|
+
return message;
|
|
171
|
+
},
|
|
172
|
+
toAmino(message: AppOptionsResponse_ModuleOptionsEntry): AppOptionsResponse_ModuleOptionsEntryAmino {
|
|
173
|
+
const obj: any = {};
|
|
174
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
175
|
+
obj.value = message.value ? ModuleOptions.toAmino(message.value) : undefined;
|
|
176
|
+
return obj;
|
|
177
|
+
},
|
|
178
|
+
fromAminoMsg(object: AppOptionsResponse_ModuleOptionsEntryAminoMsg): AppOptionsResponse_ModuleOptionsEntry {
|
|
179
|
+
return AppOptionsResponse_ModuleOptionsEntry.fromAmino(object.value);
|
|
180
|
+
},
|
|
181
|
+
fromProtoMsg(message: AppOptionsResponse_ModuleOptionsEntryProtoMsg): AppOptionsResponse_ModuleOptionsEntry {
|
|
182
|
+
return AppOptionsResponse_ModuleOptionsEntry.decode(message.value);
|
|
183
|
+
},
|
|
184
|
+
toProto(message: AppOptionsResponse_ModuleOptionsEntry): Uint8Array {
|
|
185
|
+
return AppOptionsResponse_ModuleOptionsEntry.encode(message).finish();
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
function createBaseAppOptionsResponse(): AppOptionsResponse {
|
|
189
|
+
return {
|
|
190
|
+
moduleOptions: {}
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
export const AppOptionsResponse = {
|
|
194
|
+
typeUrl: "/cosmos.autocli.v1.AppOptionsResponse",
|
|
195
|
+
aminoType: "cosmos-sdk/AppOptionsResponse",
|
|
196
|
+
is(o: any): o is AppOptionsResponse {
|
|
197
|
+
return o && (o.$typeUrl === AppOptionsResponse.typeUrl || isSet(o.moduleOptions));
|
|
198
|
+
},
|
|
199
|
+
isAmino(o: any): o is AppOptionsResponseAmino {
|
|
200
|
+
return o && (o.$typeUrl === AppOptionsResponse.typeUrl || isSet(o.module_options));
|
|
201
|
+
},
|
|
202
|
+
encode(message: AppOptionsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
203
|
+
Object.entries(message.moduleOptions).forEach(([key, value]) => {
|
|
204
|
+
AppOptionsResponse_ModuleOptionsEntry.encode({
|
|
205
|
+
key: key as any,
|
|
206
|
+
value
|
|
207
|
+
}, writer.uint32(10).fork()).ldelim();
|
|
208
|
+
});
|
|
209
|
+
return writer;
|
|
210
|
+
},
|
|
211
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AppOptionsResponse {
|
|
212
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
213
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
214
|
+
const message = createBaseAppOptionsResponse();
|
|
215
|
+
while (reader.pos < end) {
|
|
216
|
+
const tag = reader.uint32();
|
|
217
|
+
switch (tag >>> 3) {
|
|
218
|
+
case 1:
|
|
219
|
+
const entry1 = AppOptionsResponse_ModuleOptionsEntry.decode(reader, reader.uint32());
|
|
220
|
+
if (entry1.value !== undefined) {
|
|
221
|
+
message.moduleOptions[entry1.key] = entry1.value;
|
|
222
|
+
}
|
|
223
|
+
break;
|
|
224
|
+
default:
|
|
225
|
+
reader.skipType(tag & 7);
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return message;
|
|
230
|
+
},
|
|
231
|
+
fromPartial(object: DeepPartial<AppOptionsResponse>): AppOptionsResponse {
|
|
232
|
+
const message = createBaseAppOptionsResponse();
|
|
233
|
+
message.moduleOptions = Object.entries(object.moduleOptions ?? {}).reduce<{
|
|
234
|
+
[key: string]: ModuleOptions;
|
|
235
|
+
}>((acc, [key, value]) => {
|
|
236
|
+
if (value !== undefined) {
|
|
237
|
+
acc[key] = ModuleOptions.fromPartial(value);
|
|
238
|
+
}
|
|
239
|
+
return acc;
|
|
240
|
+
}, {});
|
|
241
|
+
return message;
|
|
242
|
+
},
|
|
243
|
+
fromAmino(object: AppOptionsResponseAmino): AppOptionsResponse {
|
|
244
|
+
const message = createBaseAppOptionsResponse();
|
|
245
|
+
message.moduleOptions = Object.entries(object.module_options ?? {}).reduce<{
|
|
246
|
+
[key: string]: ModuleOptions;
|
|
247
|
+
}>((acc, [key, value]) => {
|
|
248
|
+
if (value !== undefined) {
|
|
249
|
+
acc[key] = ModuleOptions.fromAmino(value);
|
|
250
|
+
}
|
|
251
|
+
return acc;
|
|
252
|
+
}, {});
|
|
253
|
+
return message;
|
|
254
|
+
},
|
|
255
|
+
toAmino(message: AppOptionsResponse): AppOptionsResponseAmino {
|
|
256
|
+
const obj: any = {};
|
|
257
|
+
obj.module_options = {};
|
|
258
|
+
if (message.moduleOptions) {
|
|
259
|
+
Object.entries(message.moduleOptions).forEach(([k, v]) => {
|
|
260
|
+
obj.module_options[k] = ModuleOptions.toAmino(v);
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
return obj;
|
|
264
|
+
},
|
|
265
|
+
fromAminoMsg(object: AppOptionsResponseAminoMsg): AppOptionsResponse {
|
|
266
|
+
return AppOptionsResponse.fromAmino(object.value);
|
|
267
|
+
},
|
|
268
|
+
toAminoMsg(message: AppOptionsResponse): AppOptionsResponseAminoMsg {
|
|
269
|
+
return {
|
|
270
|
+
type: "cosmos-sdk/AppOptionsResponse",
|
|
271
|
+
value: AppOptionsResponse.toAmino(message)
|
|
272
|
+
};
|
|
273
|
+
},
|
|
274
|
+
fromProtoMsg(message: AppOptionsResponseProtoMsg): AppOptionsResponse {
|
|
275
|
+
return AppOptionsResponse.decode(message.value);
|
|
276
|
+
},
|
|
277
|
+
toProto(message: AppOptionsResponse): Uint8Array {
|
|
278
|
+
return AppOptionsResponse.encode(message).finish();
|
|
279
|
+
},
|
|
280
|
+
toProtoMsg(message: AppOptionsResponse): AppOptionsResponseProtoMsg {
|
|
281
|
+
return {
|
|
282
|
+
typeUrl: "/cosmos.autocli.v1.AppOptionsResponse",
|
|
283
|
+
value: AppOptionsResponse.encode(message).finish()
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
GlobalDecoderRegistry.register(AppOptionsResponse.typeUrl, AppOptionsResponse);
|
|
288
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(AppOptionsResponse.aminoType, AppOptionsResponse.typeUrl);
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
|
+
/** Module is the config object of the bank module. */
|
|
5
|
+
export interface Module {
|
|
6
|
+
/**
|
|
7
|
+
* blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving
|
|
8
|
+
* funds. If left empty it defaults to the list of account names supplied in the auth module configuration as
|
|
9
|
+
* module_account_permissions
|
|
10
|
+
*/
|
|
11
|
+
blockedModuleAccountsOverride: string[];
|
|
12
|
+
/** authority defines the custom module authority. If not set, defaults to the governance module. */
|
|
13
|
+
authority: string;
|
|
14
|
+
/**
|
|
15
|
+
* restrictions_order specifies the order of send restrictions and should be
|
|
16
|
+
* a list of module names which provide a send restriction instance. If no
|
|
17
|
+
* order is provided, then restrictions will be applied in alphabetical order
|
|
18
|
+
* of module names.
|
|
19
|
+
*/
|
|
20
|
+
restrictionsOrder: string[];
|
|
21
|
+
}
|
|
22
|
+
export interface ModuleProtoMsg {
|
|
23
|
+
typeUrl: "/cosmos.bank.module.v1.Module";
|
|
24
|
+
value: Uint8Array;
|
|
25
|
+
}
|
|
26
|
+
/** Module is the config object of the bank module. */
|
|
27
|
+
export interface ModuleAmino {
|
|
28
|
+
/**
|
|
29
|
+
* blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving
|
|
30
|
+
* funds. If left empty it defaults to the list of account names supplied in the auth module configuration as
|
|
31
|
+
* module_account_permissions
|
|
32
|
+
*/
|
|
33
|
+
blocked_module_accounts_override: string[];
|
|
34
|
+
/** authority defines the custom module authority. If not set, defaults to the governance module. */
|
|
35
|
+
authority: string;
|
|
36
|
+
/**
|
|
37
|
+
* restrictions_order specifies the order of send restrictions and should be
|
|
38
|
+
* a list of module names which provide a send restriction instance. If no
|
|
39
|
+
* order is provided, then restrictions will be applied in alphabetical order
|
|
40
|
+
* of module names.
|
|
41
|
+
*/
|
|
42
|
+
restrictions_order: string[];
|
|
43
|
+
}
|
|
44
|
+
export interface ModuleAminoMsg {
|
|
45
|
+
type: "cosmos-sdk/Module";
|
|
46
|
+
value: ModuleAmino;
|
|
47
|
+
}
|
|
48
|
+
function createBaseModule(): Module {
|
|
49
|
+
return {
|
|
50
|
+
blockedModuleAccountsOverride: [],
|
|
51
|
+
authority: "",
|
|
52
|
+
restrictionsOrder: []
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export const Module = {
|
|
56
|
+
typeUrl: "/cosmos.bank.module.v1.Module",
|
|
57
|
+
aminoType: "cosmos-sdk/Module",
|
|
58
|
+
is(o: any): o is Module {
|
|
59
|
+
return o && (o.$typeUrl === Module.typeUrl || Array.isArray(o.blockedModuleAccountsOverride) && (!o.blockedModuleAccountsOverride.length || typeof o.blockedModuleAccountsOverride[0] === "string") && typeof o.authority === "string" && Array.isArray(o.restrictionsOrder) && (!o.restrictionsOrder.length || typeof o.restrictionsOrder[0] === "string"));
|
|
60
|
+
},
|
|
61
|
+
isAmino(o: any): o is ModuleAmino {
|
|
62
|
+
return o && (o.$typeUrl === Module.typeUrl || Array.isArray(o.blocked_module_accounts_override) && (!o.blocked_module_accounts_override.length || typeof o.blocked_module_accounts_override[0] === "string") && typeof o.authority === "string" && Array.isArray(o.restrictions_order) && (!o.restrictions_order.length || typeof o.restrictions_order[0] === "string"));
|
|
63
|
+
},
|
|
64
|
+
encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
65
|
+
for (const v of message.blockedModuleAccountsOverride) {
|
|
66
|
+
writer.uint32(10).string(v!);
|
|
67
|
+
}
|
|
68
|
+
if (message.authority !== "") {
|
|
69
|
+
writer.uint32(18).string(message.authority);
|
|
70
|
+
}
|
|
71
|
+
for (const v of message.restrictionsOrder) {
|
|
72
|
+
writer.uint32(26).string(v!);
|
|
73
|
+
}
|
|
74
|
+
return writer;
|
|
75
|
+
},
|
|
76
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Module {
|
|
77
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
78
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
79
|
+
const message = createBaseModule();
|
|
80
|
+
while (reader.pos < end) {
|
|
81
|
+
const tag = reader.uint32();
|
|
82
|
+
switch (tag >>> 3) {
|
|
83
|
+
case 1:
|
|
84
|
+
message.blockedModuleAccountsOverride.push(reader.string());
|
|
85
|
+
break;
|
|
86
|
+
case 2:
|
|
87
|
+
message.authority = reader.string();
|
|
88
|
+
break;
|
|
89
|
+
case 3:
|
|
90
|
+
message.restrictionsOrder.push(reader.string());
|
|
91
|
+
break;
|
|
92
|
+
default:
|
|
93
|
+
reader.skipType(tag & 7);
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return message;
|
|
98
|
+
},
|
|
99
|
+
fromPartial(object: DeepPartial<Module>): Module {
|
|
100
|
+
const message = createBaseModule();
|
|
101
|
+
message.blockedModuleAccountsOverride = object.blockedModuleAccountsOverride?.map(e => e) || [];
|
|
102
|
+
message.authority = object.authority ?? "";
|
|
103
|
+
message.restrictionsOrder = object.restrictionsOrder?.map(e => e) || [];
|
|
104
|
+
return message;
|
|
105
|
+
},
|
|
106
|
+
fromAmino(object: ModuleAmino): Module {
|
|
107
|
+
const message = createBaseModule();
|
|
108
|
+
message.blockedModuleAccountsOverride = object.blocked_module_accounts_override?.map(e => e) || [];
|
|
109
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
110
|
+
message.authority = object.authority;
|
|
111
|
+
}
|
|
112
|
+
message.restrictionsOrder = object.restrictions_order?.map(e => e) || [];
|
|
113
|
+
return message;
|
|
114
|
+
},
|
|
115
|
+
toAmino(message: Module): ModuleAmino {
|
|
116
|
+
const obj: any = {};
|
|
117
|
+
if (message.blockedModuleAccountsOverride) {
|
|
118
|
+
obj.blocked_module_accounts_override = message.blockedModuleAccountsOverride.map(e => e);
|
|
119
|
+
} else {
|
|
120
|
+
obj.blocked_module_accounts_override = message.blockedModuleAccountsOverride;
|
|
121
|
+
}
|
|
122
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
123
|
+
if (message.restrictionsOrder) {
|
|
124
|
+
obj.restrictions_order = message.restrictionsOrder.map(e => e);
|
|
125
|
+
} else {
|
|
126
|
+
obj.restrictions_order = message.restrictionsOrder;
|
|
127
|
+
}
|
|
128
|
+
return obj;
|
|
129
|
+
},
|
|
130
|
+
fromAminoMsg(object: ModuleAminoMsg): Module {
|
|
131
|
+
return Module.fromAmino(object.value);
|
|
132
|
+
},
|
|
133
|
+
toAminoMsg(message: Module): ModuleAminoMsg {
|
|
134
|
+
return {
|
|
135
|
+
type: "cosmos-sdk/Module",
|
|
136
|
+
value: Module.toAmino(message)
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
fromProtoMsg(message: ModuleProtoMsg): Module {
|
|
140
|
+
return Module.decode(message.value);
|
|
141
|
+
},
|
|
142
|
+
toProto(message: Module): Uint8Array {
|
|
143
|
+
return Module.encode(message).finish();
|
|
144
|
+
},
|
|
145
|
+
toProtoMsg(message: Module): ModuleProtoMsg {
|
|
146
|
+
return {
|
|
147
|
+
typeUrl: "/cosmos.bank.module.v1.Module",
|
|
148
|
+
value: Module.encode(message).finish()
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
GlobalDecoderRegistry.register(Module.typeUrl, Module);
|
|
153
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Module.aminoType, Module.typeUrl);
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { Coin, CoinAmino } from "../../base/v1beta1/coin";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
|
+
/**
|
|
6
|
+
* SendAuthorization allows the grantee to spend up to spend_limit coins from
|
|
7
|
+
* the granter's account.
|
|
8
|
+
*
|
|
9
|
+
* Since: cosmos-sdk 0.43
|
|
10
|
+
*/
|
|
11
|
+
export interface SendAuthorization {
|
|
12
|
+
spendLimit: Coin[];
|
|
13
|
+
/**
|
|
14
|
+
* allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the
|
|
15
|
+
* granter. If omitted, any recipient is allowed.
|
|
16
|
+
*
|
|
17
|
+
* Since: cosmos-sdk 0.47
|
|
18
|
+
*/
|
|
19
|
+
allowList: string[];
|
|
20
|
+
}
|
|
21
|
+
export interface SendAuthorizationProtoMsg {
|
|
22
|
+
typeUrl: "/cosmos.bank.v1beta1.SendAuthorization";
|
|
23
|
+
value: Uint8Array;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* SendAuthorization allows the grantee to spend up to spend_limit coins from
|
|
27
|
+
* the granter's account.
|
|
28
|
+
*
|
|
29
|
+
* Since: cosmos-sdk 0.43
|
|
30
|
+
*/
|
|
31
|
+
export interface SendAuthorizationAmino {
|
|
32
|
+
spend_limit: CoinAmino[];
|
|
33
|
+
/**
|
|
34
|
+
* allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the
|
|
35
|
+
* granter. If omitted, any recipient is allowed.
|
|
36
|
+
*
|
|
37
|
+
* Since: cosmos-sdk 0.47
|
|
38
|
+
*/
|
|
39
|
+
allow_list: string[];
|
|
40
|
+
}
|
|
41
|
+
export interface SendAuthorizationAminoMsg {
|
|
42
|
+
type: "cosmos-sdk/SendAuthorization";
|
|
43
|
+
value: SendAuthorizationAmino;
|
|
44
|
+
}
|
|
45
|
+
function createBaseSendAuthorization(): SendAuthorization {
|
|
46
|
+
return {
|
|
47
|
+
spendLimit: [],
|
|
48
|
+
allowList: []
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export const SendAuthorization = {
|
|
52
|
+
typeUrl: "/cosmos.bank.v1beta1.SendAuthorization",
|
|
53
|
+
aminoType: "cosmos-sdk/SendAuthorization",
|
|
54
|
+
is(o: any): o is SendAuthorization {
|
|
55
|
+
return o && (o.$typeUrl === SendAuthorization.typeUrl || Array.isArray(o.spendLimit) && (!o.spendLimit.length || Coin.is(o.spendLimit[0])) && Array.isArray(o.allowList) && (!o.allowList.length || typeof o.allowList[0] === "string"));
|
|
56
|
+
},
|
|
57
|
+
isAmino(o: any): o is SendAuthorizationAmino {
|
|
58
|
+
return o && (o.$typeUrl === SendAuthorization.typeUrl || Array.isArray(o.spend_limit) && (!o.spend_limit.length || Coin.isAmino(o.spend_limit[0])) && Array.isArray(o.allow_list) && (!o.allow_list.length || typeof o.allow_list[0] === "string"));
|
|
59
|
+
},
|
|
60
|
+
encode(message: SendAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
61
|
+
for (const v of message.spendLimit) {
|
|
62
|
+
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
63
|
+
}
|
|
64
|
+
for (const v of message.allowList) {
|
|
65
|
+
writer.uint32(18).string(v!);
|
|
66
|
+
}
|
|
67
|
+
return writer;
|
|
68
|
+
},
|
|
69
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SendAuthorization {
|
|
70
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
71
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
72
|
+
const message = createBaseSendAuthorization();
|
|
73
|
+
while (reader.pos < end) {
|
|
74
|
+
const tag = reader.uint32();
|
|
75
|
+
switch (tag >>> 3) {
|
|
76
|
+
case 1:
|
|
77
|
+
message.spendLimit.push(Coin.decode(reader, reader.uint32()));
|
|
78
|
+
break;
|
|
79
|
+
case 2:
|
|
80
|
+
message.allowList.push(reader.string());
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
reader.skipType(tag & 7);
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return message;
|
|
88
|
+
},
|
|
89
|
+
fromPartial(object: DeepPartial<SendAuthorization>): SendAuthorization {
|
|
90
|
+
const message = createBaseSendAuthorization();
|
|
91
|
+
message.spendLimit = object.spendLimit?.map(e => Coin.fromPartial(e)) || [];
|
|
92
|
+
message.allowList = object.allowList?.map(e => e) || [];
|
|
93
|
+
return message;
|
|
94
|
+
},
|
|
95
|
+
fromAmino(object: SendAuthorizationAmino): SendAuthorization {
|
|
96
|
+
const message = createBaseSendAuthorization();
|
|
97
|
+
message.spendLimit = object.spend_limit?.map(e => Coin.fromAmino(e)) || [];
|
|
98
|
+
message.allowList = object.allow_list?.map(e => e) || [];
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
toAmino(message: SendAuthorization): SendAuthorizationAmino {
|
|
102
|
+
const obj: any = {};
|
|
103
|
+
if (message.spendLimit) {
|
|
104
|
+
obj.spend_limit = message.spendLimit.map(e => e ? Coin.toAmino(e) : undefined);
|
|
105
|
+
} else {
|
|
106
|
+
obj.spend_limit = message.spendLimit;
|
|
107
|
+
}
|
|
108
|
+
if (message.allowList) {
|
|
109
|
+
obj.allow_list = message.allowList.map(e => e);
|
|
110
|
+
} else {
|
|
111
|
+
obj.allow_list = message.allowList;
|
|
112
|
+
}
|
|
113
|
+
return obj;
|
|
114
|
+
},
|
|
115
|
+
fromAminoMsg(object: SendAuthorizationAminoMsg): SendAuthorization {
|
|
116
|
+
return SendAuthorization.fromAmino(object.value);
|
|
117
|
+
},
|
|
118
|
+
toAminoMsg(message: SendAuthorization): SendAuthorizationAminoMsg {
|
|
119
|
+
return {
|
|
120
|
+
type: "cosmos-sdk/SendAuthorization",
|
|
121
|
+
value: SendAuthorization.toAmino(message)
|
|
122
|
+
};
|
|
123
|
+
},
|
|
124
|
+
fromProtoMsg(message: SendAuthorizationProtoMsg): SendAuthorization {
|
|
125
|
+
return SendAuthorization.decode(message.value);
|
|
126
|
+
},
|
|
127
|
+
toProto(message: SendAuthorization): Uint8Array {
|
|
128
|
+
return SendAuthorization.encode(message).finish();
|
|
129
|
+
},
|
|
130
|
+
toProtoMsg(message: SendAuthorization): SendAuthorizationProtoMsg {
|
|
131
|
+
return {
|
|
132
|
+
typeUrl: "/cosmos.bank.v1beta1.SendAuthorization",
|
|
133
|
+
value: SendAuthorization.encode(message).finish()
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
GlobalDecoderRegistry.register(SendAuthorization.typeUrl, SendAuthorization);
|
|
138
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SendAuthorization.aminoType, SendAuthorization.typeUrl);
|