decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.32
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 +23 -23
- package/package.json +5 -2
- 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,336 +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/base/query/v1beta1/pagination.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "cosmos.base.query.v1beta1";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* PageRequest is to be embedded in gRPC request messages for efficient
|
|
14
|
-
* pagination. Ex:
|
|
15
|
-
*
|
|
16
|
-
* message SomeRequest {
|
|
17
|
-
* Foo some_parameter = 1;
|
|
18
|
-
* PageRequest pagination = 2;
|
|
19
|
-
* }
|
|
20
|
-
*/
|
|
21
|
-
export interface PageRequest {
|
|
22
|
-
/**
|
|
23
|
-
* key is a value returned in PageResponse.next_key to begin
|
|
24
|
-
* querying the next page most efficiently. Only one of offset or key
|
|
25
|
-
* should be set.
|
|
26
|
-
*/
|
|
27
|
-
key: Uint8Array;
|
|
28
|
-
/**
|
|
29
|
-
* offset is a numeric offset that can be used when key is unavailable.
|
|
30
|
-
* It is less efficient than using key. Only one of offset or key should
|
|
31
|
-
* be set.
|
|
32
|
-
*/
|
|
33
|
-
offset: number;
|
|
34
|
-
/**
|
|
35
|
-
* limit is the total number of results to be returned in the result page.
|
|
36
|
-
* If left empty it will default to a value to be set by each app.
|
|
37
|
-
*/
|
|
38
|
-
limit: number;
|
|
39
|
-
/**
|
|
40
|
-
* count_total is set to true to indicate that the result set should include
|
|
41
|
-
* a count of the total number of items available for pagination in UIs.
|
|
42
|
-
* count_total is only respected when offset is used. It is ignored when key
|
|
43
|
-
* is set.
|
|
44
|
-
*/
|
|
45
|
-
countTotal: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* reverse is set to true if results are to be returned in the descending order.
|
|
48
|
-
*
|
|
49
|
-
* Since: cosmos-sdk 0.43
|
|
50
|
-
*/
|
|
51
|
-
reverse: boolean;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* PageResponse is to be embedded in gRPC response messages where the
|
|
56
|
-
* corresponding request message has used PageRequest.
|
|
57
|
-
*
|
|
58
|
-
* message SomeResponse {
|
|
59
|
-
* repeated Bar results = 1;
|
|
60
|
-
* PageResponse page = 2;
|
|
61
|
-
* }
|
|
62
|
-
*/
|
|
63
|
-
export interface PageResponse {
|
|
64
|
-
/**
|
|
65
|
-
* next_key is the key to be passed to PageRequest.key to
|
|
66
|
-
* query the next page most efficiently. It will be empty if
|
|
67
|
-
* there are no more results.
|
|
68
|
-
*/
|
|
69
|
-
nextKey: Uint8Array;
|
|
70
|
-
/**
|
|
71
|
-
* total is total number of results available if PageRequest.count_total
|
|
72
|
-
* was set, its value is undefined otherwise
|
|
73
|
-
*/
|
|
74
|
-
total: number;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function createBasePageRequest(): PageRequest {
|
|
78
|
-
return { key: new Uint8Array(0), offset: 0, limit: 0, countTotal: false, reverse: false };
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export const PageRequest: MessageFns<PageRequest> = {
|
|
82
|
-
encode(message: PageRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
83
|
-
if (message.key.length !== 0) {
|
|
84
|
-
writer.uint32(10).bytes(message.key);
|
|
85
|
-
}
|
|
86
|
-
if (message.offset !== 0) {
|
|
87
|
-
writer.uint32(16).uint64(message.offset);
|
|
88
|
-
}
|
|
89
|
-
if (message.limit !== 0) {
|
|
90
|
-
writer.uint32(24).uint64(message.limit);
|
|
91
|
-
}
|
|
92
|
-
if (message.countTotal !== false) {
|
|
93
|
-
writer.uint32(32).bool(message.countTotal);
|
|
94
|
-
}
|
|
95
|
-
if (message.reverse !== false) {
|
|
96
|
-
writer.uint32(40).bool(message.reverse);
|
|
97
|
-
}
|
|
98
|
-
return writer;
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
decode(input: BinaryReader | Uint8Array, length?: number): PageRequest {
|
|
102
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
103
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
104
|
-
const message = createBasePageRequest();
|
|
105
|
-
while (reader.pos < end) {
|
|
106
|
-
const tag = reader.uint32();
|
|
107
|
-
switch (tag >>> 3) {
|
|
108
|
-
case 1: {
|
|
109
|
-
if (tag !== 10) {
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
message.key = reader.bytes();
|
|
114
|
-
continue;
|
|
115
|
-
}
|
|
116
|
-
case 2: {
|
|
117
|
-
if (tag !== 16) {
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
message.offset = longToNumber(reader.uint64());
|
|
122
|
-
continue;
|
|
123
|
-
}
|
|
124
|
-
case 3: {
|
|
125
|
-
if (tag !== 24) {
|
|
126
|
-
break;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
message.limit = longToNumber(reader.uint64());
|
|
130
|
-
continue;
|
|
131
|
-
}
|
|
132
|
-
case 4: {
|
|
133
|
-
if (tag !== 32) {
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
message.countTotal = reader.bool();
|
|
138
|
-
continue;
|
|
139
|
-
}
|
|
140
|
-
case 5: {
|
|
141
|
-
if (tag !== 40) {
|
|
142
|
-
break;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
message.reverse = reader.bool();
|
|
146
|
-
continue;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
reader.skip(tag & 7);
|
|
153
|
-
}
|
|
154
|
-
return message;
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
fromJSON(object: any): PageRequest {
|
|
158
|
-
return {
|
|
159
|
-
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0),
|
|
160
|
-
offset: isSet(object.offset) ? globalThis.Number(object.offset) : 0,
|
|
161
|
-
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
162
|
-
countTotal: isSet(object.countTotal) ? globalThis.Boolean(object.countTotal) : false,
|
|
163
|
-
reverse: isSet(object.reverse) ? globalThis.Boolean(object.reverse) : false,
|
|
164
|
-
};
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
toJSON(message: PageRequest): unknown {
|
|
168
|
-
const obj: any = {};
|
|
169
|
-
if (message.key.length !== 0) {
|
|
170
|
-
obj.key = base64FromBytes(message.key);
|
|
171
|
-
}
|
|
172
|
-
if (message.offset !== 0) {
|
|
173
|
-
obj.offset = Math.round(message.offset);
|
|
174
|
-
}
|
|
175
|
-
if (message.limit !== 0) {
|
|
176
|
-
obj.limit = Math.round(message.limit);
|
|
177
|
-
}
|
|
178
|
-
if (message.countTotal !== false) {
|
|
179
|
-
obj.countTotal = message.countTotal;
|
|
180
|
-
}
|
|
181
|
-
if (message.reverse !== false) {
|
|
182
|
-
obj.reverse = message.reverse;
|
|
183
|
-
}
|
|
184
|
-
return obj;
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
create<I extends Exact<DeepPartial<PageRequest>, I>>(base?: I): PageRequest {
|
|
188
|
-
return PageRequest.fromPartial(base ?? ({} as any));
|
|
189
|
-
},
|
|
190
|
-
fromPartial<I extends Exact<DeepPartial<PageRequest>, I>>(object: I): PageRequest {
|
|
191
|
-
const message = createBasePageRequest();
|
|
192
|
-
message.key = object.key ?? new Uint8Array(0);
|
|
193
|
-
message.offset = object.offset ?? 0;
|
|
194
|
-
message.limit = object.limit ?? 0;
|
|
195
|
-
message.countTotal = object.countTotal ?? false;
|
|
196
|
-
message.reverse = object.reverse ?? false;
|
|
197
|
-
return message;
|
|
198
|
-
},
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
function createBasePageResponse(): PageResponse {
|
|
202
|
-
return { nextKey: new Uint8Array(0), total: 0 };
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export const PageResponse: MessageFns<PageResponse> = {
|
|
206
|
-
encode(message: PageResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
207
|
-
if (message.nextKey.length !== 0) {
|
|
208
|
-
writer.uint32(10).bytes(message.nextKey);
|
|
209
|
-
}
|
|
210
|
-
if (message.total !== 0) {
|
|
211
|
-
writer.uint32(16).uint64(message.total);
|
|
212
|
-
}
|
|
213
|
-
return writer;
|
|
214
|
-
},
|
|
215
|
-
|
|
216
|
-
decode(input: BinaryReader | Uint8Array, length?: number): PageResponse {
|
|
217
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
218
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
219
|
-
const message = createBasePageResponse();
|
|
220
|
-
while (reader.pos < end) {
|
|
221
|
-
const tag = reader.uint32();
|
|
222
|
-
switch (tag >>> 3) {
|
|
223
|
-
case 1: {
|
|
224
|
-
if (tag !== 10) {
|
|
225
|
-
break;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
message.nextKey = reader.bytes();
|
|
229
|
-
continue;
|
|
230
|
-
}
|
|
231
|
-
case 2: {
|
|
232
|
-
if (tag !== 16) {
|
|
233
|
-
break;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
message.total = longToNumber(reader.uint64());
|
|
237
|
-
continue;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
241
|
-
break;
|
|
242
|
-
}
|
|
243
|
-
reader.skip(tag & 7);
|
|
244
|
-
}
|
|
245
|
-
return message;
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
fromJSON(object: any): PageResponse {
|
|
249
|
-
return {
|
|
250
|
-
nextKey: isSet(object.nextKey) ? bytesFromBase64(object.nextKey) : new Uint8Array(0),
|
|
251
|
-
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
252
|
-
};
|
|
253
|
-
},
|
|
254
|
-
|
|
255
|
-
toJSON(message: PageResponse): unknown {
|
|
256
|
-
const obj: any = {};
|
|
257
|
-
if (message.nextKey.length !== 0) {
|
|
258
|
-
obj.nextKey = base64FromBytes(message.nextKey);
|
|
259
|
-
}
|
|
260
|
-
if (message.total !== 0) {
|
|
261
|
-
obj.total = Math.round(message.total);
|
|
262
|
-
}
|
|
263
|
-
return obj;
|
|
264
|
-
},
|
|
265
|
-
|
|
266
|
-
create<I extends Exact<DeepPartial<PageResponse>, I>>(base?: I): PageResponse {
|
|
267
|
-
return PageResponse.fromPartial(base ?? ({} as any));
|
|
268
|
-
},
|
|
269
|
-
fromPartial<I extends Exact<DeepPartial<PageResponse>, I>>(object: I): PageResponse {
|
|
270
|
-
const message = createBasePageResponse();
|
|
271
|
-
message.nextKey = object.nextKey ?? new Uint8Array(0);
|
|
272
|
-
message.total = object.total ?? 0;
|
|
273
|
-
return message;
|
|
274
|
-
},
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
278
|
-
if ((globalThis as any).Buffer) {
|
|
279
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
280
|
-
} else {
|
|
281
|
-
const bin = globalThis.atob(b64);
|
|
282
|
-
const arr = new Uint8Array(bin.length);
|
|
283
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
284
|
-
arr[i] = bin.charCodeAt(i);
|
|
285
|
-
}
|
|
286
|
-
return arr;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
291
|
-
if ((globalThis as any).Buffer) {
|
|
292
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
293
|
-
} else {
|
|
294
|
-
const bin: string[] = [];
|
|
295
|
-
arr.forEach((byte) => {
|
|
296
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
297
|
-
});
|
|
298
|
-
return globalThis.btoa(bin.join(""));
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
303
|
-
|
|
304
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
305
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
306
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
307
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
308
|
-
: Partial<T>;
|
|
309
|
-
|
|
310
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
311
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
312
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
313
|
-
|
|
314
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
315
|
-
const num = globalThis.Number(int64.toString());
|
|
316
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
317
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
318
|
-
}
|
|
319
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
320
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
321
|
-
}
|
|
322
|
-
return num;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
function isSet(value: any): boolean {
|
|
326
|
-
return value !== null && value !== undefined;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export interface MessageFns<T> {
|
|
330
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
331
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
332
|
-
fromJSON(object: any): T;
|
|
333
|
-
toJSON(message: T): unknown;
|
|
334
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
335
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
336
|
-
}
|
|
@@ -1,328 +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/base/reflection/v1beta1/reflection.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "cosmos.base.reflection.v1beta1";
|
|
11
|
-
|
|
12
|
-
/** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */
|
|
13
|
-
export interface ListAllInterfacesRequest {
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */
|
|
17
|
-
export interface ListAllInterfacesResponse {
|
|
18
|
-
/** interface_names is an array of all the registered interfaces. */
|
|
19
|
-
interfaceNames: string[];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* ListImplementationsRequest is the request type of the ListImplementations
|
|
24
|
-
* RPC.
|
|
25
|
-
*/
|
|
26
|
-
export interface ListImplementationsRequest {
|
|
27
|
-
/** interface_name defines the interface to query the implementations for. */
|
|
28
|
-
interfaceName: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* ListImplementationsResponse is the response type of the ListImplementations
|
|
33
|
-
* RPC.
|
|
34
|
-
*/
|
|
35
|
-
export interface ListImplementationsResponse {
|
|
36
|
-
implementationMessageNames: string[];
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function createBaseListAllInterfacesRequest(): ListAllInterfacesRequest {
|
|
40
|
-
return {};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const ListAllInterfacesRequest: MessageFns<ListAllInterfacesRequest> = {
|
|
44
|
-
encode(_: ListAllInterfacesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
45
|
-
return writer;
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesRequest {
|
|
49
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
50
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
51
|
-
const message = createBaseListAllInterfacesRequest();
|
|
52
|
-
while (reader.pos < end) {
|
|
53
|
-
const tag = reader.uint32();
|
|
54
|
-
switch (tag >>> 3) {
|
|
55
|
-
}
|
|
56
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
reader.skip(tag & 7);
|
|
60
|
-
}
|
|
61
|
-
return message;
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
fromJSON(_: any): ListAllInterfacesRequest {
|
|
65
|
-
return {};
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
toJSON(_: ListAllInterfacesRequest): unknown {
|
|
69
|
-
const obj: any = {};
|
|
70
|
-
return obj;
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
create<I extends Exact<DeepPartial<ListAllInterfacesRequest>, I>>(base?: I): ListAllInterfacesRequest {
|
|
74
|
-
return ListAllInterfacesRequest.fromPartial(base ?? ({} as any));
|
|
75
|
-
},
|
|
76
|
-
fromPartial<I extends Exact<DeepPartial<ListAllInterfacesRequest>, I>>(_: I): ListAllInterfacesRequest {
|
|
77
|
-
const message = createBaseListAllInterfacesRequest();
|
|
78
|
-
return message;
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
function createBaseListAllInterfacesResponse(): ListAllInterfacesResponse {
|
|
83
|
-
return { interfaceNames: [] };
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export const ListAllInterfacesResponse: MessageFns<ListAllInterfacesResponse> = {
|
|
87
|
-
encode(message: ListAllInterfacesResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
88
|
-
for (const v of message.interfaceNames) {
|
|
89
|
-
writer.uint32(10).string(v!);
|
|
90
|
-
}
|
|
91
|
-
return writer;
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesResponse {
|
|
95
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
96
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
-
const message = createBaseListAllInterfacesResponse();
|
|
98
|
-
while (reader.pos < end) {
|
|
99
|
-
const tag = reader.uint32();
|
|
100
|
-
switch (tag >>> 3) {
|
|
101
|
-
case 1: {
|
|
102
|
-
if (tag !== 10) {
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
message.interfaceNames.push(reader.string());
|
|
107
|
-
continue;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
111
|
-
break;
|
|
112
|
-
}
|
|
113
|
-
reader.skip(tag & 7);
|
|
114
|
-
}
|
|
115
|
-
return message;
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
fromJSON(object: any): ListAllInterfacesResponse {
|
|
119
|
-
return {
|
|
120
|
-
interfaceNames: globalThis.Array.isArray(object?.interfaceNames)
|
|
121
|
-
? object.interfaceNames.map((e: any) => globalThis.String(e))
|
|
122
|
-
: [],
|
|
123
|
-
};
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
toJSON(message: ListAllInterfacesResponse): unknown {
|
|
127
|
-
const obj: any = {};
|
|
128
|
-
if (message.interfaceNames?.length) {
|
|
129
|
-
obj.interfaceNames = message.interfaceNames;
|
|
130
|
-
}
|
|
131
|
-
return obj;
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
create<I extends Exact<DeepPartial<ListAllInterfacesResponse>, I>>(base?: I): ListAllInterfacesResponse {
|
|
135
|
-
return ListAllInterfacesResponse.fromPartial(base ?? ({} as any));
|
|
136
|
-
},
|
|
137
|
-
fromPartial<I extends Exact<DeepPartial<ListAllInterfacesResponse>, I>>(object: I): ListAllInterfacesResponse {
|
|
138
|
-
const message = createBaseListAllInterfacesResponse();
|
|
139
|
-
message.interfaceNames = object.interfaceNames?.map((e) => e) || [];
|
|
140
|
-
return message;
|
|
141
|
-
},
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
function createBaseListImplementationsRequest(): ListImplementationsRequest {
|
|
145
|
-
return { interfaceName: "" };
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export const ListImplementationsRequest: MessageFns<ListImplementationsRequest> = {
|
|
149
|
-
encode(message: ListImplementationsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
150
|
-
if (message.interfaceName !== "") {
|
|
151
|
-
writer.uint32(10).string(message.interfaceName);
|
|
152
|
-
}
|
|
153
|
-
return writer;
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsRequest {
|
|
157
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
158
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
159
|
-
const message = createBaseListImplementationsRequest();
|
|
160
|
-
while (reader.pos < end) {
|
|
161
|
-
const tag = reader.uint32();
|
|
162
|
-
switch (tag >>> 3) {
|
|
163
|
-
case 1: {
|
|
164
|
-
if (tag !== 10) {
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
message.interfaceName = reader.string();
|
|
169
|
-
continue;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
reader.skip(tag & 7);
|
|
176
|
-
}
|
|
177
|
-
return message;
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
fromJSON(object: any): ListImplementationsRequest {
|
|
181
|
-
return { interfaceName: isSet(object.interfaceName) ? globalThis.String(object.interfaceName) : "" };
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
toJSON(message: ListImplementationsRequest): unknown {
|
|
185
|
-
const obj: any = {};
|
|
186
|
-
if (message.interfaceName !== "") {
|
|
187
|
-
obj.interfaceName = message.interfaceName;
|
|
188
|
-
}
|
|
189
|
-
return obj;
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
create<I extends Exact<DeepPartial<ListImplementationsRequest>, I>>(base?: I): ListImplementationsRequest {
|
|
193
|
-
return ListImplementationsRequest.fromPartial(base ?? ({} as any));
|
|
194
|
-
},
|
|
195
|
-
fromPartial<I extends Exact<DeepPartial<ListImplementationsRequest>, I>>(object: I): ListImplementationsRequest {
|
|
196
|
-
const message = createBaseListImplementationsRequest();
|
|
197
|
-
message.interfaceName = object.interfaceName ?? "";
|
|
198
|
-
return message;
|
|
199
|
-
},
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
function createBaseListImplementationsResponse(): ListImplementationsResponse {
|
|
203
|
-
return { implementationMessageNames: [] };
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export const ListImplementationsResponse: MessageFns<ListImplementationsResponse> = {
|
|
207
|
-
encode(message: ListImplementationsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
208
|
-
for (const v of message.implementationMessageNames) {
|
|
209
|
-
writer.uint32(10).string(v!);
|
|
210
|
-
}
|
|
211
|
-
return writer;
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsResponse {
|
|
215
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
216
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
217
|
-
const message = createBaseListImplementationsResponse();
|
|
218
|
-
while (reader.pos < end) {
|
|
219
|
-
const tag = reader.uint32();
|
|
220
|
-
switch (tag >>> 3) {
|
|
221
|
-
case 1: {
|
|
222
|
-
if (tag !== 10) {
|
|
223
|
-
break;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
message.implementationMessageNames.push(reader.string());
|
|
227
|
-
continue;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
231
|
-
break;
|
|
232
|
-
}
|
|
233
|
-
reader.skip(tag & 7);
|
|
234
|
-
}
|
|
235
|
-
return message;
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
fromJSON(object: any): ListImplementationsResponse {
|
|
239
|
-
return {
|
|
240
|
-
implementationMessageNames: globalThis.Array.isArray(object?.implementationMessageNames)
|
|
241
|
-
? object.implementationMessageNames.map((e: any) => globalThis.String(e))
|
|
242
|
-
: [],
|
|
243
|
-
};
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
toJSON(message: ListImplementationsResponse): unknown {
|
|
247
|
-
const obj: any = {};
|
|
248
|
-
if (message.implementationMessageNames?.length) {
|
|
249
|
-
obj.implementationMessageNames = message.implementationMessageNames;
|
|
250
|
-
}
|
|
251
|
-
return obj;
|
|
252
|
-
},
|
|
253
|
-
|
|
254
|
-
create<I extends Exact<DeepPartial<ListImplementationsResponse>, I>>(base?: I): ListImplementationsResponse {
|
|
255
|
-
return ListImplementationsResponse.fromPartial(base ?? ({} as any));
|
|
256
|
-
},
|
|
257
|
-
fromPartial<I extends Exact<DeepPartial<ListImplementationsResponse>, I>>(object: I): ListImplementationsResponse {
|
|
258
|
-
const message = createBaseListImplementationsResponse();
|
|
259
|
-
message.implementationMessageNames = object.implementationMessageNames?.map((e) => e) || [];
|
|
260
|
-
return message;
|
|
261
|
-
},
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
/** ReflectionService defines a service for interface reflection. */
|
|
265
|
-
export interface ReflectionService {
|
|
266
|
-
/**
|
|
267
|
-
* ListAllInterfaces lists all the interfaces registered in the interface
|
|
268
|
-
* registry.
|
|
269
|
-
*/
|
|
270
|
-
ListAllInterfaces(request: ListAllInterfacesRequest): Promise<ListAllInterfacesResponse>;
|
|
271
|
-
/**
|
|
272
|
-
* ListImplementations list all the concrete types that implement a given
|
|
273
|
-
* interface.
|
|
274
|
-
*/
|
|
275
|
-
ListImplementations(request: ListImplementationsRequest): Promise<ListImplementationsResponse>;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
export const ReflectionServiceServiceName = "cosmos.base.reflection.v1beta1.ReflectionService";
|
|
279
|
-
export class ReflectionServiceClientImpl implements ReflectionService {
|
|
280
|
-
private readonly rpc: Rpc;
|
|
281
|
-
private readonly service: string;
|
|
282
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
283
|
-
this.service = opts?.service || ReflectionServiceServiceName;
|
|
284
|
-
this.rpc = rpc;
|
|
285
|
-
this.ListAllInterfaces = this.ListAllInterfaces.bind(this);
|
|
286
|
-
this.ListImplementations = this.ListImplementations.bind(this);
|
|
287
|
-
}
|
|
288
|
-
ListAllInterfaces(request: ListAllInterfacesRequest): Promise<ListAllInterfacesResponse> {
|
|
289
|
-
const data = ListAllInterfacesRequest.encode(request).finish();
|
|
290
|
-
const promise = this.rpc.request(this.service, "ListAllInterfaces", data);
|
|
291
|
-
return promise.then((data) => ListAllInterfacesResponse.decode(new BinaryReader(data)));
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
ListImplementations(request: ListImplementationsRequest): Promise<ListImplementationsResponse> {
|
|
295
|
-
const data = ListImplementationsRequest.encode(request).finish();
|
|
296
|
-
const promise = this.rpc.request(this.service, "ListImplementations", data);
|
|
297
|
-
return promise.then((data) => ListImplementationsResponse.decode(new BinaryReader(data)));
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
interface Rpc {
|
|
302
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
306
|
-
|
|
307
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
308
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
309
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
310
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
311
|
-
: Partial<T>;
|
|
312
|
-
|
|
313
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
314
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
315
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
316
|
-
|
|
317
|
-
function isSet(value: any): boolean {
|
|
318
|
-
return value !== null && value !== undefined;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export interface MessageFns<T> {
|
|
322
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
323
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
324
|
-
fromJSON(object: any): T;
|
|
325
|
-
toJSON(message: T): unknown;
|
|
326
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
327
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
328
|
-
}
|