@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,649 @@
|
|
|
1
|
+
import { Description, DescriptionAmino } from "../../../cosmos/staking/v1beta1/staking";
|
|
2
|
+
import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
|
|
3
|
+
import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
+
import { DeepPartial } from "../../../helpers";
|
|
6
|
+
import { encodePubkey, decodePubkey } from "@cosmjs/proto-signing";
|
|
7
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
8
|
+
/** RegisterVolunteerValidatorProposal */
|
|
9
|
+
/** @deprecated */
|
|
10
|
+
export interface RegisterVolunteerValidatorProposal {
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
validatorDescription: Description;
|
|
14
|
+
delegatorAddress: string;
|
|
15
|
+
validatorAddress: string;
|
|
16
|
+
pubkey?: Any | undefined;
|
|
17
|
+
amount: Coin;
|
|
18
|
+
}
|
|
19
|
+
export interface RegisterVolunteerValidatorProposalProtoMsg {
|
|
20
|
+
typeUrl: "/xpla.volunteer.v1beta1.RegisterVolunteerValidatorProposal";
|
|
21
|
+
value: Uint8Array;
|
|
22
|
+
}
|
|
23
|
+
export type RegisterVolunteerValidatorProposalEncoded = Omit<RegisterVolunteerValidatorProposal, "pubkey"> & {
|
|
24
|
+
pubkey?: AnyProtoMsg | undefined;
|
|
25
|
+
};
|
|
26
|
+
/** RegisterVolunteerValidatorProposal */
|
|
27
|
+
/** @deprecated */
|
|
28
|
+
export interface RegisterVolunteerValidatorProposalAmino {
|
|
29
|
+
title: string;
|
|
30
|
+
description: string;
|
|
31
|
+
validator_description: DescriptionAmino;
|
|
32
|
+
delegator_address: string;
|
|
33
|
+
validator_address: string;
|
|
34
|
+
pubkey?: AnyAmino;
|
|
35
|
+
amount: CoinAmino;
|
|
36
|
+
}
|
|
37
|
+
export interface RegisterVolunteerValidatorProposalAminoMsg {
|
|
38
|
+
type: "xpladev/RegisterVolunteerValidatorProposal";
|
|
39
|
+
value: RegisterVolunteerValidatorProposalAmino;
|
|
40
|
+
}
|
|
41
|
+
/** RegisterVolunteerValidatorProposalWithDeposit */
|
|
42
|
+
/** @deprecated */
|
|
43
|
+
export interface RegisterVolunteerValidatorProposalWithDeposit {
|
|
44
|
+
title: string;
|
|
45
|
+
description: string;
|
|
46
|
+
validatorDescription: Description;
|
|
47
|
+
delegatorAddress: string;
|
|
48
|
+
validatorAddress: string;
|
|
49
|
+
pubkey?: Any | undefined;
|
|
50
|
+
amount: Coin;
|
|
51
|
+
deposit: string;
|
|
52
|
+
}
|
|
53
|
+
export interface RegisterVolunteerValidatorProposalWithDepositProtoMsg {
|
|
54
|
+
typeUrl: "/xpla.volunteer.v1beta1.RegisterVolunteerValidatorProposalWithDeposit";
|
|
55
|
+
value: Uint8Array;
|
|
56
|
+
}
|
|
57
|
+
export type RegisterVolunteerValidatorProposalWithDepositEncoded = Omit<RegisterVolunteerValidatorProposalWithDeposit, "pubkey"> & {
|
|
58
|
+
pubkey?: AnyProtoMsg | undefined;
|
|
59
|
+
};
|
|
60
|
+
/** RegisterVolunteerValidatorProposalWithDeposit */
|
|
61
|
+
/** @deprecated */
|
|
62
|
+
export interface RegisterVolunteerValidatorProposalWithDepositAmino {
|
|
63
|
+
title: string;
|
|
64
|
+
description: string;
|
|
65
|
+
validator_description: DescriptionAmino;
|
|
66
|
+
delegator_address: string;
|
|
67
|
+
validator_address: string;
|
|
68
|
+
pubkey?: AnyAmino;
|
|
69
|
+
amount: CoinAmino;
|
|
70
|
+
deposit: string;
|
|
71
|
+
}
|
|
72
|
+
export interface RegisterVolunteerValidatorProposalWithDepositAminoMsg {
|
|
73
|
+
type: "xpladev/RegisterVolunteerValidatorProposalWithDeposit";
|
|
74
|
+
value: RegisterVolunteerValidatorProposalWithDepositAmino;
|
|
75
|
+
}
|
|
76
|
+
/** UnregisterVolunteerValidatorProposal */
|
|
77
|
+
/** @deprecated */
|
|
78
|
+
export interface UnregisterVolunteerValidatorProposal {
|
|
79
|
+
title: string;
|
|
80
|
+
description: string;
|
|
81
|
+
validatorAddress: string;
|
|
82
|
+
}
|
|
83
|
+
export interface UnregisterVolunteerValidatorProposalProtoMsg {
|
|
84
|
+
typeUrl: "/xpla.volunteer.v1beta1.UnregisterVolunteerValidatorProposal";
|
|
85
|
+
value: Uint8Array;
|
|
86
|
+
}
|
|
87
|
+
/** UnregisterVolunteerValidatorProposal */
|
|
88
|
+
/** @deprecated */
|
|
89
|
+
export interface UnregisterVolunteerValidatorProposalAmino {
|
|
90
|
+
title: string;
|
|
91
|
+
description: string;
|
|
92
|
+
validator_address: string;
|
|
93
|
+
}
|
|
94
|
+
export interface UnregisterVolunteerValidatorProposalAminoMsg {
|
|
95
|
+
type: "xpladev/UnregisterVolunteerValidatorProposal";
|
|
96
|
+
value: UnregisterVolunteerValidatorProposalAmino;
|
|
97
|
+
}
|
|
98
|
+
/** UnregisterVolunteerValidatorProposalWithDeposit */
|
|
99
|
+
/** @deprecated */
|
|
100
|
+
export interface UnregisterVolunteerValidatorProposalWithDeposit {
|
|
101
|
+
title: string;
|
|
102
|
+
description: string;
|
|
103
|
+
validatorAddress: string;
|
|
104
|
+
deposit: string;
|
|
105
|
+
}
|
|
106
|
+
export interface UnregisterVolunteerValidatorProposalWithDepositProtoMsg {
|
|
107
|
+
typeUrl: "/xpla.volunteer.v1beta1.UnregisterVolunteerValidatorProposalWithDeposit";
|
|
108
|
+
value: Uint8Array;
|
|
109
|
+
}
|
|
110
|
+
/** UnregisterVolunteerValidatorProposalWithDeposit */
|
|
111
|
+
/** @deprecated */
|
|
112
|
+
export interface UnregisterVolunteerValidatorProposalWithDepositAmino {
|
|
113
|
+
title: string;
|
|
114
|
+
description: string;
|
|
115
|
+
validator_address: string;
|
|
116
|
+
deposit: string;
|
|
117
|
+
}
|
|
118
|
+
export interface UnregisterVolunteerValidatorProposalWithDepositAminoMsg {
|
|
119
|
+
type: "xpladev/UnregisterVolunteerValidatorProposalWithDeposit";
|
|
120
|
+
value: UnregisterVolunteerValidatorProposalWithDepositAmino;
|
|
121
|
+
}
|
|
122
|
+
function createBaseRegisterVolunteerValidatorProposal(): RegisterVolunteerValidatorProposal {
|
|
123
|
+
return {
|
|
124
|
+
title: "",
|
|
125
|
+
description: "",
|
|
126
|
+
validatorDescription: Description.fromPartial({}),
|
|
127
|
+
delegatorAddress: "",
|
|
128
|
+
validatorAddress: "",
|
|
129
|
+
pubkey: undefined,
|
|
130
|
+
amount: Coin.fromPartial({})
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export const RegisterVolunteerValidatorProposal = {
|
|
134
|
+
typeUrl: "/xpla.volunteer.v1beta1.RegisterVolunteerValidatorProposal",
|
|
135
|
+
aminoType: "xpladev/RegisterVolunteerValidatorProposal",
|
|
136
|
+
is(o: any): o is RegisterVolunteerValidatorProposal {
|
|
137
|
+
return o && (o.$typeUrl === RegisterVolunteerValidatorProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Description.is(o.validatorDescription) && typeof o.delegatorAddress === "string" && typeof o.validatorAddress === "string" && Coin.is(o.amount));
|
|
138
|
+
},
|
|
139
|
+
isAmino(o: any): o is RegisterVolunteerValidatorProposalAmino {
|
|
140
|
+
return o && (o.$typeUrl === RegisterVolunteerValidatorProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Description.isAmino(o.validator_description) && typeof o.delegator_address === "string" && typeof o.validator_address === "string" && Coin.isAmino(o.amount));
|
|
141
|
+
},
|
|
142
|
+
encode(message: RegisterVolunteerValidatorProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
143
|
+
if (message.title !== "") {
|
|
144
|
+
writer.uint32(10).string(message.title);
|
|
145
|
+
}
|
|
146
|
+
if (message.description !== "") {
|
|
147
|
+
writer.uint32(18).string(message.description);
|
|
148
|
+
}
|
|
149
|
+
if (message.validatorDescription !== undefined) {
|
|
150
|
+
Description.encode(message.validatorDescription, writer.uint32(26).fork()).ldelim();
|
|
151
|
+
}
|
|
152
|
+
if (message.delegatorAddress !== "") {
|
|
153
|
+
writer.uint32(34).string(message.delegatorAddress);
|
|
154
|
+
}
|
|
155
|
+
if (message.validatorAddress !== "") {
|
|
156
|
+
writer.uint32(42).string(message.validatorAddress);
|
|
157
|
+
}
|
|
158
|
+
if (message.pubkey !== undefined) {
|
|
159
|
+
Any.encode(GlobalDecoderRegistry.wrapAny(message.pubkey), writer.uint32(50).fork()).ldelim();
|
|
160
|
+
}
|
|
161
|
+
if (message.amount !== undefined) {
|
|
162
|
+
Coin.encode(message.amount, writer.uint32(58).fork()).ldelim();
|
|
163
|
+
}
|
|
164
|
+
return writer;
|
|
165
|
+
},
|
|
166
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RegisterVolunteerValidatorProposal {
|
|
167
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
168
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
169
|
+
const message = createBaseRegisterVolunteerValidatorProposal();
|
|
170
|
+
while (reader.pos < end) {
|
|
171
|
+
const tag = reader.uint32();
|
|
172
|
+
switch (tag >>> 3) {
|
|
173
|
+
case 1:
|
|
174
|
+
message.title = reader.string();
|
|
175
|
+
break;
|
|
176
|
+
case 2:
|
|
177
|
+
message.description = reader.string();
|
|
178
|
+
break;
|
|
179
|
+
case 3:
|
|
180
|
+
message.validatorDescription = Description.decode(reader, reader.uint32());
|
|
181
|
+
break;
|
|
182
|
+
case 4:
|
|
183
|
+
message.delegatorAddress = reader.string();
|
|
184
|
+
break;
|
|
185
|
+
case 5:
|
|
186
|
+
message.validatorAddress = reader.string();
|
|
187
|
+
break;
|
|
188
|
+
case 6:
|
|
189
|
+
message.pubkey = GlobalDecoderRegistry.unwrapAny(reader);
|
|
190
|
+
break;
|
|
191
|
+
case 7:
|
|
192
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
193
|
+
break;
|
|
194
|
+
default:
|
|
195
|
+
reader.skipType(tag & 7);
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return message;
|
|
200
|
+
},
|
|
201
|
+
fromPartial(object: DeepPartial<RegisterVolunteerValidatorProposal>): RegisterVolunteerValidatorProposal {
|
|
202
|
+
const message = createBaseRegisterVolunteerValidatorProposal();
|
|
203
|
+
message.title = object.title ?? "";
|
|
204
|
+
message.description = object.description ?? "";
|
|
205
|
+
message.validatorDescription = object.validatorDescription !== undefined && object.validatorDescription !== null ? Description.fromPartial(object.validatorDescription) : undefined;
|
|
206
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
207
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
208
|
+
message.pubkey = object.pubkey !== undefined && object.pubkey !== null ? GlobalDecoderRegistry.fromPartial(object.pubkey) : undefined;
|
|
209
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
210
|
+
return message;
|
|
211
|
+
},
|
|
212
|
+
fromAmino(object: RegisterVolunteerValidatorProposalAmino): RegisterVolunteerValidatorProposal {
|
|
213
|
+
const message = createBaseRegisterVolunteerValidatorProposal();
|
|
214
|
+
if (object.title !== undefined && object.title !== null) {
|
|
215
|
+
message.title = object.title;
|
|
216
|
+
}
|
|
217
|
+
if (object.description !== undefined && object.description !== null) {
|
|
218
|
+
message.description = object.description;
|
|
219
|
+
}
|
|
220
|
+
if (object.validator_description !== undefined && object.validator_description !== null) {
|
|
221
|
+
message.validatorDescription = Description.fromAmino(object.validator_description);
|
|
222
|
+
}
|
|
223
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
224
|
+
message.delegatorAddress = object.delegator_address;
|
|
225
|
+
}
|
|
226
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
227
|
+
message.validatorAddress = object.validator_address;
|
|
228
|
+
}
|
|
229
|
+
if (object.pubkey !== undefined && object.pubkey !== null) {
|
|
230
|
+
message.pubkey = encodePubkey(object.pubkey);
|
|
231
|
+
}
|
|
232
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
233
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
234
|
+
}
|
|
235
|
+
return message;
|
|
236
|
+
},
|
|
237
|
+
toAmino(message: RegisterVolunteerValidatorProposal): RegisterVolunteerValidatorProposalAmino {
|
|
238
|
+
const obj: any = {};
|
|
239
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
240
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
241
|
+
obj.validator_description = message.validatorDescription ? Description.toAmino(message.validatorDescription) : Description.toAmino(Description.fromPartial({}));
|
|
242
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
243
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
244
|
+
obj.pubkey = message.pubkey ? decodePubkey(message.pubkey) : undefined;
|
|
245
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
246
|
+
return obj;
|
|
247
|
+
},
|
|
248
|
+
fromAminoMsg(object: RegisterVolunteerValidatorProposalAminoMsg): RegisterVolunteerValidatorProposal {
|
|
249
|
+
return RegisterVolunteerValidatorProposal.fromAmino(object.value);
|
|
250
|
+
},
|
|
251
|
+
toAminoMsg(message: RegisterVolunteerValidatorProposal): RegisterVolunteerValidatorProposalAminoMsg {
|
|
252
|
+
return {
|
|
253
|
+
type: "xpladev/RegisterVolunteerValidatorProposal",
|
|
254
|
+
value: RegisterVolunteerValidatorProposal.toAmino(message)
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
fromProtoMsg(message: RegisterVolunteerValidatorProposalProtoMsg): RegisterVolunteerValidatorProposal {
|
|
258
|
+
return RegisterVolunteerValidatorProposal.decode(message.value);
|
|
259
|
+
},
|
|
260
|
+
toProto(message: RegisterVolunteerValidatorProposal): Uint8Array {
|
|
261
|
+
return RegisterVolunteerValidatorProposal.encode(message).finish();
|
|
262
|
+
},
|
|
263
|
+
toProtoMsg(message: RegisterVolunteerValidatorProposal): RegisterVolunteerValidatorProposalProtoMsg {
|
|
264
|
+
return {
|
|
265
|
+
typeUrl: "/xpla.volunteer.v1beta1.RegisterVolunteerValidatorProposal",
|
|
266
|
+
value: RegisterVolunteerValidatorProposal.encode(message).finish()
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
GlobalDecoderRegistry.register(RegisterVolunteerValidatorProposal.typeUrl, RegisterVolunteerValidatorProposal);
|
|
271
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(RegisterVolunteerValidatorProposal.aminoType, RegisterVolunteerValidatorProposal.typeUrl);
|
|
272
|
+
function createBaseRegisterVolunteerValidatorProposalWithDeposit(): RegisterVolunteerValidatorProposalWithDeposit {
|
|
273
|
+
return {
|
|
274
|
+
title: "",
|
|
275
|
+
description: "",
|
|
276
|
+
validatorDescription: Description.fromPartial({}),
|
|
277
|
+
delegatorAddress: "",
|
|
278
|
+
validatorAddress: "",
|
|
279
|
+
pubkey: undefined,
|
|
280
|
+
amount: Coin.fromPartial({}),
|
|
281
|
+
deposit: ""
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
export const RegisterVolunteerValidatorProposalWithDeposit = {
|
|
285
|
+
typeUrl: "/xpla.volunteer.v1beta1.RegisterVolunteerValidatorProposalWithDeposit",
|
|
286
|
+
aminoType: "xpladev/RegisterVolunteerValidatorProposalWithDeposit",
|
|
287
|
+
is(o: any): o is RegisterVolunteerValidatorProposalWithDeposit {
|
|
288
|
+
return o && (o.$typeUrl === RegisterVolunteerValidatorProposalWithDeposit.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Description.is(o.validatorDescription) && typeof o.delegatorAddress === "string" && typeof o.validatorAddress === "string" && Coin.is(o.amount) && typeof o.deposit === "string");
|
|
289
|
+
},
|
|
290
|
+
isAmino(o: any): o is RegisterVolunteerValidatorProposalWithDepositAmino {
|
|
291
|
+
return o && (o.$typeUrl === RegisterVolunteerValidatorProposalWithDeposit.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Description.isAmino(o.validator_description) && typeof o.delegator_address === "string" && typeof o.validator_address === "string" && Coin.isAmino(o.amount) && typeof o.deposit === "string");
|
|
292
|
+
},
|
|
293
|
+
encode(message: RegisterVolunteerValidatorProposalWithDeposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
294
|
+
if (message.title !== "") {
|
|
295
|
+
writer.uint32(10).string(message.title);
|
|
296
|
+
}
|
|
297
|
+
if (message.description !== "") {
|
|
298
|
+
writer.uint32(18).string(message.description);
|
|
299
|
+
}
|
|
300
|
+
if (message.validatorDescription !== undefined) {
|
|
301
|
+
Description.encode(message.validatorDescription, writer.uint32(26).fork()).ldelim();
|
|
302
|
+
}
|
|
303
|
+
if (message.delegatorAddress !== "") {
|
|
304
|
+
writer.uint32(34).string(message.delegatorAddress);
|
|
305
|
+
}
|
|
306
|
+
if (message.validatorAddress !== "") {
|
|
307
|
+
writer.uint32(42).string(message.validatorAddress);
|
|
308
|
+
}
|
|
309
|
+
if (message.pubkey !== undefined) {
|
|
310
|
+
Any.encode(GlobalDecoderRegistry.wrapAny(message.pubkey), writer.uint32(50).fork()).ldelim();
|
|
311
|
+
}
|
|
312
|
+
if (message.amount !== undefined) {
|
|
313
|
+
Coin.encode(message.amount, writer.uint32(58).fork()).ldelim();
|
|
314
|
+
}
|
|
315
|
+
if (message.deposit !== "") {
|
|
316
|
+
writer.uint32(66).string(message.deposit);
|
|
317
|
+
}
|
|
318
|
+
return writer;
|
|
319
|
+
},
|
|
320
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RegisterVolunteerValidatorProposalWithDeposit {
|
|
321
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
322
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
323
|
+
const message = createBaseRegisterVolunteerValidatorProposalWithDeposit();
|
|
324
|
+
while (reader.pos < end) {
|
|
325
|
+
const tag = reader.uint32();
|
|
326
|
+
switch (tag >>> 3) {
|
|
327
|
+
case 1:
|
|
328
|
+
message.title = reader.string();
|
|
329
|
+
break;
|
|
330
|
+
case 2:
|
|
331
|
+
message.description = reader.string();
|
|
332
|
+
break;
|
|
333
|
+
case 3:
|
|
334
|
+
message.validatorDescription = Description.decode(reader, reader.uint32());
|
|
335
|
+
break;
|
|
336
|
+
case 4:
|
|
337
|
+
message.delegatorAddress = reader.string();
|
|
338
|
+
break;
|
|
339
|
+
case 5:
|
|
340
|
+
message.validatorAddress = reader.string();
|
|
341
|
+
break;
|
|
342
|
+
case 6:
|
|
343
|
+
message.pubkey = GlobalDecoderRegistry.unwrapAny(reader);
|
|
344
|
+
break;
|
|
345
|
+
case 7:
|
|
346
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
347
|
+
break;
|
|
348
|
+
case 8:
|
|
349
|
+
message.deposit = reader.string();
|
|
350
|
+
break;
|
|
351
|
+
default:
|
|
352
|
+
reader.skipType(tag & 7);
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return message;
|
|
357
|
+
},
|
|
358
|
+
fromPartial(object: DeepPartial<RegisterVolunteerValidatorProposalWithDeposit>): RegisterVolunteerValidatorProposalWithDeposit {
|
|
359
|
+
const message = createBaseRegisterVolunteerValidatorProposalWithDeposit();
|
|
360
|
+
message.title = object.title ?? "";
|
|
361
|
+
message.description = object.description ?? "";
|
|
362
|
+
message.validatorDescription = object.validatorDescription !== undefined && object.validatorDescription !== null ? Description.fromPartial(object.validatorDescription) : undefined;
|
|
363
|
+
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
364
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
365
|
+
message.pubkey = object.pubkey !== undefined && object.pubkey !== null ? GlobalDecoderRegistry.fromPartial(object.pubkey) : undefined;
|
|
366
|
+
message.amount = object.amount !== undefined && object.amount !== null ? Coin.fromPartial(object.amount) : undefined;
|
|
367
|
+
message.deposit = object.deposit ?? "";
|
|
368
|
+
return message;
|
|
369
|
+
},
|
|
370
|
+
fromAmino(object: RegisterVolunteerValidatorProposalWithDepositAmino): RegisterVolunteerValidatorProposalWithDeposit {
|
|
371
|
+
const message = createBaseRegisterVolunteerValidatorProposalWithDeposit();
|
|
372
|
+
if (object.title !== undefined && object.title !== null) {
|
|
373
|
+
message.title = object.title;
|
|
374
|
+
}
|
|
375
|
+
if (object.description !== undefined && object.description !== null) {
|
|
376
|
+
message.description = object.description;
|
|
377
|
+
}
|
|
378
|
+
if (object.validator_description !== undefined && object.validator_description !== null) {
|
|
379
|
+
message.validatorDescription = Description.fromAmino(object.validator_description);
|
|
380
|
+
}
|
|
381
|
+
if (object.delegator_address !== undefined && object.delegator_address !== null) {
|
|
382
|
+
message.delegatorAddress = object.delegator_address;
|
|
383
|
+
}
|
|
384
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
385
|
+
message.validatorAddress = object.validator_address;
|
|
386
|
+
}
|
|
387
|
+
if (object.pubkey !== undefined && object.pubkey !== null) {
|
|
388
|
+
message.pubkey = encodePubkey(object.pubkey);
|
|
389
|
+
}
|
|
390
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
391
|
+
message.amount = Coin.fromAmino(object.amount);
|
|
392
|
+
}
|
|
393
|
+
if (object.deposit !== undefined && object.deposit !== null) {
|
|
394
|
+
message.deposit = object.deposit;
|
|
395
|
+
}
|
|
396
|
+
return message;
|
|
397
|
+
},
|
|
398
|
+
toAmino(message: RegisterVolunteerValidatorProposalWithDeposit): RegisterVolunteerValidatorProposalWithDepositAmino {
|
|
399
|
+
const obj: any = {};
|
|
400
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
401
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
402
|
+
obj.validator_description = message.validatorDescription ? Description.toAmino(message.validatorDescription) : Description.toAmino(Description.fromPartial({}));
|
|
403
|
+
obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress;
|
|
404
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
405
|
+
obj.pubkey = message.pubkey ? decodePubkey(message.pubkey) : undefined;
|
|
406
|
+
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
407
|
+
obj.deposit = message.deposit === "" ? undefined : message.deposit;
|
|
408
|
+
return obj;
|
|
409
|
+
},
|
|
410
|
+
fromAminoMsg(object: RegisterVolunteerValidatorProposalWithDepositAminoMsg): RegisterVolunteerValidatorProposalWithDeposit {
|
|
411
|
+
return RegisterVolunteerValidatorProposalWithDeposit.fromAmino(object.value);
|
|
412
|
+
},
|
|
413
|
+
toAminoMsg(message: RegisterVolunteerValidatorProposalWithDeposit): RegisterVolunteerValidatorProposalWithDepositAminoMsg {
|
|
414
|
+
return {
|
|
415
|
+
type: "xpladev/RegisterVolunteerValidatorProposalWithDeposit",
|
|
416
|
+
value: RegisterVolunteerValidatorProposalWithDeposit.toAmino(message)
|
|
417
|
+
};
|
|
418
|
+
},
|
|
419
|
+
fromProtoMsg(message: RegisterVolunteerValidatorProposalWithDepositProtoMsg): RegisterVolunteerValidatorProposalWithDeposit {
|
|
420
|
+
return RegisterVolunteerValidatorProposalWithDeposit.decode(message.value);
|
|
421
|
+
},
|
|
422
|
+
toProto(message: RegisterVolunteerValidatorProposalWithDeposit): Uint8Array {
|
|
423
|
+
return RegisterVolunteerValidatorProposalWithDeposit.encode(message).finish();
|
|
424
|
+
},
|
|
425
|
+
toProtoMsg(message: RegisterVolunteerValidatorProposalWithDeposit): RegisterVolunteerValidatorProposalWithDepositProtoMsg {
|
|
426
|
+
return {
|
|
427
|
+
typeUrl: "/xpla.volunteer.v1beta1.RegisterVolunteerValidatorProposalWithDeposit",
|
|
428
|
+
value: RegisterVolunteerValidatorProposalWithDeposit.encode(message).finish()
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
GlobalDecoderRegistry.register(RegisterVolunteerValidatorProposalWithDeposit.typeUrl, RegisterVolunteerValidatorProposalWithDeposit);
|
|
433
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(RegisterVolunteerValidatorProposalWithDeposit.aminoType, RegisterVolunteerValidatorProposalWithDeposit.typeUrl);
|
|
434
|
+
function createBaseUnregisterVolunteerValidatorProposal(): UnregisterVolunteerValidatorProposal {
|
|
435
|
+
return {
|
|
436
|
+
title: "",
|
|
437
|
+
description: "",
|
|
438
|
+
validatorAddress: ""
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
export const UnregisterVolunteerValidatorProposal = {
|
|
442
|
+
typeUrl: "/xpla.volunteer.v1beta1.UnregisterVolunteerValidatorProposal",
|
|
443
|
+
aminoType: "xpladev/UnregisterVolunteerValidatorProposal",
|
|
444
|
+
is(o: any): o is UnregisterVolunteerValidatorProposal {
|
|
445
|
+
return o && (o.$typeUrl === UnregisterVolunteerValidatorProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.validatorAddress === "string");
|
|
446
|
+
},
|
|
447
|
+
isAmino(o: any): o is UnregisterVolunteerValidatorProposalAmino {
|
|
448
|
+
return o && (o.$typeUrl === UnregisterVolunteerValidatorProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.validator_address === "string");
|
|
449
|
+
},
|
|
450
|
+
encode(message: UnregisterVolunteerValidatorProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
451
|
+
if (message.title !== "") {
|
|
452
|
+
writer.uint32(10).string(message.title);
|
|
453
|
+
}
|
|
454
|
+
if (message.description !== "") {
|
|
455
|
+
writer.uint32(18).string(message.description);
|
|
456
|
+
}
|
|
457
|
+
if (message.validatorAddress !== "") {
|
|
458
|
+
writer.uint32(26).string(message.validatorAddress);
|
|
459
|
+
}
|
|
460
|
+
return writer;
|
|
461
|
+
},
|
|
462
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UnregisterVolunteerValidatorProposal {
|
|
463
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
464
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
465
|
+
const message = createBaseUnregisterVolunteerValidatorProposal();
|
|
466
|
+
while (reader.pos < end) {
|
|
467
|
+
const tag = reader.uint32();
|
|
468
|
+
switch (tag >>> 3) {
|
|
469
|
+
case 1:
|
|
470
|
+
message.title = reader.string();
|
|
471
|
+
break;
|
|
472
|
+
case 2:
|
|
473
|
+
message.description = reader.string();
|
|
474
|
+
break;
|
|
475
|
+
case 3:
|
|
476
|
+
message.validatorAddress = reader.string();
|
|
477
|
+
break;
|
|
478
|
+
default:
|
|
479
|
+
reader.skipType(tag & 7);
|
|
480
|
+
break;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
return message;
|
|
484
|
+
},
|
|
485
|
+
fromPartial(object: DeepPartial<UnregisterVolunteerValidatorProposal>): UnregisterVolunteerValidatorProposal {
|
|
486
|
+
const message = createBaseUnregisterVolunteerValidatorProposal();
|
|
487
|
+
message.title = object.title ?? "";
|
|
488
|
+
message.description = object.description ?? "";
|
|
489
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
490
|
+
return message;
|
|
491
|
+
},
|
|
492
|
+
fromAmino(object: UnregisterVolunteerValidatorProposalAmino): UnregisterVolunteerValidatorProposal {
|
|
493
|
+
const message = createBaseUnregisterVolunteerValidatorProposal();
|
|
494
|
+
if (object.title !== undefined && object.title !== null) {
|
|
495
|
+
message.title = object.title;
|
|
496
|
+
}
|
|
497
|
+
if (object.description !== undefined && object.description !== null) {
|
|
498
|
+
message.description = object.description;
|
|
499
|
+
}
|
|
500
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
501
|
+
message.validatorAddress = object.validator_address;
|
|
502
|
+
}
|
|
503
|
+
return message;
|
|
504
|
+
},
|
|
505
|
+
toAmino(message: UnregisterVolunteerValidatorProposal): UnregisterVolunteerValidatorProposalAmino {
|
|
506
|
+
const obj: any = {};
|
|
507
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
508
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
509
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
510
|
+
return obj;
|
|
511
|
+
},
|
|
512
|
+
fromAminoMsg(object: UnregisterVolunteerValidatorProposalAminoMsg): UnregisterVolunteerValidatorProposal {
|
|
513
|
+
return UnregisterVolunteerValidatorProposal.fromAmino(object.value);
|
|
514
|
+
},
|
|
515
|
+
toAminoMsg(message: UnregisterVolunteerValidatorProposal): UnregisterVolunteerValidatorProposalAminoMsg {
|
|
516
|
+
return {
|
|
517
|
+
type: "xpladev/UnregisterVolunteerValidatorProposal",
|
|
518
|
+
value: UnregisterVolunteerValidatorProposal.toAmino(message)
|
|
519
|
+
};
|
|
520
|
+
},
|
|
521
|
+
fromProtoMsg(message: UnregisterVolunteerValidatorProposalProtoMsg): UnregisterVolunteerValidatorProposal {
|
|
522
|
+
return UnregisterVolunteerValidatorProposal.decode(message.value);
|
|
523
|
+
},
|
|
524
|
+
toProto(message: UnregisterVolunteerValidatorProposal): Uint8Array {
|
|
525
|
+
return UnregisterVolunteerValidatorProposal.encode(message).finish();
|
|
526
|
+
},
|
|
527
|
+
toProtoMsg(message: UnregisterVolunteerValidatorProposal): UnregisterVolunteerValidatorProposalProtoMsg {
|
|
528
|
+
return {
|
|
529
|
+
typeUrl: "/xpla.volunteer.v1beta1.UnregisterVolunteerValidatorProposal",
|
|
530
|
+
value: UnregisterVolunteerValidatorProposal.encode(message).finish()
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
GlobalDecoderRegistry.register(UnregisterVolunteerValidatorProposal.typeUrl, UnregisterVolunteerValidatorProposal);
|
|
535
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(UnregisterVolunteerValidatorProposal.aminoType, UnregisterVolunteerValidatorProposal.typeUrl);
|
|
536
|
+
function createBaseUnregisterVolunteerValidatorProposalWithDeposit(): UnregisterVolunteerValidatorProposalWithDeposit {
|
|
537
|
+
return {
|
|
538
|
+
title: "",
|
|
539
|
+
description: "",
|
|
540
|
+
validatorAddress: "",
|
|
541
|
+
deposit: ""
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
export const UnregisterVolunteerValidatorProposalWithDeposit = {
|
|
545
|
+
typeUrl: "/xpla.volunteer.v1beta1.UnregisterVolunteerValidatorProposalWithDeposit",
|
|
546
|
+
aminoType: "xpladev/UnregisterVolunteerValidatorProposalWithDeposit",
|
|
547
|
+
is(o: any): o is UnregisterVolunteerValidatorProposalWithDeposit {
|
|
548
|
+
return o && (o.$typeUrl === UnregisterVolunteerValidatorProposalWithDeposit.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.validatorAddress === "string" && typeof o.deposit === "string");
|
|
549
|
+
},
|
|
550
|
+
isAmino(o: any): o is UnregisterVolunteerValidatorProposalWithDepositAmino {
|
|
551
|
+
return o && (o.$typeUrl === UnregisterVolunteerValidatorProposalWithDeposit.typeUrl || typeof o.title === "string" && typeof o.description === "string" && typeof o.validator_address === "string" && typeof o.deposit === "string");
|
|
552
|
+
},
|
|
553
|
+
encode(message: UnregisterVolunteerValidatorProposalWithDeposit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
554
|
+
if (message.title !== "") {
|
|
555
|
+
writer.uint32(10).string(message.title);
|
|
556
|
+
}
|
|
557
|
+
if (message.description !== "") {
|
|
558
|
+
writer.uint32(18).string(message.description);
|
|
559
|
+
}
|
|
560
|
+
if (message.validatorAddress !== "") {
|
|
561
|
+
writer.uint32(26).string(message.validatorAddress);
|
|
562
|
+
}
|
|
563
|
+
if (message.deposit !== "") {
|
|
564
|
+
writer.uint32(34).string(message.deposit);
|
|
565
|
+
}
|
|
566
|
+
return writer;
|
|
567
|
+
},
|
|
568
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UnregisterVolunteerValidatorProposalWithDeposit {
|
|
569
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
570
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
571
|
+
const message = createBaseUnregisterVolunteerValidatorProposalWithDeposit();
|
|
572
|
+
while (reader.pos < end) {
|
|
573
|
+
const tag = reader.uint32();
|
|
574
|
+
switch (tag >>> 3) {
|
|
575
|
+
case 1:
|
|
576
|
+
message.title = reader.string();
|
|
577
|
+
break;
|
|
578
|
+
case 2:
|
|
579
|
+
message.description = reader.string();
|
|
580
|
+
break;
|
|
581
|
+
case 3:
|
|
582
|
+
message.validatorAddress = reader.string();
|
|
583
|
+
break;
|
|
584
|
+
case 4:
|
|
585
|
+
message.deposit = reader.string();
|
|
586
|
+
break;
|
|
587
|
+
default:
|
|
588
|
+
reader.skipType(tag & 7);
|
|
589
|
+
break;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
return message;
|
|
593
|
+
},
|
|
594
|
+
fromPartial(object: DeepPartial<UnregisterVolunteerValidatorProposalWithDeposit>): UnregisterVolunteerValidatorProposalWithDeposit {
|
|
595
|
+
const message = createBaseUnregisterVolunteerValidatorProposalWithDeposit();
|
|
596
|
+
message.title = object.title ?? "";
|
|
597
|
+
message.description = object.description ?? "";
|
|
598
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
599
|
+
message.deposit = object.deposit ?? "";
|
|
600
|
+
return message;
|
|
601
|
+
},
|
|
602
|
+
fromAmino(object: UnregisterVolunteerValidatorProposalWithDepositAmino): UnregisterVolunteerValidatorProposalWithDeposit {
|
|
603
|
+
const message = createBaseUnregisterVolunteerValidatorProposalWithDeposit();
|
|
604
|
+
if (object.title !== undefined && object.title !== null) {
|
|
605
|
+
message.title = object.title;
|
|
606
|
+
}
|
|
607
|
+
if (object.description !== undefined && object.description !== null) {
|
|
608
|
+
message.description = object.description;
|
|
609
|
+
}
|
|
610
|
+
if (object.validator_address !== undefined && object.validator_address !== null) {
|
|
611
|
+
message.validatorAddress = object.validator_address;
|
|
612
|
+
}
|
|
613
|
+
if (object.deposit !== undefined && object.deposit !== null) {
|
|
614
|
+
message.deposit = object.deposit;
|
|
615
|
+
}
|
|
616
|
+
return message;
|
|
617
|
+
},
|
|
618
|
+
toAmino(message: UnregisterVolunteerValidatorProposalWithDeposit): UnregisterVolunteerValidatorProposalWithDepositAmino {
|
|
619
|
+
const obj: any = {};
|
|
620
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
621
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
622
|
+
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
623
|
+
obj.deposit = message.deposit === "" ? undefined : message.deposit;
|
|
624
|
+
return obj;
|
|
625
|
+
},
|
|
626
|
+
fromAminoMsg(object: UnregisterVolunteerValidatorProposalWithDepositAminoMsg): UnregisterVolunteerValidatorProposalWithDeposit {
|
|
627
|
+
return UnregisterVolunteerValidatorProposalWithDeposit.fromAmino(object.value);
|
|
628
|
+
},
|
|
629
|
+
toAminoMsg(message: UnregisterVolunteerValidatorProposalWithDeposit): UnregisterVolunteerValidatorProposalWithDepositAminoMsg {
|
|
630
|
+
return {
|
|
631
|
+
type: "xpladev/UnregisterVolunteerValidatorProposalWithDeposit",
|
|
632
|
+
value: UnregisterVolunteerValidatorProposalWithDeposit.toAmino(message)
|
|
633
|
+
};
|
|
634
|
+
},
|
|
635
|
+
fromProtoMsg(message: UnregisterVolunteerValidatorProposalWithDepositProtoMsg): UnregisterVolunteerValidatorProposalWithDeposit {
|
|
636
|
+
return UnregisterVolunteerValidatorProposalWithDeposit.decode(message.value);
|
|
637
|
+
},
|
|
638
|
+
toProto(message: UnregisterVolunteerValidatorProposalWithDeposit): Uint8Array {
|
|
639
|
+
return UnregisterVolunteerValidatorProposalWithDeposit.encode(message).finish();
|
|
640
|
+
},
|
|
641
|
+
toProtoMsg(message: UnregisterVolunteerValidatorProposalWithDeposit): UnregisterVolunteerValidatorProposalWithDepositProtoMsg {
|
|
642
|
+
return {
|
|
643
|
+
typeUrl: "/xpla.volunteer.v1beta1.UnregisterVolunteerValidatorProposalWithDeposit",
|
|
644
|
+
value: UnregisterVolunteerValidatorProposalWithDeposit.encode(message).finish()
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
GlobalDecoderRegistry.register(UnregisterVolunteerValidatorProposalWithDeposit.typeUrl, UnregisterVolunteerValidatorProposalWithDeposit);
|
|
649
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(UnregisterVolunteerValidatorProposalWithDeposit.aminoType, UnregisterVolunteerValidatorProposalWithDeposit.typeUrl);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RpcResolver, buildQuery } from "../../../helper-func-types";
|
|
2
|
+
import { buildUseQuery } from "../../../react-query";
|
|
3
|
+
import { QueryVolunteerValidatorsRequest, QueryVolunteerValidatorsResponse } from "./query";
|
|
4
|
+
export const createGetVolunteerValidators = (clientResolver?: RpcResolver) => buildQuery<QueryVolunteerValidatorsRequest, QueryVolunteerValidatorsResponse>({
|
|
5
|
+
encode: QueryVolunteerValidatorsRequest.encode,
|
|
6
|
+
decode: QueryVolunteerValidatorsResponse.decode,
|
|
7
|
+
service: "xpla.volunteer.v1beta1.Query",
|
|
8
|
+
method: "VolunteerValidators",
|
|
9
|
+
clientResolver
|
|
10
|
+
});
|
|
11
|
+
export const useGetVolunteerValidators = buildUseQuery<QueryVolunteerValidatorsRequest, QueryVolunteerValidatorsResponse>({
|
|
12
|
+
builderQueryFn: createGetVolunteerValidators,
|
|
13
|
+
queryKeyPrefix: "VolunteerValidatorsQuery"
|
|
14
|
+
});
|