@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,413 @@
|
|
|
1
|
+
import { isSet, DeepPartial } from "../../../helpers";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
|
+
/** Level is the permission level. */
|
|
5
|
+
export enum Permissions_Level {
|
|
6
|
+
/**
|
|
7
|
+
* LEVEL_NONE_UNSPECIFIED - LEVEL_NONE_UNSPECIFIED indicates that the account will have no circuit
|
|
8
|
+
* breaker permissions.
|
|
9
|
+
*/
|
|
10
|
+
LEVEL_NONE_UNSPECIFIED = 0,
|
|
11
|
+
/**
|
|
12
|
+
* LEVEL_SOME_MSGS - LEVEL_SOME_MSGS indicates that the account will have permission to
|
|
13
|
+
* trip or reset the circuit breaker for some Msg type URLs. If this level
|
|
14
|
+
* is chosen, a non-empty list of Msg type URLs must be provided in
|
|
15
|
+
* limit_type_urls.
|
|
16
|
+
*/
|
|
17
|
+
LEVEL_SOME_MSGS = 1,
|
|
18
|
+
/**
|
|
19
|
+
* LEVEL_ALL_MSGS - LEVEL_ALL_MSGS indicates that the account can trip or reset the circuit
|
|
20
|
+
* breaker for Msg's of all type URLs.
|
|
21
|
+
*/
|
|
22
|
+
LEVEL_ALL_MSGS = 2,
|
|
23
|
+
/**
|
|
24
|
+
* LEVEL_SUPER_ADMIN - LEVEL_SUPER_ADMIN indicates that the account can take all circuit breaker
|
|
25
|
+
* actions and can grant permissions to other accounts.
|
|
26
|
+
*/
|
|
27
|
+
LEVEL_SUPER_ADMIN = 3,
|
|
28
|
+
UNRECOGNIZED = -1,
|
|
29
|
+
}
|
|
30
|
+
export const Permissions_LevelAmino = Permissions_Level;
|
|
31
|
+
export function permissions_LevelFromJSON(object: any): Permissions_Level {
|
|
32
|
+
switch (object) {
|
|
33
|
+
case 0:
|
|
34
|
+
case "LEVEL_NONE_UNSPECIFIED":
|
|
35
|
+
return Permissions_Level.LEVEL_NONE_UNSPECIFIED;
|
|
36
|
+
case 1:
|
|
37
|
+
case "LEVEL_SOME_MSGS":
|
|
38
|
+
return Permissions_Level.LEVEL_SOME_MSGS;
|
|
39
|
+
case 2:
|
|
40
|
+
case "LEVEL_ALL_MSGS":
|
|
41
|
+
return Permissions_Level.LEVEL_ALL_MSGS;
|
|
42
|
+
case 3:
|
|
43
|
+
case "LEVEL_SUPER_ADMIN":
|
|
44
|
+
return Permissions_Level.LEVEL_SUPER_ADMIN;
|
|
45
|
+
case -1:
|
|
46
|
+
case "UNRECOGNIZED":
|
|
47
|
+
default:
|
|
48
|
+
return Permissions_Level.UNRECOGNIZED;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export function permissions_LevelToJSON(object: Permissions_Level): string {
|
|
52
|
+
switch (object) {
|
|
53
|
+
case Permissions_Level.LEVEL_NONE_UNSPECIFIED:
|
|
54
|
+
return "LEVEL_NONE_UNSPECIFIED";
|
|
55
|
+
case Permissions_Level.LEVEL_SOME_MSGS:
|
|
56
|
+
return "LEVEL_SOME_MSGS";
|
|
57
|
+
case Permissions_Level.LEVEL_ALL_MSGS:
|
|
58
|
+
return "LEVEL_ALL_MSGS";
|
|
59
|
+
case Permissions_Level.LEVEL_SUPER_ADMIN:
|
|
60
|
+
return "LEVEL_SUPER_ADMIN";
|
|
61
|
+
case Permissions_Level.UNRECOGNIZED:
|
|
62
|
+
default:
|
|
63
|
+
return "UNRECOGNIZED";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Permissions are the permissions that an account has to trip
|
|
68
|
+
* or reset the circuit breaker.
|
|
69
|
+
*/
|
|
70
|
+
export interface Permissions {
|
|
71
|
+
/** level is the level of permissions granted to this account. */
|
|
72
|
+
level: Permissions_Level;
|
|
73
|
+
/**
|
|
74
|
+
* limit_type_urls is used with LEVEL_SOME_MSGS to limit the lists of Msg type
|
|
75
|
+
* URLs that the account can trip. It is an error to use limit_type_urls with
|
|
76
|
+
* a level other than LEVEL_SOME_MSGS.
|
|
77
|
+
*/
|
|
78
|
+
limitTypeUrls: string[];
|
|
79
|
+
}
|
|
80
|
+
export interface PermissionsProtoMsg {
|
|
81
|
+
typeUrl: "/cosmos.circuit.v1.Permissions";
|
|
82
|
+
value: Uint8Array;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Permissions are the permissions that an account has to trip
|
|
86
|
+
* or reset the circuit breaker.
|
|
87
|
+
*/
|
|
88
|
+
export interface PermissionsAmino {
|
|
89
|
+
/** level is the level of permissions granted to this account. */
|
|
90
|
+
level: Permissions_Level;
|
|
91
|
+
/**
|
|
92
|
+
* limit_type_urls is used with LEVEL_SOME_MSGS to limit the lists of Msg type
|
|
93
|
+
* URLs that the account can trip. It is an error to use limit_type_urls with
|
|
94
|
+
* a level other than LEVEL_SOME_MSGS.
|
|
95
|
+
*/
|
|
96
|
+
limit_type_urls: string[];
|
|
97
|
+
}
|
|
98
|
+
export interface PermissionsAminoMsg {
|
|
99
|
+
type: "cosmos-sdk/Permissions";
|
|
100
|
+
value: PermissionsAmino;
|
|
101
|
+
}
|
|
102
|
+
/** GenesisAccountPermissions is the account permissions for the circuit breaker in genesis */
|
|
103
|
+
export interface GenesisAccountPermissions {
|
|
104
|
+
address: string;
|
|
105
|
+
permissions?: Permissions;
|
|
106
|
+
}
|
|
107
|
+
export interface GenesisAccountPermissionsProtoMsg {
|
|
108
|
+
typeUrl: "/cosmos.circuit.v1.GenesisAccountPermissions";
|
|
109
|
+
value: Uint8Array;
|
|
110
|
+
}
|
|
111
|
+
/** GenesisAccountPermissions is the account permissions for the circuit breaker in genesis */
|
|
112
|
+
export interface GenesisAccountPermissionsAmino {
|
|
113
|
+
address: string;
|
|
114
|
+
permissions?: PermissionsAmino;
|
|
115
|
+
}
|
|
116
|
+
export interface GenesisAccountPermissionsAminoMsg {
|
|
117
|
+
type: "cosmos-sdk/GenesisAccountPermissions";
|
|
118
|
+
value: GenesisAccountPermissionsAmino;
|
|
119
|
+
}
|
|
120
|
+
/** GenesisState is the state that must be provided at genesis. */
|
|
121
|
+
export interface GenesisState {
|
|
122
|
+
accountPermissions: GenesisAccountPermissions[];
|
|
123
|
+
disabledTypeUrls: string[];
|
|
124
|
+
}
|
|
125
|
+
export interface GenesisStateProtoMsg {
|
|
126
|
+
typeUrl: "/cosmos.circuit.v1.GenesisState";
|
|
127
|
+
value: Uint8Array;
|
|
128
|
+
}
|
|
129
|
+
/** GenesisState is the state that must be provided at genesis. */
|
|
130
|
+
export interface GenesisStateAmino {
|
|
131
|
+
account_permissions: GenesisAccountPermissionsAmino[];
|
|
132
|
+
disabled_type_urls: string[];
|
|
133
|
+
}
|
|
134
|
+
export interface GenesisStateAminoMsg {
|
|
135
|
+
type: "cosmos-sdk/GenesisState";
|
|
136
|
+
value: GenesisStateAmino;
|
|
137
|
+
}
|
|
138
|
+
function createBasePermissions(): Permissions {
|
|
139
|
+
return {
|
|
140
|
+
level: 0,
|
|
141
|
+
limitTypeUrls: []
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
export const Permissions = {
|
|
145
|
+
typeUrl: "/cosmos.circuit.v1.Permissions",
|
|
146
|
+
aminoType: "cosmos-sdk/Permissions",
|
|
147
|
+
is(o: any): o is Permissions {
|
|
148
|
+
return o && (o.$typeUrl === Permissions.typeUrl || isSet(o.level) && Array.isArray(o.limitTypeUrls) && (!o.limitTypeUrls.length || typeof o.limitTypeUrls[0] === "string"));
|
|
149
|
+
},
|
|
150
|
+
isAmino(o: any): o is PermissionsAmino {
|
|
151
|
+
return o && (o.$typeUrl === Permissions.typeUrl || isSet(o.level) && Array.isArray(o.limit_type_urls) && (!o.limit_type_urls.length || typeof o.limit_type_urls[0] === "string"));
|
|
152
|
+
},
|
|
153
|
+
encode(message: Permissions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
154
|
+
if (message.level !== 0) {
|
|
155
|
+
writer.uint32(8).int32(message.level);
|
|
156
|
+
}
|
|
157
|
+
for (const v of message.limitTypeUrls) {
|
|
158
|
+
writer.uint32(18).string(v!);
|
|
159
|
+
}
|
|
160
|
+
return writer;
|
|
161
|
+
},
|
|
162
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Permissions {
|
|
163
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
164
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
165
|
+
const message = createBasePermissions();
|
|
166
|
+
while (reader.pos < end) {
|
|
167
|
+
const tag = reader.uint32();
|
|
168
|
+
switch (tag >>> 3) {
|
|
169
|
+
case 1:
|
|
170
|
+
message.level = reader.int32() as any;
|
|
171
|
+
break;
|
|
172
|
+
case 2:
|
|
173
|
+
message.limitTypeUrls.push(reader.string());
|
|
174
|
+
break;
|
|
175
|
+
default:
|
|
176
|
+
reader.skipType(tag & 7);
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return message;
|
|
181
|
+
},
|
|
182
|
+
fromPartial(object: DeepPartial<Permissions>): Permissions {
|
|
183
|
+
const message = createBasePermissions();
|
|
184
|
+
message.level = object.level ?? 0;
|
|
185
|
+
message.limitTypeUrls = object.limitTypeUrls?.map(e => e) || [];
|
|
186
|
+
return message;
|
|
187
|
+
},
|
|
188
|
+
fromAmino(object: PermissionsAmino): Permissions {
|
|
189
|
+
const message = createBasePermissions();
|
|
190
|
+
if (object.level !== undefined && object.level !== null) {
|
|
191
|
+
message.level = object.level;
|
|
192
|
+
}
|
|
193
|
+
message.limitTypeUrls = object.limit_type_urls?.map(e => e) || [];
|
|
194
|
+
return message;
|
|
195
|
+
},
|
|
196
|
+
toAmino(message: Permissions): PermissionsAmino {
|
|
197
|
+
const obj: any = {};
|
|
198
|
+
obj.level = message.level === 0 ? undefined : message.level;
|
|
199
|
+
if (message.limitTypeUrls) {
|
|
200
|
+
obj.limit_type_urls = message.limitTypeUrls.map(e => e);
|
|
201
|
+
} else {
|
|
202
|
+
obj.limit_type_urls = message.limitTypeUrls;
|
|
203
|
+
}
|
|
204
|
+
return obj;
|
|
205
|
+
},
|
|
206
|
+
fromAminoMsg(object: PermissionsAminoMsg): Permissions {
|
|
207
|
+
return Permissions.fromAmino(object.value);
|
|
208
|
+
},
|
|
209
|
+
toAminoMsg(message: Permissions): PermissionsAminoMsg {
|
|
210
|
+
return {
|
|
211
|
+
type: "cosmos-sdk/Permissions",
|
|
212
|
+
value: Permissions.toAmino(message)
|
|
213
|
+
};
|
|
214
|
+
},
|
|
215
|
+
fromProtoMsg(message: PermissionsProtoMsg): Permissions {
|
|
216
|
+
return Permissions.decode(message.value);
|
|
217
|
+
},
|
|
218
|
+
toProto(message: Permissions): Uint8Array {
|
|
219
|
+
return Permissions.encode(message).finish();
|
|
220
|
+
},
|
|
221
|
+
toProtoMsg(message: Permissions): PermissionsProtoMsg {
|
|
222
|
+
return {
|
|
223
|
+
typeUrl: "/cosmos.circuit.v1.Permissions",
|
|
224
|
+
value: Permissions.encode(message).finish()
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
GlobalDecoderRegistry.register(Permissions.typeUrl, Permissions);
|
|
229
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Permissions.aminoType, Permissions.typeUrl);
|
|
230
|
+
function createBaseGenesisAccountPermissions(): GenesisAccountPermissions {
|
|
231
|
+
return {
|
|
232
|
+
address: "",
|
|
233
|
+
permissions: undefined
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
export const GenesisAccountPermissions = {
|
|
237
|
+
typeUrl: "/cosmos.circuit.v1.GenesisAccountPermissions",
|
|
238
|
+
aminoType: "cosmos-sdk/GenesisAccountPermissions",
|
|
239
|
+
is(o: any): o is GenesisAccountPermissions {
|
|
240
|
+
return o && (o.$typeUrl === GenesisAccountPermissions.typeUrl || typeof o.address === "string");
|
|
241
|
+
},
|
|
242
|
+
isAmino(o: any): o is GenesisAccountPermissionsAmino {
|
|
243
|
+
return o && (o.$typeUrl === GenesisAccountPermissions.typeUrl || typeof o.address === "string");
|
|
244
|
+
},
|
|
245
|
+
encode(message: GenesisAccountPermissions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
246
|
+
if (message.address !== "") {
|
|
247
|
+
writer.uint32(10).string(message.address);
|
|
248
|
+
}
|
|
249
|
+
if (message.permissions !== undefined) {
|
|
250
|
+
Permissions.encode(message.permissions, writer.uint32(18).fork()).ldelim();
|
|
251
|
+
}
|
|
252
|
+
return writer;
|
|
253
|
+
},
|
|
254
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisAccountPermissions {
|
|
255
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
256
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
257
|
+
const message = createBaseGenesisAccountPermissions();
|
|
258
|
+
while (reader.pos < end) {
|
|
259
|
+
const tag = reader.uint32();
|
|
260
|
+
switch (tag >>> 3) {
|
|
261
|
+
case 1:
|
|
262
|
+
message.address = reader.string();
|
|
263
|
+
break;
|
|
264
|
+
case 2:
|
|
265
|
+
message.permissions = Permissions.decode(reader, reader.uint32());
|
|
266
|
+
break;
|
|
267
|
+
default:
|
|
268
|
+
reader.skipType(tag & 7);
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return message;
|
|
273
|
+
},
|
|
274
|
+
fromPartial(object: DeepPartial<GenesisAccountPermissions>): GenesisAccountPermissions {
|
|
275
|
+
const message = createBaseGenesisAccountPermissions();
|
|
276
|
+
message.address = object.address ?? "";
|
|
277
|
+
message.permissions = object.permissions !== undefined && object.permissions !== null ? Permissions.fromPartial(object.permissions) : undefined;
|
|
278
|
+
return message;
|
|
279
|
+
},
|
|
280
|
+
fromAmino(object: GenesisAccountPermissionsAmino): GenesisAccountPermissions {
|
|
281
|
+
const message = createBaseGenesisAccountPermissions();
|
|
282
|
+
if (object.address !== undefined && object.address !== null) {
|
|
283
|
+
message.address = object.address;
|
|
284
|
+
}
|
|
285
|
+
if (object.permissions !== undefined && object.permissions !== null) {
|
|
286
|
+
message.permissions = Permissions.fromAmino(object.permissions);
|
|
287
|
+
}
|
|
288
|
+
return message;
|
|
289
|
+
},
|
|
290
|
+
toAmino(message: GenesisAccountPermissions): GenesisAccountPermissionsAmino {
|
|
291
|
+
const obj: any = {};
|
|
292
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
293
|
+
obj.permissions = message.permissions ? Permissions.toAmino(message.permissions) : undefined;
|
|
294
|
+
return obj;
|
|
295
|
+
},
|
|
296
|
+
fromAminoMsg(object: GenesisAccountPermissionsAminoMsg): GenesisAccountPermissions {
|
|
297
|
+
return GenesisAccountPermissions.fromAmino(object.value);
|
|
298
|
+
},
|
|
299
|
+
toAminoMsg(message: GenesisAccountPermissions): GenesisAccountPermissionsAminoMsg {
|
|
300
|
+
return {
|
|
301
|
+
type: "cosmos-sdk/GenesisAccountPermissions",
|
|
302
|
+
value: GenesisAccountPermissions.toAmino(message)
|
|
303
|
+
};
|
|
304
|
+
},
|
|
305
|
+
fromProtoMsg(message: GenesisAccountPermissionsProtoMsg): GenesisAccountPermissions {
|
|
306
|
+
return GenesisAccountPermissions.decode(message.value);
|
|
307
|
+
},
|
|
308
|
+
toProto(message: GenesisAccountPermissions): Uint8Array {
|
|
309
|
+
return GenesisAccountPermissions.encode(message).finish();
|
|
310
|
+
},
|
|
311
|
+
toProtoMsg(message: GenesisAccountPermissions): GenesisAccountPermissionsProtoMsg {
|
|
312
|
+
return {
|
|
313
|
+
typeUrl: "/cosmos.circuit.v1.GenesisAccountPermissions",
|
|
314
|
+
value: GenesisAccountPermissions.encode(message).finish()
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
GlobalDecoderRegistry.register(GenesisAccountPermissions.typeUrl, GenesisAccountPermissions);
|
|
319
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GenesisAccountPermissions.aminoType, GenesisAccountPermissions.typeUrl);
|
|
320
|
+
function createBaseGenesisState(): GenesisState {
|
|
321
|
+
return {
|
|
322
|
+
accountPermissions: [],
|
|
323
|
+
disabledTypeUrls: []
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
export const GenesisState = {
|
|
327
|
+
typeUrl: "/cosmos.circuit.v1.GenesisState",
|
|
328
|
+
aminoType: "cosmos-sdk/GenesisState",
|
|
329
|
+
is(o: any): o is GenesisState {
|
|
330
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Array.isArray(o.accountPermissions) && (!o.accountPermissions.length || GenesisAccountPermissions.is(o.accountPermissions[0])) && Array.isArray(o.disabledTypeUrls) && (!o.disabledTypeUrls.length || typeof o.disabledTypeUrls[0] === "string"));
|
|
331
|
+
},
|
|
332
|
+
isAmino(o: any): o is GenesisStateAmino {
|
|
333
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Array.isArray(o.account_permissions) && (!o.account_permissions.length || GenesisAccountPermissions.isAmino(o.account_permissions[0])) && Array.isArray(o.disabled_type_urls) && (!o.disabled_type_urls.length || typeof o.disabled_type_urls[0] === "string"));
|
|
334
|
+
},
|
|
335
|
+
encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
336
|
+
for (const v of message.accountPermissions) {
|
|
337
|
+
GenesisAccountPermissions.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
338
|
+
}
|
|
339
|
+
for (const v of message.disabledTypeUrls) {
|
|
340
|
+
writer.uint32(18).string(v!);
|
|
341
|
+
}
|
|
342
|
+
return writer;
|
|
343
|
+
},
|
|
344
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
|
|
345
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
346
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
347
|
+
const message = createBaseGenesisState();
|
|
348
|
+
while (reader.pos < end) {
|
|
349
|
+
const tag = reader.uint32();
|
|
350
|
+
switch (tag >>> 3) {
|
|
351
|
+
case 1:
|
|
352
|
+
message.accountPermissions.push(GenesisAccountPermissions.decode(reader, reader.uint32()));
|
|
353
|
+
break;
|
|
354
|
+
case 2:
|
|
355
|
+
message.disabledTypeUrls.push(reader.string());
|
|
356
|
+
break;
|
|
357
|
+
default:
|
|
358
|
+
reader.skipType(tag & 7);
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return message;
|
|
363
|
+
},
|
|
364
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState {
|
|
365
|
+
const message = createBaseGenesisState();
|
|
366
|
+
message.accountPermissions = object.accountPermissions?.map(e => GenesisAccountPermissions.fromPartial(e)) || [];
|
|
367
|
+
message.disabledTypeUrls = object.disabledTypeUrls?.map(e => e) || [];
|
|
368
|
+
return message;
|
|
369
|
+
},
|
|
370
|
+
fromAmino(object: GenesisStateAmino): GenesisState {
|
|
371
|
+
const message = createBaseGenesisState();
|
|
372
|
+
message.accountPermissions = object.account_permissions?.map(e => GenesisAccountPermissions.fromAmino(e)) || [];
|
|
373
|
+
message.disabledTypeUrls = object.disabled_type_urls?.map(e => e) || [];
|
|
374
|
+
return message;
|
|
375
|
+
},
|
|
376
|
+
toAmino(message: GenesisState): GenesisStateAmino {
|
|
377
|
+
const obj: any = {};
|
|
378
|
+
if (message.accountPermissions) {
|
|
379
|
+
obj.account_permissions = message.accountPermissions.map(e => e ? GenesisAccountPermissions.toAmino(e) : undefined);
|
|
380
|
+
} else {
|
|
381
|
+
obj.account_permissions = message.accountPermissions;
|
|
382
|
+
}
|
|
383
|
+
if (message.disabledTypeUrls) {
|
|
384
|
+
obj.disabled_type_urls = message.disabledTypeUrls.map(e => e);
|
|
385
|
+
} else {
|
|
386
|
+
obj.disabled_type_urls = message.disabledTypeUrls;
|
|
387
|
+
}
|
|
388
|
+
return obj;
|
|
389
|
+
},
|
|
390
|
+
fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
|
|
391
|
+
return GenesisState.fromAmino(object.value);
|
|
392
|
+
},
|
|
393
|
+
toAminoMsg(message: GenesisState): GenesisStateAminoMsg {
|
|
394
|
+
return {
|
|
395
|
+
type: "cosmos-sdk/GenesisState",
|
|
396
|
+
value: GenesisState.toAmino(message)
|
|
397
|
+
};
|
|
398
|
+
},
|
|
399
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
|
|
400
|
+
return GenesisState.decode(message.value);
|
|
401
|
+
},
|
|
402
|
+
toProto(message: GenesisState): Uint8Array {
|
|
403
|
+
return GenesisState.encode(message).finish();
|
|
404
|
+
},
|
|
405
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg {
|
|
406
|
+
return {
|
|
407
|
+
typeUrl: "/cosmos.circuit.v1.GenesisState",
|
|
408
|
+
value: GenesisState.encode(message).finish()
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
|
|
413
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GenesisState.aminoType, GenesisState.typeUrl);
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
|
+
/** Module is the config object of the consensus module. */
|
|
5
|
+
export interface Module {
|
|
6
|
+
/** authority defines the custom module authority. If not set, defaults to the governance module. */
|
|
7
|
+
authority: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ModuleProtoMsg {
|
|
10
|
+
typeUrl: "/cosmos.consensus.module.v1.Module";
|
|
11
|
+
value: Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
/** Module is the config object of the consensus module. */
|
|
14
|
+
export interface ModuleAmino {
|
|
15
|
+
/** authority defines the custom module authority. If not set, defaults to the governance module. */
|
|
16
|
+
authority: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ModuleAminoMsg {
|
|
19
|
+
type: "cosmos-sdk/Module";
|
|
20
|
+
value: ModuleAmino;
|
|
21
|
+
}
|
|
22
|
+
function createBaseModule(): Module {
|
|
23
|
+
return {
|
|
24
|
+
authority: ""
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export const Module = {
|
|
28
|
+
typeUrl: "/cosmos.consensus.module.v1.Module",
|
|
29
|
+
aminoType: "cosmos-sdk/Module",
|
|
30
|
+
is(o: any): o is Module {
|
|
31
|
+
return o && (o.$typeUrl === Module.typeUrl || typeof o.authority === "string");
|
|
32
|
+
},
|
|
33
|
+
isAmino(o: any): o is ModuleAmino {
|
|
34
|
+
return o && (o.$typeUrl === Module.typeUrl || typeof o.authority === "string");
|
|
35
|
+
},
|
|
36
|
+
encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
37
|
+
if (message.authority !== "") {
|
|
38
|
+
writer.uint32(10).string(message.authority);
|
|
39
|
+
}
|
|
40
|
+
return writer;
|
|
41
|
+
},
|
|
42
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Module {
|
|
43
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
44
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
45
|
+
const message = createBaseModule();
|
|
46
|
+
while (reader.pos < end) {
|
|
47
|
+
const tag = reader.uint32();
|
|
48
|
+
switch (tag >>> 3) {
|
|
49
|
+
case 1:
|
|
50
|
+
message.authority = reader.string();
|
|
51
|
+
break;
|
|
52
|
+
default:
|
|
53
|
+
reader.skipType(tag & 7);
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return message;
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object: DeepPartial<Module>): Module {
|
|
60
|
+
const message = createBaseModule();
|
|
61
|
+
message.authority = object.authority ?? "";
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromAmino(object: ModuleAmino): Module {
|
|
65
|
+
const message = createBaseModule();
|
|
66
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
67
|
+
message.authority = object.authority;
|
|
68
|
+
}
|
|
69
|
+
return message;
|
|
70
|
+
},
|
|
71
|
+
toAmino(message: Module): ModuleAmino {
|
|
72
|
+
const obj: any = {};
|
|
73
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
74
|
+
return obj;
|
|
75
|
+
},
|
|
76
|
+
fromAminoMsg(object: ModuleAminoMsg): Module {
|
|
77
|
+
return Module.fromAmino(object.value);
|
|
78
|
+
},
|
|
79
|
+
toAminoMsg(message: Module): ModuleAminoMsg {
|
|
80
|
+
return {
|
|
81
|
+
type: "cosmos-sdk/Module",
|
|
82
|
+
value: Module.toAmino(message)
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
fromProtoMsg(message: ModuleProtoMsg): Module {
|
|
86
|
+
return Module.decode(message.value);
|
|
87
|
+
},
|
|
88
|
+
toProto(message: Module): Uint8Array {
|
|
89
|
+
return Module.encode(message).finish();
|
|
90
|
+
},
|
|
91
|
+
toProtoMsg(message: Module): ModuleProtoMsg {
|
|
92
|
+
return {
|
|
93
|
+
typeUrl: "/cosmos.consensus.module.v1.Module",
|
|
94
|
+
value: Module.encode(message).finish()
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
GlobalDecoderRegistry.register(Module.typeUrl, Module);
|
|
99
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Module.aminoType, Module.typeUrl);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RpcResolver, buildQuery } from "../../../helper-func-types";
|
|
2
|
+
import { buildUseQuery } from "../../../react-query";
|
|
3
|
+
import { QueryParamsRequest, QueryParamsResponse } from "./query";
|
|
4
|
+
export const createGetParams = (clientResolver?: RpcResolver) => buildQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
5
|
+
encode: QueryParamsRequest.encode,
|
|
6
|
+
decode: QueryParamsResponse.decode,
|
|
7
|
+
service: "cosmos.consensus.v1.Query",
|
|
8
|
+
method: "Params",
|
|
9
|
+
clientResolver
|
|
10
|
+
});
|
|
11
|
+
export const useGetParams = buildUseQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
12
|
+
builderQueryFn: createGetParams,
|
|
13
|
+
queryKeyPrefix: "ParamsQuery"
|
|
14
|
+
});
|