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