@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,591 @@
|
|
|
1
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
2
|
+
import { Any, AnyAmino } from "../../../google/protobuf/any";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { toTimestamp, fromTimestamp, DeepPartial } from "../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
|
+
/** Plan specifies information about a planned upgrade and when it should occur. */
|
|
7
|
+
export interface Plan {
|
|
8
|
+
/**
|
|
9
|
+
* Sets the name for the upgrade. This name will be used by the upgraded
|
|
10
|
+
* version of the software to apply any special "on-upgrade" commands during
|
|
11
|
+
* the first BeginBlock method after the upgrade is applied. It is also used
|
|
12
|
+
* to detect whether a software version can handle a given upgrade. If no
|
|
13
|
+
* upgrade handler with this name has been set in the software, it will be
|
|
14
|
+
* assumed that the software is out-of-date when the upgrade Time or Height is
|
|
15
|
+
* reached and the software will exit.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Deprecated: Time based upgrades have been deprecated. Time based upgrade logic
|
|
20
|
+
* has been removed from the SDK.
|
|
21
|
+
* If this field is not empty, an error will be thrown.
|
|
22
|
+
*/
|
|
23
|
+
/** @deprecated */
|
|
24
|
+
time: Date;
|
|
25
|
+
/** The height at which the upgrade must be performed. */
|
|
26
|
+
height: bigint;
|
|
27
|
+
/**
|
|
28
|
+
* Any application specific upgrade info to be included on-chain
|
|
29
|
+
* such as a git commit that validators could automatically upgrade to
|
|
30
|
+
*/
|
|
31
|
+
info: string;
|
|
32
|
+
/**
|
|
33
|
+
* Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been
|
|
34
|
+
* moved to the IBC module in the sub module 02-client.
|
|
35
|
+
* If this field is not empty, an error will be thrown.
|
|
36
|
+
*/
|
|
37
|
+
/** @deprecated */
|
|
38
|
+
upgradedClientState?: Any;
|
|
39
|
+
}
|
|
40
|
+
export interface PlanProtoMsg {
|
|
41
|
+
typeUrl: "/cosmos.upgrade.v1beta1.Plan";
|
|
42
|
+
value: Uint8Array;
|
|
43
|
+
}
|
|
44
|
+
/** Plan specifies information about a planned upgrade and when it should occur. */
|
|
45
|
+
export interface PlanAmino {
|
|
46
|
+
/**
|
|
47
|
+
* Sets the name for the upgrade. This name will be used by the upgraded
|
|
48
|
+
* version of the software to apply any special "on-upgrade" commands during
|
|
49
|
+
* the first BeginBlock method after the upgrade is applied. It is also used
|
|
50
|
+
* to detect whether a software version can handle a given upgrade. If no
|
|
51
|
+
* upgrade handler with this name has been set in the software, it will be
|
|
52
|
+
* assumed that the software is out-of-date when the upgrade Time or Height is
|
|
53
|
+
* reached and the software will exit.
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
/**
|
|
57
|
+
* Deprecated: Time based upgrades have been deprecated. Time based upgrade logic
|
|
58
|
+
* has been removed from the SDK.
|
|
59
|
+
* If this field is not empty, an error will be thrown.
|
|
60
|
+
*/
|
|
61
|
+
/** @deprecated */
|
|
62
|
+
time: string;
|
|
63
|
+
/** The height at which the upgrade must be performed. */
|
|
64
|
+
height: string;
|
|
65
|
+
/**
|
|
66
|
+
* Any application specific upgrade info to be included on-chain
|
|
67
|
+
* such as a git commit that validators could automatically upgrade to
|
|
68
|
+
*/
|
|
69
|
+
info: string;
|
|
70
|
+
/**
|
|
71
|
+
* Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been
|
|
72
|
+
* moved to the IBC module in the sub module 02-client.
|
|
73
|
+
* If this field is not empty, an error will be thrown.
|
|
74
|
+
*/
|
|
75
|
+
/** @deprecated */
|
|
76
|
+
upgraded_client_state?: AnyAmino;
|
|
77
|
+
}
|
|
78
|
+
export interface PlanAminoMsg {
|
|
79
|
+
type: "cosmos-sdk/Plan";
|
|
80
|
+
value: PlanAmino;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* SoftwareUpgradeProposal is a gov Content type for initiating a software
|
|
84
|
+
* upgrade.
|
|
85
|
+
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
|
|
86
|
+
* proposals, see MsgSoftwareUpgrade.
|
|
87
|
+
*/
|
|
88
|
+
/** @deprecated */
|
|
89
|
+
export interface SoftwareUpgradeProposal {
|
|
90
|
+
/** title of the proposal */
|
|
91
|
+
title: string;
|
|
92
|
+
/** description of the proposal */
|
|
93
|
+
description: string;
|
|
94
|
+
/** plan of the proposal */
|
|
95
|
+
plan: Plan;
|
|
96
|
+
}
|
|
97
|
+
export interface SoftwareUpgradeProposalProtoMsg {
|
|
98
|
+
typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal";
|
|
99
|
+
value: Uint8Array;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* SoftwareUpgradeProposal is a gov Content type for initiating a software
|
|
103
|
+
* upgrade.
|
|
104
|
+
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
|
|
105
|
+
* proposals, see MsgSoftwareUpgrade.
|
|
106
|
+
*/
|
|
107
|
+
/** @deprecated */
|
|
108
|
+
export interface SoftwareUpgradeProposalAmino {
|
|
109
|
+
/** title of the proposal */
|
|
110
|
+
title: string;
|
|
111
|
+
/** description of the proposal */
|
|
112
|
+
description: string;
|
|
113
|
+
/** plan of the proposal */
|
|
114
|
+
plan: PlanAmino;
|
|
115
|
+
}
|
|
116
|
+
export interface SoftwareUpgradeProposalAminoMsg {
|
|
117
|
+
type: "cosmos-sdk/SoftwareUpgradeProposal";
|
|
118
|
+
value: SoftwareUpgradeProposalAmino;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
|
|
122
|
+
* upgrade.
|
|
123
|
+
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
|
|
124
|
+
* proposals, see MsgCancelUpgrade.
|
|
125
|
+
*/
|
|
126
|
+
/** @deprecated */
|
|
127
|
+
export interface CancelSoftwareUpgradeProposal {
|
|
128
|
+
/** title of the proposal */
|
|
129
|
+
title: string;
|
|
130
|
+
/** description of the proposal */
|
|
131
|
+
description: string;
|
|
132
|
+
}
|
|
133
|
+
export interface CancelSoftwareUpgradeProposalProtoMsg {
|
|
134
|
+
typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal";
|
|
135
|
+
value: Uint8Array;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
|
|
139
|
+
* upgrade.
|
|
140
|
+
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
|
|
141
|
+
* proposals, see MsgCancelUpgrade.
|
|
142
|
+
*/
|
|
143
|
+
/** @deprecated */
|
|
144
|
+
export interface CancelSoftwareUpgradeProposalAmino {
|
|
145
|
+
/** title of the proposal */
|
|
146
|
+
title: string;
|
|
147
|
+
/** description of the proposal */
|
|
148
|
+
description: string;
|
|
149
|
+
}
|
|
150
|
+
export interface CancelSoftwareUpgradeProposalAminoMsg {
|
|
151
|
+
type: "cosmos-sdk/CancelSoftwareUpgradeProposal";
|
|
152
|
+
value: CancelSoftwareUpgradeProposalAmino;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* ModuleVersion specifies a module and its consensus version.
|
|
156
|
+
*
|
|
157
|
+
* Since: cosmos-sdk 0.43
|
|
158
|
+
*/
|
|
159
|
+
export interface ModuleVersion {
|
|
160
|
+
/** name of the app module */
|
|
161
|
+
name: string;
|
|
162
|
+
/** consensus version of the app module */
|
|
163
|
+
version: bigint;
|
|
164
|
+
}
|
|
165
|
+
export interface ModuleVersionProtoMsg {
|
|
166
|
+
typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion";
|
|
167
|
+
value: Uint8Array;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* ModuleVersion specifies a module and its consensus version.
|
|
171
|
+
*
|
|
172
|
+
* Since: cosmos-sdk 0.43
|
|
173
|
+
*/
|
|
174
|
+
export interface ModuleVersionAmino {
|
|
175
|
+
/** name of the app module */
|
|
176
|
+
name: string;
|
|
177
|
+
/** consensus version of the app module */
|
|
178
|
+
version: string;
|
|
179
|
+
}
|
|
180
|
+
export interface ModuleVersionAminoMsg {
|
|
181
|
+
type: "cosmos-sdk/ModuleVersion";
|
|
182
|
+
value: ModuleVersionAmino;
|
|
183
|
+
}
|
|
184
|
+
function createBasePlan(): Plan {
|
|
185
|
+
return {
|
|
186
|
+
name: "",
|
|
187
|
+
time: new Date(),
|
|
188
|
+
height: BigInt(0),
|
|
189
|
+
info: "",
|
|
190
|
+
upgradedClientState: undefined
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
export const Plan = {
|
|
194
|
+
typeUrl: "/cosmos.upgrade.v1beta1.Plan",
|
|
195
|
+
aminoType: "cosmos-sdk/Plan",
|
|
196
|
+
is(o: any): o is Plan {
|
|
197
|
+
return o && (o.$typeUrl === Plan.typeUrl || typeof o.name === "string" && Timestamp.is(o.time) && typeof o.height === "bigint" && typeof o.info === "string");
|
|
198
|
+
},
|
|
199
|
+
isAmino(o: any): o is PlanAmino {
|
|
200
|
+
return o && (o.$typeUrl === Plan.typeUrl || typeof o.name === "string" && Timestamp.isAmino(o.time) && typeof o.height === "bigint" && typeof o.info === "string");
|
|
201
|
+
},
|
|
202
|
+
encode(message: Plan, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
203
|
+
if (message.name !== "") {
|
|
204
|
+
writer.uint32(10).string(message.name);
|
|
205
|
+
}
|
|
206
|
+
if (message.time !== undefined) {
|
|
207
|
+
Timestamp.encode(toTimestamp(message.time), writer.uint32(18).fork()).ldelim();
|
|
208
|
+
}
|
|
209
|
+
if (message.height !== BigInt(0)) {
|
|
210
|
+
writer.uint32(24).int64(message.height);
|
|
211
|
+
}
|
|
212
|
+
if (message.info !== "") {
|
|
213
|
+
writer.uint32(34).string(message.info);
|
|
214
|
+
}
|
|
215
|
+
if (message.upgradedClientState !== undefined) {
|
|
216
|
+
Any.encode(message.upgradedClientState, writer.uint32(42).fork()).ldelim();
|
|
217
|
+
}
|
|
218
|
+
return writer;
|
|
219
|
+
},
|
|
220
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Plan {
|
|
221
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
222
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
223
|
+
const message = createBasePlan();
|
|
224
|
+
while (reader.pos < end) {
|
|
225
|
+
const tag = reader.uint32();
|
|
226
|
+
switch (tag >>> 3) {
|
|
227
|
+
case 1:
|
|
228
|
+
message.name = reader.string();
|
|
229
|
+
break;
|
|
230
|
+
case 2:
|
|
231
|
+
message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
232
|
+
break;
|
|
233
|
+
case 3:
|
|
234
|
+
message.height = reader.int64();
|
|
235
|
+
break;
|
|
236
|
+
case 4:
|
|
237
|
+
message.info = reader.string();
|
|
238
|
+
break;
|
|
239
|
+
case 5:
|
|
240
|
+
message.upgradedClientState = Any.decode(reader, reader.uint32());
|
|
241
|
+
break;
|
|
242
|
+
default:
|
|
243
|
+
reader.skipType(tag & 7);
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return message;
|
|
248
|
+
},
|
|
249
|
+
fromPartial(object: DeepPartial<Plan>): Plan {
|
|
250
|
+
const message = createBasePlan();
|
|
251
|
+
message.name = object.name ?? "";
|
|
252
|
+
message.time = object.time ?? undefined;
|
|
253
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
254
|
+
message.info = object.info ?? "";
|
|
255
|
+
message.upgradedClientState = object.upgradedClientState !== undefined && object.upgradedClientState !== null ? Any.fromPartial(object.upgradedClientState) : undefined;
|
|
256
|
+
return message;
|
|
257
|
+
},
|
|
258
|
+
fromAmino(object: PlanAmino): Plan {
|
|
259
|
+
const message = createBasePlan();
|
|
260
|
+
if (object.name !== undefined && object.name !== null) {
|
|
261
|
+
message.name = object.name;
|
|
262
|
+
}
|
|
263
|
+
if (object.time !== undefined && object.time !== null) {
|
|
264
|
+
message.time = fromTimestamp(Timestamp.fromAmino(object.time));
|
|
265
|
+
}
|
|
266
|
+
if (object.height !== undefined && object.height !== null) {
|
|
267
|
+
message.height = BigInt(object.height);
|
|
268
|
+
}
|
|
269
|
+
if (object.info !== undefined && object.info !== null) {
|
|
270
|
+
message.info = object.info;
|
|
271
|
+
}
|
|
272
|
+
if (object.upgraded_client_state !== undefined && object.upgraded_client_state !== null) {
|
|
273
|
+
message.upgradedClientState = Any.fromAmino(object.upgraded_client_state);
|
|
274
|
+
}
|
|
275
|
+
return message;
|
|
276
|
+
},
|
|
277
|
+
toAmino(message: Plan): PlanAmino {
|
|
278
|
+
const obj: any = {};
|
|
279
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
280
|
+
obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : new Date();
|
|
281
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
282
|
+
obj.info = message.info === "" ? undefined : message.info;
|
|
283
|
+
obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined;
|
|
284
|
+
return obj;
|
|
285
|
+
},
|
|
286
|
+
fromAminoMsg(object: PlanAminoMsg): Plan {
|
|
287
|
+
return Plan.fromAmino(object.value);
|
|
288
|
+
},
|
|
289
|
+
toAminoMsg(message: Plan): PlanAminoMsg {
|
|
290
|
+
return {
|
|
291
|
+
type: "cosmos-sdk/Plan",
|
|
292
|
+
value: Plan.toAmino(message)
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
fromProtoMsg(message: PlanProtoMsg): Plan {
|
|
296
|
+
return Plan.decode(message.value);
|
|
297
|
+
},
|
|
298
|
+
toProto(message: Plan): Uint8Array {
|
|
299
|
+
return Plan.encode(message).finish();
|
|
300
|
+
},
|
|
301
|
+
toProtoMsg(message: Plan): PlanProtoMsg {
|
|
302
|
+
return {
|
|
303
|
+
typeUrl: "/cosmos.upgrade.v1beta1.Plan",
|
|
304
|
+
value: Plan.encode(message).finish()
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
GlobalDecoderRegistry.register(Plan.typeUrl, Plan);
|
|
309
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Plan.aminoType, Plan.typeUrl);
|
|
310
|
+
function createBaseSoftwareUpgradeProposal(): SoftwareUpgradeProposal {
|
|
311
|
+
return {
|
|
312
|
+
title: "",
|
|
313
|
+
description: "",
|
|
314
|
+
plan: Plan.fromPartial({})
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
export const SoftwareUpgradeProposal = {
|
|
318
|
+
typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",
|
|
319
|
+
aminoType: "cosmos-sdk/SoftwareUpgradeProposal",
|
|
320
|
+
is(o: any): o is SoftwareUpgradeProposal {
|
|
321
|
+
return o && (o.$typeUrl === SoftwareUpgradeProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Plan.is(o.plan));
|
|
322
|
+
},
|
|
323
|
+
isAmino(o: any): o is SoftwareUpgradeProposalAmino {
|
|
324
|
+
return o && (o.$typeUrl === SoftwareUpgradeProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string" && Plan.isAmino(o.plan));
|
|
325
|
+
},
|
|
326
|
+
encode(message: SoftwareUpgradeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
327
|
+
if (message.title !== "") {
|
|
328
|
+
writer.uint32(10).string(message.title);
|
|
329
|
+
}
|
|
330
|
+
if (message.description !== "") {
|
|
331
|
+
writer.uint32(18).string(message.description);
|
|
332
|
+
}
|
|
333
|
+
if (message.plan !== undefined) {
|
|
334
|
+
Plan.encode(message.plan, writer.uint32(26).fork()).ldelim();
|
|
335
|
+
}
|
|
336
|
+
return writer;
|
|
337
|
+
},
|
|
338
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SoftwareUpgradeProposal {
|
|
339
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
340
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
341
|
+
const message = createBaseSoftwareUpgradeProposal();
|
|
342
|
+
while (reader.pos < end) {
|
|
343
|
+
const tag = reader.uint32();
|
|
344
|
+
switch (tag >>> 3) {
|
|
345
|
+
case 1:
|
|
346
|
+
message.title = reader.string();
|
|
347
|
+
break;
|
|
348
|
+
case 2:
|
|
349
|
+
message.description = reader.string();
|
|
350
|
+
break;
|
|
351
|
+
case 3:
|
|
352
|
+
message.plan = Plan.decode(reader, reader.uint32());
|
|
353
|
+
break;
|
|
354
|
+
default:
|
|
355
|
+
reader.skipType(tag & 7);
|
|
356
|
+
break;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
return message;
|
|
360
|
+
},
|
|
361
|
+
fromPartial(object: DeepPartial<SoftwareUpgradeProposal>): SoftwareUpgradeProposal {
|
|
362
|
+
const message = createBaseSoftwareUpgradeProposal();
|
|
363
|
+
message.title = object.title ?? "";
|
|
364
|
+
message.description = object.description ?? "";
|
|
365
|
+
message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined;
|
|
366
|
+
return message;
|
|
367
|
+
},
|
|
368
|
+
fromAmino(object: SoftwareUpgradeProposalAmino): SoftwareUpgradeProposal {
|
|
369
|
+
const message = createBaseSoftwareUpgradeProposal();
|
|
370
|
+
if (object.title !== undefined && object.title !== null) {
|
|
371
|
+
message.title = object.title;
|
|
372
|
+
}
|
|
373
|
+
if (object.description !== undefined && object.description !== null) {
|
|
374
|
+
message.description = object.description;
|
|
375
|
+
}
|
|
376
|
+
if (object.plan !== undefined && object.plan !== null) {
|
|
377
|
+
message.plan = Plan.fromAmino(object.plan);
|
|
378
|
+
}
|
|
379
|
+
return message;
|
|
380
|
+
},
|
|
381
|
+
toAmino(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAmino {
|
|
382
|
+
const obj: any = {};
|
|
383
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
384
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
385
|
+
obj.plan = message.plan ? Plan.toAmino(message.plan) : Plan.toAmino(Plan.fromPartial({}));
|
|
386
|
+
return obj;
|
|
387
|
+
},
|
|
388
|
+
fromAminoMsg(object: SoftwareUpgradeProposalAminoMsg): SoftwareUpgradeProposal {
|
|
389
|
+
return SoftwareUpgradeProposal.fromAmino(object.value);
|
|
390
|
+
},
|
|
391
|
+
toAminoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAminoMsg {
|
|
392
|
+
return {
|
|
393
|
+
type: "cosmos-sdk/SoftwareUpgradeProposal",
|
|
394
|
+
value: SoftwareUpgradeProposal.toAmino(message)
|
|
395
|
+
};
|
|
396
|
+
},
|
|
397
|
+
fromProtoMsg(message: SoftwareUpgradeProposalProtoMsg): SoftwareUpgradeProposal {
|
|
398
|
+
return SoftwareUpgradeProposal.decode(message.value);
|
|
399
|
+
},
|
|
400
|
+
toProto(message: SoftwareUpgradeProposal): Uint8Array {
|
|
401
|
+
return SoftwareUpgradeProposal.encode(message).finish();
|
|
402
|
+
},
|
|
403
|
+
toProtoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalProtoMsg {
|
|
404
|
+
return {
|
|
405
|
+
typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",
|
|
406
|
+
value: SoftwareUpgradeProposal.encode(message).finish()
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
GlobalDecoderRegistry.register(SoftwareUpgradeProposal.typeUrl, SoftwareUpgradeProposal);
|
|
411
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SoftwareUpgradeProposal.aminoType, SoftwareUpgradeProposal.typeUrl);
|
|
412
|
+
function createBaseCancelSoftwareUpgradeProposal(): CancelSoftwareUpgradeProposal {
|
|
413
|
+
return {
|
|
414
|
+
title: "",
|
|
415
|
+
description: ""
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
export const CancelSoftwareUpgradeProposal = {
|
|
419
|
+
typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",
|
|
420
|
+
aminoType: "cosmos-sdk/CancelSoftwareUpgradeProposal",
|
|
421
|
+
is(o: any): o is CancelSoftwareUpgradeProposal {
|
|
422
|
+
return o && (o.$typeUrl === CancelSoftwareUpgradeProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string");
|
|
423
|
+
},
|
|
424
|
+
isAmino(o: any): o is CancelSoftwareUpgradeProposalAmino {
|
|
425
|
+
return o && (o.$typeUrl === CancelSoftwareUpgradeProposal.typeUrl || typeof o.title === "string" && typeof o.description === "string");
|
|
426
|
+
},
|
|
427
|
+
encode(message: CancelSoftwareUpgradeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
428
|
+
if (message.title !== "") {
|
|
429
|
+
writer.uint32(10).string(message.title);
|
|
430
|
+
}
|
|
431
|
+
if (message.description !== "") {
|
|
432
|
+
writer.uint32(18).string(message.description);
|
|
433
|
+
}
|
|
434
|
+
return writer;
|
|
435
|
+
},
|
|
436
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CancelSoftwareUpgradeProposal {
|
|
437
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
438
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
439
|
+
const message = createBaseCancelSoftwareUpgradeProposal();
|
|
440
|
+
while (reader.pos < end) {
|
|
441
|
+
const tag = reader.uint32();
|
|
442
|
+
switch (tag >>> 3) {
|
|
443
|
+
case 1:
|
|
444
|
+
message.title = reader.string();
|
|
445
|
+
break;
|
|
446
|
+
case 2:
|
|
447
|
+
message.description = reader.string();
|
|
448
|
+
break;
|
|
449
|
+
default:
|
|
450
|
+
reader.skipType(tag & 7);
|
|
451
|
+
break;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
return message;
|
|
455
|
+
},
|
|
456
|
+
fromPartial(object: DeepPartial<CancelSoftwareUpgradeProposal>): CancelSoftwareUpgradeProposal {
|
|
457
|
+
const message = createBaseCancelSoftwareUpgradeProposal();
|
|
458
|
+
message.title = object.title ?? "";
|
|
459
|
+
message.description = object.description ?? "";
|
|
460
|
+
return message;
|
|
461
|
+
},
|
|
462
|
+
fromAmino(object: CancelSoftwareUpgradeProposalAmino): CancelSoftwareUpgradeProposal {
|
|
463
|
+
const message = createBaseCancelSoftwareUpgradeProposal();
|
|
464
|
+
if (object.title !== undefined && object.title !== null) {
|
|
465
|
+
message.title = object.title;
|
|
466
|
+
}
|
|
467
|
+
if (object.description !== undefined && object.description !== null) {
|
|
468
|
+
message.description = object.description;
|
|
469
|
+
}
|
|
470
|
+
return message;
|
|
471
|
+
},
|
|
472
|
+
toAmino(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAmino {
|
|
473
|
+
const obj: any = {};
|
|
474
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
475
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
476
|
+
return obj;
|
|
477
|
+
},
|
|
478
|
+
fromAminoMsg(object: CancelSoftwareUpgradeProposalAminoMsg): CancelSoftwareUpgradeProposal {
|
|
479
|
+
return CancelSoftwareUpgradeProposal.fromAmino(object.value);
|
|
480
|
+
},
|
|
481
|
+
toAminoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAminoMsg {
|
|
482
|
+
return {
|
|
483
|
+
type: "cosmos-sdk/CancelSoftwareUpgradeProposal",
|
|
484
|
+
value: CancelSoftwareUpgradeProposal.toAmino(message)
|
|
485
|
+
};
|
|
486
|
+
},
|
|
487
|
+
fromProtoMsg(message: CancelSoftwareUpgradeProposalProtoMsg): CancelSoftwareUpgradeProposal {
|
|
488
|
+
return CancelSoftwareUpgradeProposal.decode(message.value);
|
|
489
|
+
},
|
|
490
|
+
toProto(message: CancelSoftwareUpgradeProposal): Uint8Array {
|
|
491
|
+
return CancelSoftwareUpgradeProposal.encode(message).finish();
|
|
492
|
+
},
|
|
493
|
+
toProtoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalProtoMsg {
|
|
494
|
+
return {
|
|
495
|
+
typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",
|
|
496
|
+
value: CancelSoftwareUpgradeProposal.encode(message).finish()
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
GlobalDecoderRegistry.register(CancelSoftwareUpgradeProposal.typeUrl, CancelSoftwareUpgradeProposal);
|
|
501
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(CancelSoftwareUpgradeProposal.aminoType, CancelSoftwareUpgradeProposal.typeUrl);
|
|
502
|
+
function createBaseModuleVersion(): ModuleVersion {
|
|
503
|
+
return {
|
|
504
|
+
name: "",
|
|
505
|
+
version: BigInt(0)
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
export const ModuleVersion = {
|
|
509
|
+
typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion",
|
|
510
|
+
aminoType: "cosmos-sdk/ModuleVersion",
|
|
511
|
+
is(o: any): o is ModuleVersion {
|
|
512
|
+
return o && (o.$typeUrl === ModuleVersion.typeUrl || typeof o.name === "string" && typeof o.version === "bigint");
|
|
513
|
+
},
|
|
514
|
+
isAmino(o: any): o is ModuleVersionAmino {
|
|
515
|
+
return o && (o.$typeUrl === ModuleVersion.typeUrl || typeof o.name === "string" && typeof o.version === "bigint");
|
|
516
|
+
},
|
|
517
|
+
encode(message: ModuleVersion, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
518
|
+
if (message.name !== "") {
|
|
519
|
+
writer.uint32(10).string(message.name);
|
|
520
|
+
}
|
|
521
|
+
if (message.version !== BigInt(0)) {
|
|
522
|
+
writer.uint32(16).uint64(message.version);
|
|
523
|
+
}
|
|
524
|
+
return writer;
|
|
525
|
+
},
|
|
526
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ModuleVersion {
|
|
527
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
528
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
529
|
+
const message = createBaseModuleVersion();
|
|
530
|
+
while (reader.pos < end) {
|
|
531
|
+
const tag = reader.uint32();
|
|
532
|
+
switch (tag >>> 3) {
|
|
533
|
+
case 1:
|
|
534
|
+
message.name = reader.string();
|
|
535
|
+
break;
|
|
536
|
+
case 2:
|
|
537
|
+
message.version = reader.uint64();
|
|
538
|
+
break;
|
|
539
|
+
default:
|
|
540
|
+
reader.skipType(tag & 7);
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
return message;
|
|
545
|
+
},
|
|
546
|
+
fromPartial(object: DeepPartial<ModuleVersion>): ModuleVersion {
|
|
547
|
+
const message = createBaseModuleVersion();
|
|
548
|
+
message.name = object.name ?? "";
|
|
549
|
+
message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0);
|
|
550
|
+
return message;
|
|
551
|
+
},
|
|
552
|
+
fromAmino(object: ModuleVersionAmino): ModuleVersion {
|
|
553
|
+
const message = createBaseModuleVersion();
|
|
554
|
+
if (object.name !== undefined && object.name !== null) {
|
|
555
|
+
message.name = object.name;
|
|
556
|
+
}
|
|
557
|
+
if (object.version !== undefined && object.version !== null) {
|
|
558
|
+
message.version = BigInt(object.version);
|
|
559
|
+
}
|
|
560
|
+
return message;
|
|
561
|
+
},
|
|
562
|
+
toAmino(message: ModuleVersion): ModuleVersionAmino {
|
|
563
|
+
const obj: any = {};
|
|
564
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
565
|
+
obj.version = message.version !== BigInt(0) ? message.version?.toString() : undefined;
|
|
566
|
+
return obj;
|
|
567
|
+
},
|
|
568
|
+
fromAminoMsg(object: ModuleVersionAminoMsg): ModuleVersion {
|
|
569
|
+
return ModuleVersion.fromAmino(object.value);
|
|
570
|
+
},
|
|
571
|
+
toAminoMsg(message: ModuleVersion): ModuleVersionAminoMsg {
|
|
572
|
+
return {
|
|
573
|
+
type: "cosmos-sdk/ModuleVersion",
|
|
574
|
+
value: ModuleVersion.toAmino(message)
|
|
575
|
+
};
|
|
576
|
+
},
|
|
577
|
+
fromProtoMsg(message: ModuleVersionProtoMsg): ModuleVersion {
|
|
578
|
+
return ModuleVersion.decode(message.value);
|
|
579
|
+
},
|
|
580
|
+
toProto(message: ModuleVersion): Uint8Array {
|
|
581
|
+
return ModuleVersion.encode(message).finish();
|
|
582
|
+
},
|
|
583
|
+
toProtoMsg(message: ModuleVersion): ModuleVersionProtoMsg {
|
|
584
|
+
return {
|
|
585
|
+
typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion",
|
|
586
|
+
value: ModuleVersion.encode(message).finish()
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
GlobalDecoderRegistry.register(ModuleVersion.typeUrl, ModuleVersion);
|
|
591
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(ModuleVersion.aminoType, ModuleVersion.typeUrl);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../../helpers";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../../registry";
|
|
4
|
+
/** Module is the config object of the x/validate module. */
|
|
5
|
+
export interface Module {}
|
|
6
|
+
export interface ModuleProtoMsg {
|
|
7
|
+
typeUrl: "/cosmos.validate.module.v1.Module";
|
|
8
|
+
value: Uint8Array;
|
|
9
|
+
}
|
|
10
|
+
/** Module is the config object of the x/validate module. */
|
|
11
|
+
export interface ModuleAmino {}
|
|
12
|
+
export interface ModuleAminoMsg {
|
|
13
|
+
type: "cosmos-sdk/Module";
|
|
14
|
+
value: ModuleAmino;
|
|
15
|
+
}
|
|
16
|
+
function createBaseModule(): Module {
|
|
17
|
+
return {};
|
|
18
|
+
}
|
|
19
|
+
export const Module = {
|
|
20
|
+
typeUrl: "/cosmos.validate.module.v1.Module",
|
|
21
|
+
aminoType: "cosmos-sdk/Module",
|
|
22
|
+
is(o: any): o is Module {
|
|
23
|
+
return o && o.$typeUrl === Module.typeUrl;
|
|
24
|
+
},
|
|
25
|
+
isAmino(o: any): o is ModuleAmino {
|
|
26
|
+
return o && o.$typeUrl === Module.typeUrl;
|
|
27
|
+
},
|
|
28
|
+
encode(_: Module, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Module {
|
|
32
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBaseModule();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
default:
|
|
39
|
+
reader.skipType(tag & 7);
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return message;
|
|
44
|
+
},
|
|
45
|
+
fromPartial(_: DeepPartial<Module>): Module {
|
|
46
|
+
const message = createBaseModule();
|
|
47
|
+
return message;
|
|
48
|
+
},
|
|
49
|
+
fromAmino(_: ModuleAmino): Module {
|
|
50
|
+
const message = createBaseModule();
|
|
51
|
+
return message;
|
|
52
|
+
},
|
|
53
|
+
toAmino(_: Module): ModuleAmino {
|
|
54
|
+
const obj: any = {};
|
|
55
|
+
return obj;
|
|
56
|
+
},
|
|
57
|
+
fromAminoMsg(object: ModuleAminoMsg): Module {
|
|
58
|
+
return Module.fromAmino(object.value);
|
|
59
|
+
},
|
|
60
|
+
toAminoMsg(message: Module): ModuleAminoMsg {
|
|
61
|
+
return {
|
|
62
|
+
type: "cosmos-sdk/Module",
|
|
63
|
+
value: Module.toAmino(message)
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
fromProtoMsg(message: ModuleProtoMsg): Module {
|
|
67
|
+
return Module.decode(message.value);
|
|
68
|
+
},
|
|
69
|
+
toProto(message: Module): Uint8Array {
|
|
70
|
+
return Module.encode(message).finish();
|
|
71
|
+
},
|
|
72
|
+
toProtoMsg(message: Module): ModuleProtoMsg {
|
|
73
|
+
return {
|
|
74
|
+
typeUrl: "/cosmos.validate.module.v1.Module",
|
|
75
|
+
value: Module.encode(message).finish()
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
GlobalDecoderRegistry.register(Module.typeUrl, Module);
|
|
80
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Module.aminoType, Module.typeUrl);
|