@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,2034 @@
|
|
|
1
|
+
import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "../../base/query/v1beta1/pagination";
|
|
2
|
+
import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
|
|
3
|
+
import { Params, ParamsAmino, BaseAccount, BaseAccountProtoMsg, BaseAccountAmino, ModuleAccount, ModuleAccountProtoMsg } from "./auth";
|
|
4
|
+
import { EthAccount, EthAccountProtoMsg } from "../../../ethermint/types/v1/account";
|
|
5
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
6
|
+
import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
7
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
8
|
+
/**
|
|
9
|
+
* QueryAccountsRequest is the request type for the Query/Accounts RPC method.
|
|
10
|
+
*
|
|
11
|
+
* Since: cosmos-sdk 0.43
|
|
12
|
+
*/
|
|
13
|
+
export interface QueryAccountsRequest {
|
|
14
|
+
/** pagination defines an optional pagination for the request. */
|
|
15
|
+
pagination?: PageRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface QueryAccountsRequestProtoMsg {
|
|
18
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest";
|
|
19
|
+
value: Uint8Array;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* QueryAccountsRequest is the request type for the Query/Accounts RPC method.
|
|
23
|
+
*
|
|
24
|
+
* Since: cosmos-sdk 0.43
|
|
25
|
+
*/
|
|
26
|
+
export interface QueryAccountsRequestAmino {
|
|
27
|
+
/** pagination defines an optional pagination for the request. */
|
|
28
|
+
pagination?: PageRequestAmino;
|
|
29
|
+
}
|
|
30
|
+
export interface QueryAccountsRequestAminoMsg {
|
|
31
|
+
type: "cosmos-sdk/QueryAccountsRequest";
|
|
32
|
+
value: QueryAccountsRequestAmino;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* QueryAccountsResponse is the response type for the Query/Accounts RPC method.
|
|
36
|
+
*
|
|
37
|
+
* Since: cosmos-sdk 0.43
|
|
38
|
+
*/
|
|
39
|
+
export interface QueryAccountsResponse {
|
|
40
|
+
/** accounts are the existing accounts */
|
|
41
|
+
accounts: (BaseAccount | EthAccount | Any)[] | Any[];
|
|
42
|
+
/** pagination defines the pagination in the response. */
|
|
43
|
+
pagination?: PageResponse;
|
|
44
|
+
}
|
|
45
|
+
export interface QueryAccountsResponseProtoMsg {
|
|
46
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse";
|
|
47
|
+
value: Uint8Array;
|
|
48
|
+
}
|
|
49
|
+
export type QueryAccountsResponseEncoded = Omit<QueryAccountsResponse, "accounts"> & {
|
|
50
|
+
/** accounts are the existing accounts */accounts: (BaseAccountProtoMsg | EthAccountProtoMsg | AnyProtoMsg)[];
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* QueryAccountsResponse is the response type for the Query/Accounts RPC method.
|
|
54
|
+
*
|
|
55
|
+
* Since: cosmos-sdk 0.43
|
|
56
|
+
*/
|
|
57
|
+
export interface QueryAccountsResponseAmino {
|
|
58
|
+
/** accounts are the existing accounts */
|
|
59
|
+
accounts: AnyAmino[];
|
|
60
|
+
/** pagination defines the pagination in the response. */
|
|
61
|
+
pagination?: PageResponseAmino;
|
|
62
|
+
}
|
|
63
|
+
export interface QueryAccountsResponseAminoMsg {
|
|
64
|
+
type: "cosmos-sdk/QueryAccountsResponse";
|
|
65
|
+
value: QueryAccountsResponseAmino;
|
|
66
|
+
}
|
|
67
|
+
/** QueryAccountRequest is the request type for the Query/Account RPC method. */
|
|
68
|
+
export interface QueryAccountRequest {
|
|
69
|
+
/** address defines the address to query for. */
|
|
70
|
+
address: string;
|
|
71
|
+
}
|
|
72
|
+
export interface QueryAccountRequestProtoMsg {
|
|
73
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest";
|
|
74
|
+
value: Uint8Array;
|
|
75
|
+
}
|
|
76
|
+
/** QueryAccountRequest is the request type for the Query/Account RPC method. */
|
|
77
|
+
export interface QueryAccountRequestAmino {
|
|
78
|
+
/** address defines the address to query for. */
|
|
79
|
+
address: string;
|
|
80
|
+
}
|
|
81
|
+
export interface QueryAccountRequestAminoMsg {
|
|
82
|
+
type: "cosmos-sdk/QueryAccountRequest";
|
|
83
|
+
value: QueryAccountRequestAmino;
|
|
84
|
+
}
|
|
85
|
+
/** QueryAccountResponse is the response type for the Query/Account RPC method. */
|
|
86
|
+
export interface QueryAccountResponse {
|
|
87
|
+
/** account defines the account of the corresponding address. */
|
|
88
|
+
account?: BaseAccount | EthAccount | Any | undefined;
|
|
89
|
+
}
|
|
90
|
+
export interface QueryAccountResponseProtoMsg {
|
|
91
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse";
|
|
92
|
+
value: Uint8Array;
|
|
93
|
+
}
|
|
94
|
+
export type QueryAccountResponseEncoded = Omit<QueryAccountResponse, "account"> & {
|
|
95
|
+
/** account defines the account of the corresponding address. */account?: BaseAccountProtoMsg | EthAccountProtoMsg | AnyProtoMsg | undefined;
|
|
96
|
+
};
|
|
97
|
+
/** QueryAccountResponse is the response type for the Query/Account RPC method. */
|
|
98
|
+
export interface QueryAccountResponseAmino {
|
|
99
|
+
/** account defines the account of the corresponding address. */
|
|
100
|
+
account?: AnyAmino;
|
|
101
|
+
}
|
|
102
|
+
export interface QueryAccountResponseAminoMsg {
|
|
103
|
+
type: "cosmos-sdk/QueryAccountResponse";
|
|
104
|
+
value: QueryAccountResponseAmino;
|
|
105
|
+
}
|
|
106
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
107
|
+
export interface QueryParamsRequest {}
|
|
108
|
+
export interface QueryParamsRequestProtoMsg {
|
|
109
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest";
|
|
110
|
+
value: Uint8Array;
|
|
111
|
+
}
|
|
112
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
113
|
+
export interface QueryParamsRequestAmino {}
|
|
114
|
+
export interface QueryParamsRequestAminoMsg {
|
|
115
|
+
type: "cosmos-sdk/QueryParamsRequest";
|
|
116
|
+
value: QueryParamsRequestAmino;
|
|
117
|
+
}
|
|
118
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
119
|
+
export interface QueryParamsResponse {
|
|
120
|
+
/** params defines the parameters of the module. */
|
|
121
|
+
params: Params;
|
|
122
|
+
}
|
|
123
|
+
export interface QueryParamsResponseProtoMsg {
|
|
124
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse";
|
|
125
|
+
value: Uint8Array;
|
|
126
|
+
}
|
|
127
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
128
|
+
export interface QueryParamsResponseAmino {
|
|
129
|
+
/** params defines the parameters of the module. */
|
|
130
|
+
params: ParamsAmino;
|
|
131
|
+
}
|
|
132
|
+
export interface QueryParamsResponseAminoMsg {
|
|
133
|
+
type: "cosmos-sdk/QueryParamsResponse";
|
|
134
|
+
value: QueryParamsResponseAmino;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.
|
|
138
|
+
*
|
|
139
|
+
* Since: cosmos-sdk 0.46
|
|
140
|
+
*/
|
|
141
|
+
export interface QueryModuleAccountsRequest {}
|
|
142
|
+
export interface QueryModuleAccountsRequestProtoMsg {
|
|
143
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest";
|
|
144
|
+
value: Uint8Array;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.
|
|
148
|
+
*
|
|
149
|
+
* Since: cosmos-sdk 0.46
|
|
150
|
+
*/
|
|
151
|
+
export interface QueryModuleAccountsRequestAmino {}
|
|
152
|
+
export interface QueryModuleAccountsRequestAminoMsg {
|
|
153
|
+
type: "cosmos-sdk/QueryModuleAccountsRequest";
|
|
154
|
+
value: QueryModuleAccountsRequestAmino;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.
|
|
158
|
+
*
|
|
159
|
+
* Since: cosmos-sdk 0.46
|
|
160
|
+
*/
|
|
161
|
+
export interface QueryModuleAccountsResponse {
|
|
162
|
+
accounts: (ModuleAccount | Any)[] | Any[];
|
|
163
|
+
}
|
|
164
|
+
export interface QueryModuleAccountsResponseProtoMsg {
|
|
165
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse";
|
|
166
|
+
value: Uint8Array;
|
|
167
|
+
}
|
|
168
|
+
export type QueryModuleAccountsResponseEncoded = Omit<QueryModuleAccountsResponse, "accounts"> & {
|
|
169
|
+
accounts: (ModuleAccountProtoMsg | AnyProtoMsg)[];
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.
|
|
173
|
+
*
|
|
174
|
+
* Since: cosmos-sdk 0.46
|
|
175
|
+
*/
|
|
176
|
+
export interface QueryModuleAccountsResponseAmino {
|
|
177
|
+
accounts: AnyAmino[];
|
|
178
|
+
}
|
|
179
|
+
export interface QueryModuleAccountsResponseAminoMsg {
|
|
180
|
+
type: "cosmos-sdk/QueryModuleAccountsResponse";
|
|
181
|
+
value: QueryModuleAccountsResponseAmino;
|
|
182
|
+
}
|
|
183
|
+
/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */
|
|
184
|
+
export interface QueryModuleAccountByNameRequest {
|
|
185
|
+
name: string;
|
|
186
|
+
}
|
|
187
|
+
export interface QueryModuleAccountByNameRequestProtoMsg {
|
|
188
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest";
|
|
189
|
+
value: Uint8Array;
|
|
190
|
+
}
|
|
191
|
+
/** QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. */
|
|
192
|
+
export interface QueryModuleAccountByNameRequestAmino {
|
|
193
|
+
name: string;
|
|
194
|
+
}
|
|
195
|
+
export interface QueryModuleAccountByNameRequestAminoMsg {
|
|
196
|
+
type: "cosmos-sdk/QueryModuleAccountByNameRequest";
|
|
197
|
+
value: QueryModuleAccountByNameRequestAmino;
|
|
198
|
+
}
|
|
199
|
+
/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */
|
|
200
|
+
export interface QueryModuleAccountByNameResponse {
|
|
201
|
+
account?: ModuleAccount | Any | undefined;
|
|
202
|
+
}
|
|
203
|
+
export interface QueryModuleAccountByNameResponseProtoMsg {
|
|
204
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse";
|
|
205
|
+
value: Uint8Array;
|
|
206
|
+
}
|
|
207
|
+
export type QueryModuleAccountByNameResponseEncoded = Omit<QueryModuleAccountByNameResponse, "account"> & {
|
|
208
|
+
account?: ModuleAccountProtoMsg | AnyProtoMsg | undefined;
|
|
209
|
+
};
|
|
210
|
+
/** QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. */
|
|
211
|
+
export interface QueryModuleAccountByNameResponseAmino {
|
|
212
|
+
account?: AnyAmino;
|
|
213
|
+
}
|
|
214
|
+
export interface QueryModuleAccountByNameResponseAminoMsg {
|
|
215
|
+
type: "cosmos-sdk/QueryModuleAccountByNameResponse";
|
|
216
|
+
value: QueryModuleAccountByNameResponseAmino;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
|
|
220
|
+
*
|
|
221
|
+
* Since: cosmos-sdk 0.46
|
|
222
|
+
*/
|
|
223
|
+
export interface Bech32PrefixRequest {}
|
|
224
|
+
export interface Bech32PrefixRequestProtoMsg {
|
|
225
|
+
typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest";
|
|
226
|
+
value: Uint8Array;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
|
|
230
|
+
*
|
|
231
|
+
* Since: cosmos-sdk 0.46
|
|
232
|
+
*/
|
|
233
|
+
export interface Bech32PrefixRequestAmino {}
|
|
234
|
+
export interface Bech32PrefixRequestAminoMsg {
|
|
235
|
+
type: "cosmos-sdk/Bech32PrefixRequest";
|
|
236
|
+
value: Bech32PrefixRequestAmino;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
|
|
240
|
+
*
|
|
241
|
+
* Since: cosmos-sdk 0.46
|
|
242
|
+
*/
|
|
243
|
+
export interface Bech32PrefixResponse {
|
|
244
|
+
bech32Prefix: string;
|
|
245
|
+
}
|
|
246
|
+
export interface Bech32PrefixResponseProtoMsg {
|
|
247
|
+
typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse";
|
|
248
|
+
value: Uint8Array;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
|
|
252
|
+
*
|
|
253
|
+
* Since: cosmos-sdk 0.46
|
|
254
|
+
*/
|
|
255
|
+
export interface Bech32PrefixResponseAmino {
|
|
256
|
+
bech32_prefix: string;
|
|
257
|
+
}
|
|
258
|
+
export interface Bech32PrefixResponseAminoMsg {
|
|
259
|
+
type: "cosmos-sdk/Bech32PrefixResponse";
|
|
260
|
+
value: Bech32PrefixResponseAmino;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* AddressBytesToStringRequest is the request type for AddressString rpc method.
|
|
264
|
+
*
|
|
265
|
+
* Since: cosmos-sdk 0.46
|
|
266
|
+
*/
|
|
267
|
+
export interface AddressBytesToStringRequest {
|
|
268
|
+
addressBytes: Uint8Array;
|
|
269
|
+
}
|
|
270
|
+
export interface AddressBytesToStringRequestProtoMsg {
|
|
271
|
+
typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest";
|
|
272
|
+
value: Uint8Array;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* AddressBytesToStringRequest is the request type for AddressString rpc method.
|
|
276
|
+
*
|
|
277
|
+
* Since: cosmos-sdk 0.46
|
|
278
|
+
*/
|
|
279
|
+
export interface AddressBytesToStringRequestAmino {
|
|
280
|
+
address_bytes: string;
|
|
281
|
+
}
|
|
282
|
+
export interface AddressBytesToStringRequestAminoMsg {
|
|
283
|
+
type: "cosmos-sdk/AddressBytesToStringRequest";
|
|
284
|
+
value: AddressBytesToStringRequestAmino;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* AddressBytesToStringResponse is the response type for AddressString rpc method.
|
|
288
|
+
*
|
|
289
|
+
* Since: cosmos-sdk 0.46
|
|
290
|
+
*/
|
|
291
|
+
export interface AddressBytesToStringResponse {
|
|
292
|
+
addressString: string;
|
|
293
|
+
}
|
|
294
|
+
export interface AddressBytesToStringResponseProtoMsg {
|
|
295
|
+
typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse";
|
|
296
|
+
value: Uint8Array;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* AddressBytesToStringResponse is the response type for AddressString rpc method.
|
|
300
|
+
*
|
|
301
|
+
* Since: cosmos-sdk 0.46
|
|
302
|
+
*/
|
|
303
|
+
export interface AddressBytesToStringResponseAmino {
|
|
304
|
+
address_string: string;
|
|
305
|
+
}
|
|
306
|
+
export interface AddressBytesToStringResponseAminoMsg {
|
|
307
|
+
type: "cosmos-sdk/AddressBytesToStringResponse";
|
|
308
|
+
value: AddressBytesToStringResponseAmino;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* AddressStringToBytesRequest is the request type for AccountBytes rpc method.
|
|
312
|
+
*
|
|
313
|
+
* Since: cosmos-sdk 0.46
|
|
314
|
+
*/
|
|
315
|
+
export interface AddressStringToBytesRequest {
|
|
316
|
+
addressString: string;
|
|
317
|
+
}
|
|
318
|
+
export interface AddressStringToBytesRequestProtoMsg {
|
|
319
|
+
typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest";
|
|
320
|
+
value: Uint8Array;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* AddressStringToBytesRequest is the request type for AccountBytes rpc method.
|
|
324
|
+
*
|
|
325
|
+
* Since: cosmos-sdk 0.46
|
|
326
|
+
*/
|
|
327
|
+
export interface AddressStringToBytesRequestAmino {
|
|
328
|
+
address_string: string;
|
|
329
|
+
}
|
|
330
|
+
export interface AddressStringToBytesRequestAminoMsg {
|
|
331
|
+
type: "cosmos-sdk/AddressStringToBytesRequest";
|
|
332
|
+
value: AddressStringToBytesRequestAmino;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* AddressStringToBytesResponse is the response type for AddressBytes rpc method.
|
|
336
|
+
*
|
|
337
|
+
* Since: cosmos-sdk 0.46
|
|
338
|
+
*/
|
|
339
|
+
export interface AddressStringToBytesResponse {
|
|
340
|
+
addressBytes: Uint8Array;
|
|
341
|
+
}
|
|
342
|
+
export interface AddressStringToBytesResponseProtoMsg {
|
|
343
|
+
typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse";
|
|
344
|
+
value: Uint8Array;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* AddressStringToBytesResponse is the response type for AddressBytes rpc method.
|
|
348
|
+
*
|
|
349
|
+
* Since: cosmos-sdk 0.46
|
|
350
|
+
*/
|
|
351
|
+
export interface AddressStringToBytesResponseAmino {
|
|
352
|
+
address_bytes: string;
|
|
353
|
+
}
|
|
354
|
+
export interface AddressStringToBytesResponseAminoMsg {
|
|
355
|
+
type: "cosmos-sdk/AddressStringToBytesResponse";
|
|
356
|
+
value: AddressStringToBytesResponseAmino;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
|
|
360
|
+
*
|
|
361
|
+
* Since: cosmos-sdk 0.46.2
|
|
362
|
+
*/
|
|
363
|
+
export interface QueryAccountAddressByIDRequest {
|
|
364
|
+
/**
|
|
365
|
+
* Deprecated, use account_id instead
|
|
366
|
+
*
|
|
367
|
+
* id is the account number of the address to be queried. This field
|
|
368
|
+
* should have been an uint64 (like all account numbers), and will be
|
|
369
|
+
* updated to uint64 in a future version of the auth query.
|
|
370
|
+
*/
|
|
371
|
+
/** @deprecated */
|
|
372
|
+
id: bigint;
|
|
373
|
+
/**
|
|
374
|
+
* account_id is the account number of the address to be queried.
|
|
375
|
+
*
|
|
376
|
+
* Since: cosmos-sdk 0.47
|
|
377
|
+
*/
|
|
378
|
+
accountId: bigint;
|
|
379
|
+
}
|
|
380
|
+
export interface QueryAccountAddressByIDRequestProtoMsg {
|
|
381
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest";
|
|
382
|
+
value: Uint8Array;
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
|
|
386
|
+
*
|
|
387
|
+
* Since: cosmos-sdk 0.46.2
|
|
388
|
+
*/
|
|
389
|
+
export interface QueryAccountAddressByIDRequestAmino {
|
|
390
|
+
/**
|
|
391
|
+
* Deprecated, use account_id instead
|
|
392
|
+
*
|
|
393
|
+
* id is the account number of the address to be queried. This field
|
|
394
|
+
* should have been an uint64 (like all account numbers), and will be
|
|
395
|
+
* updated to uint64 in a future version of the auth query.
|
|
396
|
+
*/
|
|
397
|
+
/** @deprecated */
|
|
398
|
+
id: string;
|
|
399
|
+
/**
|
|
400
|
+
* account_id is the account number of the address to be queried.
|
|
401
|
+
*
|
|
402
|
+
* Since: cosmos-sdk 0.47
|
|
403
|
+
*/
|
|
404
|
+
account_id: string;
|
|
405
|
+
}
|
|
406
|
+
export interface QueryAccountAddressByIDRequestAminoMsg {
|
|
407
|
+
type: "cosmos-sdk/QueryAccountAddressByIDRequest";
|
|
408
|
+
value: QueryAccountAddressByIDRequestAmino;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
|
|
412
|
+
*
|
|
413
|
+
* Since: cosmos-sdk 0.46.2
|
|
414
|
+
*/
|
|
415
|
+
export interface QueryAccountAddressByIDResponse {
|
|
416
|
+
accountAddress: string;
|
|
417
|
+
}
|
|
418
|
+
export interface QueryAccountAddressByIDResponseProtoMsg {
|
|
419
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse";
|
|
420
|
+
value: Uint8Array;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
|
|
424
|
+
*
|
|
425
|
+
* Since: cosmos-sdk 0.46.2
|
|
426
|
+
*/
|
|
427
|
+
export interface QueryAccountAddressByIDResponseAmino {
|
|
428
|
+
account_address: string;
|
|
429
|
+
}
|
|
430
|
+
export interface QueryAccountAddressByIDResponseAminoMsg {
|
|
431
|
+
type: "cosmos-sdk/QueryAccountAddressByIDResponse";
|
|
432
|
+
value: QueryAccountAddressByIDResponseAmino;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* QueryAccountInfoRequest is the Query/AccountInfo request type.
|
|
436
|
+
*
|
|
437
|
+
* Since: cosmos-sdk 0.47
|
|
438
|
+
*/
|
|
439
|
+
export interface QueryAccountInfoRequest {
|
|
440
|
+
/** address is the account address string. */
|
|
441
|
+
address: string;
|
|
442
|
+
}
|
|
443
|
+
export interface QueryAccountInfoRequestProtoMsg {
|
|
444
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoRequest";
|
|
445
|
+
value: Uint8Array;
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* QueryAccountInfoRequest is the Query/AccountInfo request type.
|
|
449
|
+
*
|
|
450
|
+
* Since: cosmos-sdk 0.47
|
|
451
|
+
*/
|
|
452
|
+
export interface QueryAccountInfoRequestAmino {
|
|
453
|
+
/** address is the account address string. */
|
|
454
|
+
address: string;
|
|
455
|
+
}
|
|
456
|
+
export interface QueryAccountInfoRequestAminoMsg {
|
|
457
|
+
type: "cosmos-sdk/QueryAccountInfoRequest";
|
|
458
|
+
value: QueryAccountInfoRequestAmino;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* QueryAccountInfoResponse is the Query/AccountInfo response type.
|
|
462
|
+
*
|
|
463
|
+
* Since: cosmos-sdk 0.47
|
|
464
|
+
*/
|
|
465
|
+
export interface QueryAccountInfoResponse {
|
|
466
|
+
/** info is the account info which is represented by BaseAccount. */
|
|
467
|
+
info?: BaseAccount;
|
|
468
|
+
}
|
|
469
|
+
export interface QueryAccountInfoResponseProtoMsg {
|
|
470
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoResponse";
|
|
471
|
+
value: Uint8Array;
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* QueryAccountInfoResponse is the Query/AccountInfo response type.
|
|
475
|
+
*
|
|
476
|
+
* Since: cosmos-sdk 0.47
|
|
477
|
+
*/
|
|
478
|
+
export interface QueryAccountInfoResponseAmino {
|
|
479
|
+
/** info is the account info which is represented by BaseAccount. */
|
|
480
|
+
info?: BaseAccountAmino;
|
|
481
|
+
}
|
|
482
|
+
export interface QueryAccountInfoResponseAminoMsg {
|
|
483
|
+
type: "cosmos-sdk/QueryAccountInfoResponse";
|
|
484
|
+
value: QueryAccountInfoResponseAmino;
|
|
485
|
+
}
|
|
486
|
+
function createBaseQueryAccountsRequest(): QueryAccountsRequest {
|
|
487
|
+
return {
|
|
488
|
+
pagination: undefined
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
export const QueryAccountsRequest = {
|
|
492
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest",
|
|
493
|
+
aminoType: "cosmos-sdk/QueryAccountsRequest",
|
|
494
|
+
is(o: any): o is QueryAccountsRequest {
|
|
495
|
+
return o && o.$typeUrl === QueryAccountsRequest.typeUrl;
|
|
496
|
+
},
|
|
497
|
+
isAmino(o: any): o is QueryAccountsRequestAmino {
|
|
498
|
+
return o && o.$typeUrl === QueryAccountsRequest.typeUrl;
|
|
499
|
+
},
|
|
500
|
+
encode(message: QueryAccountsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
501
|
+
if (message.pagination !== undefined) {
|
|
502
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
503
|
+
}
|
|
504
|
+
return writer;
|
|
505
|
+
},
|
|
506
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsRequest {
|
|
507
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
508
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
509
|
+
const message = createBaseQueryAccountsRequest();
|
|
510
|
+
while (reader.pos < end) {
|
|
511
|
+
const tag = reader.uint32();
|
|
512
|
+
switch (tag >>> 3) {
|
|
513
|
+
case 1:
|
|
514
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
515
|
+
break;
|
|
516
|
+
default:
|
|
517
|
+
reader.skipType(tag & 7);
|
|
518
|
+
break;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
return message;
|
|
522
|
+
},
|
|
523
|
+
fromPartial(object: DeepPartial<QueryAccountsRequest>): QueryAccountsRequest {
|
|
524
|
+
const message = createBaseQueryAccountsRequest();
|
|
525
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
526
|
+
return message;
|
|
527
|
+
},
|
|
528
|
+
fromAmino(object: QueryAccountsRequestAmino): QueryAccountsRequest {
|
|
529
|
+
const message = createBaseQueryAccountsRequest();
|
|
530
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
531
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
532
|
+
}
|
|
533
|
+
return message;
|
|
534
|
+
},
|
|
535
|
+
toAmino(message: QueryAccountsRequest): QueryAccountsRequestAmino {
|
|
536
|
+
const obj: any = {};
|
|
537
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
538
|
+
return obj;
|
|
539
|
+
},
|
|
540
|
+
fromAminoMsg(object: QueryAccountsRequestAminoMsg): QueryAccountsRequest {
|
|
541
|
+
return QueryAccountsRequest.fromAmino(object.value);
|
|
542
|
+
},
|
|
543
|
+
toAminoMsg(message: QueryAccountsRequest): QueryAccountsRequestAminoMsg {
|
|
544
|
+
return {
|
|
545
|
+
type: "cosmos-sdk/QueryAccountsRequest",
|
|
546
|
+
value: QueryAccountsRequest.toAmino(message)
|
|
547
|
+
};
|
|
548
|
+
},
|
|
549
|
+
fromProtoMsg(message: QueryAccountsRequestProtoMsg): QueryAccountsRequest {
|
|
550
|
+
return QueryAccountsRequest.decode(message.value);
|
|
551
|
+
},
|
|
552
|
+
toProto(message: QueryAccountsRequest): Uint8Array {
|
|
553
|
+
return QueryAccountsRequest.encode(message).finish();
|
|
554
|
+
},
|
|
555
|
+
toProtoMsg(message: QueryAccountsRequest): QueryAccountsRequestProtoMsg {
|
|
556
|
+
return {
|
|
557
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest",
|
|
558
|
+
value: QueryAccountsRequest.encode(message).finish()
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
GlobalDecoderRegistry.register(QueryAccountsRequest.typeUrl, QueryAccountsRequest);
|
|
563
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountsRequest.aminoType, QueryAccountsRequest.typeUrl);
|
|
564
|
+
function createBaseQueryAccountsResponse(): QueryAccountsResponse {
|
|
565
|
+
return {
|
|
566
|
+
accounts: [],
|
|
567
|
+
pagination: undefined
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
export const QueryAccountsResponse = {
|
|
571
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse",
|
|
572
|
+
aminoType: "cosmos-sdk/QueryAccountsResponse",
|
|
573
|
+
is(o: any): o is QueryAccountsResponse {
|
|
574
|
+
return o && (o.$typeUrl === QueryAccountsResponse.typeUrl || Array.isArray(o.accounts) && (!o.accounts.length || BaseAccount.is(o.accounts[0]) || EthAccount.is(o.accounts[0]) || Any.is(o.accounts[0])));
|
|
575
|
+
},
|
|
576
|
+
isAmino(o: any): o is QueryAccountsResponseAmino {
|
|
577
|
+
return o && (o.$typeUrl === QueryAccountsResponse.typeUrl || Array.isArray(o.accounts) && (!o.accounts.length || BaseAccount.isAmino(o.accounts[0]) || EthAccount.isAmino(o.accounts[0]) || Any.isAmino(o.accounts[0])));
|
|
578
|
+
},
|
|
579
|
+
encode(message: QueryAccountsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
580
|
+
for (const v of message.accounts) {
|
|
581
|
+
Any.encode(GlobalDecoderRegistry.wrapAny(v!), writer.uint32(10).fork()).ldelim();
|
|
582
|
+
}
|
|
583
|
+
if (message.pagination !== undefined) {
|
|
584
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
585
|
+
}
|
|
586
|
+
return writer;
|
|
587
|
+
},
|
|
588
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountsResponse {
|
|
589
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
590
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
591
|
+
const message = createBaseQueryAccountsResponse();
|
|
592
|
+
while (reader.pos < end) {
|
|
593
|
+
const tag = reader.uint32();
|
|
594
|
+
switch (tag >>> 3) {
|
|
595
|
+
case 1:
|
|
596
|
+
message.accounts.push(GlobalDecoderRegistry.unwrapAny(reader));
|
|
597
|
+
break;
|
|
598
|
+
case 2:
|
|
599
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
600
|
+
break;
|
|
601
|
+
default:
|
|
602
|
+
reader.skipType(tag & 7);
|
|
603
|
+
break;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
return message;
|
|
607
|
+
},
|
|
608
|
+
fromPartial(object: DeepPartial<QueryAccountsResponse>): QueryAccountsResponse {
|
|
609
|
+
const message = createBaseQueryAccountsResponse();
|
|
610
|
+
message.accounts = object.accounts?.map(e => GlobalDecoderRegistry.fromPartial(e) as any) || [];
|
|
611
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
612
|
+
return message;
|
|
613
|
+
},
|
|
614
|
+
fromAmino(object: QueryAccountsResponseAmino): QueryAccountsResponse {
|
|
615
|
+
const message = createBaseQueryAccountsResponse();
|
|
616
|
+
message.accounts = object.accounts?.map(e => GlobalDecoderRegistry.fromAminoMsg(e)) || [];
|
|
617
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
618
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
619
|
+
}
|
|
620
|
+
return message;
|
|
621
|
+
},
|
|
622
|
+
toAmino(message: QueryAccountsResponse): QueryAccountsResponseAmino {
|
|
623
|
+
const obj: any = {};
|
|
624
|
+
if (message.accounts) {
|
|
625
|
+
obj.accounts = message.accounts.map(e => e ? GlobalDecoderRegistry.toAminoMsg(e) : undefined);
|
|
626
|
+
} else {
|
|
627
|
+
obj.accounts = message.accounts;
|
|
628
|
+
}
|
|
629
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
630
|
+
return obj;
|
|
631
|
+
},
|
|
632
|
+
fromAminoMsg(object: QueryAccountsResponseAminoMsg): QueryAccountsResponse {
|
|
633
|
+
return QueryAccountsResponse.fromAmino(object.value);
|
|
634
|
+
},
|
|
635
|
+
toAminoMsg(message: QueryAccountsResponse): QueryAccountsResponseAminoMsg {
|
|
636
|
+
return {
|
|
637
|
+
type: "cosmos-sdk/QueryAccountsResponse",
|
|
638
|
+
value: QueryAccountsResponse.toAmino(message)
|
|
639
|
+
};
|
|
640
|
+
},
|
|
641
|
+
fromProtoMsg(message: QueryAccountsResponseProtoMsg): QueryAccountsResponse {
|
|
642
|
+
return QueryAccountsResponse.decode(message.value);
|
|
643
|
+
},
|
|
644
|
+
toProto(message: QueryAccountsResponse): Uint8Array {
|
|
645
|
+
return QueryAccountsResponse.encode(message).finish();
|
|
646
|
+
},
|
|
647
|
+
toProtoMsg(message: QueryAccountsResponse): QueryAccountsResponseProtoMsg {
|
|
648
|
+
return {
|
|
649
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse",
|
|
650
|
+
value: QueryAccountsResponse.encode(message).finish()
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
GlobalDecoderRegistry.register(QueryAccountsResponse.typeUrl, QueryAccountsResponse);
|
|
655
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountsResponse.aminoType, QueryAccountsResponse.typeUrl);
|
|
656
|
+
function createBaseQueryAccountRequest(): QueryAccountRequest {
|
|
657
|
+
return {
|
|
658
|
+
address: ""
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
export const QueryAccountRequest = {
|
|
662
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest",
|
|
663
|
+
aminoType: "cosmos-sdk/QueryAccountRequest",
|
|
664
|
+
is(o: any): o is QueryAccountRequest {
|
|
665
|
+
return o && (o.$typeUrl === QueryAccountRequest.typeUrl || typeof o.address === "string");
|
|
666
|
+
},
|
|
667
|
+
isAmino(o: any): o is QueryAccountRequestAmino {
|
|
668
|
+
return o && (o.$typeUrl === QueryAccountRequest.typeUrl || typeof o.address === "string");
|
|
669
|
+
},
|
|
670
|
+
encode(message: QueryAccountRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
671
|
+
if (message.address !== "") {
|
|
672
|
+
writer.uint32(10).string(message.address);
|
|
673
|
+
}
|
|
674
|
+
return writer;
|
|
675
|
+
},
|
|
676
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountRequest {
|
|
677
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
678
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
679
|
+
const message = createBaseQueryAccountRequest();
|
|
680
|
+
while (reader.pos < end) {
|
|
681
|
+
const tag = reader.uint32();
|
|
682
|
+
switch (tag >>> 3) {
|
|
683
|
+
case 1:
|
|
684
|
+
message.address = reader.string();
|
|
685
|
+
break;
|
|
686
|
+
default:
|
|
687
|
+
reader.skipType(tag & 7);
|
|
688
|
+
break;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
return message;
|
|
692
|
+
},
|
|
693
|
+
fromPartial(object: DeepPartial<QueryAccountRequest>): QueryAccountRequest {
|
|
694
|
+
const message = createBaseQueryAccountRequest();
|
|
695
|
+
message.address = object.address ?? "";
|
|
696
|
+
return message;
|
|
697
|
+
},
|
|
698
|
+
fromAmino(object: QueryAccountRequestAmino): QueryAccountRequest {
|
|
699
|
+
const message = createBaseQueryAccountRequest();
|
|
700
|
+
if (object.address !== undefined && object.address !== null) {
|
|
701
|
+
message.address = object.address;
|
|
702
|
+
}
|
|
703
|
+
return message;
|
|
704
|
+
},
|
|
705
|
+
toAmino(message: QueryAccountRequest): QueryAccountRequestAmino {
|
|
706
|
+
const obj: any = {};
|
|
707
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
708
|
+
return obj;
|
|
709
|
+
},
|
|
710
|
+
fromAminoMsg(object: QueryAccountRequestAminoMsg): QueryAccountRequest {
|
|
711
|
+
return QueryAccountRequest.fromAmino(object.value);
|
|
712
|
+
},
|
|
713
|
+
toAminoMsg(message: QueryAccountRequest): QueryAccountRequestAminoMsg {
|
|
714
|
+
return {
|
|
715
|
+
type: "cosmos-sdk/QueryAccountRequest",
|
|
716
|
+
value: QueryAccountRequest.toAmino(message)
|
|
717
|
+
};
|
|
718
|
+
},
|
|
719
|
+
fromProtoMsg(message: QueryAccountRequestProtoMsg): QueryAccountRequest {
|
|
720
|
+
return QueryAccountRequest.decode(message.value);
|
|
721
|
+
},
|
|
722
|
+
toProto(message: QueryAccountRequest): Uint8Array {
|
|
723
|
+
return QueryAccountRequest.encode(message).finish();
|
|
724
|
+
},
|
|
725
|
+
toProtoMsg(message: QueryAccountRequest): QueryAccountRequestProtoMsg {
|
|
726
|
+
return {
|
|
727
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest",
|
|
728
|
+
value: QueryAccountRequest.encode(message).finish()
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
GlobalDecoderRegistry.register(QueryAccountRequest.typeUrl, QueryAccountRequest);
|
|
733
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountRequest.aminoType, QueryAccountRequest.typeUrl);
|
|
734
|
+
function createBaseQueryAccountResponse(): QueryAccountResponse {
|
|
735
|
+
return {
|
|
736
|
+
account: undefined
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
export const QueryAccountResponse = {
|
|
740
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse",
|
|
741
|
+
aminoType: "cosmos-sdk/QueryAccountResponse",
|
|
742
|
+
is(o: any): o is QueryAccountResponse {
|
|
743
|
+
return o && o.$typeUrl === QueryAccountResponse.typeUrl;
|
|
744
|
+
},
|
|
745
|
+
isAmino(o: any): o is QueryAccountResponseAmino {
|
|
746
|
+
return o && o.$typeUrl === QueryAccountResponse.typeUrl;
|
|
747
|
+
},
|
|
748
|
+
encode(message: QueryAccountResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
749
|
+
if (message.account !== undefined) {
|
|
750
|
+
Any.encode(GlobalDecoderRegistry.wrapAny(message.account), writer.uint32(10).fork()).ldelim();
|
|
751
|
+
}
|
|
752
|
+
return writer;
|
|
753
|
+
},
|
|
754
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountResponse {
|
|
755
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
756
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
757
|
+
const message = createBaseQueryAccountResponse();
|
|
758
|
+
while (reader.pos < end) {
|
|
759
|
+
const tag = reader.uint32();
|
|
760
|
+
switch (tag >>> 3) {
|
|
761
|
+
case 1:
|
|
762
|
+
message.account = GlobalDecoderRegistry.unwrapAny(reader);
|
|
763
|
+
break;
|
|
764
|
+
default:
|
|
765
|
+
reader.skipType(tag & 7);
|
|
766
|
+
break;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
return message;
|
|
770
|
+
},
|
|
771
|
+
fromPartial(object: DeepPartial<QueryAccountResponse>): QueryAccountResponse {
|
|
772
|
+
const message = createBaseQueryAccountResponse();
|
|
773
|
+
message.account = object.account !== undefined && object.account !== null ? GlobalDecoderRegistry.fromPartial(object.account) : undefined;
|
|
774
|
+
return message;
|
|
775
|
+
},
|
|
776
|
+
fromAmino(object: QueryAccountResponseAmino): QueryAccountResponse {
|
|
777
|
+
const message = createBaseQueryAccountResponse();
|
|
778
|
+
if (object.account !== undefined && object.account !== null) {
|
|
779
|
+
message.account = GlobalDecoderRegistry.fromAminoMsg(object.account);
|
|
780
|
+
}
|
|
781
|
+
return message;
|
|
782
|
+
},
|
|
783
|
+
toAmino(message: QueryAccountResponse): QueryAccountResponseAmino {
|
|
784
|
+
const obj: any = {};
|
|
785
|
+
obj.account = message.account ? GlobalDecoderRegistry.toAminoMsg(message.account) : undefined;
|
|
786
|
+
return obj;
|
|
787
|
+
},
|
|
788
|
+
fromAminoMsg(object: QueryAccountResponseAminoMsg): QueryAccountResponse {
|
|
789
|
+
return QueryAccountResponse.fromAmino(object.value);
|
|
790
|
+
},
|
|
791
|
+
toAminoMsg(message: QueryAccountResponse): QueryAccountResponseAminoMsg {
|
|
792
|
+
return {
|
|
793
|
+
type: "cosmos-sdk/QueryAccountResponse",
|
|
794
|
+
value: QueryAccountResponse.toAmino(message)
|
|
795
|
+
};
|
|
796
|
+
},
|
|
797
|
+
fromProtoMsg(message: QueryAccountResponseProtoMsg): QueryAccountResponse {
|
|
798
|
+
return QueryAccountResponse.decode(message.value);
|
|
799
|
+
},
|
|
800
|
+
toProto(message: QueryAccountResponse): Uint8Array {
|
|
801
|
+
return QueryAccountResponse.encode(message).finish();
|
|
802
|
+
},
|
|
803
|
+
toProtoMsg(message: QueryAccountResponse): QueryAccountResponseProtoMsg {
|
|
804
|
+
return {
|
|
805
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse",
|
|
806
|
+
value: QueryAccountResponse.encode(message).finish()
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
GlobalDecoderRegistry.register(QueryAccountResponse.typeUrl, QueryAccountResponse);
|
|
811
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountResponse.aminoType, QueryAccountResponse.typeUrl);
|
|
812
|
+
function createBaseQueryParamsRequest(): QueryParamsRequest {
|
|
813
|
+
return {};
|
|
814
|
+
}
|
|
815
|
+
export const QueryParamsRequest = {
|
|
816
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest",
|
|
817
|
+
aminoType: "cosmos-sdk/QueryParamsRequest",
|
|
818
|
+
is(o: any): o is QueryParamsRequest {
|
|
819
|
+
return o && o.$typeUrl === QueryParamsRequest.typeUrl;
|
|
820
|
+
},
|
|
821
|
+
isAmino(o: any): o is QueryParamsRequestAmino {
|
|
822
|
+
return o && o.$typeUrl === QueryParamsRequest.typeUrl;
|
|
823
|
+
},
|
|
824
|
+
encode(_: QueryParamsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
825
|
+
return writer;
|
|
826
|
+
},
|
|
827
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest {
|
|
828
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
829
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
830
|
+
const message = createBaseQueryParamsRequest();
|
|
831
|
+
while (reader.pos < end) {
|
|
832
|
+
const tag = reader.uint32();
|
|
833
|
+
switch (tag >>> 3) {
|
|
834
|
+
default:
|
|
835
|
+
reader.skipType(tag & 7);
|
|
836
|
+
break;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
return message;
|
|
840
|
+
},
|
|
841
|
+
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest {
|
|
842
|
+
const message = createBaseQueryParamsRequest();
|
|
843
|
+
return message;
|
|
844
|
+
},
|
|
845
|
+
fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest {
|
|
846
|
+
const message = createBaseQueryParamsRequest();
|
|
847
|
+
return message;
|
|
848
|
+
},
|
|
849
|
+
toAmino(_: QueryParamsRequest): QueryParamsRequestAmino {
|
|
850
|
+
const obj: any = {};
|
|
851
|
+
return obj;
|
|
852
|
+
},
|
|
853
|
+
fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest {
|
|
854
|
+
return QueryParamsRequest.fromAmino(object.value);
|
|
855
|
+
},
|
|
856
|
+
toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg {
|
|
857
|
+
return {
|
|
858
|
+
type: "cosmos-sdk/QueryParamsRequest",
|
|
859
|
+
value: QueryParamsRequest.toAmino(message)
|
|
860
|
+
};
|
|
861
|
+
},
|
|
862
|
+
fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest {
|
|
863
|
+
return QueryParamsRequest.decode(message.value);
|
|
864
|
+
},
|
|
865
|
+
toProto(message: QueryParamsRequest): Uint8Array {
|
|
866
|
+
return QueryParamsRequest.encode(message).finish();
|
|
867
|
+
},
|
|
868
|
+
toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg {
|
|
869
|
+
return {
|
|
870
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest",
|
|
871
|
+
value: QueryParamsRequest.encode(message).finish()
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
GlobalDecoderRegistry.register(QueryParamsRequest.typeUrl, QueryParamsRequest);
|
|
876
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsRequest.aminoType, QueryParamsRequest.typeUrl);
|
|
877
|
+
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
878
|
+
return {
|
|
879
|
+
params: Params.fromPartial({})
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
export const QueryParamsResponse = {
|
|
883
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse",
|
|
884
|
+
aminoType: "cosmos-sdk/QueryParamsResponse",
|
|
885
|
+
is(o: any): o is QueryParamsResponse {
|
|
886
|
+
return o && (o.$typeUrl === QueryParamsResponse.typeUrl || Params.is(o.params));
|
|
887
|
+
},
|
|
888
|
+
isAmino(o: any): o is QueryParamsResponseAmino {
|
|
889
|
+
return o && (o.$typeUrl === QueryParamsResponse.typeUrl || Params.isAmino(o.params));
|
|
890
|
+
},
|
|
891
|
+
encode(message: QueryParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
892
|
+
if (message.params !== undefined) {
|
|
893
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
894
|
+
}
|
|
895
|
+
return writer;
|
|
896
|
+
},
|
|
897
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse {
|
|
898
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
899
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
900
|
+
const message = createBaseQueryParamsResponse();
|
|
901
|
+
while (reader.pos < end) {
|
|
902
|
+
const tag = reader.uint32();
|
|
903
|
+
switch (tag >>> 3) {
|
|
904
|
+
case 1:
|
|
905
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
906
|
+
break;
|
|
907
|
+
default:
|
|
908
|
+
reader.skipType(tag & 7);
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
return message;
|
|
913
|
+
},
|
|
914
|
+
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse {
|
|
915
|
+
const message = createBaseQueryParamsResponse();
|
|
916
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
917
|
+
return message;
|
|
918
|
+
},
|
|
919
|
+
fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse {
|
|
920
|
+
const message = createBaseQueryParamsResponse();
|
|
921
|
+
if (object.params !== undefined && object.params !== null) {
|
|
922
|
+
message.params = Params.fromAmino(object.params);
|
|
923
|
+
}
|
|
924
|
+
return message;
|
|
925
|
+
},
|
|
926
|
+
toAmino(message: QueryParamsResponse): QueryParamsResponseAmino {
|
|
927
|
+
const obj: any = {};
|
|
928
|
+
obj.params = message.params ? Params.toAmino(message.params) : undefined;
|
|
929
|
+
return obj;
|
|
930
|
+
},
|
|
931
|
+
fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse {
|
|
932
|
+
return QueryParamsResponse.fromAmino(object.value);
|
|
933
|
+
},
|
|
934
|
+
toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg {
|
|
935
|
+
return {
|
|
936
|
+
type: "cosmos-sdk/QueryParamsResponse",
|
|
937
|
+
value: QueryParamsResponse.toAmino(message)
|
|
938
|
+
};
|
|
939
|
+
},
|
|
940
|
+
fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse {
|
|
941
|
+
return QueryParamsResponse.decode(message.value);
|
|
942
|
+
},
|
|
943
|
+
toProto(message: QueryParamsResponse): Uint8Array {
|
|
944
|
+
return QueryParamsResponse.encode(message).finish();
|
|
945
|
+
},
|
|
946
|
+
toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg {
|
|
947
|
+
return {
|
|
948
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse",
|
|
949
|
+
value: QueryParamsResponse.encode(message).finish()
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
};
|
|
953
|
+
GlobalDecoderRegistry.register(QueryParamsResponse.typeUrl, QueryParamsResponse);
|
|
954
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryParamsResponse.aminoType, QueryParamsResponse.typeUrl);
|
|
955
|
+
function createBaseQueryModuleAccountsRequest(): QueryModuleAccountsRequest {
|
|
956
|
+
return {};
|
|
957
|
+
}
|
|
958
|
+
export const QueryModuleAccountsRequest = {
|
|
959
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest",
|
|
960
|
+
aminoType: "cosmos-sdk/QueryModuleAccountsRequest",
|
|
961
|
+
is(o: any): o is QueryModuleAccountsRequest {
|
|
962
|
+
return o && o.$typeUrl === QueryModuleAccountsRequest.typeUrl;
|
|
963
|
+
},
|
|
964
|
+
isAmino(o: any): o is QueryModuleAccountsRequestAmino {
|
|
965
|
+
return o && o.$typeUrl === QueryModuleAccountsRequest.typeUrl;
|
|
966
|
+
},
|
|
967
|
+
encode(_: QueryModuleAccountsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
968
|
+
return writer;
|
|
969
|
+
},
|
|
970
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsRequest {
|
|
971
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
972
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
973
|
+
const message = createBaseQueryModuleAccountsRequest();
|
|
974
|
+
while (reader.pos < end) {
|
|
975
|
+
const tag = reader.uint32();
|
|
976
|
+
switch (tag >>> 3) {
|
|
977
|
+
default:
|
|
978
|
+
reader.skipType(tag & 7);
|
|
979
|
+
break;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
return message;
|
|
983
|
+
},
|
|
984
|
+
fromPartial(_: DeepPartial<QueryModuleAccountsRequest>): QueryModuleAccountsRequest {
|
|
985
|
+
const message = createBaseQueryModuleAccountsRequest();
|
|
986
|
+
return message;
|
|
987
|
+
},
|
|
988
|
+
fromAmino(_: QueryModuleAccountsRequestAmino): QueryModuleAccountsRequest {
|
|
989
|
+
const message = createBaseQueryModuleAccountsRequest();
|
|
990
|
+
return message;
|
|
991
|
+
},
|
|
992
|
+
toAmino(_: QueryModuleAccountsRequest): QueryModuleAccountsRequestAmino {
|
|
993
|
+
const obj: any = {};
|
|
994
|
+
return obj;
|
|
995
|
+
},
|
|
996
|
+
fromAminoMsg(object: QueryModuleAccountsRequestAminoMsg): QueryModuleAccountsRequest {
|
|
997
|
+
return QueryModuleAccountsRequest.fromAmino(object.value);
|
|
998
|
+
},
|
|
999
|
+
toAminoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestAminoMsg {
|
|
1000
|
+
return {
|
|
1001
|
+
type: "cosmos-sdk/QueryModuleAccountsRequest",
|
|
1002
|
+
value: QueryModuleAccountsRequest.toAmino(message)
|
|
1003
|
+
};
|
|
1004
|
+
},
|
|
1005
|
+
fromProtoMsg(message: QueryModuleAccountsRequestProtoMsg): QueryModuleAccountsRequest {
|
|
1006
|
+
return QueryModuleAccountsRequest.decode(message.value);
|
|
1007
|
+
},
|
|
1008
|
+
toProto(message: QueryModuleAccountsRequest): Uint8Array {
|
|
1009
|
+
return QueryModuleAccountsRequest.encode(message).finish();
|
|
1010
|
+
},
|
|
1011
|
+
toProtoMsg(message: QueryModuleAccountsRequest): QueryModuleAccountsRequestProtoMsg {
|
|
1012
|
+
return {
|
|
1013
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest",
|
|
1014
|
+
value: QueryModuleAccountsRequest.encode(message).finish()
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
};
|
|
1018
|
+
GlobalDecoderRegistry.register(QueryModuleAccountsRequest.typeUrl, QueryModuleAccountsRequest);
|
|
1019
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryModuleAccountsRequest.aminoType, QueryModuleAccountsRequest.typeUrl);
|
|
1020
|
+
function createBaseQueryModuleAccountsResponse(): QueryModuleAccountsResponse {
|
|
1021
|
+
return {
|
|
1022
|
+
accounts: []
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
export const QueryModuleAccountsResponse = {
|
|
1026
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse",
|
|
1027
|
+
aminoType: "cosmos-sdk/QueryModuleAccountsResponse",
|
|
1028
|
+
is(o: any): o is QueryModuleAccountsResponse {
|
|
1029
|
+
return o && (o.$typeUrl === QueryModuleAccountsResponse.typeUrl || Array.isArray(o.accounts) && (!o.accounts.length || ModuleAccount.is(o.accounts[0]) || Any.is(o.accounts[0])));
|
|
1030
|
+
},
|
|
1031
|
+
isAmino(o: any): o is QueryModuleAccountsResponseAmino {
|
|
1032
|
+
return o && (o.$typeUrl === QueryModuleAccountsResponse.typeUrl || Array.isArray(o.accounts) && (!o.accounts.length || ModuleAccount.isAmino(o.accounts[0]) || Any.isAmino(o.accounts[0])));
|
|
1033
|
+
},
|
|
1034
|
+
encode(message: QueryModuleAccountsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1035
|
+
for (const v of message.accounts) {
|
|
1036
|
+
Any.encode(GlobalDecoderRegistry.wrapAny(v!), writer.uint32(10).fork()).ldelim();
|
|
1037
|
+
}
|
|
1038
|
+
return writer;
|
|
1039
|
+
},
|
|
1040
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountsResponse {
|
|
1041
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1042
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1043
|
+
const message = createBaseQueryModuleAccountsResponse();
|
|
1044
|
+
while (reader.pos < end) {
|
|
1045
|
+
const tag = reader.uint32();
|
|
1046
|
+
switch (tag >>> 3) {
|
|
1047
|
+
case 1:
|
|
1048
|
+
message.accounts.push(GlobalDecoderRegistry.unwrapAny(reader));
|
|
1049
|
+
break;
|
|
1050
|
+
default:
|
|
1051
|
+
reader.skipType(tag & 7);
|
|
1052
|
+
break;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
return message;
|
|
1056
|
+
},
|
|
1057
|
+
fromPartial(object: DeepPartial<QueryModuleAccountsResponse>): QueryModuleAccountsResponse {
|
|
1058
|
+
const message = createBaseQueryModuleAccountsResponse();
|
|
1059
|
+
message.accounts = object.accounts?.map(e => GlobalDecoderRegistry.fromPartial(e) as any) || [];
|
|
1060
|
+
return message;
|
|
1061
|
+
},
|
|
1062
|
+
fromAmino(object: QueryModuleAccountsResponseAmino): QueryModuleAccountsResponse {
|
|
1063
|
+
const message = createBaseQueryModuleAccountsResponse();
|
|
1064
|
+
message.accounts = object.accounts?.map(e => GlobalDecoderRegistry.fromAminoMsg(e)) || [];
|
|
1065
|
+
return message;
|
|
1066
|
+
},
|
|
1067
|
+
toAmino(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAmino {
|
|
1068
|
+
const obj: any = {};
|
|
1069
|
+
if (message.accounts) {
|
|
1070
|
+
obj.accounts = message.accounts.map(e => e ? GlobalDecoderRegistry.toAminoMsg(e) : undefined);
|
|
1071
|
+
} else {
|
|
1072
|
+
obj.accounts = message.accounts;
|
|
1073
|
+
}
|
|
1074
|
+
return obj;
|
|
1075
|
+
},
|
|
1076
|
+
fromAminoMsg(object: QueryModuleAccountsResponseAminoMsg): QueryModuleAccountsResponse {
|
|
1077
|
+
return QueryModuleAccountsResponse.fromAmino(object.value);
|
|
1078
|
+
},
|
|
1079
|
+
toAminoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseAminoMsg {
|
|
1080
|
+
return {
|
|
1081
|
+
type: "cosmos-sdk/QueryModuleAccountsResponse",
|
|
1082
|
+
value: QueryModuleAccountsResponse.toAmino(message)
|
|
1083
|
+
};
|
|
1084
|
+
},
|
|
1085
|
+
fromProtoMsg(message: QueryModuleAccountsResponseProtoMsg): QueryModuleAccountsResponse {
|
|
1086
|
+
return QueryModuleAccountsResponse.decode(message.value);
|
|
1087
|
+
},
|
|
1088
|
+
toProto(message: QueryModuleAccountsResponse): Uint8Array {
|
|
1089
|
+
return QueryModuleAccountsResponse.encode(message).finish();
|
|
1090
|
+
},
|
|
1091
|
+
toProtoMsg(message: QueryModuleAccountsResponse): QueryModuleAccountsResponseProtoMsg {
|
|
1092
|
+
return {
|
|
1093
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse",
|
|
1094
|
+
value: QueryModuleAccountsResponse.encode(message).finish()
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
};
|
|
1098
|
+
GlobalDecoderRegistry.register(QueryModuleAccountsResponse.typeUrl, QueryModuleAccountsResponse);
|
|
1099
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryModuleAccountsResponse.aminoType, QueryModuleAccountsResponse.typeUrl);
|
|
1100
|
+
function createBaseQueryModuleAccountByNameRequest(): QueryModuleAccountByNameRequest {
|
|
1101
|
+
return {
|
|
1102
|
+
name: ""
|
|
1103
|
+
};
|
|
1104
|
+
}
|
|
1105
|
+
export const QueryModuleAccountByNameRequest = {
|
|
1106
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest",
|
|
1107
|
+
aminoType: "cosmos-sdk/QueryModuleAccountByNameRequest",
|
|
1108
|
+
is(o: any): o is QueryModuleAccountByNameRequest {
|
|
1109
|
+
return o && (o.$typeUrl === QueryModuleAccountByNameRequest.typeUrl || typeof o.name === "string");
|
|
1110
|
+
},
|
|
1111
|
+
isAmino(o: any): o is QueryModuleAccountByNameRequestAmino {
|
|
1112
|
+
return o && (o.$typeUrl === QueryModuleAccountByNameRequest.typeUrl || typeof o.name === "string");
|
|
1113
|
+
},
|
|
1114
|
+
encode(message: QueryModuleAccountByNameRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1115
|
+
if (message.name !== "") {
|
|
1116
|
+
writer.uint32(10).string(message.name);
|
|
1117
|
+
}
|
|
1118
|
+
return writer;
|
|
1119
|
+
},
|
|
1120
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameRequest {
|
|
1121
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1122
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1123
|
+
const message = createBaseQueryModuleAccountByNameRequest();
|
|
1124
|
+
while (reader.pos < end) {
|
|
1125
|
+
const tag = reader.uint32();
|
|
1126
|
+
switch (tag >>> 3) {
|
|
1127
|
+
case 1:
|
|
1128
|
+
message.name = reader.string();
|
|
1129
|
+
break;
|
|
1130
|
+
default:
|
|
1131
|
+
reader.skipType(tag & 7);
|
|
1132
|
+
break;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
return message;
|
|
1136
|
+
},
|
|
1137
|
+
fromPartial(object: DeepPartial<QueryModuleAccountByNameRequest>): QueryModuleAccountByNameRequest {
|
|
1138
|
+
const message = createBaseQueryModuleAccountByNameRequest();
|
|
1139
|
+
message.name = object.name ?? "";
|
|
1140
|
+
return message;
|
|
1141
|
+
},
|
|
1142
|
+
fromAmino(object: QueryModuleAccountByNameRequestAmino): QueryModuleAccountByNameRequest {
|
|
1143
|
+
const message = createBaseQueryModuleAccountByNameRequest();
|
|
1144
|
+
if (object.name !== undefined && object.name !== null) {
|
|
1145
|
+
message.name = object.name;
|
|
1146
|
+
}
|
|
1147
|
+
return message;
|
|
1148
|
+
},
|
|
1149
|
+
toAmino(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestAmino {
|
|
1150
|
+
const obj: any = {};
|
|
1151
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
1152
|
+
return obj;
|
|
1153
|
+
},
|
|
1154
|
+
fromAminoMsg(object: QueryModuleAccountByNameRequestAminoMsg): QueryModuleAccountByNameRequest {
|
|
1155
|
+
return QueryModuleAccountByNameRequest.fromAmino(object.value);
|
|
1156
|
+
},
|
|
1157
|
+
toAminoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestAminoMsg {
|
|
1158
|
+
return {
|
|
1159
|
+
type: "cosmos-sdk/QueryModuleAccountByNameRequest",
|
|
1160
|
+
value: QueryModuleAccountByNameRequest.toAmino(message)
|
|
1161
|
+
};
|
|
1162
|
+
},
|
|
1163
|
+
fromProtoMsg(message: QueryModuleAccountByNameRequestProtoMsg): QueryModuleAccountByNameRequest {
|
|
1164
|
+
return QueryModuleAccountByNameRequest.decode(message.value);
|
|
1165
|
+
},
|
|
1166
|
+
toProto(message: QueryModuleAccountByNameRequest): Uint8Array {
|
|
1167
|
+
return QueryModuleAccountByNameRequest.encode(message).finish();
|
|
1168
|
+
},
|
|
1169
|
+
toProtoMsg(message: QueryModuleAccountByNameRequest): QueryModuleAccountByNameRequestProtoMsg {
|
|
1170
|
+
return {
|
|
1171
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest",
|
|
1172
|
+
value: QueryModuleAccountByNameRequest.encode(message).finish()
|
|
1173
|
+
};
|
|
1174
|
+
}
|
|
1175
|
+
};
|
|
1176
|
+
GlobalDecoderRegistry.register(QueryModuleAccountByNameRequest.typeUrl, QueryModuleAccountByNameRequest);
|
|
1177
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryModuleAccountByNameRequest.aminoType, QueryModuleAccountByNameRequest.typeUrl);
|
|
1178
|
+
function createBaseQueryModuleAccountByNameResponse(): QueryModuleAccountByNameResponse {
|
|
1179
|
+
return {
|
|
1180
|
+
account: undefined
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
export const QueryModuleAccountByNameResponse = {
|
|
1184
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse",
|
|
1185
|
+
aminoType: "cosmos-sdk/QueryModuleAccountByNameResponse",
|
|
1186
|
+
is(o: any): o is QueryModuleAccountByNameResponse {
|
|
1187
|
+
return o && o.$typeUrl === QueryModuleAccountByNameResponse.typeUrl;
|
|
1188
|
+
},
|
|
1189
|
+
isAmino(o: any): o is QueryModuleAccountByNameResponseAmino {
|
|
1190
|
+
return o && o.$typeUrl === QueryModuleAccountByNameResponse.typeUrl;
|
|
1191
|
+
},
|
|
1192
|
+
encode(message: QueryModuleAccountByNameResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1193
|
+
if (message.account !== undefined) {
|
|
1194
|
+
Any.encode(GlobalDecoderRegistry.wrapAny(message.account), writer.uint32(10).fork()).ldelim();
|
|
1195
|
+
}
|
|
1196
|
+
return writer;
|
|
1197
|
+
},
|
|
1198
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryModuleAccountByNameResponse {
|
|
1199
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1200
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1201
|
+
const message = createBaseQueryModuleAccountByNameResponse();
|
|
1202
|
+
while (reader.pos < end) {
|
|
1203
|
+
const tag = reader.uint32();
|
|
1204
|
+
switch (tag >>> 3) {
|
|
1205
|
+
case 1:
|
|
1206
|
+
message.account = GlobalDecoderRegistry.unwrapAny(reader);
|
|
1207
|
+
break;
|
|
1208
|
+
default:
|
|
1209
|
+
reader.skipType(tag & 7);
|
|
1210
|
+
break;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
return message;
|
|
1214
|
+
},
|
|
1215
|
+
fromPartial(object: DeepPartial<QueryModuleAccountByNameResponse>): QueryModuleAccountByNameResponse {
|
|
1216
|
+
const message = createBaseQueryModuleAccountByNameResponse();
|
|
1217
|
+
message.account = object.account !== undefined && object.account !== null ? GlobalDecoderRegistry.fromPartial(object.account) : undefined;
|
|
1218
|
+
return message;
|
|
1219
|
+
},
|
|
1220
|
+
fromAmino(object: QueryModuleAccountByNameResponseAmino): QueryModuleAccountByNameResponse {
|
|
1221
|
+
const message = createBaseQueryModuleAccountByNameResponse();
|
|
1222
|
+
if (object.account !== undefined && object.account !== null) {
|
|
1223
|
+
message.account = GlobalDecoderRegistry.fromAminoMsg(object.account);
|
|
1224
|
+
}
|
|
1225
|
+
return message;
|
|
1226
|
+
},
|
|
1227
|
+
toAmino(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAmino {
|
|
1228
|
+
const obj: any = {};
|
|
1229
|
+
obj.account = message.account ? GlobalDecoderRegistry.toAminoMsg(message.account) : undefined;
|
|
1230
|
+
return obj;
|
|
1231
|
+
},
|
|
1232
|
+
fromAminoMsg(object: QueryModuleAccountByNameResponseAminoMsg): QueryModuleAccountByNameResponse {
|
|
1233
|
+
return QueryModuleAccountByNameResponse.fromAmino(object.value);
|
|
1234
|
+
},
|
|
1235
|
+
toAminoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseAminoMsg {
|
|
1236
|
+
return {
|
|
1237
|
+
type: "cosmos-sdk/QueryModuleAccountByNameResponse",
|
|
1238
|
+
value: QueryModuleAccountByNameResponse.toAmino(message)
|
|
1239
|
+
};
|
|
1240
|
+
},
|
|
1241
|
+
fromProtoMsg(message: QueryModuleAccountByNameResponseProtoMsg): QueryModuleAccountByNameResponse {
|
|
1242
|
+
return QueryModuleAccountByNameResponse.decode(message.value);
|
|
1243
|
+
},
|
|
1244
|
+
toProto(message: QueryModuleAccountByNameResponse): Uint8Array {
|
|
1245
|
+
return QueryModuleAccountByNameResponse.encode(message).finish();
|
|
1246
|
+
},
|
|
1247
|
+
toProtoMsg(message: QueryModuleAccountByNameResponse): QueryModuleAccountByNameResponseProtoMsg {
|
|
1248
|
+
return {
|
|
1249
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse",
|
|
1250
|
+
value: QueryModuleAccountByNameResponse.encode(message).finish()
|
|
1251
|
+
};
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
GlobalDecoderRegistry.register(QueryModuleAccountByNameResponse.typeUrl, QueryModuleAccountByNameResponse);
|
|
1255
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryModuleAccountByNameResponse.aminoType, QueryModuleAccountByNameResponse.typeUrl);
|
|
1256
|
+
function createBaseBech32PrefixRequest(): Bech32PrefixRequest {
|
|
1257
|
+
return {};
|
|
1258
|
+
}
|
|
1259
|
+
export const Bech32PrefixRequest = {
|
|
1260
|
+
typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest",
|
|
1261
|
+
aminoType: "cosmos-sdk/Bech32PrefixRequest",
|
|
1262
|
+
is(o: any): o is Bech32PrefixRequest {
|
|
1263
|
+
return o && o.$typeUrl === Bech32PrefixRequest.typeUrl;
|
|
1264
|
+
},
|
|
1265
|
+
isAmino(o: any): o is Bech32PrefixRequestAmino {
|
|
1266
|
+
return o && o.$typeUrl === Bech32PrefixRequest.typeUrl;
|
|
1267
|
+
},
|
|
1268
|
+
encode(_: Bech32PrefixRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1269
|
+
return writer;
|
|
1270
|
+
},
|
|
1271
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixRequest {
|
|
1272
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1273
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1274
|
+
const message = createBaseBech32PrefixRequest();
|
|
1275
|
+
while (reader.pos < end) {
|
|
1276
|
+
const tag = reader.uint32();
|
|
1277
|
+
switch (tag >>> 3) {
|
|
1278
|
+
default:
|
|
1279
|
+
reader.skipType(tag & 7);
|
|
1280
|
+
break;
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
return message;
|
|
1284
|
+
},
|
|
1285
|
+
fromPartial(_: DeepPartial<Bech32PrefixRequest>): Bech32PrefixRequest {
|
|
1286
|
+
const message = createBaseBech32PrefixRequest();
|
|
1287
|
+
return message;
|
|
1288
|
+
},
|
|
1289
|
+
fromAmino(_: Bech32PrefixRequestAmino): Bech32PrefixRequest {
|
|
1290
|
+
const message = createBaseBech32PrefixRequest();
|
|
1291
|
+
return message;
|
|
1292
|
+
},
|
|
1293
|
+
toAmino(_: Bech32PrefixRequest): Bech32PrefixRequestAmino {
|
|
1294
|
+
const obj: any = {};
|
|
1295
|
+
return obj;
|
|
1296
|
+
},
|
|
1297
|
+
fromAminoMsg(object: Bech32PrefixRequestAminoMsg): Bech32PrefixRequest {
|
|
1298
|
+
return Bech32PrefixRequest.fromAmino(object.value);
|
|
1299
|
+
},
|
|
1300
|
+
toAminoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestAminoMsg {
|
|
1301
|
+
return {
|
|
1302
|
+
type: "cosmos-sdk/Bech32PrefixRequest",
|
|
1303
|
+
value: Bech32PrefixRequest.toAmino(message)
|
|
1304
|
+
};
|
|
1305
|
+
},
|
|
1306
|
+
fromProtoMsg(message: Bech32PrefixRequestProtoMsg): Bech32PrefixRequest {
|
|
1307
|
+
return Bech32PrefixRequest.decode(message.value);
|
|
1308
|
+
},
|
|
1309
|
+
toProto(message: Bech32PrefixRequest): Uint8Array {
|
|
1310
|
+
return Bech32PrefixRequest.encode(message).finish();
|
|
1311
|
+
},
|
|
1312
|
+
toProtoMsg(message: Bech32PrefixRequest): Bech32PrefixRequestProtoMsg {
|
|
1313
|
+
return {
|
|
1314
|
+
typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest",
|
|
1315
|
+
value: Bech32PrefixRequest.encode(message).finish()
|
|
1316
|
+
};
|
|
1317
|
+
}
|
|
1318
|
+
};
|
|
1319
|
+
GlobalDecoderRegistry.register(Bech32PrefixRequest.typeUrl, Bech32PrefixRequest);
|
|
1320
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Bech32PrefixRequest.aminoType, Bech32PrefixRequest.typeUrl);
|
|
1321
|
+
function createBaseBech32PrefixResponse(): Bech32PrefixResponse {
|
|
1322
|
+
return {
|
|
1323
|
+
bech32Prefix: ""
|
|
1324
|
+
};
|
|
1325
|
+
}
|
|
1326
|
+
export const Bech32PrefixResponse = {
|
|
1327
|
+
typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse",
|
|
1328
|
+
aminoType: "cosmos-sdk/Bech32PrefixResponse",
|
|
1329
|
+
is(o: any): o is Bech32PrefixResponse {
|
|
1330
|
+
return o && (o.$typeUrl === Bech32PrefixResponse.typeUrl || typeof o.bech32Prefix === "string");
|
|
1331
|
+
},
|
|
1332
|
+
isAmino(o: any): o is Bech32PrefixResponseAmino {
|
|
1333
|
+
return o && (o.$typeUrl === Bech32PrefixResponse.typeUrl || typeof o.bech32_prefix === "string");
|
|
1334
|
+
},
|
|
1335
|
+
encode(message: Bech32PrefixResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1336
|
+
if (message.bech32Prefix !== "") {
|
|
1337
|
+
writer.uint32(10).string(message.bech32Prefix);
|
|
1338
|
+
}
|
|
1339
|
+
return writer;
|
|
1340
|
+
},
|
|
1341
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Bech32PrefixResponse {
|
|
1342
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1343
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1344
|
+
const message = createBaseBech32PrefixResponse();
|
|
1345
|
+
while (reader.pos < end) {
|
|
1346
|
+
const tag = reader.uint32();
|
|
1347
|
+
switch (tag >>> 3) {
|
|
1348
|
+
case 1:
|
|
1349
|
+
message.bech32Prefix = reader.string();
|
|
1350
|
+
break;
|
|
1351
|
+
default:
|
|
1352
|
+
reader.skipType(tag & 7);
|
|
1353
|
+
break;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
return message;
|
|
1357
|
+
},
|
|
1358
|
+
fromPartial(object: DeepPartial<Bech32PrefixResponse>): Bech32PrefixResponse {
|
|
1359
|
+
const message = createBaseBech32PrefixResponse();
|
|
1360
|
+
message.bech32Prefix = object.bech32Prefix ?? "";
|
|
1361
|
+
return message;
|
|
1362
|
+
},
|
|
1363
|
+
fromAmino(object: Bech32PrefixResponseAmino): Bech32PrefixResponse {
|
|
1364
|
+
const message = createBaseBech32PrefixResponse();
|
|
1365
|
+
if (object.bech32_prefix !== undefined && object.bech32_prefix !== null) {
|
|
1366
|
+
message.bech32Prefix = object.bech32_prefix;
|
|
1367
|
+
}
|
|
1368
|
+
return message;
|
|
1369
|
+
},
|
|
1370
|
+
toAmino(message: Bech32PrefixResponse): Bech32PrefixResponseAmino {
|
|
1371
|
+
const obj: any = {};
|
|
1372
|
+
obj.bech32_prefix = message.bech32Prefix === "" ? undefined : message.bech32Prefix;
|
|
1373
|
+
return obj;
|
|
1374
|
+
},
|
|
1375
|
+
fromAminoMsg(object: Bech32PrefixResponseAminoMsg): Bech32PrefixResponse {
|
|
1376
|
+
return Bech32PrefixResponse.fromAmino(object.value);
|
|
1377
|
+
},
|
|
1378
|
+
toAminoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseAminoMsg {
|
|
1379
|
+
return {
|
|
1380
|
+
type: "cosmos-sdk/Bech32PrefixResponse",
|
|
1381
|
+
value: Bech32PrefixResponse.toAmino(message)
|
|
1382
|
+
};
|
|
1383
|
+
},
|
|
1384
|
+
fromProtoMsg(message: Bech32PrefixResponseProtoMsg): Bech32PrefixResponse {
|
|
1385
|
+
return Bech32PrefixResponse.decode(message.value);
|
|
1386
|
+
},
|
|
1387
|
+
toProto(message: Bech32PrefixResponse): Uint8Array {
|
|
1388
|
+
return Bech32PrefixResponse.encode(message).finish();
|
|
1389
|
+
},
|
|
1390
|
+
toProtoMsg(message: Bech32PrefixResponse): Bech32PrefixResponseProtoMsg {
|
|
1391
|
+
return {
|
|
1392
|
+
typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse",
|
|
1393
|
+
value: Bech32PrefixResponse.encode(message).finish()
|
|
1394
|
+
};
|
|
1395
|
+
}
|
|
1396
|
+
};
|
|
1397
|
+
GlobalDecoderRegistry.register(Bech32PrefixResponse.typeUrl, Bech32PrefixResponse);
|
|
1398
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Bech32PrefixResponse.aminoType, Bech32PrefixResponse.typeUrl);
|
|
1399
|
+
function createBaseAddressBytesToStringRequest(): AddressBytesToStringRequest {
|
|
1400
|
+
return {
|
|
1401
|
+
addressBytes: new Uint8Array()
|
|
1402
|
+
};
|
|
1403
|
+
}
|
|
1404
|
+
export const AddressBytesToStringRequest = {
|
|
1405
|
+
typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest",
|
|
1406
|
+
aminoType: "cosmos-sdk/AddressBytesToStringRequest",
|
|
1407
|
+
is(o: any): o is AddressBytesToStringRequest {
|
|
1408
|
+
return o && (o.$typeUrl === AddressBytesToStringRequest.typeUrl || o.addressBytes instanceof Uint8Array || typeof o.addressBytes === "string");
|
|
1409
|
+
},
|
|
1410
|
+
isAmino(o: any): o is AddressBytesToStringRequestAmino {
|
|
1411
|
+
return o && (o.$typeUrl === AddressBytesToStringRequest.typeUrl || o.address_bytes instanceof Uint8Array || typeof o.address_bytes === "string");
|
|
1412
|
+
},
|
|
1413
|
+
encode(message: AddressBytesToStringRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1414
|
+
if (message.addressBytes.length !== 0) {
|
|
1415
|
+
writer.uint32(10).bytes(message.addressBytes);
|
|
1416
|
+
}
|
|
1417
|
+
return writer;
|
|
1418
|
+
},
|
|
1419
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringRequest {
|
|
1420
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1421
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1422
|
+
const message = createBaseAddressBytesToStringRequest();
|
|
1423
|
+
while (reader.pos < end) {
|
|
1424
|
+
const tag = reader.uint32();
|
|
1425
|
+
switch (tag >>> 3) {
|
|
1426
|
+
case 1:
|
|
1427
|
+
message.addressBytes = reader.bytes();
|
|
1428
|
+
break;
|
|
1429
|
+
default:
|
|
1430
|
+
reader.skipType(tag & 7);
|
|
1431
|
+
break;
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
return message;
|
|
1435
|
+
},
|
|
1436
|
+
fromPartial(object: DeepPartial<AddressBytesToStringRequest>): AddressBytesToStringRequest {
|
|
1437
|
+
const message = createBaseAddressBytesToStringRequest();
|
|
1438
|
+
message.addressBytes = object.addressBytes ?? new Uint8Array();
|
|
1439
|
+
return message;
|
|
1440
|
+
},
|
|
1441
|
+
fromAmino(object: AddressBytesToStringRequestAmino): AddressBytesToStringRequest {
|
|
1442
|
+
const message = createBaseAddressBytesToStringRequest();
|
|
1443
|
+
if (object.address_bytes !== undefined && object.address_bytes !== null) {
|
|
1444
|
+
message.addressBytes = bytesFromBase64(object.address_bytes);
|
|
1445
|
+
}
|
|
1446
|
+
return message;
|
|
1447
|
+
},
|
|
1448
|
+
toAmino(message: AddressBytesToStringRequest): AddressBytesToStringRequestAmino {
|
|
1449
|
+
const obj: any = {};
|
|
1450
|
+
obj.address_bytes = message.addressBytes ? base64FromBytes(message.addressBytes) : undefined;
|
|
1451
|
+
return obj;
|
|
1452
|
+
},
|
|
1453
|
+
fromAminoMsg(object: AddressBytesToStringRequestAminoMsg): AddressBytesToStringRequest {
|
|
1454
|
+
return AddressBytesToStringRequest.fromAmino(object.value);
|
|
1455
|
+
},
|
|
1456
|
+
toAminoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestAminoMsg {
|
|
1457
|
+
return {
|
|
1458
|
+
type: "cosmos-sdk/AddressBytesToStringRequest",
|
|
1459
|
+
value: AddressBytesToStringRequest.toAmino(message)
|
|
1460
|
+
};
|
|
1461
|
+
},
|
|
1462
|
+
fromProtoMsg(message: AddressBytesToStringRequestProtoMsg): AddressBytesToStringRequest {
|
|
1463
|
+
return AddressBytesToStringRequest.decode(message.value);
|
|
1464
|
+
},
|
|
1465
|
+
toProto(message: AddressBytesToStringRequest): Uint8Array {
|
|
1466
|
+
return AddressBytesToStringRequest.encode(message).finish();
|
|
1467
|
+
},
|
|
1468
|
+
toProtoMsg(message: AddressBytesToStringRequest): AddressBytesToStringRequestProtoMsg {
|
|
1469
|
+
return {
|
|
1470
|
+
typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest",
|
|
1471
|
+
value: AddressBytesToStringRequest.encode(message).finish()
|
|
1472
|
+
};
|
|
1473
|
+
}
|
|
1474
|
+
};
|
|
1475
|
+
GlobalDecoderRegistry.register(AddressBytesToStringRequest.typeUrl, AddressBytesToStringRequest);
|
|
1476
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(AddressBytesToStringRequest.aminoType, AddressBytesToStringRequest.typeUrl);
|
|
1477
|
+
function createBaseAddressBytesToStringResponse(): AddressBytesToStringResponse {
|
|
1478
|
+
return {
|
|
1479
|
+
addressString: ""
|
|
1480
|
+
};
|
|
1481
|
+
}
|
|
1482
|
+
export const AddressBytesToStringResponse = {
|
|
1483
|
+
typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse",
|
|
1484
|
+
aminoType: "cosmos-sdk/AddressBytesToStringResponse",
|
|
1485
|
+
is(o: any): o is AddressBytesToStringResponse {
|
|
1486
|
+
return o && (o.$typeUrl === AddressBytesToStringResponse.typeUrl || typeof o.addressString === "string");
|
|
1487
|
+
},
|
|
1488
|
+
isAmino(o: any): o is AddressBytesToStringResponseAmino {
|
|
1489
|
+
return o && (o.$typeUrl === AddressBytesToStringResponse.typeUrl || typeof o.address_string === "string");
|
|
1490
|
+
},
|
|
1491
|
+
encode(message: AddressBytesToStringResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1492
|
+
if (message.addressString !== "") {
|
|
1493
|
+
writer.uint32(10).string(message.addressString);
|
|
1494
|
+
}
|
|
1495
|
+
return writer;
|
|
1496
|
+
},
|
|
1497
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AddressBytesToStringResponse {
|
|
1498
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1499
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1500
|
+
const message = createBaseAddressBytesToStringResponse();
|
|
1501
|
+
while (reader.pos < end) {
|
|
1502
|
+
const tag = reader.uint32();
|
|
1503
|
+
switch (tag >>> 3) {
|
|
1504
|
+
case 1:
|
|
1505
|
+
message.addressString = reader.string();
|
|
1506
|
+
break;
|
|
1507
|
+
default:
|
|
1508
|
+
reader.skipType(tag & 7);
|
|
1509
|
+
break;
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
return message;
|
|
1513
|
+
},
|
|
1514
|
+
fromPartial(object: DeepPartial<AddressBytesToStringResponse>): AddressBytesToStringResponse {
|
|
1515
|
+
const message = createBaseAddressBytesToStringResponse();
|
|
1516
|
+
message.addressString = object.addressString ?? "";
|
|
1517
|
+
return message;
|
|
1518
|
+
},
|
|
1519
|
+
fromAmino(object: AddressBytesToStringResponseAmino): AddressBytesToStringResponse {
|
|
1520
|
+
const message = createBaseAddressBytesToStringResponse();
|
|
1521
|
+
if (object.address_string !== undefined && object.address_string !== null) {
|
|
1522
|
+
message.addressString = object.address_string;
|
|
1523
|
+
}
|
|
1524
|
+
return message;
|
|
1525
|
+
},
|
|
1526
|
+
toAmino(message: AddressBytesToStringResponse): AddressBytesToStringResponseAmino {
|
|
1527
|
+
const obj: any = {};
|
|
1528
|
+
obj.address_string = message.addressString === "" ? undefined : message.addressString;
|
|
1529
|
+
return obj;
|
|
1530
|
+
},
|
|
1531
|
+
fromAminoMsg(object: AddressBytesToStringResponseAminoMsg): AddressBytesToStringResponse {
|
|
1532
|
+
return AddressBytesToStringResponse.fromAmino(object.value);
|
|
1533
|
+
},
|
|
1534
|
+
toAminoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseAminoMsg {
|
|
1535
|
+
return {
|
|
1536
|
+
type: "cosmos-sdk/AddressBytesToStringResponse",
|
|
1537
|
+
value: AddressBytesToStringResponse.toAmino(message)
|
|
1538
|
+
};
|
|
1539
|
+
},
|
|
1540
|
+
fromProtoMsg(message: AddressBytesToStringResponseProtoMsg): AddressBytesToStringResponse {
|
|
1541
|
+
return AddressBytesToStringResponse.decode(message.value);
|
|
1542
|
+
},
|
|
1543
|
+
toProto(message: AddressBytesToStringResponse): Uint8Array {
|
|
1544
|
+
return AddressBytesToStringResponse.encode(message).finish();
|
|
1545
|
+
},
|
|
1546
|
+
toProtoMsg(message: AddressBytesToStringResponse): AddressBytesToStringResponseProtoMsg {
|
|
1547
|
+
return {
|
|
1548
|
+
typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse",
|
|
1549
|
+
value: AddressBytesToStringResponse.encode(message).finish()
|
|
1550
|
+
};
|
|
1551
|
+
}
|
|
1552
|
+
};
|
|
1553
|
+
GlobalDecoderRegistry.register(AddressBytesToStringResponse.typeUrl, AddressBytesToStringResponse);
|
|
1554
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(AddressBytesToStringResponse.aminoType, AddressBytesToStringResponse.typeUrl);
|
|
1555
|
+
function createBaseAddressStringToBytesRequest(): AddressStringToBytesRequest {
|
|
1556
|
+
return {
|
|
1557
|
+
addressString: ""
|
|
1558
|
+
};
|
|
1559
|
+
}
|
|
1560
|
+
export const AddressStringToBytesRequest = {
|
|
1561
|
+
typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest",
|
|
1562
|
+
aminoType: "cosmos-sdk/AddressStringToBytesRequest",
|
|
1563
|
+
is(o: any): o is AddressStringToBytesRequest {
|
|
1564
|
+
return o && (o.$typeUrl === AddressStringToBytesRequest.typeUrl || typeof o.addressString === "string");
|
|
1565
|
+
},
|
|
1566
|
+
isAmino(o: any): o is AddressStringToBytesRequestAmino {
|
|
1567
|
+
return o && (o.$typeUrl === AddressStringToBytesRequest.typeUrl || typeof o.address_string === "string");
|
|
1568
|
+
},
|
|
1569
|
+
encode(message: AddressStringToBytesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1570
|
+
if (message.addressString !== "") {
|
|
1571
|
+
writer.uint32(10).string(message.addressString);
|
|
1572
|
+
}
|
|
1573
|
+
return writer;
|
|
1574
|
+
},
|
|
1575
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesRequest {
|
|
1576
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1577
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1578
|
+
const message = createBaseAddressStringToBytesRequest();
|
|
1579
|
+
while (reader.pos < end) {
|
|
1580
|
+
const tag = reader.uint32();
|
|
1581
|
+
switch (tag >>> 3) {
|
|
1582
|
+
case 1:
|
|
1583
|
+
message.addressString = reader.string();
|
|
1584
|
+
break;
|
|
1585
|
+
default:
|
|
1586
|
+
reader.skipType(tag & 7);
|
|
1587
|
+
break;
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
return message;
|
|
1591
|
+
},
|
|
1592
|
+
fromPartial(object: DeepPartial<AddressStringToBytesRequest>): AddressStringToBytesRequest {
|
|
1593
|
+
const message = createBaseAddressStringToBytesRequest();
|
|
1594
|
+
message.addressString = object.addressString ?? "";
|
|
1595
|
+
return message;
|
|
1596
|
+
},
|
|
1597
|
+
fromAmino(object: AddressStringToBytesRequestAmino): AddressStringToBytesRequest {
|
|
1598
|
+
const message = createBaseAddressStringToBytesRequest();
|
|
1599
|
+
if (object.address_string !== undefined && object.address_string !== null) {
|
|
1600
|
+
message.addressString = object.address_string;
|
|
1601
|
+
}
|
|
1602
|
+
return message;
|
|
1603
|
+
},
|
|
1604
|
+
toAmino(message: AddressStringToBytesRequest): AddressStringToBytesRequestAmino {
|
|
1605
|
+
const obj: any = {};
|
|
1606
|
+
obj.address_string = message.addressString === "" ? undefined : message.addressString;
|
|
1607
|
+
return obj;
|
|
1608
|
+
},
|
|
1609
|
+
fromAminoMsg(object: AddressStringToBytesRequestAminoMsg): AddressStringToBytesRequest {
|
|
1610
|
+
return AddressStringToBytesRequest.fromAmino(object.value);
|
|
1611
|
+
},
|
|
1612
|
+
toAminoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestAminoMsg {
|
|
1613
|
+
return {
|
|
1614
|
+
type: "cosmos-sdk/AddressStringToBytesRequest",
|
|
1615
|
+
value: AddressStringToBytesRequest.toAmino(message)
|
|
1616
|
+
};
|
|
1617
|
+
},
|
|
1618
|
+
fromProtoMsg(message: AddressStringToBytesRequestProtoMsg): AddressStringToBytesRequest {
|
|
1619
|
+
return AddressStringToBytesRequest.decode(message.value);
|
|
1620
|
+
},
|
|
1621
|
+
toProto(message: AddressStringToBytesRequest): Uint8Array {
|
|
1622
|
+
return AddressStringToBytesRequest.encode(message).finish();
|
|
1623
|
+
},
|
|
1624
|
+
toProtoMsg(message: AddressStringToBytesRequest): AddressStringToBytesRequestProtoMsg {
|
|
1625
|
+
return {
|
|
1626
|
+
typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest",
|
|
1627
|
+
value: AddressStringToBytesRequest.encode(message).finish()
|
|
1628
|
+
};
|
|
1629
|
+
}
|
|
1630
|
+
};
|
|
1631
|
+
GlobalDecoderRegistry.register(AddressStringToBytesRequest.typeUrl, AddressStringToBytesRequest);
|
|
1632
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(AddressStringToBytesRequest.aminoType, AddressStringToBytesRequest.typeUrl);
|
|
1633
|
+
function createBaseAddressStringToBytesResponse(): AddressStringToBytesResponse {
|
|
1634
|
+
return {
|
|
1635
|
+
addressBytes: new Uint8Array()
|
|
1636
|
+
};
|
|
1637
|
+
}
|
|
1638
|
+
export const AddressStringToBytesResponse = {
|
|
1639
|
+
typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse",
|
|
1640
|
+
aminoType: "cosmos-sdk/AddressStringToBytesResponse",
|
|
1641
|
+
is(o: any): o is AddressStringToBytesResponse {
|
|
1642
|
+
return o && (o.$typeUrl === AddressStringToBytesResponse.typeUrl || o.addressBytes instanceof Uint8Array || typeof o.addressBytes === "string");
|
|
1643
|
+
},
|
|
1644
|
+
isAmino(o: any): o is AddressStringToBytesResponseAmino {
|
|
1645
|
+
return o && (o.$typeUrl === AddressStringToBytesResponse.typeUrl || o.address_bytes instanceof Uint8Array || typeof o.address_bytes === "string");
|
|
1646
|
+
},
|
|
1647
|
+
encode(message: AddressStringToBytesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1648
|
+
if (message.addressBytes.length !== 0) {
|
|
1649
|
+
writer.uint32(10).bytes(message.addressBytes);
|
|
1650
|
+
}
|
|
1651
|
+
return writer;
|
|
1652
|
+
},
|
|
1653
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AddressStringToBytesResponse {
|
|
1654
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1655
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1656
|
+
const message = createBaseAddressStringToBytesResponse();
|
|
1657
|
+
while (reader.pos < end) {
|
|
1658
|
+
const tag = reader.uint32();
|
|
1659
|
+
switch (tag >>> 3) {
|
|
1660
|
+
case 1:
|
|
1661
|
+
message.addressBytes = reader.bytes();
|
|
1662
|
+
break;
|
|
1663
|
+
default:
|
|
1664
|
+
reader.skipType(tag & 7);
|
|
1665
|
+
break;
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
return message;
|
|
1669
|
+
},
|
|
1670
|
+
fromPartial(object: DeepPartial<AddressStringToBytesResponse>): AddressStringToBytesResponse {
|
|
1671
|
+
const message = createBaseAddressStringToBytesResponse();
|
|
1672
|
+
message.addressBytes = object.addressBytes ?? new Uint8Array();
|
|
1673
|
+
return message;
|
|
1674
|
+
},
|
|
1675
|
+
fromAmino(object: AddressStringToBytesResponseAmino): AddressStringToBytesResponse {
|
|
1676
|
+
const message = createBaseAddressStringToBytesResponse();
|
|
1677
|
+
if (object.address_bytes !== undefined && object.address_bytes !== null) {
|
|
1678
|
+
message.addressBytes = bytesFromBase64(object.address_bytes);
|
|
1679
|
+
}
|
|
1680
|
+
return message;
|
|
1681
|
+
},
|
|
1682
|
+
toAmino(message: AddressStringToBytesResponse): AddressStringToBytesResponseAmino {
|
|
1683
|
+
const obj: any = {};
|
|
1684
|
+
obj.address_bytes = message.addressBytes ? base64FromBytes(message.addressBytes) : undefined;
|
|
1685
|
+
return obj;
|
|
1686
|
+
},
|
|
1687
|
+
fromAminoMsg(object: AddressStringToBytesResponseAminoMsg): AddressStringToBytesResponse {
|
|
1688
|
+
return AddressStringToBytesResponse.fromAmino(object.value);
|
|
1689
|
+
},
|
|
1690
|
+
toAminoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseAminoMsg {
|
|
1691
|
+
return {
|
|
1692
|
+
type: "cosmos-sdk/AddressStringToBytesResponse",
|
|
1693
|
+
value: AddressStringToBytesResponse.toAmino(message)
|
|
1694
|
+
};
|
|
1695
|
+
},
|
|
1696
|
+
fromProtoMsg(message: AddressStringToBytesResponseProtoMsg): AddressStringToBytesResponse {
|
|
1697
|
+
return AddressStringToBytesResponse.decode(message.value);
|
|
1698
|
+
},
|
|
1699
|
+
toProto(message: AddressStringToBytesResponse): Uint8Array {
|
|
1700
|
+
return AddressStringToBytesResponse.encode(message).finish();
|
|
1701
|
+
},
|
|
1702
|
+
toProtoMsg(message: AddressStringToBytesResponse): AddressStringToBytesResponseProtoMsg {
|
|
1703
|
+
return {
|
|
1704
|
+
typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse",
|
|
1705
|
+
value: AddressStringToBytesResponse.encode(message).finish()
|
|
1706
|
+
};
|
|
1707
|
+
}
|
|
1708
|
+
};
|
|
1709
|
+
GlobalDecoderRegistry.register(AddressStringToBytesResponse.typeUrl, AddressStringToBytesResponse);
|
|
1710
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(AddressStringToBytesResponse.aminoType, AddressStringToBytesResponse.typeUrl);
|
|
1711
|
+
function createBaseQueryAccountAddressByIDRequest(): QueryAccountAddressByIDRequest {
|
|
1712
|
+
return {
|
|
1713
|
+
id: BigInt(0),
|
|
1714
|
+
accountId: BigInt(0)
|
|
1715
|
+
};
|
|
1716
|
+
}
|
|
1717
|
+
export const QueryAccountAddressByIDRequest = {
|
|
1718
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest",
|
|
1719
|
+
aminoType: "cosmos-sdk/QueryAccountAddressByIDRequest",
|
|
1720
|
+
is(o: any): o is QueryAccountAddressByIDRequest {
|
|
1721
|
+
return o && (o.$typeUrl === QueryAccountAddressByIDRequest.typeUrl || typeof o.id === "bigint" && typeof o.accountId === "bigint");
|
|
1722
|
+
},
|
|
1723
|
+
isAmino(o: any): o is QueryAccountAddressByIDRequestAmino {
|
|
1724
|
+
return o && (o.$typeUrl === QueryAccountAddressByIDRequest.typeUrl || typeof o.id === "bigint" && typeof o.account_id === "bigint");
|
|
1725
|
+
},
|
|
1726
|
+
encode(message: QueryAccountAddressByIDRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1727
|
+
if (message.id !== BigInt(0)) {
|
|
1728
|
+
writer.uint32(8).int64(message.id);
|
|
1729
|
+
}
|
|
1730
|
+
if (message.accountId !== BigInt(0)) {
|
|
1731
|
+
writer.uint32(16).uint64(message.accountId);
|
|
1732
|
+
}
|
|
1733
|
+
return writer;
|
|
1734
|
+
},
|
|
1735
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDRequest {
|
|
1736
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1737
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1738
|
+
const message = createBaseQueryAccountAddressByIDRequest();
|
|
1739
|
+
while (reader.pos < end) {
|
|
1740
|
+
const tag = reader.uint32();
|
|
1741
|
+
switch (tag >>> 3) {
|
|
1742
|
+
case 1:
|
|
1743
|
+
message.id = reader.int64();
|
|
1744
|
+
break;
|
|
1745
|
+
case 2:
|
|
1746
|
+
message.accountId = reader.uint64();
|
|
1747
|
+
break;
|
|
1748
|
+
default:
|
|
1749
|
+
reader.skipType(tag & 7);
|
|
1750
|
+
break;
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
return message;
|
|
1754
|
+
},
|
|
1755
|
+
fromPartial(object: DeepPartial<QueryAccountAddressByIDRequest>): QueryAccountAddressByIDRequest {
|
|
1756
|
+
const message = createBaseQueryAccountAddressByIDRequest();
|
|
1757
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
1758
|
+
message.accountId = object.accountId !== undefined && object.accountId !== null ? BigInt(object.accountId.toString()) : BigInt(0);
|
|
1759
|
+
return message;
|
|
1760
|
+
},
|
|
1761
|
+
fromAmino(object: QueryAccountAddressByIDRequestAmino): QueryAccountAddressByIDRequest {
|
|
1762
|
+
const message = createBaseQueryAccountAddressByIDRequest();
|
|
1763
|
+
if (object.id !== undefined && object.id !== null) {
|
|
1764
|
+
message.id = BigInt(object.id);
|
|
1765
|
+
}
|
|
1766
|
+
if (object.account_id !== undefined && object.account_id !== null) {
|
|
1767
|
+
message.accountId = BigInt(object.account_id);
|
|
1768
|
+
}
|
|
1769
|
+
return message;
|
|
1770
|
+
},
|
|
1771
|
+
toAmino(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestAmino {
|
|
1772
|
+
const obj: any = {};
|
|
1773
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
1774
|
+
obj.account_id = message.accountId !== BigInt(0) ? message.accountId?.toString() : undefined;
|
|
1775
|
+
return obj;
|
|
1776
|
+
},
|
|
1777
|
+
fromAminoMsg(object: QueryAccountAddressByIDRequestAminoMsg): QueryAccountAddressByIDRequest {
|
|
1778
|
+
return QueryAccountAddressByIDRequest.fromAmino(object.value);
|
|
1779
|
+
},
|
|
1780
|
+
toAminoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestAminoMsg {
|
|
1781
|
+
return {
|
|
1782
|
+
type: "cosmos-sdk/QueryAccountAddressByIDRequest",
|
|
1783
|
+
value: QueryAccountAddressByIDRequest.toAmino(message)
|
|
1784
|
+
};
|
|
1785
|
+
},
|
|
1786
|
+
fromProtoMsg(message: QueryAccountAddressByIDRequestProtoMsg): QueryAccountAddressByIDRequest {
|
|
1787
|
+
return QueryAccountAddressByIDRequest.decode(message.value);
|
|
1788
|
+
},
|
|
1789
|
+
toProto(message: QueryAccountAddressByIDRequest): Uint8Array {
|
|
1790
|
+
return QueryAccountAddressByIDRequest.encode(message).finish();
|
|
1791
|
+
},
|
|
1792
|
+
toProtoMsg(message: QueryAccountAddressByIDRequest): QueryAccountAddressByIDRequestProtoMsg {
|
|
1793
|
+
return {
|
|
1794
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest",
|
|
1795
|
+
value: QueryAccountAddressByIDRequest.encode(message).finish()
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1798
|
+
};
|
|
1799
|
+
GlobalDecoderRegistry.register(QueryAccountAddressByIDRequest.typeUrl, QueryAccountAddressByIDRequest);
|
|
1800
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountAddressByIDRequest.aminoType, QueryAccountAddressByIDRequest.typeUrl);
|
|
1801
|
+
function createBaseQueryAccountAddressByIDResponse(): QueryAccountAddressByIDResponse {
|
|
1802
|
+
return {
|
|
1803
|
+
accountAddress: ""
|
|
1804
|
+
};
|
|
1805
|
+
}
|
|
1806
|
+
export const QueryAccountAddressByIDResponse = {
|
|
1807
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse",
|
|
1808
|
+
aminoType: "cosmos-sdk/QueryAccountAddressByIDResponse",
|
|
1809
|
+
is(o: any): o is QueryAccountAddressByIDResponse {
|
|
1810
|
+
return o && (o.$typeUrl === QueryAccountAddressByIDResponse.typeUrl || typeof o.accountAddress === "string");
|
|
1811
|
+
},
|
|
1812
|
+
isAmino(o: any): o is QueryAccountAddressByIDResponseAmino {
|
|
1813
|
+
return o && (o.$typeUrl === QueryAccountAddressByIDResponse.typeUrl || typeof o.account_address === "string");
|
|
1814
|
+
},
|
|
1815
|
+
encode(message: QueryAccountAddressByIDResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1816
|
+
if (message.accountAddress !== "") {
|
|
1817
|
+
writer.uint32(10).string(message.accountAddress);
|
|
1818
|
+
}
|
|
1819
|
+
return writer;
|
|
1820
|
+
},
|
|
1821
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountAddressByIDResponse {
|
|
1822
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1823
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1824
|
+
const message = createBaseQueryAccountAddressByIDResponse();
|
|
1825
|
+
while (reader.pos < end) {
|
|
1826
|
+
const tag = reader.uint32();
|
|
1827
|
+
switch (tag >>> 3) {
|
|
1828
|
+
case 1:
|
|
1829
|
+
message.accountAddress = reader.string();
|
|
1830
|
+
break;
|
|
1831
|
+
default:
|
|
1832
|
+
reader.skipType(tag & 7);
|
|
1833
|
+
break;
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
return message;
|
|
1837
|
+
},
|
|
1838
|
+
fromPartial(object: DeepPartial<QueryAccountAddressByIDResponse>): QueryAccountAddressByIDResponse {
|
|
1839
|
+
const message = createBaseQueryAccountAddressByIDResponse();
|
|
1840
|
+
message.accountAddress = object.accountAddress ?? "";
|
|
1841
|
+
return message;
|
|
1842
|
+
},
|
|
1843
|
+
fromAmino(object: QueryAccountAddressByIDResponseAmino): QueryAccountAddressByIDResponse {
|
|
1844
|
+
const message = createBaseQueryAccountAddressByIDResponse();
|
|
1845
|
+
if (object.account_address !== undefined && object.account_address !== null) {
|
|
1846
|
+
message.accountAddress = object.account_address;
|
|
1847
|
+
}
|
|
1848
|
+
return message;
|
|
1849
|
+
},
|
|
1850
|
+
toAmino(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseAmino {
|
|
1851
|
+
const obj: any = {};
|
|
1852
|
+
obj.account_address = message.accountAddress === "" ? undefined : message.accountAddress;
|
|
1853
|
+
return obj;
|
|
1854
|
+
},
|
|
1855
|
+
fromAminoMsg(object: QueryAccountAddressByIDResponseAminoMsg): QueryAccountAddressByIDResponse {
|
|
1856
|
+
return QueryAccountAddressByIDResponse.fromAmino(object.value);
|
|
1857
|
+
},
|
|
1858
|
+
toAminoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseAminoMsg {
|
|
1859
|
+
return {
|
|
1860
|
+
type: "cosmos-sdk/QueryAccountAddressByIDResponse",
|
|
1861
|
+
value: QueryAccountAddressByIDResponse.toAmino(message)
|
|
1862
|
+
};
|
|
1863
|
+
},
|
|
1864
|
+
fromProtoMsg(message: QueryAccountAddressByIDResponseProtoMsg): QueryAccountAddressByIDResponse {
|
|
1865
|
+
return QueryAccountAddressByIDResponse.decode(message.value);
|
|
1866
|
+
},
|
|
1867
|
+
toProto(message: QueryAccountAddressByIDResponse): Uint8Array {
|
|
1868
|
+
return QueryAccountAddressByIDResponse.encode(message).finish();
|
|
1869
|
+
},
|
|
1870
|
+
toProtoMsg(message: QueryAccountAddressByIDResponse): QueryAccountAddressByIDResponseProtoMsg {
|
|
1871
|
+
return {
|
|
1872
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse",
|
|
1873
|
+
value: QueryAccountAddressByIDResponse.encode(message).finish()
|
|
1874
|
+
};
|
|
1875
|
+
}
|
|
1876
|
+
};
|
|
1877
|
+
GlobalDecoderRegistry.register(QueryAccountAddressByIDResponse.typeUrl, QueryAccountAddressByIDResponse);
|
|
1878
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountAddressByIDResponse.aminoType, QueryAccountAddressByIDResponse.typeUrl);
|
|
1879
|
+
function createBaseQueryAccountInfoRequest(): QueryAccountInfoRequest {
|
|
1880
|
+
return {
|
|
1881
|
+
address: ""
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
export const QueryAccountInfoRequest = {
|
|
1885
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoRequest",
|
|
1886
|
+
aminoType: "cosmos-sdk/QueryAccountInfoRequest",
|
|
1887
|
+
is(o: any): o is QueryAccountInfoRequest {
|
|
1888
|
+
return o && (o.$typeUrl === QueryAccountInfoRequest.typeUrl || typeof o.address === "string");
|
|
1889
|
+
},
|
|
1890
|
+
isAmino(o: any): o is QueryAccountInfoRequestAmino {
|
|
1891
|
+
return o && (o.$typeUrl === QueryAccountInfoRequest.typeUrl || typeof o.address === "string");
|
|
1892
|
+
},
|
|
1893
|
+
encode(message: QueryAccountInfoRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1894
|
+
if (message.address !== "") {
|
|
1895
|
+
writer.uint32(10).string(message.address);
|
|
1896
|
+
}
|
|
1897
|
+
return writer;
|
|
1898
|
+
},
|
|
1899
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountInfoRequest {
|
|
1900
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1901
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1902
|
+
const message = createBaseQueryAccountInfoRequest();
|
|
1903
|
+
while (reader.pos < end) {
|
|
1904
|
+
const tag = reader.uint32();
|
|
1905
|
+
switch (tag >>> 3) {
|
|
1906
|
+
case 1:
|
|
1907
|
+
message.address = reader.string();
|
|
1908
|
+
break;
|
|
1909
|
+
default:
|
|
1910
|
+
reader.skipType(tag & 7);
|
|
1911
|
+
break;
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
return message;
|
|
1915
|
+
},
|
|
1916
|
+
fromPartial(object: DeepPartial<QueryAccountInfoRequest>): QueryAccountInfoRequest {
|
|
1917
|
+
const message = createBaseQueryAccountInfoRequest();
|
|
1918
|
+
message.address = object.address ?? "";
|
|
1919
|
+
return message;
|
|
1920
|
+
},
|
|
1921
|
+
fromAmino(object: QueryAccountInfoRequestAmino): QueryAccountInfoRequest {
|
|
1922
|
+
const message = createBaseQueryAccountInfoRequest();
|
|
1923
|
+
if (object.address !== undefined && object.address !== null) {
|
|
1924
|
+
message.address = object.address;
|
|
1925
|
+
}
|
|
1926
|
+
return message;
|
|
1927
|
+
},
|
|
1928
|
+
toAmino(message: QueryAccountInfoRequest): QueryAccountInfoRequestAmino {
|
|
1929
|
+
const obj: any = {};
|
|
1930
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
1931
|
+
return obj;
|
|
1932
|
+
},
|
|
1933
|
+
fromAminoMsg(object: QueryAccountInfoRequestAminoMsg): QueryAccountInfoRequest {
|
|
1934
|
+
return QueryAccountInfoRequest.fromAmino(object.value);
|
|
1935
|
+
},
|
|
1936
|
+
toAminoMsg(message: QueryAccountInfoRequest): QueryAccountInfoRequestAminoMsg {
|
|
1937
|
+
return {
|
|
1938
|
+
type: "cosmos-sdk/QueryAccountInfoRequest",
|
|
1939
|
+
value: QueryAccountInfoRequest.toAmino(message)
|
|
1940
|
+
};
|
|
1941
|
+
},
|
|
1942
|
+
fromProtoMsg(message: QueryAccountInfoRequestProtoMsg): QueryAccountInfoRequest {
|
|
1943
|
+
return QueryAccountInfoRequest.decode(message.value);
|
|
1944
|
+
},
|
|
1945
|
+
toProto(message: QueryAccountInfoRequest): Uint8Array {
|
|
1946
|
+
return QueryAccountInfoRequest.encode(message).finish();
|
|
1947
|
+
},
|
|
1948
|
+
toProtoMsg(message: QueryAccountInfoRequest): QueryAccountInfoRequestProtoMsg {
|
|
1949
|
+
return {
|
|
1950
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoRequest",
|
|
1951
|
+
value: QueryAccountInfoRequest.encode(message).finish()
|
|
1952
|
+
};
|
|
1953
|
+
}
|
|
1954
|
+
};
|
|
1955
|
+
GlobalDecoderRegistry.register(QueryAccountInfoRequest.typeUrl, QueryAccountInfoRequest);
|
|
1956
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountInfoRequest.aminoType, QueryAccountInfoRequest.typeUrl);
|
|
1957
|
+
function createBaseQueryAccountInfoResponse(): QueryAccountInfoResponse {
|
|
1958
|
+
return {
|
|
1959
|
+
info: undefined
|
|
1960
|
+
};
|
|
1961
|
+
}
|
|
1962
|
+
export const QueryAccountInfoResponse = {
|
|
1963
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoResponse",
|
|
1964
|
+
aminoType: "cosmos-sdk/QueryAccountInfoResponse",
|
|
1965
|
+
is(o: any): o is QueryAccountInfoResponse {
|
|
1966
|
+
return o && o.$typeUrl === QueryAccountInfoResponse.typeUrl;
|
|
1967
|
+
},
|
|
1968
|
+
isAmino(o: any): o is QueryAccountInfoResponseAmino {
|
|
1969
|
+
return o && o.$typeUrl === QueryAccountInfoResponse.typeUrl;
|
|
1970
|
+
},
|
|
1971
|
+
encode(message: QueryAccountInfoResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1972
|
+
if (message.info !== undefined) {
|
|
1973
|
+
BaseAccount.encode(message.info, writer.uint32(10).fork()).ldelim();
|
|
1974
|
+
}
|
|
1975
|
+
return writer;
|
|
1976
|
+
},
|
|
1977
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAccountInfoResponse {
|
|
1978
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1979
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1980
|
+
const message = createBaseQueryAccountInfoResponse();
|
|
1981
|
+
while (reader.pos < end) {
|
|
1982
|
+
const tag = reader.uint32();
|
|
1983
|
+
switch (tag >>> 3) {
|
|
1984
|
+
case 1:
|
|
1985
|
+
message.info = BaseAccount.decode(reader, reader.uint32());
|
|
1986
|
+
break;
|
|
1987
|
+
default:
|
|
1988
|
+
reader.skipType(tag & 7);
|
|
1989
|
+
break;
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
return message;
|
|
1993
|
+
},
|
|
1994
|
+
fromPartial(object: DeepPartial<QueryAccountInfoResponse>): QueryAccountInfoResponse {
|
|
1995
|
+
const message = createBaseQueryAccountInfoResponse();
|
|
1996
|
+
message.info = object.info !== undefined && object.info !== null ? BaseAccount.fromPartial(object.info) : undefined;
|
|
1997
|
+
return message;
|
|
1998
|
+
},
|
|
1999
|
+
fromAmino(object: QueryAccountInfoResponseAmino): QueryAccountInfoResponse {
|
|
2000
|
+
const message = createBaseQueryAccountInfoResponse();
|
|
2001
|
+
if (object.info !== undefined && object.info !== null) {
|
|
2002
|
+
message.info = BaseAccount.fromAmino(object.info);
|
|
2003
|
+
}
|
|
2004
|
+
return message;
|
|
2005
|
+
},
|
|
2006
|
+
toAmino(message: QueryAccountInfoResponse): QueryAccountInfoResponseAmino {
|
|
2007
|
+
const obj: any = {};
|
|
2008
|
+
obj.info = message.info ? BaseAccount.toAmino(message.info) : undefined;
|
|
2009
|
+
return obj;
|
|
2010
|
+
},
|
|
2011
|
+
fromAminoMsg(object: QueryAccountInfoResponseAminoMsg): QueryAccountInfoResponse {
|
|
2012
|
+
return QueryAccountInfoResponse.fromAmino(object.value);
|
|
2013
|
+
},
|
|
2014
|
+
toAminoMsg(message: QueryAccountInfoResponse): QueryAccountInfoResponseAminoMsg {
|
|
2015
|
+
return {
|
|
2016
|
+
type: "cosmos-sdk/QueryAccountInfoResponse",
|
|
2017
|
+
value: QueryAccountInfoResponse.toAmino(message)
|
|
2018
|
+
};
|
|
2019
|
+
},
|
|
2020
|
+
fromProtoMsg(message: QueryAccountInfoResponseProtoMsg): QueryAccountInfoResponse {
|
|
2021
|
+
return QueryAccountInfoResponse.decode(message.value);
|
|
2022
|
+
},
|
|
2023
|
+
toProto(message: QueryAccountInfoResponse): Uint8Array {
|
|
2024
|
+
return QueryAccountInfoResponse.encode(message).finish();
|
|
2025
|
+
},
|
|
2026
|
+
toProtoMsg(message: QueryAccountInfoResponse): QueryAccountInfoResponseProtoMsg {
|
|
2027
|
+
return {
|
|
2028
|
+
typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoResponse",
|
|
2029
|
+
value: QueryAccountInfoResponse.encode(message).finish()
|
|
2030
|
+
};
|
|
2031
|
+
}
|
|
2032
|
+
};
|
|
2033
|
+
GlobalDecoderRegistry.register(QueryAccountInfoResponse.typeUrl, QueryAccountInfoResponse);
|
|
2034
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(QueryAccountInfoResponse.aminoType, QueryAccountInfoResponse.typeUrl);
|