@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,113 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
|
+
/** Module is the config object of the mint module. */
|
|
5
|
+
export interface Module {
|
|
6
|
+
feeCollectorName: string;
|
|
7
|
+
/** authority defines the custom module authority. If not set, defaults to the governance module. */
|
|
8
|
+
authority: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ModuleProtoMsg {
|
|
11
|
+
typeUrl: "/cosmos.mint.module.v1.Module";
|
|
12
|
+
value: Uint8Array;
|
|
13
|
+
}
|
|
14
|
+
/** Module is the config object of the mint module. */
|
|
15
|
+
export interface ModuleAmino {
|
|
16
|
+
fee_collector_name: string;
|
|
17
|
+
/** authority defines the custom module authority. If not set, defaults to the governance module. */
|
|
18
|
+
authority: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ModuleAminoMsg {
|
|
21
|
+
type: "cosmos-sdk/Module";
|
|
22
|
+
value: ModuleAmino;
|
|
23
|
+
}
|
|
24
|
+
function createBaseModule(): Module {
|
|
25
|
+
return {
|
|
26
|
+
feeCollectorName: "",
|
|
27
|
+
authority: ""
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export const Module = {
|
|
31
|
+
typeUrl: "/cosmos.mint.module.v1.Module",
|
|
32
|
+
aminoType: "cosmos-sdk/Module",
|
|
33
|
+
is(o: any): o is Module {
|
|
34
|
+
return o && (o.$typeUrl === Module.typeUrl || typeof o.feeCollectorName === "string" && typeof o.authority === "string");
|
|
35
|
+
},
|
|
36
|
+
isAmino(o: any): o is ModuleAmino {
|
|
37
|
+
return o && (o.$typeUrl === Module.typeUrl || typeof o.fee_collector_name === "string" && typeof o.authority === "string");
|
|
38
|
+
},
|
|
39
|
+
encode(message: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
40
|
+
if (message.feeCollectorName !== "") {
|
|
41
|
+
writer.uint32(10).string(message.feeCollectorName);
|
|
42
|
+
}
|
|
43
|
+
if (message.authority !== "") {
|
|
44
|
+
writer.uint32(18).string(message.authority);
|
|
45
|
+
}
|
|
46
|
+
return writer;
|
|
47
|
+
},
|
|
48
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Module {
|
|
49
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
51
|
+
const message = createBaseModule();
|
|
52
|
+
while (reader.pos < end) {
|
|
53
|
+
const tag = reader.uint32();
|
|
54
|
+
switch (tag >>> 3) {
|
|
55
|
+
case 1:
|
|
56
|
+
message.feeCollectorName = reader.string();
|
|
57
|
+
break;
|
|
58
|
+
case 2:
|
|
59
|
+
message.authority = reader.string();
|
|
60
|
+
break;
|
|
61
|
+
default:
|
|
62
|
+
reader.skipType(tag & 7);
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return message;
|
|
67
|
+
},
|
|
68
|
+
fromPartial(object: DeepPartial<Module>): Module {
|
|
69
|
+
const message = createBaseModule();
|
|
70
|
+
message.feeCollectorName = object.feeCollectorName ?? "";
|
|
71
|
+
message.authority = object.authority ?? "";
|
|
72
|
+
return message;
|
|
73
|
+
},
|
|
74
|
+
fromAmino(object: ModuleAmino): Module {
|
|
75
|
+
const message = createBaseModule();
|
|
76
|
+
if (object.fee_collector_name !== undefined && object.fee_collector_name !== null) {
|
|
77
|
+
message.feeCollectorName = object.fee_collector_name;
|
|
78
|
+
}
|
|
79
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
80
|
+
message.authority = object.authority;
|
|
81
|
+
}
|
|
82
|
+
return message;
|
|
83
|
+
},
|
|
84
|
+
toAmino(message: Module): ModuleAmino {
|
|
85
|
+
const obj: any = {};
|
|
86
|
+
obj.fee_collector_name = message.feeCollectorName === "" ? undefined : message.feeCollectorName;
|
|
87
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
88
|
+
return obj;
|
|
89
|
+
},
|
|
90
|
+
fromAminoMsg(object: ModuleAminoMsg): Module {
|
|
91
|
+
return Module.fromAmino(object.value);
|
|
92
|
+
},
|
|
93
|
+
toAminoMsg(message: Module): ModuleAminoMsg {
|
|
94
|
+
return {
|
|
95
|
+
type: "cosmos-sdk/Module",
|
|
96
|
+
value: Module.toAmino(message)
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
fromProtoMsg(message: ModuleProtoMsg): Module {
|
|
100
|
+
return Module.decode(message.value);
|
|
101
|
+
},
|
|
102
|
+
toProto(message: Module): Uint8Array {
|
|
103
|
+
return Module.encode(message).finish();
|
|
104
|
+
},
|
|
105
|
+
toProtoMsg(message: Module): ModuleProtoMsg {
|
|
106
|
+
return {
|
|
107
|
+
typeUrl: "/cosmos.mint.module.v1.Module",
|
|
108
|
+
value: Module.encode(message).finish()
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
GlobalDecoderRegistry.register(Module.typeUrl, Module);
|
|
113
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Module.aminoType, Module.typeUrl);
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Minter, MinterAmino, Params, ParamsAmino } from "./mint";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
|
+
/** GenesisState defines the mint module's genesis state. */
|
|
6
|
+
export interface GenesisState {
|
|
7
|
+
/** minter is a space for holding current inflation information. */
|
|
8
|
+
minter: Minter;
|
|
9
|
+
/** params defines all the parameters of the module. */
|
|
10
|
+
params: Params;
|
|
11
|
+
}
|
|
12
|
+
export interface GenesisStateProtoMsg {
|
|
13
|
+
typeUrl: "/cosmos.mint.v1beta1.GenesisState";
|
|
14
|
+
value: Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
/** GenesisState defines the mint module's genesis state. */
|
|
17
|
+
export interface GenesisStateAmino {
|
|
18
|
+
/** minter is a space for holding current inflation information. */
|
|
19
|
+
minter: MinterAmino;
|
|
20
|
+
/** params defines all the parameters of the module. */
|
|
21
|
+
params: ParamsAmino;
|
|
22
|
+
}
|
|
23
|
+
export interface GenesisStateAminoMsg {
|
|
24
|
+
type: "cosmos-sdk/GenesisState";
|
|
25
|
+
value: GenesisStateAmino;
|
|
26
|
+
}
|
|
27
|
+
function createBaseGenesisState(): GenesisState {
|
|
28
|
+
return {
|
|
29
|
+
minter: Minter.fromPartial({}),
|
|
30
|
+
params: Params.fromPartial({})
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export const GenesisState = {
|
|
34
|
+
typeUrl: "/cosmos.mint.v1beta1.GenesisState",
|
|
35
|
+
aminoType: "cosmos-sdk/GenesisState",
|
|
36
|
+
is(o: any): o is GenesisState {
|
|
37
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Minter.is(o.minter) && Params.is(o.params));
|
|
38
|
+
},
|
|
39
|
+
isAmino(o: any): o is GenesisStateAmino {
|
|
40
|
+
return o && (o.$typeUrl === GenesisState.typeUrl || Minter.isAmino(o.minter) && Params.isAmino(o.params));
|
|
41
|
+
},
|
|
42
|
+
encode(message: GenesisState, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
43
|
+
if (message.minter !== undefined) {
|
|
44
|
+
Minter.encode(message.minter, writer.uint32(10).fork()).ldelim();
|
|
45
|
+
}
|
|
46
|
+
if (message.params !== undefined) {
|
|
47
|
+
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
48
|
+
}
|
|
49
|
+
return writer;
|
|
50
|
+
},
|
|
51
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState {
|
|
52
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
53
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
54
|
+
const message = createBaseGenesisState();
|
|
55
|
+
while (reader.pos < end) {
|
|
56
|
+
const tag = reader.uint32();
|
|
57
|
+
switch (tag >>> 3) {
|
|
58
|
+
case 1:
|
|
59
|
+
message.minter = Minter.decode(reader, reader.uint32());
|
|
60
|
+
break;
|
|
61
|
+
case 2:
|
|
62
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
63
|
+
break;
|
|
64
|
+
default:
|
|
65
|
+
reader.skipType(tag & 7);
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return message;
|
|
70
|
+
},
|
|
71
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState {
|
|
72
|
+
const message = createBaseGenesisState();
|
|
73
|
+
message.minter = object.minter !== undefined && object.minter !== null ? Minter.fromPartial(object.minter) : undefined;
|
|
74
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
75
|
+
return message;
|
|
76
|
+
},
|
|
77
|
+
fromAmino(object: GenesisStateAmino): GenesisState {
|
|
78
|
+
const message = createBaseGenesisState();
|
|
79
|
+
if (object.minter !== undefined && object.minter !== null) {
|
|
80
|
+
message.minter = Minter.fromAmino(object.minter);
|
|
81
|
+
}
|
|
82
|
+
if (object.params !== undefined && object.params !== null) {
|
|
83
|
+
message.params = Params.fromAmino(object.params);
|
|
84
|
+
}
|
|
85
|
+
return message;
|
|
86
|
+
},
|
|
87
|
+
toAmino(message: GenesisState): GenesisStateAmino {
|
|
88
|
+
const obj: any = {};
|
|
89
|
+
obj.minter = message.minter ? Minter.toAmino(message.minter) : Minter.toAmino(Minter.fromPartial({}));
|
|
90
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
fromAminoMsg(object: GenesisStateAminoMsg): GenesisState {
|
|
94
|
+
return GenesisState.fromAmino(object.value);
|
|
95
|
+
},
|
|
96
|
+
toAminoMsg(message: GenesisState): GenesisStateAminoMsg {
|
|
97
|
+
return {
|
|
98
|
+
type: "cosmos-sdk/GenesisState",
|
|
99
|
+
value: GenesisState.toAmino(message)
|
|
100
|
+
};
|
|
101
|
+
},
|
|
102
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState {
|
|
103
|
+
return GenesisState.decode(message.value);
|
|
104
|
+
},
|
|
105
|
+
toProto(message: GenesisState): Uint8Array {
|
|
106
|
+
return GenesisState.encode(message).finish();
|
|
107
|
+
},
|
|
108
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg {
|
|
109
|
+
return {
|
|
110
|
+
typeUrl: "/cosmos.mint.v1beta1.GenesisState",
|
|
111
|
+
value: GenesisState.encode(message).finish()
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
GlobalDecoderRegistry.register(GenesisState.typeUrl, GenesisState);
|
|
116
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(GenesisState.aminoType, GenesisState.typeUrl);
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
|
+
/** Minter represents the minting state. */
|
|
5
|
+
export interface Minter {
|
|
6
|
+
/** current annual inflation rate */
|
|
7
|
+
inflation: string;
|
|
8
|
+
/** current annual expected provisions */
|
|
9
|
+
annualProvisions: string;
|
|
10
|
+
}
|
|
11
|
+
export interface MinterProtoMsg {
|
|
12
|
+
typeUrl: "/cosmos.mint.v1beta1.Minter";
|
|
13
|
+
value: Uint8Array;
|
|
14
|
+
}
|
|
15
|
+
/** Minter represents the minting state. */
|
|
16
|
+
export interface MinterAmino {
|
|
17
|
+
/** current annual inflation rate */
|
|
18
|
+
inflation: string;
|
|
19
|
+
/** current annual expected provisions */
|
|
20
|
+
annual_provisions: string;
|
|
21
|
+
}
|
|
22
|
+
export interface MinterAminoMsg {
|
|
23
|
+
type: "cosmos-sdk/Minter";
|
|
24
|
+
value: MinterAmino;
|
|
25
|
+
}
|
|
26
|
+
/** Params defines the parameters for the x/mint module. */
|
|
27
|
+
export interface Params {
|
|
28
|
+
/** type of coin to mint */
|
|
29
|
+
mintDenom: string;
|
|
30
|
+
/** maximum annual change in inflation rate */
|
|
31
|
+
inflationRateChange: string;
|
|
32
|
+
/** maximum inflation rate */
|
|
33
|
+
inflationMax: string;
|
|
34
|
+
/** minimum inflation rate */
|
|
35
|
+
inflationMin: string;
|
|
36
|
+
/** goal of percent bonded atoms */
|
|
37
|
+
goalBonded: string;
|
|
38
|
+
/** expected blocks per year */
|
|
39
|
+
blocksPerYear: bigint;
|
|
40
|
+
}
|
|
41
|
+
export interface ParamsProtoMsg {
|
|
42
|
+
typeUrl: "/cosmos.mint.v1beta1.Params";
|
|
43
|
+
value: Uint8Array;
|
|
44
|
+
}
|
|
45
|
+
/** Params defines the parameters for the x/mint module. */
|
|
46
|
+
export interface ParamsAmino {
|
|
47
|
+
/** type of coin to mint */
|
|
48
|
+
mint_denom: string;
|
|
49
|
+
/** maximum annual change in inflation rate */
|
|
50
|
+
inflation_rate_change: string;
|
|
51
|
+
/** maximum inflation rate */
|
|
52
|
+
inflation_max: string;
|
|
53
|
+
/** minimum inflation rate */
|
|
54
|
+
inflation_min: string;
|
|
55
|
+
/** goal of percent bonded atoms */
|
|
56
|
+
goal_bonded: string;
|
|
57
|
+
/** expected blocks per year */
|
|
58
|
+
blocks_per_year: string;
|
|
59
|
+
}
|
|
60
|
+
export interface ParamsAminoMsg {
|
|
61
|
+
type: "cosmos-sdk/x/mint/Params";
|
|
62
|
+
value: ParamsAmino;
|
|
63
|
+
}
|
|
64
|
+
function createBaseMinter(): Minter {
|
|
65
|
+
return {
|
|
66
|
+
inflation: "",
|
|
67
|
+
annualProvisions: ""
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export const Minter = {
|
|
71
|
+
typeUrl: "/cosmos.mint.v1beta1.Minter",
|
|
72
|
+
aminoType: "cosmos-sdk/Minter",
|
|
73
|
+
is(o: any): o is Minter {
|
|
74
|
+
return o && (o.$typeUrl === Minter.typeUrl || typeof o.inflation === "string" && typeof o.annualProvisions === "string");
|
|
75
|
+
},
|
|
76
|
+
isAmino(o: any): o is MinterAmino {
|
|
77
|
+
return o && (o.$typeUrl === Minter.typeUrl || typeof o.inflation === "string" && typeof o.annual_provisions === "string");
|
|
78
|
+
},
|
|
79
|
+
encode(message: Minter, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
80
|
+
if (message.inflation !== "") {
|
|
81
|
+
writer.uint32(10).string(message.inflation);
|
|
82
|
+
}
|
|
83
|
+
if (message.annualProvisions !== "") {
|
|
84
|
+
writer.uint32(18).string(message.annualProvisions);
|
|
85
|
+
}
|
|
86
|
+
return writer;
|
|
87
|
+
},
|
|
88
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Minter {
|
|
89
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
90
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
91
|
+
const message = createBaseMinter();
|
|
92
|
+
while (reader.pos < end) {
|
|
93
|
+
const tag = reader.uint32();
|
|
94
|
+
switch (tag >>> 3) {
|
|
95
|
+
case 1:
|
|
96
|
+
message.inflation = reader.string();
|
|
97
|
+
break;
|
|
98
|
+
case 2:
|
|
99
|
+
message.annualProvisions = reader.string();
|
|
100
|
+
break;
|
|
101
|
+
default:
|
|
102
|
+
reader.skipType(tag & 7);
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return message;
|
|
107
|
+
},
|
|
108
|
+
fromPartial(object: DeepPartial<Minter>): Minter {
|
|
109
|
+
const message = createBaseMinter();
|
|
110
|
+
message.inflation = object.inflation ?? "";
|
|
111
|
+
message.annualProvisions = object.annualProvisions ?? "";
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
fromAmino(object: MinterAmino): Minter {
|
|
115
|
+
const message = createBaseMinter();
|
|
116
|
+
if (object.inflation !== undefined && object.inflation !== null) {
|
|
117
|
+
message.inflation = object.inflation;
|
|
118
|
+
}
|
|
119
|
+
if (object.annual_provisions !== undefined && object.annual_provisions !== null) {
|
|
120
|
+
message.annualProvisions = object.annual_provisions;
|
|
121
|
+
}
|
|
122
|
+
return message;
|
|
123
|
+
},
|
|
124
|
+
toAmino(message: Minter): MinterAmino {
|
|
125
|
+
const obj: any = {};
|
|
126
|
+
obj.inflation = message.inflation === "" ? undefined : message.inflation;
|
|
127
|
+
obj.annual_provisions = message.annualProvisions === "" ? undefined : message.annualProvisions;
|
|
128
|
+
return obj;
|
|
129
|
+
},
|
|
130
|
+
fromAminoMsg(object: MinterAminoMsg): Minter {
|
|
131
|
+
return Minter.fromAmino(object.value);
|
|
132
|
+
},
|
|
133
|
+
toAminoMsg(message: Minter): MinterAminoMsg {
|
|
134
|
+
return {
|
|
135
|
+
type: "cosmos-sdk/Minter",
|
|
136
|
+
value: Minter.toAmino(message)
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
fromProtoMsg(message: MinterProtoMsg): Minter {
|
|
140
|
+
return Minter.decode(message.value);
|
|
141
|
+
},
|
|
142
|
+
toProto(message: Minter): Uint8Array {
|
|
143
|
+
return Minter.encode(message).finish();
|
|
144
|
+
},
|
|
145
|
+
toProtoMsg(message: Minter): MinterProtoMsg {
|
|
146
|
+
return {
|
|
147
|
+
typeUrl: "/cosmos.mint.v1beta1.Minter",
|
|
148
|
+
value: Minter.encode(message).finish()
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
GlobalDecoderRegistry.register(Minter.typeUrl, Minter);
|
|
153
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Minter.aminoType, Minter.typeUrl);
|
|
154
|
+
function createBaseParams(): Params {
|
|
155
|
+
return {
|
|
156
|
+
mintDenom: "",
|
|
157
|
+
inflationRateChange: "",
|
|
158
|
+
inflationMax: "",
|
|
159
|
+
inflationMin: "",
|
|
160
|
+
goalBonded: "",
|
|
161
|
+
blocksPerYear: BigInt(0)
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
export const Params = {
|
|
165
|
+
typeUrl: "/cosmos.mint.v1beta1.Params",
|
|
166
|
+
aminoType: "cosmos-sdk/x/mint/Params",
|
|
167
|
+
is(o: any): o is Params {
|
|
168
|
+
return o && (o.$typeUrl === Params.typeUrl || typeof o.mintDenom === "string" && typeof o.inflationRateChange === "string" && typeof o.inflationMax === "string" && typeof o.inflationMin === "string" && typeof o.goalBonded === "string" && typeof o.blocksPerYear === "bigint");
|
|
169
|
+
},
|
|
170
|
+
isAmino(o: any): o is ParamsAmino {
|
|
171
|
+
return o && (o.$typeUrl === Params.typeUrl || typeof o.mint_denom === "string" && typeof o.inflation_rate_change === "string" && typeof o.inflation_max === "string" && typeof o.inflation_min === "string" && typeof o.goal_bonded === "string" && typeof o.blocks_per_year === "bigint");
|
|
172
|
+
},
|
|
173
|
+
encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
174
|
+
if (message.mintDenom !== "") {
|
|
175
|
+
writer.uint32(10).string(message.mintDenom);
|
|
176
|
+
}
|
|
177
|
+
if (message.inflationRateChange !== "") {
|
|
178
|
+
writer.uint32(18).string(message.inflationRateChange);
|
|
179
|
+
}
|
|
180
|
+
if (message.inflationMax !== "") {
|
|
181
|
+
writer.uint32(26).string(message.inflationMax);
|
|
182
|
+
}
|
|
183
|
+
if (message.inflationMin !== "") {
|
|
184
|
+
writer.uint32(34).string(message.inflationMin);
|
|
185
|
+
}
|
|
186
|
+
if (message.goalBonded !== "") {
|
|
187
|
+
writer.uint32(42).string(message.goalBonded);
|
|
188
|
+
}
|
|
189
|
+
if (message.blocksPerYear !== BigInt(0)) {
|
|
190
|
+
writer.uint32(48).uint64(message.blocksPerYear);
|
|
191
|
+
}
|
|
192
|
+
return writer;
|
|
193
|
+
},
|
|
194
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params {
|
|
195
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
196
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
197
|
+
const message = createBaseParams();
|
|
198
|
+
while (reader.pos < end) {
|
|
199
|
+
const tag = reader.uint32();
|
|
200
|
+
switch (tag >>> 3) {
|
|
201
|
+
case 1:
|
|
202
|
+
message.mintDenom = reader.string();
|
|
203
|
+
break;
|
|
204
|
+
case 2:
|
|
205
|
+
message.inflationRateChange = reader.string();
|
|
206
|
+
break;
|
|
207
|
+
case 3:
|
|
208
|
+
message.inflationMax = reader.string();
|
|
209
|
+
break;
|
|
210
|
+
case 4:
|
|
211
|
+
message.inflationMin = reader.string();
|
|
212
|
+
break;
|
|
213
|
+
case 5:
|
|
214
|
+
message.goalBonded = reader.string();
|
|
215
|
+
break;
|
|
216
|
+
case 6:
|
|
217
|
+
message.blocksPerYear = reader.uint64();
|
|
218
|
+
break;
|
|
219
|
+
default:
|
|
220
|
+
reader.skipType(tag & 7);
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return message;
|
|
225
|
+
},
|
|
226
|
+
fromPartial(object: DeepPartial<Params>): Params {
|
|
227
|
+
const message = createBaseParams();
|
|
228
|
+
message.mintDenom = object.mintDenom ?? "";
|
|
229
|
+
message.inflationRateChange = object.inflationRateChange ?? "";
|
|
230
|
+
message.inflationMax = object.inflationMax ?? "";
|
|
231
|
+
message.inflationMin = object.inflationMin ?? "";
|
|
232
|
+
message.goalBonded = object.goalBonded ?? "";
|
|
233
|
+
message.blocksPerYear = object.blocksPerYear !== undefined && object.blocksPerYear !== null ? BigInt(object.blocksPerYear.toString()) : BigInt(0);
|
|
234
|
+
return message;
|
|
235
|
+
},
|
|
236
|
+
fromAmino(object: ParamsAmino): Params {
|
|
237
|
+
const message = createBaseParams();
|
|
238
|
+
if (object.mint_denom !== undefined && object.mint_denom !== null) {
|
|
239
|
+
message.mintDenom = object.mint_denom;
|
|
240
|
+
}
|
|
241
|
+
if (object.inflation_rate_change !== undefined && object.inflation_rate_change !== null) {
|
|
242
|
+
message.inflationRateChange = object.inflation_rate_change;
|
|
243
|
+
}
|
|
244
|
+
if (object.inflation_max !== undefined && object.inflation_max !== null) {
|
|
245
|
+
message.inflationMax = object.inflation_max;
|
|
246
|
+
}
|
|
247
|
+
if (object.inflation_min !== undefined && object.inflation_min !== null) {
|
|
248
|
+
message.inflationMin = object.inflation_min;
|
|
249
|
+
}
|
|
250
|
+
if (object.goal_bonded !== undefined && object.goal_bonded !== null) {
|
|
251
|
+
message.goalBonded = object.goal_bonded;
|
|
252
|
+
}
|
|
253
|
+
if (object.blocks_per_year !== undefined && object.blocks_per_year !== null) {
|
|
254
|
+
message.blocksPerYear = BigInt(object.blocks_per_year);
|
|
255
|
+
}
|
|
256
|
+
return message;
|
|
257
|
+
},
|
|
258
|
+
toAmino(message: Params): ParamsAmino {
|
|
259
|
+
const obj: any = {};
|
|
260
|
+
obj.mint_denom = message.mintDenom === "" ? undefined : message.mintDenom;
|
|
261
|
+
obj.inflation_rate_change = message.inflationRateChange ?? "";
|
|
262
|
+
obj.inflation_max = message.inflationMax ?? "";
|
|
263
|
+
obj.inflation_min = message.inflationMin ?? "";
|
|
264
|
+
obj.goal_bonded = message.goalBonded ?? "";
|
|
265
|
+
obj.blocks_per_year = message.blocksPerYear !== BigInt(0) ? message.blocksPerYear?.toString() : undefined;
|
|
266
|
+
return obj;
|
|
267
|
+
},
|
|
268
|
+
fromAminoMsg(object: ParamsAminoMsg): Params {
|
|
269
|
+
return Params.fromAmino(object.value);
|
|
270
|
+
},
|
|
271
|
+
toAminoMsg(message: Params): ParamsAminoMsg {
|
|
272
|
+
return {
|
|
273
|
+
type: "cosmos-sdk/x/mint/Params",
|
|
274
|
+
value: Params.toAmino(message)
|
|
275
|
+
};
|
|
276
|
+
},
|
|
277
|
+
fromProtoMsg(message: ParamsProtoMsg): Params {
|
|
278
|
+
return Params.decode(message.value);
|
|
279
|
+
},
|
|
280
|
+
toProto(message: Params): Uint8Array {
|
|
281
|
+
return Params.encode(message).finish();
|
|
282
|
+
},
|
|
283
|
+
toProtoMsg(message: Params): ParamsProtoMsg {
|
|
284
|
+
return {
|
|
285
|
+
typeUrl: "/cosmos.mint.v1beta1.Params",
|
|
286
|
+
value: Params.encode(message).finish()
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
GlobalDecoderRegistry.register(Params.typeUrl, Params);
|
|
291
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { RpcResolver, buildQuery } from "../../../helper-func-types";
|
|
2
|
+
import { buildUseQuery } from "../../../react-query";
|
|
3
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryInflationRequest, QueryInflationResponse, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse } from "./query";
|
|
4
|
+
export const createGetParams = (clientResolver?: RpcResolver) => buildQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
5
|
+
encode: QueryParamsRequest.encode,
|
|
6
|
+
decode: QueryParamsResponse.decode,
|
|
7
|
+
service: "cosmos.mint.v1beta1.Query",
|
|
8
|
+
method: "Params",
|
|
9
|
+
clientResolver
|
|
10
|
+
});
|
|
11
|
+
export const useGetParams = buildUseQuery<QueryParamsRequest, QueryParamsResponse>({
|
|
12
|
+
builderQueryFn: createGetParams,
|
|
13
|
+
queryKeyPrefix: "ParamsQuery"
|
|
14
|
+
});
|
|
15
|
+
export const createGetInflation = (clientResolver?: RpcResolver) => buildQuery<QueryInflationRequest, QueryInflationResponse>({
|
|
16
|
+
encode: QueryInflationRequest.encode,
|
|
17
|
+
decode: QueryInflationResponse.decode,
|
|
18
|
+
service: "cosmos.mint.v1beta1.Query",
|
|
19
|
+
method: "Inflation",
|
|
20
|
+
clientResolver
|
|
21
|
+
});
|
|
22
|
+
export const useGetInflation = buildUseQuery<QueryInflationRequest, QueryInflationResponse>({
|
|
23
|
+
builderQueryFn: createGetInflation,
|
|
24
|
+
queryKeyPrefix: "InflationQuery"
|
|
25
|
+
});
|
|
26
|
+
export const createGetAnnualProvisions = (clientResolver?: RpcResolver) => buildQuery<QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse>({
|
|
27
|
+
encode: QueryAnnualProvisionsRequest.encode,
|
|
28
|
+
decode: QueryAnnualProvisionsResponse.decode,
|
|
29
|
+
service: "cosmos.mint.v1beta1.Query",
|
|
30
|
+
method: "AnnualProvisions",
|
|
31
|
+
clientResolver
|
|
32
|
+
});
|
|
33
|
+
export const useGetAnnualProvisions = buildUseQuery<QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse>({
|
|
34
|
+
builderQueryFn: createGetAnnualProvisions,
|
|
35
|
+
queryKeyPrefix: "AnnualProvisionsQuery"
|
|
36
|
+
});
|