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