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,1243 +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/connection/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 { Height, IdentifiedClientState } from "../../client/v1/client";
|
|
12
|
-
import { ConnectionEnd, IdentifiedConnection, Params } from "./connection";
|
|
13
|
-
|
|
14
|
-
export const protobufPackage = "ibc.core.connection.v1";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* QueryConnectionRequest is the request type for the Query/Connection RPC
|
|
18
|
-
* method
|
|
19
|
-
*/
|
|
20
|
-
export interface QueryConnectionRequest {
|
|
21
|
-
/** connection unique identifier */
|
|
22
|
-
connectionId: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* QueryConnectionResponse is the response type for the Query/Connection RPC
|
|
27
|
-
* method. Besides the connection end, it includes a proof and the height from
|
|
28
|
-
* which the proof was retrieved.
|
|
29
|
-
*/
|
|
30
|
-
export interface QueryConnectionResponse {
|
|
31
|
-
/** connection associated with the request identifier */
|
|
32
|
-
connection:
|
|
33
|
-
| ConnectionEnd
|
|
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
|
-
* QueryConnectionsRequest is the request type for the Query/Connections RPC
|
|
43
|
-
* method
|
|
44
|
-
*/
|
|
45
|
-
export interface QueryConnectionsRequest {
|
|
46
|
-
pagination: PageRequest | undefined;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* QueryConnectionsResponse is the response type for the Query/Connections RPC
|
|
51
|
-
* method.
|
|
52
|
-
*/
|
|
53
|
-
export interface QueryConnectionsResponse {
|
|
54
|
-
/** list of stored connections of the chain. */
|
|
55
|
-
connections: IdentifiedConnection[];
|
|
56
|
-
/** pagination response */
|
|
57
|
-
pagination:
|
|
58
|
-
| PageResponse
|
|
59
|
-
| undefined;
|
|
60
|
-
/** query block height */
|
|
61
|
-
height: Height | undefined;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* QueryClientConnectionsRequest is the request type for the
|
|
66
|
-
* Query/ClientConnections RPC method
|
|
67
|
-
*/
|
|
68
|
-
export interface QueryClientConnectionsRequest {
|
|
69
|
-
/** client identifier associated with a connection */
|
|
70
|
-
clientId: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* QueryClientConnectionsResponse is the response type for the
|
|
75
|
-
* Query/ClientConnections RPC method
|
|
76
|
-
*/
|
|
77
|
-
export interface QueryClientConnectionsResponse {
|
|
78
|
-
/** slice of all the connection paths associated with a client. */
|
|
79
|
-
connectionPaths: string[];
|
|
80
|
-
/** merkle proof of existence */
|
|
81
|
-
proof: Uint8Array;
|
|
82
|
-
/** height at which the proof was generated */
|
|
83
|
-
proofHeight: Height | undefined;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* QueryConnectionClientStateRequest is the request type for the
|
|
88
|
-
* Query/ConnectionClientState RPC method
|
|
89
|
-
*/
|
|
90
|
-
export interface QueryConnectionClientStateRequest {
|
|
91
|
-
/** connection identifier */
|
|
92
|
-
connectionId: string;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* QueryConnectionClientStateResponse is the response type for the
|
|
97
|
-
* Query/ConnectionClientState RPC method
|
|
98
|
-
*/
|
|
99
|
-
export interface QueryConnectionClientStateResponse {
|
|
100
|
-
/** client state associated with the channel */
|
|
101
|
-
identifiedClientState:
|
|
102
|
-
| IdentifiedClientState
|
|
103
|
-
| undefined;
|
|
104
|
-
/** merkle proof of existence */
|
|
105
|
-
proof: Uint8Array;
|
|
106
|
-
/** height at which the proof was retrieved */
|
|
107
|
-
proofHeight: Height | undefined;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* QueryConnectionConsensusStateRequest is the request type for the
|
|
112
|
-
* Query/ConnectionConsensusState RPC method
|
|
113
|
-
*/
|
|
114
|
-
export interface QueryConnectionConsensusStateRequest {
|
|
115
|
-
/** connection identifier */
|
|
116
|
-
connectionId: string;
|
|
117
|
-
revisionNumber: number;
|
|
118
|
-
revisionHeight: number;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* QueryConnectionConsensusStateResponse is the response type for the
|
|
123
|
-
* Query/ConnectionConsensusState RPC method
|
|
124
|
-
*/
|
|
125
|
-
export interface QueryConnectionConsensusStateResponse {
|
|
126
|
-
/** consensus state associated with the channel */
|
|
127
|
-
consensusState:
|
|
128
|
-
| Any
|
|
129
|
-
| undefined;
|
|
130
|
-
/** client ID associated with the consensus state */
|
|
131
|
-
clientId: string;
|
|
132
|
-
/** merkle proof of existence */
|
|
133
|
-
proof: Uint8Array;
|
|
134
|
-
/** height at which the proof was retrieved */
|
|
135
|
-
proofHeight: Height | undefined;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/** QueryConnectionParamsRequest is the request type for the Query/ConnectionParams RPC method. */
|
|
139
|
-
export interface QueryConnectionParamsRequest {
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/** QueryConnectionParamsResponse is the response type for the Query/ConnectionParams RPC method. */
|
|
143
|
-
export interface QueryConnectionParamsResponse {
|
|
144
|
-
/** params defines the parameters of the module. */
|
|
145
|
-
params: Params | undefined;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function createBaseQueryConnectionRequest(): QueryConnectionRequest {
|
|
149
|
-
return { connectionId: "" };
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export const QueryConnectionRequest: MessageFns<QueryConnectionRequest> = {
|
|
153
|
-
encode(message: QueryConnectionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
154
|
-
if (message.connectionId !== "") {
|
|
155
|
-
writer.uint32(10).string(message.connectionId);
|
|
156
|
-
}
|
|
157
|
-
return writer;
|
|
158
|
-
},
|
|
159
|
-
|
|
160
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionRequest {
|
|
161
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
162
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
163
|
-
const message = createBaseQueryConnectionRequest();
|
|
164
|
-
while (reader.pos < end) {
|
|
165
|
-
const tag = reader.uint32();
|
|
166
|
-
switch (tag >>> 3) {
|
|
167
|
-
case 1: {
|
|
168
|
-
if (tag !== 10) {
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
message.connectionId = reader.string();
|
|
173
|
-
continue;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
reader.skip(tag & 7);
|
|
180
|
-
}
|
|
181
|
-
return message;
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
fromJSON(object: any): QueryConnectionRequest {
|
|
185
|
-
return { connectionId: isSet(object.connectionId) ? globalThis.String(object.connectionId) : "" };
|
|
186
|
-
},
|
|
187
|
-
|
|
188
|
-
toJSON(message: QueryConnectionRequest): unknown {
|
|
189
|
-
const obj: any = {};
|
|
190
|
-
if (message.connectionId !== "") {
|
|
191
|
-
obj.connectionId = message.connectionId;
|
|
192
|
-
}
|
|
193
|
-
return obj;
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
create<I extends Exact<DeepPartial<QueryConnectionRequest>, I>>(base?: I): QueryConnectionRequest {
|
|
197
|
-
return QueryConnectionRequest.fromPartial(base ?? ({} as any));
|
|
198
|
-
},
|
|
199
|
-
fromPartial<I extends Exact<DeepPartial<QueryConnectionRequest>, I>>(object: I): QueryConnectionRequest {
|
|
200
|
-
const message = createBaseQueryConnectionRequest();
|
|
201
|
-
message.connectionId = object.connectionId ?? "";
|
|
202
|
-
return message;
|
|
203
|
-
},
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
function createBaseQueryConnectionResponse(): QueryConnectionResponse {
|
|
207
|
-
return { connection: undefined, proof: new Uint8Array(0), proofHeight: undefined };
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export const QueryConnectionResponse: MessageFns<QueryConnectionResponse> = {
|
|
211
|
-
encode(message: QueryConnectionResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
212
|
-
if (message.connection !== undefined) {
|
|
213
|
-
ConnectionEnd.encode(message.connection, writer.uint32(10).fork()).join();
|
|
214
|
-
}
|
|
215
|
-
if (message.proof.length !== 0) {
|
|
216
|
-
writer.uint32(18).bytes(message.proof);
|
|
217
|
-
}
|
|
218
|
-
if (message.proofHeight !== undefined) {
|
|
219
|
-
Height.encode(message.proofHeight, writer.uint32(26).fork()).join();
|
|
220
|
-
}
|
|
221
|
-
return writer;
|
|
222
|
-
},
|
|
223
|
-
|
|
224
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionResponse {
|
|
225
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
226
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
227
|
-
const message = createBaseQueryConnectionResponse();
|
|
228
|
-
while (reader.pos < end) {
|
|
229
|
-
const tag = reader.uint32();
|
|
230
|
-
switch (tag >>> 3) {
|
|
231
|
-
case 1: {
|
|
232
|
-
if (tag !== 10) {
|
|
233
|
-
break;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
message.connection = ConnectionEnd.decode(reader, reader.uint32());
|
|
237
|
-
continue;
|
|
238
|
-
}
|
|
239
|
-
case 2: {
|
|
240
|
-
if (tag !== 18) {
|
|
241
|
-
break;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
message.proof = reader.bytes();
|
|
245
|
-
continue;
|
|
246
|
-
}
|
|
247
|
-
case 3: {
|
|
248
|
-
if (tag !== 26) {
|
|
249
|
-
break;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
253
|
-
continue;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
257
|
-
break;
|
|
258
|
-
}
|
|
259
|
-
reader.skip(tag & 7);
|
|
260
|
-
}
|
|
261
|
-
return message;
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
fromJSON(object: any): QueryConnectionResponse {
|
|
265
|
-
return {
|
|
266
|
-
connection: isSet(object.connection) ? ConnectionEnd.fromJSON(object.connection) : undefined,
|
|
267
|
-
proof: isSet(object.proof) ? bytesFromBase64(object.proof) : new Uint8Array(0),
|
|
268
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
269
|
-
};
|
|
270
|
-
},
|
|
271
|
-
|
|
272
|
-
toJSON(message: QueryConnectionResponse): unknown {
|
|
273
|
-
const obj: any = {};
|
|
274
|
-
if (message.connection !== undefined) {
|
|
275
|
-
obj.connection = ConnectionEnd.toJSON(message.connection);
|
|
276
|
-
}
|
|
277
|
-
if (message.proof.length !== 0) {
|
|
278
|
-
obj.proof = base64FromBytes(message.proof);
|
|
279
|
-
}
|
|
280
|
-
if (message.proofHeight !== undefined) {
|
|
281
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
282
|
-
}
|
|
283
|
-
return obj;
|
|
284
|
-
},
|
|
285
|
-
|
|
286
|
-
create<I extends Exact<DeepPartial<QueryConnectionResponse>, I>>(base?: I): QueryConnectionResponse {
|
|
287
|
-
return QueryConnectionResponse.fromPartial(base ?? ({} as any));
|
|
288
|
-
},
|
|
289
|
-
fromPartial<I extends Exact<DeepPartial<QueryConnectionResponse>, I>>(object: I): QueryConnectionResponse {
|
|
290
|
-
const message = createBaseQueryConnectionResponse();
|
|
291
|
-
message.connection = (object.connection !== undefined && object.connection !== null)
|
|
292
|
-
? ConnectionEnd.fromPartial(object.connection)
|
|
293
|
-
: undefined;
|
|
294
|
-
message.proof = object.proof ?? new Uint8Array(0);
|
|
295
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
296
|
-
? Height.fromPartial(object.proofHeight)
|
|
297
|
-
: undefined;
|
|
298
|
-
return message;
|
|
299
|
-
},
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
function createBaseQueryConnectionsRequest(): QueryConnectionsRequest {
|
|
303
|
-
return { pagination: undefined };
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
export const QueryConnectionsRequest: MessageFns<QueryConnectionsRequest> = {
|
|
307
|
-
encode(message: QueryConnectionsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
308
|
-
if (message.pagination !== undefined) {
|
|
309
|
-
PageRequest.encode(message.pagination, writer.uint32(10).fork()).join();
|
|
310
|
-
}
|
|
311
|
-
return writer;
|
|
312
|
-
},
|
|
313
|
-
|
|
314
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionsRequest {
|
|
315
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
316
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
317
|
-
const message = createBaseQueryConnectionsRequest();
|
|
318
|
-
while (reader.pos < end) {
|
|
319
|
-
const tag = reader.uint32();
|
|
320
|
-
switch (tag >>> 3) {
|
|
321
|
-
case 1: {
|
|
322
|
-
if (tag !== 10) {
|
|
323
|
-
break;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
327
|
-
continue;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
331
|
-
break;
|
|
332
|
-
}
|
|
333
|
-
reader.skip(tag & 7);
|
|
334
|
-
}
|
|
335
|
-
return message;
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
fromJSON(object: any): QueryConnectionsRequest {
|
|
339
|
-
return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined };
|
|
340
|
-
},
|
|
341
|
-
|
|
342
|
-
toJSON(message: QueryConnectionsRequest): unknown {
|
|
343
|
-
const obj: any = {};
|
|
344
|
-
if (message.pagination !== undefined) {
|
|
345
|
-
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
346
|
-
}
|
|
347
|
-
return obj;
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
create<I extends Exact<DeepPartial<QueryConnectionsRequest>, I>>(base?: I): QueryConnectionsRequest {
|
|
351
|
-
return QueryConnectionsRequest.fromPartial(base ?? ({} as any));
|
|
352
|
-
},
|
|
353
|
-
fromPartial<I extends Exact<DeepPartial<QueryConnectionsRequest>, I>>(object: I): QueryConnectionsRequest {
|
|
354
|
-
const message = createBaseQueryConnectionsRequest();
|
|
355
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
356
|
-
? PageRequest.fromPartial(object.pagination)
|
|
357
|
-
: undefined;
|
|
358
|
-
return message;
|
|
359
|
-
},
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
function createBaseQueryConnectionsResponse(): QueryConnectionsResponse {
|
|
363
|
-
return { connections: [], pagination: undefined, height: undefined };
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
export const QueryConnectionsResponse: MessageFns<QueryConnectionsResponse> = {
|
|
367
|
-
encode(message: QueryConnectionsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
368
|
-
for (const v of message.connections) {
|
|
369
|
-
IdentifiedConnection.encode(v!, writer.uint32(10).fork()).join();
|
|
370
|
-
}
|
|
371
|
-
if (message.pagination !== undefined) {
|
|
372
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
373
|
-
}
|
|
374
|
-
if (message.height !== undefined) {
|
|
375
|
-
Height.encode(message.height, writer.uint32(26).fork()).join();
|
|
376
|
-
}
|
|
377
|
-
return writer;
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionsResponse {
|
|
381
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
382
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
383
|
-
const message = createBaseQueryConnectionsResponse();
|
|
384
|
-
while (reader.pos < end) {
|
|
385
|
-
const tag = reader.uint32();
|
|
386
|
-
switch (tag >>> 3) {
|
|
387
|
-
case 1: {
|
|
388
|
-
if (tag !== 10) {
|
|
389
|
-
break;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
message.connections.push(IdentifiedConnection.decode(reader, reader.uint32()));
|
|
393
|
-
continue;
|
|
394
|
-
}
|
|
395
|
-
case 2: {
|
|
396
|
-
if (tag !== 18) {
|
|
397
|
-
break;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
401
|
-
continue;
|
|
402
|
-
}
|
|
403
|
-
case 3: {
|
|
404
|
-
if (tag !== 26) {
|
|
405
|
-
break;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
message.height = Height.decode(reader, reader.uint32());
|
|
409
|
-
continue;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
413
|
-
break;
|
|
414
|
-
}
|
|
415
|
-
reader.skip(tag & 7);
|
|
416
|
-
}
|
|
417
|
-
return message;
|
|
418
|
-
},
|
|
419
|
-
|
|
420
|
-
fromJSON(object: any): QueryConnectionsResponse {
|
|
421
|
-
return {
|
|
422
|
-
connections: globalThis.Array.isArray(object?.connections)
|
|
423
|
-
? object.connections.map((e: any) => IdentifiedConnection.fromJSON(e))
|
|
424
|
-
: [],
|
|
425
|
-
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
426
|
-
height: isSet(object.height) ? Height.fromJSON(object.height) : undefined,
|
|
427
|
-
};
|
|
428
|
-
},
|
|
429
|
-
|
|
430
|
-
toJSON(message: QueryConnectionsResponse): unknown {
|
|
431
|
-
const obj: any = {};
|
|
432
|
-
if (message.connections?.length) {
|
|
433
|
-
obj.connections = message.connections.map((e) => IdentifiedConnection.toJSON(e));
|
|
434
|
-
}
|
|
435
|
-
if (message.pagination !== undefined) {
|
|
436
|
-
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
437
|
-
}
|
|
438
|
-
if (message.height !== undefined) {
|
|
439
|
-
obj.height = Height.toJSON(message.height);
|
|
440
|
-
}
|
|
441
|
-
return obj;
|
|
442
|
-
},
|
|
443
|
-
|
|
444
|
-
create<I extends Exact<DeepPartial<QueryConnectionsResponse>, I>>(base?: I): QueryConnectionsResponse {
|
|
445
|
-
return QueryConnectionsResponse.fromPartial(base ?? ({} as any));
|
|
446
|
-
},
|
|
447
|
-
fromPartial<I extends Exact<DeepPartial<QueryConnectionsResponse>, I>>(object: I): QueryConnectionsResponse {
|
|
448
|
-
const message = createBaseQueryConnectionsResponse();
|
|
449
|
-
message.connections = object.connections?.map((e) => IdentifiedConnection.fromPartial(e)) || [];
|
|
450
|
-
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
451
|
-
? PageResponse.fromPartial(object.pagination)
|
|
452
|
-
: undefined;
|
|
453
|
-
message.height = (object.height !== undefined && object.height !== null)
|
|
454
|
-
? Height.fromPartial(object.height)
|
|
455
|
-
: undefined;
|
|
456
|
-
return message;
|
|
457
|
-
},
|
|
458
|
-
};
|
|
459
|
-
|
|
460
|
-
function createBaseQueryClientConnectionsRequest(): QueryClientConnectionsRequest {
|
|
461
|
-
return { clientId: "" };
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
export const QueryClientConnectionsRequest: MessageFns<QueryClientConnectionsRequest> = {
|
|
465
|
-
encode(message: QueryClientConnectionsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
466
|
-
if (message.clientId !== "") {
|
|
467
|
-
writer.uint32(10).string(message.clientId);
|
|
468
|
-
}
|
|
469
|
-
return writer;
|
|
470
|
-
},
|
|
471
|
-
|
|
472
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientConnectionsRequest {
|
|
473
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
474
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
475
|
-
const message = createBaseQueryClientConnectionsRequest();
|
|
476
|
-
while (reader.pos < end) {
|
|
477
|
-
const tag = reader.uint32();
|
|
478
|
-
switch (tag >>> 3) {
|
|
479
|
-
case 1: {
|
|
480
|
-
if (tag !== 10) {
|
|
481
|
-
break;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
message.clientId = reader.string();
|
|
485
|
-
continue;
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
489
|
-
break;
|
|
490
|
-
}
|
|
491
|
-
reader.skip(tag & 7);
|
|
492
|
-
}
|
|
493
|
-
return message;
|
|
494
|
-
},
|
|
495
|
-
|
|
496
|
-
fromJSON(object: any): QueryClientConnectionsRequest {
|
|
497
|
-
return { clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "" };
|
|
498
|
-
},
|
|
499
|
-
|
|
500
|
-
toJSON(message: QueryClientConnectionsRequest): unknown {
|
|
501
|
-
const obj: any = {};
|
|
502
|
-
if (message.clientId !== "") {
|
|
503
|
-
obj.clientId = message.clientId;
|
|
504
|
-
}
|
|
505
|
-
return obj;
|
|
506
|
-
},
|
|
507
|
-
|
|
508
|
-
create<I extends Exact<DeepPartial<QueryClientConnectionsRequest>, I>>(base?: I): QueryClientConnectionsRequest {
|
|
509
|
-
return QueryClientConnectionsRequest.fromPartial(base ?? ({} as any));
|
|
510
|
-
},
|
|
511
|
-
fromPartial<I extends Exact<DeepPartial<QueryClientConnectionsRequest>, I>>(
|
|
512
|
-
object: I,
|
|
513
|
-
): QueryClientConnectionsRequest {
|
|
514
|
-
const message = createBaseQueryClientConnectionsRequest();
|
|
515
|
-
message.clientId = object.clientId ?? "";
|
|
516
|
-
return message;
|
|
517
|
-
},
|
|
518
|
-
};
|
|
519
|
-
|
|
520
|
-
function createBaseQueryClientConnectionsResponse(): QueryClientConnectionsResponse {
|
|
521
|
-
return { connectionPaths: [], proof: new Uint8Array(0), proofHeight: undefined };
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
export const QueryClientConnectionsResponse: MessageFns<QueryClientConnectionsResponse> = {
|
|
525
|
-
encode(message: QueryClientConnectionsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
526
|
-
for (const v of message.connectionPaths) {
|
|
527
|
-
writer.uint32(10).string(v!);
|
|
528
|
-
}
|
|
529
|
-
if (message.proof.length !== 0) {
|
|
530
|
-
writer.uint32(18).bytes(message.proof);
|
|
531
|
-
}
|
|
532
|
-
if (message.proofHeight !== undefined) {
|
|
533
|
-
Height.encode(message.proofHeight, writer.uint32(26).fork()).join();
|
|
534
|
-
}
|
|
535
|
-
return writer;
|
|
536
|
-
},
|
|
537
|
-
|
|
538
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryClientConnectionsResponse {
|
|
539
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
540
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
541
|
-
const message = createBaseQueryClientConnectionsResponse();
|
|
542
|
-
while (reader.pos < end) {
|
|
543
|
-
const tag = reader.uint32();
|
|
544
|
-
switch (tag >>> 3) {
|
|
545
|
-
case 1: {
|
|
546
|
-
if (tag !== 10) {
|
|
547
|
-
break;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
message.connectionPaths.push(reader.string());
|
|
551
|
-
continue;
|
|
552
|
-
}
|
|
553
|
-
case 2: {
|
|
554
|
-
if (tag !== 18) {
|
|
555
|
-
break;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
message.proof = reader.bytes();
|
|
559
|
-
continue;
|
|
560
|
-
}
|
|
561
|
-
case 3: {
|
|
562
|
-
if (tag !== 26) {
|
|
563
|
-
break;
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
567
|
-
continue;
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
571
|
-
break;
|
|
572
|
-
}
|
|
573
|
-
reader.skip(tag & 7);
|
|
574
|
-
}
|
|
575
|
-
return message;
|
|
576
|
-
},
|
|
577
|
-
|
|
578
|
-
fromJSON(object: any): QueryClientConnectionsResponse {
|
|
579
|
-
return {
|
|
580
|
-
connectionPaths: globalThis.Array.isArray(object?.connectionPaths)
|
|
581
|
-
? object.connectionPaths.map((e: any) => globalThis.String(e))
|
|
582
|
-
: [],
|
|
583
|
-
proof: isSet(object.proof) ? bytesFromBase64(object.proof) : new Uint8Array(0),
|
|
584
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
585
|
-
};
|
|
586
|
-
},
|
|
587
|
-
|
|
588
|
-
toJSON(message: QueryClientConnectionsResponse): unknown {
|
|
589
|
-
const obj: any = {};
|
|
590
|
-
if (message.connectionPaths?.length) {
|
|
591
|
-
obj.connectionPaths = message.connectionPaths;
|
|
592
|
-
}
|
|
593
|
-
if (message.proof.length !== 0) {
|
|
594
|
-
obj.proof = base64FromBytes(message.proof);
|
|
595
|
-
}
|
|
596
|
-
if (message.proofHeight !== undefined) {
|
|
597
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
598
|
-
}
|
|
599
|
-
return obj;
|
|
600
|
-
},
|
|
601
|
-
|
|
602
|
-
create<I extends Exact<DeepPartial<QueryClientConnectionsResponse>, I>>(base?: I): QueryClientConnectionsResponse {
|
|
603
|
-
return QueryClientConnectionsResponse.fromPartial(base ?? ({} as any));
|
|
604
|
-
},
|
|
605
|
-
fromPartial<I extends Exact<DeepPartial<QueryClientConnectionsResponse>, I>>(
|
|
606
|
-
object: I,
|
|
607
|
-
): QueryClientConnectionsResponse {
|
|
608
|
-
const message = createBaseQueryClientConnectionsResponse();
|
|
609
|
-
message.connectionPaths = object.connectionPaths?.map((e) => e) || [];
|
|
610
|
-
message.proof = object.proof ?? new Uint8Array(0);
|
|
611
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
612
|
-
? Height.fromPartial(object.proofHeight)
|
|
613
|
-
: undefined;
|
|
614
|
-
return message;
|
|
615
|
-
},
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
function createBaseQueryConnectionClientStateRequest(): QueryConnectionClientStateRequest {
|
|
619
|
-
return { connectionId: "" };
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
export const QueryConnectionClientStateRequest: MessageFns<QueryConnectionClientStateRequest> = {
|
|
623
|
-
encode(message: QueryConnectionClientStateRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
624
|
-
if (message.connectionId !== "") {
|
|
625
|
-
writer.uint32(10).string(message.connectionId);
|
|
626
|
-
}
|
|
627
|
-
return writer;
|
|
628
|
-
},
|
|
629
|
-
|
|
630
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionClientStateRequest {
|
|
631
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
632
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
633
|
-
const message = createBaseQueryConnectionClientStateRequest();
|
|
634
|
-
while (reader.pos < end) {
|
|
635
|
-
const tag = reader.uint32();
|
|
636
|
-
switch (tag >>> 3) {
|
|
637
|
-
case 1: {
|
|
638
|
-
if (tag !== 10) {
|
|
639
|
-
break;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
message.connectionId = reader.string();
|
|
643
|
-
continue;
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
647
|
-
break;
|
|
648
|
-
}
|
|
649
|
-
reader.skip(tag & 7);
|
|
650
|
-
}
|
|
651
|
-
return message;
|
|
652
|
-
},
|
|
653
|
-
|
|
654
|
-
fromJSON(object: any): QueryConnectionClientStateRequest {
|
|
655
|
-
return { connectionId: isSet(object.connectionId) ? globalThis.String(object.connectionId) : "" };
|
|
656
|
-
},
|
|
657
|
-
|
|
658
|
-
toJSON(message: QueryConnectionClientStateRequest): unknown {
|
|
659
|
-
const obj: any = {};
|
|
660
|
-
if (message.connectionId !== "") {
|
|
661
|
-
obj.connectionId = message.connectionId;
|
|
662
|
-
}
|
|
663
|
-
return obj;
|
|
664
|
-
},
|
|
665
|
-
|
|
666
|
-
create<I extends Exact<DeepPartial<QueryConnectionClientStateRequest>, I>>(
|
|
667
|
-
base?: I,
|
|
668
|
-
): QueryConnectionClientStateRequest {
|
|
669
|
-
return QueryConnectionClientStateRequest.fromPartial(base ?? ({} as any));
|
|
670
|
-
},
|
|
671
|
-
fromPartial<I extends Exact<DeepPartial<QueryConnectionClientStateRequest>, I>>(
|
|
672
|
-
object: I,
|
|
673
|
-
): QueryConnectionClientStateRequest {
|
|
674
|
-
const message = createBaseQueryConnectionClientStateRequest();
|
|
675
|
-
message.connectionId = object.connectionId ?? "";
|
|
676
|
-
return message;
|
|
677
|
-
},
|
|
678
|
-
};
|
|
679
|
-
|
|
680
|
-
function createBaseQueryConnectionClientStateResponse(): QueryConnectionClientStateResponse {
|
|
681
|
-
return { identifiedClientState: undefined, proof: new Uint8Array(0), proofHeight: undefined };
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
export const QueryConnectionClientStateResponse: MessageFns<QueryConnectionClientStateResponse> = {
|
|
685
|
-
encode(message: QueryConnectionClientStateResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
686
|
-
if (message.identifiedClientState !== undefined) {
|
|
687
|
-
IdentifiedClientState.encode(message.identifiedClientState, writer.uint32(10).fork()).join();
|
|
688
|
-
}
|
|
689
|
-
if (message.proof.length !== 0) {
|
|
690
|
-
writer.uint32(18).bytes(message.proof);
|
|
691
|
-
}
|
|
692
|
-
if (message.proofHeight !== undefined) {
|
|
693
|
-
Height.encode(message.proofHeight, writer.uint32(26).fork()).join();
|
|
694
|
-
}
|
|
695
|
-
return writer;
|
|
696
|
-
},
|
|
697
|
-
|
|
698
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionClientStateResponse {
|
|
699
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
700
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
701
|
-
const message = createBaseQueryConnectionClientStateResponse();
|
|
702
|
-
while (reader.pos < end) {
|
|
703
|
-
const tag = reader.uint32();
|
|
704
|
-
switch (tag >>> 3) {
|
|
705
|
-
case 1: {
|
|
706
|
-
if (tag !== 10) {
|
|
707
|
-
break;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
message.identifiedClientState = IdentifiedClientState.decode(reader, reader.uint32());
|
|
711
|
-
continue;
|
|
712
|
-
}
|
|
713
|
-
case 2: {
|
|
714
|
-
if (tag !== 18) {
|
|
715
|
-
break;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
message.proof = reader.bytes();
|
|
719
|
-
continue;
|
|
720
|
-
}
|
|
721
|
-
case 3: {
|
|
722
|
-
if (tag !== 26) {
|
|
723
|
-
break;
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
727
|
-
continue;
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
731
|
-
break;
|
|
732
|
-
}
|
|
733
|
-
reader.skip(tag & 7);
|
|
734
|
-
}
|
|
735
|
-
return message;
|
|
736
|
-
},
|
|
737
|
-
|
|
738
|
-
fromJSON(object: any): QueryConnectionClientStateResponse {
|
|
739
|
-
return {
|
|
740
|
-
identifiedClientState: isSet(object.identifiedClientState)
|
|
741
|
-
? IdentifiedClientState.fromJSON(object.identifiedClientState)
|
|
742
|
-
: undefined,
|
|
743
|
-
proof: isSet(object.proof) ? bytesFromBase64(object.proof) : new Uint8Array(0),
|
|
744
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
745
|
-
};
|
|
746
|
-
},
|
|
747
|
-
|
|
748
|
-
toJSON(message: QueryConnectionClientStateResponse): unknown {
|
|
749
|
-
const obj: any = {};
|
|
750
|
-
if (message.identifiedClientState !== undefined) {
|
|
751
|
-
obj.identifiedClientState = IdentifiedClientState.toJSON(message.identifiedClientState);
|
|
752
|
-
}
|
|
753
|
-
if (message.proof.length !== 0) {
|
|
754
|
-
obj.proof = base64FromBytes(message.proof);
|
|
755
|
-
}
|
|
756
|
-
if (message.proofHeight !== undefined) {
|
|
757
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
758
|
-
}
|
|
759
|
-
return obj;
|
|
760
|
-
},
|
|
761
|
-
|
|
762
|
-
create<I extends Exact<DeepPartial<QueryConnectionClientStateResponse>, I>>(
|
|
763
|
-
base?: I,
|
|
764
|
-
): QueryConnectionClientStateResponse {
|
|
765
|
-
return QueryConnectionClientStateResponse.fromPartial(base ?? ({} as any));
|
|
766
|
-
},
|
|
767
|
-
fromPartial<I extends Exact<DeepPartial<QueryConnectionClientStateResponse>, I>>(
|
|
768
|
-
object: I,
|
|
769
|
-
): QueryConnectionClientStateResponse {
|
|
770
|
-
const message = createBaseQueryConnectionClientStateResponse();
|
|
771
|
-
message.identifiedClientState =
|
|
772
|
-
(object.identifiedClientState !== undefined && object.identifiedClientState !== null)
|
|
773
|
-
? IdentifiedClientState.fromPartial(object.identifiedClientState)
|
|
774
|
-
: undefined;
|
|
775
|
-
message.proof = object.proof ?? new Uint8Array(0);
|
|
776
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
777
|
-
? Height.fromPartial(object.proofHeight)
|
|
778
|
-
: undefined;
|
|
779
|
-
return message;
|
|
780
|
-
},
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
function createBaseQueryConnectionConsensusStateRequest(): QueryConnectionConsensusStateRequest {
|
|
784
|
-
return { connectionId: "", revisionNumber: 0, revisionHeight: 0 };
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
export const QueryConnectionConsensusStateRequest: MessageFns<QueryConnectionConsensusStateRequest> = {
|
|
788
|
-
encode(message: QueryConnectionConsensusStateRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
789
|
-
if (message.connectionId !== "") {
|
|
790
|
-
writer.uint32(10).string(message.connectionId);
|
|
791
|
-
}
|
|
792
|
-
if (message.revisionNumber !== 0) {
|
|
793
|
-
writer.uint32(16).uint64(message.revisionNumber);
|
|
794
|
-
}
|
|
795
|
-
if (message.revisionHeight !== 0) {
|
|
796
|
-
writer.uint32(24).uint64(message.revisionHeight);
|
|
797
|
-
}
|
|
798
|
-
return writer;
|
|
799
|
-
},
|
|
800
|
-
|
|
801
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionConsensusStateRequest {
|
|
802
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
803
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
804
|
-
const message = createBaseQueryConnectionConsensusStateRequest();
|
|
805
|
-
while (reader.pos < end) {
|
|
806
|
-
const tag = reader.uint32();
|
|
807
|
-
switch (tag >>> 3) {
|
|
808
|
-
case 1: {
|
|
809
|
-
if (tag !== 10) {
|
|
810
|
-
break;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
message.connectionId = reader.string();
|
|
814
|
-
continue;
|
|
815
|
-
}
|
|
816
|
-
case 2: {
|
|
817
|
-
if (tag !== 16) {
|
|
818
|
-
break;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
message.revisionNumber = longToNumber(reader.uint64());
|
|
822
|
-
continue;
|
|
823
|
-
}
|
|
824
|
-
case 3: {
|
|
825
|
-
if (tag !== 24) {
|
|
826
|
-
break;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
message.revisionHeight = longToNumber(reader.uint64());
|
|
830
|
-
continue;
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
834
|
-
break;
|
|
835
|
-
}
|
|
836
|
-
reader.skip(tag & 7);
|
|
837
|
-
}
|
|
838
|
-
return message;
|
|
839
|
-
},
|
|
840
|
-
|
|
841
|
-
fromJSON(object: any): QueryConnectionConsensusStateRequest {
|
|
842
|
-
return {
|
|
843
|
-
connectionId: isSet(object.connectionId) ? globalThis.String(object.connectionId) : "",
|
|
844
|
-
revisionNumber: isSet(object.revisionNumber) ? globalThis.Number(object.revisionNumber) : 0,
|
|
845
|
-
revisionHeight: isSet(object.revisionHeight) ? globalThis.Number(object.revisionHeight) : 0,
|
|
846
|
-
};
|
|
847
|
-
},
|
|
848
|
-
|
|
849
|
-
toJSON(message: QueryConnectionConsensusStateRequest): unknown {
|
|
850
|
-
const obj: any = {};
|
|
851
|
-
if (message.connectionId !== "") {
|
|
852
|
-
obj.connectionId = message.connectionId;
|
|
853
|
-
}
|
|
854
|
-
if (message.revisionNumber !== 0) {
|
|
855
|
-
obj.revisionNumber = Math.round(message.revisionNumber);
|
|
856
|
-
}
|
|
857
|
-
if (message.revisionHeight !== 0) {
|
|
858
|
-
obj.revisionHeight = Math.round(message.revisionHeight);
|
|
859
|
-
}
|
|
860
|
-
return obj;
|
|
861
|
-
},
|
|
862
|
-
|
|
863
|
-
create<I extends Exact<DeepPartial<QueryConnectionConsensusStateRequest>, I>>(
|
|
864
|
-
base?: I,
|
|
865
|
-
): QueryConnectionConsensusStateRequest {
|
|
866
|
-
return QueryConnectionConsensusStateRequest.fromPartial(base ?? ({} as any));
|
|
867
|
-
},
|
|
868
|
-
fromPartial<I extends Exact<DeepPartial<QueryConnectionConsensusStateRequest>, I>>(
|
|
869
|
-
object: I,
|
|
870
|
-
): QueryConnectionConsensusStateRequest {
|
|
871
|
-
const message = createBaseQueryConnectionConsensusStateRequest();
|
|
872
|
-
message.connectionId = object.connectionId ?? "";
|
|
873
|
-
message.revisionNumber = object.revisionNumber ?? 0;
|
|
874
|
-
message.revisionHeight = object.revisionHeight ?? 0;
|
|
875
|
-
return message;
|
|
876
|
-
},
|
|
877
|
-
};
|
|
878
|
-
|
|
879
|
-
function createBaseQueryConnectionConsensusStateResponse(): QueryConnectionConsensusStateResponse {
|
|
880
|
-
return { consensusState: undefined, clientId: "", proof: new Uint8Array(0), proofHeight: undefined };
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
export const QueryConnectionConsensusStateResponse: MessageFns<QueryConnectionConsensusStateResponse> = {
|
|
884
|
-
encode(message: QueryConnectionConsensusStateResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
885
|
-
if (message.consensusState !== undefined) {
|
|
886
|
-
Any.encode(message.consensusState, writer.uint32(10).fork()).join();
|
|
887
|
-
}
|
|
888
|
-
if (message.clientId !== "") {
|
|
889
|
-
writer.uint32(18).string(message.clientId);
|
|
890
|
-
}
|
|
891
|
-
if (message.proof.length !== 0) {
|
|
892
|
-
writer.uint32(26).bytes(message.proof);
|
|
893
|
-
}
|
|
894
|
-
if (message.proofHeight !== undefined) {
|
|
895
|
-
Height.encode(message.proofHeight, writer.uint32(34).fork()).join();
|
|
896
|
-
}
|
|
897
|
-
return writer;
|
|
898
|
-
},
|
|
899
|
-
|
|
900
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionConsensusStateResponse {
|
|
901
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
902
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
903
|
-
const message = createBaseQueryConnectionConsensusStateResponse();
|
|
904
|
-
while (reader.pos < end) {
|
|
905
|
-
const tag = reader.uint32();
|
|
906
|
-
switch (tag >>> 3) {
|
|
907
|
-
case 1: {
|
|
908
|
-
if (tag !== 10) {
|
|
909
|
-
break;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
message.consensusState = Any.decode(reader, reader.uint32());
|
|
913
|
-
continue;
|
|
914
|
-
}
|
|
915
|
-
case 2: {
|
|
916
|
-
if (tag !== 18) {
|
|
917
|
-
break;
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
message.clientId = reader.string();
|
|
921
|
-
continue;
|
|
922
|
-
}
|
|
923
|
-
case 3: {
|
|
924
|
-
if (tag !== 26) {
|
|
925
|
-
break;
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
message.proof = reader.bytes();
|
|
929
|
-
continue;
|
|
930
|
-
}
|
|
931
|
-
case 4: {
|
|
932
|
-
if (tag !== 34) {
|
|
933
|
-
break;
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
937
|
-
continue;
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
941
|
-
break;
|
|
942
|
-
}
|
|
943
|
-
reader.skip(tag & 7);
|
|
944
|
-
}
|
|
945
|
-
return message;
|
|
946
|
-
},
|
|
947
|
-
|
|
948
|
-
fromJSON(object: any): QueryConnectionConsensusStateResponse {
|
|
949
|
-
return {
|
|
950
|
-
consensusState: isSet(object.consensusState) ? Any.fromJSON(object.consensusState) : undefined,
|
|
951
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
952
|
-
proof: isSet(object.proof) ? bytesFromBase64(object.proof) : new Uint8Array(0),
|
|
953
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
954
|
-
};
|
|
955
|
-
},
|
|
956
|
-
|
|
957
|
-
toJSON(message: QueryConnectionConsensusStateResponse): unknown {
|
|
958
|
-
const obj: any = {};
|
|
959
|
-
if (message.consensusState !== undefined) {
|
|
960
|
-
obj.consensusState = Any.toJSON(message.consensusState);
|
|
961
|
-
}
|
|
962
|
-
if (message.clientId !== "") {
|
|
963
|
-
obj.clientId = message.clientId;
|
|
964
|
-
}
|
|
965
|
-
if (message.proof.length !== 0) {
|
|
966
|
-
obj.proof = base64FromBytes(message.proof);
|
|
967
|
-
}
|
|
968
|
-
if (message.proofHeight !== undefined) {
|
|
969
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
970
|
-
}
|
|
971
|
-
return obj;
|
|
972
|
-
},
|
|
973
|
-
|
|
974
|
-
create<I extends Exact<DeepPartial<QueryConnectionConsensusStateResponse>, I>>(
|
|
975
|
-
base?: I,
|
|
976
|
-
): QueryConnectionConsensusStateResponse {
|
|
977
|
-
return QueryConnectionConsensusStateResponse.fromPartial(base ?? ({} as any));
|
|
978
|
-
},
|
|
979
|
-
fromPartial<I extends Exact<DeepPartial<QueryConnectionConsensusStateResponse>, I>>(
|
|
980
|
-
object: I,
|
|
981
|
-
): QueryConnectionConsensusStateResponse {
|
|
982
|
-
const message = createBaseQueryConnectionConsensusStateResponse();
|
|
983
|
-
message.consensusState = (object.consensusState !== undefined && object.consensusState !== null)
|
|
984
|
-
? Any.fromPartial(object.consensusState)
|
|
985
|
-
: undefined;
|
|
986
|
-
message.clientId = object.clientId ?? "";
|
|
987
|
-
message.proof = object.proof ?? new Uint8Array(0);
|
|
988
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
989
|
-
? Height.fromPartial(object.proofHeight)
|
|
990
|
-
: undefined;
|
|
991
|
-
return message;
|
|
992
|
-
},
|
|
993
|
-
};
|
|
994
|
-
|
|
995
|
-
function createBaseQueryConnectionParamsRequest(): QueryConnectionParamsRequest {
|
|
996
|
-
return {};
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
export const QueryConnectionParamsRequest: MessageFns<QueryConnectionParamsRequest> = {
|
|
1000
|
-
encode(_: QueryConnectionParamsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1001
|
-
return writer;
|
|
1002
|
-
},
|
|
1003
|
-
|
|
1004
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionParamsRequest {
|
|
1005
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1006
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1007
|
-
const message = createBaseQueryConnectionParamsRequest();
|
|
1008
|
-
while (reader.pos < end) {
|
|
1009
|
-
const tag = reader.uint32();
|
|
1010
|
-
switch (tag >>> 3) {
|
|
1011
|
-
}
|
|
1012
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1013
|
-
break;
|
|
1014
|
-
}
|
|
1015
|
-
reader.skip(tag & 7);
|
|
1016
|
-
}
|
|
1017
|
-
return message;
|
|
1018
|
-
},
|
|
1019
|
-
|
|
1020
|
-
fromJSON(_: any): QueryConnectionParamsRequest {
|
|
1021
|
-
return {};
|
|
1022
|
-
},
|
|
1023
|
-
|
|
1024
|
-
toJSON(_: QueryConnectionParamsRequest): unknown {
|
|
1025
|
-
const obj: any = {};
|
|
1026
|
-
return obj;
|
|
1027
|
-
},
|
|
1028
|
-
|
|
1029
|
-
create<I extends Exact<DeepPartial<QueryConnectionParamsRequest>, I>>(base?: I): QueryConnectionParamsRequest {
|
|
1030
|
-
return QueryConnectionParamsRequest.fromPartial(base ?? ({} as any));
|
|
1031
|
-
},
|
|
1032
|
-
fromPartial<I extends Exact<DeepPartial<QueryConnectionParamsRequest>, I>>(_: I): QueryConnectionParamsRequest {
|
|
1033
|
-
const message = createBaseQueryConnectionParamsRequest();
|
|
1034
|
-
return message;
|
|
1035
|
-
},
|
|
1036
|
-
};
|
|
1037
|
-
|
|
1038
|
-
function createBaseQueryConnectionParamsResponse(): QueryConnectionParamsResponse {
|
|
1039
|
-
return { params: undefined };
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
export const QueryConnectionParamsResponse: MessageFns<QueryConnectionParamsResponse> = {
|
|
1043
|
-
encode(message: QueryConnectionParamsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1044
|
-
if (message.params !== undefined) {
|
|
1045
|
-
Params.encode(message.params, writer.uint32(10).fork()).join();
|
|
1046
|
-
}
|
|
1047
|
-
return writer;
|
|
1048
|
-
},
|
|
1049
|
-
|
|
1050
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QueryConnectionParamsResponse {
|
|
1051
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1052
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1053
|
-
const message = createBaseQueryConnectionParamsResponse();
|
|
1054
|
-
while (reader.pos < end) {
|
|
1055
|
-
const tag = reader.uint32();
|
|
1056
|
-
switch (tag >>> 3) {
|
|
1057
|
-
case 1: {
|
|
1058
|
-
if (tag !== 10) {
|
|
1059
|
-
break;
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
1063
|
-
continue;
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1067
|
-
break;
|
|
1068
|
-
}
|
|
1069
|
-
reader.skip(tag & 7);
|
|
1070
|
-
}
|
|
1071
|
-
return message;
|
|
1072
|
-
},
|
|
1073
|
-
|
|
1074
|
-
fromJSON(object: any): QueryConnectionParamsResponse {
|
|
1075
|
-
return { params: isSet(object.params) ? Params.fromJSON(object.params) : undefined };
|
|
1076
|
-
},
|
|
1077
|
-
|
|
1078
|
-
toJSON(message: QueryConnectionParamsResponse): unknown {
|
|
1079
|
-
const obj: any = {};
|
|
1080
|
-
if (message.params !== undefined) {
|
|
1081
|
-
obj.params = Params.toJSON(message.params);
|
|
1082
|
-
}
|
|
1083
|
-
return obj;
|
|
1084
|
-
},
|
|
1085
|
-
|
|
1086
|
-
create<I extends Exact<DeepPartial<QueryConnectionParamsResponse>, I>>(base?: I): QueryConnectionParamsResponse {
|
|
1087
|
-
return QueryConnectionParamsResponse.fromPartial(base ?? ({} as any));
|
|
1088
|
-
},
|
|
1089
|
-
fromPartial<I extends Exact<DeepPartial<QueryConnectionParamsResponse>, I>>(
|
|
1090
|
-
object: I,
|
|
1091
|
-
): QueryConnectionParamsResponse {
|
|
1092
|
-
const message = createBaseQueryConnectionParamsResponse();
|
|
1093
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
1094
|
-
? Params.fromPartial(object.params)
|
|
1095
|
-
: undefined;
|
|
1096
|
-
return message;
|
|
1097
|
-
},
|
|
1098
|
-
};
|
|
1099
|
-
|
|
1100
|
-
/** Query provides defines the gRPC querier service */
|
|
1101
|
-
export interface Query {
|
|
1102
|
-
/** Connection queries an IBC connection end. */
|
|
1103
|
-
Connection(request: QueryConnectionRequest): Promise<QueryConnectionResponse>;
|
|
1104
|
-
/** Connections queries all the IBC connections of a chain. */
|
|
1105
|
-
Connections(request: QueryConnectionsRequest): Promise<QueryConnectionsResponse>;
|
|
1106
|
-
/**
|
|
1107
|
-
* ClientConnections queries the connection paths associated with a client
|
|
1108
|
-
* state.
|
|
1109
|
-
*/
|
|
1110
|
-
ClientConnections(request: QueryClientConnectionsRequest): Promise<QueryClientConnectionsResponse>;
|
|
1111
|
-
/**
|
|
1112
|
-
* ConnectionClientState queries the client state associated with the
|
|
1113
|
-
* connection.
|
|
1114
|
-
*/
|
|
1115
|
-
ConnectionClientState(request: QueryConnectionClientStateRequest): Promise<QueryConnectionClientStateResponse>;
|
|
1116
|
-
/**
|
|
1117
|
-
* ConnectionConsensusState queries the consensus state associated with the
|
|
1118
|
-
* connection.
|
|
1119
|
-
*/
|
|
1120
|
-
ConnectionConsensusState(
|
|
1121
|
-
request: QueryConnectionConsensusStateRequest,
|
|
1122
|
-
): Promise<QueryConnectionConsensusStateResponse>;
|
|
1123
|
-
/** ConnectionParams queries all parameters of the ibc connection submodule. */
|
|
1124
|
-
ConnectionParams(request: QueryConnectionParamsRequest): Promise<QueryConnectionParamsResponse>;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
export const QueryServiceName = "ibc.core.connection.v1.Query";
|
|
1128
|
-
export class QueryClientImpl implements Query {
|
|
1129
|
-
private readonly rpc: Rpc;
|
|
1130
|
-
private readonly service: string;
|
|
1131
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
1132
|
-
this.service = opts?.service || QueryServiceName;
|
|
1133
|
-
this.rpc = rpc;
|
|
1134
|
-
this.Connection = this.Connection.bind(this);
|
|
1135
|
-
this.Connections = this.Connections.bind(this);
|
|
1136
|
-
this.ClientConnections = this.ClientConnections.bind(this);
|
|
1137
|
-
this.ConnectionClientState = this.ConnectionClientState.bind(this);
|
|
1138
|
-
this.ConnectionConsensusState = this.ConnectionConsensusState.bind(this);
|
|
1139
|
-
this.ConnectionParams = this.ConnectionParams.bind(this);
|
|
1140
|
-
}
|
|
1141
|
-
Connection(request: QueryConnectionRequest): Promise<QueryConnectionResponse> {
|
|
1142
|
-
const data = QueryConnectionRequest.encode(request).finish();
|
|
1143
|
-
const promise = this.rpc.request(this.service, "Connection", data);
|
|
1144
|
-
return promise.then((data) => QueryConnectionResponse.decode(new BinaryReader(data)));
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
Connections(request: QueryConnectionsRequest): Promise<QueryConnectionsResponse> {
|
|
1148
|
-
const data = QueryConnectionsRequest.encode(request).finish();
|
|
1149
|
-
const promise = this.rpc.request(this.service, "Connections", data);
|
|
1150
|
-
return promise.then((data) => QueryConnectionsResponse.decode(new BinaryReader(data)));
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
ClientConnections(request: QueryClientConnectionsRequest): Promise<QueryClientConnectionsResponse> {
|
|
1154
|
-
const data = QueryClientConnectionsRequest.encode(request).finish();
|
|
1155
|
-
const promise = this.rpc.request(this.service, "ClientConnections", data);
|
|
1156
|
-
return promise.then((data) => QueryClientConnectionsResponse.decode(new BinaryReader(data)));
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
ConnectionClientState(request: QueryConnectionClientStateRequest): Promise<QueryConnectionClientStateResponse> {
|
|
1160
|
-
const data = QueryConnectionClientStateRequest.encode(request).finish();
|
|
1161
|
-
const promise = this.rpc.request(this.service, "ConnectionClientState", data);
|
|
1162
|
-
return promise.then((data) => QueryConnectionClientStateResponse.decode(new BinaryReader(data)));
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
ConnectionConsensusState(
|
|
1166
|
-
request: QueryConnectionConsensusStateRequest,
|
|
1167
|
-
): Promise<QueryConnectionConsensusStateResponse> {
|
|
1168
|
-
const data = QueryConnectionConsensusStateRequest.encode(request).finish();
|
|
1169
|
-
const promise = this.rpc.request(this.service, "ConnectionConsensusState", data);
|
|
1170
|
-
return promise.then((data) => QueryConnectionConsensusStateResponse.decode(new BinaryReader(data)));
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
ConnectionParams(request: QueryConnectionParamsRequest): Promise<QueryConnectionParamsResponse> {
|
|
1174
|
-
const data = QueryConnectionParamsRequest.encode(request).finish();
|
|
1175
|
-
const promise = this.rpc.request(this.service, "ConnectionParams", data);
|
|
1176
|
-
return promise.then((data) => QueryConnectionParamsResponse.decode(new BinaryReader(data)));
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
interface Rpc {
|
|
1181
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
1185
|
-
if ((globalThis as any).Buffer) {
|
|
1186
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
1187
|
-
} else {
|
|
1188
|
-
const bin = globalThis.atob(b64);
|
|
1189
|
-
const arr = new Uint8Array(bin.length);
|
|
1190
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
1191
|
-
arr[i] = bin.charCodeAt(i);
|
|
1192
|
-
}
|
|
1193
|
-
return arr;
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
1198
|
-
if ((globalThis as any).Buffer) {
|
|
1199
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
1200
|
-
} else {
|
|
1201
|
-
const bin: string[] = [];
|
|
1202
|
-
arr.forEach((byte) => {
|
|
1203
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
1204
|
-
});
|
|
1205
|
-
return globalThis.btoa(bin.join(""));
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1210
|
-
|
|
1211
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
1212
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
1213
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1214
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1215
|
-
: Partial<T>;
|
|
1216
|
-
|
|
1217
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1218
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1219
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1220
|
-
|
|
1221
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
1222
|
-
const num = globalThis.Number(int64.toString());
|
|
1223
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1224
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1225
|
-
}
|
|
1226
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1227
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1228
|
-
}
|
|
1229
|
-
return num;
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
function isSet(value: any): boolean {
|
|
1233
|
-
return value !== null && value !== undefined;
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
export interface MessageFns<T> {
|
|
1237
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1238
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1239
|
-
fromJSON(object: any): T;
|
|
1240
|
-
toJSON(message: T): unknown;
|
|
1241
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1242
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1243
|
-
}
|