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,1898 +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: ibc/core/client/v1/query.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
|
|
10
|
-
import { Any } from "../../../../google/protobuf/any";
|
|
11
|
-
import { MerklePath } from "../../commitment/v1/commitment";
|
|
12
|
-
import { ConsensusStateWithHeight, Height, IdentifiedClientState, Params } from "./client";
|
|
13
|
-
|
|
14
|
-
export const protobufPackage = "ibc.core.client.v1";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* QueryClientStateRequest is the request type for the Query/ClientState RPC
|
|
18
|
-
* method
|
|
19
|
-
*/
|
|
20
|
-
export interface QueryClientStateRequest {
|
|
21
|
-
/** client state unique identifier */
|
|
22
|
-
clientId: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* QueryClientStateResponse is the response type for the Query/ClientState RPC
|
|
27
|
-
* method. Besides the client state, it includes a proof and the height from
|
|
28
|
-
* which the proof was retrieved.
|
|
29
|
-
*/
|
|
30
|
-
export interface QueryClientStateResponse {
|
|
31
|
-
/** client state associated with the request identifier */
|
|
32
|
-
clientState:
|
|
33
|
-
| Any
|
|
34
|
-
| undefined;
|
|
35
|
-
/** merkle proof of existence */
|
|
36
|
-
proof: Uint8Array;
|
|
37
|
-
/** height at which the proof was retrieved */
|
|
38
|
-
proofHeight: Height | undefined;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* QueryClientStatesRequest is the request type for the Query/ClientStates RPC
|
|
43
|
-
* method
|
|
44
|
-
*/
|
|
45
|
-
export interface QueryClientStatesRequest {
|
|
46
|
-
/** pagination request */
|
|
47
|
-
pagination: PageRequest | undefined;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* QueryClientStatesResponse is the response type for the Query/ClientStates RPC
|
|
52
|
-
* method.
|
|
53
|
-
*/
|
|
54
|
-
export interface QueryClientStatesResponse {
|
|
55
|
-
/** list of stored ClientStates of the chain. */
|
|
56
|
-
clientStates: IdentifiedClientState[];
|
|
57
|
-
/** pagination response */
|
|
58
|
-
pagination: PageResponse | undefined;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* QueryConsensusStateRequest is the request type for the Query/ConsensusState
|
|
63
|
-
* RPC method. Besides the consensus state, it includes a proof and the height
|
|
64
|
-
* from which the proof was retrieved.
|
|
65
|
-
*/
|
|
66
|
-
export interface QueryConsensusStateRequest {
|
|
67
|
-
/** client identifier */
|
|
68
|
-
clientId: string;
|
|
69
|
-
/** consensus state revision number */
|
|
70
|
-
revisionNumber: number;
|
|
71
|
-
/** consensus state revision height */
|
|
72
|
-
revisionHeight: number;
|
|
73
|
-
/**
|
|
74
|
-
* latest_height overrrides the height field and queries the latest stored
|
|
75
|
-
* ConsensusState
|
|
76
|
-
*/
|
|
77
|
-
latestHeight: boolean;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* QueryConsensusStateResponse is the response type for the Query/ConsensusState
|
|
82
|
-
* RPC method
|
|
83
|
-
*/
|
|
84
|
-
export interface QueryConsensusStateResponse {
|
|
85
|
-
/** consensus state associated with the client identifier at the given height */
|
|
86
|
-
consensusState:
|
|
87
|
-
| Any
|
|
88
|
-
| undefined;
|
|
89
|
-
/** merkle proof of existence */
|
|
90
|
-
proof: Uint8Array;
|
|
91
|
-
/** height at which the proof was retrieved */
|
|
92
|
-
proofHeight: Height | undefined;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* QueryConsensusStatesRequest is the request type for the Query/ConsensusStates
|
|
97
|
-
* RPC method.
|
|
98
|
-
*/
|
|
99
|
-
export interface QueryConsensusStatesRequest {
|
|
100
|
-
/** client identifier */
|
|
101
|
-
clientId: string;
|
|
102
|
-
/** pagination request */
|
|
103
|
-
pagination: PageRequest | undefined;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* QueryConsensusStatesResponse is the response type for the
|
|
108
|
-
* Query/ConsensusStates RPC method
|
|
109
|
-
*/
|
|
110
|
-
export interface QueryConsensusStatesResponse {
|
|
111
|
-
/** consensus states associated with the identifier */
|
|
112
|
-
consensusStates: ConsensusStateWithHeight[];
|
|
113
|
-
/** pagination response */
|
|
114
|
-
pagination: PageResponse | undefined;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights
|
|
119
|
-
* RPC method.
|
|
120
|
-
*/
|
|
121
|
-
export interface QueryConsensusStateHeightsRequest {
|
|
122
|
-
/** client identifier */
|
|
123
|
-
clientId: string;
|
|
124
|
-
/** pagination request */
|
|
125
|
-
pagination: PageRequest | undefined;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* QueryConsensusStateHeightsResponse is the response type for the
|
|
130
|
-
* Query/ConsensusStateHeights RPC method
|
|
131
|
-
*/
|
|
132
|
-
export interface QueryConsensusStateHeightsResponse {
|
|
133
|
-
/** consensus state heights */
|
|
134
|
-
consensusStateHeights: Height[];
|
|
135
|
-
/** pagination response */
|
|
136
|
-
pagination: PageResponse | undefined;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* QueryClientStatusRequest is the request type for the Query/ClientStatus RPC
|
|
141
|
-
* method
|
|
142
|
-
*/
|
|
143
|
-
export interface QueryClientStatusRequest {
|
|
144
|
-
/** client unique identifier */
|
|
145
|
-
clientId: string;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* QueryClientStatusResponse is the response type for the Query/ClientStatus RPC
|
|
150
|
-
* method. It returns the current status of the IBC client.
|
|
151
|
-
*/
|
|
152
|
-
export interface QueryClientStatusResponse {
|
|
153
|
-
status: string;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* QueryClientParamsRequest is the request type for the Query/ClientParams RPC
|
|
158
|
-
* method.
|
|
159
|
-
*/
|
|
160
|
-
export interface QueryClientParamsRequest {
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* QueryClientParamsResponse is the response type for the Query/ClientParams RPC
|
|
165
|
-
* method.
|
|
166
|
-
*/
|
|
167
|
-
export interface QueryClientParamsResponse {
|
|
168
|
-
/** params defines the parameters of the module. */
|
|
169
|
-
params: Params | undefined;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* QueryUpgradedClientStateRequest is the request type for the
|
|
174
|
-
* Query/UpgradedClientState RPC method
|
|
175
|
-
*/
|
|
176
|
-
export interface QueryUpgradedClientStateRequest {
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* QueryUpgradedClientStateResponse is the response type for the
|
|
181
|
-
* Query/UpgradedClientState RPC method.
|
|
182
|
-
*/
|
|
183
|
-
export interface QueryUpgradedClientStateResponse {
|
|
184
|
-
/** client state associated with the request identifier */
|
|
185
|
-
upgradedClientState: Any | undefined;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* QueryUpgradedConsensusStateRequest is the request type for the
|
|
190
|
-
* Query/UpgradedConsensusState RPC method
|
|
191
|
-
*/
|
|
192
|
-
export interface QueryUpgradedConsensusStateRequest {
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* QueryUpgradedConsensusStateResponse is the response type for the
|
|
197
|
-
* Query/UpgradedConsensusState RPC method.
|
|
198
|
-
*/
|
|
199
|
-
export interface QueryUpgradedConsensusStateResponse {
|
|
200
|
-
/** Consensus state associated with the request identifier */
|
|
201
|
-
upgradedConsensusState: Any | undefined;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/** QueryVerifyMembershipRequest is the request type for the Query/VerifyMembership RPC method */
|
|
205
|
-
export interface QueryVerifyMembershipRequest {
|
|
206
|
-
/** client unique identifier. */
|
|
207
|
-
clientId: string;
|
|
208
|
-
/** the proof to be verified by the client. */
|
|
209
|
-
proof: Uint8Array;
|
|
210
|
-
/** the height of the commitment root at which the proof is verified. */
|
|
211
|
-
proofHeight:
|
|
212
|
-
| Height
|
|
213
|
-
| undefined;
|
|
214
|
-
/** the commitment key path. */
|
|
215
|
-
merklePath:
|
|
216
|
-
| MerklePath
|
|
217
|
-
| undefined;
|
|
218
|
-
/** the value which is proven. */
|
|
219
|
-
value: Uint8Array;
|
|
220
|
-
/** optional time delay */
|
|
221
|
-
timeDelay: number;
|
|
222
|
-
/** optional block delay */
|
|
223
|
-
blockDelay: number;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/** QueryVerifyMembershipResponse is the response type for the Query/VerifyMembership RPC method */
|
|
227
|
-
export interface QueryVerifyMembershipResponse {
|
|
228
|
-
/** boolean indicating success or failure of proof verification. */
|
|
229
|
-
success: boolean;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
function createBaseQueryClientStateRequest(): QueryClientStateRequest {
|
|
233
|
-
return { clientId: "" };
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export const QueryClientStateRequest: MessageFns<QueryClientStateRequest> = {
|
|
237
|
-
encode(message: QueryClientStateRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
238
|
-
if (message.clientId !== "") {
|
|
239
|
-
writer.uint32(10).string(message.clientId);
|
|
240
|
-
}
|
|
241
|
-
return writer;
|
|
242
|
-
},
|
|
243
|
-
|
|
244
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateRequest {
|
|
245
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
246
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
247
|
-
const message = createBaseQueryClientStateRequest();
|
|
248
|
-
while (reader.pos < end) {
|
|
249
|
-
const tag = reader.uint32();
|
|
250
|
-
switch (tag >>> 3) {
|
|
251
|
-
case 1: {
|
|
252
|
-
if (tag !== 10) {
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
message.clientId = reader.string();
|
|
257
|
-
continue;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
reader.skip(tag & 7);
|
|
264
|
-
}
|
|
265
|
-
return message;
|
|
266
|
-
},
|
|
267
|
-
|
|
268
|
-
fromJSON(object: any): QueryClientStateRequest {
|
|
269
|
-
return { clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "" };
|
|
270
|
-
},
|
|
271
|
-
|
|
272
|
-
toJSON(message: QueryClientStateRequest): unknown {
|
|
273
|
-
const obj: any = {};
|
|
274
|
-
if (message.clientId !== "") {
|
|
275
|
-
obj.clientId = message.clientId;
|
|
276
|
-
}
|
|
277
|
-
return obj;
|
|
278
|
-
},
|
|
279
|
-
|
|
280
|
-
create<I extends Exact<DeepPartial<QueryClientStateRequest>, I>>(base?: I): QueryClientStateRequest {
|
|
281
|
-
return QueryClientStateRequest.fromPartial(base ?? ({} as any));
|
|
282
|
-
},
|
|
283
|
-
fromPartial<I extends Exact<DeepPartial<QueryClientStateRequest>, I>>(object: I): QueryClientStateRequest {
|
|
284
|
-
const message = createBaseQueryClientStateRequest();
|
|
285
|
-
message.clientId = object.clientId ?? "";
|
|
286
|
-
return message;
|
|
287
|
-
},
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
function createBaseQueryClientStateResponse(): QueryClientStateResponse {
|
|
291
|
-
return { clientState: undefined, proof: new Uint8Array(0), proofHeight: undefined };
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
export const QueryClientStateResponse: MessageFns<QueryClientStateResponse> = {
|
|
295
|
-
encode(message: QueryClientStateResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
296
|
-
if (message.clientState !== undefined) {
|
|
297
|
-
Any.encode(message.clientState, writer.uint32(10).fork()).join();
|
|
298
|
-
}
|
|
299
|
-
if (message.proof.length !== 0) {
|
|
300
|
-
writer.uint32(18).bytes(message.proof);
|
|
301
|
-
}
|
|
302
|
-
if (message.proofHeight !== undefined) {
|
|
303
|
-
Height.encode(message.proofHeight, writer.uint32(26).fork()).join();
|
|
304
|
-
}
|
|
305
|
-
return writer;
|
|
306
|
-
},
|
|
307
|
-
|
|
308
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStateResponse {
|
|
309
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
310
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
311
|
-
const message = createBaseQueryClientStateResponse();
|
|
312
|
-
while (reader.pos < end) {
|
|
313
|
-
const tag = reader.uint32();
|
|
314
|
-
switch (tag >>> 3) {
|
|
315
|
-
case 1: {
|
|
316
|
-
if (tag !== 10) {
|
|
317
|
-
break;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
message.clientState = Any.decode(reader, reader.uint32());
|
|
321
|
-
continue;
|
|
322
|
-
}
|
|
323
|
-
case 2: {
|
|
324
|
-
if (tag !== 18) {
|
|
325
|
-
break;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
message.proof = reader.bytes();
|
|
329
|
-
continue;
|
|
330
|
-
}
|
|
331
|
-
case 3: {
|
|
332
|
-
if (tag !== 26) {
|
|
333
|
-
break;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
337
|
-
continue;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
341
|
-
break;
|
|
342
|
-
}
|
|
343
|
-
reader.skip(tag & 7);
|
|
344
|
-
}
|
|
345
|
-
return message;
|
|
346
|
-
},
|
|
347
|
-
|
|
348
|
-
fromJSON(object: any): QueryClientStateResponse {
|
|
349
|
-
return {
|
|
350
|
-
clientState: isSet(object.clientState) ? Any.fromJSON(object.clientState) : undefined,
|
|
351
|
-
proof: isSet(object.proof) ? bytesFromBase64(object.proof) : new Uint8Array(0),
|
|
352
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
353
|
-
};
|
|
354
|
-
},
|
|
355
|
-
|
|
356
|
-
toJSON(message: QueryClientStateResponse): unknown {
|
|
357
|
-
const obj: any = {};
|
|
358
|
-
if (message.clientState !== undefined) {
|
|
359
|
-
obj.clientState = Any.toJSON(message.clientState);
|
|
360
|
-
}
|
|
361
|
-
if (message.proof.length !== 0) {
|
|
362
|
-
obj.proof = base64FromBytes(message.proof);
|
|
363
|
-
}
|
|
364
|
-
if (message.proofHeight !== undefined) {
|
|
365
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
366
|
-
}
|
|
367
|
-
return obj;
|
|
368
|
-
},
|
|
369
|
-
|
|
370
|
-
create<I extends Exact<DeepPartial<QueryClientStateResponse>, I>>(base?: I): QueryClientStateResponse {
|
|
371
|
-
return QueryClientStateResponse.fromPartial(base ?? ({} as any));
|
|
372
|
-
},
|
|
373
|
-
fromPartial<I extends Exact<DeepPartial<QueryClientStateResponse>, I>>(object: I): QueryClientStateResponse {
|
|
374
|
-
const message = createBaseQueryClientStateResponse();
|
|
375
|
-
message.clientState = (object.clientState !== undefined && object.clientState !== null)
|
|
376
|
-
? Any.fromPartial(object.clientState)
|
|
377
|
-
: undefined;
|
|
378
|
-
message.proof = object.proof ?? new Uint8Array(0);
|
|
379
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
380
|
-
? Height.fromPartial(object.proofHeight)
|
|
381
|
-
: undefined;
|
|
382
|
-
return message;
|
|
383
|
-
},
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
function createBaseQueryClientStatesRequest(): QueryClientStatesRequest {
|
|
387
|
-
return { pagination: undefined };
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
export const QueryClientStatesRequest: MessageFns<QueryClientStatesRequest> = {
|
|
391
|
-
encode(message: QueryClientStatesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
392
|
-
if (message.pagination !== undefined) {
|
|
393
|
-
PageRequest.encode(message.pagination, writer.uint32(10).fork()).join();
|
|
394
|
-
}
|
|
395
|
-
return writer;
|
|
396
|
-
},
|
|
397
|
-
|
|
398
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesRequest {
|
|
399
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
400
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
401
|
-
const message = createBaseQueryClientStatesRequest();
|
|
402
|
-
while (reader.pos < end) {
|
|
403
|
-
const tag = reader.uint32();
|
|
404
|
-
switch (tag >>> 3) {
|
|
405
|
-
case 1: {
|
|
406
|
-
if (tag !== 10) {
|
|
407
|
-
break;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
411
|
-
continue;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
415
|
-
break;
|
|
416
|
-
}
|
|
417
|
-
reader.skip(tag & 7);
|
|
418
|
-
}
|
|
419
|
-
return message;
|
|
420
|
-
},
|
|
421
|
-
|
|
422
|
-
fromJSON(object: any): QueryClientStatesRequest {
|
|
423
|
-
return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined };
|
|
424
|
-
},
|
|
425
|
-
|
|
426
|
-
toJSON(message: QueryClientStatesRequest): unknown {
|
|
427
|
-
const obj: any = {};
|
|
428
|
-
if (message.pagination !== undefined) {
|
|
429
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
430
|
-
}
|
|
431
|
-
return obj;
|
|
432
|
-
},
|
|
433
|
-
|
|
434
|
-
create<I extends Exact<DeepPartial<QueryClientStatesRequest>, I>>(base?: I): QueryClientStatesRequest {
|
|
435
|
-
return QueryClientStatesRequest.fromPartial(base ?? ({} as any));
|
|
436
|
-
},
|
|
437
|
-
fromPartial<I extends Exact<DeepPartial<QueryClientStatesRequest>, I>>(object: I): QueryClientStatesRequest {
|
|
438
|
-
const message = createBaseQueryClientStatesRequest();
|
|
439
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
440
|
-
? PageRequest.fromPartial(object.pagination)
|
|
441
|
-
: undefined;
|
|
442
|
-
return message;
|
|
443
|
-
},
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
function createBaseQueryClientStatesResponse(): QueryClientStatesResponse {
|
|
447
|
-
return { clientStates: [], pagination: undefined };
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
export const QueryClientStatesResponse: MessageFns<QueryClientStatesResponse> = {
|
|
451
|
-
encode(message: QueryClientStatesResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
452
|
-
for (const v of message.clientStates) {
|
|
453
|
-
IdentifiedClientState.encode(v!, writer.uint32(10).fork()).join();
|
|
454
|
-
}
|
|
455
|
-
if (message.pagination !== undefined) {
|
|
456
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
457
|
-
}
|
|
458
|
-
return writer;
|
|
459
|
-
},
|
|
460
|
-
|
|
461
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatesResponse {
|
|
462
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
463
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
464
|
-
const message = createBaseQueryClientStatesResponse();
|
|
465
|
-
while (reader.pos < end) {
|
|
466
|
-
const tag = reader.uint32();
|
|
467
|
-
switch (tag >>> 3) {
|
|
468
|
-
case 1: {
|
|
469
|
-
if (tag !== 10) {
|
|
470
|
-
break;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
message.clientStates.push(IdentifiedClientState.decode(reader, reader.uint32()));
|
|
474
|
-
continue;
|
|
475
|
-
}
|
|
476
|
-
case 2: {
|
|
477
|
-
if (tag !== 18) {
|
|
478
|
-
break;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
482
|
-
continue;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
486
|
-
break;
|
|
487
|
-
}
|
|
488
|
-
reader.skip(tag & 7);
|
|
489
|
-
}
|
|
490
|
-
return message;
|
|
491
|
-
},
|
|
492
|
-
|
|
493
|
-
fromJSON(object: any): QueryClientStatesResponse {
|
|
494
|
-
return {
|
|
495
|
-
clientStates: globalThis.Array.isArray(object?.clientStates)
|
|
496
|
-
? object.clientStates.map((e: any) => IdentifiedClientState.fromJSON(e))
|
|
497
|
-
: [],
|
|
498
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
499
|
-
};
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
toJSON(message: QueryClientStatesResponse): unknown {
|
|
503
|
-
const obj: any = {};
|
|
504
|
-
if (message.clientStates?.length) {
|
|
505
|
-
obj.clientStates = message.clientStates.map((e) => IdentifiedClientState.toJSON(e));
|
|
506
|
-
}
|
|
507
|
-
if (message.pagination !== undefined) {
|
|
508
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
509
|
-
}
|
|
510
|
-
return obj;
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
create<I extends Exact<DeepPartial<QueryClientStatesResponse>, I>>(base?: I): QueryClientStatesResponse {
|
|
514
|
-
return QueryClientStatesResponse.fromPartial(base ?? ({} as any));
|
|
515
|
-
},
|
|
516
|
-
fromPartial<I extends Exact<DeepPartial<QueryClientStatesResponse>, I>>(object: I): QueryClientStatesResponse {
|
|
517
|
-
const message = createBaseQueryClientStatesResponse();
|
|
518
|
-
message.clientStates = object.clientStates?.map((e) => IdentifiedClientState.fromPartial(e)) || [];
|
|
519
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
520
|
-
? PageResponse.fromPartial(object.pagination)
|
|
521
|
-
: undefined;
|
|
522
|
-
return message;
|
|
523
|
-
},
|
|
524
|
-
};
|
|
525
|
-
|
|
526
|
-
function createBaseQueryConsensusStateRequest(): QueryConsensusStateRequest {
|
|
527
|
-
return { clientId: "", revisionNumber: 0, revisionHeight: 0, latestHeight: false };
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
export const QueryConsensusStateRequest: MessageFns<QueryConsensusStateRequest> = {
|
|
531
|
-
encode(message: QueryConsensusStateRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
532
|
-
if (message.clientId !== "") {
|
|
533
|
-
writer.uint32(10).string(message.clientId);
|
|
534
|
-
}
|
|
535
|
-
if (message.revisionNumber !== 0) {
|
|
536
|
-
writer.uint32(16).uint64(message.revisionNumber);
|
|
537
|
-
}
|
|
538
|
-
if (message.revisionHeight !== 0) {
|
|
539
|
-
writer.uint32(24).uint64(message.revisionHeight);
|
|
540
|
-
}
|
|
541
|
-
if (message.latestHeight !== false) {
|
|
542
|
-
writer.uint32(32).bool(message.latestHeight);
|
|
543
|
-
}
|
|
544
|
-
return writer;
|
|
545
|
-
},
|
|
546
|
-
|
|
547
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateRequest {
|
|
548
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
549
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
550
|
-
const message = createBaseQueryConsensusStateRequest();
|
|
551
|
-
while (reader.pos < end) {
|
|
552
|
-
const tag = reader.uint32();
|
|
553
|
-
switch (tag >>> 3) {
|
|
554
|
-
case 1: {
|
|
555
|
-
if (tag !== 10) {
|
|
556
|
-
break;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
message.clientId = reader.string();
|
|
560
|
-
continue;
|
|
561
|
-
}
|
|
562
|
-
case 2: {
|
|
563
|
-
if (tag !== 16) {
|
|
564
|
-
break;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
message.revisionNumber = longToNumber(reader.uint64());
|
|
568
|
-
continue;
|
|
569
|
-
}
|
|
570
|
-
case 3: {
|
|
571
|
-
if (tag !== 24) {
|
|
572
|
-
break;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
message.revisionHeight = longToNumber(reader.uint64());
|
|
576
|
-
continue;
|
|
577
|
-
}
|
|
578
|
-
case 4: {
|
|
579
|
-
if (tag !== 32) {
|
|
580
|
-
break;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
message.latestHeight = reader.bool();
|
|
584
|
-
continue;
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
588
|
-
break;
|
|
589
|
-
}
|
|
590
|
-
reader.skip(tag & 7);
|
|
591
|
-
}
|
|
592
|
-
return message;
|
|
593
|
-
},
|
|
594
|
-
|
|
595
|
-
fromJSON(object: any): QueryConsensusStateRequest {
|
|
596
|
-
return {
|
|
597
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
598
|
-
revisionNumber: isSet(object.revisionNumber) ? globalThis.Number(object.revisionNumber) : 0,
|
|
599
|
-
revisionHeight: isSet(object.revisionHeight) ? globalThis.Number(object.revisionHeight) : 0,
|
|
600
|
-
latestHeight: isSet(object.latestHeight) ? globalThis.Boolean(object.latestHeight) : false,
|
|
601
|
-
};
|
|
602
|
-
},
|
|
603
|
-
|
|
604
|
-
toJSON(message: QueryConsensusStateRequest): unknown {
|
|
605
|
-
const obj: any = {};
|
|
606
|
-
if (message.clientId !== "") {
|
|
607
|
-
obj.clientId = message.clientId;
|
|
608
|
-
}
|
|
609
|
-
if (message.revisionNumber !== 0) {
|
|
610
|
-
obj.revisionNumber = Math.round(message.revisionNumber);
|
|
611
|
-
}
|
|
612
|
-
if (message.revisionHeight !== 0) {
|
|
613
|
-
obj.revisionHeight = Math.round(message.revisionHeight);
|
|
614
|
-
}
|
|
615
|
-
if (message.latestHeight !== false) {
|
|
616
|
-
obj.latestHeight = message.latestHeight;
|
|
617
|
-
}
|
|
618
|
-
return obj;
|
|
619
|
-
},
|
|
620
|
-
|
|
621
|
-
create<I extends Exact<DeepPartial<QueryConsensusStateRequest>, I>>(base?: I): QueryConsensusStateRequest {
|
|
622
|
-
return QueryConsensusStateRequest.fromPartial(base ?? ({} as any));
|
|
623
|
-
},
|
|
624
|
-
fromPartial<I extends Exact<DeepPartial<QueryConsensusStateRequest>, I>>(object: I): QueryConsensusStateRequest {
|
|
625
|
-
const message = createBaseQueryConsensusStateRequest();
|
|
626
|
-
message.clientId = object.clientId ?? "";
|
|
627
|
-
message.revisionNumber = object.revisionNumber ?? 0;
|
|
628
|
-
message.revisionHeight = object.revisionHeight ?? 0;
|
|
629
|
-
message.latestHeight = object.latestHeight ?? false;
|
|
630
|
-
return message;
|
|
631
|
-
},
|
|
632
|
-
};
|
|
633
|
-
|
|
634
|
-
function createBaseQueryConsensusStateResponse(): QueryConsensusStateResponse {
|
|
635
|
-
return { consensusState: undefined, proof: new Uint8Array(0), proofHeight: undefined };
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
export const QueryConsensusStateResponse: MessageFns<QueryConsensusStateResponse> = {
|
|
639
|
-
encode(message: QueryConsensusStateResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
640
|
-
if (message.consensusState !== undefined) {
|
|
641
|
-
Any.encode(message.consensusState, writer.uint32(10).fork()).join();
|
|
642
|
-
}
|
|
643
|
-
if (message.proof.length !== 0) {
|
|
644
|
-
writer.uint32(18).bytes(message.proof);
|
|
645
|
-
}
|
|
646
|
-
if (message.proofHeight !== undefined) {
|
|
647
|
-
Height.encode(message.proofHeight, writer.uint32(26).fork()).join();
|
|
648
|
-
}
|
|
649
|
-
return writer;
|
|
650
|
-
},
|
|
651
|
-
|
|
652
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateResponse {
|
|
653
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
654
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
655
|
-
const message = createBaseQueryConsensusStateResponse();
|
|
656
|
-
while (reader.pos < end) {
|
|
657
|
-
const tag = reader.uint32();
|
|
658
|
-
switch (tag >>> 3) {
|
|
659
|
-
case 1: {
|
|
660
|
-
if (tag !== 10) {
|
|
661
|
-
break;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
message.consensusState = Any.decode(reader, reader.uint32());
|
|
665
|
-
continue;
|
|
666
|
-
}
|
|
667
|
-
case 2: {
|
|
668
|
-
if (tag !== 18) {
|
|
669
|
-
break;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
message.proof = reader.bytes();
|
|
673
|
-
continue;
|
|
674
|
-
}
|
|
675
|
-
case 3: {
|
|
676
|
-
if (tag !== 26) {
|
|
677
|
-
break;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
681
|
-
continue;
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
685
|
-
break;
|
|
686
|
-
}
|
|
687
|
-
reader.skip(tag & 7);
|
|
688
|
-
}
|
|
689
|
-
return message;
|
|
690
|
-
},
|
|
691
|
-
|
|
692
|
-
fromJSON(object: any): QueryConsensusStateResponse {
|
|
693
|
-
return {
|
|
694
|
-
consensusState: isSet(object.consensusState) ? Any.fromJSON(object.consensusState) : undefined,
|
|
695
|
-
proof: isSet(object.proof) ? bytesFromBase64(object.proof) : new Uint8Array(0),
|
|
696
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
697
|
-
};
|
|
698
|
-
},
|
|
699
|
-
|
|
700
|
-
toJSON(message: QueryConsensusStateResponse): unknown {
|
|
701
|
-
const obj: any = {};
|
|
702
|
-
if (message.consensusState !== undefined) {
|
|
703
|
-
obj.consensusState = Any.toJSON(message.consensusState);
|
|
704
|
-
}
|
|
705
|
-
if (message.proof.length !== 0) {
|
|
706
|
-
obj.proof = base64FromBytes(message.proof);
|
|
707
|
-
}
|
|
708
|
-
if (message.proofHeight !== undefined) {
|
|
709
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
710
|
-
}
|
|
711
|
-
return obj;
|
|
712
|
-
},
|
|
713
|
-
|
|
714
|
-
create<I extends Exact<DeepPartial<QueryConsensusStateResponse>, I>>(base?: I): QueryConsensusStateResponse {
|
|
715
|
-
return QueryConsensusStateResponse.fromPartial(base ?? ({} as any));
|
|
716
|
-
},
|
|
717
|
-
fromPartial<I extends Exact<DeepPartial<QueryConsensusStateResponse>, I>>(object: I): QueryConsensusStateResponse {
|
|
718
|
-
const message = createBaseQueryConsensusStateResponse();
|
|
719
|
-
message.consensusState = (object.consensusState !== undefined && object.consensusState !== null)
|
|
720
|
-
? Any.fromPartial(object.consensusState)
|
|
721
|
-
: undefined;
|
|
722
|
-
message.proof = object.proof ?? new Uint8Array(0);
|
|
723
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
724
|
-
? Height.fromPartial(object.proofHeight)
|
|
725
|
-
: undefined;
|
|
726
|
-
return message;
|
|
727
|
-
},
|
|
728
|
-
};
|
|
729
|
-
|
|
730
|
-
function createBaseQueryConsensusStatesRequest(): QueryConsensusStatesRequest {
|
|
731
|
-
return { clientId: "", pagination: undefined };
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
export const QueryConsensusStatesRequest: MessageFns<QueryConsensusStatesRequest> = {
|
|
735
|
-
encode(message: QueryConsensusStatesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
736
|
-
if (message.clientId !== "") {
|
|
737
|
-
writer.uint32(10).string(message.clientId);
|
|
738
|
-
}
|
|
739
|
-
if (message.pagination !== undefined) {
|
|
740
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
741
|
-
}
|
|
742
|
-
return writer;
|
|
743
|
-
},
|
|
744
|
-
|
|
745
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesRequest {
|
|
746
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
747
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
748
|
-
const message = createBaseQueryConsensusStatesRequest();
|
|
749
|
-
while (reader.pos < end) {
|
|
750
|
-
const tag = reader.uint32();
|
|
751
|
-
switch (tag >>> 3) {
|
|
752
|
-
case 1: {
|
|
753
|
-
if (tag !== 10) {
|
|
754
|
-
break;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
message.clientId = reader.string();
|
|
758
|
-
continue;
|
|
759
|
-
}
|
|
760
|
-
case 2: {
|
|
761
|
-
if (tag !== 18) {
|
|
762
|
-
break;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
766
|
-
continue;
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
770
|
-
break;
|
|
771
|
-
}
|
|
772
|
-
reader.skip(tag & 7);
|
|
773
|
-
}
|
|
774
|
-
return message;
|
|
775
|
-
},
|
|
776
|
-
|
|
777
|
-
fromJSON(object: any): QueryConsensusStatesRequest {
|
|
778
|
-
return {
|
|
779
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
780
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
781
|
-
};
|
|
782
|
-
},
|
|
783
|
-
|
|
784
|
-
toJSON(message: QueryConsensusStatesRequest): unknown {
|
|
785
|
-
const obj: any = {};
|
|
786
|
-
if (message.clientId !== "") {
|
|
787
|
-
obj.clientId = message.clientId;
|
|
788
|
-
}
|
|
789
|
-
if (message.pagination !== undefined) {
|
|
790
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
791
|
-
}
|
|
792
|
-
return obj;
|
|
793
|
-
},
|
|
794
|
-
|
|
795
|
-
create<I extends Exact<DeepPartial<QueryConsensusStatesRequest>, I>>(base?: I): QueryConsensusStatesRequest {
|
|
796
|
-
return QueryConsensusStatesRequest.fromPartial(base ?? ({} as any));
|
|
797
|
-
},
|
|
798
|
-
fromPartial<I extends Exact<DeepPartial<QueryConsensusStatesRequest>, I>>(object: I): QueryConsensusStatesRequest {
|
|
799
|
-
const message = createBaseQueryConsensusStatesRequest();
|
|
800
|
-
message.clientId = object.clientId ?? "";
|
|
801
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
802
|
-
? PageRequest.fromPartial(object.pagination)
|
|
803
|
-
: undefined;
|
|
804
|
-
return message;
|
|
805
|
-
},
|
|
806
|
-
};
|
|
807
|
-
|
|
808
|
-
function createBaseQueryConsensusStatesResponse(): QueryConsensusStatesResponse {
|
|
809
|
-
return { consensusStates: [], pagination: undefined };
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
export const QueryConsensusStatesResponse: MessageFns<QueryConsensusStatesResponse> = {
|
|
813
|
-
encode(message: QueryConsensusStatesResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
814
|
-
for (const v of message.consensusStates) {
|
|
815
|
-
ConsensusStateWithHeight.encode(v!, writer.uint32(10).fork()).join();
|
|
816
|
-
}
|
|
817
|
-
if (message.pagination !== undefined) {
|
|
818
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
819
|
-
}
|
|
820
|
-
return writer;
|
|
821
|
-
},
|
|
822
|
-
|
|
823
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStatesResponse {
|
|
824
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
825
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
826
|
-
const message = createBaseQueryConsensusStatesResponse();
|
|
827
|
-
while (reader.pos < end) {
|
|
828
|
-
const tag = reader.uint32();
|
|
829
|
-
switch (tag >>> 3) {
|
|
830
|
-
case 1: {
|
|
831
|
-
if (tag !== 10) {
|
|
832
|
-
break;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
message.consensusStates.push(ConsensusStateWithHeight.decode(reader, reader.uint32()));
|
|
836
|
-
continue;
|
|
837
|
-
}
|
|
838
|
-
case 2: {
|
|
839
|
-
if (tag !== 18) {
|
|
840
|
-
break;
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
844
|
-
continue;
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
848
|
-
break;
|
|
849
|
-
}
|
|
850
|
-
reader.skip(tag & 7);
|
|
851
|
-
}
|
|
852
|
-
return message;
|
|
853
|
-
},
|
|
854
|
-
|
|
855
|
-
fromJSON(object: any): QueryConsensusStatesResponse {
|
|
856
|
-
return {
|
|
857
|
-
consensusStates: globalThis.Array.isArray(object?.consensusStates)
|
|
858
|
-
? object.consensusStates.map((e: any) => ConsensusStateWithHeight.fromJSON(e))
|
|
859
|
-
: [],
|
|
860
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
861
|
-
};
|
|
862
|
-
},
|
|
863
|
-
|
|
864
|
-
toJSON(message: QueryConsensusStatesResponse): unknown {
|
|
865
|
-
const obj: any = {};
|
|
866
|
-
if (message.consensusStates?.length) {
|
|
867
|
-
obj.consensusStates = message.consensusStates.map((e) => ConsensusStateWithHeight.toJSON(e));
|
|
868
|
-
}
|
|
869
|
-
if (message.pagination !== undefined) {
|
|
870
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
871
|
-
}
|
|
872
|
-
return obj;
|
|
873
|
-
},
|
|
874
|
-
|
|
875
|
-
create<I extends Exact<DeepPartial<QueryConsensusStatesResponse>, I>>(base?: I): QueryConsensusStatesResponse {
|
|
876
|
-
return QueryConsensusStatesResponse.fromPartial(base ?? ({} as any));
|
|
877
|
-
},
|
|
878
|
-
fromPartial<I extends Exact<DeepPartial<QueryConsensusStatesResponse>, I>>(object: I): QueryConsensusStatesResponse {
|
|
879
|
-
const message = createBaseQueryConsensusStatesResponse();
|
|
880
|
-
message.consensusStates = object.consensusStates?.map((e) => ConsensusStateWithHeight.fromPartial(e)) || [];
|
|
881
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
882
|
-
? PageResponse.fromPartial(object.pagination)
|
|
883
|
-
: undefined;
|
|
884
|
-
return message;
|
|
885
|
-
},
|
|
886
|
-
};
|
|
887
|
-
|
|
888
|
-
function createBaseQueryConsensusStateHeightsRequest(): QueryConsensusStateHeightsRequest {
|
|
889
|
-
return { clientId: "", pagination: undefined };
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
export const QueryConsensusStateHeightsRequest: MessageFns<QueryConsensusStateHeightsRequest> = {
|
|
893
|
-
encode(message: QueryConsensusStateHeightsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
894
|
-
if (message.clientId !== "") {
|
|
895
|
-
writer.uint32(10).string(message.clientId);
|
|
896
|
-
}
|
|
897
|
-
if (message.pagination !== undefined) {
|
|
898
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
899
|
-
}
|
|
900
|
-
return writer;
|
|
901
|
-
},
|
|
902
|
-
|
|
903
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsRequest {
|
|
904
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
905
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
906
|
-
const message = createBaseQueryConsensusStateHeightsRequest();
|
|
907
|
-
while (reader.pos < end) {
|
|
908
|
-
const tag = reader.uint32();
|
|
909
|
-
switch (tag >>> 3) {
|
|
910
|
-
case 1: {
|
|
911
|
-
if (tag !== 10) {
|
|
912
|
-
break;
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
message.clientId = reader.string();
|
|
916
|
-
continue;
|
|
917
|
-
}
|
|
918
|
-
case 2: {
|
|
919
|
-
if (tag !== 18) {
|
|
920
|
-
break;
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
924
|
-
continue;
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
928
|
-
break;
|
|
929
|
-
}
|
|
930
|
-
reader.skip(tag & 7);
|
|
931
|
-
}
|
|
932
|
-
return message;
|
|
933
|
-
},
|
|
934
|
-
|
|
935
|
-
fromJSON(object: any): QueryConsensusStateHeightsRequest {
|
|
936
|
-
return {
|
|
937
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
938
|
-
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
939
|
-
};
|
|
940
|
-
},
|
|
941
|
-
|
|
942
|
-
toJSON(message: QueryConsensusStateHeightsRequest): unknown {
|
|
943
|
-
const obj: any = {};
|
|
944
|
-
if (message.clientId !== "") {
|
|
945
|
-
obj.clientId = message.clientId;
|
|
946
|
-
}
|
|
947
|
-
if (message.pagination !== undefined) {
|
|
948
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
949
|
-
}
|
|
950
|
-
return obj;
|
|
951
|
-
},
|
|
952
|
-
|
|
953
|
-
create<I extends Exact<DeepPartial<QueryConsensusStateHeightsRequest>, I>>(
|
|
954
|
-
base?: I,
|
|
955
|
-
): QueryConsensusStateHeightsRequest {
|
|
956
|
-
return QueryConsensusStateHeightsRequest.fromPartial(base ?? ({} as any));
|
|
957
|
-
},
|
|
958
|
-
fromPartial<I extends Exact<DeepPartial<QueryConsensusStateHeightsRequest>, I>>(
|
|
959
|
-
object: I,
|
|
960
|
-
): QueryConsensusStateHeightsRequest {
|
|
961
|
-
const message = createBaseQueryConsensusStateHeightsRequest();
|
|
962
|
-
message.clientId = object.clientId ?? "";
|
|
963
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
964
|
-
? PageRequest.fromPartial(object.pagination)
|
|
965
|
-
: undefined;
|
|
966
|
-
return message;
|
|
967
|
-
},
|
|
968
|
-
};
|
|
969
|
-
|
|
970
|
-
function createBaseQueryConsensusStateHeightsResponse(): QueryConsensusStateHeightsResponse {
|
|
971
|
-
return { consensusStateHeights: [], pagination: undefined };
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
export const QueryConsensusStateHeightsResponse: MessageFns<QueryConsensusStateHeightsResponse> = {
|
|
975
|
-
encode(message: QueryConsensusStateHeightsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
976
|
-
for (const v of message.consensusStateHeights) {
|
|
977
|
-
Height.encode(v!, writer.uint32(10).fork()).join();
|
|
978
|
-
}
|
|
979
|
-
if (message.pagination !== undefined) {
|
|
980
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
981
|
-
}
|
|
982
|
-
return writer;
|
|
983
|
-
},
|
|
984
|
-
|
|
985
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConsensusStateHeightsResponse {
|
|
986
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
987
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
988
|
-
const message = createBaseQueryConsensusStateHeightsResponse();
|
|
989
|
-
while (reader.pos < end) {
|
|
990
|
-
const tag = reader.uint32();
|
|
991
|
-
switch (tag >>> 3) {
|
|
992
|
-
case 1: {
|
|
993
|
-
if (tag !== 10) {
|
|
994
|
-
break;
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
message.consensusStateHeights.push(Height.decode(reader, reader.uint32()));
|
|
998
|
-
continue;
|
|
999
|
-
}
|
|
1000
|
-
case 2: {
|
|
1001
|
-
if (tag !== 18) {
|
|
1002
|
-
break;
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1006
|
-
continue;
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1010
|
-
break;
|
|
1011
|
-
}
|
|
1012
|
-
reader.skip(tag & 7);
|
|
1013
|
-
}
|
|
1014
|
-
return message;
|
|
1015
|
-
},
|
|
1016
|
-
|
|
1017
|
-
fromJSON(object: any): QueryConsensusStateHeightsResponse {
|
|
1018
|
-
return {
|
|
1019
|
-
consensusStateHeights: globalThis.Array.isArray(object?.consensusStateHeights)
|
|
1020
|
-
? object.consensusStateHeights.map((e: any) => Height.fromJSON(e))
|
|
1021
|
-
: [],
|
|
1022
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1023
|
-
};
|
|
1024
|
-
},
|
|
1025
|
-
|
|
1026
|
-
toJSON(message: QueryConsensusStateHeightsResponse): unknown {
|
|
1027
|
-
const obj: any = {};
|
|
1028
|
-
if (message.consensusStateHeights?.length) {
|
|
1029
|
-
obj.consensusStateHeights = message.consensusStateHeights.map((e) => Height.toJSON(e));
|
|
1030
|
-
}
|
|
1031
|
-
if (message.pagination !== undefined) {
|
|
1032
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
1033
|
-
}
|
|
1034
|
-
return obj;
|
|
1035
|
-
},
|
|
1036
|
-
|
|
1037
|
-
create<I extends Exact<DeepPartial<QueryConsensusStateHeightsResponse>, I>>(
|
|
1038
|
-
base?: I,
|
|
1039
|
-
): QueryConsensusStateHeightsResponse {
|
|
1040
|
-
return QueryConsensusStateHeightsResponse.fromPartial(base ?? ({} as any));
|
|
1041
|
-
},
|
|
1042
|
-
fromPartial<I extends Exact<DeepPartial<QueryConsensusStateHeightsResponse>, I>>(
|
|
1043
|
-
object: I,
|
|
1044
|
-
): QueryConsensusStateHeightsResponse {
|
|
1045
|
-
const message = createBaseQueryConsensusStateHeightsResponse();
|
|
1046
|
-
message.consensusStateHeights = object.consensusStateHeights?.map((e) => Height.fromPartial(e)) || [];
|
|
1047
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1048
|
-
? PageResponse.fromPartial(object.pagination)
|
|
1049
|
-
: undefined;
|
|
1050
|
-
return message;
|
|
1051
|
-
},
|
|
1052
|
-
};
|
|
1053
|
-
|
|
1054
|
-
function createBaseQueryClientStatusRequest(): QueryClientStatusRequest {
|
|
1055
|
-
return { clientId: "" };
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
export const QueryClientStatusRequest: MessageFns<QueryClientStatusRequest> = {
|
|
1059
|
-
encode(message: QueryClientStatusRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1060
|
-
if (message.clientId !== "") {
|
|
1061
|
-
writer.uint32(10).string(message.clientId);
|
|
1062
|
-
}
|
|
1063
|
-
return writer;
|
|
1064
|
-
},
|
|
1065
|
-
|
|
1066
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusRequest {
|
|
1067
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1068
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1069
|
-
const message = createBaseQueryClientStatusRequest();
|
|
1070
|
-
while (reader.pos < end) {
|
|
1071
|
-
const tag = reader.uint32();
|
|
1072
|
-
switch (tag >>> 3) {
|
|
1073
|
-
case 1: {
|
|
1074
|
-
if (tag !== 10) {
|
|
1075
|
-
break;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
message.clientId = reader.string();
|
|
1079
|
-
continue;
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1083
|
-
break;
|
|
1084
|
-
}
|
|
1085
|
-
reader.skip(tag & 7);
|
|
1086
|
-
}
|
|
1087
|
-
return message;
|
|
1088
|
-
},
|
|
1089
|
-
|
|
1090
|
-
fromJSON(object: any): QueryClientStatusRequest {
|
|
1091
|
-
return { clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "" };
|
|
1092
|
-
},
|
|
1093
|
-
|
|
1094
|
-
toJSON(message: QueryClientStatusRequest): unknown {
|
|
1095
|
-
const obj: any = {};
|
|
1096
|
-
if (message.clientId !== "") {
|
|
1097
|
-
obj.clientId = message.clientId;
|
|
1098
|
-
}
|
|
1099
|
-
return obj;
|
|
1100
|
-
},
|
|
1101
|
-
|
|
1102
|
-
create<I extends Exact<DeepPartial<QueryClientStatusRequest>, I>>(base?: I): QueryClientStatusRequest {
|
|
1103
|
-
return QueryClientStatusRequest.fromPartial(base ?? ({} as any));
|
|
1104
|
-
},
|
|
1105
|
-
fromPartial<I extends Exact<DeepPartial<QueryClientStatusRequest>, I>>(object: I): QueryClientStatusRequest {
|
|
1106
|
-
const message = createBaseQueryClientStatusRequest();
|
|
1107
|
-
message.clientId = object.clientId ?? "";
|
|
1108
|
-
return message;
|
|
1109
|
-
},
|
|
1110
|
-
};
|
|
1111
|
-
|
|
1112
|
-
function createBaseQueryClientStatusResponse(): QueryClientStatusResponse {
|
|
1113
|
-
return { status: "" };
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
export const QueryClientStatusResponse: MessageFns<QueryClientStatusResponse> = {
|
|
1117
|
-
encode(message: QueryClientStatusResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1118
|
-
if (message.status !== "") {
|
|
1119
|
-
writer.uint32(10).string(message.status);
|
|
1120
|
-
}
|
|
1121
|
-
return writer;
|
|
1122
|
-
},
|
|
1123
|
-
|
|
1124
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientStatusResponse {
|
|
1125
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1126
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1127
|
-
const message = createBaseQueryClientStatusResponse();
|
|
1128
|
-
while (reader.pos < end) {
|
|
1129
|
-
const tag = reader.uint32();
|
|
1130
|
-
switch (tag >>> 3) {
|
|
1131
|
-
case 1: {
|
|
1132
|
-
if (tag !== 10) {
|
|
1133
|
-
break;
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
message.status = reader.string();
|
|
1137
|
-
continue;
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1141
|
-
break;
|
|
1142
|
-
}
|
|
1143
|
-
reader.skip(tag & 7);
|
|
1144
|
-
}
|
|
1145
|
-
return message;
|
|
1146
|
-
},
|
|
1147
|
-
|
|
1148
|
-
fromJSON(object: any): QueryClientStatusResponse {
|
|
1149
|
-
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
1150
|
-
},
|
|
1151
|
-
|
|
1152
|
-
toJSON(message: QueryClientStatusResponse): unknown {
|
|
1153
|
-
const obj: any = {};
|
|
1154
|
-
if (message.status !== "") {
|
|
1155
|
-
obj.status = message.status;
|
|
1156
|
-
}
|
|
1157
|
-
return obj;
|
|
1158
|
-
},
|
|
1159
|
-
|
|
1160
|
-
create<I extends Exact<DeepPartial<QueryClientStatusResponse>, I>>(base?: I): QueryClientStatusResponse {
|
|
1161
|
-
return QueryClientStatusResponse.fromPartial(base ?? ({} as any));
|
|
1162
|
-
},
|
|
1163
|
-
fromPartial<I extends Exact<DeepPartial<QueryClientStatusResponse>, I>>(object: I): QueryClientStatusResponse {
|
|
1164
|
-
const message = createBaseQueryClientStatusResponse();
|
|
1165
|
-
message.status = object.status ?? "";
|
|
1166
|
-
return message;
|
|
1167
|
-
},
|
|
1168
|
-
};
|
|
1169
|
-
|
|
1170
|
-
function createBaseQueryClientParamsRequest(): QueryClientParamsRequest {
|
|
1171
|
-
return {};
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
export const QueryClientParamsRequest: MessageFns<QueryClientParamsRequest> = {
|
|
1175
|
-
encode(_: QueryClientParamsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1176
|
-
return writer;
|
|
1177
|
-
},
|
|
1178
|
-
|
|
1179
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsRequest {
|
|
1180
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1181
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1182
|
-
const message = createBaseQueryClientParamsRequest();
|
|
1183
|
-
while (reader.pos < end) {
|
|
1184
|
-
const tag = reader.uint32();
|
|
1185
|
-
switch (tag >>> 3) {
|
|
1186
|
-
}
|
|
1187
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1188
|
-
break;
|
|
1189
|
-
}
|
|
1190
|
-
reader.skip(tag & 7);
|
|
1191
|
-
}
|
|
1192
|
-
return message;
|
|
1193
|
-
},
|
|
1194
|
-
|
|
1195
|
-
fromJSON(_: any): QueryClientParamsRequest {
|
|
1196
|
-
return {};
|
|
1197
|
-
},
|
|
1198
|
-
|
|
1199
|
-
toJSON(_: QueryClientParamsRequest): unknown {
|
|
1200
|
-
const obj: any = {};
|
|
1201
|
-
return obj;
|
|
1202
|
-
},
|
|
1203
|
-
|
|
1204
|
-
create<I extends Exact<DeepPartial<QueryClientParamsRequest>, I>>(base?: I): QueryClientParamsRequest {
|
|
1205
|
-
return QueryClientParamsRequest.fromPartial(base ?? ({} as any));
|
|
1206
|
-
},
|
|
1207
|
-
fromPartial<I extends Exact<DeepPartial<QueryClientParamsRequest>, I>>(_: I): QueryClientParamsRequest {
|
|
1208
|
-
const message = createBaseQueryClientParamsRequest();
|
|
1209
|
-
return message;
|
|
1210
|
-
},
|
|
1211
|
-
};
|
|
1212
|
-
|
|
1213
|
-
function createBaseQueryClientParamsResponse(): QueryClientParamsResponse {
|
|
1214
|
-
return { params: undefined };
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
export const QueryClientParamsResponse: MessageFns<QueryClientParamsResponse> = {
|
|
1218
|
-
encode(message: QueryClientParamsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1219
|
-
if (message.params !== undefined) {
|
|
1220
|
-
Params.encode(message.params, writer.uint32(10).fork()).join();
|
|
1221
|
-
}
|
|
1222
|
-
return writer;
|
|
1223
|
-
},
|
|
1224
|
-
|
|
1225
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientParamsResponse {
|
|
1226
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1227
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1228
|
-
const message = createBaseQueryClientParamsResponse();
|
|
1229
|
-
while (reader.pos < end) {
|
|
1230
|
-
const tag = reader.uint32();
|
|
1231
|
-
switch (tag >>> 3) {
|
|
1232
|
-
case 1: {
|
|
1233
|
-
if (tag !== 10) {
|
|
1234
|
-
break;
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
1238
|
-
continue;
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1242
|
-
break;
|
|
1243
|
-
}
|
|
1244
|
-
reader.skip(tag & 7);
|
|
1245
|
-
}
|
|
1246
|
-
return message;
|
|
1247
|
-
},
|
|
1248
|
-
|
|
1249
|
-
fromJSON(object: any): QueryClientParamsResponse {
|
|
1250
|
-
return { params: isSet(object.params) ? Params.fromJSON(object.params) : undefined };
|
|
1251
|
-
},
|
|
1252
|
-
|
|
1253
|
-
toJSON(message: QueryClientParamsResponse): unknown {
|
|
1254
|
-
const obj: any = {};
|
|
1255
|
-
if (message.params !== undefined) {
|
|
1256
|
-
obj.params = Params.toJSON(message.params);
|
|
1257
|
-
}
|
|
1258
|
-
return obj;
|
|
1259
|
-
},
|
|
1260
|
-
|
|
1261
|
-
create<I extends Exact<DeepPartial<QueryClientParamsResponse>, I>>(base?: I): QueryClientParamsResponse {
|
|
1262
|
-
return QueryClientParamsResponse.fromPartial(base ?? ({} as any));
|
|
1263
|
-
},
|
|
1264
|
-
fromPartial<I extends Exact<DeepPartial<QueryClientParamsResponse>, I>>(object: I): QueryClientParamsResponse {
|
|
1265
|
-
const message = createBaseQueryClientParamsResponse();
|
|
1266
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
1267
|
-
? Params.fromPartial(object.params)
|
|
1268
|
-
: undefined;
|
|
1269
|
-
return message;
|
|
1270
|
-
},
|
|
1271
|
-
};
|
|
1272
|
-
|
|
1273
|
-
function createBaseQueryUpgradedClientStateRequest(): QueryUpgradedClientStateRequest {
|
|
1274
|
-
return {};
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
export const QueryUpgradedClientStateRequest: MessageFns<QueryUpgradedClientStateRequest> = {
|
|
1278
|
-
encode(_: QueryUpgradedClientStateRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1279
|
-
return writer;
|
|
1280
|
-
},
|
|
1281
|
-
|
|
1282
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateRequest {
|
|
1283
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1284
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1285
|
-
const message = createBaseQueryUpgradedClientStateRequest();
|
|
1286
|
-
while (reader.pos < end) {
|
|
1287
|
-
const tag = reader.uint32();
|
|
1288
|
-
switch (tag >>> 3) {
|
|
1289
|
-
}
|
|
1290
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1291
|
-
break;
|
|
1292
|
-
}
|
|
1293
|
-
reader.skip(tag & 7);
|
|
1294
|
-
}
|
|
1295
|
-
return message;
|
|
1296
|
-
},
|
|
1297
|
-
|
|
1298
|
-
fromJSON(_: any): QueryUpgradedClientStateRequest {
|
|
1299
|
-
return {};
|
|
1300
|
-
},
|
|
1301
|
-
|
|
1302
|
-
toJSON(_: QueryUpgradedClientStateRequest): unknown {
|
|
1303
|
-
const obj: any = {};
|
|
1304
|
-
return obj;
|
|
1305
|
-
},
|
|
1306
|
-
|
|
1307
|
-
create<I extends Exact<DeepPartial<QueryUpgradedClientStateRequest>, I>>(base?: I): QueryUpgradedClientStateRequest {
|
|
1308
|
-
return QueryUpgradedClientStateRequest.fromPartial(base ?? ({} as any));
|
|
1309
|
-
},
|
|
1310
|
-
fromPartial<I extends Exact<DeepPartial<QueryUpgradedClientStateRequest>, I>>(_: I): QueryUpgradedClientStateRequest {
|
|
1311
|
-
const message = createBaseQueryUpgradedClientStateRequest();
|
|
1312
|
-
return message;
|
|
1313
|
-
},
|
|
1314
|
-
};
|
|
1315
|
-
|
|
1316
|
-
function createBaseQueryUpgradedClientStateResponse(): QueryUpgradedClientStateResponse {
|
|
1317
|
-
return { upgradedClientState: undefined };
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
export const QueryUpgradedClientStateResponse: MessageFns<QueryUpgradedClientStateResponse> = {
|
|
1321
|
-
encode(message: QueryUpgradedClientStateResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1322
|
-
if (message.upgradedClientState !== undefined) {
|
|
1323
|
-
Any.encode(message.upgradedClientState, writer.uint32(10).fork()).join();
|
|
1324
|
-
}
|
|
1325
|
-
return writer;
|
|
1326
|
-
},
|
|
1327
|
-
|
|
1328
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedClientStateResponse {
|
|
1329
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1330
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1331
|
-
const message = createBaseQueryUpgradedClientStateResponse();
|
|
1332
|
-
while (reader.pos < end) {
|
|
1333
|
-
const tag = reader.uint32();
|
|
1334
|
-
switch (tag >>> 3) {
|
|
1335
|
-
case 1: {
|
|
1336
|
-
if (tag !== 10) {
|
|
1337
|
-
break;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
message.upgradedClientState = Any.decode(reader, reader.uint32());
|
|
1341
|
-
continue;
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1345
|
-
break;
|
|
1346
|
-
}
|
|
1347
|
-
reader.skip(tag & 7);
|
|
1348
|
-
}
|
|
1349
|
-
return message;
|
|
1350
|
-
},
|
|
1351
|
-
|
|
1352
|
-
fromJSON(object: any): QueryUpgradedClientStateResponse {
|
|
1353
|
-
return {
|
|
1354
|
-
upgradedClientState: isSet(object.upgradedClientState) ? Any.fromJSON(object.upgradedClientState) : undefined,
|
|
1355
|
-
};
|
|
1356
|
-
},
|
|
1357
|
-
|
|
1358
|
-
toJSON(message: QueryUpgradedClientStateResponse): unknown {
|
|
1359
|
-
const obj: any = {};
|
|
1360
|
-
if (message.upgradedClientState !== undefined) {
|
|
1361
|
-
obj.upgradedClientState = Any.toJSON(message.upgradedClientState);
|
|
1362
|
-
}
|
|
1363
|
-
return obj;
|
|
1364
|
-
},
|
|
1365
|
-
|
|
1366
|
-
create<I extends Exact<DeepPartial<QueryUpgradedClientStateResponse>, I>>(
|
|
1367
|
-
base?: I,
|
|
1368
|
-
): QueryUpgradedClientStateResponse {
|
|
1369
|
-
return QueryUpgradedClientStateResponse.fromPartial(base ?? ({} as any));
|
|
1370
|
-
},
|
|
1371
|
-
fromPartial<I extends Exact<DeepPartial<QueryUpgradedClientStateResponse>, I>>(
|
|
1372
|
-
object: I,
|
|
1373
|
-
): QueryUpgradedClientStateResponse {
|
|
1374
|
-
const message = createBaseQueryUpgradedClientStateResponse();
|
|
1375
|
-
message.upgradedClientState = (object.upgradedClientState !== undefined && object.upgradedClientState !== null)
|
|
1376
|
-
? Any.fromPartial(object.upgradedClientState)
|
|
1377
|
-
: undefined;
|
|
1378
|
-
return message;
|
|
1379
|
-
},
|
|
1380
|
-
};
|
|
1381
|
-
|
|
1382
|
-
function createBaseQueryUpgradedConsensusStateRequest(): QueryUpgradedConsensusStateRequest {
|
|
1383
|
-
return {};
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
export const QueryUpgradedConsensusStateRequest: MessageFns<QueryUpgradedConsensusStateRequest> = {
|
|
1387
|
-
encode(_: QueryUpgradedConsensusStateRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1388
|
-
return writer;
|
|
1389
|
-
},
|
|
1390
|
-
|
|
1391
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest {
|
|
1392
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1393
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1394
|
-
const message = createBaseQueryUpgradedConsensusStateRequest();
|
|
1395
|
-
while (reader.pos < end) {
|
|
1396
|
-
const tag = reader.uint32();
|
|
1397
|
-
switch (tag >>> 3) {
|
|
1398
|
-
}
|
|
1399
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1400
|
-
break;
|
|
1401
|
-
}
|
|
1402
|
-
reader.skip(tag & 7);
|
|
1403
|
-
}
|
|
1404
|
-
return message;
|
|
1405
|
-
},
|
|
1406
|
-
|
|
1407
|
-
fromJSON(_: any): QueryUpgradedConsensusStateRequest {
|
|
1408
|
-
return {};
|
|
1409
|
-
},
|
|
1410
|
-
|
|
1411
|
-
toJSON(_: QueryUpgradedConsensusStateRequest): unknown {
|
|
1412
|
-
const obj: any = {};
|
|
1413
|
-
return obj;
|
|
1414
|
-
},
|
|
1415
|
-
|
|
1416
|
-
create<I extends Exact<DeepPartial<QueryUpgradedConsensusStateRequest>, I>>(
|
|
1417
|
-
base?: I,
|
|
1418
|
-
): QueryUpgradedConsensusStateRequest {
|
|
1419
|
-
return QueryUpgradedConsensusStateRequest.fromPartial(base ?? ({} as any));
|
|
1420
|
-
},
|
|
1421
|
-
fromPartial<I extends Exact<DeepPartial<QueryUpgradedConsensusStateRequest>, I>>(
|
|
1422
|
-
_: I,
|
|
1423
|
-
): QueryUpgradedConsensusStateRequest {
|
|
1424
|
-
const message = createBaseQueryUpgradedConsensusStateRequest();
|
|
1425
|
-
return message;
|
|
1426
|
-
},
|
|
1427
|
-
};
|
|
1428
|
-
|
|
1429
|
-
function createBaseQueryUpgradedConsensusStateResponse(): QueryUpgradedConsensusStateResponse {
|
|
1430
|
-
return { upgradedConsensusState: undefined };
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
export const QueryUpgradedConsensusStateResponse: MessageFns<QueryUpgradedConsensusStateResponse> = {
|
|
1434
|
-
encode(message: QueryUpgradedConsensusStateResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1435
|
-
if (message.upgradedConsensusState !== undefined) {
|
|
1436
|
-
Any.encode(message.upgradedConsensusState, writer.uint32(10).fork()).join();
|
|
1437
|
-
}
|
|
1438
|
-
return writer;
|
|
1439
|
-
},
|
|
1440
|
-
|
|
1441
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse {
|
|
1442
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1443
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1444
|
-
const message = createBaseQueryUpgradedConsensusStateResponse();
|
|
1445
|
-
while (reader.pos < end) {
|
|
1446
|
-
const tag = reader.uint32();
|
|
1447
|
-
switch (tag >>> 3) {
|
|
1448
|
-
case 1: {
|
|
1449
|
-
if (tag !== 10) {
|
|
1450
|
-
break;
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
message.upgradedConsensusState = Any.decode(reader, reader.uint32());
|
|
1454
|
-
continue;
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1458
|
-
break;
|
|
1459
|
-
}
|
|
1460
|
-
reader.skip(tag & 7);
|
|
1461
|
-
}
|
|
1462
|
-
return message;
|
|
1463
|
-
},
|
|
1464
|
-
|
|
1465
|
-
fromJSON(object: any): QueryUpgradedConsensusStateResponse {
|
|
1466
|
-
return {
|
|
1467
|
-
upgradedConsensusState: isSet(object.upgradedConsensusState)
|
|
1468
|
-
? Any.fromJSON(object.upgradedConsensusState)
|
|
1469
|
-
: undefined,
|
|
1470
|
-
};
|
|
1471
|
-
},
|
|
1472
|
-
|
|
1473
|
-
toJSON(message: QueryUpgradedConsensusStateResponse): unknown {
|
|
1474
|
-
const obj: any = {};
|
|
1475
|
-
if (message.upgradedConsensusState !== undefined) {
|
|
1476
|
-
obj.upgradedConsensusState = Any.toJSON(message.upgradedConsensusState);
|
|
1477
|
-
}
|
|
1478
|
-
return obj;
|
|
1479
|
-
},
|
|
1480
|
-
|
|
1481
|
-
create<I extends Exact<DeepPartial<QueryUpgradedConsensusStateResponse>, I>>(
|
|
1482
|
-
base?: I,
|
|
1483
|
-
): QueryUpgradedConsensusStateResponse {
|
|
1484
|
-
return QueryUpgradedConsensusStateResponse.fromPartial(base ?? ({} as any));
|
|
1485
|
-
},
|
|
1486
|
-
fromPartial<I extends Exact<DeepPartial<QueryUpgradedConsensusStateResponse>, I>>(
|
|
1487
|
-
object: I,
|
|
1488
|
-
): QueryUpgradedConsensusStateResponse {
|
|
1489
|
-
const message = createBaseQueryUpgradedConsensusStateResponse();
|
|
1490
|
-
message.upgradedConsensusState =
|
|
1491
|
-
(object.upgradedConsensusState !== undefined && object.upgradedConsensusState !== null)
|
|
1492
|
-
? Any.fromPartial(object.upgradedConsensusState)
|
|
1493
|
-
: undefined;
|
|
1494
|
-
return message;
|
|
1495
|
-
},
|
|
1496
|
-
};
|
|
1497
|
-
|
|
1498
|
-
function createBaseQueryVerifyMembershipRequest(): QueryVerifyMembershipRequest {
|
|
1499
|
-
return {
|
|
1500
|
-
clientId: "",
|
|
1501
|
-
proof: new Uint8Array(0),
|
|
1502
|
-
proofHeight: undefined,
|
|
1503
|
-
merklePath: undefined,
|
|
1504
|
-
value: new Uint8Array(0),
|
|
1505
|
-
timeDelay: 0,
|
|
1506
|
-
blockDelay: 0,
|
|
1507
|
-
};
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
export const QueryVerifyMembershipRequest: MessageFns<QueryVerifyMembershipRequest> = {
|
|
1511
|
-
encode(message: QueryVerifyMembershipRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1512
|
-
if (message.clientId !== "") {
|
|
1513
|
-
writer.uint32(10).string(message.clientId);
|
|
1514
|
-
}
|
|
1515
|
-
if (message.proof.length !== 0) {
|
|
1516
|
-
writer.uint32(18).bytes(message.proof);
|
|
1517
|
-
}
|
|
1518
|
-
if (message.proofHeight !== undefined) {
|
|
1519
|
-
Height.encode(message.proofHeight, writer.uint32(26).fork()).join();
|
|
1520
|
-
}
|
|
1521
|
-
if (message.merklePath !== undefined) {
|
|
1522
|
-
MerklePath.encode(message.merklePath, writer.uint32(34).fork()).join();
|
|
1523
|
-
}
|
|
1524
|
-
if (message.value.length !== 0) {
|
|
1525
|
-
writer.uint32(42).bytes(message.value);
|
|
1526
|
-
}
|
|
1527
|
-
if (message.timeDelay !== 0) {
|
|
1528
|
-
writer.uint32(48).uint64(message.timeDelay);
|
|
1529
|
-
}
|
|
1530
|
-
if (message.blockDelay !== 0) {
|
|
1531
|
-
writer.uint32(56).uint64(message.blockDelay);
|
|
1532
|
-
}
|
|
1533
|
-
return writer;
|
|
1534
|
-
},
|
|
1535
|
-
|
|
1536
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryVerifyMembershipRequest {
|
|
1537
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1538
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1539
|
-
const message = createBaseQueryVerifyMembershipRequest();
|
|
1540
|
-
while (reader.pos < end) {
|
|
1541
|
-
const tag = reader.uint32();
|
|
1542
|
-
switch (tag >>> 3) {
|
|
1543
|
-
case 1: {
|
|
1544
|
-
if (tag !== 10) {
|
|
1545
|
-
break;
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
message.clientId = reader.string();
|
|
1549
|
-
continue;
|
|
1550
|
-
}
|
|
1551
|
-
case 2: {
|
|
1552
|
-
if (tag !== 18) {
|
|
1553
|
-
break;
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
message.proof = reader.bytes();
|
|
1557
|
-
continue;
|
|
1558
|
-
}
|
|
1559
|
-
case 3: {
|
|
1560
|
-
if (tag !== 26) {
|
|
1561
|
-
break;
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1565
|
-
continue;
|
|
1566
|
-
}
|
|
1567
|
-
case 4: {
|
|
1568
|
-
if (tag !== 34) {
|
|
1569
|
-
break;
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
message.merklePath = MerklePath.decode(reader, reader.uint32());
|
|
1573
|
-
continue;
|
|
1574
|
-
}
|
|
1575
|
-
case 5: {
|
|
1576
|
-
if (tag !== 42) {
|
|
1577
|
-
break;
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
message.value = reader.bytes();
|
|
1581
|
-
continue;
|
|
1582
|
-
}
|
|
1583
|
-
case 6: {
|
|
1584
|
-
if (tag !== 48) {
|
|
1585
|
-
break;
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
message.timeDelay = longToNumber(reader.uint64());
|
|
1589
|
-
continue;
|
|
1590
|
-
}
|
|
1591
|
-
case 7: {
|
|
1592
|
-
if (tag !== 56) {
|
|
1593
|
-
break;
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
message.blockDelay = longToNumber(reader.uint64());
|
|
1597
|
-
continue;
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1601
|
-
break;
|
|
1602
|
-
}
|
|
1603
|
-
reader.skip(tag & 7);
|
|
1604
|
-
}
|
|
1605
|
-
return message;
|
|
1606
|
-
},
|
|
1607
|
-
|
|
1608
|
-
fromJSON(object: any): QueryVerifyMembershipRequest {
|
|
1609
|
-
return {
|
|
1610
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
1611
|
-
proof: isSet(object.proof) ? bytesFromBase64(object.proof) : new Uint8Array(0),
|
|
1612
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
1613
|
-
merklePath: isSet(object.merklePath) ? MerklePath.fromJSON(object.merklePath) : undefined,
|
|
1614
|
-
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
|
|
1615
|
-
timeDelay: isSet(object.timeDelay) ? globalThis.Number(object.timeDelay) : 0,
|
|
1616
|
-
blockDelay: isSet(object.blockDelay) ? globalThis.Number(object.blockDelay) : 0,
|
|
1617
|
-
};
|
|
1618
|
-
},
|
|
1619
|
-
|
|
1620
|
-
toJSON(message: QueryVerifyMembershipRequest): unknown {
|
|
1621
|
-
const obj: any = {};
|
|
1622
|
-
if (message.clientId !== "") {
|
|
1623
|
-
obj.clientId = message.clientId;
|
|
1624
|
-
}
|
|
1625
|
-
if (message.proof.length !== 0) {
|
|
1626
|
-
obj.proof = base64FromBytes(message.proof);
|
|
1627
|
-
}
|
|
1628
|
-
if (message.proofHeight !== undefined) {
|
|
1629
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
1630
|
-
}
|
|
1631
|
-
if (message.merklePath !== undefined) {
|
|
1632
|
-
obj.merklePath = MerklePath.toJSON(message.merklePath);
|
|
1633
|
-
}
|
|
1634
|
-
if (message.value.length !== 0) {
|
|
1635
|
-
obj.value = base64FromBytes(message.value);
|
|
1636
|
-
}
|
|
1637
|
-
if (message.timeDelay !== 0) {
|
|
1638
|
-
obj.timeDelay = Math.round(message.timeDelay);
|
|
1639
|
-
}
|
|
1640
|
-
if (message.blockDelay !== 0) {
|
|
1641
|
-
obj.blockDelay = Math.round(message.blockDelay);
|
|
1642
|
-
}
|
|
1643
|
-
return obj;
|
|
1644
|
-
},
|
|
1645
|
-
|
|
1646
|
-
create<I extends Exact<DeepPartial<QueryVerifyMembershipRequest>, I>>(base?: I): QueryVerifyMembershipRequest {
|
|
1647
|
-
return QueryVerifyMembershipRequest.fromPartial(base ?? ({} as any));
|
|
1648
|
-
},
|
|
1649
|
-
fromPartial<I extends Exact<DeepPartial<QueryVerifyMembershipRequest>, I>>(object: I): QueryVerifyMembershipRequest {
|
|
1650
|
-
const message = createBaseQueryVerifyMembershipRequest();
|
|
1651
|
-
message.clientId = object.clientId ?? "";
|
|
1652
|
-
message.proof = object.proof ?? new Uint8Array(0);
|
|
1653
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
1654
|
-
? Height.fromPartial(object.proofHeight)
|
|
1655
|
-
: undefined;
|
|
1656
|
-
message.merklePath = (object.merklePath !== undefined && object.merklePath !== null)
|
|
1657
|
-
? MerklePath.fromPartial(object.merklePath)
|
|
1658
|
-
: undefined;
|
|
1659
|
-
message.value = object.value ?? new Uint8Array(0);
|
|
1660
|
-
message.timeDelay = object.timeDelay ?? 0;
|
|
1661
|
-
message.blockDelay = object.blockDelay ?? 0;
|
|
1662
|
-
return message;
|
|
1663
|
-
},
|
|
1664
|
-
};
|
|
1665
|
-
|
|
1666
|
-
function createBaseQueryVerifyMembershipResponse(): QueryVerifyMembershipResponse {
|
|
1667
|
-
return { success: false };
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
export const QueryVerifyMembershipResponse: MessageFns<QueryVerifyMembershipResponse> = {
|
|
1671
|
-
encode(message: QueryVerifyMembershipResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1672
|
-
if (message.success !== false) {
|
|
1673
|
-
writer.uint32(8).bool(message.success);
|
|
1674
|
-
}
|
|
1675
|
-
return writer;
|
|
1676
|
-
},
|
|
1677
|
-
|
|
1678
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryVerifyMembershipResponse {
|
|
1679
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1680
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1681
|
-
const message = createBaseQueryVerifyMembershipResponse();
|
|
1682
|
-
while (reader.pos < end) {
|
|
1683
|
-
const tag = reader.uint32();
|
|
1684
|
-
switch (tag >>> 3) {
|
|
1685
|
-
case 1: {
|
|
1686
|
-
if (tag !== 8) {
|
|
1687
|
-
break;
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
message.success = reader.bool();
|
|
1691
|
-
continue;
|
|
1692
|
-
}
|
|
1693
|
-
}
|
|
1694
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1695
|
-
break;
|
|
1696
|
-
}
|
|
1697
|
-
reader.skip(tag & 7);
|
|
1698
|
-
}
|
|
1699
|
-
return message;
|
|
1700
|
-
},
|
|
1701
|
-
|
|
1702
|
-
fromJSON(object: any): QueryVerifyMembershipResponse {
|
|
1703
|
-
return { success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
|
|
1704
|
-
},
|
|
1705
|
-
|
|
1706
|
-
toJSON(message: QueryVerifyMembershipResponse): unknown {
|
|
1707
|
-
const obj: any = {};
|
|
1708
|
-
if (message.success !== false) {
|
|
1709
|
-
obj.success = message.success;
|
|
1710
|
-
}
|
|
1711
|
-
return obj;
|
|
1712
|
-
},
|
|
1713
|
-
|
|
1714
|
-
create<I extends Exact<DeepPartial<QueryVerifyMembershipResponse>, I>>(base?: I): QueryVerifyMembershipResponse {
|
|
1715
|
-
return QueryVerifyMembershipResponse.fromPartial(base ?? ({} as any));
|
|
1716
|
-
},
|
|
1717
|
-
fromPartial<I extends Exact<DeepPartial<QueryVerifyMembershipResponse>, I>>(
|
|
1718
|
-
object: I,
|
|
1719
|
-
): QueryVerifyMembershipResponse {
|
|
1720
|
-
const message = createBaseQueryVerifyMembershipResponse();
|
|
1721
|
-
message.success = object.success ?? false;
|
|
1722
|
-
return message;
|
|
1723
|
-
},
|
|
1724
|
-
};
|
|
1725
|
-
|
|
1726
|
-
/** Query provides defines the gRPC querier service */
|
|
1727
|
-
export interface Query {
|
|
1728
|
-
/** ClientState queries an IBC light client. */
|
|
1729
|
-
ClientState(request: QueryClientStateRequest): Promise<QueryClientStateResponse>;
|
|
1730
|
-
/** ClientStates queries all the IBC light clients of a chain. */
|
|
1731
|
-
ClientStates(request: QueryClientStatesRequest): Promise<QueryClientStatesResponse>;
|
|
1732
|
-
/**
|
|
1733
|
-
* ConsensusState queries a consensus state associated with a client state at
|
|
1734
|
-
* a given height.
|
|
1735
|
-
*/
|
|
1736
|
-
ConsensusState(request: QueryConsensusStateRequest): Promise<QueryConsensusStateResponse>;
|
|
1737
|
-
/**
|
|
1738
|
-
* ConsensusStates queries all the consensus state associated with a given
|
|
1739
|
-
* client.
|
|
1740
|
-
*/
|
|
1741
|
-
ConsensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
|
|
1742
|
-
/** ConsensusStateHeights queries the height of every consensus states associated with a given client. */
|
|
1743
|
-
ConsensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise<QueryConsensusStateHeightsResponse>;
|
|
1744
|
-
/** Status queries the status of an IBC client. */
|
|
1745
|
-
ClientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
|
|
1746
|
-
/** ClientParams queries all parameters of the ibc client submodule. */
|
|
1747
|
-
ClientParams(request: QueryClientParamsRequest): Promise<QueryClientParamsResponse>;
|
|
1748
|
-
/** UpgradedClientState queries an Upgraded IBC light client. */
|
|
1749
|
-
UpgradedClientState(request: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse>;
|
|
1750
|
-
/** UpgradedConsensusState queries an Upgraded IBC consensus state. */
|
|
1751
|
-
UpgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
|
|
1752
|
-
/** VerifyMembership queries an IBC light client for proof verification of a value at a given key path. */
|
|
1753
|
-
VerifyMembership(request: QueryVerifyMembershipRequest): Promise<QueryVerifyMembershipResponse>;
|
|
1754
|
-
}
|
|
1755
|
-
|
|
1756
|
-
export const QueryServiceName = "ibc.core.client.v1.Query";
|
|
1757
|
-
export class QueryClientImpl implements Query {
|
|
1758
|
-
private readonly rpc: Rpc;
|
|
1759
|
-
private readonly service: string;
|
|
1760
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
1761
|
-
this.service = opts?.service || QueryServiceName;
|
|
1762
|
-
this.rpc = rpc;
|
|
1763
|
-
this.ClientState = this.ClientState.bind(this);
|
|
1764
|
-
this.ClientStates = this.ClientStates.bind(this);
|
|
1765
|
-
this.ConsensusState = this.ConsensusState.bind(this);
|
|
1766
|
-
this.ConsensusStates = this.ConsensusStates.bind(this);
|
|
1767
|
-
this.ConsensusStateHeights = this.ConsensusStateHeights.bind(this);
|
|
1768
|
-
this.ClientStatus = this.ClientStatus.bind(this);
|
|
1769
|
-
this.ClientParams = this.ClientParams.bind(this);
|
|
1770
|
-
this.UpgradedClientState = this.UpgradedClientState.bind(this);
|
|
1771
|
-
this.UpgradedConsensusState = this.UpgradedConsensusState.bind(this);
|
|
1772
|
-
this.VerifyMembership = this.VerifyMembership.bind(this);
|
|
1773
|
-
}
|
|
1774
|
-
ClientState(request: QueryClientStateRequest): Promise<QueryClientStateResponse> {
|
|
1775
|
-
const data = QueryClientStateRequest.encode(request).finish();
|
|
1776
|
-
const promise = this.rpc.request(this.service, "ClientState", data);
|
|
1777
|
-
return promise.then((data) => QueryClientStateResponse.decode(new BinaryReader(data)));
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
ClientStates(request: QueryClientStatesRequest): Promise<QueryClientStatesResponse> {
|
|
1781
|
-
const data = QueryClientStatesRequest.encode(request).finish();
|
|
1782
|
-
const promise = this.rpc.request(this.service, "ClientStates", data);
|
|
1783
|
-
return promise.then((data) => QueryClientStatesResponse.decode(new BinaryReader(data)));
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
ConsensusState(request: QueryConsensusStateRequest): Promise<QueryConsensusStateResponse> {
|
|
1787
|
-
const data = QueryConsensusStateRequest.encode(request).finish();
|
|
1788
|
-
const promise = this.rpc.request(this.service, "ConsensusState", data);
|
|
1789
|
-
return promise.then((data) => QueryConsensusStateResponse.decode(new BinaryReader(data)));
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
|
-
ConsensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse> {
|
|
1793
|
-
const data = QueryConsensusStatesRequest.encode(request).finish();
|
|
1794
|
-
const promise = this.rpc.request(this.service, "ConsensusStates", data);
|
|
1795
|
-
return promise.then((data) => QueryConsensusStatesResponse.decode(new BinaryReader(data)));
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
ConsensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise<QueryConsensusStateHeightsResponse> {
|
|
1799
|
-
const data = QueryConsensusStateHeightsRequest.encode(request).finish();
|
|
1800
|
-
const promise = this.rpc.request(this.service, "ConsensusStateHeights", data);
|
|
1801
|
-
return promise.then((data) => QueryConsensusStateHeightsResponse.decode(new BinaryReader(data)));
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
ClientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse> {
|
|
1805
|
-
const data = QueryClientStatusRequest.encode(request).finish();
|
|
1806
|
-
const promise = this.rpc.request(this.service, "ClientStatus", data);
|
|
1807
|
-
return promise.then((data) => QueryClientStatusResponse.decode(new BinaryReader(data)));
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
ClientParams(request: QueryClientParamsRequest): Promise<QueryClientParamsResponse> {
|
|
1811
|
-
const data = QueryClientParamsRequest.encode(request).finish();
|
|
1812
|
-
const promise = this.rpc.request(this.service, "ClientParams", data);
|
|
1813
|
-
return promise.then((data) => QueryClientParamsResponse.decode(new BinaryReader(data)));
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
|
-
UpgradedClientState(request: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse> {
|
|
1817
|
-
const data = QueryUpgradedClientStateRequest.encode(request).finish();
|
|
1818
|
-
const promise = this.rpc.request(this.service, "UpgradedClientState", data);
|
|
1819
|
-
return promise.then((data) => QueryUpgradedClientStateResponse.decode(new BinaryReader(data)));
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
UpgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse> {
|
|
1823
|
-
const data = QueryUpgradedConsensusStateRequest.encode(request).finish();
|
|
1824
|
-
const promise = this.rpc.request(this.service, "UpgradedConsensusState", data);
|
|
1825
|
-
return promise.then((data) => QueryUpgradedConsensusStateResponse.decode(new BinaryReader(data)));
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
VerifyMembership(request: QueryVerifyMembershipRequest): Promise<QueryVerifyMembershipResponse> {
|
|
1829
|
-
const data = QueryVerifyMembershipRequest.encode(request).finish();
|
|
1830
|
-
const promise = this.rpc.request(this.service, "VerifyMembership", data);
|
|
1831
|
-
return promise.then((data) => QueryVerifyMembershipResponse.decode(new BinaryReader(data)));
|
|
1832
|
-
}
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
interface Rpc {
|
|
1836
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
1840
|
-
if ((globalThis as any).Buffer) {
|
|
1841
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
1842
|
-
} else {
|
|
1843
|
-
const bin = globalThis.atob(b64);
|
|
1844
|
-
const arr = new Uint8Array(bin.length);
|
|
1845
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
1846
|
-
arr[i] = bin.charCodeAt(i);
|
|
1847
|
-
}
|
|
1848
|
-
return arr;
|
|
1849
|
-
}
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
1853
|
-
if ((globalThis as any).Buffer) {
|
|
1854
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
1855
|
-
} else {
|
|
1856
|
-
const bin: string[] = [];
|
|
1857
|
-
arr.forEach((byte) => {
|
|
1858
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
1859
|
-
});
|
|
1860
|
-
return globalThis.btoa(bin.join(""));
|
|
1861
|
-
}
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1865
|
-
|
|
1866
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
1867
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1868
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1869
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1870
|
-
: Partial<T>;
|
|
1871
|
-
|
|
1872
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1873
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1874
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1875
|
-
|
|
1876
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
1877
|
-
const num = globalThis.Number(int64.toString());
|
|
1878
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1879
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1880
|
-
}
|
|
1881
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1882
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1883
|
-
}
|
|
1884
|
-
return num;
|
|
1885
|
-
}
|
|
1886
|
-
|
|
1887
|
-
function isSet(value: any): boolean {
|
|
1888
|
-
return value !== null && value !== undefined;
|
|
1889
|
-
}
|
|
1890
|
-
|
|
1891
|
-
export interface MessageFns<T> {
|
|
1892
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1893
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1894
|
-
fromJSON(object: any): T;
|
|
1895
|
-
toJSON(message: T): unknown;
|
|
1896
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1897
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1898
|
-
}
|