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,840 +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/connection.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { MerklePrefix } from "../../commitment/v1/commitment";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "ibc.core.connection.v1";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* State defines if a connection is in one of the following states:
|
|
15
|
-
* INIT, TRYOPEN, OPEN or UNINITIALIZED.
|
|
16
|
-
*/
|
|
17
|
-
export enum State {
|
|
18
|
-
/** STATE_UNINITIALIZED_UNSPECIFIED - Default State */
|
|
19
|
-
STATE_UNINITIALIZED_UNSPECIFIED = 0,
|
|
20
|
-
/** STATE_INIT - A connection end has just started the opening handshake. */
|
|
21
|
-
STATE_INIT = 1,
|
|
22
|
-
/**
|
|
23
|
-
* STATE_TRYOPEN - A connection end has acknowledged the handshake step on the counterparty
|
|
24
|
-
* chain.
|
|
25
|
-
*/
|
|
26
|
-
STATE_TRYOPEN = 2,
|
|
27
|
-
/** STATE_OPEN - A connection end has completed the handshake. */
|
|
28
|
-
STATE_OPEN = 3,
|
|
29
|
-
UNRECOGNIZED = -1,
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export function stateFromJSON(object: any): State {
|
|
33
|
-
switch (object) {
|
|
34
|
-
case 0:
|
|
35
|
-
case "STATE_UNINITIALIZED_UNSPECIFIED":
|
|
36
|
-
return State.STATE_UNINITIALIZED_UNSPECIFIED;
|
|
37
|
-
case 1:
|
|
38
|
-
case "STATE_INIT":
|
|
39
|
-
return State.STATE_INIT;
|
|
40
|
-
case 2:
|
|
41
|
-
case "STATE_TRYOPEN":
|
|
42
|
-
return State.STATE_TRYOPEN;
|
|
43
|
-
case 3:
|
|
44
|
-
case "STATE_OPEN":
|
|
45
|
-
return State.STATE_OPEN;
|
|
46
|
-
case -1:
|
|
47
|
-
case "UNRECOGNIZED":
|
|
48
|
-
default:
|
|
49
|
-
return State.UNRECOGNIZED;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function stateToJSON(object: State): string {
|
|
54
|
-
switch (object) {
|
|
55
|
-
case State.STATE_UNINITIALIZED_UNSPECIFIED:
|
|
56
|
-
return "STATE_UNINITIALIZED_UNSPECIFIED";
|
|
57
|
-
case State.STATE_INIT:
|
|
58
|
-
return "STATE_INIT";
|
|
59
|
-
case State.STATE_TRYOPEN:
|
|
60
|
-
return "STATE_TRYOPEN";
|
|
61
|
-
case State.STATE_OPEN:
|
|
62
|
-
return "STATE_OPEN";
|
|
63
|
-
case State.UNRECOGNIZED:
|
|
64
|
-
default:
|
|
65
|
-
return "UNRECOGNIZED";
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* ConnectionEnd defines a stateful object on a chain connected to another
|
|
71
|
-
* separate one.
|
|
72
|
-
* NOTE: there must only be 2 defined ConnectionEnds to establish
|
|
73
|
-
* a connection between two chains.
|
|
74
|
-
*/
|
|
75
|
-
export interface ConnectionEnd {
|
|
76
|
-
/** client associated with this connection. */
|
|
77
|
-
clientId: string;
|
|
78
|
-
/**
|
|
79
|
-
* IBC version which can be utilised to determine encodings or protocols for
|
|
80
|
-
* channels or packets utilising this connection.
|
|
81
|
-
*/
|
|
82
|
-
versions: Version[];
|
|
83
|
-
/** current state of the connection end. */
|
|
84
|
-
state: State;
|
|
85
|
-
/** counterparty chain associated with this connection. */
|
|
86
|
-
counterparty:
|
|
87
|
-
| Counterparty
|
|
88
|
-
| undefined;
|
|
89
|
-
/**
|
|
90
|
-
* delay period that must pass before a consensus state can be used for
|
|
91
|
-
* packet-verification NOTE: delay period logic is only implemented by some
|
|
92
|
-
* clients.
|
|
93
|
-
*/
|
|
94
|
-
delayPeriod: number;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* IdentifiedConnection defines a connection with additional connection
|
|
99
|
-
* identifier field.
|
|
100
|
-
*/
|
|
101
|
-
export interface IdentifiedConnection {
|
|
102
|
-
/** connection identifier. */
|
|
103
|
-
id: string;
|
|
104
|
-
/** client associated with this connection. */
|
|
105
|
-
clientId: string;
|
|
106
|
-
/**
|
|
107
|
-
* IBC version which can be utilised to determine encodings or protocols for
|
|
108
|
-
* channels or packets utilising this connection
|
|
109
|
-
*/
|
|
110
|
-
versions: Version[];
|
|
111
|
-
/** current state of the connection end. */
|
|
112
|
-
state: State;
|
|
113
|
-
/** counterparty chain associated with this connection. */
|
|
114
|
-
counterparty:
|
|
115
|
-
| Counterparty
|
|
116
|
-
| undefined;
|
|
117
|
-
/** delay period associated with this connection. */
|
|
118
|
-
delayPeriod: number;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/** Counterparty defines the counterparty chain associated with a connection end. */
|
|
122
|
-
export interface Counterparty {
|
|
123
|
-
/**
|
|
124
|
-
* identifies the client on the counterparty chain associated with a given
|
|
125
|
-
* connection.
|
|
126
|
-
*/
|
|
127
|
-
clientId: string;
|
|
128
|
-
/**
|
|
129
|
-
* identifies the connection end on the counterparty chain associated with a
|
|
130
|
-
* given connection.
|
|
131
|
-
*/
|
|
132
|
-
connectionId: string;
|
|
133
|
-
/** commitment merkle prefix of the counterparty chain. */
|
|
134
|
-
prefix: MerklePrefix | undefined;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/** ClientPaths define all the connection paths for a client state. */
|
|
138
|
-
export interface ClientPaths {
|
|
139
|
-
/** list of connection paths */
|
|
140
|
-
paths: string[];
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/** ConnectionPaths define all the connection paths for a given client state. */
|
|
144
|
-
export interface ConnectionPaths {
|
|
145
|
-
/** client state unique identifier */
|
|
146
|
-
clientId: string;
|
|
147
|
-
/** list of connection paths */
|
|
148
|
-
paths: string[];
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Version defines the versioning scheme used to negotiate the IBC verison in
|
|
153
|
-
* the connection handshake.
|
|
154
|
-
*/
|
|
155
|
-
export interface Version {
|
|
156
|
-
/** unique version identifier */
|
|
157
|
-
identifier: string;
|
|
158
|
-
/** list of features compatible with the specified identifier */
|
|
159
|
-
features: string[];
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/** Params defines the set of Connection parameters. */
|
|
163
|
-
export interface Params {
|
|
164
|
-
/**
|
|
165
|
-
* maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the
|
|
166
|
-
* largest amount of time that the chain might reasonably take to produce the next block under normal operating
|
|
167
|
-
* conditions. A safe choice is 3-5x the expected time per block.
|
|
168
|
-
*/
|
|
169
|
-
maxExpectedTimePerBlock: number;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
function createBaseConnectionEnd(): ConnectionEnd {
|
|
173
|
-
return { clientId: "", versions: [], state: 0, counterparty: undefined, delayPeriod: 0 };
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export const ConnectionEnd: MessageFns<ConnectionEnd> = {
|
|
177
|
-
encode(message: ConnectionEnd, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
178
|
-
if (message.clientId !== "") {
|
|
179
|
-
writer.uint32(10).string(message.clientId);
|
|
180
|
-
}
|
|
181
|
-
for (const v of message.versions) {
|
|
182
|
-
Version.encode(v!, writer.uint32(18).fork()).join();
|
|
183
|
-
}
|
|
184
|
-
if (message.state !== 0) {
|
|
185
|
-
writer.uint32(24).int32(message.state);
|
|
186
|
-
}
|
|
187
|
-
if (message.counterparty !== undefined) {
|
|
188
|
-
Counterparty.encode(message.counterparty, writer.uint32(34).fork()).join();
|
|
189
|
-
}
|
|
190
|
-
if (message.delayPeriod !== 0) {
|
|
191
|
-
writer.uint32(40).uint64(message.delayPeriod);
|
|
192
|
-
}
|
|
193
|
-
return writer;
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ConnectionEnd {
|
|
197
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
198
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
199
|
-
const message = createBaseConnectionEnd();
|
|
200
|
-
while (reader.pos < end) {
|
|
201
|
-
const tag = reader.uint32();
|
|
202
|
-
switch (tag >>> 3) {
|
|
203
|
-
case 1: {
|
|
204
|
-
if (tag !== 10) {
|
|
205
|
-
break;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
message.clientId = reader.string();
|
|
209
|
-
continue;
|
|
210
|
-
}
|
|
211
|
-
case 2: {
|
|
212
|
-
if (tag !== 18) {
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
message.versions.push(Version.decode(reader, reader.uint32()));
|
|
217
|
-
continue;
|
|
218
|
-
}
|
|
219
|
-
case 3: {
|
|
220
|
-
if (tag !== 24) {
|
|
221
|
-
break;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
message.state = reader.int32() as any;
|
|
225
|
-
continue;
|
|
226
|
-
}
|
|
227
|
-
case 4: {
|
|
228
|
-
if (tag !== 34) {
|
|
229
|
-
break;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
message.counterparty = Counterparty.decode(reader, reader.uint32());
|
|
233
|
-
continue;
|
|
234
|
-
}
|
|
235
|
-
case 5: {
|
|
236
|
-
if (tag !== 40) {
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
message.delayPeriod = longToNumber(reader.uint64());
|
|
241
|
-
continue;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
245
|
-
break;
|
|
246
|
-
}
|
|
247
|
-
reader.skip(tag & 7);
|
|
248
|
-
}
|
|
249
|
-
return message;
|
|
250
|
-
},
|
|
251
|
-
|
|
252
|
-
fromJSON(object: any): ConnectionEnd {
|
|
253
|
-
return {
|
|
254
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
255
|
-
versions: globalThis.Array.isArray(object?.versions) ? object.versions.map((e: any) => Version.fromJSON(e)) : [],
|
|
256
|
-
state: isSet(object.state) ? stateFromJSON(object.state) : 0,
|
|
257
|
-
counterparty: isSet(object.counterparty) ? Counterparty.fromJSON(object.counterparty) : undefined,
|
|
258
|
-
delayPeriod: isSet(object.delayPeriod) ? globalThis.Number(object.delayPeriod) : 0,
|
|
259
|
-
};
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
toJSON(message: ConnectionEnd): unknown {
|
|
263
|
-
const obj: any = {};
|
|
264
|
-
if (message.clientId !== "") {
|
|
265
|
-
obj.clientId = message.clientId;
|
|
266
|
-
}
|
|
267
|
-
if (message.versions?.length) {
|
|
268
|
-
obj.versions = message.versions.map((e) => Version.toJSON(e));
|
|
269
|
-
}
|
|
270
|
-
if (message.state !== 0) {
|
|
271
|
-
obj.state = stateToJSON(message.state);
|
|
272
|
-
}
|
|
273
|
-
if (message.counterparty !== undefined) {
|
|
274
|
-
obj.counterparty = Counterparty.toJSON(message.counterparty);
|
|
275
|
-
}
|
|
276
|
-
if (message.delayPeriod !== 0) {
|
|
277
|
-
obj.delayPeriod = Math.round(message.delayPeriod);
|
|
278
|
-
}
|
|
279
|
-
return obj;
|
|
280
|
-
},
|
|
281
|
-
|
|
282
|
-
create<I extends Exact<DeepPartial<ConnectionEnd>, I>>(base?: I): ConnectionEnd {
|
|
283
|
-
return ConnectionEnd.fromPartial(base ?? ({} as any));
|
|
284
|
-
},
|
|
285
|
-
fromPartial<I extends Exact<DeepPartial<ConnectionEnd>, I>>(object: I): ConnectionEnd {
|
|
286
|
-
const message = createBaseConnectionEnd();
|
|
287
|
-
message.clientId = object.clientId ?? "";
|
|
288
|
-
message.versions = object.versions?.map((e) => Version.fromPartial(e)) || [];
|
|
289
|
-
message.state = object.state ?? 0;
|
|
290
|
-
message.counterparty = (object.counterparty !== undefined && object.counterparty !== null)
|
|
291
|
-
? Counterparty.fromPartial(object.counterparty)
|
|
292
|
-
: undefined;
|
|
293
|
-
message.delayPeriod = object.delayPeriod ?? 0;
|
|
294
|
-
return message;
|
|
295
|
-
},
|
|
296
|
-
};
|
|
297
|
-
|
|
298
|
-
function createBaseIdentifiedConnection(): IdentifiedConnection {
|
|
299
|
-
return { id: "", clientId: "", versions: [], state: 0, counterparty: undefined, delayPeriod: 0 };
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
export const IdentifiedConnection: MessageFns<IdentifiedConnection> = {
|
|
303
|
-
encode(message: IdentifiedConnection, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
304
|
-
if (message.id !== "") {
|
|
305
|
-
writer.uint32(10).string(message.id);
|
|
306
|
-
}
|
|
307
|
-
if (message.clientId !== "") {
|
|
308
|
-
writer.uint32(18).string(message.clientId);
|
|
309
|
-
}
|
|
310
|
-
for (const v of message.versions) {
|
|
311
|
-
Version.encode(v!, writer.uint32(26).fork()).join();
|
|
312
|
-
}
|
|
313
|
-
if (message.state !== 0) {
|
|
314
|
-
writer.uint32(32).int32(message.state);
|
|
315
|
-
}
|
|
316
|
-
if (message.counterparty !== undefined) {
|
|
317
|
-
Counterparty.encode(message.counterparty, writer.uint32(42).fork()).join();
|
|
318
|
-
}
|
|
319
|
-
if (message.delayPeriod !== 0) {
|
|
320
|
-
writer.uint32(48).uint64(message.delayPeriod);
|
|
321
|
-
}
|
|
322
|
-
return writer;
|
|
323
|
-
},
|
|
324
|
-
|
|
325
|
-
decode(input: BinaryReader | Uint8Array, length?: number): IdentifiedConnection {
|
|
326
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
327
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
328
|
-
const message = createBaseIdentifiedConnection();
|
|
329
|
-
while (reader.pos < end) {
|
|
330
|
-
const tag = reader.uint32();
|
|
331
|
-
switch (tag >>> 3) {
|
|
332
|
-
case 1: {
|
|
333
|
-
if (tag !== 10) {
|
|
334
|
-
break;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
message.id = reader.string();
|
|
338
|
-
continue;
|
|
339
|
-
}
|
|
340
|
-
case 2: {
|
|
341
|
-
if (tag !== 18) {
|
|
342
|
-
break;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
message.clientId = reader.string();
|
|
346
|
-
continue;
|
|
347
|
-
}
|
|
348
|
-
case 3: {
|
|
349
|
-
if (tag !== 26) {
|
|
350
|
-
break;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
message.versions.push(Version.decode(reader, reader.uint32()));
|
|
354
|
-
continue;
|
|
355
|
-
}
|
|
356
|
-
case 4: {
|
|
357
|
-
if (tag !== 32) {
|
|
358
|
-
break;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
message.state = reader.int32() as any;
|
|
362
|
-
continue;
|
|
363
|
-
}
|
|
364
|
-
case 5: {
|
|
365
|
-
if (tag !== 42) {
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
message.counterparty = Counterparty.decode(reader, reader.uint32());
|
|
370
|
-
continue;
|
|
371
|
-
}
|
|
372
|
-
case 6: {
|
|
373
|
-
if (tag !== 48) {
|
|
374
|
-
break;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
message.delayPeriod = longToNumber(reader.uint64());
|
|
378
|
-
continue;
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
382
|
-
break;
|
|
383
|
-
}
|
|
384
|
-
reader.skip(tag & 7);
|
|
385
|
-
}
|
|
386
|
-
return message;
|
|
387
|
-
},
|
|
388
|
-
|
|
389
|
-
fromJSON(object: any): IdentifiedConnection {
|
|
390
|
-
return {
|
|
391
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
392
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
393
|
-
versions: globalThis.Array.isArray(object?.versions) ? object.versions.map((e: any) => Version.fromJSON(e)) : [],
|
|
394
|
-
state: isSet(object.state) ? stateFromJSON(object.state) : 0,
|
|
395
|
-
counterparty: isSet(object.counterparty) ? Counterparty.fromJSON(object.counterparty) : undefined,
|
|
396
|
-
delayPeriod: isSet(object.delayPeriod) ? globalThis.Number(object.delayPeriod) : 0,
|
|
397
|
-
};
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
toJSON(message: IdentifiedConnection): unknown {
|
|
401
|
-
const obj: any = {};
|
|
402
|
-
if (message.id !== "") {
|
|
403
|
-
obj.id = message.id;
|
|
404
|
-
}
|
|
405
|
-
if (message.clientId !== "") {
|
|
406
|
-
obj.clientId = message.clientId;
|
|
407
|
-
}
|
|
408
|
-
if (message.versions?.length) {
|
|
409
|
-
obj.versions = message.versions.map((e) => Version.toJSON(e));
|
|
410
|
-
}
|
|
411
|
-
if (message.state !== 0) {
|
|
412
|
-
obj.state = stateToJSON(message.state);
|
|
413
|
-
}
|
|
414
|
-
if (message.counterparty !== undefined) {
|
|
415
|
-
obj.counterparty = Counterparty.toJSON(message.counterparty);
|
|
416
|
-
}
|
|
417
|
-
if (message.delayPeriod !== 0) {
|
|
418
|
-
obj.delayPeriod = Math.round(message.delayPeriod);
|
|
419
|
-
}
|
|
420
|
-
return obj;
|
|
421
|
-
},
|
|
422
|
-
|
|
423
|
-
create<I extends Exact<DeepPartial<IdentifiedConnection>, I>>(base?: I): IdentifiedConnection {
|
|
424
|
-
return IdentifiedConnection.fromPartial(base ?? ({} as any));
|
|
425
|
-
},
|
|
426
|
-
fromPartial<I extends Exact<DeepPartial<IdentifiedConnection>, I>>(object: I): IdentifiedConnection {
|
|
427
|
-
const message = createBaseIdentifiedConnection();
|
|
428
|
-
message.id = object.id ?? "";
|
|
429
|
-
message.clientId = object.clientId ?? "";
|
|
430
|
-
message.versions = object.versions?.map((e) => Version.fromPartial(e)) || [];
|
|
431
|
-
message.state = object.state ?? 0;
|
|
432
|
-
message.counterparty = (object.counterparty !== undefined && object.counterparty !== null)
|
|
433
|
-
? Counterparty.fromPartial(object.counterparty)
|
|
434
|
-
: undefined;
|
|
435
|
-
message.delayPeriod = object.delayPeriod ?? 0;
|
|
436
|
-
return message;
|
|
437
|
-
},
|
|
438
|
-
};
|
|
439
|
-
|
|
440
|
-
function createBaseCounterparty(): Counterparty {
|
|
441
|
-
return { clientId: "", connectionId: "", prefix: undefined };
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
export const Counterparty: MessageFns<Counterparty> = {
|
|
445
|
-
encode(message: Counterparty, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
446
|
-
if (message.clientId !== "") {
|
|
447
|
-
writer.uint32(10).string(message.clientId);
|
|
448
|
-
}
|
|
449
|
-
if (message.connectionId !== "") {
|
|
450
|
-
writer.uint32(18).string(message.connectionId);
|
|
451
|
-
}
|
|
452
|
-
if (message.prefix !== undefined) {
|
|
453
|
-
MerklePrefix.encode(message.prefix, writer.uint32(26).fork()).join();
|
|
454
|
-
}
|
|
455
|
-
return writer;
|
|
456
|
-
},
|
|
457
|
-
|
|
458
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Counterparty {
|
|
459
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
460
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
461
|
-
const message = createBaseCounterparty();
|
|
462
|
-
while (reader.pos < end) {
|
|
463
|
-
const tag = reader.uint32();
|
|
464
|
-
switch (tag >>> 3) {
|
|
465
|
-
case 1: {
|
|
466
|
-
if (tag !== 10) {
|
|
467
|
-
break;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
message.clientId = reader.string();
|
|
471
|
-
continue;
|
|
472
|
-
}
|
|
473
|
-
case 2: {
|
|
474
|
-
if (tag !== 18) {
|
|
475
|
-
break;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
message.connectionId = reader.string();
|
|
479
|
-
continue;
|
|
480
|
-
}
|
|
481
|
-
case 3: {
|
|
482
|
-
if (tag !== 26) {
|
|
483
|
-
break;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
message.prefix = MerklePrefix.decode(reader, reader.uint32());
|
|
487
|
-
continue;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
491
|
-
break;
|
|
492
|
-
}
|
|
493
|
-
reader.skip(tag & 7);
|
|
494
|
-
}
|
|
495
|
-
return message;
|
|
496
|
-
},
|
|
497
|
-
|
|
498
|
-
fromJSON(object: any): Counterparty {
|
|
499
|
-
return {
|
|
500
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
501
|
-
connectionId: isSet(object.connectionId) ? globalThis.String(object.connectionId) : "",
|
|
502
|
-
prefix: isSet(object.prefix) ? MerklePrefix.fromJSON(object.prefix) : undefined,
|
|
503
|
-
};
|
|
504
|
-
},
|
|
505
|
-
|
|
506
|
-
toJSON(message: Counterparty): unknown {
|
|
507
|
-
const obj: any = {};
|
|
508
|
-
if (message.clientId !== "") {
|
|
509
|
-
obj.clientId = message.clientId;
|
|
510
|
-
}
|
|
511
|
-
if (message.connectionId !== "") {
|
|
512
|
-
obj.connectionId = message.connectionId;
|
|
513
|
-
}
|
|
514
|
-
if (message.prefix !== undefined) {
|
|
515
|
-
obj.prefix = MerklePrefix.toJSON(message.prefix);
|
|
516
|
-
}
|
|
517
|
-
return obj;
|
|
518
|
-
},
|
|
519
|
-
|
|
520
|
-
create<I extends Exact<DeepPartial<Counterparty>, I>>(base?: I): Counterparty {
|
|
521
|
-
return Counterparty.fromPartial(base ?? ({} as any));
|
|
522
|
-
},
|
|
523
|
-
fromPartial<I extends Exact<DeepPartial<Counterparty>, I>>(object: I): Counterparty {
|
|
524
|
-
const message = createBaseCounterparty();
|
|
525
|
-
message.clientId = object.clientId ?? "";
|
|
526
|
-
message.connectionId = object.connectionId ?? "";
|
|
527
|
-
message.prefix = (object.prefix !== undefined && object.prefix !== null)
|
|
528
|
-
? MerklePrefix.fromPartial(object.prefix)
|
|
529
|
-
: undefined;
|
|
530
|
-
return message;
|
|
531
|
-
},
|
|
532
|
-
};
|
|
533
|
-
|
|
534
|
-
function createBaseClientPaths(): ClientPaths {
|
|
535
|
-
return { paths: [] };
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
export const ClientPaths: MessageFns<ClientPaths> = {
|
|
539
|
-
encode(message: ClientPaths, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
540
|
-
for (const v of message.paths) {
|
|
541
|
-
writer.uint32(10).string(v!);
|
|
542
|
-
}
|
|
543
|
-
return writer;
|
|
544
|
-
},
|
|
545
|
-
|
|
546
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ClientPaths {
|
|
547
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
548
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
549
|
-
const message = createBaseClientPaths();
|
|
550
|
-
while (reader.pos < end) {
|
|
551
|
-
const tag = reader.uint32();
|
|
552
|
-
switch (tag >>> 3) {
|
|
553
|
-
case 1: {
|
|
554
|
-
if (tag !== 10) {
|
|
555
|
-
break;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
message.paths.push(reader.string());
|
|
559
|
-
continue;
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
563
|
-
break;
|
|
564
|
-
}
|
|
565
|
-
reader.skip(tag & 7);
|
|
566
|
-
}
|
|
567
|
-
return message;
|
|
568
|
-
},
|
|
569
|
-
|
|
570
|
-
fromJSON(object: any): ClientPaths {
|
|
571
|
-
return { paths: globalThis.Array.isArray(object?.paths) ? object.paths.map((e: any) => globalThis.String(e)) : [] };
|
|
572
|
-
},
|
|
573
|
-
|
|
574
|
-
toJSON(message: ClientPaths): unknown {
|
|
575
|
-
const obj: any = {};
|
|
576
|
-
if (message.paths?.length) {
|
|
577
|
-
obj.paths = message.paths;
|
|
578
|
-
}
|
|
579
|
-
return obj;
|
|
580
|
-
},
|
|
581
|
-
|
|
582
|
-
create<I extends Exact<DeepPartial<ClientPaths>, I>>(base?: I): ClientPaths {
|
|
583
|
-
return ClientPaths.fromPartial(base ?? ({} as any));
|
|
584
|
-
},
|
|
585
|
-
fromPartial<I extends Exact<DeepPartial<ClientPaths>, I>>(object: I): ClientPaths {
|
|
586
|
-
const message = createBaseClientPaths();
|
|
587
|
-
message.paths = object.paths?.map((e) => e) || [];
|
|
588
|
-
return message;
|
|
589
|
-
},
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
function createBaseConnectionPaths(): ConnectionPaths {
|
|
593
|
-
return { clientId: "", paths: [] };
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
export const ConnectionPaths: MessageFns<ConnectionPaths> = {
|
|
597
|
-
encode(message: ConnectionPaths, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
598
|
-
if (message.clientId !== "") {
|
|
599
|
-
writer.uint32(10).string(message.clientId);
|
|
600
|
-
}
|
|
601
|
-
for (const v of message.paths) {
|
|
602
|
-
writer.uint32(18).string(v!);
|
|
603
|
-
}
|
|
604
|
-
return writer;
|
|
605
|
-
},
|
|
606
|
-
|
|
607
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ConnectionPaths {
|
|
608
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
609
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
610
|
-
const message = createBaseConnectionPaths();
|
|
611
|
-
while (reader.pos < end) {
|
|
612
|
-
const tag = reader.uint32();
|
|
613
|
-
switch (tag >>> 3) {
|
|
614
|
-
case 1: {
|
|
615
|
-
if (tag !== 10) {
|
|
616
|
-
break;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
message.clientId = reader.string();
|
|
620
|
-
continue;
|
|
621
|
-
}
|
|
622
|
-
case 2: {
|
|
623
|
-
if (tag !== 18) {
|
|
624
|
-
break;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
message.paths.push(reader.string());
|
|
628
|
-
continue;
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
632
|
-
break;
|
|
633
|
-
}
|
|
634
|
-
reader.skip(tag & 7);
|
|
635
|
-
}
|
|
636
|
-
return message;
|
|
637
|
-
},
|
|
638
|
-
|
|
639
|
-
fromJSON(object: any): ConnectionPaths {
|
|
640
|
-
return {
|
|
641
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
642
|
-
paths: globalThis.Array.isArray(object?.paths) ? object.paths.map((e: any) => globalThis.String(e)) : [],
|
|
643
|
-
};
|
|
644
|
-
},
|
|
645
|
-
|
|
646
|
-
toJSON(message: ConnectionPaths): unknown {
|
|
647
|
-
const obj: any = {};
|
|
648
|
-
if (message.clientId !== "") {
|
|
649
|
-
obj.clientId = message.clientId;
|
|
650
|
-
}
|
|
651
|
-
if (message.paths?.length) {
|
|
652
|
-
obj.paths = message.paths;
|
|
653
|
-
}
|
|
654
|
-
return obj;
|
|
655
|
-
},
|
|
656
|
-
|
|
657
|
-
create<I extends Exact<DeepPartial<ConnectionPaths>, I>>(base?: I): ConnectionPaths {
|
|
658
|
-
return ConnectionPaths.fromPartial(base ?? ({} as any));
|
|
659
|
-
},
|
|
660
|
-
fromPartial<I extends Exact<DeepPartial<ConnectionPaths>, I>>(object: I): ConnectionPaths {
|
|
661
|
-
const message = createBaseConnectionPaths();
|
|
662
|
-
message.clientId = object.clientId ?? "";
|
|
663
|
-
message.paths = object.paths?.map((e) => e) || [];
|
|
664
|
-
return message;
|
|
665
|
-
},
|
|
666
|
-
};
|
|
667
|
-
|
|
668
|
-
function createBaseVersion(): Version {
|
|
669
|
-
return { identifier: "", features: [] };
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
export const Version: MessageFns<Version> = {
|
|
673
|
-
encode(message: Version, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
674
|
-
if (message.identifier !== "") {
|
|
675
|
-
writer.uint32(10).string(message.identifier);
|
|
676
|
-
}
|
|
677
|
-
for (const v of message.features) {
|
|
678
|
-
writer.uint32(18).string(v!);
|
|
679
|
-
}
|
|
680
|
-
return writer;
|
|
681
|
-
},
|
|
682
|
-
|
|
683
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Version {
|
|
684
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
685
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
686
|
-
const message = createBaseVersion();
|
|
687
|
-
while (reader.pos < end) {
|
|
688
|
-
const tag = reader.uint32();
|
|
689
|
-
switch (tag >>> 3) {
|
|
690
|
-
case 1: {
|
|
691
|
-
if (tag !== 10) {
|
|
692
|
-
break;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
message.identifier = reader.string();
|
|
696
|
-
continue;
|
|
697
|
-
}
|
|
698
|
-
case 2: {
|
|
699
|
-
if (tag !== 18) {
|
|
700
|
-
break;
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
message.features.push(reader.string());
|
|
704
|
-
continue;
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
708
|
-
break;
|
|
709
|
-
}
|
|
710
|
-
reader.skip(tag & 7);
|
|
711
|
-
}
|
|
712
|
-
return message;
|
|
713
|
-
},
|
|
714
|
-
|
|
715
|
-
fromJSON(object: any): Version {
|
|
716
|
-
return {
|
|
717
|
-
identifier: isSet(object.identifier) ? globalThis.String(object.identifier) : "",
|
|
718
|
-
features: globalThis.Array.isArray(object?.features) ? object.features.map((e: any) => globalThis.String(e)) : [],
|
|
719
|
-
};
|
|
720
|
-
},
|
|
721
|
-
|
|
722
|
-
toJSON(message: Version): unknown {
|
|
723
|
-
const obj: any = {};
|
|
724
|
-
if (message.identifier !== "") {
|
|
725
|
-
obj.identifier = message.identifier;
|
|
726
|
-
}
|
|
727
|
-
if (message.features?.length) {
|
|
728
|
-
obj.features = message.features;
|
|
729
|
-
}
|
|
730
|
-
return obj;
|
|
731
|
-
},
|
|
732
|
-
|
|
733
|
-
create<I extends Exact<DeepPartial<Version>, I>>(base?: I): Version {
|
|
734
|
-
return Version.fromPartial(base ?? ({} as any));
|
|
735
|
-
},
|
|
736
|
-
fromPartial<I extends Exact<DeepPartial<Version>, I>>(object: I): Version {
|
|
737
|
-
const message = createBaseVersion();
|
|
738
|
-
message.identifier = object.identifier ?? "";
|
|
739
|
-
message.features = object.features?.map((e) => e) || [];
|
|
740
|
-
return message;
|
|
741
|
-
},
|
|
742
|
-
};
|
|
743
|
-
|
|
744
|
-
function createBaseParams(): Params {
|
|
745
|
-
return { maxExpectedTimePerBlock: 0 };
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
export const Params: MessageFns<Params> = {
|
|
749
|
-
encode(message: Params, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
750
|
-
if (message.maxExpectedTimePerBlock !== 0) {
|
|
751
|
-
writer.uint32(8).uint64(message.maxExpectedTimePerBlock);
|
|
752
|
-
}
|
|
753
|
-
return writer;
|
|
754
|
-
},
|
|
755
|
-
|
|
756
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Params {
|
|
757
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
758
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
759
|
-
const message = createBaseParams();
|
|
760
|
-
while (reader.pos < end) {
|
|
761
|
-
const tag = reader.uint32();
|
|
762
|
-
switch (tag >>> 3) {
|
|
763
|
-
case 1: {
|
|
764
|
-
if (tag !== 8) {
|
|
765
|
-
break;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
message.maxExpectedTimePerBlock = longToNumber(reader.uint64());
|
|
769
|
-
continue;
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
773
|
-
break;
|
|
774
|
-
}
|
|
775
|
-
reader.skip(tag & 7);
|
|
776
|
-
}
|
|
777
|
-
return message;
|
|
778
|
-
},
|
|
779
|
-
|
|
780
|
-
fromJSON(object: any): Params {
|
|
781
|
-
return {
|
|
782
|
-
maxExpectedTimePerBlock: isSet(object.maxExpectedTimePerBlock)
|
|
783
|
-
? globalThis.Number(object.maxExpectedTimePerBlock)
|
|
784
|
-
: 0,
|
|
785
|
-
};
|
|
786
|
-
},
|
|
787
|
-
|
|
788
|
-
toJSON(message: Params): unknown {
|
|
789
|
-
const obj: any = {};
|
|
790
|
-
if (message.maxExpectedTimePerBlock !== 0) {
|
|
791
|
-
obj.maxExpectedTimePerBlock = Math.round(message.maxExpectedTimePerBlock);
|
|
792
|
-
}
|
|
793
|
-
return obj;
|
|
794
|
-
},
|
|
795
|
-
|
|
796
|
-
create<I extends Exact<DeepPartial<Params>, I>>(base?: I): Params {
|
|
797
|
-
return Params.fromPartial(base ?? ({} as any));
|
|
798
|
-
},
|
|
799
|
-
fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
|
|
800
|
-
const message = createBaseParams();
|
|
801
|
-
message.maxExpectedTimePerBlock = object.maxExpectedTimePerBlock ?? 0;
|
|
802
|
-
return message;
|
|
803
|
-
},
|
|
804
|
-
};
|
|
805
|
-
|
|
806
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
807
|
-
|
|
808
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
809
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
810
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
811
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
812
|
-
: Partial<T>;
|
|
813
|
-
|
|
814
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
815
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
816
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
817
|
-
|
|
818
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
819
|
-
const num = globalThis.Number(int64.toString());
|
|
820
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
821
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
822
|
-
}
|
|
823
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
824
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
825
|
-
}
|
|
826
|
-
return num;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
function isSet(value: any): boolean {
|
|
830
|
-
return value !== null && value !== undefined;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
export interface MessageFns<T> {
|
|
834
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
835
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
836
|
-
fromJSON(object: any): T;
|
|
837
|
-
toJSON(message: T): unknown;
|
|
838
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
839
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
840
|
-
}
|