@burnt-labs/xion-types 0.0.1-test.1762962136
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/jest.config.js +18 -0
- package/package.json +56 -0
- package/scripts/aminos.ts +29 -0
- package/scripts/codegen.ts +94 -0
- package/scripts/download-protos.ts +248 -0
- package/telescope.config.json +84 -0
- package/tsconfig.esm.json +9 -0
- package/tsconfig.json +18 -0
- package/types/abstractaccount/bundle.ts +35 -0
- package/types/abstractaccount/client.ts +48 -0
- package/types/abstractaccount/lcd.ts +130 -0
- package/types/abstractaccount/rpc.query.ts +93 -0
- package/types/abstractaccount/rpc.tx.ts +74 -0
- package/types/abstractaccount/v1/account.ts +250 -0
- package/types/abstractaccount/v1/events.ts +135 -0
- package/types/abstractaccount/v1/genesis.ts +106 -0
- package/types/abstractaccount/v1/params.ts +192 -0
- package/types/abstractaccount/v1/query.lcd.ts +19 -0
- package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
- package/types/abstractaccount/v1/query.ts +160 -0
- package/types/abstractaccount/v1/tx.amino.ts +14 -0
- package/types/abstractaccount/v1/tx.registry.ts +53 -0
- package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
- package/types/abstractaccount/v1/tx.ts +454 -0
- package/types/amino/amino.ts +1 -0
- package/types/amino/bundle.ts +5 -0
- package/types/binary.ts +535 -0
- package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
- package/types/cosmos/app/v1alpha1/config.ts +437 -0
- package/types/cosmos/app/v1alpha1/module.ts +466 -0
- package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
- package/types/cosmos/app/v1alpha1/query.ts +176 -0
- package/types/cosmos/auth/module/v1/module.ts +288 -0
- package/types/cosmos/auth/v1beta1/auth.ts +562 -0
- package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
- package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
- package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/auth/v1beta1/query.ts +2005 -0
- package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/auth/v1beta1/tx.ts +208 -0
- package/types/cosmos/authz/module/v1/module.ts +77 -0
- package/types/cosmos/authz/v1beta1/authz.ts +599 -0
- package/types/cosmos/authz/v1beta1/event.ts +274 -0
- package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
- package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
- package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/authz/v1beta1/query.ts +734 -0
- package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
- package/types/cosmos/authz/v1beta1/tx.ts +666 -0
- package/types/cosmos/autocli/v1/options.ts +1317 -0
- package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
- package/types/cosmos/autocli/v1/query.ts +298 -0
- package/types/cosmos/bank/module/v1/module.ts +156 -0
- package/types/cosmos/bank/v1beta1/authz.ts +134 -0
- package/types/cosmos/bank/v1beta1/bank.ts +984 -0
- package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
- package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
- package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
- package/types/cosmos/bank/v1beta1/query.ts +3051 -0
- package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
- package/types/cosmos/bank/v1beta1/tx.ts +845 -0
- package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
- package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
- package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
- package/types/cosmos/base/node/v1beta1/query.ts +467 -0
- package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
- package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
- package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
- package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
- package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
- package/types/cosmos/base/v1beta1/coin.ts +449 -0
- package/types/cosmos/benchmark/module/v1/module.ts +384 -0
- package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
- package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
- package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
- package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/benchmark/v1/tx.ts +224 -0
- package/types/cosmos/bundle.ts +807 -0
- package/types/cosmos/circuit/module/v1/module.ts +100 -0
- package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
- package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
- package/types/cosmos/circuit/v1/query.ts +576 -0
- package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
- package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
- package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/circuit/v1/tx.ts +685 -0
- package/types/cosmos/circuit/v1/types.ts +419 -0
- package/types/cosmos/client.ts +100 -0
- package/types/cosmos/consensus/module/v1/module.ts +100 -0
- package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
- package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/consensus/v1/query.ts +182 -0
- package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
- package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
- package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/consensus/v1/tx.ts +257 -0
- package/types/cosmos/counter/module/v1/module.ts +100 -0
- package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/counter/v1/query.ts +171 -0
- package/types/cosmos/counter/v1/tx.amino.ts +9 -0
- package/types/cosmos/counter/v1/tx.registry.ts +35 -0
- package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/counter/v1/tx.ts +217 -0
- package/types/cosmos/crisis/module/v1/module.ts +119 -0
- package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
- package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
- package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
- package/types/cosmos/crypto/ed25519/keys.ts +214 -0
- package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
- package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
- package/types/cosmos/crypto/multisig/keys.ts +124 -0
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
- package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
- package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
- package/types/cosmos/distribution/module/v1/module.ts +115 -0
- package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
- package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
- package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
- package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
- package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
- package/types/cosmos/epochs/module/v1/module.ts +77 -0
- package/types/cosmos/epochs/v1beta1/events.ts +205 -0
- package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
- package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
- package/types/cosmos/epochs/v1beta1/query.ts +390 -0
- package/types/cosmos/evidence/module/v1/module.ts +77 -0
- package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
- package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
- package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
- package/types/cosmos/evidence/v1beta1/query.ts +458 -0
- package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
- package/types/cosmos/feegrant/module/v1/module.ts +77 -0
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
- package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
- package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
- package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
- package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
- package/types/cosmos/genutil/module/v1/module.ts +77 -0
- package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
- package/types/cosmos/gov/module/v1/module.ts +123 -0
- package/types/cosmos/gov/v1/genesis.ts +288 -0
- package/types/cosmos/gov/v1/gov.ts +1889 -0
- package/types/cosmos/gov/v1/query.lcd.ts +95 -0
- package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
- package/types/cosmos/gov/v1/query.ts +2026 -0
- package/types/cosmos/gov/v1/tx.amino.ts +39 -0
- package/types/cosmos/gov/v1/tx.registry.ts +143 -0
- package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
- package/types/cosmos/gov/v1/tx.ts +1911 -0
- package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
- package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
- package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
- package/types/cosmos/gov/v1beta1/query.ts +1813 -0
- package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
- package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
- package/types/cosmos/group/module/v1/module.ts +128 -0
- package/types/cosmos/group/v1/events.ts +1195 -0
- package/types/cosmos/group/v1/genesis.ts +256 -0
- package/types/cosmos/group/v1/query.lcd.ts +158 -0
- package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
- package/types/cosmos/group/v1/query.ts +3108 -0
- package/types/cosmos/group/v1/tx.amino.ts +74 -0
- package/types/cosmos/group/v1/tx.registry.ts +269 -0
- package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
- package/types/cosmos/group/v1/tx.ts +3353 -0
- package/types/cosmos/group/v1/types.ts +2248 -0
- package/types/cosmos/ics23/v1/proofs.ts +2167 -0
- package/types/cosmos/lcd.ts +125 -0
- package/types/cosmos/mint/module/v1/module.ts +115 -0
- package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
- package/types/cosmos/mint/v1beta1/mint.ts +313 -0
- package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/mint/v1beta1/query.ts +544 -0
- package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/mint/v1beta1/tx.ts +208 -0
- package/types/cosmos/msg/textual/v1/textual.ts +1 -0
- package/types/cosmos/msg/v1/msg.ts +1 -0
- package/types/cosmos/nft/module/v1/module.ts +77 -0
- package/types/cosmos/nft/v1beta1/event.ts +429 -0
- package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
- package/types/cosmos/nft/v1beta1/nft.ts +389 -0
- package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
- package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
- package/types/cosmos/nft/v1beta1/query.ts +1513 -0
- package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/nft/v1beta1/tx.ts +232 -0
- package/types/cosmos/params/module/v1/module.ts +77 -0
- package/types/cosmos/params/v1beta1/params.ts +262 -0
- package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
- package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
- package/types/cosmos/params/v1beta1/query.ts +521 -0
- package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
- package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
- package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
- package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
- package/types/cosmos/protocolpool/v1/query.ts +761 -0
- package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
- package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
- package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
- package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
- package/types/cosmos/protocolpool/v1/types.ts +268 -0
- package/types/cosmos/query/v1/query.ts +1 -0
- package/types/cosmos/reflection/v1/reflection.ts +178 -0
- package/types/cosmos/rpc.query.ts +90 -0
- package/types/cosmos/rpc.tx.ts +71 -0
- package/types/cosmos/slashing/module/v1/module.ts +100 -0
- package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
- package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
- package/types/cosmos/slashing/v1beta1/query.ts +606 -0
- package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
- package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
- package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
- package/types/cosmos/staking/module/v1/module.ts +165 -0
- package/types/cosmos/staking/v1beta1/authz.ts +321 -0
- package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
- package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
- package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
- package/types/cosmos/staking/v1beta1/query.ts +3187 -0
- package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
- package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
- package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
- package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
- package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
- package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
- package/types/cosmos/store/v1beta1/listening.ts +296 -0
- package/types/cosmos/tx/config/v1/config.ts +127 -0
- package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
- package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
- package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
- package/types/cosmos/tx/v1beta1/service.ts +2319 -0
- package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
- package/types/cosmos/upgrade/module/v1/module.ts +100 -0
- package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
- package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
- package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
- package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
- package/types/cosmos/vesting/module/v1/module.ts +77 -0
- package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
- package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
- package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
- package/types/cosmos_proto/bundle.ts +5 -0
- package/types/cosmos_proto/cosmos.ts +355 -0
- package/types/cosmwasm/bundle.ts +39 -0
- package/types/cosmwasm/client.ts +48 -0
- package/types/cosmwasm/lcd.ts +132 -0
- package/types/cosmwasm/rpc.query.ts +95 -0
- package/types/cosmwasm/rpc.tx.ts +76 -0
- package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
- package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
- package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
- package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
- package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
- package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
- package/types/cosmwasm/wasm/v1/query.ts +3339 -0
- package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
- package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
- package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
- package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
- package/types/cosmwasm/wasm/v1/types.ts +1193 -0
- package/types/gogoproto/bundle.ts +5 -0
- package/types/gogoproto/gogo.ts +1 -0
- package/types/google/api/annotations.ts +1 -0
- package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
- package/types/google/api/apikeys/v2/resources.ts +1268 -0
- package/types/google/api/auth.ts +1175 -0
- package/types/google/api/backend.ts +691 -0
- package/types/google/api/billing.ts +333 -0
- package/types/google/api/client.ts +3100 -0
- package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
- package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
- package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
- package/types/google/api/config_change.ts +385 -0
- package/types/google/api/consumer.ts +362 -0
- package/types/google/api/context.ts +418 -0
- package/types/google/api/control.ts +141 -0
- package/types/google/api/distribution.ts +1253 -0
- package/types/google/api/documentation.ts +738 -0
- package/types/google/api/endpoint.ts +245 -0
- package/types/google/api/error_reason.ts +816 -0
- package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
- package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
- package/types/google/api/expr/v1alpha1/eval.ts +675 -0
- package/types/google/api/expr/v1alpha1/explain.ts +257 -0
- package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
- package/types/google/api/expr/v1alpha1/value.ts +771 -0
- package/types/google/api/expr/v1beta1/decl.ts +563 -0
- package/types/google/api/expr/v1beta1/eval.ts +758 -0
- package/types/google/api/expr/v1beta1/expr.ts +1750 -0
- package/types/google/api/expr/v1beta1/source.ts +446 -0
- package/types/google/api/expr/v1beta1/value.ts +771 -0
- package/types/google/api/field_behavior.ts +136 -0
- package/types/google/api/field_info.ts +319 -0
- package/types/google/api/http.ts +1362 -0
- package/types/google/api/httpbody.ts +270 -0
- package/types/google/api/label.ts +174 -0
- package/types/google/api/launch_stage.ts +112 -0
- package/types/google/api/log.ts +201 -0
- package/types/google/api/logging.ts +355 -0
- package/types/google/api/metric.ts +1174 -0
- package/types/google/api/monitored_resource.ts +841 -0
- package/types/google/api/monitoring.ts +430 -0
- package/types/google/api/policy.ts +314 -0
- package/types/google/api/quota.ts +1040 -0
- package/types/google/api/resource.ts +769 -0
- package/types/google/api/routing.ts +1405 -0
- package/types/google/api/service.ts +790 -0
- package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
- package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
- package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
- package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
- package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
- package/types/google/api/servicecontrol/v1/operation.ts +544 -0
- package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
- package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
- package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
- package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
- package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
- package/types/google/api/serviceusage/v1/resources.ts +629 -0
- package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
- package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
- package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
- package/types/google/api/source_info.ts +97 -0
- package/types/google/api/system_parameter.ts +461 -0
- package/types/google/api/usage.ts +404 -0
- package/types/google/api/visibility.ts +328 -0
- package/types/google/bundle.ts +115 -0
- package/types/google/logging/type/log_severity.ts +104 -0
- package/types/google/longrunning/operations.ts +1153 -0
- package/types/google/protobuf/any.ts +424 -0
- package/types/google/protobuf/api.ts +942 -0
- package/types/google/protobuf/descriptor.ts +7801 -0
- package/types/google/protobuf/duration.ts +284 -0
- package/types/google/protobuf/empty.ts +93 -0
- package/types/google/protobuf/field_mask.ts +694 -0
- package/types/google/protobuf/source_context.ts +105 -0
- package/types/google/protobuf/struct.ts +584 -0
- package/types/google/protobuf/timestamp.ts +373 -0
- package/types/google/protobuf/type.ts +1279 -0
- package/types/google/protobuf/wrappers.ts +1002 -0
- package/types/google/rpc/code.ts +286 -0
- package/types/google/rpc/context/attribute_context.ts +2517 -0
- package/types/google/rpc/context/audit_context.ts +188 -0
- package/types/google/rpc/error_details.ts +2467 -0
- package/types/google/rpc/http.ts +424 -0
- package/types/google/rpc/status.ts +173 -0
- package/types/helpers.ts +259 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
- package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
- package/types/ibc/applications/transfer/v1/authz.ts +297 -0
- package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
- package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
- package/types/ibc/applications/transfer/v1/packet.ts +186 -0
- package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
- package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
- package/types/ibc/applications/transfer/v1/query.ts +1233 -0
- package/types/ibc/applications/transfer/v1/token.ts +347 -0
- package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
- package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/transfer/v1/tx.ts +579 -0
- package/types/ibc/bundle.ts +265 -0
- package/types/ibc/client.ts +72 -0
- package/types/ibc/core/channel/v1/channel.ts +1455 -0
- package/types/ibc/core/channel/v1/genesis.ts +351 -0
- package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
- package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
- package/types/ibc/core/channel/v1/query.ts +3943 -0
- package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
- package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
- package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
- package/types/ibc/core/channel/v1/tx.ts +2558 -0
- package/types/ibc/core/channel/v2/genesis.ts +433 -0
- package/types/ibc/core/channel/v2/packet.ts +640 -0
- package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
- package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
- package/types/ibc/core/channel/v2/query.ts +2075 -0
- package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
- package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
- package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
- package/types/ibc/core/channel/v2/tx.ts +1003 -0
- package/types/ibc/core/client/v1/client.ts +636 -0
- package/types/ibc/core/client/v1/genesis.ts +448 -0
- package/types/ibc/core/client/v1/query.lcd.ts +102 -0
- package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
- package/types/ibc/core/client/v1/query.ts +2588 -0
- package/types/ibc/core/client/v1/tx.amino.ts +44 -0
- package/types/ibc/core/client/v1/tx.registry.ts +161 -0
- package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
- package/types/ibc/core/client/v1/tx.ts +1796 -0
- package/types/ibc/core/client/v2/config.ts +115 -0
- package/types/ibc/core/client/v2/counterparty.ts +122 -0
- package/types/ibc/core/client/v2/genesis.ts +220 -0
- package/types/ibc/core/client/v2/query.lcd.ts +25 -0
- package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
- package/types/ibc/core/client/v2/query.ts +402 -0
- package/types/ibc/core/client/v2/tx.amino.ts +14 -0
- package/types/ibc/core/client/v2/tx.registry.ts +53 -0
- package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
- package/types/ibc/core/client/v2/tx.ts +453 -0
- package/types/ibc/core/commitment/v1/commitment.ts +321 -0
- package/types/ibc/core/commitment/v2/commitment.ts +193 -0
- package/types/ibc/core/connection/v1/connection.ts +1056 -0
- package/types/ibc/core/connection/v1/genesis.ts +150 -0
- package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
- package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
- package/types/ibc/core/connection/v1/query.ts +1472 -0
- package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
- package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
- package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
- package/types/ibc/core/connection/v1/tx.ts +1456 -0
- package/types/ibc/core/types/v1/genesis.ts +191 -0
- package/types/ibc/lcd.ts +176 -0
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
- package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
- package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
- package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
- package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
- package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
- package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
- package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
- package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
- package/types/ibc/rpc.query.ts +123 -0
- package/types/ibc/rpc.tx.ts +104 -0
- package/types/index.ts +25 -0
- package/types/tendermint/abci/types.ts +6565 -0
- package/types/tendermint/bundle.ts +33 -0
- package/types/tendermint/crypto/keys.ts +106 -0
- package/types/tendermint/crypto/proof.ts +576 -0
- package/types/tendermint/p2p/types.ts +523 -0
- package/types/tendermint/types/block.ts +134 -0
- package/types/tendermint/types/evidence.ts +491 -0
- package/types/tendermint/types/params.ts +839 -0
- package/types/tendermint/types/types.ts +2266 -0
- package/types/tendermint/types/validator.ts +399 -0
- package/types/tendermint/version/types.ts +228 -0
- package/types/utf8.ts +149 -0
- package/types/varint.ts +489 -0
- package/types/xion/bundle.ts +117 -0
- package/types/xion/client.ts +57 -0
- package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
- package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
- package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
- package/types/xion/feeabs/v1beta1/params.ts +189 -0
- package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
- package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
- package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
- package/types/xion/feeabs/v1beta1/query.ts +732 -0
- package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
- package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
- package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
- package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
- package/types/xion/globalfee/v1/genesis.ts +249 -0
- package/types/xion/globalfee/v1/query.lcd.ts +19 -0
- package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
- package/types/xion/globalfee/v1/query.ts +178 -0
- package/types/xion/jwk/v1/audience.ts +224 -0
- package/types/xion/jwk/v1/genesis.ts +117 -0
- package/types/xion/jwk/v1/params.ts +113 -0
- package/types/xion/jwk/v1/query.lcd.ts +52 -0
- package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
- package/types/xion/jwk/v1/query.ts +1697 -0
- package/types/xion/jwk/v1/tx.amino.ts +29 -0
- package/types/xion/jwk/v1/tx.registry.ts +107 -0
- package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
- package/types/xion/jwk/v1/tx.ts +1040 -0
- package/types/xion/lcd.ts +147 -0
- package/types/xion/mint/v1/event.ts +216 -0
- package/types/xion/mint/v1/genesis.ts +114 -0
- package/types/xion/mint/v1/mint.ts +307 -0
- package/types/xion/mint/v1/query.lcd.ts +31 -0
- package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
- package/types/xion/mint/v1/query.ts +508 -0
- package/types/xion/mint/v1/tx.amino.ts +9 -0
- package/types/xion/mint/v1/tx.registry.ts +35 -0
- package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
- package/types/xion/mint/v1/tx.ts +222 -0
- package/types/xion/rpc.query.ts +105 -0
- package/types/xion/rpc.tx.ts +83 -0
- package/types/xion/v1/feegrant.ts +457 -0
- package/types/xion/v1/genesis.ts +116 -0
- package/types/xion/v1/query.rpc.Query.ts +64 -0
- package/types/xion/v1/query.ts +862 -0
- package/types/xion/v1/tx.amino.ts +24 -0
- package/types/xion/v1/tx.registry.ts +89 -0
- package/types/xion/v1/tx.rpc.msg.ts +57 -0
- package/types/xion/v1/tx.ts +793 -0
|
@@ -0,0 +1,1513 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
|
3
|
+
import { NFT, NFTAmino, NFTSDKType, Class, ClassAmino, ClassSDKType } from "./nft";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
+
/** QueryBalanceRequest is the request type for the Query/Balance RPC method */
|
|
6
|
+
export interface QueryBalanceRequest {
|
|
7
|
+
/** class_id associated with the nft */
|
|
8
|
+
classId: string;
|
|
9
|
+
/** owner is the owner address of the nft */
|
|
10
|
+
owner: string;
|
|
11
|
+
}
|
|
12
|
+
export interface QueryBalanceRequestProtoMsg {
|
|
13
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryBalanceRequest";
|
|
14
|
+
value: Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* QueryBalanceRequest is the request type for the Query/Balance RPC method
|
|
18
|
+
* @name QueryBalanceRequestAmino
|
|
19
|
+
* @package cosmos.nft.v1beta1
|
|
20
|
+
* @see proto type: cosmos.nft.v1beta1.QueryBalanceRequest
|
|
21
|
+
*/
|
|
22
|
+
export interface QueryBalanceRequestAmino {
|
|
23
|
+
/**
|
|
24
|
+
* class_id associated with the nft
|
|
25
|
+
*/
|
|
26
|
+
class_id?: string;
|
|
27
|
+
/**
|
|
28
|
+
* owner is the owner address of the nft
|
|
29
|
+
*/
|
|
30
|
+
owner?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface QueryBalanceRequestAminoMsg {
|
|
33
|
+
type: "cosmos-sdk/QueryBalanceRequest";
|
|
34
|
+
value: QueryBalanceRequestAmino;
|
|
35
|
+
}
|
|
36
|
+
/** QueryBalanceRequest is the request type for the Query/Balance RPC method */
|
|
37
|
+
export interface QueryBalanceRequestSDKType {
|
|
38
|
+
class_id: string;
|
|
39
|
+
owner: string;
|
|
40
|
+
}
|
|
41
|
+
/** QueryBalanceResponse is the response type for the Query/Balance RPC method */
|
|
42
|
+
export interface QueryBalanceResponse {
|
|
43
|
+
/** amount is the number of all NFTs of a given class owned by the owner */
|
|
44
|
+
amount: bigint;
|
|
45
|
+
}
|
|
46
|
+
export interface QueryBalanceResponseProtoMsg {
|
|
47
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryBalanceResponse";
|
|
48
|
+
value: Uint8Array;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* QueryBalanceResponse is the response type for the Query/Balance RPC method
|
|
52
|
+
* @name QueryBalanceResponseAmino
|
|
53
|
+
* @package cosmos.nft.v1beta1
|
|
54
|
+
* @see proto type: cosmos.nft.v1beta1.QueryBalanceResponse
|
|
55
|
+
*/
|
|
56
|
+
export interface QueryBalanceResponseAmino {
|
|
57
|
+
/**
|
|
58
|
+
* amount is the number of all NFTs of a given class owned by the owner
|
|
59
|
+
*/
|
|
60
|
+
amount?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface QueryBalanceResponseAminoMsg {
|
|
63
|
+
type: "cosmos-sdk/QueryBalanceResponse";
|
|
64
|
+
value: QueryBalanceResponseAmino;
|
|
65
|
+
}
|
|
66
|
+
/** QueryBalanceResponse is the response type for the Query/Balance RPC method */
|
|
67
|
+
export interface QueryBalanceResponseSDKType {
|
|
68
|
+
amount: bigint;
|
|
69
|
+
}
|
|
70
|
+
/** QueryOwnerRequest is the request type for the Query/Owner RPC method */
|
|
71
|
+
export interface QueryOwnerRequest {
|
|
72
|
+
/** class_id associated with the nft */
|
|
73
|
+
classId: string;
|
|
74
|
+
/** id is a unique identifier of the NFT */
|
|
75
|
+
id: string;
|
|
76
|
+
}
|
|
77
|
+
export interface QueryOwnerRequestProtoMsg {
|
|
78
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryOwnerRequest";
|
|
79
|
+
value: Uint8Array;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* QueryOwnerRequest is the request type for the Query/Owner RPC method
|
|
83
|
+
* @name QueryOwnerRequestAmino
|
|
84
|
+
* @package cosmos.nft.v1beta1
|
|
85
|
+
* @see proto type: cosmos.nft.v1beta1.QueryOwnerRequest
|
|
86
|
+
*/
|
|
87
|
+
export interface QueryOwnerRequestAmino {
|
|
88
|
+
/**
|
|
89
|
+
* class_id associated with the nft
|
|
90
|
+
*/
|
|
91
|
+
class_id?: string;
|
|
92
|
+
/**
|
|
93
|
+
* id is a unique identifier of the NFT
|
|
94
|
+
*/
|
|
95
|
+
id?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface QueryOwnerRequestAminoMsg {
|
|
98
|
+
type: "cosmos-sdk/QueryOwnerRequest";
|
|
99
|
+
value: QueryOwnerRequestAmino;
|
|
100
|
+
}
|
|
101
|
+
/** QueryOwnerRequest is the request type for the Query/Owner RPC method */
|
|
102
|
+
export interface QueryOwnerRequestSDKType {
|
|
103
|
+
class_id: string;
|
|
104
|
+
id: string;
|
|
105
|
+
}
|
|
106
|
+
/** QueryOwnerResponse is the response type for the Query/Owner RPC method */
|
|
107
|
+
export interface QueryOwnerResponse {
|
|
108
|
+
/** owner is the owner address of the nft */
|
|
109
|
+
owner: string;
|
|
110
|
+
}
|
|
111
|
+
export interface QueryOwnerResponseProtoMsg {
|
|
112
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryOwnerResponse";
|
|
113
|
+
value: Uint8Array;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* QueryOwnerResponse is the response type for the Query/Owner RPC method
|
|
117
|
+
* @name QueryOwnerResponseAmino
|
|
118
|
+
* @package cosmos.nft.v1beta1
|
|
119
|
+
* @see proto type: cosmos.nft.v1beta1.QueryOwnerResponse
|
|
120
|
+
*/
|
|
121
|
+
export interface QueryOwnerResponseAmino {
|
|
122
|
+
/**
|
|
123
|
+
* owner is the owner address of the nft
|
|
124
|
+
*/
|
|
125
|
+
owner?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface QueryOwnerResponseAminoMsg {
|
|
128
|
+
type: "cosmos-sdk/QueryOwnerResponse";
|
|
129
|
+
value: QueryOwnerResponseAmino;
|
|
130
|
+
}
|
|
131
|
+
/** QueryOwnerResponse is the response type for the Query/Owner RPC method */
|
|
132
|
+
export interface QueryOwnerResponseSDKType {
|
|
133
|
+
owner: string;
|
|
134
|
+
}
|
|
135
|
+
/** QuerySupplyRequest is the request type for the Query/Supply RPC method */
|
|
136
|
+
export interface QuerySupplyRequest {
|
|
137
|
+
/** class_id associated with the nft */
|
|
138
|
+
classId: string;
|
|
139
|
+
}
|
|
140
|
+
export interface QuerySupplyRequestProtoMsg {
|
|
141
|
+
typeUrl: "/cosmos.nft.v1beta1.QuerySupplyRequest";
|
|
142
|
+
value: Uint8Array;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* QuerySupplyRequest is the request type for the Query/Supply RPC method
|
|
146
|
+
* @name QuerySupplyRequestAmino
|
|
147
|
+
* @package cosmos.nft.v1beta1
|
|
148
|
+
* @see proto type: cosmos.nft.v1beta1.QuerySupplyRequest
|
|
149
|
+
*/
|
|
150
|
+
export interface QuerySupplyRequestAmino {
|
|
151
|
+
/**
|
|
152
|
+
* class_id associated with the nft
|
|
153
|
+
*/
|
|
154
|
+
class_id?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface QuerySupplyRequestAminoMsg {
|
|
157
|
+
type: "cosmos-sdk/QuerySupplyRequest";
|
|
158
|
+
value: QuerySupplyRequestAmino;
|
|
159
|
+
}
|
|
160
|
+
/** QuerySupplyRequest is the request type for the Query/Supply RPC method */
|
|
161
|
+
export interface QuerySupplyRequestSDKType {
|
|
162
|
+
class_id: string;
|
|
163
|
+
}
|
|
164
|
+
/** QuerySupplyResponse is the response type for the Query/Supply RPC method */
|
|
165
|
+
export interface QuerySupplyResponse {
|
|
166
|
+
/** amount is the number of all NFTs from the given class */
|
|
167
|
+
amount: bigint;
|
|
168
|
+
}
|
|
169
|
+
export interface QuerySupplyResponseProtoMsg {
|
|
170
|
+
typeUrl: "/cosmos.nft.v1beta1.QuerySupplyResponse";
|
|
171
|
+
value: Uint8Array;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* QuerySupplyResponse is the response type for the Query/Supply RPC method
|
|
175
|
+
* @name QuerySupplyResponseAmino
|
|
176
|
+
* @package cosmos.nft.v1beta1
|
|
177
|
+
* @see proto type: cosmos.nft.v1beta1.QuerySupplyResponse
|
|
178
|
+
*/
|
|
179
|
+
export interface QuerySupplyResponseAmino {
|
|
180
|
+
/**
|
|
181
|
+
* amount is the number of all NFTs from the given class
|
|
182
|
+
*/
|
|
183
|
+
amount?: string;
|
|
184
|
+
}
|
|
185
|
+
export interface QuerySupplyResponseAminoMsg {
|
|
186
|
+
type: "cosmos-sdk/QuerySupplyResponse";
|
|
187
|
+
value: QuerySupplyResponseAmino;
|
|
188
|
+
}
|
|
189
|
+
/** QuerySupplyResponse is the response type for the Query/Supply RPC method */
|
|
190
|
+
export interface QuerySupplyResponseSDKType {
|
|
191
|
+
amount: bigint;
|
|
192
|
+
}
|
|
193
|
+
/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */
|
|
194
|
+
export interface QueryNFTsRequest {
|
|
195
|
+
/** class_id associated with the nft */
|
|
196
|
+
classId: string;
|
|
197
|
+
/** owner is the owner address of the nft */
|
|
198
|
+
owner: string;
|
|
199
|
+
/** pagination defines an optional pagination for the request. */
|
|
200
|
+
pagination?: PageRequest;
|
|
201
|
+
}
|
|
202
|
+
export interface QueryNFTsRequestProtoMsg {
|
|
203
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryNFTsRequest";
|
|
204
|
+
value: Uint8Array;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* QueryNFTstRequest is the request type for the Query/NFTs RPC method
|
|
208
|
+
* @name QueryNFTsRequestAmino
|
|
209
|
+
* @package cosmos.nft.v1beta1
|
|
210
|
+
* @see proto type: cosmos.nft.v1beta1.QueryNFTsRequest
|
|
211
|
+
*/
|
|
212
|
+
export interface QueryNFTsRequestAmino {
|
|
213
|
+
/**
|
|
214
|
+
* class_id associated with the nft
|
|
215
|
+
*/
|
|
216
|
+
class_id?: string;
|
|
217
|
+
/**
|
|
218
|
+
* owner is the owner address of the nft
|
|
219
|
+
*/
|
|
220
|
+
owner?: string;
|
|
221
|
+
/**
|
|
222
|
+
* pagination defines an optional pagination for the request.
|
|
223
|
+
*/
|
|
224
|
+
pagination?: PageRequestAmino;
|
|
225
|
+
}
|
|
226
|
+
export interface QueryNFTsRequestAminoMsg {
|
|
227
|
+
type: "cosmos-sdk/QueryNFTsRequest";
|
|
228
|
+
value: QueryNFTsRequestAmino;
|
|
229
|
+
}
|
|
230
|
+
/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */
|
|
231
|
+
export interface QueryNFTsRequestSDKType {
|
|
232
|
+
class_id: string;
|
|
233
|
+
owner: string;
|
|
234
|
+
pagination?: PageRequestSDKType;
|
|
235
|
+
}
|
|
236
|
+
/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */
|
|
237
|
+
export interface QueryNFTsResponse {
|
|
238
|
+
/** NFT defines the NFT */
|
|
239
|
+
nfts: NFT[];
|
|
240
|
+
/** pagination defines the pagination in the response. */
|
|
241
|
+
pagination?: PageResponse;
|
|
242
|
+
}
|
|
243
|
+
export interface QueryNFTsResponseProtoMsg {
|
|
244
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryNFTsResponse";
|
|
245
|
+
value: Uint8Array;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* QueryNFTsResponse is the response type for the Query/NFTs RPC methods
|
|
249
|
+
* @name QueryNFTsResponseAmino
|
|
250
|
+
* @package cosmos.nft.v1beta1
|
|
251
|
+
* @see proto type: cosmos.nft.v1beta1.QueryNFTsResponse
|
|
252
|
+
*/
|
|
253
|
+
export interface QueryNFTsResponseAmino {
|
|
254
|
+
/**
|
|
255
|
+
* NFT defines the NFT
|
|
256
|
+
*/
|
|
257
|
+
nfts?: NFTAmino[];
|
|
258
|
+
/**
|
|
259
|
+
* pagination defines the pagination in the response.
|
|
260
|
+
*/
|
|
261
|
+
pagination?: PageResponseAmino;
|
|
262
|
+
}
|
|
263
|
+
export interface QueryNFTsResponseAminoMsg {
|
|
264
|
+
type: "cosmos-sdk/QueryNFTsResponse";
|
|
265
|
+
value: QueryNFTsResponseAmino;
|
|
266
|
+
}
|
|
267
|
+
/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */
|
|
268
|
+
export interface QueryNFTsResponseSDKType {
|
|
269
|
+
nfts: NFTSDKType[];
|
|
270
|
+
pagination?: PageResponseSDKType;
|
|
271
|
+
}
|
|
272
|
+
/** QueryNFTRequest is the request type for the Query/NFT RPC method */
|
|
273
|
+
export interface QueryNFTRequest {
|
|
274
|
+
/** class_id associated with the nft */
|
|
275
|
+
classId: string;
|
|
276
|
+
/** id is a unique identifier of the NFT */
|
|
277
|
+
id: string;
|
|
278
|
+
}
|
|
279
|
+
export interface QueryNFTRequestProtoMsg {
|
|
280
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryNFTRequest";
|
|
281
|
+
value: Uint8Array;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* QueryNFTRequest is the request type for the Query/NFT RPC method
|
|
285
|
+
* @name QueryNFTRequestAmino
|
|
286
|
+
* @package cosmos.nft.v1beta1
|
|
287
|
+
* @see proto type: cosmos.nft.v1beta1.QueryNFTRequest
|
|
288
|
+
*/
|
|
289
|
+
export interface QueryNFTRequestAmino {
|
|
290
|
+
/**
|
|
291
|
+
* class_id associated with the nft
|
|
292
|
+
*/
|
|
293
|
+
class_id?: string;
|
|
294
|
+
/**
|
|
295
|
+
* id is a unique identifier of the NFT
|
|
296
|
+
*/
|
|
297
|
+
id?: string;
|
|
298
|
+
}
|
|
299
|
+
export interface QueryNFTRequestAminoMsg {
|
|
300
|
+
type: "cosmos-sdk/QueryNFTRequest";
|
|
301
|
+
value: QueryNFTRequestAmino;
|
|
302
|
+
}
|
|
303
|
+
/** QueryNFTRequest is the request type for the Query/NFT RPC method */
|
|
304
|
+
export interface QueryNFTRequestSDKType {
|
|
305
|
+
class_id: string;
|
|
306
|
+
id: string;
|
|
307
|
+
}
|
|
308
|
+
/** QueryNFTResponse is the response type for the Query/NFT RPC method */
|
|
309
|
+
export interface QueryNFTResponse {
|
|
310
|
+
/** owner is the owner address of the nft */
|
|
311
|
+
nft?: NFT;
|
|
312
|
+
}
|
|
313
|
+
export interface QueryNFTResponseProtoMsg {
|
|
314
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryNFTResponse";
|
|
315
|
+
value: Uint8Array;
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* QueryNFTResponse is the response type for the Query/NFT RPC method
|
|
319
|
+
* @name QueryNFTResponseAmino
|
|
320
|
+
* @package cosmos.nft.v1beta1
|
|
321
|
+
* @see proto type: cosmos.nft.v1beta1.QueryNFTResponse
|
|
322
|
+
*/
|
|
323
|
+
export interface QueryNFTResponseAmino {
|
|
324
|
+
/**
|
|
325
|
+
* owner is the owner address of the nft
|
|
326
|
+
*/
|
|
327
|
+
nft?: NFTAmino;
|
|
328
|
+
}
|
|
329
|
+
export interface QueryNFTResponseAminoMsg {
|
|
330
|
+
type: "cosmos-sdk/QueryNFTResponse";
|
|
331
|
+
value: QueryNFTResponseAmino;
|
|
332
|
+
}
|
|
333
|
+
/** QueryNFTResponse is the response type for the Query/NFT RPC method */
|
|
334
|
+
export interface QueryNFTResponseSDKType {
|
|
335
|
+
nft?: NFTSDKType;
|
|
336
|
+
}
|
|
337
|
+
/** QueryClassRequest is the request type for the Query/Class RPC method */
|
|
338
|
+
export interface QueryClassRequest {
|
|
339
|
+
/** class_id associated with the nft */
|
|
340
|
+
classId: string;
|
|
341
|
+
}
|
|
342
|
+
export interface QueryClassRequestProtoMsg {
|
|
343
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryClassRequest";
|
|
344
|
+
value: Uint8Array;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* QueryClassRequest is the request type for the Query/Class RPC method
|
|
348
|
+
* @name QueryClassRequestAmino
|
|
349
|
+
* @package cosmos.nft.v1beta1
|
|
350
|
+
* @see proto type: cosmos.nft.v1beta1.QueryClassRequest
|
|
351
|
+
*/
|
|
352
|
+
export interface QueryClassRequestAmino {
|
|
353
|
+
/**
|
|
354
|
+
* class_id associated with the nft
|
|
355
|
+
*/
|
|
356
|
+
class_id?: string;
|
|
357
|
+
}
|
|
358
|
+
export interface QueryClassRequestAminoMsg {
|
|
359
|
+
type: "cosmos-sdk/QueryClassRequest";
|
|
360
|
+
value: QueryClassRequestAmino;
|
|
361
|
+
}
|
|
362
|
+
/** QueryClassRequest is the request type for the Query/Class RPC method */
|
|
363
|
+
export interface QueryClassRequestSDKType {
|
|
364
|
+
class_id: string;
|
|
365
|
+
}
|
|
366
|
+
/** QueryClassResponse is the response type for the Query/Class RPC method */
|
|
367
|
+
export interface QueryClassResponse {
|
|
368
|
+
/** class defines the class of the nft type. */
|
|
369
|
+
class?: Class;
|
|
370
|
+
}
|
|
371
|
+
export interface QueryClassResponseProtoMsg {
|
|
372
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryClassResponse";
|
|
373
|
+
value: Uint8Array;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* QueryClassResponse is the response type for the Query/Class RPC method
|
|
377
|
+
* @name QueryClassResponseAmino
|
|
378
|
+
* @package cosmos.nft.v1beta1
|
|
379
|
+
* @see proto type: cosmos.nft.v1beta1.QueryClassResponse
|
|
380
|
+
*/
|
|
381
|
+
export interface QueryClassResponseAmino {
|
|
382
|
+
/**
|
|
383
|
+
* class defines the class of the nft type.
|
|
384
|
+
*/
|
|
385
|
+
class?: ClassAmino;
|
|
386
|
+
}
|
|
387
|
+
export interface QueryClassResponseAminoMsg {
|
|
388
|
+
type: "cosmos-sdk/QueryClassResponse";
|
|
389
|
+
value: QueryClassResponseAmino;
|
|
390
|
+
}
|
|
391
|
+
/** QueryClassResponse is the response type for the Query/Class RPC method */
|
|
392
|
+
export interface QueryClassResponseSDKType {
|
|
393
|
+
class?: ClassSDKType;
|
|
394
|
+
}
|
|
395
|
+
/** QueryClassesRequest is the request type for the Query/Classes RPC method */
|
|
396
|
+
export interface QueryClassesRequest {
|
|
397
|
+
/** pagination defines an optional pagination for the request. */
|
|
398
|
+
pagination?: PageRequest;
|
|
399
|
+
}
|
|
400
|
+
export interface QueryClassesRequestProtoMsg {
|
|
401
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryClassesRequest";
|
|
402
|
+
value: Uint8Array;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* QueryClassesRequest is the request type for the Query/Classes RPC method
|
|
406
|
+
* @name QueryClassesRequestAmino
|
|
407
|
+
* @package cosmos.nft.v1beta1
|
|
408
|
+
* @see proto type: cosmos.nft.v1beta1.QueryClassesRequest
|
|
409
|
+
*/
|
|
410
|
+
export interface QueryClassesRequestAmino {
|
|
411
|
+
/**
|
|
412
|
+
* pagination defines an optional pagination for the request.
|
|
413
|
+
*/
|
|
414
|
+
pagination?: PageRequestAmino;
|
|
415
|
+
}
|
|
416
|
+
export interface QueryClassesRequestAminoMsg {
|
|
417
|
+
type: "cosmos-sdk/QueryClassesRequest";
|
|
418
|
+
value: QueryClassesRequestAmino;
|
|
419
|
+
}
|
|
420
|
+
/** QueryClassesRequest is the request type for the Query/Classes RPC method */
|
|
421
|
+
export interface QueryClassesRequestSDKType {
|
|
422
|
+
pagination?: PageRequestSDKType;
|
|
423
|
+
}
|
|
424
|
+
/** QueryClassesResponse is the response type for the Query/Classes RPC method */
|
|
425
|
+
export interface QueryClassesResponse {
|
|
426
|
+
/** class defines the class of the nft type. */
|
|
427
|
+
classes: Class[];
|
|
428
|
+
/** pagination defines the pagination in the response. */
|
|
429
|
+
pagination?: PageResponse;
|
|
430
|
+
}
|
|
431
|
+
export interface QueryClassesResponseProtoMsg {
|
|
432
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryClassesResponse";
|
|
433
|
+
value: Uint8Array;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* QueryClassesResponse is the response type for the Query/Classes RPC method
|
|
437
|
+
* @name QueryClassesResponseAmino
|
|
438
|
+
* @package cosmos.nft.v1beta1
|
|
439
|
+
* @see proto type: cosmos.nft.v1beta1.QueryClassesResponse
|
|
440
|
+
*/
|
|
441
|
+
export interface QueryClassesResponseAmino {
|
|
442
|
+
/**
|
|
443
|
+
* class defines the class of the nft type.
|
|
444
|
+
*/
|
|
445
|
+
classes?: ClassAmino[];
|
|
446
|
+
/**
|
|
447
|
+
* pagination defines the pagination in the response.
|
|
448
|
+
*/
|
|
449
|
+
pagination?: PageResponseAmino;
|
|
450
|
+
}
|
|
451
|
+
export interface QueryClassesResponseAminoMsg {
|
|
452
|
+
type: "cosmos-sdk/QueryClassesResponse";
|
|
453
|
+
value: QueryClassesResponseAmino;
|
|
454
|
+
}
|
|
455
|
+
/** QueryClassesResponse is the response type for the Query/Classes RPC method */
|
|
456
|
+
export interface QueryClassesResponseSDKType {
|
|
457
|
+
classes: ClassSDKType[];
|
|
458
|
+
pagination?: PageResponseSDKType;
|
|
459
|
+
}
|
|
460
|
+
function createBaseQueryBalanceRequest(): QueryBalanceRequest {
|
|
461
|
+
return {
|
|
462
|
+
classId: "",
|
|
463
|
+
owner: ""
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
export const QueryBalanceRequest = {
|
|
467
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryBalanceRequest",
|
|
468
|
+
encode(message: QueryBalanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
469
|
+
if (message.classId !== "") {
|
|
470
|
+
writer.uint32(10).string(message.classId);
|
|
471
|
+
}
|
|
472
|
+
if (message.owner !== "") {
|
|
473
|
+
writer.uint32(18).string(message.owner);
|
|
474
|
+
}
|
|
475
|
+
return writer;
|
|
476
|
+
},
|
|
477
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest {
|
|
478
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
479
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
480
|
+
const message = createBaseQueryBalanceRequest();
|
|
481
|
+
while (reader.pos < end) {
|
|
482
|
+
const tag = reader.uint32();
|
|
483
|
+
switch (tag >>> 3) {
|
|
484
|
+
case 1:
|
|
485
|
+
message.classId = reader.string();
|
|
486
|
+
break;
|
|
487
|
+
case 2:
|
|
488
|
+
message.owner = reader.string();
|
|
489
|
+
break;
|
|
490
|
+
default:
|
|
491
|
+
reader.skipType(tag & 7);
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
return message;
|
|
496
|
+
},
|
|
497
|
+
fromPartial(object: Partial<QueryBalanceRequest>): QueryBalanceRequest {
|
|
498
|
+
const message = createBaseQueryBalanceRequest();
|
|
499
|
+
message.classId = object.classId ?? "";
|
|
500
|
+
message.owner = object.owner ?? "";
|
|
501
|
+
return message;
|
|
502
|
+
},
|
|
503
|
+
fromAmino(object: QueryBalanceRequestAmino): QueryBalanceRequest {
|
|
504
|
+
const message = createBaseQueryBalanceRequest();
|
|
505
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
506
|
+
message.classId = object.class_id;
|
|
507
|
+
}
|
|
508
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
509
|
+
message.owner = object.owner;
|
|
510
|
+
}
|
|
511
|
+
return message;
|
|
512
|
+
},
|
|
513
|
+
toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino {
|
|
514
|
+
const obj: any = {};
|
|
515
|
+
obj.class_id = message.classId === "" ? undefined : message.classId;
|
|
516
|
+
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
517
|
+
return obj;
|
|
518
|
+
},
|
|
519
|
+
fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest {
|
|
520
|
+
return QueryBalanceRequest.fromAmino(object.value);
|
|
521
|
+
},
|
|
522
|
+
toAminoMsg(message: QueryBalanceRequest): QueryBalanceRequestAminoMsg {
|
|
523
|
+
return {
|
|
524
|
+
type: "cosmos-sdk/QueryBalanceRequest",
|
|
525
|
+
value: QueryBalanceRequest.toAmino(message)
|
|
526
|
+
};
|
|
527
|
+
},
|
|
528
|
+
fromProtoMsg(message: QueryBalanceRequestProtoMsg): QueryBalanceRequest {
|
|
529
|
+
return QueryBalanceRequest.decode(message.value);
|
|
530
|
+
},
|
|
531
|
+
toProto(message: QueryBalanceRequest): Uint8Array {
|
|
532
|
+
return QueryBalanceRequest.encode(message).finish();
|
|
533
|
+
},
|
|
534
|
+
toProtoMsg(message: QueryBalanceRequest): QueryBalanceRequestProtoMsg {
|
|
535
|
+
return {
|
|
536
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryBalanceRequest",
|
|
537
|
+
value: QueryBalanceRequest.encode(message).finish()
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
function createBaseQueryBalanceResponse(): QueryBalanceResponse {
|
|
542
|
+
return {
|
|
543
|
+
amount: BigInt(0)
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
export const QueryBalanceResponse = {
|
|
547
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryBalanceResponse",
|
|
548
|
+
encode(message: QueryBalanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
549
|
+
if (message.amount !== BigInt(0)) {
|
|
550
|
+
writer.uint32(8).uint64(message.amount);
|
|
551
|
+
}
|
|
552
|
+
return writer;
|
|
553
|
+
},
|
|
554
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse {
|
|
555
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
556
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
557
|
+
const message = createBaseQueryBalanceResponse();
|
|
558
|
+
while (reader.pos < end) {
|
|
559
|
+
const tag = reader.uint32();
|
|
560
|
+
switch (tag >>> 3) {
|
|
561
|
+
case 1:
|
|
562
|
+
message.amount = reader.uint64();
|
|
563
|
+
break;
|
|
564
|
+
default:
|
|
565
|
+
reader.skipType(tag & 7);
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
return message;
|
|
570
|
+
},
|
|
571
|
+
fromPartial(object: Partial<QueryBalanceResponse>): QueryBalanceResponse {
|
|
572
|
+
const message = createBaseQueryBalanceResponse();
|
|
573
|
+
message.amount = object.amount !== undefined && object.amount !== null ? BigInt(object.amount.toString()) : BigInt(0);
|
|
574
|
+
return message;
|
|
575
|
+
},
|
|
576
|
+
fromAmino(object: QueryBalanceResponseAmino): QueryBalanceResponse {
|
|
577
|
+
const message = createBaseQueryBalanceResponse();
|
|
578
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
579
|
+
message.amount = BigInt(object.amount);
|
|
580
|
+
}
|
|
581
|
+
return message;
|
|
582
|
+
},
|
|
583
|
+
toAmino(message: QueryBalanceResponse): QueryBalanceResponseAmino {
|
|
584
|
+
const obj: any = {};
|
|
585
|
+
obj.amount = message.amount !== BigInt(0) ? message.amount?.toString() : undefined;
|
|
586
|
+
return obj;
|
|
587
|
+
},
|
|
588
|
+
fromAminoMsg(object: QueryBalanceResponseAminoMsg): QueryBalanceResponse {
|
|
589
|
+
return QueryBalanceResponse.fromAmino(object.value);
|
|
590
|
+
},
|
|
591
|
+
toAminoMsg(message: QueryBalanceResponse): QueryBalanceResponseAminoMsg {
|
|
592
|
+
return {
|
|
593
|
+
type: "cosmos-sdk/QueryBalanceResponse",
|
|
594
|
+
value: QueryBalanceResponse.toAmino(message)
|
|
595
|
+
};
|
|
596
|
+
},
|
|
597
|
+
fromProtoMsg(message: QueryBalanceResponseProtoMsg): QueryBalanceResponse {
|
|
598
|
+
return QueryBalanceResponse.decode(message.value);
|
|
599
|
+
},
|
|
600
|
+
toProto(message: QueryBalanceResponse): Uint8Array {
|
|
601
|
+
return QueryBalanceResponse.encode(message).finish();
|
|
602
|
+
},
|
|
603
|
+
toProtoMsg(message: QueryBalanceResponse): QueryBalanceResponseProtoMsg {
|
|
604
|
+
return {
|
|
605
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryBalanceResponse",
|
|
606
|
+
value: QueryBalanceResponse.encode(message).finish()
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
function createBaseQueryOwnerRequest(): QueryOwnerRequest {
|
|
611
|
+
return {
|
|
612
|
+
classId: "",
|
|
613
|
+
id: ""
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
export const QueryOwnerRequest = {
|
|
617
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryOwnerRequest",
|
|
618
|
+
encode(message: QueryOwnerRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
619
|
+
if (message.classId !== "") {
|
|
620
|
+
writer.uint32(10).string(message.classId);
|
|
621
|
+
}
|
|
622
|
+
if (message.id !== "") {
|
|
623
|
+
writer.uint32(18).string(message.id);
|
|
624
|
+
}
|
|
625
|
+
return writer;
|
|
626
|
+
},
|
|
627
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryOwnerRequest {
|
|
628
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
629
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
630
|
+
const message = createBaseQueryOwnerRequest();
|
|
631
|
+
while (reader.pos < end) {
|
|
632
|
+
const tag = reader.uint32();
|
|
633
|
+
switch (tag >>> 3) {
|
|
634
|
+
case 1:
|
|
635
|
+
message.classId = reader.string();
|
|
636
|
+
break;
|
|
637
|
+
case 2:
|
|
638
|
+
message.id = reader.string();
|
|
639
|
+
break;
|
|
640
|
+
default:
|
|
641
|
+
reader.skipType(tag & 7);
|
|
642
|
+
break;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
return message;
|
|
646
|
+
},
|
|
647
|
+
fromPartial(object: Partial<QueryOwnerRequest>): QueryOwnerRequest {
|
|
648
|
+
const message = createBaseQueryOwnerRequest();
|
|
649
|
+
message.classId = object.classId ?? "";
|
|
650
|
+
message.id = object.id ?? "";
|
|
651
|
+
return message;
|
|
652
|
+
},
|
|
653
|
+
fromAmino(object: QueryOwnerRequestAmino): QueryOwnerRequest {
|
|
654
|
+
const message = createBaseQueryOwnerRequest();
|
|
655
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
656
|
+
message.classId = object.class_id;
|
|
657
|
+
}
|
|
658
|
+
if (object.id !== undefined && object.id !== null) {
|
|
659
|
+
message.id = object.id;
|
|
660
|
+
}
|
|
661
|
+
return message;
|
|
662
|
+
},
|
|
663
|
+
toAmino(message: QueryOwnerRequest): QueryOwnerRequestAmino {
|
|
664
|
+
const obj: any = {};
|
|
665
|
+
obj.class_id = message.classId === "" ? undefined : message.classId;
|
|
666
|
+
obj.id = message.id === "" ? undefined : message.id;
|
|
667
|
+
return obj;
|
|
668
|
+
},
|
|
669
|
+
fromAminoMsg(object: QueryOwnerRequestAminoMsg): QueryOwnerRequest {
|
|
670
|
+
return QueryOwnerRequest.fromAmino(object.value);
|
|
671
|
+
},
|
|
672
|
+
toAminoMsg(message: QueryOwnerRequest): QueryOwnerRequestAminoMsg {
|
|
673
|
+
return {
|
|
674
|
+
type: "cosmos-sdk/QueryOwnerRequest",
|
|
675
|
+
value: QueryOwnerRequest.toAmino(message)
|
|
676
|
+
};
|
|
677
|
+
},
|
|
678
|
+
fromProtoMsg(message: QueryOwnerRequestProtoMsg): QueryOwnerRequest {
|
|
679
|
+
return QueryOwnerRequest.decode(message.value);
|
|
680
|
+
},
|
|
681
|
+
toProto(message: QueryOwnerRequest): Uint8Array {
|
|
682
|
+
return QueryOwnerRequest.encode(message).finish();
|
|
683
|
+
},
|
|
684
|
+
toProtoMsg(message: QueryOwnerRequest): QueryOwnerRequestProtoMsg {
|
|
685
|
+
return {
|
|
686
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryOwnerRequest",
|
|
687
|
+
value: QueryOwnerRequest.encode(message).finish()
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
function createBaseQueryOwnerResponse(): QueryOwnerResponse {
|
|
692
|
+
return {
|
|
693
|
+
owner: ""
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
export const QueryOwnerResponse = {
|
|
697
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryOwnerResponse",
|
|
698
|
+
encode(message: QueryOwnerResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
699
|
+
if (message.owner !== "") {
|
|
700
|
+
writer.uint32(10).string(message.owner);
|
|
701
|
+
}
|
|
702
|
+
return writer;
|
|
703
|
+
},
|
|
704
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryOwnerResponse {
|
|
705
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
706
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
707
|
+
const message = createBaseQueryOwnerResponse();
|
|
708
|
+
while (reader.pos < end) {
|
|
709
|
+
const tag = reader.uint32();
|
|
710
|
+
switch (tag >>> 3) {
|
|
711
|
+
case 1:
|
|
712
|
+
message.owner = reader.string();
|
|
713
|
+
break;
|
|
714
|
+
default:
|
|
715
|
+
reader.skipType(tag & 7);
|
|
716
|
+
break;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
return message;
|
|
720
|
+
},
|
|
721
|
+
fromPartial(object: Partial<QueryOwnerResponse>): QueryOwnerResponse {
|
|
722
|
+
const message = createBaseQueryOwnerResponse();
|
|
723
|
+
message.owner = object.owner ?? "";
|
|
724
|
+
return message;
|
|
725
|
+
},
|
|
726
|
+
fromAmino(object: QueryOwnerResponseAmino): QueryOwnerResponse {
|
|
727
|
+
const message = createBaseQueryOwnerResponse();
|
|
728
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
729
|
+
message.owner = object.owner;
|
|
730
|
+
}
|
|
731
|
+
return message;
|
|
732
|
+
},
|
|
733
|
+
toAmino(message: QueryOwnerResponse): QueryOwnerResponseAmino {
|
|
734
|
+
const obj: any = {};
|
|
735
|
+
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
736
|
+
return obj;
|
|
737
|
+
},
|
|
738
|
+
fromAminoMsg(object: QueryOwnerResponseAminoMsg): QueryOwnerResponse {
|
|
739
|
+
return QueryOwnerResponse.fromAmino(object.value);
|
|
740
|
+
},
|
|
741
|
+
toAminoMsg(message: QueryOwnerResponse): QueryOwnerResponseAminoMsg {
|
|
742
|
+
return {
|
|
743
|
+
type: "cosmos-sdk/QueryOwnerResponse",
|
|
744
|
+
value: QueryOwnerResponse.toAmino(message)
|
|
745
|
+
};
|
|
746
|
+
},
|
|
747
|
+
fromProtoMsg(message: QueryOwnerResponseProtoMsg): QueryOwnerResponse {
|
|
748
|
+
return QueryOwnerResponse.decode(message.value);
|
|
749
|
+
},
|
|
750
|
+
toProto(message: QueryOwnerResponse): Uint8Array {
|
|
751
|
+
return QueryOwnerResponse.encode(message).finish();
|
|
752
|
+
},
|
|
753
|
+
toProtoMsg(message: QueryOwnerResponse): QueryOwnerResponseProtoMsg {
|
|
754
|
+
return {
|
|
755
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryOwnerResponse",
|
|
756
|
+
value: QueryOwnerResponse.encode(message).finish()
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
function createBaseQuerySupplyRequest(): QuerySupplyRequest {
|
|
761
|
+
return {
|
|
762
|
+
classId: ""
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
export const QuerySupplyRequest = {
|
|
766
|
+
typeUrl: "/cosmos.nft.v1beta1.QuerySupplyRequest",
|
|
767
|
+
encode(message: QuerySupplyRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
768
|
+
if (message.classId !== "") {
|
|
769
|
+
writer.uint32(10).string(message.classId);
|
|
770
|
+
}
|
|
771
|
+
return writer;
|
|
772
|
+
},
|
|
773
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest {
|
|
774
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
775
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
776
|
+
const message = createBaseQuerySupplyRequest();
|
|
777
|
+
while (reader.pos < end) {
|
|
778
|
+
const tag = reader.uint32();
|
|
779
|
+
switch (tag >>> 3) {
|
|
780
|
+
case 1:
|
|
781
|
+
message.classId = reader.string();
|
|
782
|
+
break;
|
|
783
|
+
default:
|
|
784
|
+
reader.skipType(tag & 7);
|
|
785
|
+
break;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
return message;
|
|
789
|
+
},
|
|
790
|
+
fromPartial(object: Partial<QuerySupplyRequest>): QuerySupplyRequest {
|
|
791
|
+
const message = createBaseQuerySupplyRequest();
|
|
792
|
+
message.classId = object.classId ?? "";
|
|
793
|
+
return message;
|
|
794
|
+
},
|
|
795
|
+
fromAmino(object: QuerySupplyRequestAmino): QuerySupplyRequest {
|
|
796
|
+
const message = createBaseQuerySupplyRequest();
|
|
797
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
798
|
+
message.classId = object.class_id;
|
|
799
|
+
}
|
|
800
|
+
return message;
|
|
801
|
+
},
|
|
802
|
+
toAmino(message: QuerySupplyRequest): QuerySupplyRequestAmino {
|
|
803
|
+
const obj: any = {};
|
|
804
|
+
obj.class_id = message.classId === "" ? undefined : message.classId;
|
|
805
|
+
return obj;
|
|
806
|
+
},
|
|
807
|
+
fromAminoMsg(object: QuerySupplyRequestAminoMsg): QuerySupplyRequest {
|
|
808
|
+
return QuerySupplyRequest.fromAmino(object.value);
|
|
809
|
+
},
|
|
810
|
+
toAminoMsg(message: QuerySupplyRequest): QuerySupplyRequestAminoMsg {
|
|
811
|
+
return {
|
|
812
|
+
type: "cosmos-sdk/QuerySupplyRequest",
|
|
813
|
+
value: QuerySupplyRequest.toAmino(message)
|
|
814
|
+
};
|
|
815
|
+
},
|
|
816
|
+
fromProtoMsg(message: QuerySupplyRequestProtoMsg): QuerySupplyRequest {
|
|
817
|
+
return QuerySupplyRequest.decode(message.value);
|
|
818
|
+
},
|
|
819
|
+
toProto(message: QuerySupplyRequest): Uint8Array {
|
|
820
|
+
return QuerySupplyRequest.encode(message).finish();
|
|
821
|
+
},
|
|
822
|
+
toProtoMsg(message: QuerySupplyRequest): QuerySupplyRequestProtoMsg {
|
|
823
|
+
return {
|
|
824
|
+
typeUrl: "/cosmos.nft.v1beta1.QuerySupplyRequest",
|
|
825
|
+
value: QuerySupplyRequest.encode(message).finish()
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
function createBaseQuerySupplyResponse(): QuerySupplyResponse {
|
|
830
|
+
return {
|
|
831
|
+
amount: BigInt(0)
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
export const QuerySupplyResponse = {
|
|
835
|
+
typeUrl: "/cosmos.nft.v1beta1.QuerySupplyResponse",
|
|
836
|
+
encode(message: QuerySupplyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
837
|
+
if (message.amount !== BigInt(0)) {
|
|
838
|
+
writer.uint32(8).uint64(message.amount);
|
|
839
|
+
}
|
|
840
|
+
return writer;
|
|
841
|
+
},
|
|
842
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse {
|
|
843
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
844
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
845
|
+
const message = createBaseQuerySupplyResponse();
|
|
846
|
+
while (reader.pos < end) {
|
|
847
|
+
const tag = reader.uint32();
|
|
848
|
+
switch (tag >>> 3) {
|
|
849
|
+
case 1:
|
|
850
|
+
message.amount = reader.uint64();
|
|
851
|
+
break;
|
|
852
|
+
default:
|
|
853
|
+
reader.skipType(tag & 7);
|
|
854
|
+
break;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
return message;
|
|
858
|
+
},
|
|
859
|
+
fromPartial(object: Partial<QuerySupplyResponse>): QuerySupplyResponse {
|
|
860
|
+
const message = createBaseQuerySupplyResponse();
|
|
861
|
+
message.amount = object.amount !== undefined && object.amount !== null ? BigInt(object.amount.toString()) : BigInt(0);
|
|
862
|
+
return message;
|
|
863
|
+
},
|
|
864
|
+
fromAmino(object: QuerySupplyResponseAmino): QuerySupplyResponse {
|
|
865
|
+
const message = createBaseQuerySupplyResponse();
|
|
866
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
867
|
+
message.amount = BigInt(object.amount);
|
|
868
|
+
}
|
|
869
|
+
return message;
|
|
870
|
+
},
|
|
871
|
+
toAmino(message: QuerySupplyResponse): QuerySupplyResponseAmino {
|
|
872
|
+
const obj: any = {};
|
|
873
|
+
obj.amount = message.amount !== BigInt(0) ? message.amount?.toString() : undefined;
|
|
874
|
+
return obj;
|
|
875
|
+
},
|
|
876
|
+
fromAminoMsg(object: QuerySupplyResponseAminoMsg): QuerySupplyResponse {
|
|
877
|
+
return QuerySupplyResponse.fromAmino(object.value);
|
|
878
|
+
},
|
|
879
|
+
toAminoMsg(message: QuerySupplyResponse): QuerySupplyResponseAminoMsg {
|
|
880
|
+
return {
|
|
881
|
+
type: "cosmos-sdk/QuerySupplyResponse",
|
|
882
|
+
value: QuerySupplyResponse.toAmino(message)
|
|
883
|
+
};
|
|
884
|
+
},
|
|
885
|
+
fromProtoMsg(message: QuerySupplyResponseProtoMsg): QuerySupplyResponse {
|
|
886
|
+
return QuerySupplyResponse.decode(message.value);
|
|
887
|
+
},
|
|
888
|
+
toProto(message: QuerySupplyResponse): Uint8Array {
|
|
889
|
+
return QuerySupplyResponse.encode(message).finish();
|
|
890
|
+
},
|
|
891
|
+
toProtoMsg(message: QuerySupplyResponse): QuerySupplyResponseProtoMsg {
|
|
892
|
+
return {
|
|
893
|
+
typeUrl: "/cosmos.nft.v1beta1.QuerySupplyResponse",
|
|
894
|
+
value: QuerySupplyResponse.encode(message).finish()
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
};
|
|
898
|
+
function createBaseQueryNFTsRequest(): QueryNFTsRequest {
|
|
899
|
+
return {
|
|
900
|
+
classId: "",
|
|
901
|
+
owner: "",
|
|
902
|
+
pagination: undefined
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
export const QueryNFTsRequest = {
|
|
906
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryNFTsRequest",
|
|
907
|
+
encode(message: QueryNFTsRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
908
|
+
if (message.classId !== "") {
|
|
909
|
+
writer.uint32(10).string(message.classId);
|
|
910
|
+
}
|
|
911
|
+
if (message.owner !== "") {
|
|
912
|
+
writer.uint32(18).string(message.owner);
|
|
913
|
+
}
|
|
914
|
+
if (message.pagination !== undefined) {
|
|
915
|
+
PageRequest.encode(message.pagination, writer.uint32(26).fork()).ldelim();
|
|
916
|
+
}
|
|
917
|
+
return writer;
|
|
918
|
+
},
|
|
919
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTsRequest {
|
|
920
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
921
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
922
|
+
const message = createBaseQueryNFTsRequest();
|
|
923
|
+
while (reader.pos < end) {
|
|
924
|
+
const tag = reader.uint32();
|
|
925
|
+
switch (tag >>> 3) {
|
|
926
|
+
case 1:
|
|
927
|
+
message.classId = reader.string();
|
|
928
|
+
break;
|
|
929
|
+
case 2:
|
|
930
|
+
message.owner = reader.string();
|
|
931
|
+
break;
|
|
932
|
+
case 3:
|
|
933
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
934
|
+
break;
|
|
935
|
+
default:
|
|
936
|
+
reader.skipType(tag & 7);
|
|
937
|
+
break;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
return message;
|
|
941
|
+
},
|
|
942
|
+
fromPartial(object: Partial<QueryNFTsRequest>): QueryNFTsRequest {
|
|
943
|
+
const message = createBaseQueryNFTsRequest();
|
|
944
|
+
message.classId = object.classId ?? "";
|
|
945
|
+
message.owner = object.owner ?? "";
|
|
946
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
947
|
+
return message;
|
|
948
|
+
},
|
|
949
|
+
fromAmino(object: QueryNFTsRequestAmino): QueryNFTsRequest {
|
|
950
|
+
const message = createBaseQueryNFTsRequest();
|
|
951
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
952
|
+
message.classId = object.class_id;
|
|
953
|
+
}
|
|
954
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
955
|
+
message.owner = object.owner;
|
|
956
|
+
}
|
|
957
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
958
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
959
|
+
}
|
|
960
|
+
return message;
|
|
961
|
+
},
|
|
962
|
+
toAmino(message: QueryNFTsRequest): QueryNFTsRequestAmino {
|
|
963
|
+
const obj: any = {};
|
|
964
|
+
obj.class_id = message.classId === "" ? undefined : message.classId;
|
|
965
|
+
obj.owner = message.owner === "" ? undefined : message.owner;
|
|
966
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
967
|
+
return obj;
|
|
968
|
+
},
|
|
969
|
+
fromAminoMsg(object: QueryNFTsRequestAminoMsg): QueryNFTsRequest {
|
|
970
|
+
return QueryNFTsRequest.fromAmino(object.value);
|
|
971
|
+
},
|
|
972
|
+
toAminoMsg(message: QueryNFTsRequest): QueryNFTsRequestAminoMsg {
|
|
973
|
+
return {
|
|
974
|
+
type: "cosmos-sdk/QueryNFTsRequest",
|
|
975
|
+
value: QueryNFTsRequest.toAmino(message)
|
|
976
|
+
};
|
|
977
|
+
},
|
|
978
|
+
fromProtoMsg(message: QueryNFTsRequestProtoMsg): QueryNFTsRequest {
|
|
979
|
+
return QueryNFTsRequest.decode(message.value);
|
|
980
|
+
},
|
|
981
|
+
toProto(message: QueryNFTsRequest): Uint8Array {
|
|
982
|
+
return QueryNFTsRequest.encode(message).finish();
|
|
983
|
+
},
|
|
984
|
+
toProtoMsg(message: QueryNFTsRequest): QueryNFTsRequestProtoMsg {
|
|
985
|
+
return {
|
|
986
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryNFTsRequest",
|
|
987
|
+
value: QueryNFTsRequest.encode(message).finish()
|
|
988
|
+
};
|
|
989
|
+
}
|
|
990
|
+
};
|
|
991
|
+
function createBaseQueryNFTsResponse(): QueryNFTsResponse {
|
|
992
|
+
return {
|
|
993
|
+
nfts: [],
|
|
994
|
+
pagination: undefined
|
|
995
|
+
};
|
|
996
|
+
}
|
|
997
|
+
export const QueryNFTsResponse = {
|
|
998
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryNFTsResponse",
|
|
999
|
+
encode(message: QueryNFTsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1000
|
+
for (const v of message.nfts) {
|
|
1001
|
+
NFT.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1002
|
+
}
|
|
1003
|
+
if (message.pagination !== undefined) {
|
|
1004
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1005
|
+
}
|
|
1006
|
+
return writer;
|
|
1007
|
+
},
|
|
1008
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTsResponse {
|
|
1009
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1010
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1011
|
+
const message = createBaseQueryNFTsResponse();
|
|
1012
|
+
while (reader.pos < end) {
|
|
1013
|
+
const tag = reader.uint32();
|
|
1014
|
+
switch (tag >>> 3) {
|
|
1015
|
+
case 1:
|
|
1016
|
+
message.nfts.push(NFT.decode(reader, reader.uint32()));
|
|
1017
|
+
break;
|
|
1018
|
+
case 2:
|
|
1019
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1020
|
+
break;
|
|
1021
|
+
default:
|
|
1022
|
+
reader.skipType(tag & 7);
|
|
1023
|
+
break;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
return message;
|
|
1027
|
+
},
|
|
1028
|
+
fromPartial(object: Partial<QueryNFTsResponse>): QueryNFTsResponse {
|
|
1029
|
+
const message = createBaseQueryNFTsResponse();
|
|
1030
|
+
message.nfts = object.nfts?.map(e => NFT.fromPartial(e)) || [];
|
|
1031
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1032
|
+
return message;
|
|
1033
|
+
},
|
|
1034
|
+
fromAmino(object: QueryNFTsResponseAmino): QueryNFTsResponse {
|
|
1035
|
+
const message = createBaseQueryNFTsResponse();
|
|
1036
|
+
message.nfts = object.nfts?.map(e => NFT.fromAmino(e)) || [];
|
|
1037
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1038
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1039
|
+
}
|
|
1040
|
+
return message;
|
|
1041
|
+
},
|
|
1042
|
+
toAmino(message: QueryNFTsResponse): QueryNFTsResponseAmino {
|
|
1043
|
+
const obj: any = {};
|
|
1044
|
+
if (message.nfts) {
|
|
1045
|
+
obj.nfts = message.nfts.map(e => e ? NFT.toAmino(e) : undefined);
|
|
1046
|
+
} else {
|
|
1047
|
+
obj.nfts = message.nfts;
|
|
1048
|
+
}
|
|
1049
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1050
|
+
return obj;
|
|
1051
|
+
},
|
|
1052
|
+
fromAminoMsg(object: QueryNFTsResponseAminoMsg): QueryNFTsResponse {
|
|
1053
|
+
return QueryNFTsResponse.fromAmino(object.value);
|
|
1054
|
+
},
|
|
1055
|
+
toAminoMsg(message: QueryNFTsResponse): QueryNFTsResponseAminoMsg {
|
|
1056
|
+
return {
|
|
1057
|
+
type: "cosmos-sdk/QueryNFTsResponse",
|
|
1058
|
+
value: QueryNFTsResponse.toAmino(message)
|
|
1059
|
+
};
|
|
1060
|
+
},
|
|
1061
|
+
fromProtoMsg(message: QueryNFTsResponseProtoMsg): QueryNFTsResponse {
|
|
1062
|
+
return QueryNFTsResponse.decode(message.value);
|
|
1063
|
+
},
|
|
1064
|
+
toProto(message: QueryNFTsResponse): Uint8Array {
|
|
1065
|
+
return QueryNFTsResponse.encode(message).finish();
|
|
1066
|
+
},
|
|
1067
|
+
toProtoMsg(message: QueryNFTsResponse): QueryNFTsResponseProtoMsg {
|
|
1068
|
+
return {
|
|
1069
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryNFTsResponse",
|
|
1070
|
+
value: QueryNFTsResponse.encode(message).finish()
|
|
1071
|
+
};
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
function createBaseQueryNFTRequest(): QueryNFTRequest {
|
|
1075
|
+
return {
|
|
1076
|
+
classId: "",
|
|
1077
|
+
id: ""
|
|
1078
|
+
};
|
|
1079
|
+
}
|
|
1080
|
+
export const QueryNFTRequest = {
|
|
1081
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryNFTRequest",
|
|
1082
|
+
encode(message: QueryNFTRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1083
|
+
if (message.classId !== "") {
|
|
1084
|
+
writer.uint32(10).string(message.classId);
|
|
1085
|
+
}
|
|
1086
|
+
if (message.id !== "") {
|
|
1087
|
+
writer.uint32(18).string(message.id);
|
|
1088
|
+
}
|
|
1089
|
+
return writer;
|
|
1090
|
+
},
|
|
1091
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTRequest {
|
|
1092
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1093
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1094
|
+
const message = createBaseQueryNFTRequest();
|
|
1095
|
+
while (reader.pos < end) {
|
|
1096
|
+
const tag = reader.uint32();
|
|
1097
|
+
switch (tag >>> 3) {
|
|
1098
|
+
case 1:
|
|
1099
|
+
message.classId = reader.string();
|
|
1100
|
+
break;
|
|
1101
|
+
case 2:
|
|
1102
|
+
message.id = reader.string();
|
|
1103
|
+
break;
|
|
1104
|
+
default:
|
|
1105
|
+
reader.skipType(tag & 7);
|
|
1106
|
+
break;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
return message;
|
|
1110
|
+
},
|
|
1111
|
+
fromPartial(object: Partial<QueryNFTRequest>): QueryNFTRequest {
|
|
1112
|
+
const message = createBaseQueryNFTRequest();
|
|
1113
|
+
message.classId = object.classId ?? "";
|
|
1114
|
+
message.id = object.id ?? "";
|
|
1115
|
+
return message;
|
|
1116
|
+
},
|
|
1117
|
+
fromAmino(object: QueryNFTRequestAmino): QueryNFTRequest {
|
|
1118
|
+
const message = createBaseQueryNFTRequest();
|
|
1119
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1120
|
+
message.classId = object.class_id;
|
|
1121
|
+
}
|
|
1122
|
+
if (object.id !== undefined && object.id !== null) {
|
|
1123
|
+
message.id = object.id;
|
|
1124
|
+
}
|
|
1125
|
+
return message;
|
|
1126
|
+
},
|
|
1127
|
+
toAmino(message: QueryNFTRequest): QueryNFTRequestAmino {
|
|
1128
|
+
const obj: any = {};
|
|
1129
|
+
obj.class_id = message.classId === "" ? undefined : message.classId;
|
|
1130
|
+
obj.id = message.id === "" ? undefined : message.id;
|
|
1131
|
+
return obj;
|
|
1132
|
+
},
|
|
1133
|
+
fromAminoMsg(object: QueryNFTRequestAminoMsg): QueryNFTRequest {
|
|
1134
|
+
return QueryNFTRequest.fromAmino(object.value);
|
|
1135
|
+
},
|
|
1136
|
+
toAminoMsg(message: QueryNFTRequest): QueryNFTRequestAminoMsg {
|
|
1137
|
+
return {
|
|
1138
|
+
type: "cosmos-sdk/QueryNFTRequest",
|
|
1139
|
+
value: QueryNFTRequest.toAmino(message)
|
|
1140
|
+
};
|
|
1141
|
+
},
|
|
1142
|
+
fromProtoMsg(message: QueryNFTRequestProtoMsg): QueryNFTRequest {
|
|
1143
|
+
return QueryNFTRequest.decode(message.value);
|
|
1144
|
+
},
|
|
1145
|
+
toProto(message: QueryNFTRequest): Uint8Array {
|
|
1146
|
+
return QueryNFTRequest.encode(message).finish();
|
|
1147
|
+
},
|
|
1148
|
+
toProtoMsg(message: QueryNFTRequest): QueryNFTRequestProtoMsg {
|
|
1149
|
+
return {
|
|
1150
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryNFTRequest",
|
|
1151
|
+
value: QueryNFTRequest.encode(message).finish()
|
|
1152
|
+
};
|
|
1153
|
+
}
|
|
1154
|
+
};
|
|
1155
|
+
function createBaseQueryNFTResponse(): QueryNFTResponse {
|
|
1156
|
+
return {
|
|
1157
|
+
nft: undefined
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
export const QueryNFTResponse = {
|
|
1161
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryNFTResponse",
|
|
1162
|
+
encode(message: QueryNFTResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1163
|
+
if (message.nft !== undefined) {
|
|
1164
|
+
NFT.encode(message.nft, writer.uint32(10).fork()).ldelim();
|
|
1165
|
+
}
|
|
1166
|
+
return writer;
|
|
1167
|
+
},
|
|
1168
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTResponse {
|
|
1169
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1170
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1171
|
+
const message = createBaseQueryNFTResponse();
|
|
1172
|
+
while (reader.pos < end) {
|
|
1173
|
+
const tag = reader.uint32();
|
|
1174
|
+
switch (tag >>> 3) {
|
|
1175
|
+
case 1:
|
|
1176
|
+
message.nft = NFT.decode(reader, reader.uint32());
|
|
1177
|
+
break;
|
|
1178
|
+
default:
|
|
1179
|
+
reader.skipType(tag & 7);
|
|
1180
|
+
break;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
return message;
|
|
1184
|
+
},
|
|
1185
|
+
fromPartial(object: Partial<QueryNFTResponse>): QueryNFTResponse {
|
|
1186
|
+
const message = createBaseQueryNFTResponse();
|
|
1187
|
+
message.nft = object.nft !== undefined && object.nft !== null ? NFT.fromPartial(object.nft) : undefined;
|
|
1188
|
+
return message;
|
|
1189
|
+
},
|
|
1190
|
+
fromAmino(object: QueryNFTResponseAmino): QueryNFTResponse {
|
|
1191
|
+
const message = createBaseQueryNFTResponse();
|
|
1192
|
+
if (object.nft !== undefined && object.nft !== null) {
|
|
1193
|
+
message.nft = NFT.fromAmino(object.nft);
|
|
1194
|
+
}
|
|
1195
|
+
return message;
|
|
1196
|
+
},
|
|
1197
|
+
toAmino(message: QueryNFTResponse): QueryNFTResponseAmino {
|
|
1198
|
+
const obj: any = {};
|
|
1199
|
+
obj.nft = message.nft ? NFT.toAmino(message.nft) : undefined;
|
|
1200
|
+
return obj;
|
|
1201
|
+
},
|
|
1202
|
+
fromAminoMsg(object: QueryNFTResponseAminoMsg): QueryNFTResponse {
|
|
1203
|
+
return QueryNFTResponse.fromAmino(object.value);
|
|
1204
|
+
},
|
|
1205
|
+
toAminoMsg(message: QueryNFTResponse): QueryNFTResponseAminoMsg {
|
|
1206
|
+
return {
|
|
1207
|
+
type: "cosmos-sdk/QueryNFTResponse",
|
|
1208
|
+
value: QueryNFTResponse.toAmino(message)
|
|
1209
|
+
};
|
|
1210
|
+
},
|
|
1211
|
+
fromProtoMsg(message: QueryNFTResponseProtoMsg): QueryNFTResponse {
|
|
1212
|
+
return QueryNFTResponse.decode(message.value);
|
|
1213
|
+
},
|
|
1214
|
+
toProto(message: QueryNFTResponse): Uint8Array {
|
|
1215
|
+
return QueryNFTResponse.encode(message).finish();
|
|
1216
|
+
},
|
|
1217
|
+
toProtoMsg(message: QueryNFTResponse): QueryNFTResponseProtoMsg {
|
|
1218
|
+
return {
|
|
1219
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryNFTResponse",
|
|
1220
|
+
value: QueryNFTResponse.encode(message).finish()
|
|
1221
|
+
};
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1224
|
+
function createBaseQueryClassRequest(): QueryClassRequest {
|
|
1225
|
+
return {
|
|
1226
|
+
classId: ""
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
export const QueryClassRequest = {
|
|
1230
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryClassRequest",
|
|
1231
|
+
encode(message: QueryClassRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1232
|
+
if (message.classId !== "") {
|
|
1233
|
+
writer.uint32(10).string(message.classId);
|
|
1234
|
+
}
|
|
1235
|
+
return writer;
|
|
1236
|
+
},
|
|
1237
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClassRequest {
|
|
1238
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1239
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1240
|
+
const message = createBaseQueryClassRequest();
|
|
1241
|
+
while (reader.pos < end) {
|
|
1242
|
+
const tag = reader.uint32();
|
|
1243
|
+
switch (tag >>> 3) {
|
|
1244
|
+
case 1:
|
|
1245
|
+
message.classId = reader.string();
|
|
1246
|
+
break;
|
|
1247
|
+
default:
|
|
1248
|
+
reader.skipType(tag & 7);
|
|
1249
|
+
break;
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
return message;
|
|
1253
|
+
},
|
|
1254
|
+
fromPartial(object: Partial<QueryClassRequest>): QueryClassRequest {
|
|
1255
|
+
const message = createBaseQueryClassRequest();
|
|
1256
|
+
message.classId = object.classId ?? "";
|
|
1257
|
+
return message;
|
|
1258
|
+
},
|
|
1259
|
+
fromAmino(object: QueryClassRequestAmino): QueryClassRequest {
|
|
1260
|
+
const message = createBaseQueryClassRequest();
|
|
1261
|
+
if (object.class_id !== undefined && object.class_id !== null) {
|
|
1262
|
+
message.classId = object.class_id;
|
|
1263
|
+
}
|
|
1264
|
+
return message;
|
|
1265
|
+
},
|
|
1266
|
+
toAmino(message: QueryClassRequest): QueryClassRequestAmino {
|
|
1267
|
+
const obj: any = {};
|
|
1268
|
+
obj.class_id = message.classId === "" ? undefined : message.classId;
|
|
1269
|
+
return obj;
|
|
1270
|
+
},
|
|
1271
|
+
fromAminoMsg(object: QueryClassRequestAminoMsg): QueryClassRequest {
|
|
1272
|
+
return QueryClassRequest.fromAmino(object.value);
|
|
1273
|
+
},
|
|
1274
|
+
toAminoMsg(message: QueryClassRequest): QueryClassRequestAminoMsg {
|
|
1275
|
+
return {
|
|
1276
|
+
type: "cosmos-sdk/QueryClassRequest",
|
|
1277
|
+
value: QueryClassRequest.toAmino(message)
|
|
1278
|
+
};
|
|
1279
|
+
},
|
|
1280
|
+
fromProtoMsg(message: QueryClassRequestProtoMsg): QueryClassRequest {
|
|
1281
|
+
return QueryClassRequest.decode(message.value);
|
|
1282
|
+
},
|
|
1283
|
+
toProto(message: QueryClassRequest): Uint8Array {
|
|
1284
|
+
return QueryClassRequest.encode(message).finish();
|
|
1285
|
+
},
|
|
1286
|
+
toProtoMsg(message: QueryClassRequest): QueryClassRequestProtoMsg {
|
|
1287
|
+
return {
|
|
1288
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryClassRequest",
|
|
1289
|
+
value: QueryClassRequest.encode(message).finish()
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
};
|
|
1293
|
+
function createBaseQueryClassResponse(): QueryClassResponse {
|
|
1294
|
+
return {
|
|
1295
|
+
class: undefined
|
|
1296
|
+
};
|
|
1297
|
+
}
|
|
1298
|
+
export const QueryClassResponse = {
|
|
1299
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryClassResponse",
|
|
1300
|
+
encode(message: QueryClassResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1301
|
+
if (message.class !== undefined) {
|
|
1302
|
+
Class.encode(message.class, writer.uint32(10).fork()).ldelim();
|
|
1303
|
+
}
|
|
1304
|
+
return writer;
|
|
1305
|
+
},
|
|
1306
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClassResponse {
|
|
1307
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1308
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1309
|
+
const message = createBaseQueryClassResponse();
|
|
1310
|
+
while (reader.pos < end) {
|
|
1311
|
+
const tag = reader.uint32();
|
|
1312
|
+
switch (tag >>> 3) {
|
|
1313
|
+
case 1:
|
|
1314
|
+
message.class = Class.decode(reader, reader.uint32());
|
|
1315
|
+
break;
|
|
1316
|
+
default:
|
|
1317
|
+
reader.skipType(tag & 7);
|
|
1318
|
+
break;
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
return message;
|
|
1322
|
+
},
|
|
1323
|
+
fromPartial(object: Partial<QueryClassResponse>): QueryClassResponse {
|
|
1324
|
+
const message = createBaseQueryClassResponse();
|
|
1325
|
+
message.class = object.class !== undefined && object.class !== null ? Class.fromPartial(object.class) : undefined;
|
|
1326
|
+
return message;
|
|
1327
|
+
},
|
|
1328
|
+
fromAmino(object: QueryClassResponseAmino): QueryClassResponse {
|
|
1329
|
+
const message = createBaseQueryClassResponse();
|
|
1330
|
+
if (object.class !== undefined && object.class !== null) {
|
|
1331
|
+
message.class = Class.fromAmino(object.class);
|
|
1332
|
+
}
|
|
1333
|
+
return message;
|
|
1334
|
+
},
|
|
1335
|
+
toAmino(message: QueryClassResponse): QueryClassResponseAmino {
|
|
1336
|
+
const obj: any = {};
|
|
1337
|
+
obj.class = message.class ? Class.toAmino(message.class) : undefined;
|
|
1338
|
+
return obj;
|
|
1339
|
+
},
|
|
1340
|
+
fromAminoMsg(object: QueryClassResponseAminoMsg): QueryClassResponse {
|
|
1341
|
+
return QueryClassResponse.fromAmino(object.value);
|
|
1342
|
+
},
|
|
1343
|
+
toAminoMsg(message: QueryClassResponse): QueryClassResponseAminoMsg {
|
|
1344
|
+
return {
|
|
1345
|
+
type: "cosmos-sdk/QueryClassResponse",
|
|
1346
|
+
value: QueryClassResponse.toAmino(message)
|
|
1347
|
+
};
|
|
1348
|
+
},
|
|
1349
|
+
fromProtoMsg(message: QueryClassResponseProtoMsg): QueryClassResponse {
|
|
1350
|
+
return QueryClassResponse.decode(message.value);
|
|
1351
|
+
},
|
|
1352
|
+
toProto(message: QueryClassResponse): Uint8Array {
|
|
1353
|
+
return QueryClassResponse.encode(message).finish();
|
|
1354
|
+
},
|
|
1355
|
+
toProtoMsg(message: QueryClassResponse): QueryClassResponseProtoMsg {
|
|
1356
|
+
return {
|
|
1357
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryClassResponse",
|
|
1358
|
+
value: QueryClassResponse.encode(message).finish()
|
|
1359
|
+
};
|
|
1360
|
+
}
|
|
1361
|
+
};
|
|
1362
|
+
function createBaseQueryClassesRequest(): QueryClassesRequest {
|
|
1363
|
+
return {
|
|
1364
|
+
pagination: undefined
|
|
1365
|
+
};
|
|
1366
|
+
}
|
|
1367
|
+
export const QueryClassesRequest = {
|
|
1368
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryClassesRequest",
|
|
1369
|
+
encode(message: QueryClassesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1370
|
+
if (message.pagination !== undefined) {
|
|
1371
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
1372
|
+
}
|
|
1373
|
+
return writer;
|
|
1374
|
+
},
|
|
1375
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest {
|
|
1376
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1377
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1378
|
+
const message = createBaseQueryClassesRequest();
|
|
1379
|
+
while (reader.pos < end) {
|
|
1380
|
+
const tag = reader.uint32();
|
|
1381
|
+
switch (tag >>> 3) {
|
|
1382
|
+
case 1:
|
|
1383
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1384
|
+
break;
|
|
1385
|
+
default:
|
|
1386
|
+
reader.skipType(tag & 7);
|
|
1387
|
+
break;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
return message;
|
|
1391
|
+
},
|
|
1392
|
+
fromPartial(object: Partial<QueryClassesRequest>): QueryClassesRequest {
|
|
1393
|
+
const message = createBaseQueryClassesRequest();
|
|
1394
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1395
|
+
return message;
|
|
1396
|
+
},
|
|
1397
|
+
fromAmino(object: QueryClassesRequestAmino): QueryClassesRequest {
|
|
1398
|
+
const message = createBaseQueryClassesRequest();
|
|
1399
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1400
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
1401
|
+
}
|
|
1402
|
+
return message;
|
|
1403
|
+
},
|
|
1404
|
+
toAmino(message: QueryClassesRequest): QueryClassesRequestAmino {
|
|
1405
|
+
const obj: any = {};
|
|
1406
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
1407
|
+
return obj;
|
|
1408
|
+
},
|
|
1409
|
+
fromAminoMsg(object: QueryClassesRequestAminoMsg): QueryClassesRequest {
|
|
1410
|
+
return QueryClassesRequest.fromAmino(object.value);
|
|
1411
|
+
},
|
|
1412
|
+
toAminoMsg(message: QueryClassesRequest): QueryClassesRequestAminoMsg {
|
|
1413
|
+
return {
|
|
1414
|
+
type: "cosmos-sdk/QueryClassesRequest",
|
|
1415
|
+
value: QueryClassesRequest.toAmino(message)
|
|
1416
|
+
};
|
|
1417
|
+
},
|
|
1418
|
+
fromProtoMsg(message: QueryClassesRequestProtoMsg): QueryClassesRequest {
|
|
1419
|
+
return QueryClassesRequest.decode(message.value);
|
|
1420
|
+
},
|
|
1421
|
+
toProto(message: QueryClassesRequest): Uint8Array {
|
|
1422
|
+
return QueryClassesRequest.encode(message).finish();
|
|
1423
|
+
},
|
|
1424
|
+
toProtoMsg(message: QueryClassesRequest): QueryClassesRequestProtoMsg {
|
|
1425
|
+
return {
|
|
1426
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryClassesRequest",
|
|
1427
|
+
value: QueryClassesRequest.encode(message).finish()
|
|
1428
|
+
};
|
|
1429
|
+
}
|
|
1430
|
+
};
|
|
1431
|
+
function createBaseQueryClassesResponse(): QueryClassesResponse {
|
|
1432
|
+
return {
|
|
1433
|
+
classes: [],
|
|
1434
|
+
pagination: undefined
|
|
1435
|
+
};
|
|
1436
|
+
}
|
|
1437
|
+
export const QueryClassesResponse = {
|
|
1438
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryClassesResponse",
|
|
1439
|
+
encode(message: QueryClassesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1440
|
+
for (const v of message.classes) {
|
|
1441
|
+
Class.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1442
|
+
}
|
|
1443
|
+
if (message.pagination !== undefined) {
|
|
1444
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1445
|
+
}
|
|
1446
|
+
return writer;
|
|
1447
|
+
},
|
|
1448
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse {
|
|
1449
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1450
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1451
|
+
const message = createBaseQueryClassesResponse();
|
|
1452
|
+
while (reader.pos < end) {
|
|
1453
|
+
const tag = reader.uint32();
|
|
1454
|
+
switch (tag >>> 3) {
|
|
1455
|
+
case 1:
|
|
1456
|
+
message.classes.push(Class.decode(reader, reader.uint32()));
|
|
1457
|
+
break;
|
|
1458
|
+
case 2:
|
|
1459
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1460
|
+
break;
|
|
1461
|
+
default:
|
|
1462
|
+
reader.skipType(tag & 7);
|
|
1463
|
+
break;
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
return message;
|
|
1467
|
+
},
|
|
1468
|
+
fromPartial(object: Partial<QueryClassesResponse>): QueryClassesResponse {
|
|
1469
|
+
const message = createBaseQueryClassesResponse();
|
|
1470
|
+
message.classes = object.classes?.map(e => Class.fromPartial(e)) || [];
|
|
1471
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1472
|
+
return message;
|
|
1473
|
+
},
|
|
1474
|
+
fromAmino(object: QueryClassesResponseAmino): QueryClassesResponse {
|
|
1475
|
+
const message = createBaseQueryClassesResponse();
|
|
1476
|
+
message.classes = object.classes?.map(e => Class.fromAmino(e)) || [];
|
|
1477
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
1478
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
1479
|
+
}
|
|
1480
|
+
return message;
|
|
1481
|
+
},
|
|
1482
|
+
toAmino(message: QueryClassesResponse): QueryClassesResponseAmino {
|
|
1483
|
+
const obj: any = {};
|
|
1484
|
+
if (message.classes) {
|
|
1485
|
+
obj.classes = message.classes.map(e => e ? Class.toAmino(e) : undefined);
|
|
1486
|
+
} else {
|
|
1487
|
+
obj.classes = message.classes;
|
|
1488
|
+
}
|
|
1489
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
1490
|
+
return obj;
|
|
1491
|
+
},
|
|
1492
|
+
fromAminoMsg(object: QueryClassesResponseAminoMsg): QueryClassesResponse {
|
|
1493
|
+
return QueryClassesResponse.fromAmino(object.value);
|
|
1494
|
+
},
|
|
1495
|
+
toAminoMsg(message: QueryClassesResponse): QueryClassesResponseAminoMsg {
|
|
1496
|
+
return {
|
|
1497
|
+
type: "cosmos-sdk/QueryClassesResponse",
|
|
1498
|
+
value: QueryClassesResponse.toAmino(message)
|
|
1499
|
+
};
|
|
1500
|
+
},
|
|
1501
|
+
fromProtoMsg(message: QueryClassesResponseProtoMsg): QueryClassesResponse {
|
|
1502
|
+
return QueryClassesResponse.decode(message.value);
|
|
1503
|
+
},
|
|
1504
|
+
toProto(message: QueryClassesResponse): Uint8Array {
|
|
1505
|
+
return QueryClassesResponse.encode(message).finish();
|
|
1506
|
+
},
|
|
1507
|
+
toProtoMsg(message: QueryClassesResponse): QueryClassesResponseProtoMsg {
|
|
1508
|
+
return {
|
|
1509
|
+
typeUrl: "/cosmos.nft.v1beta1.QueryClassesResponse",
|
|
1510
|
+
value: QueryClassesResponse.encode(message).finish()
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
};
|