@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,974 @@
|
|
|
1
|
+
import { Coin, CoinAmino } from "../../base/v1beta1/coin";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
5
|
+
/** Params defines the parameters for the bank module. */
|
|
6
|
+
export interface Params {
|
|
7
|
+
/**
|
|
8
|
+
* Deprecated: Use of SendEnabled in params is deprecated.
|
|
9
|
+
* For genesis, use the newly added send_enabled field in the genesis object.
|
|
10
|
+
* Storage, lookup, and manipulation of this information is now in the keeper.
|
|
11
|
+
*
|
|
12
|
+
* As of cosmos-sdk 0.47, this only exists for backwards compatibility of genesis files.
|
|
13
|
+
*/
|
|
14
|
+
/** @deprecated */
|
|
15
|
+
sendEnabled: SendEnabled[];
|
|
16
|
+
defaultSendEnabled: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface ParamsProtoMsg {
|
|
19
|
+
typeUrl: "/cosmos.bank.v1beta1.Params";
|
|
20
|
+
value: Uint8Array;
|
|
21
|
+
}
|
|
22
|
+
/** Params defines the parameters for the bank module. */
|
|
23
|
+
export interface ParamsAmino {
|
|
24
|
+
/**
|
|
25
|
+
* Deprecated: Use of SendEnabled in params is deprecated.
|
|
26
|
+
* For genesis, use the newly added send_enabled field in the genesis object.
|
|
27
|
+
* Storage, lookup, and manipulation of this information is now in the keeper.
|
|
28
|
+
*
|
|
29
|
+
* As of cosmos-sdk 0.47, this only exists for backwards compatibility of genesis files.
|
|
30
|
+
*/
|
|
31
|
+
/** @deprecated */
|
|
32
|
+
send_enabled: SendEnabledAmino[];
|
|
33
|
+
default_send_enabled: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface ParamsAminoMsg {
|
|
36
|
+
type: "cosmos-sdk/x/bank/Params";
|
|
37
|
+
value: ParamsAmino;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* SendEnabled maps coin denom to a send_enabled status (whether a denom is
|
|
41
|
+
* sendable).
|
|
42
|
+
*/
|
|
43
|
+
export interface SendEnabled {
|
|
44
|
+
denom: string;
|
|
45
|
+
enabled: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface SendEnabledProtoMsg {
|
|
48
|
+
typeUrl: "/cosmos.bank.v1beta1.SendEnabled";
|
|
49
|
+
value: Uint8Array;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* SendEnabled maps coin denom to a send_enabled status (whether a denom is
|
|
53
|
+
* sendable).
|
|
54
|
+
*/
|
|
55
|
+
export interface SendEnabledAmino {
|
|
56
|
+
denom: string;
|
|
57
|
+
enabled: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface SendEnabledAminoMsg {
|
|
60
|
+
type: "cosmos-sdk/SendEnabled";
|
|
61
|
+
value: SendEnabledAmino;
|
|
62
|
+
}
|
|
63
|
+
/** Input models transaction input. */
|
|
64
|
+
export interface Input {
|
|
65
|
+
address: string;
|
|
66
|
+
coins: Coin[];
|
|
67
|
+
}
|
|
68
|
+
export interface InputProtoMsg {
|
|
69
|
+
typeUrl: "/cosmos.bank.v1beta1.Input";
|
|
70
|
+
value: Uint8Array;
|
|
71
|
+
}
|
|
72
|
+
/** Input models transaction input. */
|
|
73
|
+
export interface InputAmino {
|
|
74
|
+
address: string;
|
|
75
|
+
coins: CoinAmino[];
|
|
76
|
+
}
|
|
77
|
+
export interface InputAminoMsg {
|
|
78
|
+
type: "cosmos-sdk/Input";
|
|
79
|
+
value: InputAmino;
|
|
80
|
+
}
|
|
81
|
+
/** Output models transaction outputs. */
|
|
82
|
+
export interface Output {
|
|
83
|
+
address: string;
|
|
84
|
+
coins: Coin[];
|
|
85
|
+
}
|
|
86
|
+
export interface OutputProtoMsg {
|
|
87
|
+
typeUrl: "/cosmos.bank.v1beta1.Output";
|
|
88
|
+
value: Uint8Array;
|
|
89
|
+
}
|
|
90
|
+
/** Output models transaction outputs. */
|
|
91
|
+
export interface OutputAmino {
|
|
92
|
+
address: string;
|
|
93
|
+
coins: CoinAmino[];
|
|
94
|
+
}
|
|
95
|
+
export interface OutputAminoMsg {
|
|
96
|
+
type: "cosmos-sdk/Output";
|
|
97
|
+
value: OutputAmino;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Supply represents a struct that passively keeps track of the total supply
|
|
101
|
+
* amounts in the network.
|
|
102
|
+
* This message is deprecated now that supply is indexed by denom.
|
|
103
|
+
*/
|
|
104
|
+
/** @deprecated */
|
|
105
|
+
export interface Supply {
|
|
106
|
+
total: Coin[];
|
|
107
|
+
}
|
|
108
|
+
export interface SupplyProtoMsg {
|
|
109
|
+
typeUrl: "/cosmos.bank.v1beta1.Supply";
|
|
110
|
+
value: Uint8Array;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Supply represents a struct that passively keeps track of the total supply
|
|
114
|
+
* amounts in the network.
|
|
115
|
+
* This message is deprecated now that supply is indexed by denom.
|
|
116
|
+
*/
|
|
117
|
+
/** @deprecated */
|
|
118
|
+
export interface SupplyAmino {
|
|
119
|
+
total: CoinAmino[];
|
|
120
|
+
}
|
|
121
|
+
export interface SupplyAminoMsg {
|
|
122
|
+
type: "cosmos-sdk/Supply";
|
|
123
|
+
value: SupplyAmino;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* DenomUnit represents a struct that describes a given
|
|
127
|
+
* denomination unit of the basic token.
|
|
128
|
+
*/
|
|
129
|
+
export interface DenomUnit {
|
|
130
|
+
/** denom represents the string name of the given denom unit (e.g uatom). */
|
|
131
|
+
denom: string;
|
|
132
|
+
/**
|
|
133
|
+
* exponent represents power of 10 exponent that one must
|
|
134
|
+
* raise the base_denom to in order to equal the given DenomUnit's denom
|
|
135
|
+
* 1 denom = 10^exponent base_denom
|
|
136
|
+
* (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
|
|
137
|
+
* exponent = 6, thus: 1 atom = 10^6 uatom).
|
|
138
|
+
*/
|
|
139
|
+
exponent: number;
|
|
140
|
+
/** aliases is a list of string aliases for the given denom */
|
|
141
|
+
aliases: string[];
|
|
142
|
+
}
|
|
143
|
+
export interface DenomUnitProtoMsg {
|
|
144
|
+
typeUrl: "/cosmos.bank.v1beta1.DenomUnit";
|
|
145
|
+
value: Uint8Array;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* DenomUnit represents a struct that describes a given
|
|
149
|
+
* denomination unit of the basic token.
|
|
150
|
+
*/
|
|
151
|
+
export interface DenomUnitAmino {
|
|
152
|
+
/** denom represents the string name of the given denom unit (e.g uatom). */
|
|
153
|
+
denom: string;
|
|
154
|
+
/**
|
|
155
|
+
* exponent represents power of 10 exponent that one must
|
|
156
|
+
* raise the base_denom to in order to equal the given DenomUnit's denom
|
|
157
|
+
* 1 denom = 10^exponent base_denom
|
|
158
|
+
* (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
|
|
159
|
+
* exponent = 6, thus: 1 atom = 10^6 uatom).
|
|
160
|
+
*/
|
|
161
|
+
exponent: number;
|
|
162
|
+
/** aliases is a list of string aliases for the given denom */
|
|
163
|
+
aliases: string[];
|
|
164
|
+
}
|
|
165
|
+
export interface DenomUnitAminoMsg {
|
|
166
|
+
type: "cosmos-sdk/DenomUnit";
|
|
167
|
+
value: DenomUnitAmino;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Metadata represents a struct that describes
|
|
171
|
+
* a basic token.
|
|
172
|
+
*/
|
|
173
|
+
export interface Metadata {
|
|
174
|
+
description: string;
|
|
175
|
+
/** denom_units represents the list of DenomUnit's for a given coin */
|
|
176
|
+
denomUnits: DenomUnit[];
|
|
177
|
+
/** base represents the base denom (should be the DenomUnit with exponent = 0). */
|
|
178
|
+
base: string;
|
|
179
|
+
/**
|
|
180
|
+
* display indicates the suggested denom that should be
|
|
181
|
+
* displayed in clients.
|
|
182
|
+
*/
|
|
183
|
+
display: string;
|
|
184
|
+
/**
|
|
185
|
+
* name defines the name of the token (eg: Cosmos Atom)
|
|
186
|
+
*
|
|
187
|
+
* Since: cosmos-sdk 0.43
|
|
188
|
+
*/
|
|
189
|
+
name: string;
|
|
190
|
+
/**
|
|
191
|
+
* symbol is the token symbol usually shown on exchanges (eg: ATOM). This can
|
|
192
|
+
* be the same as the display.
|
|
193
|
+
*
|
|
194
|
+
* Since: cosmos-sdk 0.43
|
|
195
|
+
*/
|
|
196
|
+
symbol: string;
|
|
197
|
+
/**
|
|
198
|
+
* URI to a document (on or off-chain) that contains additional information. Optional.
|
|
199
|
+
*
|
|
200
|
+
* Since: cosmos-sdk 0.46
|
|
201
|
+
*/
|
|
202
|
+
uri: string;
|
|
203
|
+
/**
|
|
204
|
+
* URIHash is a sha256 hash of a document pointed by URI. It's used to verify that
|
|
205
|
+
* the document didn't change. Optional.
|
|
206
|
+
*
|
|
207
|
+
* Since: cosmos-sdk 0.46
|
|
208
|
+
*/
|
|
209
|
+
uriHash: string;
|
|
210
|
+
}
|
|
211
|
+
export interface MetadataProtoMsg {
|
|
212
|
+
typeUrl: "/cosmos.bank.v1beta1.Metadata";
|
|
213
|
+
value: Uint8Array;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Metadata represents a struct that describes
|
|
217
|
+
* a basic token.
|
|
218
|
+
*/
|
|
219
|
+
export interface MetadataAmino {
|
|
220
|
+
description: string;
|
|
221
|
+
/** denom_units represents the list of DenomUnit's for a given coin */
|
|
222
|
+
denom_units: DenomUnitAmino[];
|
|
223
|
+
/** base represents the base denom (should be the DenomUnit with exponent = 0). */
|
|
224
|
+
base: string;
|
|
225
|
+
/**
|
|
226
|
+
* display indicates the suggested denom that should be
|
|
227
|
+
* displayed in clients.
|
|
228
|
+
*/
|
|
229
|
+
display: string;
|
|
230
|
+
/**
|
|
231
|
+
* name defines the name of the token (eg: Cosmos Atom)
|
|
232
|
+
*
|
|
233
|
+
* Since: cosmos-sdk 0.43
|
|
234
|
+
*/
|
|
235
|
+
name: string;
|
|
236
|
+
/**
|
|
237
|
+
* symbol is the token symbol usually shown on exchanges (eg: ATOM). This can
|
|
238
|
+
* be the same as the display.
|
|
239
|
+
*
|
|
240
|
+
* Since: cosmos-sdk 0.43
|
|
241
|
+
*/
|
|
242
|
+
symbol: string;
|
|
243
|
+
/**
|
|
244
|
+
* URI to a document (on or off-chain) that contains additional information. Optional.
|
|
245
|
+
*
|
|
246
|
+
* Since: cosmos-sdk 0.46
|
|
247
|
+
*/
|
|
248
|
+
uri: string;
|
|
249
|
+
/**
|
|
250
|
+
* URIHash is a sha256 hash of a document pointed by URI. It's used to verify that
|
|
251
|
+
* the document didn't change. Optional.
|
|
252
|
+
*
|
|
253
|
+
* Since: cosmos-sdk 0.46
|
|
254
|
+
*/
|
|
255
|
+
uri_hash: string;
|
|
256
|
+
}
|
|
257
|
+
export interface MetadataAminoMsg {
|
|
258
|
+
type: "cosmos-sdk/Metadata";
|
|
259
|
+
value: MetadataAmino;
|
|
260
|
+
}
|
|
261
|
+
function createBaseParams(): Params {
|
|
262
|
+
return {
|
|
263
|
+
sendEnabled: [],
|
|
264
|
+
defaultSendEnabled: false
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
export const Params = {
|
|
268
|
+
typeUrl: "/cosmos.bank.v1beta1.Params",
|
|
269
|
+
aminoType: "cosmos-sdk/x/bank/Params",
|
|
270
|
+
is(o: any): o is Params {
|
|
271
|
+
return o && (o.$typeUrl === Params.typeUrl || Array.isArray(o.sendEnabled) && (!o.sendEnabled.length || SendEnabled.is(o.sendEnabled[0])) && typeof o.defaultSendEnabled === "boolean");
|
|
272
|
+
},
|
|
273
|
+
isAmino(o: any): o is ParamsAmino {
|
|
274
|
+
return o && (o.$typeUrl === Params.typeUrl || Array.isArray(o.send_enabled) && (!o.send_enabled.length || SendEnabled.isAmino(o.send_enabled[0])) && typeof o.default_send_enabled === "boolean");
|
|
275
|
+
},
|
|
276
|
+
encode(message: Params, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
277
|
+
for (const v of message.sendEnabled) {
|
|
278
|
+
SendEnabled.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
279
|
+
}
|
|
280
|
+
if (message.defaultSendEnabled === true) {
|
|
281
|
+
writer.uint32(16).bool(message.defaultSendEnabled);
|
|
282
|
+
}
|
|
283
|
+
return writer;
|
|
284
|
+
},
|
|
285
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params {
|
|
286
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
287
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
288
|
+
const message = createBaseParams();
|
|
289
|
+
while (reader.pos < end) {
|
|
290
|
+
const tag = reader.uint32();
|
|
291
|
+
switch (tag >>> 3) {
|
|
292
|
+
case 1:
|
|
293
|
+
message.sendEnabled.push(SendEnabled.decode(reader, reader.uint32()));
|
|
294
|
+
break;
|
|
295
|
+
case 2:
|
|
296
|
+
message.defaultSendEnabled = reader.bool();
|
|
297
|
+
break;
|
|
298
|
+
default:
|
|
299
|
+
reader.skipType(tag & 7);
|
|
300
|
+
break;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
return message;
|
|
304
|
+
},
|
|
305
|
+
fromPartial(object: DeepPartial<Params>): Params {
|
|
306
|
+
const message = createBaseParams();
|
|
307
|
+
message.sendEnabled = object.sendEnabled?.map(e => SendEnabled.fromPartial(e)) || [];
|
|
308
|
+
message.defaultSendEnabled = object.defaultSendEnabled ?? false;
|
|
309
|
+
return message;
|
|
310
|
+
},
|
|
311
|
+
fromAmino(object: ParamsAmino): Params {
|
|
312
|
+
const message = createBaseParams();
|
|
313
|
+
message.sendEnabled = object.send_enabled?.map(e => SendEnabled.fromAmino(e)) || [];
|
|
314
|
+
if (object.default_send_enabled !== undefined && object.default_send_enabled !== null) {
|
|
315
|
+
message.defaultSendEnabled = object.default_send_enabled;
|
|
316
|
+
}
|
|
317
|
+
return message;
|
|
318
|
+
},
|
|
319
|
+
toAmino(message: Params): ParamsAmino {
|
|
320
|
+
const obj: any = {};
|
|
321
|
+
if (message.sendEnabled) {
|
|
322
|
+
obj.send_enabled = message.sendEnabled.map(e => e ? SendEnabled.toAmino(e) : undefined);
|
|
323
|
+
} else {
|
|
324
|
+
obj.send_enabled = message.sendEnabled;
|
|
325
|
+
}
|
|
326
|
+
obj.default_send_enabled = message.defaultSendEnabled === false ? undefined : message.defaultSendEnabled;
|
|
327
|
+
return obj;
|
|
328
|
+
},
|
|
329
|
+
fromAminoMsg(object: ParamsAminoMsg): Params {
|
|
330
|
+
return Params.fromAmino(object.value);
|
|
331
|
+
},
|
|
332
|
+
toAminoMsg(message: Params): ParamsAminoMsg {
|
|
333
|
+
return {
|
|
334
|
+
type: "cosmos-sdk/x/bank/Params",
|
|
335
|
+
value: Params.toAmino(message)
|
|
336
|
+
};
|
|
337
|
+
},
|
|
338
|
+
fromProtoMsg(message: ParamsProtoMsg): Params {
|
|
339
|
+
return Params.decode(message.value);
|
|
340
|
+
},
|
|
341
|
+
toProto(message: Params): Uint8Array {
|
|
342
|
+
return Params.encode(message).finish();
|
|
343
|
+
},
|
|
344
|
+
toProtoMsg(message: Params): ParamsProtoMsg {
|
|
345
|
+
return {
|
|
346
|
+
typeUrl: "/cosmos.bank.v1beta1.Params",
|
|
347
|
+
value: Params.encode(message).finish()
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
GlobalDecoderRegistry.register(Params.typeUrl, Params);
|
|
352
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Params.aminoType, Params.typeUrl);
|
|
353
|
+
function createBaseSendEnabled(): SendEnabled {
|
|
354
|
+
return {
|
|
355
|
+
denom: "",
|
|
356
|
+
enabled: false
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
export const SendEnabled = {
|
|
360
|
+
typeUrl: "/cosmos.bank.v1beta1.SendEnabled",
|
|
361
|
+
aminoType: "cosmos-sdk/SendEnabled",
|
|
362
|
+
is(o: any): o is SendEnabled {
|
|
363
|
+
return o && (o.$typeUrl === SendEnabled.typeUrl || typeof o.denom === "string" && typeof o.enabled === "boolean");
|
|
364
|
+
},
|
|
365
|
+
isAmino(o: any): o is SendEnabledAmino {
|
|
366
|
+
return o && (o.$typeUrl === SendEnabled.typeUrl || typeof o.denom === "string" && typeof o.enabled === "boolean");
|
|
367
|
+
},
|
|
368
|
+
encode(message: SendEnabled, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
369
|
+
if (message.denom !== "") {
|
|
370
|
+
writer.uint32(10).string(message.denom);
|
|
371
|
+
}
|
|
372
|
+
if (message.enabled === true) {
|
|
373
|
+
writer.uint32(16).bool(message.enabled);
|
|
374
|
+
}
|
|
375
|
+
return writer;
|
|
376
|
+
},
|
|
377
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SendEnabled {
|
|
378
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
379
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
380
|
+
const message = createBaseSendEnabled();
|
|
381
|
+
while (reader.pos < end) {
|
|
382
|
+
const tag = reader.uint32();
|
|
383
|
+
switch (tag >>> 3) {
|
|
384
|
+
case 1:
|
|
385
|
+
message.denom = reader.string();
|
|
386
|
+
break;
|
|
387
|
+
case 2:
|
|
388
|
+
message.enabled = reader.bool();
|
|
389
|
+
break;
|
|
390
|
+
default:
|
|
391
|
+
reader.skipType(tag & 7);
|
|
392
|
+
break;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
return message;
|
|
396
|
+
},
|
|
397
|
+
fromPartial(object: DeepPartial<SendEnabled>): SendEnabled {
|
|
398
|
+
const message = createBaseSendEnabled();
|
|
399
|
+
message.denom = object.denom ?? "";
|
|
400
|
+
message.enabled = object.enabled ?? false;
|
|
401
|
+
return message;
|
|
402
|
+
},
|
|
403
|
+
fromAmino(object: SendEnabledAmino): SendEnabled {
|
|
404
|
+
const message = createBaseSendEnabled();
|
|
405
|
+
if (object.denom !== undefined && object.denom !== null) {
|
|
406
|
+
message.denom = object.denom;
|
|
407
|
+
}
|
|
408
|
+
if (object.enabled !== undefined && object.enabled !== null) {
|
|
409
|
+
message.enabled = object.enabled;
|
|
410
|
+
}
|
|
411
|
+
return message;
|
|
412
|
+
},
|
|
413
|
+
toAmino(message: SendEnabled): SendEnabledAmino {
|
|
414
|
+
const obj: any = {};
|
|
415
|
+
obj.denom = message.denom === "" ? undefined : message.denom;
|
|
416
|
+
obj.enabled = message.enabled === false ? undefined : message.enabled;
|
|
417
|
+
return obj;
|
|
418
|
+
},
|
|
419
|
+
fromAminoMsg(object: SendEnabledAminoMsg): SendEnabled {
|
|
420
|
+
return SendEnabled.fromAmino(object.value);
|
|
421
|
+
},
|
|
422
|
+
toAminoMsg(message: SendEnabled): SendEnabledAminoMsg {
|
|
423
|
+
return {
|
|
424
|
+
type: "cosmos-sdk/SendEnabled",
|
|
425
|
+
value: SendEnabled.toAmino(message)
|
|
426
|
+
};
|
|
427
|
+
},
|
|
428
|
+
fromProtoMsg(message: SendEnabledProtoMsg): SendEnabled {
|
|
429
|
+
return SendEnabled.decode(message.value);
|
|
430
|
+
},
|
|
431
|
+
toProto(message: SendEnabled): Uint8Array {
|
|
432
|
+
return SendEnabled.encode(message).finish();
|
|
433
|
+
},
|
|
434
|
+
toProtoMsg(message: SendEnabled): SendEnabledProtoMsg {
|
|
435
|
+
return {
|
|
436
|
+
typeUrl: "/cosmos.bank.v1beta1.SendEnabled",
|
|
437
|
+
value: SendEnabled.encode(message).finish()
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
GlobalDecoderRegistry.register(SendEnabled.typeUrl, SendEnabled);
|
|
442
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(SendEnabled.aminoType, SendEnabled.typeUrl);
|
|
443
|
+
function createBaseInput(): Input {
|
|
444
|
+
return {
|
|
445
|
+
address: "",
|
|
446
|
+
coins: []
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
export const Input = {
|
|
450
|
+
typeUrl: "/cosmos.bank.v1beta1.Input",
|
|
451
|
+
aminoType: "cosmos-sdk/Input",
|
|
452
|
+
is(o: any): o is Input {
|
|
453
|
+
return o && (o.$typeUrl === Input.typeUrl || typeof o.address === "string" && Array.isArray(o.coins) && (!o.coins.length || Coin.is(o.coins[0])));
|
|
454
|
+
},
|
|
455
|
+
isAmino(o: any): o is InputAmino {
|
|
456
|
+
return o && (o.$typeUrl === Input.typeUrl || typeof o.address === "string" && Array.isArray(o.coins) && (!o.coins.length || Coin.isAmino(o.coins[0])));
|
|
457
|
+
},
|
|
458
|
+
encode(message: Input, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
459
|
+
if (message.address !== "") {
|
|
460
|
+
writer.uint32(10).string(message.address);
|
|
461
|
+
}
|
|
462
|
+
for (const v of message.coins) {
|
|
463
|
+
Coin.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
464
|
+
}
|
|
465
|
+
return writer;
|
|
466
|
+
},
|
|
467
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Input {
|
|
468
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
469
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
470
|
+
const message = createBaseInput();
|
|
471
|
+
while (reader.pos < end) {
|
|
472
|
+
const tag = reader.uint32();
|
|
473
|
+
switch (tag >>> 3) {
|
|
474
|
+
case 1:
|
|
475
|
+
message.address = reader.string();
|
|
476
|
+
break;
|
|
477
|
+
case 2:
|
|
478
|
+
message.coins.push(Coin.decode(reader, reader.uint32()));
|
|
479
|
+
break;
|
|
480
|
+
default:
|
|
481
|
+
reader.skipType(tag & 7);
|
|
482
|
+
break;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
return message;
|
|
486
|
+
},
|
|
487
|
+
fromPartial(object: DeepPartial<Input>): Input {
|
|
488
|
+
const message = createBaseInput();
|
|
489
|
+
message.address = object.address ?? "";
|
|
490
|
+
message.coins = object.coins?.map(e => Coin.fromPartial(e)) || [];
|
|
491
|
+
return message;
|
|
492
|
+
},
|
|
493
|
+
fromAmino(object: InputAmino): Input {
|
|
494
|
+
const message = createBaseInput();
|
|
495
|
+
if (object.address !== undefined && object.address !== null) {
|
|
496
|
+
message.address = object.address;
|
|
497
|
+
}
|
|
498
|
+
message.coins = object.coins?.map(e => Coin.fromAmino(e)) || [];
|
|
499
|
+
return message;
|
|
500
|
+
},
|
|
501
|
+
toAmino(message: Input): InputAmino {
|
|
502
|
+
const obj: any = {};
|
|
503
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
504
|
+
if (message.coins) {
|
|
505
|
+
obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined);
|
|
506
|
+
} else {
|
|
507
|
+
obj.coins = message.coins;
|
|
508
|
+
}
|
|
509
|
+
return obj;
|
|
510
|
+
},
|
|
511
|
+
fromAminoMsg(object: InputAminoMsg): Input {
|
|
512
|
+
return Input.fromAmino(object.value);
|
|
513
|
+
},
|
|
514
|
+
toAminoMsg(message: Input): InputAminoMsg {
|
|
515
|
+
return {
|
|
516
|
+
type: "cosmos-sdk/Input",
|
|
517
|
+
value: Input.toAmino(message)
|
|
518
|
+
};
|
|
519
|
+
},
|
|
520
|
+
fromProtoMsg(message: InputProtoMsg): Input {
|
|
521
|
+
return Input.decode(message.value);
|
|
522
|
+
},
|
|
523
|
+
toProto(message: Input): Uint8Array {
|
|
524
|
+
return Input.encode(message).finish();
|
|
525
|
+
},
|
|
526
|
+
toProtoMsg(message: Input): InputProtoMsg {
|
|
527
|
+
return {
|
|
528
|
+
typeUrl: "/cosmos.bank.v1beta1.Input",
|
|
529
|
+
value: Input.encode(message).finish()
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
GlobalDecoderRegistry.register(Input.typeUrl, Input);
|
|
534
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Input.aminoType, Input.typeUrl);
|
|
535
|
+
function createBaseOutput(): Output {
|
|
536
|
+
return {
|
|
537
|
+
address: "",
|
|
538
|
+
coins: []
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
export const Output = {
|
|
542
|
+
typeUrl: "/cosmos.bank.v1beta1.Output",
|
|
543
|
+
aminoType: "cosmos-sdk/Output",
|
|
544
|
+
is(o: any): o is Output {
|
|
545
|
+
return o && (o.$typeUrl === Output.typeUrl || typeof o.address === "string" && Array.isArray(o.coins) && (!o.coins.length || Coin.is(o.coins[0])));
|
|
546
|
+
},
|
|
547
|
+
isAmino(o: any): o is OutputAmino {
|
|
548
|
+
return o && (o.$typeUrl === Output.typeUrl || typeof o.address === "string" && Array.isArray(o.coins) && (!o.coins.length || Coin.isAmino(o.coins[0])));
|
|
549
|
+
},
|
|
550
|
+
encode(message: Output, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
551
|
+
if (message.address !== "") {
|
|
552
|
+
writer.uint32(10).string(message.address);
|
|
553
|
+
}
|
|
554
|
+
for (const v of message.coins) {
|
|
555
|
+
Coin.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
556
|
+
}
|
|
557
|
+
return writer;
|
|
558
|
+
},
|
|
559
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Output {
|
|
560
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
561
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
562
|
+
const message = createBaseOutput();
|
|
563
|
+
while (reader.pos < end) {
|
|
564
|
+
const tag = reader.uint32();
|
|
565
|
+
switch (tag >>> 3) {
|
|
566
|
+
case 1:
|
|
567
|
+
message.address = reader.string();
|
|
568
|
+
break;
|
|
569
|
+
case 2:
|
|
570
|
+
message.coins.push(Coin.decode(reader, reader.uint32()));
|
|
571
|
+
break;
|
|
572
|
+
default:
|
|
573
|
+
reader.skipType(tag & 7);
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
return message;
|
|
578
|
+
},
|
|
579
|
+
fromPartial(object: DeepPartial<Output>): Output {
|
|
580
|
+
const message = createBaseOutput();
|
|
581
|
+
message.address = object.address ?? "";
|
|
582
|
+
message.coins = object.coins?.map(e => Coin.fromPartial(e)) || [];
|
|
583
|
+
return message;
|
|
584
|
+
},
|
|
585
|
+
fromAmino(object: OutputAmino): Output {
|
|
586
|
+
const message = createBaseOutput();
|
|
587
|
+
if (object.address !== undefined && object.address !== null) {
|
|
588
|
+
message.address = object.address;
|
|
589
|
+
}
|
|
590
|
+
message.coins = object.coins?.map(e => Coin.fromAmino(e)) || [];
|
|
591
|
+
return message;
|
|
592
|
+
},
|
|
593
|
+
toAmino(message: Output): OutputAmino {
|
|
594
|
+
const obj: any = {};
|
|
595
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
596
|
+
if (message.coins) {
|
|
597
|
+
obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined);
|
|
598
|
+
} else {
|
|
599
|
+
obj.coins = message.coins;
|
|
600
|
+
}
|
|
601
|
+
return obj;
|
|
602
|
+
},
|
|
603
|
+
fromAminoMsg(object: OutputAminoMsg): Output {
|
|
604
|
+
return Output.fromAmino(object.value);
|
|
605
|
+
},
|
|
606
|
+
toAminoMsg(message: Output): OutputAminoMsg {
|
|
607
|
+
return {
|
|
608
|
+
type: "cosmos-sdk/Output",
|
|
609
|
+
value: Output.toAmino(message)
|
|
610
|
+
};
|
|
611
|
+
},
|
|
612
|
+
fromProtoMsg(message: OutputProtoMsg): Output {
|
|
613
|
+
return Output.decode(message.value);
|
|
614
|
+
},
|
|
615
|
+
toProto(message: Output): Uint8Array {
|
|
616
|
+
return Output.encode(message).finish();
|
|
617
|
+
},
|
|
618
|
+
toProtoMsg(message: Output): OutputProtoMsg {
|
|
619
|
+
return {
|
|
620
|
+
typeUrl: "/cosmos.bank.v1beta1.Output",
|
|
621
|
+
value: Output.encode(message).finish()
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
GlobalDecoderRegistry.register(Output.typeUrl, Output);
|
|
626
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Output.aminoType, Output.typeUrl);
|
|
627
|
+
function createBaseSupply(): Supply {
|
|
628
|
+
return {
|
|
629
|
+
total: []
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
export const Supply = {
|
|
633
|
+
typeUrl: "/cosmos.bank.v1beta1.Supply",
|
|
634
|
+
aminoType: "cosmos-sdk/Supply",
|
|
635
|
+
is(o: any): o is Supply {
|
|
636
|
+
return o && (o.$typeUrl === Supply.typeUrl || Array.isArray(o.total) && (!o.total.length || Coin.is(o.total[0])));
|
|
637
|
+
},
|
|
638
|
+
isAmino(o: any): o is SupplyAmino {
|
|
639
|
+
return o && (o.$typeUrl === Supply.typeUrl || Array.isArray(o.total) && (!o.total.length || Coin.isAmino(o.total[0])));
|
|
640
|
+
},
|
|
641
|
+
encode(message: Supply, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
642
|
+
for (const v of message.total) {
|
|
643
|
+
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
644
|
+
}
|
|
645
|
+
return writer;
|
|
646
|
+
},
|
|
647
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Supply {
|
|
648
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
649
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
650
|
+
const message = createBaseSupply();
|
|
651
|
+
while (reader.pos < end) {
|
|
652
|
+
const tag = reader.uint32();
|
|
653
|
+
switch (tag >>> 3) {
|
|
654
|
+
case 1:
|
|
655
|
+
message.total.push(Coin.decode(reader, reader.uint32()));
|
|
656
|
+
break;
|
|
657
|
+
default:
|
|
658
|
+
reader.skipType(tag & 7);
|
|
659
|
+
break;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
return message;
|
|
663
|
+
},
|
|
664
|
+
fromPartial(object: DeepPartial<Supply>): Supply {
|
|
665
|
+
const message = createBaseSupply();
|
|
666
|
+
message.total = object.total?.map(e => Coin.fromPartial(e)) || [];
|
|
667
|
+
return message;
|
|
668
|
+
},
|
|
669
|
+
fromAmino(object: SupplyAmino): Supply {
|
|
670
|
+
const message = createBaseSupply();
|
|
671
|
+
message.total = object.total?.map(e => Coin.fromAmino(e)) || [];
|
|
672
|
+
return message;
|
|
673
|
+
},
|
|
674
|
+
toAmino(message: Supply): SupplyAmino {
|
|
675
|
+
const obj: any = {};
|
|
676
|
+
if (message.total) {
|
|
677
|
+
obj.total = message.total.map(e => e ? Coin.toAmino(e) : undefined);
|
|
678
|
+
} else {
|
|
679
|
+
obj.total = message.total;
|
|
680
|
+
}
|
|
681
|
+
return obj;
|
|
682
|
+
},
|
|
683
|
+
fromAminoMsg(object: SupplyAminoMsg): Supply {
|
|
684
|
+
return Supply.fromAmino(object.value);
|
|
685
|
+
},
|
|
686
|
+
toAminoMsg(message: Supply): SupplyAminoMsg {
|
|
687
|
+
return {
|
|
688
|
+
type: "cosmos-sdk/Supply",
|
|
689
|
+
value: Supply.toAmino(message)
|
|
690
|
+
};
|
|
691
|
+
},
|
|
692
|
+
fromProtoMsg(message: SupplyProtoMsg): Supply {
|
|
693
|
+
return Supply.decode(message.value);
|
|
694
|
+
},
|
|
695
|
+
toProto(message: Supply): Uint8Array {
|
|
696
|
+
return Supply.encode(message).finish();
|
|
697
|
+
},
|
|
698
|
+
toProtoMsg(message: Supply): SupplyProtoMsg {
|
|
699
|
+
return {
|
|
700
|
+
typeUrl: "/cosmos.bank.v1beta1.Supply",
|
|
701
|
+
value: Supply.encode(message).finish()
|
|
702
|
+
};
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
GlobalDecoderRegistry.register(Supply.typeUrl, Supply);
|
|
706
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Supply.aminoType, Supply.typeUrl);
|
|
707
|
+
function createBaseDenomUnit(): DenomUnit {
|
|
708
|
+
return {
|
|
709
|
+
denom: "",
|
|
710
|
+
exponent: 0,
|
|
711
|
+
aliases: []
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
export const DenomUnit = {
|
|
715
|
+
typeUrl: "/cosmos.bank.v1beta1.DenomUnit",
|
|
716
|
+
aminoType: "cosmos-sdk/DenomUnit",
|
|
717
|
+
is(o: any): o is DenomUnit {
|
|
718
|
+
return o && (o.$typeUrl === DenomUnit.typeUrl || typeof o.denom === "string" && typeof o.exponent === "number" && Array.isArray(o.aliases) && (!o.aliases.length || typeof o.aliases[0] === "string"));
|
|
719
|
+
},
|
|
720
|
+
isAmino(o: any): o is DenomUnitAmino {
|
|
721
|
+
return o && (o.$typeUrl === DenomUnit.typeUrl || typeof o.denom === "string" && typeof o.exponent === "number" && Array.isArray(o.aliases) && (!o.aliases.length || typeof o.aliases[0] === "string"));
|
|
722
|
+
},
|
|
723
|
+
encode(message: DenomUnit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
724
|
+
if (message.denom !== "") {
|
|
725
|
+
writer.uint32(10).string(message.denom);
|
|
726
|
+
}
|
|
727
|
+
if (message.exponent !== 0) {
|
|
728
|
+
writer.uint32(16).uint32(message.exponent);
|
|
729
|
+
}
|
|
730
|
+
for (const v of message.aliases) {
|
|
731
|
+
writer.uint32(26).string(v!);
|
|
732
|
+
}
|
|
733
|
+
return writer;
|
|
734
|
+
},
|
|
735
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DenomUnit {
|
|
736
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
737
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
738
|
+
const message = createBaseDenomUnit();
|
|
739
|
+
while (reader.pos < end) {
|
|
740
|
+
const tag = reader.uint32();
|
|
741
|
+
switch (tag >>> 3) {
|
|
742
|
+
case 1:
|
|
743
|
+
message.denom = reader.string();
|
|
744
|
+
break;
|
|
745
|
+
case 2:
|
|
746
|
+
message.exponent = reader.uint32();
|
|
747
|
+
break;
|
|
748
|
+
case 3:
|
|
749
|
+
message.aliases.push(reader.string());
|
|
750
|
+
break;
|
|
751
|
+
default:
|
|
752
|
+
reader.skipType(tag & 7);
|
|
753
|
+
break;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
return message;
|
|
757
|
+
},
|
|
758
|
+
fromPartial(object: DeepPartial<DenomUnit>): DenomUnit {
|
|
759
|
+
const message = createBaseDenomUnit();
|
|
760
|
+
message.denom = object.denom ?? "";
|
|
761
|
+
message.exponent = object.exponent ?? 0;
|
|
762
|
+
message.aliases = object.aliases?.map(e => e) || [];
|
|
763
|
+
return message;
|
|
764
|
+
},
|
|
765
|
+
fromAmino(object: DenomUnitAmino): DenomUnit {
|
|
766
|
+
const message = createBaseDenomUnit();
|
|
767
|
+
if (object.denom !== undefined && object.denom !== null) {
|
|
768
|
+
message.denom = object.denom;
|
|
769
|
+
}
|
|
770
|
+
if (object.exponent !== undefined && object.exponent !== null) {
|
|
771
|
+
message.exponent = object.exponent;
|
|
772
|
+
}
|
|
773
|
+
message.aliases = object.aliases?.map(e => e) || [];
|
|
774
|
+
return message;
|
|
775
|
+
},
|
|
776
|
+
toAmino(message: DenomUnit): DenomUnitAmino {
|
|
777
|
+
const obj: any = {};
|
|
778
|
+
obj.denom = message.denom === "" ? undefined : message.denom;
|
|
779
|
+
obj.exponent = message.exponent === 0 ? undefined : message.exponent;
|
|
780
|
+
if (message.aliases) {
|
|
781
|
+
obj.aliases = message.aliases.map(e => e);
|
|
782
|
+
} else {
|
|
783
|
+
obj.aliases = message.aliases;
|
|
784
|
+
}
|
|
785
|
+
return obj;
|
|
786
|
+
},
|
|
787
|
+
fromAminoMsg(object: DenomUnitAminoMsg): DenomUnit {
|
|
788
|
+
return DenomUnit.fromAmino(object.value);
|
|
789
|
+
},
|
|
790
|
+
toAminoMsg(message: DenomUnit): DenomUnitAminoMsg {
|
|
791
|
+
return {
|
|
792
|
+
type: "cosmos-sdk/DenomUnit",
|
|
793
|
+
value: DenomUnit.toAmino(message)
|
|
794
|
+
};
|
|
795
|
+
},
|
|
796
|
+
fromProtoMsg(message: DenomUnitProtoMsg): DenomUnit {
|
|
797
|
+
return DenomUnit.decode(message.value);
|
|
798
|
+
},
|
|
799
|
+
toProto(message: DenomUnit): Uint8Array {
|
|
800
|
+
return DenomUnit.encode(message).finish();
|
|
801
|
+
},
|
|
802
|
+
toProtoMsg(message: DenomUnit): DenomUnitProtoMsg {
|
|
803
|
+
return {
|
|
804
|
+
typeUrl: "/cosmos.bank.v1beta1.DenomUnit",
|
|
805
|
+
value: DenomUnit.encode(message).finish()
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
};
|
|
809
|
+
GlobalDecoderRegistry.register(DenomUnit.typeUrl, DenomUnit);
|
|
810
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(DenomUnit.aminoType, DenomUnit.typeUrl);
|
|
811
|
+
function createBaseMetadata(): Metadata {
|
|
812
|
+
return {
|
|
813
|
+
description: "",
|
|
814
|
+
denomUnits: [],
|
|
815
|
+
base: "",
|
|
816
|
+
display: "",
|
|
817
|
+
name: "",
|
|
818
|
+
symbol: "",
|
|
819
|
+
uri: "",
|
|
820
|
+
uriHash: ""
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
export const Metadata = {
|
|
824
|
+
typeUrl: "/cosmos.bank.v1beta1.Metadata",
|
|
825
|
+
aminoType: "cosmos-sdk/Metadata",
|
|
826
|
+
is(o: any): o is Metadata {
|
|
827
|
+
return o && (o.$typeUrl === Metadata.typeUrl || typeof o.description === "string" && Array.isArray(o.denomUnits) && (!o.denomUnits.length || DenomUnit.is(o.denomUnits[0])) && typeof o.base === "string" && typeof o.display === "string" && typeof o.name === "string" && typeof o.symbol === "string" && typeof o.uri === "string" && typeof o.uriHash === "string");
|
|
828
|
+
},
|
|
829
|
+
isAmino(o: any): o is MetadataAmino {
|
|
830
|
+
return o && (o.$typeUrl === Metadata.typeUrl || typeof o.description === "string" && Array.isArray(o.denom_units) && (!o.denom_units.length || DenomUnit.isAmino(o.denom_units[0])) && typeof o.base === "string" && typeof o.display === "string" && typeof o.name === "string" && typeof o.symbol === "string" && typeof o.uri === "string" && typeof o.uri_hash === "string");
|
|
831
|
+
},
|
|
832
|
+
encode(message: Metadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
833
|
+
if (message.description !== "") {
|
|
834
|
+
writer.uint32(10).string(message.description);
|
|
835
|
+
}
|
|
836
|
+
for (const v of message.denomUnits) {
|
|
837
|
+
DenomUnit.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
838
|
+
}
|
|
839
|
+
if (message.base !== "") {
|
|
840
|
+
writer.uint32(26).string(message.base);
|
|
841
|
+
}
|
|
842
|
+
if (message.display !== "") {
|
|
843
|
+
writer.uint32(34).string(message.display);
|
|
844
|
+
}
|
|
845
|
+
if (message.name !== "") {
|
|
846
|
+
writer.uint32(42).string(message.name);
|
|
847
|
+
}
|
|
848
|
+
if (message.symbol !== "") {
|
|
849
|
+
writer.uint32(50).string(message.symbol);
|
|
850
|
+
}
|
|
851
|
+
if (message.uri !== "") {
|
|
852
|
+
writer.uint32(58).string(message.uri);
|
|
853
|
+
}
|
|
854
|
+
if (message.uriHash !== "") {
|
|
855
|
+
writer.uint32(66).string(message.uriHash);
|
|
856
|
+
}
|
|
857
|
+
return writer;
|
|
858
|
+
},
|
|
859
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Metadata {
|
|
860
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
861
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
862
|
+
const message = createBaseMetadata();
|
|
863
|
+
while (reader.pos < end) {
|
|
864
|
+
const tag = reader.uint32();
|
|
865
|
+
switch (tag >>> 3) {
|
|
866
|
+
case 1:
|
|
867
|
+
message.description = reader.string();
|
|
868
|
+
break;
|
|
869
|
+
case 2:
|
|
870
|
+
message.denomUnits.push(DenomUnit.decode(reader, reader.uint32()));
|
|
871
|
+
break;
|
|
872
|
+
case 3:
|
|
873
|
+
message.base = reader.string();
|
|
874
|
+
break;
|
|
875
|
+
case 4:
|
|
876
|
+
message.display = reader.string();
|
|
877
|
+
break;
|
|
878
|
+
case 5:
|
|
879
|
+
message.name = reader.string();
|
|
880
|
+
break;
|
|
881
|
+
case 6:
|
|
882
|
+
message.symbol = reader.string();
|
|
883
|
+
break;
|
|
884
|
+
case 7:
|
|
885
|
+
message.uri = reader.string();
|
|
886
|
+
break;
|
|
887
|
+
case 8:
|
|
888
|
+
message.uriHash = reader.string();
|
|
889
|
+
break;
|
|
890
|
+
default:
|
|
891
|
+
reader.skipType(tag & 7);
|
|
892
|
+
break;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
return message;
|
|
896
|
+
},
|
|
897
|
+
fromPartial(object: DeepPartial<Metadata>): Metadata {
|
|
898
|
+
const message = createBaseMetadata();
|
|
899
|
+
message.description = object.description ?? "";
|
|
900
|
+
message.denomUnits = object.denomUnits?.map(e => DenomUnit.fromPartial(e)) || [];
|
|
901
|
+
message.base = object.base ?? "";
|
|
902
|
+
message.display = object.display ?? "";
|
|
903
|
+
message.name = object.name ?? "";
|
|
904
|
+
message.symbol = object.symbol ?? "";
|
|
905
|
+
message.uri = object.uri ?? "";
|
|
906
|
+
message.uriHash = object.uriHash ?? "";
|
|
907
|
+
return message;
|
|
908
|
+
},
|
|
909
|
+
fromAmino(object: MetadataAmino): Metadata {
|
|
910
|
+
const message = createBaseMetadata();
|
|
911
|
+
if (object.description !== undefined && object.description !== null) {
|
|
912
|
+
message.description = object.description;
|
|
913
|
+
}
|
|
914
|
+
message.denomUnits = object.denom_units?.map(e => DenomUnit.fromAmino(e)) || [];
|
|
915
|
+
if (object.base !== undefined && object.base !== null) {
|
|
916
|
+
message.base = object.base;
|
|
917
|
+
}
|
|
918
|
+
if (object.display !== undefined && object.display !== null) {
|
|
919
|
+
message.display = object.display;
|
|
920
|
+
}
|
|
921
|
+
if (object.name !== undefined && object.name !== null) {
|
|
922
|
+
message.name = object.name;
|
|
923
|
+
}
|
|
924
|
+
if (object.symbol !== undefined && object.symbol !== null) {
|
|
925
|
+
message.symbol = object.symbol;
|
|
926
|
+
}
|
|
927
|
+
if (object.uri !== undefined && object.uri !== null) {
|
|
928
|
+
message.uri = object.uri;
|
|
929
|
+
}
|
|
930
|
+
if (object.uri_hash !== undefined && object.uri_hash !== null) {
|
|
931
|
+
message.uriHash = object.uri_hash;
|
|
932
|
+
}
|
|
933
|
+
return message;
|
|
934
|
+
},
|
|
935
|
+
toAmino(message: Metadata): MetadataAmino {
|
|
936
|
+
const obj: any = {};
|
|
937
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
938
|
+
if (message.denomUnits) {
|
|
939
|
+
obj.denom_units = message.denomUnits.map(e => e ? DenomUnit.toAmino(e) : undefined);
|
|
940
|
+
} else {
|
|
941
|
+
obj.denom_units = message.denomUnits;
|
|
942
|
+
}
|
|
943
|
+
obj.base = message.base === "" ? undefined : message.base;
|
|
944
|
+
obj.display = message.display === "" ? undefined : message.display;
|
|
945
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
946
|
+
obj.symbol = message.symbol === "" ? undefined : message.symbol;
|
|
947
|
+
obj.uri = message.uri === "" ? undefined : message.uri;
|
|
948
|
+
obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash;
|
|
949
|
+
return obj;
|
|
950
|
+
},
|
|
951
|
+
fromAminoMsg(object: MetadataAminoMsg): Metadata {
|
|
952
|
+
return Metadata.fromAmino(object.value);
|
|
953
|
+
},
|
|
954
|
+
toAminoMsg(message: Metadata): MetadataAminoMsg {
|
|
955
|
+
return {
|
|
956
|
+
type: "cosmos-sdk/Metadata",
|
|
957
|
+
value: Metadata.toAmino(message)
|
|
958
|
+
};
|
|
959
|
+
},
|
|
960
|
+
fromProtoMsg(message: MetadataProtoMsg): Metadata {
|
|
961
|
+
return Metadata.decode(message.value);
|
|
962
|
+
},
|
|
963
|
+
toProto(message: Metadata): Uint8Array {
|
|
964
|
+
return Metadata.encode(message).finish();
|
|
965
|
+
},
|
|
966
|
+
toProtoMsg(message: Metadata): MetadataProtoMsg {
|
|
967
|
+
return {
|
|
968
|
+
typeUrl: "/cosmos.bank.v1beta1.Metadata",
|
|
969
|
+
value: Metadata.encode(message).finish()
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
};
|
|
973
|
+
GlobalDecoderRegistry.register(Metadata.typeUrl, Metadata);
|
|
974
|
+
GlobalDecoderRegistry.registerAminoProtoMapping(Metadata.aminoType, Metadata.typeUrl);
|