@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,574 @@
|
|
|
1
|
+
import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "../../base/query/v1beta1/pagination";
|
|
2
|
+
import { Permissions, PermissionsAmino, GenesisAccountPermissions, GenesisAccountPermissionsAmino } from "./types";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
|
+
/** QueryAccountRequest is the request type for the Query/Account RPC method. */
|
|
7
|
+
export interface QueryAccountRequest {
|
|
8
|
+
address: string;
|
|
9
|
+
}
|
|
10
|
+
export interface QueryAccountRequestProtoMsg {
|
|
11
|
+
typeUrl: "/cosmos.circuit.v1.QueryAccountRequest";
|
|
12
|
+
value: Uint8Array;
|
|
13
|
+
}
|
|
14
|
+
/** QueryAccountRequest is the request type for the Query/Account RPC method. */
|
|
15
|
+
export interface QueryAccountRequestAmino {
|
|
16
|
+
address: string;
|
|
17
|
+
}
|
|
18
|
+
export interface QueryAccountRequestAminoMsg {
|
|
19
|
+
type: "cosmos-sdk/QueryAccountRequest";
|
|
20
|
+
value: QueryAccountRequestAmino;
|
|
21
|
+
}
|
|
22
|
+
/** AccountResponse is the response type for the Query/Account RPC method. */
|
|
23
|
+
export interface AccountResponse {
|
|
24
|
+
permission?: Permissions;
|
|
25
|
+
}
|
|
26
|
+
export interface AccountResponseProtoMsg {
|
|
27
|
+
typeUrl: "/cosmos.circuit.v1.AccountResponse";
|
|
28
|
+
value: Uint8Array;
|
|
29
|
+
}
|
|
30
|
+
/** AccountResponse is the response type for the Query/Account RPC method. */
|
|
31
|
+
export interface AccountResponseAmino {
|
|
32
|
+
permission?: PermissionsAmino;
|
|
33
|
+
}
|
|
34
|
+
export interface AccountResponseAminoMsg {
|
|
35
|
+
type: "cosmos-sdk/AccountResponse";
|
|
36
|
+
value: AccountResponseAmino;
|
|
37
|
+
}
|
|
38
|
+
/** QueryAccountsRequest is the request type for the Query/Accounts RPC method. */
|
|
39
|
+
export interface QueryAccountsRequest {
|
|
40
|
+
/** pagination defines an optional pagination for the request. */
|
|
41
|
+
pagination?: PageRequest;
|
|
42
|
+
}
|
|
43
|
+
export interface QueryAccountsRequestProtoMsg {
|
|
44
|
+
typeUrl: "/cosmos.circuit.v1.QueryAccountsRequest";
|
|
45
|
+
value: Uint8Array;
|
|
46
|
+
}
|
|
47
|
+
/** QueryAccountsRequest is the request type for the Query/Accounts RPC method. */
|
|
48
|
+
export interface QueryAccountsRequestAmino {
|
|
49
|
+
/** pagination defines an optional pagination for the request. */
|
|
50
|
+
pagination?: PageRequestAmino;
|
|
51
|
+
}
|
|
52
|
+
export interface QueryAccountsRequestAminoMsg {
|
|
53
|
+
type: "cosmos-sdk/QueryAccountsRequest";
|
|
54
|
+
value: QueryAccountsRequestAmino;
|
|
55
|
+
}
|
|
56
|
+
/** AccountsResponse is the response type for the Query/Accounts RPC method. */
|
|
57
|
+
export interface AccountsResponse {
|
|
58
|
+
accounts: GenesisAccountPermissions[];
|
|
59
|
+
/** pagination defines the pagination in the response. */
|
|
60
|
+
pagination?: PageResponse;
|
|
61
|
+
}
|
|
62
|
+
export interface AccountsResponseProtoMsg {
|
|
63
|
+
typeUrl: "/cosmos.circuit.v1.AccountsResponse";
|
|
64
|
+
value: Uint8Array;
|
|
65
|
+
}
|
|
66
|
+
/** AccountsResponse is the response type for the Query/Accounts RPC method. */
|
|
67
|
+
export interface AccountsResponseAmino {
|
|
68
|
+
accounts: GenesisAccountPermissionsAmino[];
|
|
69
|
+
/** pagination defines the pagination in the response. */
|
|
70
|
+
pagination?: PageResponseAmino;
|
|
71
|
+
}
|
|
72
|
+
export interface AccountsResponseAminoMsg {
|
|
73
|
+
type: "cosmos-sdk/AccountsResponse";
|
|
74
|
+
value: AccountsResponseAmino;
|
|
75
|
+
}
|
|
76
|
+
/** QueryDisableListRequest is the request type for the Query/DisabledList RPC method. */
|
|
77
|
+
export interface QueryDisabledListRequest {}
|
|
78
|
+
export interface QueryDisabledListRequestProtoMsg {
|
|
79
|
+
typeUrl: "/cosmos.circuit.v1.QueryDisabledListRequest";
|
|
80
|
+
value: Uint8Array;
|
|
81
|
+
}
|
|
82
|
+
/** QueryDisableListRequest is the request type for the Query/DisabledList RPC method. */
|
|
83
|
+
export interface QueryDisabledListRequestAmino {}
|
|
84
|
+
export interface QueryDisabledListRequestAminoMsg {
|
|
85
|
+
type: "cosmos-sdk/QueryDisabledListRequest";
|
|
86
|
+
value: QueryDisabledListRequestAmino;
|
|
87
|
+
}
|
|
88
|
+
/** DisabledListResponse is the response type for the Query/DisabledList RPC method. */
|
|
89
|
+
export interface DisabledListResponse {
|
|
90
|
+
disabledList: string[];
|
|
91
|
+
}
|
|
92
|
+
export interface DisabledListResponseProtoMsg {
|
|
93
|
+
typeUrl: "/cosmos.circuit.v1.DisabledListResponse";
|
|
94
|
+
value: Uint8Array;
|
|
95
|
+
}
|
|
96
|
+
/** DisabledListResponse is the response type for the Query/DisabledList RPC method. */
|
|
97
|
+
export interface DisabledListResponseAmino {
|
|
98
|
+
disabled_list: string[];
|
|
99
|
+
}
|
|
100
|
+
export interface DisabledListResponseAminoMsg {
|
|
101
|
+
type: "cosmos-sdk/DisabledListResponse";
|
|
102
|
+
value: DisabledListResponseAmino;
|
|
103
|
+
}
|
|
104
|
+
function createBaseQueryAccountRequest(): QueryAccountRequest {
|
|
105
|
+
return {
|
|
106
|
+
address: ""
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export const QueryAccountRequest = {
|
|
110
|
+
typeUrl: "/cosmos.circuit.v1.QueryAccountRequest",
|
|
111
|
+
aminoType: "cosmos-sdk/QueryAccountRequest",
|
|
112
|
+
is(o: any): o is QueryAccountRequest {
|
|
113
|
+
return o && (o.$typeUrl === QueryAccountRequest.typeUrl || typeof o.address === "string");
|
|
114
|
+
},
|
|
115
|
+
isAmino(o: any): o is QueryAccountRequestAmino {
|
|
116
|
+
return o && (o.$typeUrl === QueryAccountRequest.typeUrl || typeof o.address === "string");
|
|
117
|
+
},
|
|
118
|
+
encode(message: QueryAccountRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
119
|
+
if (message.address !== "") {
|
|
120
|
+
writer.uint32(10).string(message.address);
|
|
121
|
+
}
|
|
122
|
+
return writer;
|
|
123
|
+
},
|
|
124
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountRequest {
|
|
125
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
126
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
|
+
const message = createBaseQueryAccountRequest();
|
|
128
|
+
while (reader.pos < end) {
|
|
129
|
+
const tag = reader.uint32();
|
|
130
|
+
switch (tag >>> 3) {
|
|
131
|
+
case 1:
|
|
132
|
+
message.address = reader.string();
|
|
133
|
+
break;
|
|
134
|
+
default:
|
|
135
|
+
reader.skipType(tag & 7);
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return message;
|
|
140
|
+
},
|
|
141
|
+
fromPartial(object: DeepPartial<QueryAccountRequest>): QueryAccountRequest {
|
|
142
|
+
const message = createBaseQueryAccountRequest();
|
|
143
|
+
message.address = object.address ?? "";
|
|
144
|
+
return message;
|
|
145
|
+
},
|
|
146
|
+
fromAmino(object: QueryAccountRequestAmino): QueryAccountRequest {
|
|
147
|
+
const message = createBaseQueryAccountRequest();
|
|
148
|
+
if (object.address !== undefined && object.address !== null) {
|
|
149
|
+
message.address = object.address;
|
|
150
|
+
}
|
|
151
|
+
return message;
|
|
152
|
+
},
|
|
153
|
+
toAmino(message: QueryAccountRequest): QueryAccountRequestAmino {
|
|
154
|
+
const obj: any = {};
|
|
155
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
156
|
+
return obj;
|
|
157
|
+
},
|
|
158
|
+
fromAminoMsg(object: QueryAccountRequestAminoMsg): QueryAccountRequest {
|
|
159
|
+
return QueryAccountRequest.fromAmino(object.value);
|
|
160
|
+
},
|
|
161
|
+
toAminoMsg(message: QueryAccountRequest): QueryAccountRequestAminoMsg {
|
|
162
|
+
return {
|
|
163
|
+
type: "cosmos-sdk/QueryAccountRequest",
|
|
164
|
+
value: QueryAccountRequest.toAmino(message)
|
|
165
|
+
};
|
|
166
|
+
},
|
|
167
|
+
fromProtoMsg(message: QueryAccountRequestProtoMsg): QueryAccountRequest {
|
|
168
|
+
return QueryAccountRequest.decode(message.value);
|
|
169
|
+
},
|
|
170
|
+
toProto(message: QueryAccountRequest): Uint8Array {
|
|
171
|
+
return QueryAccountRequest.encode(message).finish();
|
|
172
|
+
},
|
|
173
|
+
toProtoMsg(message: QueryAccountRequest): QueryAccountRequestProtoMsg {
|
|
174
|
+
return {
|
|
175
|
+
typeUrl: "/cosmos.circuit.v1.QueryAccountRequest",
|
|
176
|
+
value: QueryAccountRequest.encode(message).finish()
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
GlobalDecoderRegistry.register(QueryAccountRequest.typeUrl, QueryAccountRequest);
|
|
181
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountRequest.aminoType, QueryAccountRequest.typeUrl);
|
|
182
|
+
function createBaseAccountResponse(): AccountResponse {
|
|
183
|
+
return {
|
|
184
|
+
permission: undefined
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
export const AccountResponse = {
|
|
188
|
+
typeUrl: "/cosmos.circuit.v1.AccountResponse",
|
|
189
|
+
aminoType: "cosmos-sdk/AccountResponse",
|
|
190
|
+
is(o: any): o is AccountResponse {
|
|
191
|
+
return o && o.$typeUrl === AccountResponse.typeUrl;
|
|
192
|
+
},
|
|
193
|
+
isAmino(o: any): o is AccountResponseAmino {
|
|
194
|
+
return o && o.$typeUrl === AccountResponse.typeUrl;
|
|
195
|
+
},
|
|
196
|
+
encode(message: AccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
197
|
+
if (message.permission !== undefined) {
|
|
198
|
+
Permissions.encode(message.permission, writer.uint32(10).fork()).ldelim();
|
|
199
|
+
}
|
|
200
|
+
return writer;
|
|
201
|
+
},
|
|
202
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AccountResponse {
|
|
203
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
204
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
205
|
+
const message = createBaseAccountResponse();
|
|
206
|
+
while (reader.pos < end) {
|
|
207
|
+
const tag = reader.uint32();
|
|
208
|
+
switch (tag >>> 3) {
|
|
209
|
+
case 1:
|
|
210
|
+
message.permission = Permissions.decode(reader, reader.uint32());
|
|
211
|
+
break;
|
|
212
|
+
default:
|
|
213
|
+
reader.skipType(tag & 7);
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return message;
|
|
218
|
+
},
|
|
219
|
+
fromPartial(object: DeepPartial<AccountResponse>): AccountResponse {
|
|
220
|
+
const message = createBaseAccountResponse();
|
|
221
|
+
message.permission = object.permission !== undefined && object.permission !== null ? Permissions.fromPartial(object.permission) : undefined;
|
|
222
|
+
return message;
|
|
223
|
+
},
|
|
224
|
+
fromAmino(object: AccountResponseAmino): AccountResponse {
|
|
225
|
+
const message = createBaseAccountResponse();
|
|
226
|
+
if (object.permission !== undefined && object.permission !== null) {
|
|
227
|
+
message.permission = Permissions.fromAmino(object.permission);
|
|
228
|
+
}
|
|
229
|
+
return message;
|
|
230
|
+
},
|
|
231
|
+
toAmino(message: AccountResponse): AccountResponseAmino {
|
|
232
|
+
const obj: any = {};
|
|
233
|
+
obj.permission = message.permission ? Permissions.toAmino(message.permission) : undefined;
|
|
234
|
+
return obj;
|
|
235
|
+
},
|
|
236
|
+
fromAminoMsg(object: AccountResponseAminoMsg): AccountResponse {
|
|
237
|
+
return AccountResponse.fromAmino(object.value);
|
|
238
|
+
},
|
|
239
|
+
toAminoMsg(message: AccountResponse): AccountResponseAminoMsg {
|
|
240
|
+
return {
|
|
241
|
+
type: "cosmos-sdk/AccountResponse",
|
|
242
|
+
value: AccountResponse.toAmino(message)
|
|
243
|
+
};
|
|
244
|
+
},
|
|
245
|
+
fromProtoMsg(message: AccountResponseProtoMsg): AccountResponse {
|
|
246
|
+
return AccountResponse.decode(message.value);
|
|
247
|
+
},
|
|
248
|
+
toProto(message: AccountResponse): Uint8Array {
|
|
249
|
+
return AccountResponse.encode(message).finish();
|
|
250
|
+
},
|
|
251
|
+
toProtoMsg(message: AccountResponse): AccountResponseProtoMsg {
|
|
252
|
+
return {
|
|
253
|
+
typeUrl: "/cosmos.circuit.v1.AccountResponse",
|
|
254
|
+
value: AccountResponse.encode(message).finish()
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
GlobalDecoderRegistry.register(AccountResponse.typeUrl, AccountResponse);
|
|
259
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(AccountResponse.aminoType, AccountResponse.typeUrl);
|
|
260
|
+
function createBaseQueryAccountsRequest(): QueryAccountsRequest {
|
|
261
|
+
return {
|
|
262
|
+
pagination: undefined
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
export const QueryAccountsRequest = {
|
|
266
|
+
typeUrl: "/cosmos.circuit.v1.QueryAccountsRequest",
|
|
267
|
+
aminoType: "cosmos-sdk/QueryAccountsRequest",
|
|
268
|
+
is(o: any): o is QueryAccountsRequest {
|
|
269
|
+
return o && o.$typeUrl === QueryAccountsRequest.typeUrl;
|
|
270
|
+
},
|
|
271
|
+
isAmino(o: any): o is QueryAccountsRequestAmino {
|
|
272
|
+
return o && o.$typeUrl === QueryAccountsRequest.typeUrl;
|
|
273
|
+
},
|
|
274
|
+
encode(message: QueryAccountsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
275
|
+
if (message.pagination !== undefined) {
|
|
276
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
277
|
+
}
|
|
278
|
+
return writer;
|
|
279
|
+
},
|
|
280
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsRequest {
|
|
281
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
282
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
283
|
+
const message = createBaseQueryAccountsRequest();
|
|
284
|
+
while (reader.pos < end) {
|
|
285
|
+
const tag = reader.uint32();
|
|
286
|
+
switch (tag >>> 3) {
|
|
287
|
+
case 1:
|
|
288
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
289
|
+
break;
|
|
290
|
+
default:
|
|
291
|
+
reader.skipType(tag & 7);
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return message;
|
|
296
|
+
},
|
|
297
|
+
fromPartial(object: DeepPartial<QueryAccountsRequest>): QueryAccountsRequest {
|
|
298
|
+
const message = createBaseQueryAccountsRequest();
|
|
299
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
300
|
+
return message;
|
|
301
|
+
},
|
|
302
|
+
fromAmino(object: QueryAccountsRequestAmino): QueryAccountsRequest {
|
|
303
|
+
const message = createBaseQueryAccountsRequest();
|
|
304
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
305
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
306
|
+
}
|
|
307
|
+
return message;
|
|
308
|
+
},
|
|
309
|
+
toAmino(message: QueryAccountsRequest): QueryAccountsRequestAmino {
|
|
310
|
+
const obj: any = {};
|
|
311
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
312
|
+
return obj;
|
|
313
|
+
},
|
|
314
|
+
fromAminoMsg(object: QueryAccountsRequestAminoMsg): QueryAccountsRequest {
|
|
315
|
+
return QueryAccountsRequest.fromAmino(object.value);
|
|
316
|
+
},
|
|
317
|
+
toAminoMsg(message: QueryAccountsRequest): QueryAccountsRequestAminoMsg {
|
|
318
|
+
return {
|
|
319
|
+
type: "cosmos-sdk/QueryAccountsRequest",
|
|
320
|
+
value: QueryAccountsRequest.toAmino(message)
|
|
321
|
+
};
|
|
322
|
+
},
|
|
323
|
+
fromProtoMsg(message: QueryAccountsRequestProtoMsg): QueryAccountsRequest {
|
|
324
|
+
return QueryAccountsRequest.decode(message.value);
|
|
325
|
+
},
|
|
326
|
+
toProto(message: QueryAccountsRequest): Uint8Array {
|
|
327
|
+
return QueryAccountsRequest.encode(message).finish();
|
|
328
|
+
},
|
|
329
|
+
toProtoMsg(message: QueryAccountsRequest): QueryAccountsRequestProtoMsg {
|
|
330
|
+
return {
|
|
331
|
+
typeUrl: "/cosmos.circuit.v1.QueryAccountsRequest",
|
|
332
|
+
value: QueryAccountsRequest.encode(message).finish()
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
GlobalDecoderRegistry.register(QueryAccountsRequest.typeUrl, QueryAccountsRequest);
|
|
337
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountsRequest.aminoType, QueryAccountsRequest.typeUrl);
|
|
338
|
+
function createBaseAccountsResponse(): AccountsResponse {
|
|
339
|
+
return {
|
|
340
|
+
accounts: [],
|
|
341
|
+
pagination: undefined
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
export const AccountsResponse = {
|
|
345
|
+
typeUrl: "/cosmos.circuit.v1.AccountsResponse",
|
|
346
|
+
aminoType: "cosmos-sdk/AccountsResponse",
|
|
347
|
+
is(o: any): o is AccountsResponse {
|
|
348
|
+
return o && (o.$typeUrl === AccountsResponse.typeUrl || Array.isArray(o.accounts) && (!o.accounts.length || GenesisAccountPermissions.is(o.accounts[0])));
|
|
349
|
+
},
|
|
350
|
+
isAmino(o: any): o is AccountsResponseAmino {
|
|
351
|
+
return o && (o.$typeUrl === AccountsResponse.typeUrl || Array.isArray(o.accounts) && (!o.accounts.length || GenesisAccountPermissions.isAmino(o.accounts[0])));
|
|
352
|
+
},
|
|
353
|
+
encode(message: AccountsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
354
|
+
for (const v of message.accounts) {
|
|
355
|
+
GenesisAccountPermissions.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
356
|
+
}
|
|
357
|
+
if (message.pagination !== undefined) {
|
|
358
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
359
|
+
}
|
|
360
|
+
return writer;
|
|
361
|
+
},
|
|
362
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AccountsResponse {
|
|
363
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
364
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
365
|
+
const message = createBaseAccountsResponse();
|
|
366
|
+
while (reader.pos < end) {
|
|
367
|
+
const tag = reader.uint32();
|
|
368
|
+
switch (tag >>> 3) {
|
|
369
|
+
case 1:
|
|
370
|
+
message.accounts.push(GenesisAccountPermissions.decode(reader, reader.uint32()));
|
|
371
|
+
break;
|
|
372
|
+
case 2:
|
|
373
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
374
|
+
break;
|
|
375
|
+
default:
|
|
376
|
+
reader.skipType(tag & 7);
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
return message;
|
|
381
|
+
},
|
|
382
|
+
fromPartial(object: DeepPartial<AccountsResponse>): AccountsResponse {
|
|
383
|
+
const message = createBaseAccountsResponse();
|
|
384
|
+
message.accounts = object.accounts?.map(e => GenesisAccountPermissions.fromPartial(e)) || [];
|
|
385
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
386
|
+
return message;
|
|
387
|
+
},
|
|
388
|
+
fromAmino(object: AccountsResponseAmino): AccountsResponse {
|
|
389
|
+
const message = createBaseAccountsResponse();
|
|
390
|
+
message.accounts = object.accounts?.map(e => GenesisAccountPermissions.fromAmino(e)) || [];
|
|
391
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
392
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
393
|
+
}
|
|
394
|
+
return message;
|
|
395
|
+
},
|
|
396
|
+
toAmino(message: AccountsResponse): AccountsResponseAmino {
|
|
397
|
+
const obj: any = {};
|
|
398
|
+
if (message.accounts) {
|
|
399
|
+
obj.accounts = message.accounts.map(e => e ? GenesisAccountPermissions.toAmino(e) : undefined);
|
|
400
|
+
} else {
|
|
401
|
+
obj.accounts = message.accounts;
|
|
402
|
+
}
|
|
403
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
404
|
+
return obj;
|
|
405
|
+
},
|
|
406
|
+
fromAminoMsg(object: AccountsResponseAminoMsg): AccountsResponse {
|
|
407
|
+
return AccountsResponse.fromAmino(object.value);
|
|
408
|
+
},
|
|
409
|
+
toAminoMsg(message: AccountsResponse): AccountsResponseAminoMsg {
|
|
410
|
+
return {
|
|
411
|
+
type: "cosmos-sdk/AccountsResponse",
|
|
412
|
+
value: AccountsResponse.toAmino(message)
|
|
413
|
+
};
|
|
414
|
+
},
|
|
415
|
+
fromProtoMsg(message: AccountsResponseProtoMsg): AccountsResponse {
|
|
416
|
+
return AccountsResponse.decode(message.value);
|
|
417
|
+
},
|
|
418
|
+
toProto(message: AccountsResponse): Uint8Array {
|
|
419
|
+
return AccountsResponse.encode(message).finish();
|
|
420
|
+
},
|
|
421
|
+
toProtoMsg(message: AccountsResponse): AccountsResponseProtoMsg {
|
|
422
|
+
return {
|
|
423
|
+
typeUrl: "/cosmos.circuit.v1.AccountsResponse",
|
|
424
|
+
value: AccountsResponse.encode(message).finish()
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
GlobalDecoderRegistry.register(AccountsResponse.typeUrl, AccountsResponse);
|
|
429
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(AccountsResponse.aminoType, AccountsResponse.typeUrl);
|
|
430
|
+
function createBaseQueryDisabledListRequest(): QueryDisabledListRequest {
|
|
431
|
+
return {};
|
|
432
|
+
}
|
|
433
|
+
export const QueryDisabledListRequest = {
|
|
434
|
+
typeUrl: "/cosmos.circuit.v1.QueryDisabledListRequest",
|
|
435
|
+
aminoType: "cosmos-sdk/QueryDisabledListRequest",
|
|
436
|
+
is(o: any): o is QueryDisabledListRequest {
|
|
437
|
+
return o && o.$typeUrl === QueryDisabledListRequest.typeUrl;
|
|
438
|
+
},
|
|
439
|
+
isAmino(o: any): o is QueryDisabledListRequestAmino {
|
|
440
|
+
return o && o.$typeUrl === QueryDisabledListRequest.typeUrl;
|
|
441
|
+
},
|
|
442
|
+
encode(_: QueryDisabledListRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
443
|
+
return writer;
|
|
444
|
+
},
|
|
445
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryDisabledListRequest {
|
|
446
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
447
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
448
|
+
const message = createBaseQueryDisabledListRequest();
|
|
449
|
+
while (reader.pos < end) {
|
|
450
|
+
const tag = reader.uint32();
|
|
451
|
+
switch (tag >>> 3) {
|
|
452
|
+
default:
|
|
453
|
+
reader.skipType(tag & 7);
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
return message;
|
|
458
|
+
},
|
|
459
|
+
fromPartial(_: DeepPartial<QueryDisabledListRequest>): QueryDisabledListRequest {
|
|
460
|
+
const message = createBaseQueryDisabledListRequest();
|
|
461
|
+
return message;
|
|
462
|
+
},
|
|
463
|
+
fromAmino(_: QueryDisabledListRequestAmino): QueryDisabledListRequest {
|
|
464
|
+
const message = createBaseQueryDisabledListRequest();
|
|
465
|
+
return message;
|
|
466
|
+
},
|
|
467
|
+
toAmino(_: QueryDisabledListRequest): QueryDisabledListRequestAmino {
|
|
468
|
+
const obj: any = {};
|
|
469
|
+
return obj;
|
|
470
|
+
},
|
|
471
|
+
fromAminoMsg(object: QueryDisabledListRequestAminoMsg): QueryDisabledListRequest {
|
|
472
|
+
return QueryDisabledListRequest.fromAmino(object.value);
|
|
473
|
+
},
|
|
474
|
+
toAminoMsg(message: QueryDisabledListRequest): QueryDisabledListRequestAminoMsg {
|
|
475
|
+
return {
|
|
476
|
+
type: "cosmos-sdk/QueryDisabledListRequest",
|
|
477
|
+
value: QueryDisabledListRequest.toAmino(message)
|
|
478
|
+
};
|
|
479
|
+
},
|
|
480
|
+
fromProtoMsg(message: QueryDisabledListRequestProtoMsg): QueryDisabledListRequest {
|
|
481
|
+
return QueryDisabledListRequest.decode(message.value);
|
|
482
|
+
},
|
|
483
|
+
toProto(message: QueryDisabledListRequest): Uint8Array {
|
|
484
|
+
return QueryDisabledListRequest.encode(message).finish();
|
|
485
|
+
},
|
|
486
|
+
toProtoMsg(message: QueryDisabledListRequest): QueryDisabledListRequestProtoMsg {
|
|
487
|
+
return {
|
|
488
|
+
typeUrl: "/cosmos.circuit.v1.QueryDisabledListRequest",
|
|
489
|
+
value: QueryDisabledListRequest.encode(message).finish()
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
GlobalDecoderRegistry.register(QueryDisabledListRequest.typeUrl, QueryDisabledListRequest);
|
|
494
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryDisabledListRequest.aminoType, QueryDisabledListRequest.typeUrl);
|
|
495
|
+
function createBaseDisabledListResponse(): DisabledListResponse {
|
|
496
|
+
return {
|
|
497
|
+
disabledList: []
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
export const DisabledListResponse = {
|
|
501
|
+
typeUrl: "/cosmos.circuit.v1.DisabledListResponse",
|
|
502
|
+
aminoType: "cosmos-sdk/DisabledListResponse",
|
|
503
|
+
is(o: any): o is DisabledListResponse {
|
|
504
|
+
return o && (o.$typeUrl === DisabledListResponse.typeUrl || Array.isArray(o.disabledList) && (!o.disabledList.length || typeof o.disabledList[0] === "string"));
|
|
505
|
+
},
|
|
506
|
+
isAmino(o: any): o is DisabledListResponseAmino {
|
|
507
|
+
return o && (o.$typeUrl === DisabledListResponse.typeUrl || Array.isArray(o.disabled_list) && (!o.disabled_list.length || typeof o.disabled_list[0] === "string"));
|
|
508
|
+
},
|
|
509
|
+
encode(message: DisabledListResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
510
|
+
for (const v of message.disabledList) {
|
|
511
|
+
writer.uint32(10).string(v!);
|
|
512
|
+
}
|
|
513
|
+
return writer;
|
|
514
|
+
},
|
|
515
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DisabledListResponse {
|
|
516
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
517
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
518
|
+
const message = createBaseDisabledListResponse();
|
|
519
|
+
while (reader.pos < end) {
|
|
520
|
+
const tag = reader.uint32();
|
|
521
|
+
switch (tag >>> 3) {
|
|
522
|
+
case 1:
|
|
523
|
+
message.disabledList.push(reader.string());
|
|
524
|
+
break;
|
|
525
|
+
default:
|
|
526
|
+
reader.skipType(tag & 7);
|
|
527
|
+
break;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
return message;
|
|
531
|
+
},
|
|
532
|
+
fromPartial(object: DeepPartial<DisabledListResponse>): DisabledListResponse {
|
|
533
|
+
const message = createBaseDisabledListResponse();
|
|
534
|
+
message.disabledList = object.disabledList?.map(e => e) || [];
|
|
535
|
+
return message;
|
|
536
|
+
},
|
|
537
|
+
fromAmino(object: DisabledListResponseAmino): DisabledListResponse {
|
|
538
|
+
const message = createBaseDisabledListResponse();
|
|
539
|
+
message.disabledList = object.disabled_list?.map(e => e) || [];
|
|
540
|
+
return message;
|
|
541
|
+
},
|
|
542
|
+
toAmino(message: DisabledListResponse): DisabledListResponseAmino {
|
|
543
|
+
const obj: any = {};
|
|
544
|
+
if (message.disabledList) {
|
|
545
|
+
obj.disabled_list = message.disabledList.map(e => e);
|
|
546
|
+
} else {
|
|
547
|
+
obj.disabled_list = message.disabledList;
|
|
548
|
+
}
|
|
549
|
+
return obj;
|
|
550
|
+
},
|
|
551
|
+
fromAminoMsg(object: DisabledListResponseAminoMsg): DisabledListResponse {
|
|
552
|
+
return DisabledListResponse.fromAmino(object.value);
|
|
553
|
+
},
|
|
554
|
+
toAminoMsg(message: DisabledListResponse): DisabledListResponseAminoMsg {
|
|
555
|
+
return {
|
|
556
|
+
type: "cosmos-sdk/DisabledListResponse",
|
|
557
|
+
value: DisabledListResponse.toAmino(message)
|
|
558
|
+
};
|
|
559
|
+
},
|
|
560
|
+
fromProtoMsg(message: DisabledListResponseProtoMsg): DisabledListResponse {
|
|
561
|
+
return DisabledListResponse.decode(message.value);
|
|
562
|
+
},
|
|
563
|
+
toProto(message: DisabledListResponse): Uint8Array {
|
|
564
|
+
return DisabledListResponse.encode(message).finish();
|
|
565
|
+
},
|
|
566
|
+
toProtoMsg(message: DisabledListResponse): DisabledListResponseProtoMsg {
|
|
567
|
+
return {
|
|
568
|
+
typeUrl: "/cosmos.circuit.v1.DisabledListResponse",
|
|
569
|
+
value: DisabledListResponse.encode(message).finish()
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
GlobalDecoderRegistry.register(DisabledListResponse.typeUrl, DisabledListResponse);
|
|
574
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(DisabledListResponse.aminoType, DisabledListResponse.typeUrl);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { TelescopeGeneratedType } from "../../../types";
|
|
2
|
+
import { MsgAuthorizeCircuitBreaker, MsgTripCircuitBreaker, MsgResetCircuitBreaker } from "./tx";
|
|
3
|
+
export const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]> = [["/cosmos.circuit.v1.MsgAuthorizeCircuitBreaker", MsgAuthorizeCircuitBreaker], ["/cosmos.circuit.v1.MsgTripCircuitBreaker", MsgTripCircuitBreaker], ["/cosmos.circuit.v1.MsgResetCircuitBreaker", MsgResetCircuitBreaker]];
|
|
4
|
+
export const MessageComposer = {
|
|
5
|
+
encoded: {
|
|
6
|
+
authorizeCircuitBreaker(value: MsgAuthorizeCircuitBreaker) {
|
|
7
|
+
return {
|
|
8
|
+
typeUrl: "/cosmos.circuit.v1.MsgAuthorizeCircuitBreaker",
|
|
9
|
+
value: MsgAuthorizeCircuitBreaker.encode(value).finish()
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
tripCircuitBreaker(value: MsgTripCircuitBreaker) {
|
|
13
|
+
return {
|
|
14
|
+
typeUrl: "/cosmos.circuit.v1.MsgTripCircuitBreaker",
|
|
15
|
+
value: MsgTripCircuitBreaker.encode(value).finish()
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
resetCircuitBreaker(value: MsgResetCircuitBreaker) {
|
|
19
|
+
return {
|
|
20
|
+
typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreaker",
|
|
21
|
+
value: MsgResetCircuitBreaker.encode(value).finish()
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
withTypeUrl: {
|
|
26
|
+
authorizeCircuitBreaker(value: MsgAuthorizeCircuitBreaker) {
|
|
27
|
+
return {
|
|
28
|
+
typeUrl: "/cosmos.circuit.v1.MsgAuthorizeCircuitBreaker",
|
|
29
|
+
value
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
tripCircuitBreaker(value: MsgTripCircuitBreaker) {
|
|
33
|
+
return {
|
|
34
|
+
typeUrl: "/cosmos.circuit.v1.MsgTripCircuitBreaker",
|
|
35
|
+
value
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
resetCircuitBreaker(value: MsgResetCircuitBreaker) {
|
|
39
|
+
return {
|
|
40
|
+
typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreaker",
|
|
41
|
+
value
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
fromPartial: {
|
|
46
|
+
authorizeCircuitBreaker(value: MsgAuthorizeCircuitBreaker) {
|
|
47
|
+
return {
|
|
48
|
+
typeUrl: "/cosmos.circuit.v1.MsgAuthorizeCircuitBreaker",
|
|
49
|
+
value: MsgAuthorizeCircuitBreaker.fromPartial(value)
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
tripCircuitBreaker(value: MsgTripCircuitBreaker) {
|
|
53
|
+
return {
|
|
54
|
+
typeUrl: "/cosmos.circuit.v1.MsgTripCircuitBreaker",
|
|
55
|
+
value: MsgTripCircuitBreaker.fromPartial(value)
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
resetCircuitBreaker(value: MsgResetCircuitBreaker) {
|
|
59
|
+
return {
|
|
60
|
+
typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreaker",
|
|
61
|
+
value: MsgResetCircuitBreaker.fromPartial(value)
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { buildTx, SigningClientResolver } from "../../../helper-func-types";
|
|
2
|
+
import { buildUseMutation } from "../../../react-query";
|
|
3
|
+
import { toEncoders, toConverters } from "@interchainjs/cosmos/utils";
|
|
4
|
+
import { MsgAuthorizeCircuitBreaker, MsgTripCircuitBreaker, MsgResetCircuitBreaker } from "./tx";
|
|
5
|
+
export const createAuthorizeCircuitBreaker = (clientResolver?: SigningClientResolver) => buildTx<MsgAuthorizeCircuitBreaker>({
|
|
6
|
+
clientResolver,
|
|
7
|
+
typeUrl: MsgAuthorizeCircuitBreaker.typeUrl,
|
|
8
|
+
encoders: toEncoders(MsgAuthorizeCircuitBreaker),
|
|
9
|
+
converters: toConverters(MsgAuthorizeCircuitBreaker)
|
|
10
|
+
});
|
|
11
|
+
export const useAuthorizeCircuitBreaker = buildUseMutation<MsgAuthorizeCircuitBreaker, Error>({
|
|
12
|
+
builderMutationFn: createAuthorizeCircuitBreaker
|
|
13
|
+
});
|
|
14
|
+
export const createTripCircuitBreaker = (clientResolver?: SigningClientResolver) => buildTx<MsgTripCircuitBreaker>({
|
|
15
|
+
clientResolver,
|
|
16
|
+
typeUrl: MsgTripCircuitBreaker.typeUrl,
|
|
17
|
+
encoders: toEncoders(MsgTripCircuitBreaker),
|
|
18
|
+
converters: toConverters(MsgTripCircuitBreaker)
|
|
19
|
+
});
|
|
20
|
+
export const useTripCircuitBreaker = buildUseMutation<MsgTripCircuitBreaker, Error>({
|
|
21
|
+
builderMutationFn: createTripCircuitBreaker
|
|
22
|
+
});
|
|
23
|
+
export const createResetCircuitBreaker = (clientResolver?: SigningClientResolver) => buildTx<MsgResetCircuitBreaker>({
|
|
24
|
+
clientResolver,
|
|
25
|
+
typeUrl: MsgResetCircuitBreaker.typeUrl,
|
|
26
|
+
encoders: toEncoders(MsgResetCircuitBreaker),
|
|
27
|
+
converters: toConverters(MsgResetCircuitBreaker)
|
|
28
|
+
});
|
|
29
|
+
export const useResetCircuitBreaker = buildUseMutation<MsgResetCircuitBreaker, Error>({
|
|
30
|
+
builderMutationFn: createResetCircuitBreaker
|
|
31
|
+
});
|