@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,1016 @@
|
|
|
1
|
+
import { Plan, PlanAmino, ModuleVersion, ModuleVersionAmino } from "./upgrade";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
|
+
/**
|
|
6
|
+
* QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
|
|
7
|
+
* method.
|
|
8
|
+
*/
|
|
9
|
+
export interface QueryCurrentPlanRequest {}
|
|
10
|
+
export interface QueryCurrentPlanRequestProtoMsg {
|
|
11
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest";
|
|
12
|
+
value: Uint8Array;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
|
|
16
|
+
* method.
|
|
17
|
+
*/
|
|
18
|
+
export interface QueryCurrentPlanRequestAmino {}
|
|
19
|
+
export interface QueryCurrentPlanRequestAminoMsg {
|
|
20
|
+
type: "cosmos-sdk/QueryCurrentPlanRequest";
|
|
21
|
+
value: QueryCurrentPlanRequestAmino;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC
|
|
25
|
+
* method.
|
|
26
|
+
*/
|
|
27
|
+
export interface QueryCurrentPlanResponse {
|
|
28
|
+
/** plan is the current upgrade plan. */
|
|
29
|
+
plan?: Plan;
|
|
30
|
+
}
|
|
31
|
+
export interface QueryCurrentPlanResponseProtoMsg {
|
|
32
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse";
|
|
33
|
+
value: Uint8Array;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC
|
|
37
|
+
* method.
|
|
38
|
+
*/
|
|
39
|
+
export interface QueryCurrentPlanResponseAmino {
|
|
40
|
+
/** plan is the current upgrade plan. */
|
|
41
|
+
plan?: PlanAmino;
|
|
42
|
+
}
|
|
43
|
+
export interface QueryCurrentPlanResponseAminoMsg {
|
|
44
|
+
type: "cosmos-sdk/QueryCurrentPlanResponse";
|
|
45
|
+
value: QueryCurrentPlanResponseAmino;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC
|
|
49
|
+
* method.
|
|
50
|
+
*/
|
|
51
|
+
export interface QueryAppliedPlanRequest {
|
|
52
|
+
/** name is the name of the applied plan to query for. */
|
|
53
|
+
name: string;
|
|
54
|
+
}
|
|
55
|
+
export interface QueryAppliedPlanRequestProtoMsg {
|
|
56
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest";
|
|
57
|
+
value: Uint8Array;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC
|
|
61
|
+
* method.
|
|
62
|
+
*/
|
|
63
|
+
export interface QueryAppliedPlanRequestAmino {
|
|
64
|
+
/** name is the name of the applied plan to query for. */
|
|
65
|
+
name: string;
|
|
66
|
+
}
|
|
67
|
+
export interface QueryAppliedPlanRequestAminoMsg {
|
|
68
|
+
type: "cosmos-sdk/QueryAppliedPlanRequest";
|
|
69
|
+
value: QueryAppliedPlanRequestAmino;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC
|
|
73
|
+
* method.
|
|
74
|
+
*/
|
|
75
|
+
export interface QueryAppliedPlanResponse {
|
|
76
|
+
/** height is the block height at which the plan was applied. */
|
|
77
|
+
height: bigint;
|
|
78
|
+
}
|
|
79
|
+
export interface QueryAppliedPlanResponseProtoMsg {
|
|
80
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse";
|
|
81
|
+
value: Uint8Array;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC
|
|
85
|
+
* method.
|
|
86
|
+
*/
|
|
87
|
+
export interface QueryAppliedPlanResponseAmino {
|
|
88
|
+
/** height is the block height at which the plan was applied. */
|
|
89
|
+
height: string;
|
|
90
|
+
}
|
|
91
|
+
export interface QueryAppliedPlanResponseAminoMsg {
|
|
92
|
+
type: "cosmos-sdk/QueryAppliedPlanResponse";
|
|
93
|
+
value: QueryAppliedPlanResponseAmino;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState
|
|
97
|
+
* RPC method.
|
|
98
|
+
*/
|
|
99
|
+
/** @deprecated */
|
|
100
|
+
export interface QueryUpgradedConsensusStateRequest {
|
|
101
|
+
/**
|
|
102
|
+
* last height of the current chain must be sent in request
|
|
103
|
+
* as this is the height under which next consensus state is stored
|
|
104
|
+
*/
|
|
105
|
+
lastHeight: bigint;
|
|
106
|
+
}
|
|
107
|
+
export interface QueryUpgradedConsensusStateRequestProtoMsg {
|
|
108
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest";
|
|
109
|
+
value: Uint8Array;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState
|
|
113
|
+
* RPC method.
|
|
114
|
+
*/
|
|
115
|
+
/** @deprecated */
|
|
116
|
+
export interface QueryUpgradedConsensusStateRequestAmino {
|
|
117
|
+
/**
|
|
118
|
+
* last height of the current chain must be sent in request
|
|
119
|
+
* as this is the height under which next consensus state is stored
|
|
120
|
+
*/
|
|
121
|
+
last_height: string;
|
|
122
|
+
}
|
|
123
|
+
export interface QueryUpgradedConsensusStateRequestAminoMsg {
|
|
124
|
+
type: "cosmos-sdk/QueryUpgradedConsensusStateRequest";
|
|
125
|
+
value: QueryUpgradedConsensusStateRequestAmino;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState
|
|
129
|
+
* RPC method.
|
|
130
|
+
*/
|
|
131
|
+
/** @deprecated */
|
|
132
|
+
export interface QueryUpgradedConsensusStateResponse {
|
|
133
|
+
/** Since: cosmos-sdk 0.43 */
|
|
134
|
+
upgradedConsensusState: Uint8Array;
|
|
135
|
+
}
|
|
136
|
+
export interface QueryUpgradedConsensusStateResponseProtoMsg {
|
|
137
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse";
|
|
138
|
+
value: Uint8Array;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState
|
|
142
|
+
* RPC method.
|
|
143
|
+
*/
|
|
144
|
+
/** @deprecated */
|
|
145
|
+
export interface QueryUpgradedConsensusStateResponseAmino {
|
|
146
|
+
/** Since: cosmos-sdk 0.43 */
|
|
147
|
+
upgraded_consensus_state: string;
|
|
148
|
+
}
|
|
149
|
+
export interface QueryUpgradedConsensusStateResponseAminoMsg {
|
|
150
|
+
type: "cosmos-sdk/QueryUpgradedConsensusStateResponse";
|
|
151
|
+
value: QueryUpgradedConsensusStateResponseAmino;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* QueryModuleVersionsRequest is the request type for the Query/ModuleVersions
|
|
155
|
+
* RPC method.
|
|
156
|
+
*
|
|
157
|
+
* Since: cosmos-sdk 0.43
|
|
158
|
+
*/
|
|
159
|
+
export interface QueryModuleVersionsRequest {
|
|
160
|
+
/**
|
|
161
|
+
* module_name is a field to query a specific module
|
|
162
|
+
* consensus version from state. Leaving this empty will
|
|
163
|
+
* fetch the full list of module versions from state
|
|
164
|
+
*/
|
|
165
|
+
moduleName: string;
|
|
166
|
+
}
|
|
167
|
+
export interface QueryModuleVersionsRequestProtoMsg {
|
|
168
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest";
|
|
169
|
+
value: Uint8Array;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* QueryModuleVersionsRequest is the request type for the Query/ModuleVersions
|
|
173
|
+
* RPC method.
|
|
174
|
+
*
|
|
175
|
+
* Since: cosmos-sdk 0.43
|
|
176
|
+
*/
|
|
177
|
+
export interface QueryModuleVersionsRequestAmino {
|
|
178
|
+
/**
|
|
179
|
+
* module_name is a field to query a specific module
|
|
180
|
+
* consensus version from state. Leaving this empty will
|
|
181
|
+
* fetch the full list of module versions from state
|
|
182
|
+
*/
|
|
183
|
+
module_name: string;
|
|
184
|
+
}
|
|
185
|
+
export interface QueryModuleVersionsRequestAminoMsg {
|
|
186
|
+
type: "cosmos-sdk/QueryModuleVersionsRequest";
|
|
187
|
+
value: QueryModuleVersionsRequestAmino;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* QueryModuleVersionsResponse is the response type for the Query/ModuleVersions
|
|
191
|
+
* RPC method.
|
|
192
|
+
*
|
|
193
|
+
* Since: cosmos-sdk 0.43
|
|
194
|
+
*/
|
|
195
|
+
export interface QueryModuleVersionsResponse {
|
|
196
|
+
/** module_versions is a list of module names with their consensus versions. */
|
|
197
|
+
moduleVersions: ModuleVersion[];
|
|
198
|
+
}
|
|
199
|
+
export interface QueryModuleVersionsResponseProtoMsg {
|
|
200
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse";
|
|
201
|
+
value: Uint8Array;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* QueryModuleVersionsResponse is the response type for the Query/ModuleVersions
|
|
205
|
+
* RPC method.
|
|
206
|
+
*
|
|
207
|
+
* Since: cosmos-sdk 0.43
|
|
208
|
+
*/
|
|
209
|
+
export interface QueryModuleVersionsResponseAmino {
|
|
210
|
+
/** module_versions is a list of module names with their consensus versions. */
|
|
211
|
+
module_versions: ModuleVersionAmino[];
|
|
212
|
+
}
|
|
213
|
+
export interface QueryModuleVersionsResponseAminoMsg {
|
|
214
|
+
type: "cosmos-sdk/QueryModuleVersionsResponse";
|
|
215
|
+
value: QueryModuleVersionsResponseAmino;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* QueryAuthorityRequest is the request type for Query/Authority
|
|
219
|
+
*
|
|
220
|
+
* Since: cosmos-sdk 0.46
|
|
221
|
+
*/
|
|
222
|
+
export interface QueryAuthorityRequest {}
|
|
223
|
+
export interface QueryAuthorityRequestProtoMsg {
|
|
224
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest";
|
|
225
|
+
value: Uint8Array;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* QueryAuthorityRequest is the request type for Query/Authority
|
|
229
|
+
*
|
|
230
|
+
* Since: cosmos-sdk 0.46
|
|
231
|
+
*/
|
|
232
|
+
export interface QueryAuthorityRequestAmino {}
|
|
233
|
+
export interface QueryAuthorityRequestAminoMsg {
|
|
234
|
+
type: "cosmos-sdk/QueryAuthorityRequest";
|
|
235
|
+
value: QueryAuthorityRequestAmino;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* QueryAuthorityResponse is the response type for Query/Authority
|
|
239
|
+
*
|
|
240
|
+
* Since: cosmos-sdk 0.46
|
|
241
|
+
*/
|
|
242
|
+
export interface QueryAuthorityResponse {
|
|
243
|
+
address: string;
|
|
244
|
+
}
|
|
245
|
+
export interface QueryAuthorityResponseProtoMsg {
|
|
246
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse";
|
|
247
|
+
value: Uint8Array;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* QueryAuthorityResponse is the response type for Query/Authority
|
|
251
|
+
*
|
|
252
|
+
* Since: cosmos-sdk 0.46
|
|
253
|
+
*/
|
|
254
|
+
export interface QueryAuthorityResponseAmino {
|
|
255
|
+
address: string;
|
|
256
|
+
}
|
|
257
|
+
export interface QueryAuthorityResponseAminoMsg {
|
|
258
|
+
type: "cosmos-sdk/QueryAuthorityResponse";
|
|
259
|
+
value: QueryAuthorityResponseAmino;
|
|
260
|
+
}
|
|
261
|
+
function createBaseQueryCurrentPlanRequest(): QueryCurrentPlanRequest {
|
|
262
|
+
return {};
|
|
263
|
+
}
|
|
264
|
+
export const QueryCurrentPlanRequest = {
|
|
265
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest",
|
|
266
|
+
aminoType: "cosmos-sdk/QueryCurrentPlanRequest",
|
|
267
|
+
is(o: any): o is QueryCurrentPlanRequest {
|
|
268
|
+
return o && o.$typeUrl === QueryCurrentPlanRequest.typeUrl;
|
|
269
|
+
},
|
|
270
|
+
isAmino(o: any): o is QueryCurrentPlanRequestAmino {
|
|
271
|
+
return o && o.$typeUrl === QueryCurrentPlanRequest.typeUrl;
|
|
272
|
+
},
|
|
273
|
+
encode(_: QueryCurrentPlanRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
274
|
+
return writer;
|
|
275
|
+
},
|
|
276
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanRequest {
|
|
277
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
278
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
279
|
+
const message = createBaseQueryCurrentPlanRequest();
|
|
280
|
+
while (reader.pos < end) {
|
|
281
|
+
const tag = reader.uint32();
|
|
282
|
+
switch (tag >>> 3) {
|
|
283
|
+
default:
|
|
284
|
+
reader.skipType(tag & 7);
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return message;
|
|
289
|
+
},
|
|
290
|
+
fromPartial(_: DeepPartial<QueryCurrentPlanRequest>): QueryCurrentPlanRequest {
|
|
291
|
+
const message = createBaseQueryCurrentPlanRequest();
|
|
292
|
+
return message;
|
|
293
|
+
},
|
|
294
|
+
fromAmino(_: QueryCurrentPlanRequestAmino): QueryCurrentPlanRequest {
|
|
295
|
+
const message = createBaseQueryCurrentPlanRequest();
|
|
296
|
+
return message;
|
|
297
|
+
},
|
|
298
|
+
toAmino(_: QueryCurrentPlanRequest): QueryCurrentPlanRequestAmino {
|
|
299
|
+
const obj: any = {};
|
|
300
|
+
return obj;
|
|
301
|
+
},
|
|
302
|
+
fromAminoMsg(object: QueryCurrentPlanRequestAminoMsg): QueryCurrentPlanRequest {
|
|
303
|
+
return QueryCurrentPlanRequest.fromAmino(object.value);
|
|
304
|
+
},
|
|
305
|
+
toAminoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestAminoMsg {
|
|
306
|
+
return {
|
|
307
|
+
type: "cosmos-sdk/QueryCurrentPlanRequest",
|
|
308
|
+
value: QueryCurrentPlanRequest.toAmino(message)
|
|
309
|
+
};
|
|
310
|
+
},
|
|
311
|
+
fromProtoMsg(message: QueryCurrentPlanRequestProtoMsg): QueryCurrentPlanRequest {
|
|
312
|
+
return QueryCurrentPlanRequest.decode(message.value);
|
|
313
|
+
},
|
|
314
|
+
toProto(message: QueryCurrentPlanRequest): Uint8Array {
|
|
315
|
+
return QueryCurrentPlanRequest.encode(message).finish();
|
|
316
|
+
},
|
|
317
|
+
toProtoMsg(message: QueryCurrentPlanRequest): QueryCurrentPlanRequestProtoMsg {
|
|
318
|
+
return {
|
|
319
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest",
|
|
320
|
+
value: QueryCurrentPlanRequest.encode(message).finish()
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
GlobalDecoderRegistry.register(QueryCurrentPlanRequest.typeUrl, QueryCurrentPlanRequest);
|
|
325
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryCurrentPlanRequest.aminoType, QueryCurrentPlanRequest.typeUrl);
|
|
326
|
+
function createBaseQueryCurrentPlanResponse(): QueryCurrentPlanResponse {
|
|
327
|
+
return {
|
|
328
|
+
plan: undefined
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
export const QueryCurrentPlanResponse = {
|
|
332
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse",
|
|
333
|
+
aminoType: "cosmos-sdk/QueryCurrentPlanResponse",
|
|
334
|
+
is(o: any): o is QueryCurrentPlanResponse {
|
|
335
|
+
return o && o.$typeUrl === QueryCurrentPlanResponse.typeUrl;
|
|
336
|
+
},
|
|
337
|
+
isAmino(o: any): o is QueryCurrentPlanResponseAmino {
|
|
338
|
+
return o && o.$typeUrl === QueryCurrentPlanResponse.typeUrl;
|
|
339
|
+
},
|
|
340
|
+
encode(message: QueryCurrentPlanResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
341
|
+
if (message.plan !== undefined) {
|
|
342
|
+
Plan.encode(message.plan, writer.uint32(10).fork()).ldelim();
|
|
343
|
+
}
|
|
344
|
+
return writer;
|
|
345
|
+
},
|
|
346
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryCurrentPlanResponse {
|
|
347
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
348
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
349
|
+
const message = createBaseQueryCurrentPlanResponse();
|
|
350
|
+
while (reader.pos < end) {
|
|
351
|
+
const tag = reader.uint32();
|
|
352
|
+
switch (tag >>> 3) {
|
|
353
|
+
case 1:
|
|
354
|
+
message.plan = Plan.decode(reader, reader.uint32());
|
|
355
|
+
break;
|
|
356
|
+
default:
|
|
357
|
+
reader.skipType(tag & 7);
|
|
358
|
+
break;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
return message;
|
|
362
|
+
},
|
|
363
|
+
fromPartial(object: DeepPartial<QueryCurrentPlanResponse>): QueryCurrentPlanResponse {
|
|
364
|
+
const message = createBaseQueryCurrentPlanResponse();
|
|
365
|
+
message.plan = object.plan !== undefined && object.plan !== null ? Plan.fromPartial(object.plan) : undefined;
|
|
366
|
+
return message;
|
|
367
|
+
},
|
|
368
|
+
fromAmino(object: QueryCurrentPlanResponseAmino): QueryCurrentPlanResponse {
|
|
369
|
+
const message = createBaseQueryCurrentPlanResponse();
|
|
370
|
+
if (object.plan !== undefined && object.plan !== null) {
|
|
371
|
+
message.plan = Plan.fromAmino(object.plan);
|
|
372
|
+
}
|
|
373
|
+
return message;
|
|
374
|
+
},
|
|
375
|
+
toAmino(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseAmino {
|
|
376
|
+
const obj: any = {};
|
|
377
|
+
obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined;
|
|
378
|
+
return obj;
|
|
379
|
+
},
|
|
380
|
+
fromAminoMsg(object: QueryCurrentPlanResponseAminoMsg): QueryCurrentPlanResponse {
|
|
381
|
+
return QueryCurrentPlanResponse.fromAmino(object.value);
|
|
382
|
+
},
|
|
383
|
+
toAminoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseAminoMsg {
|
|
384
|
+
return {
|
|
385
|
+
type: "cosmos-sdk/QueryCurrentPlanResponse",
|
|
386
|
+
value: QueryCurrentPlanResponse.toAmino(message)
|
|
387
|
+
};
|
|
388
|
+
},
|
|
389
|
+
fromProtoMsg(message: QueryCurrentPlanResponseProtoMsg): QueryCurrentPlanResponse {
|
|
390
|
+
return QueryCurrentPlanResponse.decode(message.value);
|
|
391
|
+
},
|
|
392
|
+
toProto(message: QueryCurrentPlanResponse): Uint8Array {
|
|
393
|
+
return QueryCurrentPlanResponse.encode(message).finish();
|
|
394
|
+
},
|
|
395
|
+
toProtoMsg(message: QueryCurrentPlanResponse): QueryCurrentPlanResponseProtoMsg {
|
|
396
|
+
return {
|
|
397
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse",
|
|
398
|
+
value: QueryCurrentPlanResponse.encode(message).finish()
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
GlobalDecoderRegistry.register(QueryCurrentPlanResponse.typeUrl, QueryCurrentPlanResponse);
|
|
403
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryCurrentPlanResponse.aminoType, QueryCurrentPlanResponse.typeUrl);
|
|
404
|
+
function createBaseQueryAppliedPlanRequest(): QueryAppliedPlanRequest {
|
|
405
|
+
return {
|
|
406
|
+
name: ""
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
export const QueryAppliedPlanRequest = {
|
|
410
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest",
|
|
411
|
+
aminoType: "cosmos-sdk/QueryAppliedPlanRequest",
|
|
412
|
+
is(o: any): o is QueryAppliedPlanRequest {
|
|
413
|
+
return o && (o.$typeUrl === QueryAppliedPlanRequest.typeUrl || typeof o.name === "string");
|
|
414
|
+
},
|
|
415
|
+
isAmino(o: any): o is QueryAppliedPlanRequestAmino {
|
|
416
|
+
return o && (o.$typeUrl === QueryAppliedPlanRequest.typeUrl || typeof o.name === "string");
|
|
417
|
+
},
|
|
418
|
+
encode(message: QueryAppliedPlanRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
419
|
+
if (message.name !== "") {
|
|
420
|
+
writer.uint32(10).string(message.name);
|
|
421
|
+
}
|
|
422
|
+
return writer;
|
|
423
|
+
},
|
|
424
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanRequest {
|
|
425
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
426
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
427
|
+
const message = createBaseQueryAppliedPlanRequest();
|
|
428
|
+
while (reader.pos < end) {
|
|
429
|
+
const tag = reader.uint32();
|
|
430
|
+
switch (tag >>> 3) {
|
|
431
|
+
case 1:
|
|
432
|
+
message.name = reader.string();
|
|
433
|
+
break;
|
|
434
|
+
default:
|
|
435
|
+
reader.skipType(tag & 7);
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
return message;
|
|
440
|
+
},
|
|
441
|
+
fromPartial(object: DeepPartial<QueryAppliedPlanRequest>): QueryAppliedPlanRequest {
|
|
442
|
+
const message = createBaseQueryAppliedPlanRequest();
|
|
443
|
+
message.name = object.name ?? "";
|
|
444
|
+
return message;
|
|
445
|
+
},
|
|
446
|
+
fromAmino(object: QueryAppliedPlanRequestAmino): QueryAppliedPlanRequest {
|
|
447
|
+
const message = createBaseQueryAppliedPlanRequest();
|
|
448
|
+
if (object.name !== undefined && object.name !== null) {
|
|
449
|
+
message.name = object.name;
|
|
450
|
+
}
|
|
451
|
+
return message;
|
|
452
|
+
},
|
|
453
|
+
toAmino(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAmino {
|
|
454
|
+
const obj: any = {};
|
|
455
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
456
|
+
return obj;
|
|
457
|
+
},
|
|
458
|
+
fromAminoMsg(object: QueryAppliedPlanRequestAminoMsg): QueryAppliedPlanRequest {
|
|
459
|
+
return QueryAppliedPlanRequest.fromAmino(object.value);
|
|
460
|
+
},
|
|
461
|
+
toAminoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAminoMsg {
|
|
462
|
+
return {
|
|
463
|
+
type: "cosmos-sdk/QueryAppliedPlanRequest",
|
|
464
|
+
value: QueryAppliedPlanRequest.toAmino(message)
|
|
465
|
+
};
|
|
466
|
+
},
|
|
467
|
+
fromProtoMsg(message: QueryAppliedPlanRequestProtoMsg): QueryAppliedPlanRequest {
|
|
468
|
+
return QueryAppliedPlanRequest.decode(message.value);
|
|
469
|
+
},
|
|
470
|
+
toProto(message: QueryAppliedPlanRequest): Uint8Array {
|
|
471
|
+
return QueryAppliedPlanRequest.encode(message).finish();
|
|
472
|
+
},
|
|
473
|
+
toProtoMsg(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestProtoMsg {
|
|
474
|
+
return {
|
|
475
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest",
|
|
476
|
+
value: QueryAppliedPlanRequest.encode(message).finish()
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
GlobalDecoderRegistry.register(QueryAppliedPlanRequest.typeUrl, QueryAppliedPlanRequest);
|
|
481
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAppliedPlanRequest.aminoType, QueryAppliedPlanRequest.typeUrl);
|
|
482
|
+
function createBaseQueryAppliedPlanResponse(): QueryAppliedPlanResponse {
|
|
483
|
+
return {
|
|
484
|
+
height: BigInt(0)
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
export const QueryAppliedPlanResponse = {
|
|
488
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse",
|
|
489
|
+
aminoType: "cosmos-sdk/QueryAppliedPlanResponse",
|
|
490
|
+
is(o: any): o is QueryAppliedPlanResponse {
|
|
491
|
+
return o && (o.$typeUrl === QueryAppliedPlanResponse.typeUrl || typeof o.height === "bigint");
|
|
492
|
+
},
|
|
493
|
+
isAmino(o: any): o is QueryAppliedPlanResponseAmino {
|
|
494
|
+
return o && (o.$typeUrl === QueryAppliedPlanResponse.typeUrl || typeof o.height === "bigint");
|
|
495
|
+
},
|
|
496
|
+
encode(message: QueryAppliedPlanResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
497
|
+
if (message.height !== BigInt(0)) {
|
|
498
|
+
writer.uint32(8).int64(message.height);
|
|
499
|
+
}
|
|
500
|
+
return writer;
|
|
501
|
+
},
|
|
502
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAppliedPlanResponse {
|
|
503
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
504
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
505
|
+
const message = createBaseQueryAppliedPlanResponse();
|
|
506
|
+
while (reader.pos < end) {
|
|
507
|
+
const tag = reader.uint32();
|
|
508
|
+
switch (tag >>> 3) {
|
|
509
|
+
case 1:
|
|
510
|
+
message.height = reader.int64();
|
|
511
|
+
break;
|
|
512
|
+
default:
|
|
513
|
+
reader.skipType(tag & 7);
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
return message;
|
|
518
|
+
},
|
|
519
|
+
fromPartial(object: DeepPartial<QueryAppliedPlanResponse>): QueryAppliedPlanResponse {
|
|
520
|
+
const message = createBaseQueryAppliedPlanResponse();
|
|
521
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
522
|
+
return message;
|
|
523
|
+
},
|
|
524
|
+
fromAmino(object: QueryAppliedPlanResponseAmino): QueryAppliedPlanResponse {
|
|
525
|
+
const message = createBaseQueryAppliedPlanResponse();
|
|
526
|
+
if (object.height !== undefined && object.height !== null) {
|
|
527
|
+
message.height = BigInt(object.height);
|
|
528
|
+
}
|
|
529
|
+
return message;
|
|
530
|
+
},
|
|
531
|
+
toAmino(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAmino {
|
|
532
|
+
const obj: any = {};
|
|
533
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
534
|
+
return obj;
|
|
535
|
+
},
|
|
536
|
+
fromAminoMsg(object: QueryAppliedPlanResponseAminoMsg): QueryAppliedPlanResponse {
|
|
537
|
+
return QueryAppliedPlanResponse.fromAmino(object.value);
|
|
538
|
+
},
|
|
539
|
+
toAminoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAminoMsg {
|
|
540
|
+
return {
|
|
541
|
+
type: "cosmos-sdk/QueryAppliedPlanResponse",
|
|
542
|
+
value: QueryAppliedPlanResponse.toAmino(message)
|
|
543
|
+
};
|
|
544
|
+
},
|
|
545
|
+
fromProtoMsg(message: QueryAppliedPlanResponseProtoMsg): QueryAppliedPlanResponse {
|
|
546
|
+
return QueryAppliedPlanResponse.decode(message.value);
|
|
547
|
+
},
|
|
548
|
+
toProto(message: QueryAppliedPlanResponse): Uint8Array {
|
|
549
|
+
return QueryAppliedPlanResponse.encode(message).finish();
|
|
550
|
+
},
|
|
551
|
+
toProtoMsg(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseProtoMsg {
|
|
552
|
+
return {
|
|
553
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse",
|
|
554
|
+
value: QueryAppliedPlanResponse.encode(message).finish()
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
GlobalDecoderRegistry.register(QueryAppliedPlanResponse.typeUrl, QueryAppliedPlanResponse);
|
|
559
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAppliedPlanResponse.aminoType, QueryAppliedPlanResponse.typeUrl);
|
|
560
|
+
function createBaseQueryUpgradedConsensusStateRequest(): QueryUpgradedConsensusStateRequest {
|
|
561
|
+
return {
|
|
562
|
+
lastHeight: BigInt(0)
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
export const QueryUpgradedConsensusStateRequest = {
|
|
566
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest",
|
|
567
|
+
aminoType: "cosmos-sdk/QueryUpgradedConsensusStateRequest",
|
|
568
|
+
is(o: any): o is QueryUpgradedConsensusStateRequest {
|
|
569
|
+
return o && (o.$typeUrl === QueryUpgradedConsensusStateRequest.typeUrl || typeof o.lastHeight === "bigint");
|
|
570
|
+
},
|
|
571
|
+
isAmino(o: any): o is QueryUpgradedConsensusStateRequestAmino {
|
|
572
|
+
return o && (o.$typeUrl === QueryUpgradedConsensusStateRequest.typeUrl || typeof o.last_height === "bigint");
|
|
573
|
+
},
|
|
574
|
+
encode(message: QueryUpgradedConsensusStateRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
575
|
+
if (message.lastHeight !== BigInt(0)) {
|
|
576
|
+
writer.uint32(8).int64(message.lastHeight);
|
|
577
|
+
}
|
|
578
|
+
return writer;
|
|
579
|
+
},
|
|
580
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest {
|
|
581
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
582
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
583
|
+
const message = createBaseQueryUpgradedConsensusStateRequest();
|
|
584
|
+
while (reader.pos < end) {
|
|
585
|
+
const tag = reader.uint32();
|
|
586
|
+
switch (tag >>> 3) {
|
|
587
|
+
case 1:
|
|
588
|
+
message.lastHeight = reader.int64();
|
|
589
|
+
break;
|
|
590
|
+
default:
|
|
591
|
+
reader.skipType(tag & 7);
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
return message;
|
|
596
|
+
},
|
|
597
|
+
fromPartial(object: DeepPartial<QueryUpgradedConsensusStateRequest>): QueryUpgradedConsensusStateRequest {
|
|
598
|
+
const message = createBaseQueryUpgradedConsensusStateRequest();
|
|
599
|
+
message.lastHeight = object.lastHeight !== undefined && object.lastHeight !== null ? BigInt(object.lastHeight.toString()) : BigInt(0);
|
|
600
|
+
return message;
|
|
601
|
+
},
|
|
602
|
+
fromAmino(object: QueryUpgradedConsensusStateRequestAmino): QueryUpgradedConsensusStateRequest {
|
|
603
|
+
const message = createBaseQueryUpgradedConsensusStateRequest();
|
|
604
|
+
if (object.last_height !== undefined && object.last_height !== null) {
|
|
605
|
+
message.lastHeight = BigInt(object.last_height);
|
|
606
|
+
}
|
|
607
|
+
return message;
|
|
608
|
+
},
|
|
609
|
+
toAmino(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino {
|
|
610
|
+
const obj: any = {};
|
|
611
|
+
obj.last_height = message.lastHeight !== BigInt(0) ? message.lastHeight?.toString() : undefined;
|
|
612
|
+
return obj;
|
|
613
|
+
},
|
|
614
|
+
fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest {
|
|
615
|
+
return QueryUpgradedConsensusStateRequest.fromAmino(object.value);
|
|
616
|
+
},
|
|
617
|
+
toAminoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAminoMsg {
|
|
618
|
+
return {
|
|
619
|
+
type: "cosmos-sdk/QueryUpgradedConsensusStateRequest",
|
|
620
|
+
value: QueryUpgradedConsensusStateRequest.toAmino(message)
|
|
621
|
+
};
|
|
622
|
+
},
|
|
623
|
+
fromProtoMsg(message: QueryUpgradedConsensusStateRequestProtoMsg): QueryUpgradedConsensusStateRequest {
|
|
624
|
+
return QueryUpgradedConsensusStateRequest.decode(message.value);
|
|
625
|
+
},
|
|
626
|
+
toProto(message: QueryUpgradedConsensusStateRequest): Uint8Array {
|
|
627
|
+
return QueryUpgradedConsensusStateRequest.encode(message).finish();
|
|
628
|
+
},
|
|
629
|
+
toProtoMsg(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestProtoMsg {
|
|
630
|
+
return {
|
|
631
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest",
|
|
632
|
+
value: QueryUpgradedConsensusStateRequest.encode(message).finish()
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
GlobalDecoderRegistry.register(QueryUpgradedConsensusStateRequest.typeUrl, QueryUpgradedConsensusStateRequest);
|
|
637
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryUpgradedConsensusStateRequest.aminoType, QueryUpgradedConsensusStateRequest.typeUrl);
|
|
638
|
+
function createBaseQueryUpgradedConsensusStateResponse(): QueryUpgradedConsensusStateResponse {
|
|
639
|
+
return {
|
|
640
|
+
upgradedConsensusState: new Uint8Array()
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
export const QueryUpgradedConsensusStateResponse = {
|
|
644
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse",
|
|
645
|
+
aminoType: "cosmos-sdk/QueryUpgradedConsensusStateResponse",
|
|
646
|
+
is(o: any): o is QueryUpgradedConsensusStateResponse {
|
|
647
|
+
return o && (o.$typeUrl === QueryUpgradedConsensusStateResponse.typeUrl || o.upgradedConsensusState instanceof Uint8Array || typeof o.upgradedConsensusState === "string");
|
|
648
|
+
},
|
|
649
|
+
isAmino(o: any): o is QueryUpgradedConsensusStateResponseAmino {
|
|
650
|
+
return o && (o.$typeUrl === QueryUpgradedConsensusStateResponse.typeUrl || o.upgraded_consensus_state instanceof Uint8Array || typeof o.upgraded_consensus_state === "string");
|
|
651
|
+
},
|
|
652
|
+
encode(message: QueryUpgradedConsensusStateResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
653
|
+
if (message.upgradedConsensusState.length !== 0) {
|
|
654
|
+
writer.uint32(18).bytes(message.upgradedConsensusState);
|
|
655
|
+
}
|
|
656
|
+
return writer;
|
|
657
|
+
},
|
|
658
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse {
|
|
659
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
660
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
661
|
+
const message = createBaseQueryUpgradedConsensusStateResponse();
|
|
662
|
+
while (reader.pos < end) {
|
|
663
|
+
const tag = reader.uint32();
|
|
664
|
+
switch (tag >>> 3) {
|
|
665
|
+
case 2:
|
|
666
|
+
message.upgradedConsensusState = reader.bytes();
|
|
667
|
+
break;
|
|
668
|
+
default:
|
|
669
|
+
reader.skipType(tag & 7);
|
|
670
|
+
break;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
return message;
|
|
674
|
+
},
|
|
675
|
+
fromPartial(object: DeepPartial<QueryUpgradedConsensusStateResponse>): QueryUpgradedConsensusStateResponse {
|
|
676
|
+
const message = createBaseQueryUpgradedConsensusStateResponse();
|
|
677
|
+
message.upgradedConsensusState = object.upgradedConsensusState ?? new Uint8Array();
|
|
678
|
+
return message;
|
|
679
|
+
},
|
|
680
|
+
fromAmino(object: QueryUpgradedConsensusStateResponseAmino): QueryUpgradedConsensusStateResponse {
|
|
681
|
+
const message = createBaseQueryUpgradedConsensusStateResponse();
|
|
682
|
+
if (object.upgraded_consensus_state !== undefined && object.upgraded_consensus_state !== null) {
|
|
683
|
+
message.upgradedConsensusState = bytesFromBase64(object.upgraded_consensus_state);
|
|
684
|
+
}
|
|
685
|
+
return message;
|
|
686
|
+
},
|
|
687
|
+
toAmino(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAmino {
|
|
688
|
+
const obj: any = {};
|
|
689
|
+
obj.upgraded_consensus_state = message.upgradedConsensusState ? base64FromBytes(message.upgradedConsensusState) : undefined;
|
|
690
|
+
return obj;
|
|
691
|
+
},
|
|
692
|
+
fromAminoMsg(object: QueryUpgradedConsensusStateResponseAminoMsg): QueryUpgradedConsensusStateResponse {
|
|
693
|
+
return QueryUpgradedConsensusStateResponse.fromAmino(object.value);
|
|
694
|
+
},
|
|
695
|
+
toAminoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseAminoMsg {
|
|
696
|
+
return {
|
|
697
|
+
type: "cosmos-sdk/QueryUpgradedConsensusStateResponse",
|
|
698
|
+
value: QueryUpgradedConsensusStateResponse.toAmino(message)
|
|
699
|
+
};
|
|
700
|
+
},
|
|
701
|
+
fromProtoMsg(message: QueryUpgradedConsensusStateResponseProtoMsg): QueryUpgradedConsensusStateResponse {
|
|
702
|
+
return QueryUpgradedConsensusStateResponse.decode(message.value);
|
|
703
|
+
},
|
|
704
|
+
toProto(message: QueryUpgradedConsensusStateResponse): Uint8Array {
|
|
705
|
+
return QueryUpgradedConsensusStateResponse.encode(message).finish();
|
|
706
|
+
},
|
|
707
|
+
toProtoMsg(message: QueryUpgradedConsensusStateResponse): QueryUpgradedConsensusStateResponseProtoMsg {
|
|
708
|
+
return {
|
|
709
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse",
|
|
710
|
+
value: QueryUpgradedConsensusStateResponse.encode(message).finish()
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
};
|
|
714
|
+
GlobalDecoderRegistry.register(QueryUpgradedConsensusStateResponse.typeUrl, QueryUpgradedConsensusStateResponse);
|
|
715
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryUpgradedConsensusStateResponse.aminoType, QueryUpgradedConsensusStateResponse.typeUrl);
|
|
716
|
+
function createBaseQueryModuleVersionsRequest(): QueryModuleVersionsRequest {
|
|
717
|
+
return {
|
|
718
|
+
moduleName: ""
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
export const QueryModuleVersionsRequest = {
|
|
722
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest",
|
|
723
|
+
aminoType: "cosmos-sdk/QueryModuleVersionsRequest",
|
|
724
|
+
is(o: any): o is QueryModuleVersionsRequest {
|
|
725
|
+
return o && (o.$typeUrl === QueryModuleVersionsRequest.typeUrl || typeof o.moduleName === "string");
|
|
726
|
+
},
|
|
727
|
+
isAmino(o: any): o is QueryModuleVersionsRequestAmino {
|
|
728
|
+
return o && (o.$typeUrl === QueryModuleVersionsRequest.typeUrl || typeof o.module_name === "string");
|
|
729
|
+
},
|
|
730
|
+
encode(message: QueryModuleVersionsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
731
|
+
if (message.moduleName !== "") {
|
|
732
|
+
writer.uint32(10).string(message.moduleName);
|
|
733
|
+
}
|
|
734
|
+
return writer;
|
|
735
|
+
},
|
|
736
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsRequest {
|
|
737
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
738
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
739
|
+
const message = createBaseQueryModuleVersionsRequest();
|
|
740
|
+
while (reader.pos < end) {
|
|
741
|
+
const tag = reader.uint32();
|
|
742
|
+
switch (tag >>> 3) {
|
|
743
|
+
case 1:
|
|
744
|
+
message.moduleName = reader.string();
|
|
745
|
+
break;
|
|
746
|
+
default:
|
|
747
|
+
reader.skipType(tag & 7);
|
|
748
|
+
break;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
return message;
|
|
752
|
+
},
|
|
753
|
+
fromPartial(object: DeepPartial<QueryModuleVersionsRequest>): QueryModuleVersionsRequest {
|
|
754
|
+
const message = createBaseQueryModuleVersionsRequest();
|
|
755
|
+
message.moduleName = object.moduleName ?? "";
|
|
756
|
+
return message;
|
|
757
|
+
},
|
|
758
|
+
fromAmino(object: QueryModuleVersionsRequestAmino): QueryModuleVersionsRequest {
|
|
759
|
+
const message = createBaseQueryModuleVersionsRequest();
|
|
760
|
+
if (object.module_name !== undefined && object.module_name !== null) {
|
|
761
|
+
message.moduleName = object.module_name;
|
|
762
|
+
}
|
|
763
|
+
return message;
|
|
764
|
+
},
|
|
765
|
+
toAmino(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAmino {
|
|
766
|
+
const obj: any = {};
|
|
767
|
+
obj.module_name = message.moduleName === "" ? undefined : message.moduleName;
|
|
768
|
+
return obj;
|
|
769
|
+
},
|
|
770
|
+
fromAminoMsg(object: QueryModuleVersionsRequestAminoMsg): QueryModuleVersionsRequest {
|
|
771
|
+
return QueryModuleVersionsRequest.fromAmino(object.value);
|
|
772
|
+
},
|
|
773
|
+
toAminoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAminoMsg {
|
|
774
|
+
return {
|
|
775
|
+
type: "cosmos-sdk/QueryModuleVersionsRequest",
|
|
776
|
+
value: QueryModuleVersionsRequest.toAmino(message)
|
|
777
|
+
};
|
|
778
|
+
},
|
|
779
|
+
fromProtoMsg(message: QueryModuleVersionsRequestProtoMsg): QueryModuleVersionsRequest {
|
|
780
|
+
return QueryModuleVersionsRequest.decode(message.value);
|
|
781
|
+
},
|
|
782
|
+
toProto(message: QueryModuleVersionsRequest): Uint8Array {
|
|
783
|
+
return QueryModuleVersionsRequest.encode(message).finish();
|
|
784
|
+
},
|
|
785
|
+
toProtoMsg(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestProtoMsg {
|
|
786
|
+
return {
|
|
787
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest",
|
|
788
|
+
value: QueryModuleVersionsRequest.encode(message).finish()
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
};
|
|
792
|
+
GlobalDecoderRegistry.register(QueryModuleVersionsRequest.typeUrl, QueryModuleVersionsRequest);
|
|
793
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryModuleVersionsRequest.aminoType, QueryModuleVersionsRequest.typeUrl);
|
|
794
|
+
function createBaseQueryModuleVersionsResponse(): QueryModuleVersionsResponse {
|
|
795
|
+
return {
|
|
796
|
+
moduleVersions: []
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
export const QueryModuleVersionsResponse = {
|
|
800
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse",
|
|
801
|
+
aminoType: "cosmos-sdk/QueryModuleVersionsResponse",
|
|
802
|
+
is(o: any): o is QueryModuleVersionsResponse {
|
|
803
|
+
return o && (o.$typeUrl === QueryModuleVersionsResponse.typeUrl || Array.isArray(o.moduleVersions) && (!o.moduleVersions.length || ModuleVersion.is(o.moduleVersions[0])));
|
|
804
|
+
},
|
|
805
|
+
isAmino(o: any): o is QueryModuleVersionsResponseAmino {
|
|
806
|
+
return o && (o.$typeUrl === QueryModuleVersionsResponse.typeUrl || Array.isArray(o.module_versions) && (!o.module_versions.length || ModuleVersion.isAmino(o.module_versions[0])));
|
|
807
|
+
},
|
|
808
|
+
encode(message: QueryModuleVersionsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
809
|
+
for (const v of message.moduleVersions) {
|
|
810
|
+
ModuleVersion.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
811
|
+
}
|
|
812
|
+
return writer;
|
|
813
|
+
},
|
|
814
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleVersionsResponse {
|
|
815
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
816
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
817
|
+
const message = createBaseQueryModuleVersionsResponse();
|
|
818
|
+
while (reader.pos < end) {
|
|
819
|
+
const tag = reader.uint32();
|
|
820
|
+
switch (tag >>> 3) {
|
|
821
|
+
case 1:
|
|
822
|
+
message.moduleVersions.push(ModuleVersion.decode(reader, reader.uint32()));
|
|
823
|
+
break;
|
|
824
|
+
default:
|
|
825
|
+
reader.skipType(tag & 7);
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
return message;
|
|
830
|
+
},
|
|
831
|
+
fromPartial(object: DeepPartial<QueryModuleVersionsResponse>): QueryModuleVersionsResponse {
|
|
832
|
+
const message = createBaseQueryModuleVersionsResponse();
|
|
833
|
+
message.moduleVersions = object.moduleVersions?.map(e => ModuleVersion.fromPartial(e)) || [];
|
|
834
|
+
return message;
|
|
835
|
+
},
|
|
836
|
+
fromAmino(object: QueryModuleVersionsResponseAmino): QueryModuleVersionsResponse {
|
|
837
|
+
const message = createBaseQueryModuleVersionsResponse();
|
|
838
|
+
message.moduleVersions = object.module_versions?.map(e => ModuleVersion.fromAmino(e)) || [];
|
|
839
|
+
return message;
|
|
840
|
+
},
|
|
841
|
+
toAmino(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseAmino {
|
|
842
|
+
const obj: any = {};
|
|
843
|
+
if (message.moduleVersions) {
|
|
844
|
+
obj.module_versions = message.moduleVersions.map(e => e ? ModuleVersion.toAmino(e) : undefined);
|
|
845
|
+
} else {
|
|
846
|
+
obj.module_versions = message.moduleVersions;
|
|
847
|
+
}
|
|
848
|
+
return obj;
|
|
849
|
+
},
|
|
850
|
+
fromAminoMsg(object: QueryModuleVersionsResponseAminoMsg): QueryModuleVersionsResponse {
|
|
851
|
+
return QueryModuleVersionsResponse.fromAmino(object.value);
|
|
852
|
+
},
|
|
853
|
+
toAminoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseAminoMsg {
|
|
854
|
+
return {
|
|
855
|
+
type: "cosmos-sdk/QueryModuleVersionsResponse",
|
|
856
|
+
value: QueryModuleVersionsResponse.toAmino(message)
|
|
857
|
+
};
|
|
858
|
+
},
|
|
859
|
+
fromProtoMsg(message: QueryModuleVersionsResponseProtoMsg): QueryModuleVersionsResponse {
|
|
860
|
+
return QueryModuleVersionsResponse.decode(message.value);
|
|
861
|
+
},
|
|
862
|
+
toProto(message: QueryModuleVersionsResponse): Uint8Array {
|
|
863
|
+
return QueryModuleVersionsResponse.encode(message).finish();
|
|
864
|
+
},
|
|
865
|
+
toProtoMsg(message: QueryModuleVersionsResponse): QueryModuleVersionsResponseProtoMsg {
|
|
866
|
+
return {
|
|
867
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse",
|
|
868
|
+
value: QueryModuleVersionsResponse.encode(message).finish()
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
GlobalDecoderRegistry.register(QueryModuleVersionsResponse.typeUrl, QueryModuleVersionsResponse);
|
|
873
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryModuleVersionsResponse.aminoType, QueryModuleVersionsResponse.typeUrl);
|
|
874
|
+
function createBaseQueryAuthorityRequest(): QueryAuthorityRequest {
|
|
875
|
+
return {};
|
|
876
|
+
}
|
|
877
|
+
export const QueryAuthorityRequest = {
|
|
878
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest",
|
|
879
|
+
aminoType: "cosmos-sdk/QueryAuthorityRequest",
|
|
880
|
+
is(o: any): o is QueryAuthorityRequest {
|
|
881
|
+
return o && o.$typeUrl === QueryAuthorityRequest.typeUrl;
|
|
882
|
+
},
|
|
883
|
+
isAmino(o: any): o is QueryAuthorityRequestAmino {
|
|
884
|
+
return o && o.$typeUrl === QueryAuthorityRequest.typeUrl;
|
|
885
|
+
},
|
|
886
|
+
encode(_: QueryAuthorityRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
887
|
+
return writer;
|
|
888
|
+
},
|
|
889
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityRequest {
|
|
890
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
891
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
892
|
+
const message = createBaseQueryAuthorityRequest();
|
|
893
|
+
while (reader.pos < end) {
|
|
894
|
+
const tag = reader.uint32();
|
|
895
|
+
switch (tag >>> 3) {
|
|
896
|
+
default:
|
|
897
|
+
reader.skipType(tag & 7);
|
|
898
|
+
break;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
return message;
|
|
902
|
+
},
|
|
903
|
+
fromPartial(_: DeepPartial<QueryAuthorityRequest>): QueryAuthorityRequest {
|
|
904
|
+
const message = createBaseQueryAuthorityRequest();
|
|
905
|
+
return message;
|
|
906
|
+
},
|
|
907
|
+
fromAmino(_: QueryAuthorityRequestAmino): QueryAuthorityRequest {
|
|
908
|
+
const message = createBaseQueryAuthorityRequest();
|
|
909
|
+
return message;
|
|
910
|
+
},
|
|
911
|
+
toAmino(_: QueryAuthorityRequest): QueryAuthorityRequestAmino {
|
|
912
|
+
const obj: any = {};
|
|
913
|
+
return obj;
|
|
914
|
+
},
|
|
915
|
+
fromAminoMsg(object: QueryAuthorityRequestAminoMsg): QueryAuthorityRequest {
|
|
916
|
+
return QueryAuthorityRequest.fromAmino(object.value);
|
|
917
|
+
},
|
|
918
|
+
toAminoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestAminoMsg {
|
|
919
|
+
return {
|
|
920
|
+
type: "cosmos-sdk/QueryAuthorityRequest",
|
|
921
|
+
value: QueryAuthorityRequest.toAmino(message)
|
|
922
|
+
};
|
|
923
|
+
},
|
|
924
|
+
fromProtoMsg(message: QueryAuthorityRequestProtoMsg): QueryAuthorityRequest {
|
|
925
|
+
return QueryAuthorityRequest.decode(message.value);
|
|
926
|
+
},
|
|
927
|
+
toProto(message: QueryAuthorityRequest): Uint8Array {
|
|
928
|
+
return QueryAuthorityRequest.encode(message).finish();
|
|
929
|
+
},
|
|
930
|
+
toProtoMsg(message: QueryAuthorityRequest): QueryAuthorityRequestProtoMsg {
|
|
931
|
+
return {
|
|
932
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest",
|
|
933
|
+
value: QueryAuthorityRequest.encode(message).finish()
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
};
|
|
937
|
+
GlobalDecoderRegistry.register(QueryAuthorityRequest.typeUrl, QueryAuthorityRequest);
|
|
938
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAuthorityRequest.aminoType, QueryAuthorityRequest.typeUrl);
|
|
939
|
+
function createBaseQueryAuthorityResponse(): QueryAuthorityResponse {
|
|
940
|
+
return {
|
|
941
|
+
address: ""
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
export const QueryAuthorityResponse = {
|
|
945
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse",
|
|
946
|
+
aminoType: "cosmos-sdk/QueryAuthorityResponse",
|
|
947
|
+
is(o: any): o is QueryAuthorityResponse {
|
|
948
|
+
return o && (o.$typeUrl === QueryAuthorityResponse.typeUrl || typeof o.address === "string");
|
|
949
|
+
},
|
|
950
|
+
isAmino(o: any): o is QueryAuthorityResponseAmino {
|
|
951
|
+
return o && (o.$typeUrl === QueryAuthorityResponse.typeUrl || typeof o.address === "string");
|
|
952
|
+
},
|
|
953
|
+
encode(message: QueryAuthorityResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
954
|
+
if (message.address !== "") {
|
|
955
|
+
writer.uint32(10).string(message.address);
|
|
956
|
+
}
|
|
957
|
+
return writer;
|
|
958
|
+
},
|
|
959
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAuthorityResponse {
|
|
960
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
961
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
962
|
+
const message = createBaseQueryAuthorityResponse();
|
|
963
|
+
while (reader.pos < end) {
|
|
964
|
+
const tag = reader.uint32();
|
|
965
|
+
switch (tag >>> 3) {
|
|
966
|
+
case 1:
|
|
967
|
+
message.address = reader.string();
|
|
968
|
+
break;
|
|
969
|
+
default:
|
|
970
|
+
reader.skipType(tag & 7);
|
|
971
|
+
break;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
return message;
|
|
975
|
+
},
|
|
976
|
+
fromPartial(object: DeepPartial<QueryAuthorityResponse>): QueryAuthorityResponse {
|
|
977
|
+
const message = createBaseQueryAuthorityResponse();
|
|
978
|
+
message.address = object.address ?? "";
|
|
979
|
+
return message;
|
|
980
|
+
},
|
|
981
|
+
fromAmino(object: QueryAuthorityResponseAmino): QueryAuthorityResponse {
|
|
982
|
+
const message = createBaseQueryAuthorityResponse();
|
|
983
|
+
if (object.address !== undefined && object.address !== null) {
|
|
984
|
+
message.address = object.address;
|
|
985
|
+
}
|
|
986
|
+
return message;
|
|
987
|
+
},
|
|
988
|
+
toAmino(message: QueryAuthorityResponse): QueryAuthorityResponseAmino {
|
|
989
|
+
const obj: any = {};
|
|
990
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
991
|
+
return obj;
|
|
992
|
+
},
|
|
993
|
+
fromAminoMsg(object: QueryAuthorityResponseAminoMsg): QueryAuthorityResponse {
|
|
994
|
+
return QueryAuthorityResponse.fromAmino(object.value);
|
|
995
|
+
},
|
|
996
|
+
toAminoMsg(message: QueryAuthorityResponse): QueryAuthorityResponseAminoMsg {
|
|
997
|
+
return {
|
|
998
|
+
type: "cosmos-sdk/QueryAuthorityResponse",
|
|
999
|
+
value: QueryAuthorityResponse.toAmino(message)
|
|
1000
|
+
};
|
|
1001
|
+
},
|
|
1002
|
+
fromProtoMsg(message: QueryAuthorityResponseProtoMsg): QueryAuthorityResponse {
|
|
1003
|
+
return QueryAuthorityResponse.decode(message.value);
|
|
1004
|
+
},
|
|
1005
|
+
toProto(message: QueryAuthorityResponse): Uint8Array {
|
|
1006
|
+
return QueryAuthorityResponse.encode(message).finish();
|
|
1007
|
+
},
|
|
1008
|
+
toProtoMsg(message: QueryAuthorityResponse): QueryAuthorityResponseProtoMsg {
|
|
1009
|
+
return {
|
|
1010
|
+
typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse",
|
|
1011
|
+
value: QueryAuthorityResponse.encode(message).finish()
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
1014
|
+
};
|
|
1015
|
+
GlobalDecoderRegistry.register(QueryAuthorityResponse.typeUrl, QueryAuthorityResponse);
|
|
1016
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAuthorityResponse.aminoType, QueryAuthorityResponse.typeUrl);
|