decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.33
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/lib/index.d.ts +78 -78
- package/lib/index.js +25 -25
- package/package.json +12 -1
- package/cardchain.cardchain/index.ts +0 -6
- package/cardchain.cardchain/module.ts +0 -1869
- package/cardchain.cardchain/registry.ts +0 -111
- package/cardchain.cardchain/rest.ts +0 -655
- package/cardchain.cardchain/types.ts +0 -63
- package/cardchain.featureflag/index.ts +0 -6
- package/cardchain.featureflag/module.ts +0 -165
- package/cardchain.featureflag/registry.ts +0 -11
- package/cardchain.featureflag/rest.ts +0 -256
- package/cardchain.featureflag/types.ts +0 -9
- package/client.ts +0 -164
- package/cosmos.auth.v1beta1/index.ts +0 -6
- package/cosmos.auth.v1beta1/module.ts +0 -136
- package/cosmos.auth.v1beta1/registry.ts +0 -9
- package/cosmos.auth.v1beta1/rest.ts +0 -403
- package/cosmos.auth.v1beta1/types.ts +0 -13
- package/cosmos.authz.v1beta1/index.ts +0 -6
- package/cosmos.authz.v1beta1/module.ts +0 -206
- package/cosmos.authz.v1beta1/registry.ts +0 -13
- package/cosmos.authz.v1beta1/rest.ts +0 -256
- package/cosmos.authz.v1beta1/types.ts +0 -17
- package/cosmos.bank.v1beta1/index.ts +0 -6
- package/cosmos.bank.v1beta1/module.ts +0 -247
- package/cosmos.bank.v1beta1/registry.ts +0 -15
- package/cosmos.bank.v1beta1/rest.ts +0 -466
- package/cosmos.bank.v1beta1/types.ts +0 -25
- package/cosmos.base.node.v1beta1/index.ts +0 -6
- package/cosmos.base.node.v1beta1/module.ts +0 -95
- package/cosmos.base.node.v1beta1/registry.ts +0 -7
- package/cosmos.base.node.v1beta1/rest.ts +0 -235
- package/cosmos.base.node.v1beta1/types.ts +0 -5
- package/cosmos.base.tendermint.v1beta1/index.ts +0 -6
- package/cosmos.base.tendermint.v1beta1/module.ts +0 -109
- package/cosmos.base.tendermint.v1beta1/registry.ts +0 -7
- package/cosmos.base.tendermint.v1beta1/rest.ts +0 -340
- package/cosmos.base.tendermint.v1beta1/types.ts +0 -19
- package/cosmos.circuit.v1/index.ts +0 -6
- package/cosmos.circuit.v1/module.ts +0 -198
- package/cosmos.circuit.v1/registry.ts +0 -13
- package/cosmos.circuit.v1/rest.ts +0 -256
- package/cosmos.circuit.v1/types.ts +0 -9
- package/cosmos.consensus.v1/index.ts +0 -6
- package/cosmos.consensus.v1/module.ts +0 -128
- package/cosmos.consensus.v1/registry.ts +0 -9
- package/cosmos.consensus.v1/rest.ts +0 -214
- package/cosmos.consensus.v1/types.ts +0 -5
- package/cosmos.crisis.v1beta1/index.ts +0 -6
- package/cosmos.crisis.v1beta1/module.ts +0 -161
- package/cosmos.crisis.v1beta1/registry.ts +0 -11
- package/cosmos.crisis.v1beta1/rest.ts +0 -193
- package/cosmos.crisis.v1beta1/types.ts +0 -5
- package/cosmos.distribution.v1beta1/index.ts +0 -6
- package/cosmos.distribution.v1beta1/module.ts +0 -364
- package/cosmos.distribution.v1beta1/registry.ts +0 -21
- package/cosmos.distribution.v1beta1/rest.ts +0 -403
- package/cosmos.distribution.v1beta1/types.ts +0 -43
- package/cosmos.evidence.v1beta1/index.ts +0 -6
- package/cosmos.evidence.v1beta1/module.ts +0 -130
- package/cosmos.evidence.v1beta1/registry.ts +0 -9
- package/cosmos.evidence.v1beta1/rest.ts +0 -235
- package/cosmos.evidence.v1beta1/types.ts +0 -7
- package/cosmos.feegrant.v1beta1/index.ts +0 -6
- package/cosmos.feegrant.v1beta1/module.ts +0 -202
- package/cosmos.feegrant.v1beta1/registry.ts +0 -13
- package/cosmos.feegrant.v1beta1/rest.ts +0 -256
- package/cosmos.feegrant.v1beta1/types.ts +0 -13
- package/cosmos.gov.v1/index.ts +0 -6
- package/cosmos.gov.v1/module.ts +0 -344
- package/cosmos.gov.v1/registry.ts +0 -21
- package/cosmos.gov.v1/rest.ts +0 -382
- package/cosmos.gov.v1/types.ts +0 -23
- package/cosmos.gov.v1beta1/index.ts +0 -6
- package/cosmos.gov.v1beta1/module.ts +0 -245
- package/cosmos.gov.v1beta1/registry.ts +0 -15
- package/cosmos.gov.v1beta1/rest.ts +0 -361
- package/cosmos.gov.v1beta1/types.ts +0 -23
- package/cosmos.group.v1/index.ts +0 -6
- package/cosmos.group.v1/module.ts +0 -599
- package/cosmos.group.v1/registry.ts +0 -35
- package/cosmos.group.v1/rest.ts +0 -487
- package/cosmos.group.v1/types.ts +0 -47
- package/cosmos.mint.v1beta1/index.ts +0 -6
- package/cosmos.mint.v1beta1/module.ts +0 -132
- package/cosmos.mint.v1beta1/registry.ts +0 -9
- package/cosmos.mint.v1beta1/rest.ts +0 -256
- package/cosmos.mint.v1beta1/types.ts +0 -9
- package/cosmos.nft.v1beta1/index.ts +0 -6
- package/cosmos.nft.v1beta1/module.ts +0 -140
- package/cosmos.nft.v1beta1/registry.ts +0 -9
- package/cosmos.nft.v1beta1/rest.ts +0 -340
- package/cosmos.nft.v1beta1/types.ts +0 -17
- package/cosmos.params.v1beta1/index.ts +0 -6
- package/cosmos.params.v1beta1/module.ts +0 -101
- package/cosmos.params.v1beta1/registry.ts +0 -7
- package/cosmos.params.v1beta1/rest.ts +0 -235
- package/cosmos.params.v1beta1/types.ts +0 -11
- package/cosmos.slashing.v1beta1/index.ts +0 -6
- package/cosmos.slashing.v1beta1/module.ts +0 -171
- package/cosmos.slashing.v1beta1/registry.ts +0 -11
- package/cosmos.slashing.v1beta1/rest.ts +0 -256
- package/cosmos.slashing.v1beta1/types.ts +0 -15
- package/cosmos.staking.v1beta1/index.ts +0 -6
- package/cosmos.staking.v1beta1/module.ts +0 -374
- package/cosmos.staking.v1beta1/registry.ts +0 -21
- package/cosmos.staking.v1beta1/rest.ts +0 -487
- package/cosmos.staking.v1beta1/types.ts +0 -53
- package/cosmos.tx.v1beta1/index.ts +0 -6
- package/cosmos.tx.v1beta1/module.ts +0 -121
- package/cosmos.tx.v1beta1/registry.ts +0 -7
- package/cosmos.tx.v1beta1/rest.ts +0 -382
- package/cosmos.tx.v1beta1/types.ts +0 -31
- package/cosmos.upgrade.v1beta1/index.ts +0 -6
- package/cosmos.upgrade.v1beta1/module.ts +0 -169
- package/cosmos.upgrade.v1beta1/registry.ts +0 -11
- package/cosmos.upgrade.v1beta1/rest.ts +0 -298
- package/cosmos.upgrade.v1beta1/types.ts +0 -13
- package/cosmos.vesting.v1beta1/index.ts +0 -6
- package/cosmos.vesting.v1beta1/module.ts +0 -206
- package/cosmos.vesting.v1beta1/registry.ts +0 -13
- package/cosmos.vesting.v1beta1/rest.ts +0 -193
- package/cosmos.vesting.v1beta1/types.ts +0 -17
- package/env.ts +0 -7
- package/helpers.ts +0 -32
- package/ibc.applications.fee.v1/index.ts +0 -6
- package/ibc.applications.fee.v1/module.ts +0 -247
- package/ibc.applications.fee.v1/registry.ts +0 -15
- package/ibc.applications.fee.v1/rest.ts +0 -403
- package/ibc.applications.fee.v1/types.ts +0 -25
- package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -196
- package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -13
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -235
- package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -7
- package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -165
- package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -11
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +0 -214
- package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -9
- package/ibc.applications.transfer.v1/index.ts +0 -6
- package/ibc.applications.transfer.v1/module.ts +0 -169
- package/ibc.applications.transfer.v1/registry.ts +0 -11
- package/ibc.applications.transfer.v1/rest.ts +0 -319
- package/ibc.applications.transfer.v1/types.ts +0 -13
- package/ibc.core.channel.v1/index.ts +0 -6
- package/ibc.core.channel.v1/module.ts +0 -748
- package/ibc.core.channel.v1/registry.ts +0 -45
- package/ibc.core.channel.v1/rest.ts +0 -550
- package/ibc.core.channel.v1/types.ts +0 -31
- package/ibc.core.client.v1/index.ts +0 -6
- package/ibc.core.client.v1/module.ts +0 -344
- package/ibc.core.client.v1/registry.ts +0 -21
- package/ibc.core.client.v1/rest.ts +0 -403
- package/ibc.core.client.v1/types.ts +0 -23
- package/ibc.core.connection.v1/index.ts +0 -6
- package/ibc.core.connection.v1/module.ts +0 -274
- package/ibc.core.connection.v1/registry.ts +0 -17
- package/ibc.core.connection.v1/rest.ts +0 -319
- package/ibc.core.connection.v1/types.ts +0 -19
- package/index.ts +0 -81
- package/modules.ts +0 -5
- package/tsconfig.json +0 -13
- package/types/amino/amino.ts +0 -9
- package/types/capability/v1/capability.ts +0 -263
- package/types/capability/v1/genesis.ts +0 -220
- package/types/cardchain/cardchain/card.ts +0 -712
- package/types/cardchain/cardchain/card_content.ts +0 -116
- package/types/cardchain/cardchain/card_with_image.ts +0 -134
- package/types/cardchain/cardchain/council.ts +0 -502
- package/types/cardchain/cardchain/encounter.ts +0 -307
- package/types/cardchain/cardchain/encounter_with_image.ts +0 -119
- package/types/cardchain/cardchain/genesis.ts +0 -403
- package/types/cardchain/cardchain/image.ts +0 -122
- package/types/cardchain/cardchain/match.ts +0 -453
- package/types/cardchain/cardchain/module/module.ts +0 -99
- package/types/cardchain/cardchain/params.ts +0 -544
- package/types/cardchain/cardchain/query.ts +0 -3786
- package/types/cardchain/cardchain/running_average.ts +0 -116
- package/types/cardchain/cardchain/sell_offer.ts +0 -224
- package/types/cardchain/cardchain/server.ts +0 -144
- package/types/cardchain/cardchain/set.ts +0 -537
- package/types/cardchain/cardchain/set_with_artwork.ts +0 -142
- package/types/cardchain/cardchain/tx.ts +0 -8053
- package/types/cardchain/cardchain/user.ts +0 -955
- package/types/cardchain/cardchain/voting.ts +0 -328
- package/types/cardchain/cardchain/voting_results.ts +0 -227
- package/types/cardchain/cardchain/zealy.ts +0 -116
- package/types/cardchain/featureflag/flag.ts +0 -133
- package/types/cardchain/featureflag/genesis.ts +0 -226
- package/types/cardchain/featureflag/module/module.ts +0 -99
- package/types/cardchain/featureflag/params.ts +0 -78
- package/types/cardchain/featureflag/query.ts +0 -445
- package/types/cardchain/featureflag/tx.ts +0 -373
- package/types/cosmos/app/runtime/v1alpha1/module.ts +0 -389
- package/types/cosmos/app/v1alpha1/config.ts +0 -346
- package/types/cosmos/app/v1alpha1/module.ts +0 -348
- package/types/cosmos/app/v1alpha1/query.ts +0 -175
- package/types/cosmos/auth/module/v1/module.ts +0 -229
- package/types/cosmos/auth/v1beta1/auth.ts +0 -531
- package/types/cosmos/auth/v1beta1/genesis.ts +0 -125
- package/types/cosmos/auth/v1beta1/query.ts +0 -1564
- package/types/cosmos/auth/v1beta1/tx.ts +0 -213
- package/types/cosmos/authz/module/v1/module.ts +0 -78
- package/types/cosmos/authz/v1beta1/authz.ts +0 -411
- package/types/cosmos/authz/v1beta1/event.ts +0 -241
- package/types/cosmos/authz/v1beta1/genesis.ts +0 -101
- package/types/cosmos/authz/v1beta1/query.ts +0 -643
- package/types/cosmos/authz/v1beta1/tx.ts +0 -574
- package/types/cosmos/autocli/v1/options.ts +0 -1049
- package/types/cosmos/autocli/v1/query.ts +0 -291
- package/types/cosmos/bank/module/v1/module.ts +0 -150
- package/types/cosmos/bank/v1beta1/authz.ts +0 -129
- package/types/cosmos/bank/v1beta1/bank.ts +0 -775
- package/types/cosmos/bank/v1beta1/genesis.ts +0 -277
- package/types/cosmos/bank/v1beta1/query.ts +0 -2424
- package/types/cosmos/bank/v1beta1/tx.ts +0 -697
- package/types/cosmos/base/abci/v1beta1/abci.ts +0 -1469
- package/types/cosmos/base/node/v1beta1/query.ts +0 -485
- package/types/cosmos/base/query/v1beta1/pagination.ts +0 -336
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +0 -328
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2092
- package/types/cosmos/base/tendermint/v1beta1/query.ts +0 -2025
- package/types/cosmos/base/tendermint/v1beta1/types.ts +0 -548
- package/types/cosmos/base/v1beta1/coin.ts +0 -209
- package/types/cosmos/circuit/module/v1/module.ts +0 -99
- package/types/cosmos/circuit/v1/query.ts +0 -476
- package/types/cosmos/circuit/v1/tx.ts +0 -576
- package/types/cosmos/circuit/v1/types.ts +0 -362
- package/types/cosmos/consensus/module/v1/module.ts +0 -99
- package/types/cosmos/consensus/v1/query.ts +0 -181
- package/types/cosmos/consensus/v1/tx.ts +0 -271
- package/types/cosmos/crisis/module/v1/module.ts +0 -119
- package/types/cosmos/crisis/v1beta1/genesis.ts +0 -105
- package/types/cosmos/crisis/v1beta1/tx.ts +0 -367
- package/types/cosmos/crypto/ed25519/keys.ts +0 -195
- package/types/cosmos/crypto/hd/v1/hd.ts +0 -178
- package/types/cosmos/crypto/keyring/v1/record.ts +0 -440
- package/types/cosmos/crypto/multisig/keys.ts +0 -124
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -218
- package/types/cosmos/crypto/secp256k1/keys.ts +0 -192
- package/types/cosmos/crypto/secp256r1/keys.ts +0 -193
- package/types/cosmos/distribution/module/v1/module.ts +0 -118
- package/types/cosmos/distribution/v1beta1/distribution.ts +0 -1177
- package/types/cosmos/distribution/v1beta1/genesis.ts +0 -1028
- package/types/cosmos/distribution/v1beta1/query.ts +0 -1700
- package/types/cosmos/distribution/v1beta1/tx.ts +0 -1178
- package/types/cosmos/evidence/module/v1/module.ts +0 -78
- package/types/cosmos/evidence/v1beta1/evidence.ts +0 -194
- package/types/cosmos/evidence/v1beta1/genesis.ts +0 -98
- package/types/cosmos/evidence/v1beta1/query.ts +0 -414
- package/types/cosmos/evidence/v1beta1/tx.ts +0 -243
- package/types/cosmos/feegrant/module/v1/module.ts +0 -78
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +0 -513
- package/types/cosmos/feegrant/v1beta1/genesis.ts +0 -101
- package/types/cosmos/feegrant/v1beta1/query.ts +0 -597
- package/types/cosmos/feegrant/v1beta1/tx.ts +0 -496
- package/types/cosmos/genutil/module/v1/module.ts +0 -78
- package/types/cosmos/genutil/v1beta1/genesis.ts +0 -122
- package/types/cosmos/gov/module/v1/module.ts +0 -133
- package/types/cosmos/gov/v1/genesis.ts +0 -313
- package/types/cosmos/gov/v1/gov.ts +0 -1712
- package/types/cosmos/gov/v1/query.ts +0 -1605
- package/types/cosmos/gov/v1/tx.ts +0 -1387
- package/types/cosmos/gov/v1beta1/genesis.ts +0 -241
- package/types/cosmos/gov/v1beta1/gov.ts +0 -1273
- package/types/cosmos/gov/v1beta1/query.ts +0 -1441
- package/types/cosmos/gov/v1beta1/tx.ts +0 -738
- package/types/cosmos/group/module/v1/module.ts +0 -141
- package/types/cosmos/group/v1/events.ts +0 -795
- package/types/cosmos/group/v1/genesis.ts +0 -265
- package/types/cosmos/group/v1/query.ts +0 -2441
- package/types/cosmos/group/v1/tx.ts +0 -2631
- package/types/cosmos/group/v1/types.ts +0 -1850
- package/types/cosmos/ics23/v1/proofs.ts +0 -1731
- package/types/cosmos/mint/module/v1/module.ts +0 -118
- package/types/cosmos/mint/v1beta1/genesis.ts +0 -126
- package/types/cosmos/mint/v1beta1/mint.ts +0 -293
- package/types/cosmos/mint/v1beta1/query.ts +0 -453
- package/types/cosmos/mint/v1beta1/tx.ts +0 -213
- package/types/cosmos/msg/textual/v1/textual.ts +0 -9
- package/types/cosmos/msg/v1/msg.ts +0 -9
- package/types/cosmos/nft/module/v1/module.ts +0 -78
- package/types/cosmos/nft/v1beta1/event.ts +0 -359
- package/types/cosmos/nft/v1beta1/genesis.ts +0 -204
- package/types/cosmos/nft/v1beta1/nft.ts +0 -348
- package/types/cosmos/nft/v1beta1/query.ts +0 -1173
- package/types/cosmos/nft/v1beta1/tx.ts +0 -228
- package/types/cosmos/orm/module/v1alpha1/module.ts +0 -82
- package/types/cosmos/orm/query/v1alpha1/query.ts +0 -933
- package/types/cosmos/orm/v1/orm.ts +0 -453
- package/types/cosmos/orm/v1alpha1/schema.ts +0 -321
- package/types/cosmos/params/module/v1/module.ts +0 -78
- package/types/cosmos/params/v1beta1/params.ts +0 -236
- package/types/cosmos/params/v1beta1/query.ts +0 -439
- package/types/cosmos/query/v1/query.ts +0 -9
- package/types/cosmos/reflection/v1/reflection.ts +0 -179
- package/types/cosmos/slashing/module/v1/module.ts +0 -99
- package/types/cosmos/slashing/v1beta1/genesis.ts +0 -424
- package/types/cosmos/slashing/v1beta1/query.ts +0 -487
- package/types/cosmos/slashing/v1beta1/slashing.ts +0 -422
- package/types/cosmos/slashing/v1beta1/tx.ts +0 -336
- package/types/cosmos/staking/module/v1/module.ts +0 -161
- package/types/cosmos/staking/v1beta1/authz.ts +0 -306
- package/types/cosmos/staking/v1beta1/genesis.ts +0 -377
- package/types/cosmos/staking/v1beta1/query.ts +0 -2540
- package/types/cosmos/staking/v1beta1/staking.ts +0 -2576
- package/types/cosmos/staking/v1beta1/tx.ts +0 -1433
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +0 -205
- package/types/cosmos/store/snapshots/v1/snapshot.ts +0 -746
- package/types/cosmos/store/streaming/abci/grpc.ts +0 -367
- package/types/cosmos/store/v1beta1/commit_info.ts +0 -370
- package/types/cosmos/store/v1beta1/listening.ts +0 -301
- package/types/cosmos/tx/config/v1/config.ts +0 -125
- package/types/cosmos/tx/signing/v1beta1/signing.ts +0 -630
- package/types/cosmos/tx/v1beta1/service.ts +0 -1889
- package/types/cosmos/tx/v1beta1/tx.ts +0 -1657
- package/types/cosmos/upgrade/module/v1/module.ts +0 -99
- package/types/cosmos/upgrade/v1beta1/query.ts +0 -819
- package/types/cosmos/upgrade/v1beta1/tx.ts +0 -340
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +0 -525
- package/types/cosmos/vesting/module/v1/module.ts +0 -78
- package/types/cosmos/vesting/v1beta1/tx.ts +0 -640
- package/types/cosmos/vesting/v1beta1/vesting.ts +0 -624
- package/types/cosmos_proto/cosmos.ts +0 -307
- package/types/gogoproto/gogo.ts +0 -9
- package/types/google/api/annotations.ts +0 -9
- package/types/google/api/http.ts +0 -770
- package/types/google/protobuf/any.ts +0 -259
- package/types/google/protobuf/descriptor.ts +0 -6642
- package/types/google/protobuf/duration.ts +0 -200
- package/types/google/protobuf/timestamp.ts +0 -229
- package/types/ibc/applications/fee/v1/ack.ts +0 -166
- package/types/ibc/applications/fee/v1/fee.ts +0 -403
- package/types/ibc/applications/fee/v1/genesis.ts +0 -571
- package/types/ibc/applications/fee/v1/metadata.ts +0 -122
- package/types/ibc/applications/fee/v1/query.ts +0 -1757
- package/types/ibc/applications/fee/v1/tx.ts +0 -781
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -104
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -333
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -619
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -590
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +0 -242
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +0 -175
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -416
- package/types/ibc/applications/interchain_accounts/v1/account.ts +0 -120
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +0 -199
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +0 -264
- package/types/ibc/applications/transfer/v1/authz.ts +0 -254
- package/types/ibc/applications/transfer/v1/genesis.ts +0 -165
- package/types/ibc/applications/transfer/v1/query.ts +0 -934
- package/types/ibc/applications/transfer/v1/transfer.ts +0 -220
- package/types/ibc/applications/transfer/v1/tx.ts +0 -505
- package/types/ibc/applications/transfer/v2/packet.ts +0 -177
- package/types/ibc/core/channel/v1/channel.ts +0 -1358
- package/types/ibc/core/channel/v1/genesis.ts +0 -377
- package/types/ibc/core/channel/v1/query.ts +0 -3781
- package/types/ibc/core/channel/v1/tx.ts +0 -4424
- package/types/ibc/core/channel/v1/upgrade.ts +0 -348
- package/types/ibc/core/client/v1/client.ts +0 -753
- package/types/ibc/core/client/v1/genesis.ts +0 -423
- package/types/ibc/core/client/v1/query.ts +0 -1898
- package/types/ibc/core/client/v1/tx.ts +0 -1301
- package/types/ibc/core/commitment/v1/commitment.ts +0 -336
- package/types/ibc/core/connection/v1/connection.ts +0 -840
- package/types/ibc/core/connection/v1/genesis.ts +0 -172
- package/types/ibc/core/connection/v1/query.ts +0 -1243
- package/types/ibc/core/connection/v1/tx.ts +0 -1352
- package/types/ibc/core/types/v1/genesis.ts +0 -150
- package/types/ibc/lightclients/localhost/v2/localhost.ts +0 -102
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +0 -1765
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +0 -945
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +0 -853
- package/types/ibc/lightclients/wasm/v1/genesis.ts +0 -192
- package/types/ibc/lightclients/wasm/v1/query.ts +0 -377
- package/types/ibc/lightclients/wasm/v1/tx.ts +0 -550
- package/types/ibc/lightclients/wasm/v1/wasm.ts +0 -370
- package/types/tendermint/abci/types.ts +0 -6103
- package/types/tendermint/crypto/keys.ts +0 -142
- package/types/tendermint/crypto/proof.ts +0 -533
- package/types/tendermint/libs/bits/types.ts +0 -139
- package/types/tendermint/p2p/types.ts +0 -544
- package/types/tendermint/types/block.ts +0 -158
- package/types/tendermint/types/evidence.ts +0 -502
- package/types/tendermint/types/params.ts +0 -701
- package/types/tendermint/types/types.ts +0 -2133
- package/types/tendermint/types/validator.ts +0 -424
- package/types/tendermint/version/types.ts +0 -218
- package/types.d.ts +0 -21
|
@@ -1,1173 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.6.1
|
|
4
|
-
// protoc unknown
|
|
5
|
-
// source: cosmos/nft/v1beta1/query.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
10
|
-
import { Class, NFT } from "./nft";
|
|
11
|
-
|
|
12
|
-
export const protobufPackage = "cosmos.nft.v1beta1";
|
|
13
|
-
|
|
14
|
-
/** QueryBalanceRequest is the request type for the Query/Balance RPC method */
|
|
15
|
-
export interface QueryBalanceRequest {
|
|
16
|
-
/** class_id associated with the nft */
|
|
17
|
-
classId: string;
|
|
18
|
-
/** owner is the owner address of the nft */
|
|
19
|
-
owner: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** QueryBalanceResponse is the response type for the Query/Balance RPC method */
|
|
23
|
-
export interface QueryBalanceResponse {
|
|
24
|
-
/** amount is the number of all NFTs of a given class owned by the owner */
|
|
25
|
-
amount: number;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/** QueryOwnerRequest is the request type for the Query/Owner RPC method */
|
|
29
|
-
export interface QueryOwnerRequest {
|
|
30
|
-
/** class_id associated with the nft */
|
|
31
|
-
classId: string;
|
|
32
|
-
/** id is a unique identifier of the NFT */
|
|
33
|
-
id: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/** QueryOwnerResponse is the response type for the Query/Owner RPC method */
|
|
37
|
-
export interface QueryOwnerResponse {
|
|
38
|
-
/** owner is the owner address of the nft */
|
|
39
|
-
owner: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** QuerySupplyRequest is the request type for the Query/Supply RPC method */
|
|
43
|
-
export interface QuerySupplyRequest {
|
|
44
|
-
/** class_id associated with the nft */
|
|
45
|
-
classId: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** QuerySupplyResponse is the response type for the Query/Supply RPC method */
|
|
49
|
-
export interface QuerySupplyResponse {
|
|
50
|
-
/** amount is the number of all NFTs from the given class */
|
|
51
|
-
amount: number;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/** QueryNFTstRequest is the request type for the Query/NFTs RPC method */
|
|
55
|
-
export interface QueryNFTsRequest {
|
|
56
|
-
/** class_id associated with the nft */
|
|
57
|
-
classId: string;
|
|
58
|
-
/** owner is the owner address of the nft */
|
|
59
|
-
owner: string;
|
|
60
|
-
/** pagination defines an optional pagination for the request. */
|
|
61
|
-
pagination: PageRequest | undefined;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/** QueryNFTsResponse is the response type for the Query/NFTs RPC methods */
|
|
65
|
-
export interface QueryNFTsResponse {
|
|
66
|
-
/** NFT defines the NFT */
|
|
67
|
-
nfts: NFT[];
|
|
68
|
-
/** pagination defines the pagination in the response. */
|
|
69
|
-
pagination: PageResponse | undefined;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/** QueryNFTRequest is the request type for the Query/NFT RPC method */
|
|
73
|
-
export interface QueryNFTRequest {
|
|
74
|
-
/** class_id associated with the nft */
|
|
75
|
-
classId: string;
|
|
76
|
-
/** id is a unique identifier of the NFT */
|
|
77
|
-
id: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/** QueryNFTResponse is the response type for the Query/NFT RPC method */
|
|
81
|
-
export interface QueryNFTResponse {
|
|
82
|
-
/** owner is the owner address of the nft */
|
|
83
|
-
nft: NFT | undefined;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/** QueryClassRequest is the request type for the Query/Class RPC method */
|
|
87
|
-
export interface QueryClassRequest {
|
|
88
|
-
/** class_id associated with the nft */
|
|
89
|
-
classId: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** QueryClassResponse is the response type for the Query/Class RPC method */
|
|
93
|
-
export interface QueryClassResponse {
|
|
94
|
-
/** class defines the class of the nft type. */
|
|
95
|
-
class: Class | undefined;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** QueryClassesRequest is the request type for the Query/Classes RPC method */
|
|
99
|
-
export interface QueryClassesRequest {
|
|
100
|
-
/** pagination defines an optional pagination for the request. */
|
|
101
|
-
pagination: PageRequest | undefined;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/** QueryClassesResponse is the response type for the Query/Classes RPC method */
|
|
105
|
-
export interface QueryClassesResponse {
|
|
106
|
-
/** class defines the class of the nft type. */
|
|
107
|
-
classes: Class[];
|
|
108
|
-
/** pagination defines the pagination in the response. */
|
|
109
|
-
pagination: PageResponse | undefined;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function createBaseQueryBalanceRequest(): QueryBalanceRequest {
|
|
113
|
-
return { classId: "", owner: "" };
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export const QueryBalanceRequest: MessageFns<QueryBalanceRequest> = {
|
|
117
|
-
encode(message: QueryBalanceRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
118
|
-
if (message.classId !== "") {
|
|
119
|
-
writer.uint32(10).string(message.classId);
|
|
120
|
-
}
|
|
121
|
-
if (message.owner !== "") {
|
|
122
|
-
writer.uint32(18).string(message.owner);
|
|
123
|
-
}
|
|
124
|
-
return writer;
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceRequest {
|
|
128
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
129
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
130
|
-
const message = createBaseQueryBalanceRequest();
|
|
131
|
-
while (reader.pos < end) {
|
|
132
|
-
const tag = reader.uint32();
|
|
133
|
-
switch (tag >>> 3) {
|
|
134
|
-
case 1: {
|
|
135
|
-
if (tag !== 10) {
|
|
136
|
-
break;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
message.classId = reader.string();
|
|
140
|
-
continue;
|
|
141
|
-
}
|
|
142
|
-
case 2: {
|
|
143
|
-
if (tag !== 18) {
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
message.owner = reader.string();
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
152
|
-
break;
|
|
153
|
-
}
|
|
154
|
-
reader.skip(tag & 7);
|
|
155
|
-
}
|
|
156
|
-
return message;
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
fromJSON(object: any): QueryBalanceRequest {
|
|
160
|
-
return {
|
|
161
|
-
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
162
|
-
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
163
|
-
};
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
toJSON(message: QueryBalanceRequest): unknown {
|
|
167
|
-
const obj: any = {};
|
|
168
|
-
if (message.classId !== "") {
|
|
169
|
-
obj.classId = message.classId;
|
|
170
|
-
}
|
|
171
|
-
if (message.owner !== "") {
|
|
172
|
-
obj.owner = message.owner;
|
|
173
|
-
}
|
|
174
|
-
return obj;
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
create<I extends Exact<DeepPartial<QueryBalanceRequest>, I>>(base?: I): QueryBalanceRequest {
|
|
178
|
-
return QueryBalanceRequest.fromPartial(base ?? ({} as any));
|
|
179
|
-
},
|
|
180
|
-
fromPartial<I extends Exact<DeepPartial<QueryBalanceRequest>, I>>(object: I): QueryBalanceRequest {
|
|
181
|
-
const message = createBaseQueryBalanceRequest();
|
|
182
|
-
message.classId = object.classId ?? "";
|
|
183
|
-
message.owner = object.owner ?? "";
|
|
184
|
-
return message;
|
|
185
|
-
},
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
function createBaseQueryBalanceResponse(): QueryBalanceResponse {
|
|
189
|
-
return { amount: 0 };
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export const QueryBalanceResponse: MessageFns<QueryBalanceResponse> = {
|
|
193
|
-
encode(message: QueryBalanceResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
194
|
-
if (message.amount !== 0) {
|
|
195
|
-
writer.uint32(8).uint64(message.amount);
|
|
196
|
-
}
|
|
197
|
-
return writer;
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryBalanceResponse {
|
|
201
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
202
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
203
|
-
const message = createBaseQueryBalanceResponse();
|
|
204
|
-
while (reader.pos < end) {
|
|
205
|
-
const tag = reader.uint32();
|
|
206
|
-
switch (tag >>> 3) {
|
|
207
|
-
case 1: {
|
|
208
|
-
if (tag !== 8) {
|
|
209
|
-
break;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
message.amount = longToNumber(reader.uint64());
|
|
213
|
-
continue;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
217
|
-
break;
|
|
218
|
-
}
|
|
219
|
-
reader.skip(tag & 7);
|
|
220
|
-
}
|
|
221
|
-
return message;
|
|
222
|
-
},
|
|
223
|
-
|
|
224
|
-
fromJSON(object: any): QueryBalanceResponse {
|
|
225
|
-
return { amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0 };
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
toJSON(message: QueryBalanceResponse): unknown {
|
|
229
|
-
const obj: any = {};
|
|
230
|
-
if (message.amount !== 0) {
|
|
231
|
-
obj.amount = Math.round(message.amount);
|
|
232
|
-
}
|
|
233
|
-
return obj;
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
create<I extends Exact<DeepPartial<QueryBalanceResponse>, I>>(base?: I): QueryBalanceResponse {
|
|
237
|
-
return QueryBalanceResponse.fromPartial(base ?? ({} as any));
|
|
238
|
-
},
|
|
239
|
-
fromPartial<I extends Exact<DeepPartial<QueryBalanceResponse>, I>>(object: I): QueryBalanceResponse {
|
|
240
|
-
const message = createBaseQueryBalanceResponse();
|
|
241
|
-
message.amount = object.amount ?? 0;
|
|
242
|
-
return message;
|
|
243
|
-
},
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
function createBaseQueryOwnerRequest(): QueryOwnerRequest {
|
|
247
|
-
return { classId: "", id: "" };
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
export const QueryOwnerRequest: MessageFns<QueryOwnerRequest> = {
|
|
251
|
-
encode(message: QueryOwnerRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
252
|
-
if (message.classId !== "") {
|
|
253
|
-
writer.uint32(10).string(message.classId);
|
|
254
|
-
}
|
|
255
|
-
if (message.id !== "") {
|
|
256
|
-
writer.uint32(18).string(message.id);
|
|
257
|
-
}
|
|
258
|
-
return writer;
|
|
259
|
-
},
|
|
260
|
-
|
|
261
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryOwnerRequest {
|
|
262
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
263
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
264
|
-
const message = createBaseQueryOwnerRequest();
|
|
265
|
-
while (reader.pos < end) {
|
|
266
|
-
const tag = reader.uint32();
|
|
267
|
-
switch (tag >>> 3) {
|
|
268
|
-
case 1: {
|
|
269
|
-
if (tag !== 10) {
|
|
270
|
-
break;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
message.classId = reader.string();
|
|
274
|
-
continue;
|
|
275
|
-
}
|
|
276
|
-
case 2: {
|
|
277
|
-
if (tag !== 18) {
|
|
278
|
-
break;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
message.id = reader.string();
|
|
282
|
-
continue;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
286
|
-
break;
|
|
287
|
-
}
|
|
288
|
-
reader.skip(tag & 7);
|
|
289
|
-
}
|
|
290
|
-
return message;
|
|
291
|
-
},
|
|
292
|
-
|
|
293
|
-
fromJSON(object: any): QueryOwnerRequest {
|
|
294
|
-
return {
|
|
295
|
-
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
296
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
297
|
-
};
|
|
298
|
-
},
|
|
299
|
-
|
|
300
|
-
toJSON(message: QueryOwnerRequest): unknown {
|
|
301
|
-
const obj: any = {};
|
|
302
|
-
if (message.classId !== "") {
|
|
303
|
-
obj.classId = message.classId;
|
|
304
|
-
}
|
|
305
|
-
if (message.id !== "") {
|
|
306
|
-
obj.id = message.id;
|
|
307
|
-
}
|
|
308
|
-
return obj;
|
|
309
|
-
},
|
|
310
|
-
|
|
311
|
-
create<I extends Exact<DeepPartial<QueryOwnerRequest>, I>>(base?: I): QueryOwnerRequest {
|
|
312
|
-
return QueryOwnerRequest.fromPartial(base ?? ({} as any));
|
|
313
|
-
},
|
|
314
|
-
fromPartial<I extends Exact<DeepPartial<QueryOwnerRequest>, I>>(object: I): QueryOwnerRequest {
|
|
315
|
-
const message = createBaseQueryOwnerRequest();
|
|
316
|
-
message.classId = object.classId ?? "";
|
|
317
|
-
message.id = object.id ?? "";
|
|
318
|
-
return message;
|
|
319
|
-
},
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
function createBaseQueryOwnerResponse(): QueryOwnerResponse {
|
|
323
|
-
return { owner: "" };
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
export const QueryOwnerResponse: MessageFns<QueryOwnerResponse> = {
|
|
327
|
-
encode(message: QueryOwnerResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
328
|
-
if (message.owner !== "") {
|
|
329
|
-
writer.uint32(10).string(message.owner);
|
|
330
|
-
}
|
|
331
|
-
return writer;
|
|
332
|
-
},
|
|
333
|
-
|
|
334
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryOwnerResponse {
|
|
335
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
336
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
337
|
-
const message = createBaseQueryOwnerResponse();
|
|
338
|
-
while (reader.pos < end) {
|
|
339
|
-
const tag = reader.uint32();
|
|
340
|
-
switch (tag >>> 3) {
|
|
341
|
-
case 1: {
|
|
342
|
-
if (tag !== 10) {
|
|
343
|
-
break;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
message.owner = reader.string();
|
|
347
|
-
continue;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
351
|
-
break;
|
|
352
|
-
}
|
|
353
|
-
reader.skip(tag & 7);
|
|
354
|
-
}
|
|
355
|
-
return message;
|
|
356
|
-
},
|
|
357
|
-
|
|
358
|
-
fromJSON(object: any): QueryOwnerResponse {
|
|
359
|
-
return { owner: isSet(object.owner) ? globalThis.String(object.owner) : "" };
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
-
toJSON(message: QueryOwnerResponse): unknown {
|
|
363
|
-
const obj: any = {};
|
|
364
|
-
if (message.owner !== "") {
|
|
365
|
-
obj.owner = message.owner;
|
|
366
|
-
}
|
|
367
|
-
return obj;
|
|
368
|
-
},
|
|
369
|
-
|
|
370
|
-
create<I extends Exact<DeepPartial<QueryOwnerResponse>, I>>(base?: I): QueryOwnerResponse {
|
|
371
|
-
return QueryOwnerResponse.fromPartial(base ?? ({} as any));
|
|
372
|
-
},
|
|
373
|
-
fromPartial<I extends Exact<DeepPartial<QueryOwnerResponse>, I>>(object: I): QueryOwnerResponse {
|
|
374
|
-
const message = createBaseQueryOwnerResponse();
|
|
375
|
-
message.owner = object.owner ?? "";
|
|
376
|
-
return message;
|
|
377
|
-
},
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
function createBaseQuerySupplyRequest(): QuerySupplyRequest {
|
|
381
|
-
return { classId: "" };
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
export const QuerySupplyRequest: MessageFns<QuerySupplyRequest> = {
|
|
385
|
-
encode(message: QuerySupplyRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
386
|
-
if (message.classId !== "") {
|
|
387
|
-
writer.uint32(10).string(message.classId);
|
|
388
|
-
}
|
|
389
|
-
return writer;
|
|
390
|
-
},
|
|
391
|
-
|
|
392
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyRequest {
|
|
393
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
394
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
395
|
-
const message = createBaseQuerySupplyRequest();
|
|
396
|
-
while (reader.pos < end) {
|
|
397
|
-
const tag = reader.uint32();
|
|
398
|
-
switch (tag >>> 3) {
|
|
399
|
-
case 1: {
|
|
400
|
-
if (tag !== 10) {
|
|
401
|
-
break;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
message.classId = reader.string();
|
|
405
|
-
continue;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
409
|
-
break;
|
|
410
|
-
}
|
|
411
|
-
reader.skip(tag & 7);
|
|
412
|
-
}
|
|
413
|
-
return message;
|
|
414
|
-
},
|
|
415
|
-
|
|
416
|
-
fromJSON(object: any): QuerySupplyRequest {
|
|
417
|
-
return { classId: isSet(object.classId) ? globalThis.String(object.classId) : "" };
|
|
418
|
-
},
|
|
419
|
-
|
|
420
|
-
toJSON(message: QuerySupplyRequest): unknown {
|
|
421
|
-
const obj: any = {};
|
|
422
|
-
if (message.classId !== "") {
|
|
423
|
-
obj.classId = message.classId;
|
|
424
|
-
}
|
|
425
|
-
return obj;
|
|
426
|
-
},
|
|
427
|
-
|
|
428
|
-
create<I extends Exact<DeepPartial<QuerySupplyRequest>, I>>(base?: I): QuerySupplyRequest {
|
|
429
|
-
return QuerySupplyRequest.fromPartial(base ?? ({} as any));
|
|
430
|
-
},
|
|
431
|
-
fromPartial<I extends Exact<DeepPartial<QuerySupplyRequest>, I>>(object: I): QuerySupplyRequest {
|
|
432
|
-
const message = createBaseQuerySupplyRequest();
|
|
433
|
-
message.classId = object.classId ?? "";
|
|
434
|
-
return message;
|
|
435
|
-
},
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
function createBaseQuerySupplyResponse(): QuerySupplyResponse {
|
|
439
|
-
return { amount: 0 };
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
export const QuerySupplyResponse: MessageFns<QuerySupplyResponse> = {
|
|
443
|
-
encode(message: QuerySupplyResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
444
|
-
if (message.amount !== 0) {
|
|
445
|
-
writer.uint32(8).uint64(message.amount);
|
|
446
|
-
}
|
|
447
|
-
return writer;
|
|
448
|
-
},
|
|
449
|
-
|
|
450
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QuerySupplyResponse {
|
|
451
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
452
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
453
|
-
const message = createBaseQuerySupplyResponse();
|
|
454
|
-
while (reader.pos < end) {
|
|
455
|
-
const tag = reader.uint32();
|
|
456
|
-
switch (tag >>> 3) {
|
|
457
|
-
case 1: {
|
|
458
|
-
if (tag !== 8) {
|
|
459
|
-
break;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
message.amount = longToNumber(reader.uint64());
|
|
463
|
-
continue;
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
467
|
-
break;
|
|
468
|
-
}
|
|
469
|
-
reader.skip(tag & 7);
|
|
470
|
-
}
|
|
471
|
-
return message;
|
|
472
|
-
},
|
|
473
|
-
|
|
474
|
-
fromJSON(object: any): QuerySupplyResponse {
|
|
475
|
-
return { amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0 };
|
|
476
|
-
},
|
|
477
|
-
|
|
478
|
-
toJSON(message: QuerySupplyResponse): unknown {
|
|
479
|
-
const obj: any = {};
|
|
480
|
-
if (message.amount !== 0) {
|
|
481
|
-
obj.amount = Math.round(message.amount);
|
|
482
|
-
}
|
|
483
|
-
return obj;
|
|
484
|
-
},
|
|
485
|
-
|
|
486
|
-
create<I extends Exact<DeepPartial<QuerySupplyResponse>, I>>(base?: I): QuerySupplyResponse {
|
|
487
|
-
return QuerySupplyResponse.fromPartial(base ?? ({} as any));
|
|
488
|
-
},
|
|
489
|
-
fromPartial<I extends Exact<DeepPartial<QuerySupplyResponse>, I>>(object: I): QuerySupplyResponse {
|
|
490
|
-
const message = createBaseQuerySupplyResponse();
|
|
491
|
-
message.amount = object.amount ?? 0;
|
|
492
|
-
return message;
|
|
493
|
-
},
|
|
494
|
-
};
|
|
495
|
-
|
|
496
|
-
function createBaseQueryNFTsRequest(): QueryNFTsRequest {
|
|
497
|
-
return { classId: "", owner: "", pagination: undefined };
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
export const QueryNFTsRequest: MessageFns<QueryNFTsRequest> = {
|
|
501
|
-
encode(message: QueryNFTsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
502
|
-
if (message.classId !== "") {
|
|
503
|
-
writer.uint32(10).string(message.classId);
|
|
504
|
-
}
|
|
505
|
-
if (message.owner !== "") {
|
|
506
|
-
writer.uint32(18).string(message.owner);
|
|
507
|
-
}
|
|
508
|
-
if (message.pagination !== undefined) {
|
|
509
|
-
PageRequest.encode(message.pagination, writer.uint32(26).fork()).join();
|
|
510
|
-
}
|
|
511
|
-
return writer;
|
|
512
|
-
},
|
|
513
|
-
|
|
514
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTsRequest {
|
|
515
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
516
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
517
|
-
const message = createBaseQueryNFTsRequest();
|
|
518
|
-
while (reader.pos < end) {
|
|
519
|
-
const tag = reader.uint32();
|
|
520
|
-
switch (tag >>> 3) {
|
|
521
|
-
case 1: {
|
|
522
|
-
if (tag !== 10) {
|
|
523
|
-
break;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
message.classId = reader.string();
|
|
527
|
-
continue;
|
|
528
|
-
}
|
|
529
|
-
case 2: {
|
|
530
|
-
if (tag !== 18) {
|
|
531
|
-
break;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
message.owner = reader.string();
|
|
535
|
-
continue;
|
|
536
|
-
}
|
|
537
|
-
case 3: {
|
|
538
|
-
if (tag !== 26) {
|
|
539
|
-
break;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
543
|
-
continue;
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
547
|
-
break;
|
|
548
|
-
}
|
|
549
|
-
reader.skip(tag & 7);
|
|
550
|
-
}
|
|
551
|
-
return message;
|
|
552
|
-
},
|
|
553
|
-
|
|
554
|
-
fromJSON(object: any): QueryNFTsRequest {
|
|
555
|
-
return {
|
|
556
|
-
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
557
|
-
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
558
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
559
|
-
};
|
|
560
|
-
},
|
|
561
|
-
|
|
562
|
-
toJSON(message: QueryNFTsRequest): unknown {
|
|
563
|
-
const obj: any = {};
|
|
564
|
-
if (message.classId !== "") {
|
|
565
|
-
obj.classId = message.classId;
|
|
566
|
-
}
|
|
567
|
-
if (message.owner !== "") {
|
|
568
|
-
obj.owner = message.owner;
|
|
569
|
-
}
|
|
570
|
-
if (message.pagination !== undefined) {
|
|
571
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
572
|
-
}
|
|
573
|
-
return obj;
|
|
574
|
-
},
|
|
575
|
-
|
|
576
|
-
create<I extends Exact<DeepPartial<QueryNFTsRequest>, I>>(base?: I): QueryNFTsRequest {
|
|
577
|
-
return QueryNFTsRequest.fromPartial(base ?? ({} as any));
|
|
578
|
-
},
|
|
579
|
-
fromPartial<I extends Exact<DeepPartial<QueryNFTsRequest>, I>>(object: I): QueryNFTsRequest {
|
|
580
|
-
const message = createBaseQueryNFTsRequest();
|
|
581
|
-
message.classId = object.classId ?? "";
|
|
582
|
-
message.owner = object.owner ?? "";
|
|
583
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
584
|
-
? PageRequest.fromPartial(object.pagination)
|
|
585
|
-
: undefined;
|
|
586
|
-
return message;
|
|
587
|
-
},
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
function createBaseQueryNFTsResponse(): QueryNFTsResponse {
|
|
591
|
-
return { nfts: [], pagination: undefined };
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
export const QueryNFTsResponse: MessageFns<QueryNFTsResponse> = {
|
|
595
|
-
encode(message: QueryNFTsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
596
|
-
for (const v of message.nfts) {
|
|
597
|
-
NFT.encode(v!, writer.uint32(10).fork()).join();
|
|
598
|
-
}
|
|
599
|
-
if (message.pagination !== undefined) {
|
|
600
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
601
|
-
}
|
|
602
|
-
return writer;
|
|
603
|
-
},
|
|
604
|
-
|
|
605
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTsResponse {
|
|
606
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
607
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
608
|
-
const message = createBaseQueryNFTsResponse();
|
|
609
|
-
while (reader.pos < end) {
|
|
610
|
-
const tag = reader.uint32();
|
|
611
|
-
switch (tag >>> 3) {
|
|
612
|
-
case 1: {
|
|
613
|
-
if (tag !== 10) {
|
|
614
|
-
break;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
message.nfts.push(NFT.decode(reader, reader.uint32()));
|
|
618
|
-
continue;
|
|
619
|
-
}
|
|
620
|
-
case 2: {
|
|
621
|
-
if (tag !== 18) {
|
|
622
|
-
break;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
626
|
-
continue;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
630
|
-
break;
|
|
631
|
-
}
|
|
632
|
-
reader.skip(tag & 7);
|
|
633
|
-
}
|
|
634
|
-
return message;
|
|
635
|
-
},
|
|
636
|
-
|
|
637
|
-
fromJSON(object: any): QueryNFTsResponse {
|
|
638
|
-
return {
|
|
639
|
-
nfts: globalThis.Array.isArray(object?.nfts) ? object.nfts.map((e: any) => NFT.fromJSON(e)) : [],
|
|
640
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
641
|
-
};
|
|
642
|
-
},
|
|
643
|
-
|
|
644
|
-
toJSON(message: QueryNFTsResponse): unknown {
|
|
645
|
-
const obj: any = {};
|
|
646
|
-
if (message.nfts?.length) {
|
|
647
|
-
obj.nfts = message.nfts.map((e) => NFT.toJSON(e));
|
|
648
|
-
}
|
|
649
|
-
if (message.pagination !== undefined) {
|
|
650
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
651
|
-
}
|
|
652
|
-
return obj;
|
|
653
|
-
},
|
|
654
|
-
|
|
655
|
-
create<I extends Exact<DeepPartial<QueryNFTsResponse>, I>>(base?: I): QueryNFTsResponse {
|
|
656
|
-
return QueryNFTsResponse.fromPartial(base ?? ({} as any));
|
|
657
|
-
},
|
|
658
|
-
fromPartial<I extends Exact<DeepPartial<QueryNFTsResponse>, I>>(object: I): QueryNFTsResponse {
|
|
659
|
-
const message = createBaseQueryNFTsResponse();
|
|
660
|
-
message.nfts = object.nfts?.map((e) => NFT.fromPartial(e)) || [];
|
|
661
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
662
|
-
? PageResponse.fromPartial(object.pagination)
|
|
663
|
-
: undefined;
|
|
664
|
-
return message;
|
|
665
|
-
},
|
|
666
|
-
};
|
|
667
|
-
|
|
668
|
-
function createBaseQueryNFTRequest(): QueryNFTRequest {
|
|
669
|
-
return { classId: "", id: "" };
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
export const QueryNFTRequest: MessageFns<QueryNFTRequest> = {
|
|
673
|
-
encode(message: QueryNFTRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
674
|
-
if (message.classId !== "") {
|
|
675
|
-
writer.uint32(10).string(message.classId);
|
|
676
|
-
}
|
|
677
|
-
if (message.id !== "") {
|
|
678
|
-
writer.uint32(18).string(message.id);
|
|
679
|
-
}
|
|
680
|
-
return writer;
|
|
681
|
-
},
|
|
682
|
-
|
|
683
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTRequest {
|
|
684
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
685
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
686
|
-
const message = createBaseQueryNFTRequest();
|
|
687
|
-
while (reader.pos < end) {
|
|
688
|
-
const tag = reader.uint32();
|
|
689
|
-
switch (tag >>> 3) {
|
|
690
|
-
case 1: {
|
|
691
|
-
if (tag !== 10) {
|
|
692
|
-
break;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
message.classId = reader.string();
|
|
696
|
-
continue;
|
|
697
|
-
}
|
|
698
|
-
case 2: {
|
|
699
|
-
if (tag !== 18) {
|
|
700
|
-
break;
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
message.id = reader.string();
|
|
704
|
-
continue;
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
708
|
-
break;
|
|
709
|
-
}
|
|
710
|
-
reader.skip(tag & 7);
|
|
711
|
-
}
|
|
712
|
-
return message;
|
|
713
|
-
},
|
|
714
|
-
|
|
715
|
-
fromJSON(object: any): QueryNFTRequest {
|
|
716
|
-
return {
|
|
717
|
-
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
718
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
719
|
-
};
|
|
720
|
-
},
|
|
721
|
-
|
|
722
|
-
toJSON(message: QueryNFTRequest): unknown {
|
|
723
|
-
const obj: any = {};
|
|
724
|
-
if (message.classId !== "") {
|
|
725
|
-
obj.classId = message.classId;
|
|
726
|
-
}
|
|
727
|
-
if (message.id !== "") {
|
|
728
|
-
obj.id = message.id;
|
|
729
|
-
}
|
|
730
|
-
return obj;
|
|
731
|
-
},
|
|
732
|
-
|
|
733
|
-
create<I extends Exact<DeepPartial<QueryNFTRequest>, I>>(base?: I): QueryNFTRequest {
|
|
734
|
-
return QueryNFTRequest.fromPartial(base ?? ({} as any));
|
|
735
|
-
},
|
|
736
|
-
fromPartial<I extends Exact<DeepPartial<QueryNFTRequest>, I>>(object: I): QueryNFTRequest {
|
|
737
|
-
const message = createBaseQueryNFTRequest();
|
|
738
|
-
message.classId = object.classId ?? "";
|
|
739
|
-
message.id = object.id ?? "";
|
|
740
|
-
return message;
|
|
741
|
-
},
|
|
742
|
-
};
|
|
743
|
-
|
|
744
|
-
function createBaseQueryNFTResponse(): QueryNFTResponse {
|
|
745
|
-
return { nft: undefined };
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
export const QueryNFTResponse: MessageFns<QueryNFTResponse> = {
|
|
749
|
-
encode(message: QueryNFTResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
750
|
-
if (message.nft !== undefined) {
|
|
751
|
-
NFT.encode(message.nft, writer.uint32(10).fork()).join();
|
|
752
|
-
}
|
|
753
|
-
return writer;
|
|
754
|
-
},
|
|
755
|
-
|
|
756
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryNFTResponse {
|
|
757
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
758
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
759
|
-
const message = createBaseQueryNFTResponse();
|
|
760
|
-
while (reader.pos < end) {
|
|
761
|
-
const tag = reader.uint32();
|
|
762
|
-
switch (tag >>> 3) {
|
|
763
|
-
case 1: {
|
|
764
|
-
if (tag !== 10) {
|
|
765
|
-
break;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
message.nft = NFT.decode(reader, reader.uint32());
|
|
769
|
-
continue;
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
773
|
-
break;
|
|
774
|
-
}
|
|
775
|
-
reader.skip(tag & 7);
|
|
776
|
-
}
|
|
777
|
-
return message;
|
|
778
|
-
},
|
|
779
|
-
|
|
780
|
-
fromJSON(object: any): QueryNFTResponse {
|
|
781
|
-
return { nft: isSet(object.nft) ? NFT.fromJSON(object.nft) : undefined };
|
|
782
|
-
},
|
|
783
|
-
|
|
784
|
-
toJSON(message: QueryNFTResponse): unknown {
|
|
785
|
-
const obj: any = {};
|
|
786
|
-
if (message.nft !== undefined) {
|
|
787
|
-
obj.nft = NFT.toJSON(message.nft);
|
|
788
|
-
}
|
|
789
|
-
return obj;
|
|
790
|
-
},
|
|
791
|
-
|
|
792
|
-
create<I extends Exact<DeepPartial<QueryNFTResponse>, I>>(base?: I): QueryNFTResponse {
|
|
793
|
-
return QueryNFTResponse.fromPartial(base ?? ({} as any));
|
|
794
|
-
},
|
|
795
|
-
fromPartial<I extends Exact<DeepPartial<QueryNFTResponse>, I>>(object: I): QueryNFTResponse {
|
|
796
|
-
const message = createBaseQueryNFTResponse();
|
|
797
|
-
message.nft = (object.nft !== undefined && object.nft !== null) ? NFT.fromPartial(object.nft) : undefined;
|
|
798
|
-
return message;
|
|
799
|
-
},
|
|
800
|
-
};
|
|
801
|
-
|
|
802
|
-
function createBaseQueryClassRequest(): QueryClassRequest {
|
|
803
|
-
return { classId: "" };
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
export const QueryClassRequest: MessageFns<QueryClassRequest> = {
|
|
807
|
-
encode(message: QueryClassRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
808
|
-
if (message.classId !== "") {
|
|
809
|
-
writer.uint32(10).string(message.classId);
|
|
810
|
-
}
|
|
811
|
-
return writer;
|
|
812
|
-
},
|
|
813
|
-
|
|
814
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClassRequest {
|
|
815
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
816
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
817
|
-
const message = createBaseQueryClassRequest();
|
|
818
|
-
while (reader.pos < end) {
|
|
819
|
-
const tag = reader.uint32();
|
|
820
|
-
switch (tag >>> 3) {
|
|
821
|
-
case 1: {
|
|
822
|
-
if (tag !== 10) {
|
|
823
|
-
break;
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
message.classId = reader.string();
|
|
827
|
-
continue;
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
831
|
-
break;
|
|
832
|
-
}
|
|
833
|
-
reader.skip(tag & 7);
|
|
834
|
-
}
|
|
835
|
-
return message;
|
|
836
|
-
},
|
|
837
|
-
|
|
838
|
-
fromJSON(object: any): QueryClassRequest {
|
|
839
|
-
return { classId: isSet(object.classId) ? globalThis.String(object.classId) : "" };
|
|
840
|
-
},
|
|
841
|
-
|
|
842
|
-
toJSON(message: QueryClassRequest): unknown {
|
|
843
|
-
const obj: any = {};
|
|
844
|
-
if (message.classId !== "") {
|
|
845
|
-
obj.classId = message.classId;
|
|
846
|
-
}
|
|
847
|
-
return obj;
|
|
848
|
-
},
|
|
849
|
-
|
|
850
|
-
create<I extends Exact<DeepPartial<QueryClassRequest>, I>>(base?: I): QueryClassRequest {
|
|
851
|
-
return QueryClassRequest.fromPartial(base ?? ({} as any));
|
|
852
|
-
},
|
|
853
|
-
fromPartial<I extends Exact<DeepPartial<QueryClassRequest>, I>>(object: I): QueryClassRequest {
|
|
854
|
-
const message = createBaseQueryClassRequest();
|
|
855
|
-
message.classId = object.classId ?? "";
|
|
856
|
-
return message;
|
|
857
|
-
},
|
|
858
|
-
};
|
|
859
|
-
|
|
860
|
-
function createBaseQueryClassResponse(): QueryClassResponse {
|
|
861
|
-
return { class: undefined };
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
export const QueryClassResponse: MessageFns<QueryClassResponse> = {
|
|
865
|
-
encode(message: QueryClassResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
866
|
-
if (message.class !== undefined) {
|
|
867
|
-
Class.encode(message.class, writer.uint32(10).fork()).join();
|
|
868
|
-
}
|
|
869
|
-
return writer;
|
|
870
|
-
},
|
|
871
|
-
|
|
872
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClassResponse {
|
|
873
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
874
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
875
|
-
const message = createBaseQueryClassResponse();
|
|
876
|
-
while (reader.pos < end) {
|
|
877
|
-
const tag = reader.uint32();
|
|
878
|
-
switch (tag >>> 3) {
|
|
879
|
-
case 1: {
|
|
880
|
-
if (tag !== 10) {
|
|
881
|
-
break;
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
message.class = Class.decode(reader, reader.uint32());
|
|
885
|
-
continue;
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
889
|
-
break;
|
|
890
|
-
}
|
|
891
|
-
reader.skip(tag & 7);
|
|
892
|
-
}
|
|
893
|
-
return message;
|
|
894
|
-
},
|
|
895
|
-
|
|
896
|
-
fromJSON(object: any): QueryClassResponse {
|
|
897
|
-
return { class: isSet(object.class) ? Class.fromJSON(object.class) : undefined };
|
|
898
|
-
},
|
|
899
|
-
|
|
900
|
-
toJSON(message: QueryClassResponse): unknown {
|
|
901
|
-
const obj: any = {};
|
|
902
|
-
if (message.class !== undefined) {
|
|
903
|
-
obj.class = Class.toJSON(message.class);
|
|
904
|
-
}
|
|
905
|
-
return obj;
|
|
906
|
-
},
|
|
907
|
-
|
|
908
|
-
create<I extends Exact<DeepPartial<QueryClassResponse>, I>>(base?: I): QueryClassResponse {
|
|
909
|
-
return QueryClassResponse.fromPartial(base ?? ({} as any));
|
|
910
|
-
},
|
|
911
|
-
fromPartial<I extends Exact<DeepPartial<QueryClassResponse>, I>>(object: I): QueryClassResponse {
|
|
912
|
-
const message = createBaseQueryClassResponse();
|
|
913
|
-
message.class = (object.class !== undefined && object.class !== null) ? Class.fromPartial(object.class) : undefined;
|
|
914
|
-
return message;
|
|
915
|
-
},
|
|
916
|
-
};
|
|
917
|
-
|
|
918
|
-
function createBaseQueryClassesRequest(): QueryClassesRequest {
|
|
919
|
-
return { pagination: undefined };
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
export const QueryClassesRequest: MessageFns<QueryClassesRequest> = {
|
|
923
|
-
encode(message: QueryClassesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
924
|
-
if (message.pagination !== undefined) {
|
|
925
|
-
PageRequest.encode(message.pagination, writer.uint32(10).fork()).join();
|
|
926
|
-
}
|
|
927
|
-
return writer;
|
|
928
|
-
},
|
|
929
|
-
|
|
930
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesRequest {
|
|
931
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
932
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
933
|
-
const message = createBaseQueryClassesRequest();
|
|
934
|
-
while (reader.pos < end) {
|
|
935
|
-
const tag = reader.uint32();
|
|
936
|
-
switch (tag >>> 3) {
|
|
937
|
-
case 1: {
|
|
938
|
-
if (tag !== 10) {
|
|
939
|
-
break;
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
943
|
-
continue;
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
947
|
-
break;
|
|
948
|
-
}
|
|
949
|
-
reader.skip(tag & 7);
|
|
950
|
-
}
|
|
951
|
-
return message;
|
|
952
|
-
},
|
|
953
|
-
|
|
954
|
-
fromJSON(object: any): QueryClassesRequest {
|
|
955
|
-
return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined };
|
|
956
|
-
},
|
|
957
|
-
|
|
958
|
-
toJSON(message: QueryClassesRequest): unknown {
|
|
959
|
-
const obj: any = {};
|
|
960
|
-
if (message.pagination !== undefined) {
|
|
961
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
962
|
-
}
|
|
963
|
-
return obj;
|
|
964
|
-
},
|
|
965
|
-
|
|
966
|
-
create<I extends Exact<DeepPartial<QueryClassesRequest>, I>>(base?: I): QueryClassesRequest {
|
|
967
|
-
return QueryClassesRequest.fromPartial(base ?? ({} as any));
|
|
968
|
-
},
|
|
969
|
-
fromPartial<I extends Exact<DeepPartial<QueryClassesRequest>, I>>(object: I): QueryClassesRequest {
|
|
970
|
-
const message = createBaseQueryClassesRequest();
|
|
971
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
972
|
-
? PageRequest.fromPartial(object.pagination)
|
|
973
|
-
: undefined;
|
|
974
|
-
return message;
|
|
975
|
-
},
|
|
976
|
-
};
|
|
977
|
-
|
|
978
|
-
function createBaseQueryClassesResponse(): QueryClassesResponse {
|
|
979
|
-
return { classes: [], pagination: undefined };
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
export const QueryClassesResponse: MessageFns<QueryClassesResponse> = {
|
|
983
|
-
encode(message: QueryClassesResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
984
|
-
for (const v of message.classes) {
|
|
985
|
-
Class.encode(v!, writer.uint32(10).fork()).join();
|
|
986
|
-
}
|
|
987
|
-
if (message.pagination !== undefined) {
|
|
988
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
989
|
-
}
|
|
990
|
-
return writer;
|
|
991
|
-
},
|
|
992
|
-
|
|
993
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClassesResponse {
|
|
994
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
995
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
996
|
-
const message = createBaseQueryClassesResponse();
|
|
997
|
-
while (reader.pos < end) {
|
|
998
|
-
const tag = reader.uint32();
|
|
999
|
-
switch (tag >>> 3) {
|
|
1000
|
-
case 1: {
|
|
1001
|
-
if (tag !== 10) {
|
|
1002
|
-
break;
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
message.classes.push(Class.decode(reader, reader.uint32()));
|
|
1006
|
-
continue;
|
|
1007
|
-
}
|
|
1008
|
-
case 2: {
|
|
1009
|
-
if (tag !== 18) {
|
|
1010
|
-
break;
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1014
|
-
continue;
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1018
|
-
break;
|
|
1019
|
-
}
|
|
1020
|
-
reader.skip(tag & 7);
|
|
1021
|
-
}
|
|
1022
|
-
return message;
|
|
1023
|
-
},
|
|
1024
|
-
|
|
1025
|
-
fromJSON(object: any): QueryClassesResponse {
|
|
1026
|
-
return {
|
|
1027
|
-
classes: globalThis.Array.isArray(object?.classes) ? object.classes.map((e: any) => Class.fromJSON(e)) : [],
|
|
1028
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1029
|
-
};
|
|
1030
|
-
},
|
|
1031
|
-
|
|
1032
|
-
toJSON(message: QueryClassesResponse): unknown {
|
|
1033
|
-
const obj: any = {};
|
|
1034
|
-
if (message.classes?.length) {
|
|
1035
|
-
obj.classes = message.classes.map((e) => Class.toJSON(e));
|
|
1036
|
-
}
|
|
1037
|
-
if (message.pagination !== undefined) {
|
|
1038
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
1039
|
-
}
|
|
1040
|
-
return obj;
|
|
1041
|
-
},
|
|
1042
|
-
|
|
1043
|
-
create<I extends Exact<DeepPartial<QueryClassesResponse>, I>>(base?: I): QueryClassesResponse {
|
|
1044
|
-
return QueryClassesResponse.fromPartial(base ?? ({} as any));
|
|
1045
|
-
},
|
|
1046
|
-
fromPartial<I extends Exact<DeepPartial<QueryClassesResponse>, I>>(object: I): QueryClassesResponse {
|
|
1047
|
-
const message = createBaseQueryClassesResponse();
|
|
1048
|
-
message.classes = object.classes?.map((e) => Class.fromPartial(e)) || [];
|
|
1049
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1050
|
-
? PageResponse.fromPartial(object.pagination)
|
|
1051
|
-
: undefined;
|
|
1052
|
-
return message;
|
|
1053
|
-
},
|
|
1054
|
-
};
|
|
1055
|
-
|
|
1056
|
-
/** Query defines the gRPC querier service. */
|
|
1057
|
-
export interface Query {
|
|
1058
|
-
/** Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 */
|
|
1059
|
-
Balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
|
|
1060
|
-
/** Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 */
|
|
1061
|
-
Owner(request: QueryOwnerRequest): Promise<QueryOwnerResponse>;
|
|
1062
|
-
/** Supply queries the number of NFTs from the given class, same as totalSupply of ERC721. */
|
|
1063
|
-
Supply(request: QuerySupplyRequest): Promise<QuerySupplyResponse>;
|
|
1064
|
-
/**
|
|
1065
|
-
* NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in
|
|
1066
|
-
* ERC721Enumerable
|
|
1067
|
-
*/
|
|
1068
|
-
NFTs(request: QueryNFTsRequest): Promise<QueryNFTsResponse>;
|
|
1069
|
-
/** NFT queries an NFT based on its class and id. */
|
|
1070
|
-
NFT(request: QueryNFTRequest): Promise<QueryNFTResponse>;
|
|
1071
|
-
/** Class queries an NFT class based on its id */
|
|
1072
|
-
Class(request: QueryClassRequest): Promise<QueryClassResponse>;
|
|
1073
|
-
/** Classes queries all NFT classes */
|
|
1074
|
-
Classes(request: QueryClassesRequest): Promise<QueryClassesResponse>;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
export const QueryServiceName = "cosmos.nft.v1beta1.Query";
|
|
1078
|
-
export class QueryClientImpl implements Query {
|
|
1079
|
-
private readonly rpc: Rpc;
|
|
1080
|
-
private readonly service: string;
|
|
1081
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
1082
|
-
this.service = opts?.service || QueryServiceName;
|
|
1083
|
-
this.rpc = rpc;
|
|
1084
|
-
this.Balance = this.Balance.bind(this);
|
|
1085
|
-
this.Owner = this.Owner.bind(this);
|
|
1086
|
-
this.Supply = this.Supply.bind(this);
|
|
1087
|
-
this.NFTs = this.NFTs.bind(this);
|
|
1088
|
-
this.NFT = this.NFT.bind(this);
|
|
1089
|
-
this.Class = this.Class.bind(this);
|
|
1090
|
-
this.Classes = this.Classes.bind(this);
|
|
1091
|
-
}
|
|
1092
|
-
Balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse> {
|
|
1093
|
-
const data = QueryBalanceRequest.encode(request).finish();
|
|
1094
|
-
const promise = this.rpc.request(this.service, "Balance", data);
|
|
1095
|
-
return promise.then((data) => QueryBalanceResponse.decode(new BinaryReader(data)));
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
Owner(request: QueryOwnerRequest): Promise<QueryOwnerResponse> {
|
|
1099
|
-
const data = QueryOwnerRequest.encode(request).finish();
|
|
1100
|
-
const promise = this.rpc.request(this.service, "Owner", data);
|
|
1101
|
-
return promise.then((data) => QueryOwnerResponse.decode(new BinaryReader(data)));
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
Supply(request: QuerySupplyRequest): Promise<QuerySupplyResponse> {
|
|
1105
|
-
const data = QuerySupplyRequest.encode(request).finish();
|
|
1106
|
-
const promise = this.rpc.request(this.service, "Supply", data);
|
|
1107
|
-
return promise.then((data) => QuerySupplyResponse.decode(new BinaryReader(data)));
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
NFTs(request: QueryNFTsRequest): Promise<QueryNFTsResponse> {
|
|
1111
|
-
const data = QueryNFTsRequest.encode(request).finish();
|
|
1112
|
-
const promise = this.rpc.request(this.service, "NFTs", data);
|
|
1113
|
-
return promise.then((data) => QueryNFTsResponse.decode(new BinaryReader(data)));
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
NFT(request: QueryNFTRequest): Promise<QueryNFTResponse> {
|
|
1117
|
-
const data = QueryNFTRequest.encode(request).finish();
|
|
1118
|
-
const promise = this.rpc.request(this.service, "NFT", data);
|
|
1119
|
-
return promise.then((data) => QueryNFTResponse.decode(new BinaryReader(data)));
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
Class(request: QueryClassRequest): Promise<QueryClassResponse> {
|
|
1123
|
-
const data = QueryClassRequest.encode(request).finish();
|
|
1124
|
-
const promise = this.rpc.request(this.service, "Class", data);
|
|
1125
|
-
return promise.then((data) => QueryClassResponse.decode(new BinaryReader(data)));
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
Classes(request: QueryClassesRequest): Promise<QueryClassesResponse> {
|
|
1129
|
-
const data = QueryClassesRequest.encode(request).finish();
|
|
1130
|
-
const promise = this.rpc.request(this.service, "Classes", data);
|
|
1131
|
-
return promise.then((data) => QueryClassesResponse.decode(new BinaryReader(data)));
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
interface Rpc {
|
|
1136
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1140
|
-
|
|
1141
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
1142
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1143
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1144
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1145
|
-
: Partial<T>;
|
|
1146
|
-
|
|
1147
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1148
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1149
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1150
|
-
|
|
1151
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
1152
|
-
const num = globalThis.Number(int64.toString());
|
|
1153
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1154
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1155
|
-
}
|
|
1156
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1157
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1158
|
-
}
|
|
1159
|
-
return num;
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
function isSet(value: any): boolean {
|
|
1163
|
-
return value !== null && value !== undefined;
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
export interface MessageFns<T> {
|
|
1167
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1168
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1169
|
-
fromJSON(object: any): T;
|
|
1170
|
-
toJSON(message: T): unknown;
|
|
1171
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1172
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1173
|
-
}
|