@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,391 @@
|
|
|
1
|
+
import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
|
|
2
|
+
import { Params, ParamsAmino } from "./reward";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
|
+
/**
|
|
7
|
+
* MsgFundRewardPool allows an account to directly
|
|
8
|
+
* fund the reward pool.
|
|
9
|
+
*/
|
|
10
|
+
export interface MsgFundRewardPool {
|
|
11
|
+
amount: Coin[];
|
|
12
|
+
depositor: string;
|
|
13
|
+
}
|
|
14
|
+
export interface MsgFundRewardPoolProtoMsg {
|
|
15
|
+
typeUrl: "/xpla.reward.v1beta1.MsgFundRewardPool";
|
|
16
|
+
value: Uint8Array;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* MsgFundRewardPool allows an account to directly
|
|
20
|
+
* fund the reward pool.
|
|
21
|
+
*/
|
|
22
|
+
export interface MsgFundRewardPoolAmino {
|
|
23
|
+
amount: CoinAmino[];
|
|
24
|
+
depositor: string;
|
|
25
|
+
}
|
|
26
|
+
export interface MsgFundRewardPoolAminoMsg {
|
|
27
|
+
type: "xpladev/MsgFundRewardPool";
|
|
28
|
+
value: MsgFundRewardPoolAmino;
|
|
29
|
+
}
|
|
30
|
+
/** MsgFundRewardPoolResponse defines the Msg/FundRewardPool response type. */
|
|
31
|
+
export interface MsgFundRewardPoolResponse {}
|
|
32
|
+
export interface MsgFundRewardPoolResponseProtoMsg {
|
|
33
|
+
typeUrl: "/xpla.reward.v1beta1.MsgFundRewardPoolResponse";
|
|
34
|
+
value: Uint8Array;
|
|
35
|
+
}
|
|
36
|
+
/** MsgFundRewardPoolResponse defines the Msg/FundRewardPool response type. */
|
|
37
|
+
export interface MsgFundRewardPoolResponseAmino {}
|
|
38
|
+
export interface MsgFundRewardPoolResponseAminoMsg {
|
|
39
|
+
type: "/xpla.reward.v1beta1.MsgFundRewardPoolResponse";
|
|
40
|
+
value: MsgFundRewardPoolResponseAmino;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* MsgUpdateParams is the Msg/UpdateParams request type for reward parameters.
|
|
44
|
+
* Since: cosmos-sdk 0.47
|
|
45
|
+
*/
|
|
46
|
+
export interface MsgUpdateParams {
|
|
47
|
+
/** authority is the address of the governance account. */
|
|
48
|
+
authority: string;
|
|
49
|
+
/**
|
|
50
|
+
* params defines the x/evm parameters to update.
|
|
51
|
+
* NOTE: All parameters must be supplied.
|
|
52
|
+
*/
|
|
53
|
+
params: Params;
|
|
54
|
+
}
|
|
55
|
+
export interface MsgUpdateParamsProtoMsg {
|
|
56
|
+
typeUrl: "/xpla.reward.v1beta1.MsgUpdateParams";
|
|
57
|
+
value: Uint8Array;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* MsgUpdateParams is the Msg/UpdateParams request type for reward parameters.
|
|
61
|
+
* Since: cosmos-sdk 0.47
|
|
62
|
+
*/
|
|
63
|
+
export interface MsgUpdateParamsAmino {
|
|
64
|
+
/** authority is the address of the governance account. */
|
|
65
|
+
authority: string;
|
|
66
|
+
/**
|
|
67
|
+
* params defines the x/evm parameters to update.
|
|
68
|
+
* NOTE: All parameters must be supplied.
|
|
69
|
+
*/
|
|
70
|
+
params: ParamsAmino;
|
|
71
|
+
}
|
|
72
|
+
export interface MsgUpdateParamsAminoMsg {
|
|
73
|
+
type: "xpladev/x/reward/MsgUpdateParams";
|
|
74
|
+
value: MsgUpdateParamsAmino;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
78
|
+
* MsgUpdateParams message.
|
|
79
|
+
* Since: cosmos-sdk 0.47
|
|
80
|
+
*/
|
|
81
|
+
export interface MsgUpdateParamsResponse {}
|
|
82
|
+
export interface MsgUpdateParamsResponseProtoMsg {
|
|
83
|
+
typeUrl: "/xpla.reward.v1beta1.MsgUpdateParamsResponse";
|
|
84
|
+
value: Uint8Array;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
88
|
+
* MsgUpdateParams message.
|
|
89
|
+
* Since: cosmos-sdk 0.47
|
|
90
|
+
*/
|
|
91
|
+
export interface MsgUpdateParamsResponseAmino {}
|
|
92
|
+
export interface MsgUpdateParamsResponseAminoMsg {
|
|
93
|
+
type: "/xpla.reward.v1beta1.MsgUpdateParamsResponse";
|
|
94
|
+
value: MsgUpdateParamsResponseAmino;
|
|
95
|
+
}
|
|
96
|
+
function createBaseMsgFundRewardPool(): MsgFundRewardPool {
|
|
97
|
+
return {
|
|
98
|
+
amount: [],
|
|
99
|
+
depositor: ""
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export const MsgFundRewardPool = {
|
|
103
|
+
typeUrl: "/xpla.reward.v1beta1.MsgFundRewardPool",
|
|
104
|
+
aminoType: "xpladev/MsgFundRewardPool",
|
|
105
|
+
is(o: any): o is MsgFundRewardPool {
|
|
106
|
+
return o && (o.$typeUrl === MsgFundRewardPool.typeUrl || Array.isArray(o.amount) && (!o.amount.length || Coin.is(o.amount[0])) && typeof o.depositor === "string");
|
|
107
|
+
},
|
|
108
|
+
isAmino(o: any): o is MsgFundRewardPoolAmino {
|
|
109
|
+
return o && (o.$typeUrl === MsgFundRewardPool.typeUrl || Array.isArray(o.amount) && (!o.amount.length || Coin.isAmino(o.amount[0])) && typeof o.depositor === "string");
|
|
110
|
+
},
|
|
111
|
+
encode(message: MsgFundRewardPool, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
112
|
+
for (const v of message.amount) {
|
|
113
|
+
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
114
|
+
}
|
|
115
|
+
if (message.depositor !== "") {
|
|
116
|
+
writer.uint32(18).string(message.depositor);
|
|
117
|
+
}
|
|
118
|
+
return writer;
|
|
119
|
+
},
|
|
120
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgFundRewardPool {
|
|
121
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
122
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
123
|
+
const message = createBaseMsgFundRewardPool();
|
|
124
|
+
while (reader.pos < end) {
|
|
125
|
+
const tag = reader.uint32();
|
|
126
|
+
switch (tag >>> 3) {
|
|
127
|
+
case 1:
|
|
128
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
129
|
+
break;
|
|
130
|
+
case 2:
|
|
131
|
+
message.depositor = reader.string();
|
|
132
|
+
break;
|
|
133
|
+
default:
|
|
134
|
+
reader.skipType(tag & 7);
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return message;
|
|
139
|
+
},
|
|
140
|
+
fromPartial(object: DeepPartial<MsgFundRewardPool>): MsgFundRewardPool {
|
|
141
|
+
const message = createBaseMsgFundRewardPool();
|
|
142
|
+
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
|
143
|
+
message.depositor = object.depositor ?? "";
|
|
144
|
+
return message;
|
|
145
|
+
},
|
|
146
|
+
fromAmino(object: MsgFundRewardPoolAmino): MsgFundRewardPool {
|
|
147
|
+
const message = createBaseMsgFundRewardPool();
|
|
148
|
+
message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
|
|
149
|
+
if (object.depositor !== undefined && object.depositor !== null) {
|
|
150
|
+
message.depositor = object.depositor;
|
|
151
|
+
}
|
|
152
|
+
return message;
|
|
153
|
+
},
|
|
154
|
+
toAmino(message: MsgFundRewardPool): MsgFundRewardPoolAmino {
|
|
155
|
+
const obj: any = {};
|
|
156
|
+
if (message.amount) {
|
|
157
|
+
obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
|
|
158
|
+
} else {
|
|
159
|
+
obj.amount = message.amount;
|
|
160
|
+
}
|
|
161
|
+
obj.depositor = message.depositor === "" ? undefined : message.depositor;
|
|
162
|
+
return obj;
|
|
163
|
+
},
|
|
164
|
+
fromAminoMsg(object: MsgFundRewardPoolAminoMsg): MsgFundRewardPool {
|
|
165
|
+
return MsgFundRewardPool.fromAmino(object.value);
|
|
166
|
+
},
|
|
167
|
+
toAminoMsg(message: MsgFundRewardPool): MsgFundRewardPoolAminoMsg {
|
|
168
|
+
return {
|
|
169
|
+
type: "xpladev/MsgFundRewardPool",
|
|
170
|
+
value: MsgFundRewardPool.toAmino(message)
|
|
171
|
+
};
|
|
172
|
+
},
|
|
173
|
+
fromProtoMsg(message: MsgFundRewardPoolProtoMsg): MsgFundRewardPool {
|
|
174
|
+
return MsgFundRewardPool.decode(message.value);
|
|
175
|
+
},
|
|
176
|
+
toProto(message: MsgFundRewardPool): Uint8Array {
|
|
177
|
+
return MsgFundRewardPool.encode(message).finish();
|
|
178
|
+
},
|
|
179
|
+
toProtoMsg(message: MsgFundRewardPool): MsgFundRewardPoolProtoMsg {
|
|
180
|
+
return {
|
|
181
|
+
typeUrl: "/xpla.reward.v1beta1.MsgFundRewardPool",
|
|
182
|
+
value: MsgFundRewardPool.encode(message).finish()
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
GlobalDecoderRegistry.register(MsgFundRewardPool.typeUrl, MsgFundRewardPool);
|
|
187
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgFundRewardPool.aminoType, MsgFundRewardPool.typeUrl);
|
|
188
|
+
function createBaseMsgFundRewardPoolResponse(): MsgFundRewardPoolResponse {
|
|
189
|
+
return {};
|
|
190
|
+
}
|
|
191
|
+
export const MsgFundRewardPoolResponse = {
|
|
192
|
+
typeUrl: "/xpla.reward.v1beta1.MsgFundRewardPoolResponse",
|
|
193
|
+
is(o: any): o is MsgFundRewardPoolResponse {
|
|
194
|
+
return o && o.$typeUrl === MsgFundRewardPoolResponse.typeUrl;
|
|
195
|
+
},
|
|
196
|
+
isAmino(o: any): o is MsgFundRewardPoolResponseAmino {
|
|
197
|
+
return o && o.$typeUrl === MsgFundRewardPoolResponse.typeUrl;
|
|
198
|
+
},
|
|
199
|
+
encode(_: MsgFundRewardPoolResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
200
|
+
return writer;
|
|
201
|
+
},
|
|
202
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgFundRewardPoolResponse {
|
|
203
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
204
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
205
|
+
const message = createBaseMsgFundRewardPoolResponse();
|
|
206
|
+
while (reader.pos < end) {
|
|
207
|
+
const tag = reader.uint32();
|
|
208
|
+
switch (tag >>> 3) {
|
|
209
|
+
default:
|
|
210
|
+
reader.skipType(tag & 7);
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return message;
|
|
215
|
+
},
|
|
216
|
+
fromPartial(_: DeepPartial<MsgFundRewardPoolResponse>): MsgFundRewardPoolResponse {
|
|
217
|
+
const message = createBaseMsgFundRewardPoolResponse();
|
|
218
|
+
return message;
|
|
219
|
+
},
|
|
220
|
+
fromAmino(_: MsgFundRewardPoolResponseAmino): MsgFundRewardPoolResponse {
|
|
221
|
+
const message = createBaseMsgFundRewardPoolResponse();
|
|
222
|
+
return message;
|
|
223
|
+
},
|
|
224
|
+
toAmino(_: MsgFundRewardPoolResponse): MsgFundRewardPoolResponseAmino {
|
|
225
|
+
const obj: any = {};
|
|
226
|
+
return obj;
|
|
227
|
+
},
|
|
228
|
+
fromAminoMsg(object: MsgFundRewardPoolResponseAminoMsg): MsgFundRewardPoolResponse {
|
|
229
|
+
return MsgFundRewardPoolResponse.fromAmino(object.value);
|
|
230
|
+
},
|
|
231
|
+
fromProtoMsg(message: MsgFundRewardPoolResponseProtoMsg): MsgFundRewardPoolResponse {
|
|
232
|
+
return MsgFundRewardPoolResponse.decode(message.value);
|
|
233
|
+
},
|
|
234
|
+
toProto(message: MsgFundRewardPoolResponse): Uint8Array {
|
|
235
|
+
return MsgFundRewardPoolResponse.encode(message).finish();
|
|
236
|
+
},
|
|
237
|
+
toProtoMsg(message: MsgFundRewardPoolResponse): MsgFundRewardPoolResponseProtoMsg {
|
|
238
|
+
return {
|
|
239
|
+
typeUrl: "/xpla.reward.v1beta1.MsgFundRewardPoolResponse",
|
|
240
|
+
value: MsgFundRewardPoolResponse.encode(message).finish()
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
GlobalDecoderRegistry.register(MsgFundRewardPoolResponse.typeUrl, MsgFundRewardPoolResponse);
|
|
245
|
+
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
246
|
+
return {
|
|
247
|
+
authority: "",
|
|
248
|
+
params: Params.fromPartial({})
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
export const MsgUpdateParams = {
|
|
252
|
+
typeUrl: "/xpla.reward.v1beta1.MsgUpdateParams",
|
|
253
|
+
aminoType: "xpladev/x/reward/MsgUpdateParams",
|
|
254
|
+
is(o: any): o is MsgUpdateParams {
|
|
255
|
+
return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.is(o.params));
|
|
256
|
+
},
|
|
257
|
+
isAmino(o: any): o is MsgUpdateParamsAmino {
|
|
258
|
+
return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.isAmino(o.params));
|
|
259
|
+
},
|
|
260
|
+
encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
261
|
+
if (message.authority !== "") {
|
|
262
|
+
writer.uint32(10).string(message.authority);
|
|
263
|
+
}
|
|
264
|
+
if (message.params !== undefined) {
|
|
265
|
+
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
266
|
+
}
|
|
267
|
+
return writer;
|
|
268
|
+
},
|
|
269
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
270
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
271
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
272
|
+
const message = createBaseMsgUpdateParams();
|
|
273
|
+
while (reader.pos < end) {
|
|
274
|
+
const tag = reader.uint32();
|
|
275
|
+
switch (tag >>> 3) {
|
|
276
|
+
case 1:
|
|
277
|
+
message.authority = reader.string();
|
|
278
|
+
break;
|
|
279
|
+
case 2:
|
|
280
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
281
|
+
break;
|
|
282
|
+
default:
|
|
283
|
+
reader.skipType(tag & 7);
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return message;
|
|
288
|
+
},
|
|
289
|
+
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams {
|
|
290
|
+
const message = createBaseMsgUpdateParams();
|
|
291
|
+
message.authority = object.authority ?? "";
|
|
292
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
293
|
+
return message;
|
|
294
|
+
},
|
|
295
|
+
fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
|
|
296
|
+
const message = createBaseMsgUpdateParams();
|
|
297
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
298
|
+
message.authority = object.authority;
|
|
299
|
+
}
|
|
300
|
+
if (object.params !== undefined && object.params !== null) {
|
|
301
|
+
message.params = Params.fromAmino(object.params);
|
|
302
|
+
}
|
|
303
|
+
return message;
|
|
304
|
+
},
|
|
305
|
+
toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
|
|
306
|
+
const obj: any = {};
|
|
307
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
308
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
309
|
+
return obj;
|
|
310
|
+
},
|
|
311
|
+
fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
|
|
312
|
+
return MsgUpdateParams.fromAmino(object.value);
|
|
313
|
+
},
|
|
314
|
+
toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
|
|
315
|
+
return {
|
|
316
|
+
type: "xpladev/x/reward/MsgUpdateParams",
|
|
317
|
+
value: MsgUpdateParams.toAmino(message)
|
|
318
|
+
};
|
|
319
|
+
},
|
|
320
|
+
fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
|
|
321
|
+
return MsgUpdateParams.decode(message.value);
|
|
322
|
+
},
|
|
323
|
+
toProto(message: MsgUpdateParams): Uint8Array {
|
|
324
|
+
return MsgUpdateParams.encode(message).finish();
|
|
325
|
+
},
|
|
326
|
+
toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
|
|
327
|
+
return {
|
|
328
|
+
typeUrl: "/xpla.reward.v1beta1.MsgUpdateParams",
|
|
329
|
+
value: MsgUpdateParams.encode(message).finish()
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
|
|
334
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
|
|
335
|
+
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
336
|
+
return {};
|
|
337
|
+
}
|
|
338
|
+
export const MsgUpdateParamsResponse = {
|
|
339
|
+
typeUrl: "/xpla.reward.v1beta1.MsgUpdateParamsResponse",
|
|
340
|
+
is(o: any): o is MsgUpdateParamsResponse {
|
|
341
|
+
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
|
|
342
|
+
},
|
|
343
|
+
isAmino(o: any): o is MsgUpdateParamsResponseAmino {
|
|
344
|
+
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
|
|
345
|
+
},
|
|
346
|
+
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
347
|
+
return writer;
|
|
348
|
+
},
|
|
349
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
350
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
351
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
352
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
353
|
+
while (reader.pos < end) {
|
|
354
|
+
const tag = reader.uint32();
|
|
355
|
+
switch (tag >>> 3) {
|
|
356
|
+
default:
|
|
357
|
+
reader.skipType(tag & 7);
|
|
358
|
+
break;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
return message;
|
|
362
|
+
},
|
|
363
|
+
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
|
|
364
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
365
|
+
return message;
|
|
366
|
+
},
|
|
367
|
+
fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
|
|
368
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
369
|
+
return message;
|
|
370
|
+
},
|
|
371
|
+
toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
|
|
372
|
+
const obj: any = {};
|
|
373
|
+
return obj;
|
|
374
|
+
},
|
|
375
|
+
fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
|
|
376
|
+
return MsgUpdateParamsResponse.fromAmino(object.value);
|
|
377
|
+
},
|
|
378
|
+
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
|
|
379
|
+
return MsgUpdateParamsResponse.decode(message.value);
|
|
380
|
+
},
|
|
381
|
+
toProto(message: MsgUpdateParamsResponse): Uint8Array {
|
|
382
|
+
return MsgUpdateParamsResponse.encode(message).finish();
|
|
383
|
+
},
|
|
384
|
+
toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
|
|
385
|
+
return {
|
|
386
|
+
typeUrl: "/xpla.reward.v1beta1.MsgUpdateParamsResponse",
|
|
387
|
+
value: MsgUpdateParamsResponse.encode(message).finish()
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
GlobalDecoderRegistry.register(MsgUpdateParamsResponse.typeUrl, MsgUpdateParamsResponse);
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { VolunteerValidator, VolunteerValidatorAmino } from "./volunteervalidator";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
|
+
/** GenesisState defines the volunteer module's genesis state. */
|
|
6
|
+
export interface GenesisState {
|
|
7
|
+
volunteerValidators: VolunteerValidator[];
|
|
8
|
+
}
|
|
9
|
+
export interface GenesisStateProtoMsg {
|
|
10
|
+
typeUrl: "/xpla.volunteer.v1beta1.GenesisState";
|
|
11
|
+
value: Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
/** GenesisState defines the volunteer module's genesis state. */
|
|
14
|
+
export interface GenesisStateAmino {
|
|
15
|
+
volunteer_validators: VolunteerValidatorAmino[];
|
|
16
|
+
}
|
|
17
|
+
export interface GenesisStateAminoMsg {
|
|
18
|
+
type: "/xpla.volunteer.v1beta1.GenesisState";
|
|
19
|
+
value: GenesisStateAmino;
|
|
20
|
+
}
|
|
21
|
+
function createBaseGenesisState(): GenesisState {
|
|
22
|
+
return {
|
|
23
|
+
volunteerValidators: []
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export const GenesisState = {
|
|
27
|
+
typeUrl: "/xpla.volunteer.v1beta1.GenesisState",
|
|
28
|
+
is(o: any): o is GenesisState {
|
|
29
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Array.isArray(o.volunteerValidators) && (!o.volunteerValidators.length || VolunteerValidator.is(o.volunteerValidators[0])));
|
|
30
|
+
},
|
|
31
|
+
isAmino(o: any): o is GenesisStateAmino {
|
|
32
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Array.isArray(o.volunteer_validators) && (!o.volunteer_validators.length || VolunteerValidator.isAmino(o.volunteer_validators[0])));
|
|
33
|
+
},
|
|
34
|
+
encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
35
|
+
for (const v of message.volunteerValidators) {
|
|
36
|
+
VolunteerValidator.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
37
|
+
}
|
|
38
|
+
return writer;
|
|
39
|
+
},
|
|
40
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
|
|
41
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
42
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
43
|
+
const message = createBaseGenesisState();
|
|
44
|
+
while (reader.pos < end) {
|
|
45
|
+
const tag = reader.uint32();
|
|
46
|
+
switch (tag >>> 3) {
|
|
47
|
+
case 1:
|
|
48
|
+
message.volunteerValidators.push(VolunteerValidator.decode(reader, reader.uint32()));
|
|
49
|
+
break;
|
|
50
|
+
default:
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return message;
|
|
56
|
+
},
|
|
57
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState {
|
|
58
|
+
const message = createBaseGenesisState();
|
|
59
|
+
message.volunteerValidators = object.volunteerValidators?.map(e => VolunteerValidator.fromPartial(e)) || [];
|
|
60
|
+
return message;
|
|
61
|
+
},
|
|
62
|
+
fromAmino(object: GenesisStateAmino): GenesisState {
|
|
63
|
+
const message = createBaseGenesisState();
|
|
64
|
+
message.volunteerValidators = object.volunteer_validators?.map(e => VolunteerValidator.fromAmino(e)) || [];
|
|
65
|
+
return message;
|
|
66
|
+
},
|
|
67
|
+
toAmino(message: GenesisState): GenesisStateAmino {
|
|
68
|
+
const obj: any = {};
|
|
69
|
+
if (message.volunteerValidators) {
|
|
70
|
+
obj.volunteer_validators = message.volunteerValidators.map(e => e ? VolunteerValidator.toAmino(e) : undefined);
|
|
71
|
+
} else {
|
|
72
|
+
obj.volunteer_validators = message.volunteerValidators;
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
},
|
|
76
|
+
fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
|
|
77
|
+
return GenesisState.fromAmino(object.value);
|
|
78
|
+
},
|
|
79
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
|
|
80
|
+
return GenesisState.decode(message.value);
|
|
81
|
+
},
|
|
82
|
+
toProto(message: GenesisState): Uint8Array {
|
|
83
|
+
return GenesisState.encode(message).finish();
|
|
84
|
+
},
|
|
85
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg {
|
|
86
|
+
return {
|
|
87
|
+
typeUrl: "/xpla.volunteer.v1beta1.GenesisState",
|
|
88
|
+
value: GenesisState.encode(message).finish()
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
|