decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +78 -78
- package/lib/index.js +23 -23
- package/package.json +5 -2
- package/cardchain.cardchain/index.ts +0 -6
- package/cardchain.cardchain/module.ts +0 -1869
- package/cardchain.cardchain/registry.ts +0 -111
- package/cardchain.cardchain/rest.ts +0 -655
- package/cardchain.cardchain/types.ts +0 -63
- package/cardchain.featureflag/index.ts +0 -6
- package/cardchain.featureflag/module.ts +0 -165
- package/cardchain.featureflag/registry.ts +0 -11
- package/cardchain.featureflag/rest.ts +0 -256
- package/cardchain.featureflag/types.ts +0 -9
- package/client.ts +0 -164
- package/cosmos.auth.v1beta1/index.ts +0 -6
- package/cosmos.auth.v1beta1/module.ts +0 -136
- package/cosmos.auth.v1beta1/registry.ts +0 -9
- package/cosmos.auth.v1beta1/rest.ts +0 -403
- package/cosmos.auth.v1beta1/types.ts +0 -13
- package/cosmos.authz.v1beta1/index.ts +0 -6
- package/cosmos.authz.v1beta1/module.ts +0 -206
- package/cosmos.authz.v1beta1/registry.ts +0 -13
- package/cosmos.authz.v1beta1/rest.ts +0 -256
- package/cosmos.authz.v1beta1/types.ts +0 -17
- package/cosmos.bank.v1beta1/index.ts +0 -6
- package/cosmos.bank.v1beta1/module.ts +0 -247
- package/cosmos.bank.v1beta1/registry.ts +0 -15
- package/cosmos.bank.v1beta1/rest.ts +0 -466
- package/cosmos.bank.v1beta1/types.ts +0 -25
- package/cosmos.base.node.v1beta1/index.ts +0 -6
- package/cosmos.base.node.v1beta1/module.ts +0 -95
- package/cosmos.base.node.v1beta1/registry.ts +0 -7
- package/cosmos.base.node.v1beta1/rest.ts +0 -235
- package/cosmos.base.node.v1beta1/types.ts +0 -5
- package/cosmos.base.tendermint.v1beta1/index.ts +0 -6
- package/cosmos.base.tendermint.v1beta1/module.ts +0 -109
- package/cosmos.base.tendermint.v1beta1/registry.ts +0 -7
- package/cosmos.base.tendermint.v1beta1/rest.ts +0 -340
- package/cosmos.base.tendermint.v1beta1/types.ts +0 -19
- package/cosmos.circuit.v1/index.ts +0 -6
- package/cosmos.circuit.v1/module.ts +0 -198
- package/cosmos.circuit.v1/registry.ts +0 -13
- package/cosmos.circuit.v1/rest.ts +0 -256
- package/cosmos.circuit.v1/types.ts +0 -9
- package/cosmos.consensus.v1/index.ts +0 -6
- package/cosmos.consensus.v1/module.ts +0 -128
- package/cosmos.consensus.v1/registry.ts +0 -9
- package/cosmos.consensus.v1/rest.ts +0 -214
- package/cosmos.consensus.v1/types.ts +0 -5
- package/cosmos.crisis.v1beta1/index.ts +0 -6
- package/cosmos.crisis.v1beta1/module.ts +0 -161
- package/cosmos.crisis.v1beta1/registry.ts +0 -11
- package/cosmos.crisis.v1beta1/rest.ts +0 -193
- package/cosmos.crisis.v1beta1/types.ts +0 -5
- package/cosmos.distribution.v1beta1/index.ts +0 -6
- package/cosmos.distribution.v1beta1/module.ts +0 -364
- package/cosmos.distribution.v1beta1/registry.ts +0 -21
- package/cosmos.distribution.v1beta1/rest.ts +0 -403
- package/cosmos.distribution.v1beta1/types.ts +0 -43
- package/cosmos.evidence.v1beta1/index.ts +0 -6
- package/cosmos.evidence.v1beta1/module.ts +0 -130
- package/cosmos.evidence.v1beta1/registry.ts +0 -9
- package/cosmos.evidence.v1beta1/rest.ts +0 -235
- package/cosmos.evidence.v1beta1/types.ts +0 -7
- package/cosmos.feegrant.v1beta1/index.ts +0 -6
- package/cosmos.feegrant.v1beta1/module.ts +0 -202
- package/cosmos.feegrant.v1beta1/registry.ts +0 -13
- package/cosmos.feegrant.v1beta1/rest.ts +0 -256
- package/cosmos.feegrant.v1beta1/types.ts +0 -13
- package/cosmos.gov.v1/index.ts +0 -6
- package/cosmos.gov.v1/module.ts +0 -344
- package/cosmos.gov.v1/registry.ts +0 -21
- package/cosmos.gov.v1/rest.ts +0 -382
- package/cosmos.gov.v1/types.ts +0 -23
- package/cosmos.gov.v1beta1/index.ts +0 -6
- package/cosmos.gov.v1beta1/module.ts +0 -245
- package/cosmos.gov.v1beta1/registry.ts +0 -15
- package/cosmos.gov.v1beta1/rest.ts +0 -361
- package/cosmos.gov.v1beta1/types.ts +0 -23
- package/cosmos.group.v1/index.ts +0 -6
- package/cosmos.group.v1/module.ts +0 -599
- package/cosmos.group.v1/registry.ts +0 -35
- package/cosmos.group.v1/rest.ts +0 -487
- package/cosmos.group.v1/types.ts +0 -47
- package/cosmos.mint.v1beta1/index.ts +0 -6
- package/cosmos.mint.v1beta1/module.ts +0 -132
- package/cosmos.mint.v1beta1/registry.ts +0 -9
- package/cosmos.mint.v1beta1/rest.ts +0 -256
- package/cosmos.mint.v1beta1/types.ts +0 -9
- package/cosmos.nft.v1beta1/index.ts +0 -6
- package/cosmos.nft.v1beta1/module.ts +0 -140
- package/cosmos.nft.v1beta1/registry.ts +0 -9
- package/cosmos.nft.v1beta1/rest.ts +0 -340
- package/cosmos.nft.v1beta1/types.ts +0 -17
- package/cosmos.params.v1beta1/index.ts +0 -6
- package/cosmos.params.v1beta1/module.ts +0 -101
- package/cosmos.params.v1beta1/registry.ts +0 -7
- package/cosmos.params.v1beta1/rest.ts +0 -235
- package/cosmos.params.v1beta1/types.ts +0 -11
- package/cosmos.slashing.v1beta1/index.ts +0 -6
- package/cosmos.slashing.v1beta1/module.ts +0 -171
- package/cosmos.slashing.v1beta1/registry.ts +0 -11
- package/cosmos.slashing.v1beta1/rest.ts +0 -256
- package/cosmos.slashing.v1beta1/types.ts +0 -15
- package/cosmos.staking.v1beta1/index.ts +0 -6
- package/cosmos.staking.v1beta1/module.ts +0 -374
- package/cosmos.staking.v1beta1/registry.ts +0 -21
- package/cosmos.staking.v1beta1/rest.ts +0 -487
- package/cosmos.staking.v1beta1/types.ts +0 -53
- package/cosmos.tx.v1beta1/index.ts +0 -6
- package/cosmos.tx.v1beta1/module.ts +0 -121
- package/cosmos.tx.v1beta1/registry.ts +0 -7
- package/cosmos.tx.v1beta1/rest.ts +0 -382
- package/cosmos.tx.v1beta1/types.ts +0 -31
- package/cosmos.upgrade.v1beta1/index.ts +0 -6
- package/cosmos.upgrade.v1beta1/module.ts +0 -169
- package/cosmos.upgrade.v1beta1/registry.ts +0 -11
- package/cosmos.upgrade.v1beta1/rest.ts +0 -298
- package/cosmos.upgrade.v1beta1/types.ts +0 -13
- package/cosmos.vesting.v1beta1/index.ts +0 -6
- package/cosmos.vesting.v1beta1/module.ts +0 -206
- package/cosmos.vesting.v1beta1/registry.ts +0 -13
- package/cosmos.vesting.v1beta1/rest.ts +0 -193
- package/cosmos.vesting.v1beta1/types.ts +0 -17
- package/env.ts +0 -7
- package/helpers.ts +0 -32
- package/ibc.applications.fee.v1/index.ts +0 -6
- package/ibc.applications.fee.v1/module.ts +0 -247
- package/ibc.applications.fee.v1/registry.ts +0 -15
- package/ibc.applications.fee.v1/rest.ts +0 -403
- package/ibc.applications.fee.v1/types.ts +0 -25
- package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -196
- package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -13
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -235
- package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -7
- package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -6
- package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -165
- package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -11
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +0 -214
- package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -9
- package/ibc.applications.transfer.v1/index.ts +0 -6
- package/ibc.applications.transfer.v1/module.ts +0 -169
- package/ibc.applications.transfer.v1/registry.ts +0 -11
- package/ibc.applications.transfer.v1/rest.ts +0 -319
- package/ibc.applications.transfer.v1/types.ts +0 -13
- package/ibc.core.channel.v1/index.ts +0 -6
- package/ibc.core.channel.v1/module.ts +0 -748
- package/ibc.core.channel.v1/registry.ts +0 -45
- package/ibc.core.channel.v1/rest.ts +0 -550
- package/ibc.core.channel.v1/types.ts +0 -31
- package/ibc.core.client.v1/index.ts +0 -6
- package/ibc.core.client.v1/module.ts +0 -344
- package/ibc.core.client.v1/registry.ts +0 -21
- package/ibc.core.client.v1/rest.ts +0 -403
- package/ibc.core.client.v1/types.ts +0 -23
- package/ibc.core.connection.v1/index.ts +0 -6
- package/ibc.core.connection.v1/module.ts +0 -274
- package/ibc.core.connection.v1/registry.ts +0 -17
- package/ibc.core.connection.v1/rest.ts +0 -319
- package/ibc.core.connection.v1/types.ts +0 -19
- package/index.ts +0 -81
- package/modules.ts +0 -5
- package/tsconfig.json +0 -13
- package/types/amino/amino.ts +0 -9
- package/types/capability/v1/capability.ts +0 -263
- package/types/capability/v1/genesis.ts +0 -220
- package/types/cardchain/cardchain/card.ts +0 -712
- package/types/cardchain/cardchain/card_content.ts +0 -116
- package/types/cardchain/cardchain/card_with_image.ts +0 -134
- package/types/cardchain/cardchain/council.ts +0 -502
- package/types/cardchain/cardchain/encounter.ts +0 -307
- package/types/cardchain/cardchain/encounter_with_image.ts +0 -119
- package/types/cardchain/cardchain/genesis.ts +0 -403
- package/types/cardchain/cardchain/image.ts +0 -122
- package/types/cardchain/cardchain/match.ts +0 -453
- package/types/cardchain/cardchain/module/module.ts +0 -99
- package/types/cardchain/cardchain/params.ts +0 -544
- package/types/cardchain/cardchain/query.ts +0 -3786
- package/types/cardchain/cardchain/running_average.ts +0 -116
- package/types/cardchain/cardchain/sell_offer.ts +0 -224
- package/types/cardchain/cardchain/server.ts +0 -144
- package/types/cardchain/cardchain/set.ts +0 -537
- package/types/cardchain/cardchain/set_with_artwork.ts +0 -142
- package/types/cardchain/cardchain/tx.ts +0 -8053
- package/types/cardchain/cardchain/user.ts +0 -955
- package/types/cardchain/cardchain/voting.ts +0 -328
- package/types/cardchain/cardchain/voting_results.ts +0 -227
- package/types/cardchain/cardchain/zealy.ts +0 -116
- package/types/cardchain/featureflag/flag.ts +0 -133
- package/types/cardchain/featureflag/genesis.ts +0 -226
- package/types/cardchain/featureflag/module/module.ts +0 -99
- package/types/cardchain/featureflag/params.ts +0 -78
- package/types/cardchain/featureflag/query.ts +0 -445
- package/types/cardchain/featureflag/tx.ts +0 -373
- package/types/cosmos/app/runtime/v1alpha1/module.ts +0 -389
- package/types/cosmos/app/v1alpha1/config.ts +0 -346
- package/types/cosmos/app/v1alpha1/module.ts +0 -348
- package/types/cosmos/app/v1alpha1/query.ts +0 -175
- package/types/cosmos/auth/module/v1/module.ts +0 -229
- package/types/cosmos/auth/v1beta1/auth.ts +0 -531
- package/types/cosmos/auth/v1beta1/genesis.ts +0 -125
- package/types/cosmos/auth/v1beta1/query.ts +0 -1564
- package/types/cosmos/auth/v1beta1/tx.ts +0 -213
- package/types/cosmos/authz/module/v1/module.ts +0 -78
- package/types/cosmos/authz/v1beta1/authz.ts +0 -411
- package/types/cosmos/authz/v1beta1/event.ts +0 -241
- package/types/cosmos/authz/v1beta1/genesis.ts +0 -101
- package/types/cosmos/authz/v1beta1/query.ts +0 -643
- package/types/cosmos/authz/v1beta1/tx.ts +0 -574
- package/types/cosmos/autocli/v1/options.ts +0 -1049
- package/types/cosmos/autocli/v1/query.ts +0 -291
- package/types/cosmos/bank/module/v1/module.ts +0 -150
- package/types/cosmos/bank/v1beta1/authz.ts +0 -129
- package/types/cosmos/bank/v1beta1/bank.ts +0 -775
- package/types/cosmos/bank/v1beta1/genesis.ts +0 -277
- package/types/cosmos/bank/v1beta1/query.ts +0 -2424
- package/types/cosmos/bank/v1beta1/tx.ts +0 -697
- package/types/cosmos/base/abci/v1beta1/abci.ts +0 -1469
- package/types/cosmos/base/node/v1beta1/query.ts +0 -485
- package/types/cosmos/base/query/v1beta1/pagination.ts +0 -336
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +0 -328
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2092
- package/types/cosmos/base/tendermint/v1beta1/query.ts +0 -2025
- package/types/cosmos/base/tendermint/v1beta1/types.ts +0 -548
- package/types/cosmos/base/v1beta1/coin.ts +0 -209
- package/types/cosmos/circuit/module/v1/module.ts +0 -99
- package/types/cosmos/circuit/v1/query.ts +0 -476
- package/types/cosmos/circuit/v1/tx.ts +0 -576
- package/types/cosmos/circuit/v1/types.ts +0 -362
- package/types/cosmos/consensus/module/v1/module.ts +0 -99
- package/types/cosmos/consensus/v1/query.ts +0 -181
- package/types/cosmos/consensus/v1/tx.ts +0 -271
- package/types/cosmos/crisis/module/v1/module.ts +0 -119
- package/types/cosmos/crisis/v1beta1/genesis.ts +0 -105
- package/types/cosmos/crisis/v1beta1/tx.ts +0 -367
- package/types/cosmos/crypto/ed25519/keys.ts +0 -195
- package/types/cosmos/crypto/hd/v1/hd.ts +0 -178
- package/types/cosmos/crypto/keyring/v1/record.ts +0 -440
- package/types/cosmos/crypto/multisig/keys.ts +0 -124
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -218
- package/types/cosmos/crypto/secp256k1/keys.ts +0 -192
- package/types/cosmos/crypto/secp256r1/keys.ts +0 -193
- package/types/cosmos/distribution/module/v1/module.ts +0 -118
- package/types/cosmos/distribution/v1beta1/distribution.ts +0 -1177
- package/types/cosmos/distribution/v1beta1/genesis.ts +0 -1028
- package/types/cosmos/distribution/v1beta1/query.ts +0 -1700
- package/types/cosmos/distribution/v1beta1/tx.ts +0 -1178
- package/types/cosmos/evidence/module/v1/module.ts +0 -78
- package/types/cosmos/evidence/v1beta1/evidence.ts +0 -194
- package/types/cosmos/evidence/v1beta1/genesis.ts +0 -98
- package/types/cosmos/evidence/v1beta1/query.ts +0 -414
- package/types/cosmos/evidence/v1beta1/tx.ts +0 -243
- package/types/cosmos/feegrant/module/v1/module.ts +0 -78
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +0 -513
- package/types/cosmos/feegrant/v1beta1/genesis.ts +0 -101
- package/types/cosmos/feegrant/v1beta1/query.ts +0 -597
- package/types/cosmos/feegrant/v1beta1/tx.ts +0 -496
- package/types/cosmos/genutil/module/v1/module.ts +0 -78
- package/types/cosmos/genutil/v1beta1/genesis.ts +0 -122
- package/types/cosmos/gov/module/v1/module.ts +0 -133
- package/types/cosmos/gov/v1/genesis.ts +0 -313
- package/types/cosmos/gov/v1/gov.ts +0 -1712
- package/types/cosmos/gov/v1/query.ts +0 -1605
- package/types/cosmos/gov/v1/tx.ts +0 -1387
- package/types/cosmos/gov/v1beta1/genesis.ts +0 -241
- package/types/cosmos/gov/v1beta1/gov.ts +0 -1273
- package/types/cosmos/gov/v1beta1/query.ts +0 -1441
- package/types/cosmos/gov/v1beta1/tx.ts +0 -738
- package/types/cosmos/group/module/v1/module.ts +0 -141
- package/types/cosmos/group/v1/events.ts +0 -795
- package/types/cosmos/group/v1/genesis.ts +0 -265
- package/types/cosmos/group/v1/query.ts +0 -2441
- package/types/cosmos/group/v1/tx.ts +0 -2631
- package/types/cosmos/group/v1/types.ts +0 -1850
- package/types/cosmos/ics23/v1/proofs.ts +0 -1731
- package/types/cosmos/mint/module/v1/module.ts +0 -118
- package/types/cosmos/mint/v1beta1/genesis.ts +0 -126
- package/types/cosmos/mint/v1beta1/mint.ts +0 -293
- package/types/cosmos/mint/v1beta1/query.ts +0 -453
- package/types/cosmos/mint/v1beta1/tx.ts +0 -213
- package/types/cosmos/msg/textual/v1/textual.ts +0 -9
- package/types/cosmos/msg/v1/msg.ts +0 -9
- package/types/cosmos/nft/module/v1/module.ts +0 -78
- package/types/cosmos/nft/v1beta1/event.ts +0 -359
- package/types/cosmos/nft/v1beta1/genesis.ts +0 -204
- package/types/cosmos/nft/v1beta1/nft.ts +0 -348
- package/types/cosmos/nft/v1beta1/query.ts +0 -1173
- package/types/cosmos/nft/v1beta1/tx.ts +0 -228
- package/types/cosmos/orm/module/v1alpha1/module.ts +0 -82
- package/types/cosmos/orm/query/v1alpha1/query.ts +0 -933
- package/types/cosmos/orm/v1/orm.ts +0 -453
- package/types/cosmos/orm/v1alpha1/schema.ts +0 -321
- package/types/cosmos/params/module/v1/module.ts +0 -78
- package/types/cosmos/params/v1beta1/params.ts +0 -236
- package/types/cosmos/params/v1beta1/query.ts +0 -439
- package/types/cosmos/query/v1/query.ts +0 -9
- package/types/cosmos/reflection/v1/reflection.ts +0 -179
- package/types/cosmos/slashing/module/v1/module.ts +0 -99
- package/types/cosmos/slashing/v1beta1/genesis.ts +0 -424
- package/types/cosmos/slashing/v1beta1/query.ts +0 -487
- package/types/cosmos/slashing/v1beta1/slashing.ts +0 -422
- package/types/cosmos/slashing/v1beta1/tx.ts +0 -336
- package/types/cosmos/staking/module/v1/module.ts +0 -161
- package/types/cosmos/staking/v1beta1/authz.ts +0 -306
- package/types/cosmos/staking/v1beta1/genesis.ts +0 -377
- package/types/cosmos/staking/v1beta1/query.ts +0 -2540
- package/types/cosmos/staking/v1beta1/staking.ts +0 -2576
- package/types/cosmos/staking/v1beta1/tx.ts +0 -1433
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +0 -205
- package/types/cosmos/store/snapshots/v1/snapshot.ts +0 -746
- package/types/cosmos/store/streaming/abci/grpc.ts +0 -367
- package/types/cosmos/store/v1beta1/commit_info.ts +0 -370
- package/types/cosmos/store/v1beta1/listening.ts +0 -301
- package/types/cosmos/tx/config/v1/config.ts +0 -125
- package/types/cosmos/tx/signing/v1beta1/signing.ts +0 -630
- package/types/cosmos/tx/v1beta1/service.ts +0 -1889
- package/types/cosmos/tx/v1beta1/tx.ts +0 -1657
- package/types/cosmos/upgrade/module/v1/module.ts +0 -99
- package/types/cosmos/upgrade/v1beta1/query.ts +0 -819
- package/types/cosmos/upgrade/v1beta1/tx.ts +0 -340
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +0 -525
- package/types/cosmos/vesting/module/v1/module.ts +0 -78
- package/types/cosmos/vesting/v1beta1/tx.ts +0 -640
- package/types/cosmos/vesting/v1beta1/vesting.ts +0 -624
- package/types/cosmos_proto/cosmos.ts +0 -307
- package/types/gogoproto/gogo.ts +0 -9
- package/types/google/api/annotations.ts +0 -9
- package/types/google/api/http.ts +0 -770
- package/types/google/protobuf/any.ts +0 -259
- package/types/google/protobuf/descriptor.ts +0 -6642
- package/types/google/protobuf/duration.ts +0 -200
- package/types/google/protobuf/timestamp.ts +0 -229
- package/types/ibc/applications/fee/v1/ack.ts +0 -166
- package/types/ibc/applications/fee/v1/fee.ts +0 -403
- package/types/ibc/applications/fee/v1/genesis.ts +0 -571
- package/types/ibc/applications/fee/v1/metadata.ts +0 -122
- package/types/ibc/applications/fee/v1/query.ts +0 -1757
- package/types/ibc/applications/fee/v1/tx.ts +0 -781
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -104
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -333
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -619
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -590
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +0 -242
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +0 -175
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -416
- package/types/ibc/applications/interchain_accounts/v1/account.ts +0 -120
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +0 -199
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +0 -264
- package/types/ibc/applications/transfer/v1/authz.ts +0 -254
- package/types/ibc/applications/transfer/v1/genesis.ts +0 -165
- package/types/ibc/applications/transfer/v1/query.ts +0 -934
- package/types/ibc/applications/transfer/v1/transfer.ts +0 -220
- package/types/ibc/applications/transfer/v1/tx.ts +0 -505
- package/types/ibc/applications/transfer/v2/packet.ts +0 -177
- package/types/ibc/core/channel/v1/channel.ts +0 -1358
- package/types/ibc/core/channel/v1/genesis.ts +0 -377
- package/types/ibc/core/channel/v1/query.ts +0 -3781
- package/types/ibc/core/channel/v1/tx.ts +0 -4424
- package/types/ibc/core/channel/v1/upgrade.ts +0 -348
- package/types/ibc/core/client/v1/client.ts +0 -753
- package/types/ibc/core/client/v1/genesis.ts +0 -423
- package/types/ibc/core/client/v1/query.ts +0 -1898
- package/types/ibc/core/client/v1/tx.ts +0 -1301
- package/types/ibc/core/commitment/v1/commitment.ts +0 -336
- package/types/ibc/core/connection/v1/connection.ts +0 -840
- package/types/ibc/core/connection/v1/genesis.ts +0 -172
- package/types/ibc/core/connection/v1/query.ts +0 -1243
- package/types/ibc/core/connection/v1/tx.ts +0 -1352
- package/types/ibc/core/types/v1/genesis.ts +0 -150
- package/types/ibc/lightclients/localhost/v2/localhost.ts +0 -102
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +0 -1765
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +0 -945
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +0 -853
- package/types/ibc/lightclients/wasm/v1/genesis.ts +0 -192
- package/types/ibc/lightclients/wasm/v1/query.ts +0 -377
- package/types/ibc/lightclients/wasm/v1/tx.ts +0 -550
- package/types/ibc/lightclients/wasm/v1/wasm.ts +0 -370
- package/types/tendermint/abci/types.ts +0 -6103
- package/types/tendermint/crypto/keys.ts +0 -142
- package/types/tendermint/crypto/proof.ts +0 -533
- package/types/tendermint/libs/bits/types.ts +0 -139
- package/types/tendermint/p2p/types.ts +0 -544
- package/types/tendermint/types/block.ts +0 -158
- package/types/tendermint/types/evidence.ts +0 -502
- package/types/tendermint/types/params.ts +0 -701
- package/types/tendermint/types/types.ts +0 -2133
- package/types/tendermint/types/validator.ts +0 -424
- package/types/tendermint/version/types.ts +0 -218
- package/types.d.ts +0 -21
|
@@ -1,4424 +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/channel/v1/tx.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
import { Height } from "../../client/v1/client";
|
|
10
|
-
import { Channel, Packet, Params, State, stateFromJSON, stateToJSON } from "./channel";
|
|
11
|
-
import { ErrorReceipt, Upgrade, UpgradeFields } from "./upgrade";
|
|
12
|
-
|
|
13
|
-
export const protobufPackage = "ibc.core.channel.v1";
|
|
14
|
-
|
|
15
|
-
/** ResponseResultType defines the possible outcomes of the execution of a message */
|
|
16
|
-
export enum ResponseResultType {
|
|
17
|
-
/** RESPONSE_RESULT_TYPE_UNSPECIFIED - Default zero value enumeration */
|
|
18
|
-
RESPONSE_RESULT_TYPE_UNSPECIFIED = 0,
|
|
19
|
-
/** RESPONSE_RESULT_TYPE_NOOP - The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) */
|
|
20
|
-
RESPONSE_RESULT_TYPE_NOOP = 1,
|
|
21
|
-
/** RESPONSE_RESULT_TYPE_SUCCESS - The message was executed successfully */
|
|
22
|
-
RESPONSE_RESULT_TYPE_SUCCESS = 2,
|
|
23
|
-
/** RESPONSE_RESULT_TYPE_FAILURE - The message was executed unsuccessfully */
|
|
24
|
-
RESPONSE_RESULT_TYPE_FAILURE = 3,
|
|
25
|
-
UNRECOGNIZED = -1,
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export function responseResultTypeFromJSON(object: any): ResponseResultType {
|
|
29
|
-
switch (object) {
|
|
30
|
-
case 0:
|
|
31
|
-
case "RESPONSE_RESULT_TYPE_UNSPECIFIED":
|
|
32
|
-
return ResponseResultType.RESPONSE_RESULT_TYPE_UNSPECIFIED;
|
|
33
|
-
case 1:
|
|
34
|
-
case "RESPONSE_RESULT_TYPE_NOOP":
|
|
35
|
-
return ResponseResultType.RESPONSE_RESULT_TYPE_NOOP;
|
|
36
|
-
case 2:
|
|
37
|
-
case "RESPONSE_RESULT_TYPE_SUCCESS":
|
|
38
|
-
return ResponseResultType.RESPONSE_RESULT_TYPE_SUCCESS;
|
|
39
|
-
case 3:
|
|
40
|
-
case "RESPONSE_RESULT_TYPE_FAILURE":
|
|
41
|
-
return ResponseResultType.RESPONSE_RESULT_TYPE_FAILURE;
|
|
42
|
-
case -1:
|
|
43
|
-
case "UNRECOGNIZED":
|
|
44
|
-
default:
|
|
45
|
-
return ResponseResultType.UNRECOGNIZED;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function responseResultTypeToJSON(object: ResponseResultType): string {
|
|
50
|
-
switch (object) {
|
|
51
|
-
case ResponseResultType.RESPONSE_RESULT_TYPE_UNSPECIFIED:
|
|
52
|
-
return "RESPONSE_RESULT_TYPE_UNSPECIFIED";
|
|
53
|
-
case ResponseResultType.RESPONSE_RESULT_TYPE_NOOP:
|
|
54
|
-
return "RESPONSE_RESULT_TYPE_NOOP";
|
|
55
|
-
case ResponseResultType.RESPONSE_RESULT_TYPE_SUCCESS:
|
|
56
|
-
return "RESPONSE_RESULT_TYPE_SUCCESS";
|
|
57
|
-
case ResponseResultType.RESPONSE_RESULT_TYPE_FAILURE:
|
|
58
|
-
return "RESPONSE_RESULT_TYPE_FAILURE";
|
|
59
|
-
case ResponseResultType.UNRECOGNIZED:
|
|
60
|
-
default:
|
|
61
|
-
return "UNRECOGNIZED";
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It
|
|
67
|
-
* is called by a relayer on Chain A.
|
|
68
|
-
*/
|
|
69
|
-
export interface MsgChannelOpenInit {
|
|
70
|
-
portId: string;
|
|
71
|
-
channel: Channel | undefined;
|
|
72
|
-
signer: string;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */
|
|
76
|
-
export interface MsgChannelOpenInitResponse {
|
|
77
|
-
channelId: string;
|
|
78
|
-
version: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel
|
|
83
|
-
* on Chain B. The version field within the Channel field has been deprecated. Its
|
|
84
|
-
* value will be ignored by core IBC.
|
|
85
|
-
*/
|
|
86
|
-
export interface MsgChannelOpenTry {
|
|
87
|
-
portId: string;
|
|
88
|
-
/**
|
|
89
|
-
* Deprecated: this field is unused. Crossing hello's are no longer supported in core IBC.
|
|
90
|
-
*
|
|
91
|
-
* @deprecated
|
|
92
|
-
*/
|
|
93
|
-
previousChannelId: string;
|
|
94
|
-
/** NOTE: the version field within the channel has been deprecated. Its value will be ignored by core IBC. */
|
|
95
|
-
channel: Channel | undefined;
|
|
96
|
-
counterpartyVersion: string;
|
|
97
|
-
proofInit: Uint8Array;
|
|
98
|
-
proofHeight: Height | undefined;
|
|
99
|
-
signer: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */
|
|
103
|
-
export interface MsgChannelOpenTryResponse {
|
|
104
|
-
version: string;
|
|
105
|
-
channelId: string;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge
|
|
110
|
-
* the change of channel state to TRYOPEN on Chain B.
|
|
111
|
-
* WARNING: a channel upgrade MUST NOT initialize an upgrade for this channel
|
|
112
|
-
* in the same block as executing this message otherwise the counterparty will
|
|
113
|
-
* be incapable of opening.
|
|
114
|
-
*/
|
|
115
|
-
export interface MsgChannelOpenAck {
|
|
116
|
-
portId: string;
|
|
117
|
-
channelId: string;
|
|
118
|
-
counterpartyChannelId: string;
|
|
119
|
-
counterpartyVersion: string;
|
|
120
|
-
proofTry: Uint8Array;
|
|
121
|
-
proofHeight: Height | undefined;
|
|
122
|
-
signer: string;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. */
|
|
126
|
-
export interface MsgChannelOpenAckResponse {
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to
|
|
131
|
-
* acknowledge the change of channel state to OPEN on Chain A.
|
|
132
|
-
*/
|
|
133
|
-
export interface MsgChannelOpenConfirm {
|
|
134
|
-
portId: string;
|
|
135
|
-
channelId: string;
|
|
136
|
-
proofAck: Uint8Array;
|
|
137
|
-
proofHeight: Height | undefined;
|
|
138
|
-
signer: string;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response
|
|
143
|
-
* type.
|
|
144
|
-
*/
|
|
145
|
-
export interface MsgChannelOpenConfirmResponse {
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* MsgChannelCloseInit defines a msg sent by a Relayer to Chain A
|
|
150
|
-
* to close a channel with Chain B.
|
|
151
|
-
*/
|
|
152
|
-
export interface MsgChannelCloseInit {
|
|
153
|
-
portId: string;
|
|
154
|
-
channelId: string;
|
|
155
|
-
signer: string;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/** MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. */
|
|
159
|
-
export interface MsgChannelCloseInitResponse {
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B
|
|
164
|
-
* to acknowledge the change of channel state to CLOSED on Chain A.
|
|
165
|
-
*/
|
|
166
|
-
export interface MsgChannelCloseConfirm {
|
|
167
|
-
portId: string;
|
|
168
|
-
channelId: string;
|
|
169
|
-
proofInit: Uint8Array;
|
|
170
|
-
proofHeight: Height | undefined;
|
|
171
|
-
signer: string;
|
|
172
|
-
counterpartyUpgradeSequence: number;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response
|
|
177
|
-
* type.
|
|
178
|
-
*/
|
|
179
|
-
export interface MsgChannelCloseConfirmResponse {
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/** MsgRecvPacket receives incoming IBC packet */
|
|
183
|
-
export interface MsgRecvPacket {
|
|
184
|
-
packet: Packet | undefined;
|
|
185
|
-
proofCommitment: Uint8Array;
|
|
186
|
-
proofHeight: Height | undefined;
|
|
187
|
-
signer: string;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/** MsgRecvPacketResponse defines the Msg/RecvPacket response type. */
|
|
191
|
-
export interface MsgRecvPacketResponse {
|
|
192
|
-
result: ResponseResultType;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/** MsgTimeout receives timed-out packet */
|
|
196
|
-
export interface MsgTimeout {
|
|
197
|
-
packet: Packet | undefined;
|
|
198
|
-
proofUnreceived: Uint8Array;
|
|
199
|
-
proofHeight: Height | undefined;
|
|
200
|
-
nextSequenceRecv: number;
|
|
201
|
-
signer: string;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/** MsgTimeoutResponse defines the Msg/Timeout response type. */
|
|
205
|
-
export interface MsgTimeoutResponse {
|
|
206
|
-
result: ResponseResultType;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/** MsgTimeoutOnClose timed-out packet upon counterparty channel closure. */
|
|
210
|
-
export interface MsgTimeoutOnClose {
|
|
211
|
-
packet: Packet | undefined;
|
|
212
|
-
proofUnreceived: Uint8Array;
|
|
213
|
-
proofClose: Uint8Array;
|
|
214
|
-
proofHeight: Height | undefined;
|
|
215
|
-
nextSequenceRecv: number;
|
|
216
|
-
signer: string;
|
|
217
|
-
counterpartyUpgradeSequence: number;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/** MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. */
|
|
221
|
-
export interface MsgTimeoutOnCloseResponse {
|
|
222
|
-
result: ResponseResultType;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/** MsgAcknowledgement receives incoming IBC acknowledgement */
|
|
226
|
-
export interface MsgAcknowledgement {
|
|
227
|
-
packet: Packet | undefined;
|
|
228
|
-
acknowledgement: Uint8Array;
|
|
229
|
-
proofAcked: Uint8Array;
|
|
230
|
-
proofHeight: Height | undefined;
|
|
231
|
-
signer: string;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/** MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. */
|
|
235
|
-
export interface MsgAcknowledgementResponse {
|
|
236
|
-
result: ResponseResultType;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* MsgChannelUpgradeInit defines the request type for the ChannelUpgradeInit rpc
|
|
241
|
-
* WARNING: Initializing a channel upgrade in the same block as opening the channel
|
|
242
|
-
* may result in the counterparty being incapable of opening.
|
|
243
|
-
*/
|
|
244
|
-
export interface MsgChannelUpgradeInit {
|
|
245
|
-
portId: string;
|
|
246
|
-
channelId: string;
|
|
247
|
-
fields: UpgradeFields | undefined;
|
|
248
|
-
signer: string;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/** MsgChannelUpgradeInitResponse defines the MsgChannelUpgradeInit response type */
|
|
252
|
-
export interface MsgChannelUpgradeInitResponse {
|
|
253
|
-
upgrade: Upgrade | undefined;
|
|
254
|
-
upgradeSequence: number;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/** MsgChannelUpgradeTry defines the request type for the ChannelUpgradeTry rpc */
|
|
258
|
-
export interface MsgChannelUpgradeTry {
|
|
259
|
-
portId: string;
|
|
260
|
-
channelId: string;
|
|
261
|
-
proposedUpgradeConnectionHops: string[];
|
|
262
|
-
counterpartyUpgradeFields: UpgradeFields | undefined;
|
|
263
|
-
counterpartyUpgradeSequence: number;
|
|
264
|
-
proofChannel: Uint8Array;
|
|
265
|
-
proofUpgrade: Uint8Array;
|
|
266
|
-
proofHeight: Height | undefined;
|
|
267
|
-
signer: string;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/** MsgChannelUpgradeTryResponse defines the MsgChannelUpgradeTry response type */
|
|
271
|
-
export interface MsgChannelUpgradeTryResponse {
|
|
272
|
-
upgrade: Upgrade | undefined;
|
|
273
|
-
upgradeSequence: number;
|
|
274
|
-
result: ResponseResultType;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/** MsgChannelUpgradeAck defines the request type for the ChannelUpgradeAck rpc */
|
|
278
|
-
export interface MsgChannelUpgradeAck {
|
|
279
|
-
portId: string;
|
|
280
|
-
channelId: string;
|
|
281
|
-
counterpartyUpgrade: Upgrade | undefined;
|
|
282
|
-
proofChannel: Uint8Array;
|
|
283
|
-
proofUpgrade: Uint8Array;
|
|
284
|
-
proofHeight: Height | undefined;
|
|
285
|
-
signer: string;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/** MsgChannelUpgradeAckResponse defines MsgChannelUpgradeAck response type */
|
|
289
|
-
export interface MsgChannelUpgradeAckResponse {
|
|
290
|
-
result: ResponseResultType;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
/** MsgChannelUpgradeConfirm defines the request type for the ChannelUpgradeConfirm rpc */
|
|
294
|
-
export interface MsgChannelUpgradeConfirm {
|
|
295
|
-
portId: string;
|
|
296
|
-
channelId: string;
|
|
297
|
-
counterpartyChannelState: State;
|
|
298
|
-
counterpartyUpgrade: Upgrade | undefined;
|
|
299
|
-
proofChannel: Uint8Array;
|
|
300
|
-
proofUpgrade: Uint8Array;
|
|
301
|
-
proofHeight: Height | undefined;
|
|
302
|
-
signer: string;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/** MsgChannelUpgradeConfirmResponse defines MsgChannelUpgradeConfirm response type */
|
|
306
|
-
export interface MsgChannelUpgradeConfirmResponse {
|
|
307
|
-
result: ResponseResultType;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/** MsgChannelUpgradeOpen defines the request type for the ChannelUpgradeOpen rpc */
|
|
311
|
-
export interface MsgChannelUpgradeOpen {
|
|
312
|
-
portId: string;
|
|
313
|
-
channelId: string;
|
|
314
|
-
counterpartyChannelState: State;
|
|
315
|
-
counterpartyUpgradeSequence: number;
|
|
316
|
-
proofChannel: Uint8Array;
|
|
317
|
-
proofHeight: Height | undefined;
|
|
318
|
-
signer: string;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/** MsgChannelUpgradeOpenResponse defines the MsgChannelUpgradeOpen response type */
|
|
322
|
-
export interface MsgChannelUpgradeOpenResponse {
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/** MsgChannelUpgradeTimeout defines the request type for the ChannelUpgradeTimeout rpc */
|
|
326
|
-
export interface MsgChannelUpgradeTimeout {
|
|
327
|
-
portId: string;
|
|
328
|
-
channelId: string;
|
|
329
|
-
counterpartyChannel: Channel | undefined;
|
|
330
|
-
proofChannel: Uint8Array;
|
|
331
|
-
proofHeight: Height | undefined;
|
|
332
|
-
signer: string;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
/** MsgChannelUpgradeTimeoutRepsonse defines the MsgChannelUpgradeTimeout response type */
|
|
336
|
-
export interface MsgChannelUpgradeTimeoutResponse {
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/** MsgChannelUpgradeCancel defines the request type for the ChannelUpgradeCancel rpc */
|
|
340
|
-
export interface MsgChannelUpgradeCancel {
|
|
341
|
-
portId: string;
|
|
342
|
-
channelId: string;
|
|
343
|
-
errorReceipt: ErrorReceipt | undefined;
|
|
344
|
-
proofErrorReceipt: Uint8Array;
|
|
345
|
-
proofHeight: Height | undefined;
|
|
346
|
-
signer: string;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/** MsgChannelUpgradeCancelResponse defines the MsgChannelUpgradeCancel response type */
|
|
350
|
-
export interface MsgChannelUpgradeCancelResponse {
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
/** MsgUpdateParams is the MsgUpdateParams request type. */
|
|
354
|
-
export interface MsgUpdateParams {
|
|
355
|
-
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
356
|
-
authority: string;
|
|
357
|
-
/**
|
|
358
|
-
* params defines the channel parameters to update.
|
|
359
|
-
*
|
|
360
|
-
* NOTE: All parameters must be supplied.
|
|
361
|
-
*/
|
|
362
|
-
params: Params | undefined;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
/** MsgUpdateParamsResponse defines the MsgUpdateParams response type. */
|
|
366
|
-
export interface MsgUpdateParamsResponse {
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
/** MsgPruneAcknowledgements defines the request type for the PruneAcknowledgements rpc. */
|
|
370
|
-
export interface MsgPruneAcknowledgements {
|
|
371
|
-
portId: string;
|
|
372
|
-
channelId: string;
|
|
373
|
-
limit: number;
|
|
374
|
-
signer: string;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/** MsgPruneAcknowledgementsResponse defines the response type for the PruneAcknowledgements rpc. */
|
|
378
|
-
export interface MsgPruneAcknowledgementsResponse {
|
|
379
|
-
/** Number of sequences pruned (includes both packet acknowledgements and packet receipts where appropriate). */
|
|
380
|
-
totalPrunedSequences: number;
|
|
381
|
-
/** Number of sequences left after pruning. */
|
|
382
|
-
totalRemainingSequences: number;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
function createBaseMsgChannelOpenInit(): MsgChannelOpenInit {
|
|
386
|
-
return { portId: "", channel: undefined, signer: "" };
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
export const MsgChannelOpenInit: MessageFns<MsgChannelOpenInit> = {
|
|
390
|
-
encode(message: MsgChannelOpenInit, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
391
|
-
if (message.portId !== "") {
|
|
392
|
-
writer.uint32(10).string(message.portId);
|
|
393
|
-
}
|
|
394
|
-
if (message.channel !== undefined) {
|
|
395
|
-
Channel.encode(message.channel, writer.uint32(18).fork()).join();
|
|
396
|
-
}
|
|
397
|
-
if (message.signer !== "") {
|
|
398
|
-
writer.uint32(26).string(message.signer);
|
|
399
|
-
}
|
|
400
|
-
return writer;
|
|
401
|
-
},
|
|
402
|
-
|
|
403
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelOpenInit {
|
|
404
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
405
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
406
|
-
const message = createBaseMsgChannelOpenInit();
|
|
407
|
-
while (reader.pos < end) {
|
|
408
|
-
const tag = reader.uint32();
|
|
409
|
-
switch (tag >>> 3) {
|
|
410
|
-
case 1: {
|
|
411
|
-
if (tag !== 10) {
|
|
412
|
-
break;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
message.portId = reader.string();
|
|
416
|
-
continue;
|
|
417
|
-
}
|
|
418
|
-
case 2: {
|
|
419
|
-
if (tag !== 18) {
|
|
420
|
-
break;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
message.channel = Channel.decode(reader, reader.uint32());
|
|
424
|
-
continue;
|
|
425
|
-
}
|
|
426
|
-
case 3: {
|
|
427
|
-
if (tag !== 26) {
|
|
428
|
-
break;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
message.signer = reader.string();
|
|
432
|
-
continue;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
436
|
-
break;
|
|
437
|
-
}
|
|
438
|
-
reader.skip(tag & 7);
|
|
439
|
-
}
|
|
440
|
-
return message;
|
|
441
|
-
},
|
|
442
|
-
|
|
443
|
-
fromJSON(object: any): MsgChannelOpenInit {
|
|
444
|
-
return {
|
|
445
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
446
|
-
channel: isSet(object.channel) ? Channel.fromJSON(object.channel) : undefined,
|
|
447
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
448
|
-
};
|
|
449
|
-
},
|
|
450
|
-
|
|
451
|
-
toJSON(message: MsgChannelOpenInit): unknown {
|
|
452
|
-
const obj: any = {};
|
|
453
|
-
if (message.portId !== "") {
|
|
454
|
-
obj.portId = message.portId;
|
|
455
|
-
}
|
|
456
|
-
if (message.channel !== undefined) {
|
|
457
|
-
obj.channel = Channel.toJSON(message.channel);
|
|
458
|
-
}
|
|
459
|
-
if (message.signer !== "") {
|
|
460
|
-
obj.signer = message.signer;
|
|
461
|
-
}
|
|
462
|
-
return obj;
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
create<I extends Exact<DeepPartial<MsgChannelOpenInit>, I>>(base?: I): MsgChannelOpenInit {
|
|
466
|
-
return MsgChannelOpenInit.fromPartial(base ?? ({} as any));
|
|
467
|
-
},
|
|
468
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelOpenInit>, I>>(object: I): MsgChannelOpenInit {
|
|
469
|
-
const message = createBaseMsgChannelOpenInit();
|
|
470
|
-
message.portId = object.portId ?? "";
|
|
471
|
-
message.channel = (object.channel !== undefined && object.channel !== null)
|
|
472
|
-
? Channel.fromPartial(object.channel)
|
|
473
|
-
: undefined;
|
|
474
|
-
message.signer = object.signer ?? "";
|
|
475
|
-
return message;
|
|
476
|
-
},
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
function createBaseMsgChannelOpenInitResponse(): MsgChannelOpenInitResponse {
|
|
480
|
-
return { channelId: "", version: "" };
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
export const MsgChannelOpenInitResponse: MessageFns<MsgChannelOpenInitResponse> = {
|
|
484
|
-
encode(message: MsgChannelOpenInitResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
485
|
-
if (message.channelId !== "") {
|
|
486
|
-
writer.uint32(10).string(message.channelId);
|
|
487
|
-
}
|
|
488
|
-
if (message.version !== "") {
|
|
489
|
-
writer.uint32(18).string(message.version);
|
|
490
|
-
}
|
|
491
|
-
return writer;
|
|
492
|
-
},
|
|
493
|
-
|
|
494
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelOpenInitResponse {
|
|
495
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
496
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
497
|
-
const message = createBaseMsgChannelOpenInitResponse();
|
|
498
|
-
while (reader.pos < end) {
|
|
499
|
-
const tag = reader.uint32();
|
|
500
|
-
switch (tag >>> 3) {
|
|
501
|
-
case 1: {
|
|
502
|
-
if (tag !== 10) {
|
|
503
|
-
break;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
message.channelId = reader.string();
|
|
507
|
-
continue;
|
|
508
|
-
}
|
|
509
|
-
case 2: {
|
|
510
|
-
if (tag !== 18) {
|
|
511
|
-
break;
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
message.version = reader.string();
|
|
515
|
-
continue;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
519
|
-
break;
|
|
520
|
-
}
|
|
521
|
-
reader.skip(tag & 7);
|
|
522
|
-
}
|
|
523
|
-
return message;
|
|
524
|
-
},
|
|
525
|
-
|
|
526
|
-
fromJSON(object: any): MsgChannelOpenInitResponse {
|
|
527
|
-
return {
|
|
528
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
529
|
-
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
530
|
-
};
|
|
531
|
-
},
|
|
532
|
-
|
|
533
|
-
toJSON(message: MsgChannelOpenInitResponse): unknown {
|
|
534
|
-
const obj: any = {};
|
|
535
|
-
if (message.channelId !== "") {
|
|
536
|
-
obj.channelId = message.channelId;
|
|
537
|
-
}
|
|
538
|
-
if (message.version !== "") {
|
|
539
|
-
obj.version = message.version;
|
|
540
|
-
}
|
|
541
|
-
return obj;
|
|
542
|
-
},
|
|
543
|
-
|
|
544
|
-
create<I extends Exact<DeepPartial<MsgChannelOpenInitResponse>, I>>(base?: I): MsgChannelOpenInitResponse {
|
|
545
|
-
return MsgChannelOpenInitResponse.fromPartial(base ?? ({} as any));
|
|
546
|
-
},
|
|
547
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelOpenInitResponse>, I>>(object: I): MsgChannelOpenInitResponse {
|
|
548
|
-
const message = createBaseMsgChannelOpenInitResponse();
|
|
549
|
-
message.channelId = object.channelId ?? "";
|
|
550
|
-
message.version = object.version ?? "";
|
|
551
|
-
return message;
|
|
552
|
-
},
|
|
553
|
-
};
|
|
554
|
-
|
|
555
|
-
function createBaseMsgChannelOpenTry(): MsgChannelOpenTry {
|
|
556
|
-
return {
|
|
557
|
-
portId: "",
|
|
558
|
-
previousChannelId: "",
|
|
559
|
-
channel: undefined,
|
|
560
|
-
counterpartyVersion: "",
|
|
561
|
-
proofInit: new Uint8Array(0),
|
|
562
|
-
proofHeight: undefined,
|
|
563
|
-
signer: "",
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
export const MsgChannelOpenTry: MessageFns<MsgChannelOpenTry> = {
|
|
568
|
-
encode(message: MsgChannelOpenTry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
569
|
-
if (message.portId !== "") {
|
|
570
|
-
writer.uint32(10).string(message.portId);
|
|
571
|
-
}
|
|
572
|
-
if (message.previousChannelId !== "") {
|
|
573
|
-
writer.uint32(18).string(message.previousChannelId);
|
|
574
|
-
}
|
|
575
|
-
if (message.channel !== undefined) {
|
|
576
|
-
Channel.encode(message.channel, writer.uint32(26).fork()).join();
|
|
577
|
-
}
|
|
578
|
-
if (message.counterpartyVersion !== "") {
|
|
579
|
-
writer.uint32(34).string(message.counterpartyVersion);
|
|
580
|
-
}
|
|
581
|
-
if (message.proofInit.length !== 0) {
|
|
582
|
-
writer.uint32(42).bytes(message.proofInit);
|
|
583
|
-
}
|
|
584
|
-
if (message.proofHeight !== undefined) {
|
|
585
|
-
Height.encode(message.proofHeight, writer.uint32(50).fork()).join();
|
|
586
|
-
}
|
|
587
|
-
if (message.signer !== "") {
|
|
588
|
-
writer.uint32(58).string(message.signer);
|
|
589
|
-
}
|
|
590
|
-
return writer;
|
|
591
|
-
},
|
|
592
|
-
|
|
593
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelOpenTry {
|
|
594
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
595
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
596
|
-
const message = createBaseMsgChannelOpenTry();
|
|
597
|
-
while (reader.pos < end) {
|
|
598
|
-
const tag = reader.uint32();
|
|
599
|
-
switch (tag >>> 3) {
|
|
600
|
-
case 1: {
|
|
601
|
-
if (tag !== 10) {
|
|
602
|
-
break;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
message.portId = reader.string();
|
|
606
|
-
continue;
|
|
607
|
-
}
|
|
608
|
-
case 2: {
|
|
609
|
-
if (tag !== 18) {
|
|
610
|
-
break;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
message.previousChannelId = reader.string();
|
|
614
|
-
continue;
|
|
615
|
-
}
|
|
616
|
-
case 3: {
|
|
617
|
-
if (tag !== 26) {
|
|
618
|
-
break;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
message.channel = Channel.decode(reader, reader.uint32());
|
|
622
|
-
continue;
|
|
623
|
-
}
|
|
624
|
-
case 4: {
|
|
625
|
-
if (tag !== 34) {
|
|
626
|
-
break;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
message.counterpartyVersion = reader.string();
|
|
630
|
-
continue;
|
|
631
|
-
}
|
|
632
|
-
case 5: {
|
|
633
|
-
if (tag !== 42) {
|
|
634
|
-
break;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
message.proofInit = reader.bytes();
|
|
638
|
-
continue;
|
|
639
|
-
}
|
|
640
|
-
case 6: {
|
|
641
|
-
if (tag !== 50) {
|
|
642
|
-
break;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
646
|
-
continue;
|
|
647
|
-
}
|
|
648
|
-
case 7: {
|
|
649
|
-
if (tag !== 58) {
|
|
650
|
-
break;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
message.signer = reader.string();
|
|
654
|
-
continue;
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
658
|
-
break;
|
|
659
|
-
}
|
|
660
|
-
reader.skip(tag & 7);
|
|
661
|
-
}
|
|
662
|
-
return message;
|
|
663
|
-
},
|
|
664
|
-
|
|
665
|
-
fromJSON(object: any): MsgChannelOpenTry {
|
|
666
|
-
return {
|
|
667
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
668
|
-
previousChannelId: isSet(object.previousChannelId) ? globalThis.String(object.previousChannelId) : "",
|
|
669
|
-
channel: isSet(object.channel) ? Channel.fromJSON(object.channel) : undefined,
|
|
670
|
-
counterpartyVersion: isSet(object.counterpartyVersion) ? globalThis.String(object.counterpartyVersion) : "",
|
|
671
|
-
proofInit: isSet(object.proofInit) ? bytesFromBase64(object.proofInit) : new Uint8Array(0),
|
|
672
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
673
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
674
|
-
};
|
|
675
|
-
},
|
|
676
|
-
|
|
677
|
-
toJSON(message: MsgChannelOpenTry): unknown {
|
|
678
|
-
const obj: any = {};
|
|
679
|
-
if (message.portId !== "") {
|
|
680
|
-
obj.portId = message.portId;
|
|
681
|
-
}
|
|
682
|
-
if (message.previousChannelId !== "") {
|
|
683
|
-
obj.previousChannelId = message.previousChannelId;
|
|
684
|
-
}
|
|
685
|
-
if (message.channel !== undefined) {
|
|
686
|
-
obj.channel = Channel.toJSON(message.channel);
|
|
687
|
-
}
|
|
688
|
-
if (message.counterpartyVersion !== "") {
|
|
689
|
-
obj.counterpartyVersion = message.counterpartyVersion;
|
|
690
|
-
}
|
|
691
|
-
if (message.proofInit.length !== 0) {
|
|
692
|
-
obj.proofInit = base64FromBytes(message.proofInit);
|
|
693
|
-
}
|
|
694
|
-
if (message.proofHeight !== undefined) {
|
|
695
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
696
|
-
}
|
|
697
|
-
if (message.signer !== "") {
|
|
698
|
-
obj.signer = message.signer;
|
|
699
|
-
}
|
|
700
|
-
return obj;
|
|
701
|
-
},
|
|
702
|
-
|
|
703
|
-
create<I extends Exact<DeepPartial<MsgChannelOpenTry>, I>>(base?: I): MsgChannelOpenTry {
|
|
704
|
-
return MsgChannelOpenTry.fromPartial(base ?? ({} as any));
|
|
705
|
-
},
|
|
706
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelOpenTry>, I>>(object: I): MsgChannelOpenTry {
|
|
707
|
-
const message = createBaseMsgChannelOpenTry();
|
|
708
|
-
message.portId = object.portId ?? "";
|
|
709
|
-
message.previousChannelId = object.previousChannelId ?? "";
|
|
710
|
-
message.channel = (object.channel !== undefined && object.channel !== null)
|
|
711
|
-
? Channel.fromPartial(object.channel)
|
|
712
|
-
: undefined;
|
|
713
|
-
message.counterpartyVersion = object.counterpartyVersion ?? "";
|
|
714
|
-
message.proofInit = object.proofInit ?? new Uint8Array(0);
|
|
715
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
716
|
-
? Height.fromPartial(object.proofHeight)
|
|
717
|
-
: undefined;
|
|
718
|
-
message.signer = object.signer ?? "";
|
|
719
|
-
return message;
|
|
720
|
-
},
|
|
721
|
-
};
|
|
722
|
-
|
|
723
|
-
function createBaseMsgChannelOpenTryResponse(): MsgChannelOpenTryResponse {
|
|
724
|
-
return { version: "", channelId: "" };
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
export const MsgChannelOpenTryResponse: MessageFns<MsgChannelOpenTryResponse> = {
|
|
728
|
-
encode(message: MsgChannelOpenTryResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
729
|
-
if (message.version !== "") {
|
|
730
|
-
writer.uint32(10).string(message.version);
|
|
731
|
-
}
|
|
732
|
-
if (message.channelId !== "") {
|
|
733
|
-
writer.uint32(18).string(message.channelId);
|
|
734
|
-
}
|
|
735
|
-
return writer;
|
|
736
|
-
},
|
|
737
|
-
|
|
738
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelOpenTryResponse {
|
|
739
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
740
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
741
|
-
const message = createBaseMsgChannelOpenTryResponse();
|
|
742
|
-
while (reader.pos < end) {
|
|
743
|
-
const tag = reader.uint32();
|
|
744
|
-
switch (tag >>> 3) {
|
|
745
|
-
case 1: {
|
|
746
|
-
if (tag !== 10) {
|
|
747
|
-
break;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
message.version = reader.string();
|
|
751
|
-
continue;
|
|
752
|
-
}
|
|
753
|
-
case 2: {
|
|
754
|
-
if (tag !== 18) {
|
|
755
|
-
break;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
message.channelId = reader.string();
|
|
759
|
-
continue;
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
763
|
-
break;
|
|
764
|
-
}
|
|
765
|
-
reader.skip(tag & 7);
|
|
766
|
-
}
|
|
767
|
-
return message;
|
|
768
|
-
},
|
|
769
|
-
|
|
770
|
-
fromJSON(object: any): MsgChannelOpenTryResponse {
|
|
771
|
-
return {
|
|
772
|
-
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
773
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
774
|
-
};
|
|
775
|
-
},
|
|
776
|
-
|
|
777
|
-
toJSON(message: MsgChannelOpenTryResponse): unknown {
|
|
778
|
-
const obj: any = {};
|
|
779
|
-
if (message.version !== "") {
|
|
780
|
-
obj.version = message.version;
|
|
781
|
-
}
|
|
782
|
-
if (message.channelId !== "") {
|
|
783
|
-
obj.channelId = message.channelId;
|
|
784
|
-
}
|
|
785
|
-
return obj;
|
|
786
|
-
},
|
|
787
|
-
|
|
788
|
-
create<I extends Exact<DeepPartial<MsgChannelOpenTryResponse>, I>>(base?: I): MsgChannelOpenTryResponse {
|
|
789
|
-
return MsgChannelOpenTryResponse.fromPartial(base ?? ({} as any));
|
|
790
|
-
},
|
|
791
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelOpenTryResponse>, I>>(object: I): MsgChannelOpenTryResponse {
|
|
792
|
-
const message = createBaseMsgChannelOpenTryResponse();
|
|
793
|
-
message.version = object.version ?? "";
|
|
794
|
-
message.channelId = object.channelId ?? "";
|
|
795
|
-
return message;
|
|
796
|
-
},
|
|
797
|
-
};
|
|
798
|
-
|
|
799
|
-
function createBaseMsgChannelOpenAck(): MsgChannelOpenAck {
|
|
800
|
-
return {
|
|
801
|
-
portId: "",
|
|
802
|
-
channelId: "",
|
|
803
|
-
counterpartyChannelId: "",
|
|
804
|
-
counterpartyVersion: "",
|
|
805
|
-
proofTry: new Uint8Array(0),
|
|
806
|
-
proofHeight: undefined,
|
|
807
|
-
signer: "",
|
|
808
|
-
};
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
export const MsgChannelOpenAck: MessageFns<MsgChannelOpenAck> = {
|
|
812
|
-
encode(message: MsgChannelOpenAck, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
813
|
-
if (message.portId !== "") {
|
|
814
|
-
writer.uint32(10).string(message.portId);
|
|
815
|
-
}
|
|
816
|
-
if (message.channelId !== "") {
|
|
817
|
-
writer.uint32(18).string(message.channelId);
|
|
818
|
-
}
|
|
819
|
-
if (message.counterpartyChannelId !== "") {
|
|
820
|
-
writer.uint32(26).string(message.counterpartyChannelId);
|
|
821
|
-
}
|
|
822
|
-
if (message.counterpartyVersion !== "") {
|
|
823
|
-
writer.uint32(34).string(message.counterpartyVersion);
|
|
824
|
-
}
|
|
825
|
-
if (message.proofTry.length !== 0) {
|
|
826
|
-
writer.uint32(42).bytes(message.proofTry);
|
|
827
|
-
}
|
|
828
|
-
if (message.proofHeight !== undefined) {
|
|
829
|
-
Height.encode(message.proofHeight, writer.uint32(50).fork()).join();
|
|
830
|
-
}
|
|
831
|
-
if (message.signer !== "") {
|
|
832
|
-
writer.uint32(58).string(message.signer);
|
|
833
|
-
}
|
|
834
|
-
return writer;
|
|
835
|
-
},
|
|
836
|
-
|
|
837
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelOpenAck {
|
|
838
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
839
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
840
|
-
const message = createBaseMsgChannelOpenAck();
|
|
841
|
-
while (reader.pos < end) {
|
|
842
|
-
const tag = reader.uint32();
|
|
843
|
-
switch (tag >>> 3) {
|
|
844
|
-
case 1: {
|
|
845
|
-
if (tag !== 10) {
|
|
846
|
-
break;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
message.portId = reader.string();
|
|
850
|
-
continue;
|
|
851
|
-
}
|
|
852
|
-
case 2: {
|
|
853
|
-
if (tag !== 18) {
|
|
854
|
-
break;
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
message.channelId = reader.string();
|
|
858
|
-
continue;
|
|
859
|
-
}
|
|
860
|
-
case 3: {
|
|
861
|
-
if (tag !== 26) {
|
|
862
|
-
break;
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
message.counterpartyChannelId = reader.string();
|
|
866
|
-
continue;
|
|
867
|
-
}
|
|
868
|
-
case 4: {
|
|
869
|
-
if (tag !== 34) {
|
|
870
|
-
break;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
message.counterpartyVersion = reader.string();
|
|
874
|
-
continue;
|
|
875
|
-
}
|
|
876
|
-
case 5: {
|
|
877
|
-
if (tag !== 42) {
|
|
878
|
-
break;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
message.proofTry = reader.bytes();
|
|
882
|
-
continue;
|
|
883
|
-
}
|
|
884
|
-
case 6: {
|
|
885
|
-
if (tag !== 50) {
|
|
886
|
-
break;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
890
|
-
continue;
|
|
891
|
-
}
|
|
892
|
-
case 7: {
|
|
893
|
-
if (tag !== 58) {
|
|
894
|
-
break;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
message.signer = reader.string();
|
|
898
|
-
continue;
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
902
|
-
break;
|
|
903
|
-
}
|
|
904
|
-
reader.skip(tag & 7);
|
|
905
|
-
}
|
|
906
|
-
return message;
|
|
907
|
-
},
|
|
908
|
-
|
|
909
|
-
fromJSON(object: any): MsgChannelOpenAck {
|
|
910
|
-
return {
|
|
911
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
912
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
913
|
-
counterpartyChannelId: isSet(object.counterpartyChannelId) ? globalThis.String(object.counterpartyChannelId) : "",
|
|
914
|
-
counterpartyVersion: isSet(object.counterpartyVersion) ? globalThis.String(object.counterpartyVersion) : "",
|
|
915
|
-
proofTry: isSet(object.proofTry) ? bytesFromBase64(object.proofTry) : new Uint8Array(0),
|
|
916
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
917
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
918
|
-
};
|
|
919
|
-
},
|
|
920
|
-
|
|
921
|
-
toJSON(message: MsgChannelOpenAck): unknown {
|
|
922
|
-
const obj: any = {};
|
|
923
|
-
if (message.portId !== "") {
|
|
924
|
-
obj.portId = message.portId;
|
|
925
|
-
}
|
|
926
|
-
if (message.channelId !== "") {
|
|
927
|
-
obj.channelId = message.channelId;
|
|
928
|
-
}
|
|
929
|
-
if (message.counterpartyChannelId !== "") {
|
|
930
|
-
obj.counterpartyChannelId = message.counterpartyChannelId;
|
|
931
|
-
}
|
|
932
|
-
if (message.counterpartyVersion !== "") {
|
|
933
|
-
obj.counterpartyVersion = message.counterpartyVersion;
|
|
934
|
-
}
|
|
935
|
-
if (message.proofTry.length !== 0) {
|
|
936
|
-
obj.proofTry = base64FromBytes(message.proofTry);
|
|
937
|
-
}
|
|
938
|
-
if (message.proofHeight !== undefined) {
|
|
939
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
940
|
-
}
|
|
941
|
-
if (message.signer !== "") {
|
|
942
|
-
obj.signer = message.signer;
|
|
943
|
-
}
|
|
944
|
-
return obj;
|
|
945
|
-
},
|
|
946
|
-
|
|
947
|
-
create<I extends Exact<DeepPartial<MsgChannelOpenAck>, I>>(base?: I): MsgChannelOpenAck {
|
|
948
|
-
return MsgChannelOpenAck.fromPartial(base ?? ({} as any));
|
|
949
|
-
},
|
|
950
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelOpenAck>, I>>(object: I): MsgChannelOpenAck {
|
|
951
|
-
const message = createBaseMsgChannelOpenAck();
|
|
952
|
-
message.portId = object.portId ?? "";
|
|
953
|
-
message.channelId = object.channelId ?? "";
|
|
954
|
-
message.counterpartyChannelId = object.counterpartyChannelId ?? "";
|
|
955
|
-
message.counterpartyVersion = object.counterpartyVersion ?? "";
|
|
956
|
-
message.proofTry = object.proofTry ?? new Uint8Array(0);
|
|
957
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
958
|
-
? Height.fromPartial(object.proofHeight)
|
|
959
|
-
: undefined;
|
|
960
|
-
message.signer = object.signer ?? "";
|
|
961
|
-
return message;
|
|
962
|
-
},
|
|
963
|
-
};
|
|
964
|
-
|
|
965
|
-
function createBaseMsgChannelOpenAckResponse(): MsgChannelOpenAckResponse {
|
|
966
|
-
return {};
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
export const MsgChannelOpenAckResponse: MessageFns<MsgChannelOpenAckResponse> = {
|
|
970
|
-
encode(_: MsgChannelOpenAckResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
971
|
-
return writer;
|
|
972
|
-
},
|
|
973
|
-
|
|
974
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelOpenAckResponse {
|
|
975
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
976
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
977
|
-
const message = createBaseMsgChannelOpenAckResponse();
|
|
978
|
-
while (reader.pos < end) {
|
|
979
|
-
const tag = reader.uint32();
|
|
980
|
-
switch (tag >>> 3) {
|
|
981
|
-
}
|
|
982
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
983
|
-
break;
|
|
984
|
-
}
|
|
985
|
-
reader.skip(tag & 7);
|
|
986
|
-
}
|
|
987
|
-
return message;
|
|
988
|
-
},
|
|
989
|
-
|
|
990
|
-
fromJSON(_: any): MsgChannelOpenAckResponse {
|
|
991
|
-
return {};
|
|
992
|
-
},
|
|
993
|
-
|
|
994
|
-
toJSON(_: MsgChannelOpenAckResponse): unknown {
|
|
995
|
-
const obj: any = {};
|
|
996
|
-
return obj;
|
|
997
|
-
},
|
|
998
|
-
|
|
999
|
-
create<I extends Exact<DeepPartial<MsgChannelOpenAckResponse>, I>>(base?: I): MsgChannelOpenAckResponse {
|
|
1000
|
-
return MsgChannelOpenAckResponse.fromPartial(base ?? ({} as any));
|
|
1001
|
-
},
|
|
1002
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelOpenAckResponse>, I>>(_: I): MsgChannelOpenAckResponse {
|
|
1003
|
-
const message = createBaseMsgChannelOpenAckResponse();
|
|
1004
|
-
return message;
|
|
1005
|
-
},
|
|
1006
|
-
};
|
|
1007
|
-
|
|
1008
|
-
function createBaseMsgChannelOpenConfirm(): MsgChannelOpenConfirm {
|
|
1009
|
-
return { portId: "", channelId: "", proofAck: new Uint8Array(0), proofHeight: undefined, signer: "" };
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
export const MsgChannelOpenConfirm: MessageFns<MsgChannelOpenConfirm> = {
|
|
1013
|
-
encode(message: MsgChannelOpenConfirm, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1014
|
-
if (message.portId !== "") {
|
|
1015
|
-
writer.uint32(10).string(message.portId);
|
|
1016
|
-
}
|
|
1017
|
-
if (message.channelId !== "") {
|
|
1018
|
-
writer.uint32(18).string(message.channelId);
|
|
1019
|
-
}
|
|
1020
|
-
if (message.proofAck.length !== 0) {
|
|
1021
|
-
writer.uint32(26).bytes(message.proofAck);
|
|
1022
|
-
}
|
|
1023
|
-
if (message.proofHeight !== undefined) {
|
|
1024
|
-
Height.encode(message.proofHeight, writer.uint32(34).fork()).join();
|
|
1025
|
-
}
|
|
1026
|
-
if (message.signer !== "") {
|
|
1027
|
-
writer.uint32(42).string(message.signer);
|
|
1028
|
-
}
|
|
1029
|
-
return writer;
|
|
1030
|
-
},
|
|
1031
|
-
|
|
1032
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelOpenConfirm {
|
|
1033
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1034
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1035
|
-
const message = createBaseMsgChannelOpenConfirm();
|
|
1036
|
-
while (reader.pos < end) {
|
|
1037
|
-
const tag = reader.uint32();
|
|
1038
|
-
switch (tag >>> 3) {
|
|
1039
|
-
case 1: {
|
|
1040
|
-
if (tag !== 10) {
|
|
1041
|
-
break;
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
message.portId = reader.string();
|
|
1045
|
-
continue;
|
|
1046
|
-
}
|
|
1047
|
-
case 2: {
|
|
1048
|
-
if (tag !== 18) {
|
|
1049
|
-
break;
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
message.channelId = reader.string();
|
|
1053
|
-
continue;
|
|
1054
|
-
}
|
|
1055
|
-
case 3: {
|
|
1056
|
-
if (tag !== 26) {
|
|
1057
|
-
break;
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
message.proofAck = reader.bytes();
|
|
1061
|
-
continue;
|
|
1062
|
-
}
|
|
1063
|
-
case 4: {
|
|
1064
|
-
if (tag !== 34) {
|
|
1065
|
-
break;
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1069
|
-
continue;
|
|
1070
|
-
}
|
|
1071
|
-
case 5: {
|
|
1072
|
-
if (tag !== 42) {
|
|
1073
|
-
break;
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
message.signer = reader.string();
|
|
1077
|
-
continue;
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1081
|
-
break;
|
|
1082
|
-
}
|
|
1083
|
-
reader.skip(tag & 7);
|
|
1084
|
-
}
|
|
1085
|
-
return message;
|
|
1086
|
-
},
|
|
1087
|
-
|
|
1088
|
-
fromJSON(object: any): MsgChannelOpenConfirm {
|
|
1089
|
-
return {
|
|
1090
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
1091
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
1092
|
-
proofAck: isSet(object.proofAck) ? bytesFromBase64(object.proofAck) : new Uint8Array(0),
|
|
1093
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
1094
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
1095
|
-
};
|
|
1096
|
-
},
|
|
1097
|
-
|
|
1098
|
-
toJSON(message: MsgChannelOpenConfirm): unknown {
|
|
1099
|
-
const obj: any = {};
|
|
1100
|
-
if (message.portId !== "") {
|
|
1101
|
-
obj.portId = message.portId;
|
|
1102
|
-
}
|
|
1103
|
-
if (message.channelId !== "") {
|
|
1104
|
-
obj.channelId = message.channelId;
|
|
1105
|
-
}
|
|
1106
|
-
if (message.proofAck.length !== 0) {
|
|
1107
|
-
obj.proofAck = base64FromBytes(message.proofAck);
|
|
1108
|
-
}
|
|
1109
|
-
if (message.proofHeight !== undefined) {
|
|
1110
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
1111
|
-
}
|
|
1112
|
-
if (message.signer !== "") {
|
|
1113
|
-
obj.signer = message.signer;
|
|
1114
|
-
}
|
|
1115
|
-
return obj;
|
|
1116
|
-
},
|
|
1117
|
-
|
|
1118
|
-
create<I extends Exact<DeepPartial<MsgChannelOpenConfirm>, I>>(base?: I): MsgChannelOpenConfirm {
|
|
1119
|
-
return MsgChannelOpenConfirm.fromPartial(base ?? ({} as any));
|
|
1120
|
-
},
|
|
1121
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelOpenConfirm>, I>>(object: I): MsgChannelOpenConfirm {
|
|
1122
|
-
const message = createBaseMsgChannelOpenConfirm();
|
|
1123
|
-
message.portId = object.portId ?? "";
|
|
1124
|
-
message.channelId = object.channelId ?? "";
|
|
1125
|
-
message.proofAck = object.proofAck ?? new Uint8Array(0);
|
|
1126
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
1127
|
-
? Height.fromPartial(object.proofHeight)
|
|
1128
|
-
: undefined;
|
|
1129
|
-
message.signer = object.signer ?? "";
|
|
1130
|
-
return message;
|
|
1131
|
-
},
|
|
1132
|
-
};
|
|
1133
|
-
|
|
1134
|
-
function createBaseMsgChannelOpenConfirmResponse(): MsgChannelOpenConfirmResponse {
|
|
1135
|
-
return {};
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
export const MsgChannelOpenConfirmResponse: MessageFns<MsgChannelOpenConfirmResponse> = {
|
|
1139
|
-
encode(_: MsgChannelOpenConfirmResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1140
|
-
return writer;
|
|
1141
|
-
},
|
|
1142
|
-
|
|
1143
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelOpenConfirmResponse {
|
|
1144
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1145
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1146
|
-
const message = createBaseMsgChannelOpenConfirmResponse();
|
|
1147
|
-
while (reader.pos < end) {
|
|
1148
|
-
const tag = reader.uint32();
|
|
1149
|
-
switch (tag >>> 3) {
|
|
1150
|
-
}
|
|
1151
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1152
|
-
break;
|
|
1153
|
-
}
|
|
1154
|
-
reader.skip(tag & 7);
|
|
1155
|
-
}
|
|
1156
|
-
return message;
|
|
1157
|
-
},
|
|
1158
|
-
|
|
1159
|
-
fromJSON(_: any): MsgChannelOpenConfirmResponse {
|
|
1160
|
-
return {};
|
|
1161
|
-
},
|
|
1162
|
-
|
|
1163
|
-
toJSON(_: MsgChannelOpenConfirmResponse): unknown {
|
|
1164
|
-
const obj: any = {};
|
|
1165
|
-
return obj;
|
|
1166
|
-
},
|
|
1167
|
-
|
|
1168
|
-
create<I extends Exact<DeepPartial<MsgChannelOpenConfirmResponse>, I>>(base?: I): MsgChannelOpenConfirmResponse {
|
|
1169
|
-
return MsgChannelOpenConfirmResponse.fromPartial(base ?? ({} as any));
|
|
1170
|
-
},
|
|
1171
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelOpenConfirmResponse>, I>>(_: I): MsgChannelOpenConfirmResponse {
|
|
1172
|
-
const message = createBaseMsgChannelOpenConfirmResponse();
|
|
1173
|
-
return message;
|
|
1174
|
-
},
|
|
1175
|
-
};
|
|
1176
|
-
|
|
1177
|
-
function createBaseMsgChannelCloseInit(): MsgChannelCloseInit {
|
|
1178
|
-
return { portId: "", channelId: "", signer: "" };
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
export const MsgChannelCloseInit: MessageFns<MsgChannelCloseInit> = {
|
|
1182
|
-
encode(message: MsgChannelCloseInit, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1183
|
-
if (message.portId !== "") {
|
|
1184
|
-
writer.uint32(10).string(message.portId);
|
|
1185
|
-
}
|
|
1186
|
-
if (message.channelId !== "") {
|
|
1187
|
-
writer.uint32(18).string(message.channelId);
|
|
1188
|
-
}
|
|
1189
|
-
if (message.signer !== "") {
|
|
1190
|
-
writer.uint32(26).string(message.signer);
|
|
1191
|
-
}
|
|
1192
|
-
return writer;
|
|
1193
|
-
},
|
|
1194
|
-
|
|
1195
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelCloseInit {
|
|
1196
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1197
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1198
|
-
const message = createBaseMsgChannelCloseInit();
|
|
1199
|
-
while (reader.pos < end) {
|
|
1200
|
-
const tag = reader.uint32();
|
|
1201
|
-
switch (tag >>> 3) {
|
|
1202
|
-
case 1: {
|
|
1203
|
-
if (tag !== 10) {
|
|
1204
|
-
break;
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
message.portId = reader.string();
|
|
1208
|
-
continue;
|
|
1209
|
-
}
|
|
1210
|
-
case 2: {
|
|
1211
|
-
if (tag !== 18) {
|
|
1212
|
-
break;
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
message.channelId = reader.string();
|
|
1216
|
-
continue;
|
|
1217
|
-
}
|
|
1218
|
-
case 3: {
|
|
1219
|
-
if (tag !== 26) {
|
|
1220
|
-
break;
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
message.signer = reader.string();
|
|
1224
|
-
continue;
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1228
|
-
break;
|
|
1229
|
-
}
|
|
1230
|
-
reader.skip(tag & 7);
|
|
1231
|
-
}
|
|
1232
|
-
return message;
|
|
1233
|
-
},
|
|
1234
|
-
|
|
1235
|
-
fromJSON(object: any): MsgChannelCloseInit {
|
|
1236
|
-
return {
|
|
1237
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
1238
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
1239
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
1240
|
-
};
|
|
1241
|
-
},
|
|
1242
|
-
|
|
1243
|
-
toJSON(message: MsgChannelCloseInit): unknown {
|
|
1244
|
-
const obj: any = {};
|
|
1245
|
-
if (message.portId !== "") {
|
|
1246
|
-
obj.portId = message.portId;
|
|
1247
|
-
}
|
|
1248
|
-
if (message.channelId !== "") {
|
|
1249
|
-
obj.channelId = message.channelId;
|
|
1250
|
-
}
|
|
1251
|
-
if (message.signer !== "") {
|
|
1252
|
-
obj.signer = message.signer;
|
|
1253
|
-
}
|
|
1254
|
-
return obj;
|
|
1255
|
-
},
|
|
1256
|
-
|
|
1257
|
-
create<I extends Exact<DeepPartial<MsgChannelCloseInit>, I>>(base?: I): MsgChannelCloseInit {
|
|
1258
|
-
return MsgChannelCloseInit.fromPartial(base ?? ({} as any));
|
|
1259
|
-
},
|
|
1260
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelCloseInit>, I>>(object: I): MsgChannelCloseInit {
|
|
1261
|
-
const message = createBaseMsgChannelCloseInit();
|
|
1262
|
-
message.portId = object.portId ?? "";
|
|
1263
|
-
message.channelId = object.channelId ?? "";
|
|
1264
|
-
message.signer = object.signer ?? "";
|
|
1265
|
-
return message;
|
|
1266
|
-
},
|
|
1267
|
-
};
|
|
1268
|
-
|
|
1269
|
-
function createBaseMsgChannelCloseInitResponse(): MsgChannelCloseInitResponse {
|
|
1270
|
-
return {};
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
export const MsgChannelCloseInitResponse: MessageFns<MsgChannelCloseInitResponse> = {
|
|
1274
|
-
encode(_: MsgChannelCloseInitResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1275
|
-
return writer;
|
|
1276
|
-
},
|
|
1277
|
-
|
|
1278
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelCloseInitResponse {
|
|
1279
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1280
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1281
|
-
const message = createBaseMsgChannelCloseInitResponse();
|
|
1282
|
-
while (reader.pos < end) {
|
|
1283
|
-
const tag = reader.uint32();
|
|
1284
|
-
switch (tag >>> 3) {
|
|
1285
|
-
}
|
|
1286
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1287
|
-
break;
|
|
1288
|
-
}
|
|
1289
|
-
reader.skip(tag & 7);
|
|
1290
|
-
}
|
|
1291
|
-
return message;
|
|
1292
|
-
},
|
|
1293
|
-
|
|
1294
|
-
fromJSON(_: any): MsgChannelCloseInitResponse {
|
|
1295
|
-
return {};
|
|
1296
|
-
},
|
|
1297
|
-
|
|
1298
|
-
toJSON(_: MsgChannelCloseInitResponse): unknown {
|
|
1299
|
-
const obj: any = {};
|
|
1300
|
-
return obj;
|
|
1301
|
-
},
|
|
1302
|
-
|
|
1303
|
-
create<I extends Exact<DeepPartial<MsgChannelCloseInitResponse>, I>>(base?: I): MsgChannelCloseInitResponse {
|
|
1304
|
-
return MsgChannelCloseInitResponse.fromPartial(base ?? ({} as any));
|
|
1305
|
-
},
|
|
1306
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelCloseInitResponse>, I>>(_: I): MsgChannelCloseInitResponse {
|
|
1307
|
-
const message = createBaseMsgChannelCloseInitResponse();
|
|
1308
|
-
return message;
|
|
1309
|
-
},
|
|
1310
|
-
};
|
|
1311
|
-
|
|
1312
|
-
function createBaseMsgChannelCloseConfirm(): MsgChannelCloseConfirm {
|
|
1313
|
-
return {
|
|
1314
|
-
portId: "",
|
|
1315
|
-
channelId: "",
|
|
1316
|
-
proofInit: new Uint8Array(0),
|
|
1317
|
-
proofHeight: undefined,
|
|
1318
|
-
signer: "",
|
|
1319
|
-
counterpartyUpgradeSequence: 0,
|
|
1320
|
-
};
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
export const MsgChannelCloseConfirm: MessageFns<MsgChannelCloseConfirm> = {
|
|
1324
|
-
encode(message: MsgChannelCloseConfirm, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1325
|
-
if (message.portId !== "") {
|
|
1326
|
-
writer.uint32(10).string(message.portId);
|
|
1327
|
-
}
|
|
1328
|
-
if (message.channelId !== "") {
|
|
1329
|
-
writer.uint32(18).string(message.channelId);
|
|
1330
|
-
}
|
|
1331
|
-
if (message.proofInit.length !== 0) {
|
|
1332
|
-
writer.uint32(26).bytes(message.proofInit);
|
|
1333
|
-
}
|
|
1334
|
-
if (message.proofHeight !== undefined) {
|
|
1335
|
-
Height.encode(message.proofHeight, writer.uint32(34).fork()).join();
|
|
1336
|
-
}
|
|
1337
|
-
if (message.signer !== "") {
|
|
1338
|
-
writer.uint32(42).string(message.signer);
|
|
1339
|
-
}
|
|
1340
|
-
if (message.counterpartyUpgradeSequence !== 0) {
|
|
1341
|
-
writer.uint32(48).uint64(message.counterpartyUpgradeSequence);
|
|
1342
|
-
}
|
|
1343
|
-
return writer;
|
|
1344
|
-
},
|
|
1345
|
-
|
|
1346
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelCloseConfirm {
|
|
1347
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1348
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1349
|
-
const message = createBaseMsgChannelCloseConfirm();
|
|
1350
|
-
while (reader.pos < end) {
|
|
1351
|
-
const tag = reader.uint32();
|
|
1352
|
-
switch (tag >>> 3) {
|
|
1353
|
-
case 1: {
|
|
1354
|
-
if (tag !== 10) {
|
|
1355
|
-
break;
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
message.portId = reader.string();
|
|
1359
|
-
continue;
|
|
1360
|
-
}
|
|
1361
|
-
case 2: {
|
|
1362
|
-
if (tag !== 18) {
|
|
1363
|
-
break;
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
message.channelId = reader.string();
|
|
1367
|
-
continue;
|
|
1368
|
-
}
|
|
1369
|
-
case 3: {
|
|
1370
|
-
if (tag !== 26) {
|
|
1371
|
-
break;
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
message.proofInit = reader.bytes();
|
|
1375
|
-
continue;
|
|
1376
|
-
}
|
|
1377
|
-
case 4: {
|
|
1378
|
-
if (tag !== 34) {
|
|
1379
|
-
break;
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1383
|
-
continue;
|
|
1384
|
-
}
|
|
1385
|
-
case 5: {
|
|
1386
|
-
if (tag !== 42) {
|
|
1387
|
-
break;
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
message.signer = reader.string();
|
|
1391
|
-
continue;
|
|
1392
|
-
}
|
|
1393
|
-
case 6: {
|
|
1394
|
-
if (tag !== 48) {
|
|
1395
|
-
break;
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
message.counterpartyUpgradeSequence = longToNumber(reader.uint64());
|
|
1399
|
-
continue;
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1403
|
-
break;
|
|
1404
|
-
}
|
|
1405
|
-
reader.skip(tag & 7);
|
|
1406
|
-
}
|
|
1407
|
-
return message;
|
|
1408
|
-
},
|
|
1409
|
-
|
|
1410
|
-
fromJSON(object: any): MsgChannelCloseConfirm {
|
|
1411
|
-
return {
|
|
1412
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
1413
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
1414
|
-
proofInit: isSet(object.proofInit) ? bytesFromBase64(object.proofInit) : new Uint8Array(0),
|
|
1415
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
1416
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
1417
|
-
counterpartyUpgradeSequence: isSet(object.counterpartyUpgradeSequence)
|
|
1418
|
-
? globalThis.Number(object.counterpartyUpgradeSequence)
|
|
1419
|
-
: 0,
|
|
1420
|
-
};
|
|
1421
|
-
},
|
|
1422
|
-
|
|
1423
|
-
toJSON(message: MsgChannelCloseConfirm): unknown {
|
|
1424
|
-
const obj: any = {};
|
|
1425
|
-
if (message.portId !== "") {
|
|
1426
|
-
obj.portId = message.portId;
|
|
1427
|
-
}
|
|
1428
|
-
if (message.channelId !== "") {
|
|
1429
|
-
obj.channelId = message.channelId;
|
|
1430
|
-
}
|
|
1431
|
-
if (message.proofInit.length !== 0) {
|
|
1432
|
-
obj.proofInit = base64FromBytes(message.proofInit);
|
|
1433
|
-
}
|
|
1434
|
-
if (message.proofHeight !== undefined) {
|
|
1435
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
1436
|
-
}
|
|
1437
|
-
if (message.signer !== "") {
|
|
1438
|
-
obj.signer = message.signer;
|
|
1439
|
-
}
|
|
1440
|
-
if (message.counterpartyUpgradeSequence !== 0) {
|
|
1441
|
-
obj.counterpartyUpgradeSequence = Math.round(message.counterpartyUpgradeSequence);
|
|
1442
|
-
}
|
|
1443
|
-
return obj;
|
|
1444
|
-
},
|
|
1445
|
-
|
|
1446
|
-
create<I extends Exact<DeepPartial<MsgChannelCloseConfirm>, I>>(base?: I): MsgChannelCloseConfirm {
|
|
1447
|
-
return MsgChannelCloseConfirm.fromPartial(base ?? ({} as any));
|
|
1448
|
-
},
|
|
1449
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelCloseConfirm>, I>>(object: I): MsgChannelCloseConfirm {
|
|
1450
|
-
const message = createBaseMsgChannelCloseConfirm();
|
|
1451
|
-
message.portId = object.portId ?? "";
|
|
1452
|
-
message.channelId = object.channelId ?? "";
|
|
1453
|
-
message.proofInit = object.proofInit ?? new Uint8Array(0);
|
|
1454
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
1455
|
-
? Height.fromPartial(object.proofHeight)
|
|
1456
|
-
: undefined;
|
|
1457
|
-
message.signer = object.signer ?? "";
|
|
1458
|
-
message.counterpartyUpgradeSequence = object.counterpartyUpgradeSequence ?? 0;
|
|
1459
|
-
return message;
|
|
1460
|
-
},
|
|
1461
|
-
};
|
|
1462
|
-
|
|
1463
|
-
function createBaseMsgChannelCloseConfirmResponse(): MsgChannelCloseConfirmResponse {
|
|
1464
|
-
return {};
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
export const MsgChannelCloseConfirmResponse: MessageFns<MsgChannelCloseConfirmResponse> = {
|
|
1468
|
-
encode(_: MsgChannelCloseConfirmResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1469
|
-
return writer;
|
|
1470
|
-
},
|
|
1471
|
-
|
|
1472
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelCloseConfirmResponse {
|
|
1473
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1474
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1475
|
-
const message = createBaseMsgChannelCloseConfirmResponse();
|
|
1476
|
-
while (reader.pos < end) {
|
|
1477
|
-
const tag = reader.uint32();
|
|
1478
|
-
switch (tag >>> 3) {
|
|
1479
|
-
}
|
|
1480
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1481
|
-
break;
|
|
1482
|
-
}
|
|
1483
|
-
reader.skip(tag & 7);
|
|
1484
|
-
}
|
|
1485
|
-
return message;
|
|
1486
|
-
},
|
|
1487
|
-
|
|
1488
|
-
fromJSON(_: any): MsgChannelCloseConfirmResponse {
|
|
1489
|
-
return {};
|
|
1490
|
-
},
|
|
1491
|
-
|
|
1492
|
-
toJSON(_: MsgChannelCloseConfirmResponse): unknown {
|
|
1493
|
-
const obj: any = {};
|
|
1494
|
-
return obj;
|
|
1495
|
-
},
|
|
1496
|
-
|
|
1497
|
-
create<I extends Exact<DeepPartial<MsgChannelCloseConfirmResponse>, I>>(base?: I): MsgChannelCloseConfirmResponse {
|
|
1498
|
-
return MsgChannelCloseConfirmResponse.fromPartial(base ?? ({} as any));
|
|
1499
|
-
},
|
|
1500
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelCloseConfirmResponse>, I>>(_: I): MsgChannelCloseConfirmResponse {
|
|
1501
|
-
const message = createBaseMsgChannelCloseConfirmResponse();
|
|
1502
|
-
return message;
|
|
1503
|
-
},
|
|
1504
|
-
};
|
|
1505
|
-
|
|
1506
|
-
function createBaseMsgRecvPacket(): MsgRecvPacket {
|
|
1507
|
-
return { packet: undefined, proofCommitment: new Uint8Array(0), proofHeight: undefined, signer: "" };
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
export const MsgRecvPacket: MessageFns<MsgRecvPacket> = {
|
|
1511
|
-
encode(message: MsgRecvPacket, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1512
|
-
if (message.packet !== undefined) {
|
|
1513
|
-
Packet.encode(message.packet, writer.uint32(10).fork()).join();
|
|
1514
|
-
}
|
|
1515
|
-
if (message.proofCommitment.length !== 0) {
|
|
1516
|
-
writer.uint32(18).bytes(message.proofCommitment);
|
|
1517
|
-
}
|
|
1518
|
-
if (message.proofHeight !== undefined) {
|
|
1519
|
-
Height.encode(message.proofHeight, writer.uint32(26).fork()).join();
|
|
1520
|
-
}
|
|
1521
|
-
if (message.signer !== "") {
|
|
1522
|
-
writer.uint32(34).string(message.signer);
|
|
1523
|
-
}
|
|
1524
|
-
return writer;
|
|
1525
|
-
},
|
|
1526
|
-
|
|
1527
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgRecvPacket {
|
|
1528
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1529
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1530
|
-
const message = createBaseMsgRecvPacket();
|
|
1531
|
-
while (reader.pos < end) {
|
|
1532
|
-
const tag = reader.uint32();
|
|
1533
|
-
switch (tag >>> 3) {
|
|
1534
|
-
case 1: {
|
|
1535
|
-
if (tag !== 10) {
|
|
1536
|
-
break;
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
message.packet = Packet.decode(reader, reader.uint32());
|
|
1540
|
-
continue;
|
|
1541
|
-
}
|
|
1542
|
-
case 2: {
|
|
1543
|
-
if (tag !== 18) {
|
|
1544
|
-
break;
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
message.proofCommitment = reader.bytes();
|
|
1548
|
-
continue;
|
|
1549
|
-
}
|
|
1550
|
-
case 3: {
|
|
1551
|
-
if (tag !== 26) {
|
|
1552
|
-
break;
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1556
|
-
continue;
|
|
1557
|
-
}
|
|
1558
|
-
case 4: {
|
|
1559
|
-
if (tag !== 34) {
|
|
1560
|
-
break;
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
message.signer = reader.string();
|
|
1564
|
-
continue;
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1568
|
-
break;
|
|
1569
|
-
}
|
|
1570
|
-
reader.skip(tag & 7);
|
|
1571
|
-
}
|
|
1572
|
-
return message;
|
|
1573
|
-
},
|
|
1574
|
-
|
|
1575
|
-
fromJSON(object: any): MsgRecvPacket {
|
|
1576
|
-
return {
|
|
1577
|
-
packet: isSet(object.packet) ? Packet.fromJSON(object.packet) : undefined,
|
|
1578
|
-
proofCommitment: isSet(object.proofCommitment) ? bytesFromBase64(object.proofCommitment) : new Uint8Array(0),
|
|
1579
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
1580
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
1581
|
-
};
|
|
1582
|
-
},
|
|
1583
|
-
|
|
1584
|
-
toJSON(message: MsgRecvPacket): unknown {
|
|
1585
|
-
const obj: any = {};
|
|
1586
|
-
if (message.packet !== undefined) {
|
|
1587
|
-
obj.packet = Packet.toJSON(message.packet);
|
|
1588
|
-
}
|
|
1589
|
-
if (message.proofCommitment.length !== 0) {
|
|
1590
|
-
obj.proofCommitment = base64FromBytes(message.proofCommitment);
|
|
1591
|
-
}
|
|
1592
|
-
if (message.proofHeight !== undefined) {
|
|
1593
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
1594
|
-
}
|
|
1595
|
-
if (message.signer !== "") {
|
|
1596
|
-
obj.signer = message.signer;
|
|
1597
|
-
}
|
|
1598
|
-
return obj;
|
|
1599
|
-
},
|
|
1600
|
-
|
|
1601
|
-
create<I extends Exact<DeepPartial<MsgRecvPacket>, I>>(base?: I): MsgRecvPacket {
|
|
1602
|
-
return MsgRecvPacket.fromPartial(base ?? ({} as any));
|
|
1603
|
-
},
|
|
1604
|
-
fromPartial<I extends Exact<DeepPartial<MsgRecvPacket>, I>>(object: I): MsgRecvPacket {
|
|
1605
|
-
const message = createBaseMsgRecvPacket();
|
|
1606
|
-
message.packet = (object.packet !== undefined && object.packet !== null)
|
|
1607
|
-
? Packet.fromPartial(object.packet)
|
|
1608
|
-
: undefined;
|
|
1609
|
-
message.proofCommitment = object.proofCommitment ?? new Uint8Array(0);
|
|
1610
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
1611
|
-
? Height.fromPartial(object.proofHeight)
|
|
1612
|
-
: undefined;
|
|
1613
|
-
message.signer = object.signer ?? "";
|
|
1614
|
-
return message;
|
|
1615
|
-
},
|
|
1616
|
-
};
|
|
1617
|
-
|
|
1618
|
-
function createBaseMsgRecvPacketResponse(): MsgRecvPacketResponse {
|
|
1619
|
-
return { result: 0 };
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
export const MsgRecvPacketResponse: MessageFns<MsgRecvPacketResponse> = {
|
|
1623
|
-
encode(message: MsgRecvPacketResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1624
|
-
if (message.result !== 0) {
|
|
1625
|
-
writer.uint32(8).int32(message.result);
|
|
1626
|
-
}
|
|
1627
|
-
return writer;
|
|
1628
|
-
},
|
|
1629
|
-
|
|
1630
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgRecvPacketResponse {
|
|
1631
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1632
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1633
|
-
const message = createBaseMsgRecvPacketResponse();
|
|
1634
|
-
while (reader.pos < end) {
|
|
1635
|
-
const tag = reader.uint32();
|
|
1636
|
-
switch (tag >>> 3) {
|
|
1637
|
-
case 1: {
|
|
1638
|
-
if (tag !== 8) {
|
|
1639
|
-
break;
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
message.result = reader.int32() as any;
|
|
1643
|
-
continue;
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1647
|
-
break;
|
|
1648
|
-
}
|
|
1649
|
-
reader.skip(tag & 7);
|
|
1650
|
-
}
|
|
1651
|
-
return message;
|
|
1652
|
-
},
|
|
1653
|
-
|
|
1654
|
-
fromJSON(object: any): MsgRecvPacketResponse {
|
|
1655
|
-
return { result: isSet(object.result) ? responseResultTypeFromJSON(object.result) : 0 };
|
|
1656
|
-
},
|
|
1657
|
-
|
|
1658
|
-
toJSON(message: MsgRecvPacketResponse): unknown {
|
|
1659
|
-
const obj: any = {};
|
|
1660
|
-
if (message.result !== 0) {
|
|
1661
|
-
obj.result = responseResultTypeToJSON(message.result);
|
|
1662
|
-
}
|
|
1663
|
-
return obj;
|
|
1664
|
-
},
|
|
1665
|
-
|
|
1666
|
-
create<I extends Exact<DeepPartial<MsgRecvPacketResponse>, I>>(base?: I): MsgRecvPacketResponse {
|
|
1667
|
-
return MsgRecvPacketResponse.fromPartial(base ?? ({} as any));
|
|
1668
|
-
},
|
|
1669
|
-
fromPartial<I extends Exact<DeepPartial<MsgRecvPacketResponse>, I>>(object: I): MsgRecvPacketResponse {
|
|
1670
|
-
const message = createBaseMsgRecvPacketResponse();
|
|
1671
|
-
message.result = object.result ?? 0;
|
|
1672
|
-
return message;
|
|
1673
|
-
},
|
|
1674
|
-
};
|
|
1675
|
-
|
|
1676
|
-
function createBaseMsgTimeout(): MsgTimeout {
|
|
1677
|
-
return {
|
|
1678
|
-
packet: undefined,
|
|
1679
|
-
proofUnreceived: new Uint8Array(0),
|
|
1680
|
-
proofHeight: undefined,
|
|
1681
|
-
nextSequenceRecv: 0,
|
|
1682
|
-
signer: "",
|
|
1683
|
-
};
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
|
-
export const MsgTimeout: MessageFns<MsgTimeout> = {
|
|
1687
|
-
encode(message: MsgTimeout, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1688
|
-
if (message.packet !== undefined) {
|
|
1689
|
-
Packet.encode(message.packet, writer.uint32(10).fork()).join();
|
|
1690
|
-
}
|
|
1691
|
-
if (message.proofUnreceived.length !== 0) {
|
|
1692
|
-
writer.uint32(18).bytes(message.proofUnreceived);
|
|
1693
|
-
}
|
|
1694
|
-
if (message.proofHeight !== undefined) {
|
|
1695
|
-
Height.encode(message.proofHeight, writer.uint32(26).fork()).join();
|
|
1696
|
-
}
|
|
1697
|
-
if (message.nextSequenceRecv !== 0) {
|
|
1698
|
-
writer.uint32(32).uint64(message.nextSequenceRecv);
|
|
1699
|
-
}
|
|
1700
|
-
if (message.signer !== "") {
|
|
1701
|
-
writer.uint32(42).string(message.signer);
|
|
1702
|
-
}
|
|
1703
|
-
return writer;
|
|
1704
|
-
},
|
|
1705
|
-
|
|
1706
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgTimeout {
|
|
1707
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1708
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1709
|
-
const message = createBaseMsgTimeout();
|
|
1710
|
-
while (reader.pos < end) {
|
|
1711
|
-
const tag = reader.uint32();
|
|
1712
|
-
switch (tag >>> 3) {
|
|
1713
|
-
case 1: {
|
|
1714
|
-
if (tag !== 10) {
|
|
1715
|
-
break;
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
message.packet = Packet.decode(reader, reader.uint32());
|
|
1719
|
-
continue;
|
|
1720
|
-
}
|
|
1721
|
-
case 2: {
|
|
1722
|
-
if (tag !== 18) {
|
|
1723
|
-
break;
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
message.proofUnreceived = reader.bytes();
|
|
1727
|
-
continue;
|
|
1728
|
-
}
|
|
1729
|
-
case 3: {
|
|
1730
|
-
if (tag !== 26) {
|
|
1731
|
-
break;
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1735
|
-
continue;
|
|
1736
|
-
}
|
|
1737
|
-
case 4: {
|
|
1738
|
-
if (tag !== 32) {
|
|
1739
|
-
break;
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
message.nextSequenceRecv = longToNumber(reader.uint64());
|
|
1743
|
-
continue;
|
|
1744
|
-
}
|
|
1745
|
-
case 5: {
|
|
1746
|
-
if (tag !== 42) {
|
|
1747
|
-
break;
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
message.signer = reader.string();
|
|
1751
|
-
continue;
|
|
1752
|
-
}
|
|
1753
|
-
}
|
|
1754
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1755
|
-
break;
|
|
1756
|
-
}
|
|
1757
|
-
reader.skip(tag & 7);
|
|
1758
|
-
}
|
|
1759
|
-
return message;
|
|
1760
|
-
},
|
|
1761
|
-
|
|
1762
|
-
fromJSON(object: any): MsgTimeout {
|
|
1763
|
-
return {
|
|
1764
|
-
packet: isSet(object.packet) ? Packet.fromJSON(object.packet) : undefined,
|
|
1765
|
-
proofUnreceived: isSet(object.proofUnreceived) ? bytesFromBase64(object.proofUnreceived) : new Uint8Array(0),
|
|
1766
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
1767
|
-
nextSequenceRecv: isSet(object.nextSequenceRecv) ? globalThis.Number(object.nextSequenceRecv) : 0,
|
|
1768
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
1769
|
-
};
|
|
1770
|
-
},
|
|
1771
|
-
|
|
1772
|
-
toJSON(message: MsgTimeout): unknown {
|
|
1773
|
-
const obj: any = {};
|
|
1774
|
-
if (message.packet !== undefined) {
|
|
1775
|
-
obj.packet = Packet.toJSON(message.packet);
|
|
1776
|
-
}
|
|
1777
|
-
if (message.proofUnreceived.length !== 0) {
|
|
1778
|
-
obj.proofUnreceived = base64FromBytes(message.proofUnreceived);
|
|
1779
|
-
}
|
|
1780
|
-
if (message.proofHeight !== undefined) {
|
|
1781
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
1782
|
-
}
|
|
1783
|
-
if (message.nextSequenceRecv !== 0) {
|
|
1784
|
-
obj.nextSequenceRecv = Math.round(message.nextSequenceRecv);
|
|
1785
|
-
}
|
|
1786
|
-
if (message.signer !== "") {
|
|
1787
|
-
obj.signer = message.signer;
|
|
1788
|
-
}
|
|
1789
|
-
return obj;
|
|
1790
|
-
},
|
|
1791
|
-
|
|
1792
|
-
create<I extends Exact<DeepPartial<MsgTimeout>, I>>(base?: I): MsgTimeout {
|
|
1793
|
-
return MsgTimeout.fromPartial(base ?? ({} as any));
|
|
1794
|
-
},
|
|
1795
|
-
fromPartial<I extends Exact<DeepPartial<MsgTimeout>, I>>(object: I): MsgTimeout {
|
|
1796
|
-
const message = createBaseMsgTimeout();
|
|
1797
|
-
message.packet = (object.packet !== undefined && object.packet !== null)
|
|
1798
|
-
? Packet.fromPartial(object.packet)
|
|
1799
|
-
: undefined;
|
|
1800
|
-
message.proofUnreceived = object.proofUnreceived ?? new Uint8Array(0);
|
|
1801
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
1802
|
-
? Height.fromPartial(object.proofHeight)
|
|
1803
|
-
: undefined;
|
|
1804
|
-
message.nextSequenceRecv = object.nextSequenceRecv ?? 0;
|
|
1805
|
-
message.signer = object.signer ?? "";
|
|
1806
|
-
return message;
|
|
1807
|
-
},
|
|
1808
|
-
};
|
|
1809
|
-
|
|
1810
|
-
function createBaseMsgTimeoutResponse(): MsgTimeoutResponse {
|
|
1811
|
-
return { result: 0 };
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
export const MsgTimeoutResponse: MessageFns<MsgTimeoutResponse> = {
|
|
1815
|
-
encode(message: MsgTimeoutResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1816
|
-
if (message.result !== 0) {
|
|
1817
|
-
writer.uint32(8).int32(message.result);
|
|
1818
|
-
}
|
|
1819
|
-
return writer;
|
|
1820
|
-
},
|
|
1821
|
-
|
|
1822
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgTimeoutResponse {
|
|
1823
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1824
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1825
|
-
const message = createBaseMsgTimeoutResponse();
|
|
1826
|
-
while (reader.pos < end) {
|
|
1827
|
-
const tag = reader.uint32();
|
|
1828
|
-
switch (tag >>> 3) {
|
|
1829
|
-
case 1: {
|
|
1830
|
-
if (tag !== 8) {
|
|
1831
|
-
break;
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
message.result = reader.int32() as any;
|
|
1835
|
-
continue;
|
|
1836
|
-
}
|
|
1837
|
-
}
|
|
1838
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1839
|
-
break;
|
|
1840
|
-
}
|
|
1841
|
-
reader.skip(tag & 7);
|
|
1842
|
-
}
|
|
1843
|
-
return message;
|
|
1844
|
-
},
|
|
1845
|
-
|
|
1846
|
-
fromJSON(object: any): MsgTimeoutResponse {
|
|
1847
|
-
return { result: isSet(object.result) ? responseResultTypeFromJSON(object.result) : 0 };
|
|
1848
|
-
},
|
|
1849
|
-
|
|
1850
|
-
toJSON(message: MsgTimeoutResponse): unknown {
|
|
1851
|
-
const obj: any = {};
|
|
1852
|
-
if (message.result !== 0) {
|
|
1853
|
-
obj.result = responseResultTypeToJSON(message.result);
|
|
1854
|
-
}
|
|
1855
|
-
return obj;
|
|
1856
|
-
},
|
|
1857
|
-
|
|
1858
|
-
create<I extends Exact<DeepPartial<MsgTimeoutResponse>, I>>(base?: I): MsgTimeoutResponse {
|
|
1859
|
-
return MsgTimeoutResponse.fromPartial(base ?? ({} as any));
|
|
1860
|
-
},
|
|
1861
|
-
fromPartial<I extends Exact<DeepPartial<MsgTimeoutResponse>, I>>(object: I): MsgTimeoutResponse {
|
|
1862
|
-
const message = createBaseMsgTimeoutResponse();
|
|
1863
|
-
message.result = object.result ?? 0;
|
|
1864
|
-
return message;
|
|
1865
|
-
},
|
|
1866
|
-
};
|
|
1867
|
-
|
|
1868
|
-
function createBaseMsgTimeoutOnClose(): MsgTimeoutOnClose {
|
|
1869
|
-
return {
|
|
1870
|
-
packet: undefined,
|
|
1871
|
-
proofUnreceived: new Uint8Array(0),
|
|
1872
|
-
proofClose: new Uint8Array(0),
|
|
1873
|
-
proofHeight: undefined,
|
|
1874
|
-
nextSequenceRecv: 0,
|
|
1875
|
-
signer: "",
|
|
1876
|
-
counterpartyUpgradeSequence: 0,
|
|
1877
|
-
};
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
export const MsgTimeoutOnClose: MessageFns<MsgTimeoutOnClose> = {
|
|
1881
|
-
encode(message: MsgTimeoutOnClose, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1882
|
-
if (message.packet !== undefined) {
|
|
1883
|
-
Packet.encode(message.packet, writer.uint32(10).fork()).join();
|
|
1884
|
-
}
|
|
1885
|
-
if (message.proofUnreceived.length !== 0) {
|
|
1886
|
-
writer.uint32(18).bytes(message.proofUnreceived);
|
|
1887
|
-
}
|
|
1888
|
-
if (message.proofClose.length !== 0) {
|
|
1889
|
-
writer.uint32(26).bytes(message.proofClose);
|
|
1890
|
-
}
|
|
1891
|
-
if (message.proofHeight !== undefined) {
|
|
1892
|
-
Height.encode(message.proofHeight, writer.uint32(34).fork()).join();
|
|
1893
|
-
}
|
|
1894
|
-
if (message.nextSequenceRecv !== 0) {
|
|
1895
|
-
writer.uint32(40).uint64(message.nextSequenceRecv);
|
|
1896
|
-
}
|
|
1897
|
-
if (message.signer !== "") {
|
|
1898
|
-
writer.uint32(50).string(message.signer);
|
|
1899
|
-
}
|
|
1900
|
-
if (message.counterpartyUpgradeSequence !== 0) {
|
|
1901
|
-
writer.uint32(56).uint64(message.counterpartyUpgradeSequence);
|
|
1902
|
-
}
|
|
1903
|
-
return writer;
|
|
1904
|
-
},
|
|
1905
|
-
|
|
1906
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgTimeoutOnClose {
|
|
1907
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1908
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1909
|
-
const message = createBaseMsgTimeoutOnClose();
|
|
1910
|
-
while (reader.pos < end) {
|
|
1911
|
-
const tag = reader.uint32();
|
|
1912
|
-
switch (tag >>> 3) {
|
|
1913
|
-
case 1: {
|
|
1914
|
-
if (tag !== 10) {
|
|
1915
|
-
break;
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
message.packet = Packet.decode(reader, reader.uint32());
|
|
1919
|
-
continue;
|
|
1920
|
-
}
|
|
1921
|
-
case 2: {
|
|
1922
|
-
if (tag !== 18) {
|
|
1923
|
-
break;
|
|
1924
|
-
}
|
|
1925
|
-
|
|
1926
|
-
message.proofUnreceived = reader.bytes();
|
|
1927
|
-
continue;
|
|
1928
|
-
}
|
|
1929
|
-
case 3: {
|
|
1930
|
-
if (tag !== 26) {
|
|
1931
|
-
break;
|
|
1932
|
-
}
|
|
1933
|
-
|
|
1934
|
-
message.proofClose = reader.bytes();
|
|
1935
|
-
continue;
|
|
1936
|
-
}
|
|
1937
|
-
case 4: {
|
|
1938
|
-
if (tag !== 34) {
|
|
1939
|
-
break;
|
|
1940
|
-
}
|
|
1941
|
-
|
|
1942
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1943
|
-
continue;
|
|
1944
|
-
}
|
|
1945
|
-
case 5: {
|
|
1946
|
-
if (tag !== 40) {
|
|
1947
|
-
break;
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
message.nextSequenceRecv = longToNumber(reader.uint64());
|
|
1951
|
-
continue;
|
|
1952
|
-
}
|
|
1953
|
-
case 6: {
|
|
1954
|
-
if (tag !== 50) {
|
|
1955
|
-
break;
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
message.signer = reader.string();
|
|
1959
|
-
continue;
|
|
1960
|
-
}
|
|
1961
|
-
case 7: {
|
|
1962
|
-
if (tag !== 56) {
|
|
1963
|
-
break;
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
message.counterpartyUpgradeSequence = longToNumber(reader.uint64());
|
|
1967
|
-
continue;
|
|
1968
|
-
}
|
|
1969
|
-
}
|
|
1970
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1971
|
-
break;
|
|
1972
|
-
}
|
|
1973
|
-
reader.skip(tag & 7);
|
|
1974
|
-
}
|
|
1975
|
-
return message;
|
|
1976
|
-
},
|
|
1977
|
-
|
|
1978
|
-
fromJSON(object: any): MsgTimeoutOnClose {
|
|
1979
|
-
return {
|
|
1980
|
-
packet: isSet(object.packet) ? Packet.fromJSON(object.packet) : undefined,
|
|
1981
|
-
proofUnreceived: isSet(object.proofUnreceived) ? bytesFromBase64(object.proofUnreceived) : new Uint8Array(0),
|
|
1982
|
-
proofClose: isSet(object.proofClose) ? bytesFromBase64(object.proofClose) : new Uint8Array(0),
|
|
1983
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
1984
|
-
nextSequenceRecv: isSet(object.nextSequenceRecv) ? globalThis.Number(object.nextSequenceRecv) : 0,
|
|
1985
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
1986
|
-
counterpartyUpgradeSequence: isSet(object.counterpartyUpgradeSequence)
|
|
1987
|
-
? globalThis.Number(object.counterpartyUpgradeSequence)
|
|
1988
|
-
: 0,
|
|
1989
|
-
};
|
|
1990
|
-
},
|
|
1991
|
-
|
|
1992
|
-
toJSON(message: MsgTimeoutOnClose): unknown {
|
|
1993
|
-
const obj: any = {};
|
|
1994
|
-
if (message.packet !== undefined) {
|
|
1995
|
-
obj.packet = Packet.toJSON(message.packet);
|
|
1996
|
-
}
|
|
1997
|
-
if (message.proofUnreceived.length !== 0) {
|
|
1998
|
-
obj.proofUnreceived = base64FromBytes(message.proofUnreceived);
|
|
1999
|
-
}
|
|
2000
|
-
if (message.proofClose.length !== 0) {
|
|
2001
|
-
obj.proofClose = base64FromBytes(message.proofClose);
|
|
2002
|
-
}
|
|
2003
|
-
if (message.proofHeight !== undefined) {
|
|
2004
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
2005
|
-
}
|
|
2006
|
-
if (message.nextSequenceRecv !== 0) {
|
|
2007
|
-
obj.nextSequenceRecv = Math.round(message.nextSequenceRecv);
|
|
2008
|
-
}
|
|
2009
|
-
if (message.signer !== "") {
|
|
2010
|
-
obj.signer = message.signer;
|
|
2011
|
-
}
|
|
2012
|
-
if (message.counterpartyUpgradeSequence !== 0) {
|
|
2013
|
-
obj.counterpartyUpgradeSequence = Math.round(message.counterpartyUpgradeSequence);
|
|
2014
|
-
}
|
|
2015
|
-
return obj;
|
|
2016
|
-
},
|
|
2017
|
-
|
|
2018
|
-
create<I extends Exact<DeepPartial<MsgTimeoutOnClose>, I>>(base?: I): MsgTimeoutOnClose {
|
|
2019
|
-
return MsgTimeoutOnClose.fromPartial(base ?? ({} as any));
|
|
2020
|
-
},
|
|
2021
|
-
fromPartial<I extends Exact<DeepPartial<MsgTimeoutOnClose>, I>>(object: I): MsgTimeoutOnClose {
|
|
2022
|
-
const message = createBaseMsgTimeoutOnClose();
|
|
2023
|
-
message.packet = (object.packet !== undefined && object.packet !== null)
|
|
2024
|
-
? Packet.fromPartial(object.packet)
|
|
2025
|
-
: undefined;
|
|
2026
|
-
message.proofUnreceived = object.proofUnreceived ?? new Uint8Array(0);
|
|
2027
|
-
message.proofClose = object.proofClose ?? new Uint8Array(0);
|
|
2028
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
2029
|
-
? Height.fromPartial(object.proofHeight)
|
|
2030
|
-
: undefined;
|
|
2031
|
-
message.nextSequenceRecv = object.nextSequenceRecv ?? 0;
|
|
2032
|
-
message.signer = object.signer ?? "";
|
|
2033
|
-
message.counterpartyUpgradeSequence = object.counterpartyUpgradeSequence ?? 0;
|
|
2034
|
-
return message;
|
|
2035
|
-
},
|
|
2036
|
-
};
|
|
2037
|
-
|
|
2038
|
-
function createBaseMsgTimeoutOnCloseResponse(): MsgTimeoutOnCloseResponse {
|
|
2039
|
-
return { result: 0 };
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
export const MsgTimeoutOnCloseResponse: MessageFns<MsgTimeoutOnCloseResponse> = {
|
|
2043
|
-
encode(message: MsgTimeoutOnCloseResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2044
|
-
if (message.result !== 0) {
|
|
2045
|
-
writer.uint32(8).int32(message.result);
|
|
2046
|
-
}
|
|
2047
|
-
return writer;
|
|
2048
|
-
},
|
|
2049
|
-
|
|
2050
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgTimeoutOnCloseResponse {
|
|
2051
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2052
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2053
|
-
const message = createBaseMsgTimeoutOnCloseResponse();
|
|
2054
|
-
while (reader.pos < end) {
|
|
2055
|
-
const tag = reader.uint32();
|
|
2056
|
-
switch (tag >>> 3) {
|
|
2057
|
-
case 1: {
|
|
2058
|
-
if (tag !== 8) {
|
|
2059
|
-
break;
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
message.result = reader.int32() as any;
|
|
2063
|
-
continue;
|
|
2064
|
-
}
|
|
2065
|
-
}
|
|
2066
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2067
|
-
break;
|
|
2068
|
-
}
|
|
2069
|
-
reader.skip(tag & 7);
|
|
2070
|
-
}
|
|
2071
|
-
return message;
|
|
2072
|
-
},
|
|
2073
|
-
|
|
2074
|
-
fromJSON(object: any): MsgTimeoutOnCloseResponse {
|
|
2075
|
-
return { result: isSet(object.result) ? responseResultTypeFromJSON(object.result) : 0 };
|
|
2076
|
-
},
|
|
2077
|
-
|
|
2078
|
-
toJSON(message: MsgTimeoutOnCloseResponse): unknown {
|
|
2079
|
-
const obj: any = {};
|
|
2080
|
-
if (message.result !== 0) {
|
|
2081
|
-
obj.result = responseResultTypeToJSON(message.result);
|
|
2082
|
-
}
|
|
2083
|
-
return obj;
|
|
2084
|
-
},
|
|
2085
|
-
|
|
2086
|
-
create<I extends Exact<DeepPartial<MsgTimeoutOnCloseResponse>, I>>(base?: I): MsgTimeoutOnCloseResponse {
|
|
2087
|
-
return MsgTimeoutOnCloseResponse.fromPartial(base ?? ({} as any));
|
|
2088
|
-
},
|
|
2089
|
-
fromPartial<I extends Exact<DeepPartial<MsgTimeoutOnCloseResponse>, I>>(object: I): MsgTimeoutOnCloseResponse {
|
|
2090
|
-
const message = createBaseMsgTimeoutOnCloseResponse();
|
|
2091
|
-
message.result = object.result ?? 0;
|
|
2092
|
-
return message;
|
|
2093
|
-
},
|
|
2094
|
-
};
|
|
2095
|
-
|
|
2096
|
-
function createBaseMsgAcknowledgement(): MsgAcknowledgement {
|
|
2097
|
-
return {
|
|
2098
|
-
packet: undefined,
|
|
2099
|
-
acknowledgement: new Uint8Array(0),
|
|
2100
|
-
proofAcked: new Uint8Array(0),
|
|
2101
|
-
proofHeight: undefined,
|
|
2102
|
-
signer: "",
|
|
2103
|
-
};
|
|
2104
|
-
}
|
|
2105
|
-
|
|
2106
|
-
export const MsgAcknowledgement: MessageFns<MsgAcknowledgement> = {
|
|
2107
|
-
encode(message: MsgAcknowledgement, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2108
|
-
if (message.packet !== undefined) {
|
|
2109
|
-
Packet.encode(message.packet, writer.uint32(10).fork()).join();
|
|
2110
|
-
}
|
|
2111
|
-
if (message.acknowledgement.length !== 0) {
|
|
2112
|
-
writer.uint32(18).bytes(message.acknowledgement);
|
|
2113
|
-
}
|
|
2114
|
-
if (message.proofAcked.length !== 0) {
|
|
2115
|
-
writer.uint32(26).bytes(message.proofAcked);
|
|
2116
|
-
}
|
|
2117
|
-
if (message.proofHeight !== undefined) {
|
|
2118
|
-
Height.encode(message.proofHeight, writer.uint32(34).fork()).join();
|
|
2119
|
-
}
|
|
2120
|
-
if (message.signer !== "") {
|
|
2121
|
-
writer.uint32(42).string(message.signer);
|
|
2122
|
-
}
|
|
2123
|
-
return writer;
|
|
2124
|
-
},
|
|
2125
|
-
|
|
2126
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgAcknowledgement {
|
|
2127
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2128
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2129
|
-
const message = createBaseMsgAcknowledgement();
|
|
2130
|
-
while (reader.pos < end) {
|
|
2131
|
-
const tag = reader.uint32();
|
|
2132
|
-
switch (tag >>> 3) {
|
|
2133
|
-
case 1: {
|
|
2134
|
-
if (tag !== 10) {
|
|
2135
|
-
break;
|
|
2136
|
-
}
|
|
2137
|
-
|
|
2138
|
-
message.packet = Packet.decode(reader, reader.uint32());
|
|
2139
|
-
continue;
|
|
2140
|
-
}
|
|
2141
|
-
case 2: {
|
|
2142
|
-
if (tag !== 18) {
|
|
2143
|
-
break;
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2146
|
-
message.acknowledgement = reader.bytes();
|
|
2147
|
-
continue;
|
|
2148
|
-
}
|
|
2149
|
-
case 3: {
|
|
2150
|
-
if (tag !== 26) {
|
|
2151
|
-
break;
|
|
2152
|
-
}
|
|
2153
|
-
|
|
2154
|
-
message.proofAcked = reader.bytes();
|
|
2155
|
-
continue;
|
|
2156
|
-
}
|
|
2157
|
-
case 4: {
|
|
2158
|
-
if (tag !== 34) {
|
|
2159
|
-
break;
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
2163
|
-
continue;
|
|
2164
|
-
}
|
|
2165
|
-
case 5: {
|
|
2166
|
-
if (tag !== 42) {
|
|
2167
|
-
break;
|
|
2168
|
-
}
|
|
2169
|
-
|
|
2170
|
-
message.signer = reader.string();
|
|
2171
|
-
continue;
|
|
2172
|
-
}
|
|
2173
|
-
}
|
|
2174
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2175
|
-
break;
|
|
2176
|
-
}
|
|
2177
|
-
reader.skip(tag & 7);
|
|
2178
|
-
}
|
|
2179
|
-
return message;
|
|
2180
|
-
},
|
|
2181
|
-
|
|
2182
|
-
fromJSON(object: any): MsgAcknowledgement {
|
|
2183
|
-
return {
|
|
2184
|
-
packet: isSet(object.packet) ? Packet.fromJSON(object.packet) : undefined,
|
|
2185
|
-
acknowledgement: isSet(object.acknowledgement) ? bytesFromBase64(object.acknowledgement) : new Uint8Array(0),
|
|
2186
|
-
proofAcked: isSet(object.proofAcked) ? bytesFromBase64(object.proofAcked) : new Uint8Array(0),
|
|
2187
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
2188
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
2189
|
-
};
|
|
2190
|
-
},
|
|
2191
|
-
|
|
2192
|
-
toJSON(message: MsgAcknowledgement): unknown {
|
|
2193
|
-
const obj: any = {};
|
|
2194
|
-
if (message.packet !== undefined) {
|
|
2195
|
-
obj.packet = Packet.toJSON(message.packet);
|
|
2196
|
-
}
|
|
2197
|
-
if (message.acknowledgement.length !== 0) {
|
|
2198
|
-
obj.acknowledgement = base64FromBytes(message.acknowledgement);
|
|
2199
|
-
}
|
|
2200
|
-
if (message.proofAcked.length !== 0) {
|
|
2201
|
-
obj.proofAcked = base64FromBytes(message.proofAcked);
|
|
2202
|
-
}
|
|
2203
|
-
if (message.proofHeight !== undefined) {
|
|
2204
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
2205
|
-
}
|
|
2206
|
-
if (message.signer !== "") {
|
|
2207
|
-
obj.signer = message.signer;
|
|
2208
|
-
}
|
|
2209
|
-
return obj;
|
|
2210
|
-
},
|
|
2211
|
-
|
|
2212
|
-
create<I extends Exact<DeepPartial<MsgAcknowledgement>, I>>(base?: I): MsgAcknowledgement {
|
|
2213
|
-
return MsgAcknowledgement.fromPartial(base ?? ({} as any));
|
|
2214
|
-
},
|
|
2215
|
-
fromPartial<I extends Exact<DeepPartial<MsgAcknowledgement>, I>>(object: I): MsgAcknowledgement {
|
|
2216
|
-
const message = createBaseMsgAcknowledgement();
|
|
2217
|
-
message.packet = (object.packet !== undefined && object.packet !== null)
|
|
2218
|
-
? Packet.fromPartial(object.packet)
|
|
2219
|
-
: undefined;
|
|
2220
|
-
message.acknowledgement = object.acknowledgement ?? new Uint8Array(0);
|
|
2221
|
-
message.proofAcked = object.proofAcked ?? new Uint8Array(0);
|
|
2222
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
2223
|
-
? Height.fromPartial(object.proofHeight)
|
|
2224
|
-
: undefined;
|
|
2225
|
-
message.signer = object.signer ?? "";
|
|
2226
|
-
return message;
|
|
2227
|
-
},
|
|
2228
|
-
};
|
|
2229
|
-
|
|
2230
|
-
function createBaseMsgAcknowledgementResponse(): MsgAcknowledgementResponse {
|
|
2231
|
-
return { result: 0 };
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
export const MsgAcknowledgementResponse: MessageFns<MsgAcknowledgementResponse> = {
|
|
2235
|
-
encode(message: MsgAcknowledgementResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2236
|
-
if (message.result !== 0) {
|
|
2237
|
-
writer.uint32(8).int32(message.result);
|
|
2238
|
-
}
|
|
2239
|
-
return writer;
|
|
2240
|
-
},
|
|
2241
|
-
|
|
2242
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgAcknowledgementResponse {
|
|
2243
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2244
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2245
|
-
const message = createBaseMsgAcknowledgementResponse();
|
|
2246
|
-
while (reader.pos < end) {
|
|
2247
|
-
const tag = reader.uint32();
|
|
2248
|
-
switch (tag >>> 3) {
|
|
2249
|
-
case 1: {
|
|
2250
|
-
if (tag !== 8) {
|
|
2251
|
-
break;
|
|
2252
|
-
}
|
|
2253
|
-
|
|
2254
|
-
message.result = reader.int32() as any;
|
|
2255
|
-
continue;
|
|
2256
|
-
}
|
|
2257
|
-
}
|
|
2258
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2259
|
-
break;
|
|
2260
|
-
}
|
|
2261
|
-
reader.skip(tag & 7);
|
|
2262
|
-
}
|
|
2263
|
-
return message;
|
|
2264
|
-
},
|
|
2265
|
-
|
|
2266
|
-
fromJSON(object: any): MsgAcknowledgementResponse {
|
|
2267
|
-
return { result: isSet(object.result) ? responseResultTypeFromJSON(object.result) : 0 };
|
|
2268
|
-
},
|
|
2269
|
-
|
|
2270
|
-
toJSON(message: MsgAcknowledgementResponse): unknown {
|
|
2271
|
-
const obj: any = {};
|
|
2272
|
-
if (message.result !== 0) {
|
|
2273
|
-
obj.result = responseResultTypeToJSON(message.result);
|
|
2274
|
-
}
|
|
2275
|
-
return obj;
|
|
2276
|
-
},
|
|
2277
|
-
|
|
2278
|
-
create<I extends Exact<DeepPartial<MsgAcknowledgementResponse>, I>>(base?: I): MsgAcknowledgementResponse {
|
|
2279
|
-
return MsgAcknowledgementResponse.fromPartial(base ?? ({} as any));
|
|
2280
|
-
},
|
|
2281
|
-
fromPartial<I extends Exact<DeepPartial<MsgAcknowledgementResponse>, I>>(object: I): MsgAcknowledgementResponse {
|
|
2282
|
-
const message = createBaseMsgAcknowledgementResponse();
|
|
2283
|
-
message.result = object.result ?? 0;
|
|
2284
|
-
return message;
|
|
2285
|
-
},
|
|
2286
|
-
};
|
|
2287
|
-
|
|
2288
|
-
function createBaseMsgChannelUpgradeInit(): MsgChannelUpgradeInit {
|
|
2289
|
-
return { portId: "", channelId: "", fields: undefined, signer: "" };
|
|
2290
|
-
}
|
|
2291
|
-
|
|
2292
|
-
export const MsgChannelUpgradeInit: MessageFns<MsgChannelUpgradeInit> = {
|
|
2293
|
-
encode(message: MsgChannelUpgradeInit, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2294
|
-
if (message.portId !== "") {
|
|
2295
|
-
writer.uint32(10).string(message.portId);
|
|
2296
|
-
}
|
|
2297
|
-
if (message.channelId !== "") {
|
|
2298
|
-
writer.uint32(18).string(message.channelId);
|
|
2299
|
-
}
|
|
2300
|
-
if (message.fields !== undefined) {
|
|
2301
|
-
UpgradeFields.encode(message.fields, writer.uint32(26).fork()).join();
|
|
2302
|
-
}
|
|
2303
|
-
if (message.signer !== "") {
|
|
2304
|
-
writer.uint32(34).string(message.signer);
|
|
2305
|
-
}
|
|
2306
|
-
return writer;
|
|
2307
|
-
},
|
|
2308
|
-
|
|
2309
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeInit {
|
|
2310
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2311
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2312
|
-
const message = createBaseMsgChannelUpgradeInit();
|
|
2313
|
-
while (reader.pos < end) {
|
|
2314
|
-
const tag = reader.uint32();
|
|
2315
|
-
switch (tag >>> 3) {
|
|
2316
|
-
case 1: {
|
|
2317
|
-
if (tag !== 10) {
|
|
2318
|
-
break;
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
message.portId = reader.string();
|
|
2322
|
-
continue;
|
|
2323
|
-
}
|
|
2324
|
-
case 2: {
|
|
2325
|
-
if (tag !== 18) {
|
|
2326
|
-
break;
|
|
2327
|
-
}
|
|
2328
|
-
|
|
2329
|
-
message.channelId = reader.string();
|
|
2330
|
-
continue;
|
|
2331
|
-
}
|
|
2332
|
-
case 3: {
|
|
2333
|
-
if (tag !== 26) {
|
|
2334
|
-
break;
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
|
-
message.fields = UpgradeFields.decode(reader, reader.uint32());
|
|
2338
|
-
continue;
|
|
2339
|
-
}
|
|
2340
|
-
case 4: {
|
|
2341
|
-
if (tag !== 34) {
|
|
2342
|
-
break;
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
|
-
message.signer = reader.string();
|
|
2346
|
-
continue;
|
|
2347
|
-
}
|
|
2348
|
-
}
|
|
2349
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2350
|
-
break;
|
|
2351
|
-
}
|
|
2352
|
-
reader.skip(tag & 7);
|
|
2353
|
-
}
|
|
2354
|
-
return message;
|
|
2355
|
-
},
|
|
2356
|
-
|
|
2357
|
-
fromJSON(object: any): MsgChannelUpgradeInit {
|
|
2358
|
-
return {
|
|
2359
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
2360
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
2361
|
-
fields: isSet(object.fields) ? UpgradeFields.fromJSON(object.fields) : undefined,
|
|
2362
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
2363
|
-
};
|
|
2364
|
-
},
|
|
2365
|
-
|
|
2366
|
-
toJSON(message: MsgChannelUpgradeInit): unknown {
|
|
2367
|
-
const obj: any = {};
|
|
2368
|
-
if (message.portId !== "") {
|
|
2369
|
-
obj.portId = message.portId;
|
|
2370
|
-
}
|
|
2371
|
-
if (message.channelId !== "") {
|
|
2372
|
-
obj.channelId = message.channelId;
|
|
2373
|
-
}
|
|
2374
|
-
if (message.fields !== undefined) {
|
|
2375
|
-
obj.fields = UpgradeFields.toJSON(message.fields);
|
|
2376
|
-
}
|
|
2377
|
-
if (message.signer !== "") {
|
|
2378
|
-
obj.signer = message.signer;
|
|
2379
|
-
}
|
|
2380
|
-
return obj;
|
|
2381
|
-
},
|
|
2382
|
-
|
|
2383
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeInit>, I>>(base?: I): MsgChannelUpgradeInit {
|
|
2384
|
-
return MsgChannelUpgradeInit.fromPartial(base ?? ({} as any));
|
|
2385
|
-
},
|
|
2386
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeInit>, I>>(object: I): MsgChannelUpgradeInit {
|
|
2387
|
-
const message = createBaseMsgChannelUpgradeInit();
|
|
2388
|
-
message.portId = object.portId ?? "";
|
|
2389
|
-
message.channelId = object.channelId ?? "";
|
|
2390
|
-
message.fields = (object.fields !== undefined && object.fields !== null)
|
|
2391
|
-
? UpgradeFields.fromPartial(object.fields)
|
|
2392
|
-
: undefined;
|
|
2393
|
-
message.signer = object.signer ?? "";
|
|
2394
|
-
return message;
|
|
2395
|
-
},
|
|
2396
|
-
};
|
|
2397
|
-
|
|
2398
|
-
function createBaseMsgChannelUpgradeInitResponse(): MsgChannelUpgradeInitResponse {
|
|
2399
|
-
return { upgrade: undefined, upgradeSequence: 0 };
|
|
2400
|
-
}
|
|
2401
|
-
|
|
2402
|
-
export const MsgChannelUpgradeInitResponse: MessageFns<MsgChannelUpgradeInitResponse> = {
|
|
2403
|
-
encode(message: MsgChannelUpgradeInitResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2404
|
-
if (message.upgrade !== undefined) {
|
|
2405
|
-
Upgrade.encode(message.upgrade, writer.uint32(10).fork()).join();
|
|
2406
|
-
}
|
|
2407
|
-
if (message.upgradeSequence !== 0) {
|
|
2408
|
-
writer.uint32(16).uint64(message.upgradeSequence);
|
|
2409
|
-
}
|
|
2410
|
-
return writer;
|
|
2411
|
-
},
|
|
2412
|
-
|
|
2413
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeInitResponse {
|
|
2414
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2415
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2416
|
-
const message = createBaseMsgChannelUpgradeInitResponse();
|
|
2417
|
-
while (reader.pos < end) {
|
|
2418
|
-
const tag = reader.uint32();
|
|
2419
|
-
switch (tag >>> 3) {
|
|
2420
|
-
case 1: {
|
|
2421
|
-
if (tag !== 10) {
|
|
2422
|
-
break;
|
|
2423
|
-
}
|
|
2424
|
-
|
|
2425
|
-
message.upgrade = Upgrade.decode(reader, reader.uint32());
|
|
2426
|
-
continue;
|
|
2427
|
-
}
|
|
2428
|
-
case 2: {
|
|
2429
|
-
if (tag !== 16) {
|
|
2430
|
-
break;
|
|
2431
|
-
}
|
|
2432
|
-
|
|
2433
|
-
message.upgradeSequence = longToNumber(reader.uint64());
|
|
2434
|
-
continue;
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2438
|
-
break;
|
|
2439
|
-
}
|
|
2440
|
-
reader.skip(tag & 7);
|
|
2441
|
-
}
|
|
2442
|
-
return message;
|
|
2443
|
-
},
|
|
2444
|
-
|
|
2445
|
-
fromJSON(object: any): MsgChannelUpgradeInitResponse {
|
|
2446
|
-
return {
|
|
2447
|
-
upgrade: isSet(object.upgrade) ? Upgrade.fromJSON(object.upgrade) : undefined,
|
|
2448
|
-
upgradeSequence: isSet(object.upgradeSequence) ? globalThis.Number(object.upgradeSequence) : 0,
|
|
2449
|
-
};
|
|
2450
|
-
},
|
|
2451
|
-
|
|
2452
|
-
toJSON(message: MsgChannelUpgradeInitResponse): unknown {
|
|
2453
|
-
const obj: any = {};
|
|
2454
|
-
if (message.upgrade !== undefined) {
|
|
2455
|
-
obj.upgrade = Upgrade.toJSON(message.upgrade);
|
|
2456
|
-
}
|
|
2457
|
-
if (message.upgradeSequence !== 0) {
|
|
2458
|
-
obj.upgradeSequence = Math.round(message.upgradeSequence);
|
|
2459
|
-
}
|
|
2460
|
-
return obj;
|
|
2461
|
-
},
|
|
2462
|
-
|
|
2463
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeInitResponse>, I>>(base?: I): MsgChannelUpgradeInitResponse {
|
|
2464
|
-
return MsgChannelUpgradeInitResponse.fromPartial(base ?? ({} as any));
|
|
2465
|
-
},
|
|
2466
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeInitResponse>, I>>(
|
|
2467
|
-
object: I,
|
|
2468
|
-
): MsgChannelUpgradeInitResponse {
|
|
2469
|
-
const message = createBaseMsgChannelUpgradeInitResponse();
|
|
2470
|
-
message.upgrade = (object.upgrade !== undefined && object.upgrade !== null)
|
|
2471
|
-
? Upgrade.fromPartial(object.upgrade)
|
|
2472
|
-
: undefined;
|
|
2473
|
-
message.upgradeSequence = object.upgradeSequence ?? 0;
|
|
2474
|
-
return message;
|
|
2475
|
-
},
|
|
2476
|
-
};
|
|
2477
|
-
|
|
2478
|
-
function createBaseMsgChannelUpgradeTry(): MsgChannelUpgradeTry {
|
|
2479
|
-
return {
|
|
2480
|
-
portId: "",
|
|
2481
|
-
channelId: "",
|
|
2482
|
-
proposedUpgradeConnectionHops: [],
|
|
2483
|
-
counterpartyUpgradeFields: undefined,
|
|
2484
|
-
counterpartyUpgradeSequence: 0,
|
|
2485
|
-
proofChannel: new Uint8Array(0),
|
|
2486
|
-
proofUpgrade: new Uint8Array(0),
|
|
2487
|
-
proofHeight: undefined,
|
|
2488
|
-
signer: "",
|
|
2489
|
-
};
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
|
-
export const MsgChannelUpgradeTry: MessageFns<MsgChannelUpgradeTry> = {
|
|
2493
|
-
encode(message: MsgChannelUpgradeTry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2494
|
-
if (message.portId !== "") {
|
|
2495
|
-
writer.uint32(10).string(message.portId);
|
|
2496
|
-
}
|
|
2497
|
-
if (message.channelId !== "") {
|
|
2498
|
-
writer.uint32(18).string(message.channelId);
|
|
2499
|
-
}
|
|
2500
|
-
for (const v of message.proposedUpgradeConnectionHops) {
|
|
2501
|
-
writer.uint32(26).string(v!);
|
|
2502
|
-
}
|
|
2503
|
-
if (message.counterpartyUpgradeFields !== undefined) {
|
|
2504
|
-
UpgradeFields.encode(message.counterpartyUpgradeFields, writer.uint32(34).fork()).join();
|
|
2505
|
-
}
|
|
2506
|
-
if (message.counterpartyUpgradeSequence !== 0) {
|
|
2507
|
-
writer.uint32(40).uint64(message.counterpartyUpgradeSequence);
|
|
2508
|
-
}
|
|
2509
|
-
if (message.proofChannel.length !== 0) {
|
|
2510
|
-
writer.uint32(50).bytes(message.proofChannel);
|
|
2511
|
-
}
|
|
2512
|
-
if (message.proofUpgrade.length !== 0) {
|
|
2513
|
-
writer.uint32(58).bytes(message.proofUpgrade);
|
|
2514
|
-
}
|
|
2515
|
-
if (message.proofHeight !== undefined) {
|
|
2516
|
-
Height.encode(message.proofHeight, writer.uint32(66).fork()).join();
|
|
2517
|
-
}
|
|
2518
|
-
if (message.signer !== "") {
|
|
2519
|
-
writer.uint32(74).string(message.signer);
|
|
2520
|
-
}
|
|
2521
|
-
return writer;
|
|
2522
|
-
},
|
|
2523
|
-
|
|
2524
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeTry {
|
|
2525
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2526
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2527
|
-
const message = createBaseMsgChannelUpgradeTry();
|
|
2528
|
-
while (reader.pos < end) {
|
|
2529
|
-
const tag = reader.uint32();
|
|
2530
|
-
switch (tag >>> 3) {
|
|
2531
|
-
case 1: {
|
|
2532
|
-
if (tag !== 10) {
|
|
2533
|
-
break;
|
|
2534
|
-
}
|
|
2535
|
-
|
|
2536
|
-
message.portId = reader.string();
|
|
2537
|
-
continue;
|
|
2538
|
-
}
|
|
2539
|
-
case 2: {
|
|
2540
|
-
if (tag !== 18) {
|
|
2541
|
-
break;
|
|
2542
|
-
}
|
|
2543
|
-
|
|
2544
|
-
message.channelId = reader.string();
|
|
2545
|
-
continue;
|
|
2546
|
-
}
|
|
2547
|
-
case 3: {
|
|
2548
|
-
if (tag !== 26) {
|
|
2549
|
-
break;
|
|
2550
|
-
}
|
|
2551
|
-
|
|
2552
|
-
message.proposedUpgradeConnectionHops.push(reader.string());
|
|
2553
|
-
continue;
|
|
2554
|
-
}
|
|
2555
|
-
case 4: {
|
|
2556
|
-
if (tag !== 34) {
|
|
2557
|
-
break;
|
|
2558
|
-
}
|
|
2559
|
-
|
|
2560
|
-
message.counterpartyUpgradeFields = UpgradeFields.decode(reader, reader.uint32());
|
|
2561
|
-
continue;
|
|
2562
|
-
}
|
|
2563
|
-
case 5: {
|
|
2564
|
-
if (tag !== 40) {
|
|
2565
|
-
break;
|
|
2566
|
-
}
|
|
2567
|
-
|
|
2568
|
-
message.counterpartyUpgradeSequence = longToNumber(reader.uint64());
|
|
2569
|
-
continue;
|
|
2570
|
-
}
|
|
2571
|
-
case 6: {
|
|
2572
|
-
if (tag !== 50) {
|
|
2573
|
-
break;
|
|
2574
|
-
}
|
|
2575
|
-
|
|
2576
|
-
message.proofChannel = reader.bytes();
|
|
2577
|
-
continue;
|
|
2578
|
-
}
|
|
2579
|
-
case 7: {
|
|
2580
|
-
if (tag !== 58) {
|
|
2581
|
-
break;
|
|
2582
|
-
}
|
|
2583
|
-
|
|
2584
|
-
message.proofUpgrade = reader.bytes();
|
|
2585
|
-
continue;
|
|
2586
|
-
}
|
|
2587
|
-
case 8: {
|
|
2588
|
-
if (tag !== 66) {
|
|
2589
|
-
break;
|
|
2590
|
-
}
|
|
2591
|
-
|
|
2592
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
2593
|
-
continue;
|
|
2594
|
-
}
|
|
2595
|
-
case 9: {
|
|
2596
|
-
if (tag !== 74) {
|
|
2597
|
-
break;
|
|
2598
|
-
}
|
|
2599
|
-
|
|
2600
|
-
message.signer = reader.string();
|
|
2601
|
-
continue;
|
|
2602
|
-
}
|
|
2603
|
-
}
|
|
2604
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2605
|
-
break;
|
|
2606
|
-
}
|
|
2607
|
-
reader.skip(tag & 7);
|
|
2608
|
-
}
|
|
2609
|
-
return message;
|
|
2610
|
-
},
|
|
2611
|
-
|
|
2612
|
-
fromJSON(object: any): MsgChannelUpgradeTry {
|
|
2613
|
-
return {
|
|
2614
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
2615
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
2616
|
-
proposedUpgradeConnectionHops: globalThis.Array.isArray(object?.proposedUpgradeConnectionHops)
|
|
2617
|
-
? object.proposedUpgradeConnectionHops.map((e: any) => globalThis.String(e))
|
|
2618
|
-
: [],
|
|
2619
|
-
counterpartyUpgradeFields: isSet(object.counterpartyUpgradeFields)
|
|
2620
|
-
? UpgradeFields.fromJSON(object.counterpartyUpgradeFields)
|
|
2621
|
-
: undefined,
|
|
2622
|
-
counterpartyUpgradeSequence: isSet(object.counterpartyUpgradeSequence)
|
|
2623
|
-
? globalThis.Number(object.counterpartyUpgradeSequence)
|
|
2624
|
-
: 0,
|
|
2625
|
-
proofChannel: isSet(object.proofChannel) ? bytesFromBase64(object.proofChannel) : new Uint8Array(0),
|
|
2626
|
-
proofUpgrade: isSet(object.proofUpgrade) ? bytesFromBase64(object.proofUpgrade) : new Uint8Array(0),
|
|
2627
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
2628
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
2629
|
-
};
|
|
2630
|
-
},
|
|
2631
|
-
|
|
2632
|
-
toJSON(message: MsgChannelUpgradeTry): unknown {
|
|
2633
|
-
const obj: any = {};
|
|
2634
|
-
if (message.portId !== "") {
|
|
2635
|
-
obj.portId = message.portId;
|
|
2636
|
-
}
|
|
2637
|
-
if (message.channelId !== "") {
|
|
2638
|
-
obj.channelId = message.channelId;
|
|
2639
|
-
}
|
|
2640
|
-
if (message.proposedUpgradeConnectionHops?.length) {
|
|
2641
|
-
obj.proposedUpgradeConnectionHops = message.proposedUpgradeConnectionHops;
|
|
2642
|
-
}
|
|
2643
|
-
if (message.counterpartyUpgradeFields !== undefined) {
|
|
2644
|
-
obj.counterpartyUpgradeFields = UpgradeFields.toJSON(message.counterpartyUpgradeFields);
|
|
2645
|
-
}
|
|
2646
|
-
if (message.counterpartyUpgradeSequence !== 0) {
|
|
2647
|
-
obj.counterpartyUpgradeSequence = Math.round(message.counterpartyUpgradeSequence);
|
|
2648
|
-
}
|
|
2649
|
-
if (message.proofChannel.length !== 0) {
|
|
2650
|
-
obj.proofChannel = base64FromBytes(message.proofChannel);
|
|
2651
|
-
}
|
|
2652
|
-
if (message.proofUpgrade.length !== 0) {
|
|
2653
|
-
obj.proofUpgrade = base64FromBytes(message.proofUpgrade);
|
|
2654
|
-
}
|
|
2655
|
-
if (message.proofHeight !== undefined) {
|
|
2656
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
2657
|
-
}
|
|
2658
|
-
if (message.signer !== "") {
|
|
2659
|
-
obj.signer = message.signer;
|
|
2660
|
-
}
|
|
2661
|
-
return obj;
|
|
2662
|
-
},
|
|
2663
|
-
|
|
2664
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeTry>, I>>(base?: I): MsgChannelUpgradeTry {
|
|
2665
|
-
return MsgChannelUpgradeTry.fromPartial(base ?? ({} as any));
|
|
2666
|
-
},
|
|
2667
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeTry>, I>>(object: I): MsgChannelUpgradeTry {
|
|
2668
|
-
const message = createBaseMsgChannelUpgradeTry();
|
|
2669
|
-
message.portId = object.portId ?? "";
|
|
2670
|
-
message.channelId = object.channelId ?? "";
|
|
2671
|
-
message.proposedUpgradeConnectionHops = object.proposedUpgradeConnectionHops?.map((e) => e) || [];
|
|
2672
|
-
message.counterpartyUpgradeFields =
|
|
2673
|
-
(object.counterpartyUpgradeFields !== undefined && object.counterpartyUpgradeFields !== null)
|
|
2674
|
-
? UpgradeFields.fromPartial(object.counterpartyUpgradeFields)
|
|
2675
|
-
: undefined;
|
|
2676
|
-
message.counterpartyUpgradeSequence = object.counterpartyUpgradeSequence ?? 0;
|
|
2677
|
-
message.proofChannel = object.proofChannel ?? new Uint8Array(0);
|
|
2678
|
-
message.proofUpgrade = object.proofUpgrade ?? new Uint8Array(0);
|
|
2679
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
2680
|
-
? Height.fromPartial(object.proofHeight)
|
|
2681
|
-
: undefined;
|
|
2682
|
-
message.signer = object.signer ?? "";
|
|
2683
|
-
return message;
|
|
2684
|
-
},
|
|
2685
|
-
};
|
|
2686
|
-
|
|
2687
|
-
function createBaseMsgChannelUpgradeTryResponse(): MsgChannelUpgradeTryResponse {
|
|
2688
|
-
return { upgrade: undefined, upgradeSequence: 0, result: 0 };
|
|
2689
|
-
}
|
|
2690
|
-
|
|
2691
|
-
export const MsgChannelUpgradeTryResponse: MessageFns<MsgChannelUpgradeTryResponse> = {
|
|
2692
|
-
encode(message: MsgChannelUpgradeTryResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2693
|
-
if (message.upgrade !== undefined) {
|
|
2694
|
-
Upgrade.encode(message.upgrade, writer.uint32(10).fork()).join();
|
|
2695
|
-
}
|
|
2696
|
-
if (message.upgradeSequence !== 0) {
|
|
2697
|
-
writer.uint32(16).uint64(message.upgradeSequence);
|
|
2698
|
-
}
|
|
2699
|
-
if (message.result !== 0) {
|
|
2700
|
-
writer.uint32(24).int32(message.result);
|
|
2701
|
-
}
|
|
2702
|
-
return writer;
|
|
2703
|
-
},
|
|
2704
|
-
|
|
2705
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeTryResponse {
|
|
2706
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2707
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2708
|
-
const message = createBaseMsgChannelUpgradeTryResponse();
|
|
2709
|
-
while (reader.pos < end) {
|
|
2710
|
-
const tag = reader.uint32();
|
|
2711
|
-
switch (tag >>> 3) {
|
|
2712
|
-
case 1: {
|
|
2713
|
-
if (tag !== 10) {
|
|
2714
|
-
break;
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
|
-
message.upgrade = Upgrade.decode(reader, reader.uint32());
|
|
2718
|
-
continue;
|
|
2719
|
-
}
|
|
2720
|
-
case 2: {
|
|
2721
|
-
if (tag !== 16) {
|
|
2722
|
-
break;
|
|
2723
|
-
}
|
|
2724
|
-
|
|
2725
|
-
message.upgradeSequence = longToNumber(reader.uint64());
|
|
2726
|
-
continue;
|
|
2727
|
-
}
|
|
2728
|
-
case 3: {
|
|
2729
|
-
if (tag !== 24) {
|
|
2730
|
-
break;
|
|
2731
|
-
}
|
|
2732
|
-
|
|
2733
|
-
message.result = reader.int32() as any;
|
|
2734
|
-
continue;
|
|
2735
|
-
}
|
|
2736
|
-
}
|
|
2737
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2738
|
-
break;
|
|
2739
|
-
}
|
|
2740
|
-
reader.skip(tag & 7);
|
|
2741
|
-
}
|
|
2742
|
-
return message;
|
|
2743
|
-
},
|
|
2744
|
-
|
|
2745
|
-
fromJSON(object: any): MsgChannelUpgradeTryResponse {
|
|
2746
|
-
return {
|
|
2747
|
-
upgrade: isSet(object.upgrade) ? Upgrade.fromJSON(object.upgrade) : undefined,
|
|
2748
|
-
upgradeSequence: isSet(object.upgradeSequence) ? globalThis.Number(object.upgradeSequence) : 0,
|
|
2749
|
-
result: isSet(object.result) ? responseResultTypeFromJSON(object.result) : 0,
|
|
2750
|
-
};
|
|
2751
|
-
},
|
|
2752
|
-
|
|
2753
|
-
toJSON(message: MsgChannelUpgradeTryResponse): unknown {
|
|
2754
|
-
const obj: any = {};
|
|
2755
|
-
if (message.upgrade !== undefined) {
|
|
2756
|
-
obj.upgrade = Upgrade.toJSON(message.upgrade);
|
|
2757
|
-
}
|
|
2758
|
-
if (message.upgradeSequence !== 0) {
|
|
2759
|
-
obj.upgradeSequence = Math.round(message.upgradeSequence);
|
|
2760
|
-
}
|
|
2761
|
-
if (message.result !== 0) {
|
|
2762
|
-
obj.result = responseResultTypeToJSON(message.result);
|
|
2763
|
-
}
|
|
2764
|
-
return obj;
|
|
2765
|
-
},
|
|
2766
|
-
|
|
2767
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeTryResponse>, I>>(base?: I): MsgChannelUpgradeTryResponse {
|
|
2768
|
-
return MsgChannelUpgradeTryResponse.fromPartial(base ?? ({} as any));
|
|
2769
|
-
},
|
|
2770
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeTryResponse>, I>>(object: I): MsgChannelUpgradeTryResponse {
|
|
2771
|
-
const message = createBaseMsgChannelUpgradeTryResponse();
|
|
2772
|
-
message.upgrade = (object.upgrade !== undefined && object.upgrade !== null)
|
|
2773
|
-
? Upgrade.fromPartial(object.upgrade)
|
|
2774
|
-
: undefined;
|
|
2775
|
-
message.upgradeSequence = object.upgradeSequence ?? 0;
|
|
2776
|
-
message.result = object.result ?? 0;
|
|
2777
|
-
return message;
|
|
2778
|
-
},
|
|
2779
|
-
};
|
|
2780
|
-
|
|
2781
|
-
function createBaseMsgChannelUpgradeAck(): MsgChannelUpgradeAck {
|
|
2782
|
-
return {
|
|
2783
|
-
portId: "",
|
|
2784
|
-
channelId: "",
|
|
2785
|
-
counterpartyUpgrade: undefined,
|
|
2786
|
-
proofChannel: new Uint8Array(0),
|
|
2787
|
-
proofUpgrade: new Uint8Array(0),
|
|
2788
|
-
proofHeight: undefined,
|
|
2789
|
-
signer: "",
|
|
2790
|
-
};
|
|
2791
|
-
}
|
|
2792
|
-
|
|
2793
|
-
export const MsgChannelUpgradeAck: MessageFns<MsgChannelUpgradeAck> = {
|
|
2794
|
-
encode(message: MsgChannelUpgradeAck, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2795
|
-
if (message.portId !== "") {
|
|
2796
|
-
writer.uint32(10).string(message.portId);
|
|
2797
|
-
}
|
|
2798
|
-
if (message.channelId !== "") {
|
|
2799
|
-
writer.uint32(18).string(message.channelId);
|
|
2800
|
-
}
|
|
2801
|
-
if (message.counterpartyUpgrade !== undefined) {
|
|
2802
|
-
Upgrade.encode(message.counterpartyUpgrade, writer.uint32(26).fork()).join();
|
|
2803
|
-
}
|
|
2804
|
-
if (message.proofChannel.length !== 0) {
|
|
2805
|
-
writer.uint32(34).bytes(message.proofChannel);
|
|
2806
|
-
}
|
|
2807
|
-
if (message.proofUpgrade.length !== 0) {
|
|
2808
|
-
writer.uint32(42).bytes(message.proofUpgrade);
|
|
2809
|
-
}
|
|
2810
|
-
if (message.proofHeight !== undefined) {
|
|
2811
|
-
Height.encode(message.proofHeight, writer.uint32(50).fork()).join();
|
|
2812
|
-
}
|
|
2813
|
-
if (message.signer !== "") {
|
|
2814
|
-
writer.uint32(58).string(message.signer);
|
|
2815
|
-
}
|
|
2816
|
-
return writer;
|
|
2817
|
-
},
|
|
2818
|
-
|
|
2819
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeAck {
|
|
2820
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2821
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2822
|
-
const message = createBaseMsgChannelUpgradeAck();
|
|
2823
|
-
while (reader.pos < end) {
|
|
2824
|
-
const tag = reader.uint32();
|
|
2825
|
-
switch (tag >>> 3) {
|
|
2826
|
-
case 1: {
|
|
2827
|
-
if (tag !== 10) {
|
|
2828
|
-
break;
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2831
|
-
message.portId = reader.string();
|
|
2832
|
-
continue;
|
|
2833
|
-
}
|
|
2834
|
-
case 2: {
|
|
2835
|
-
if (tag !== 18) {
|
|
2836
|
-
break;
|
|
2837
|
-
}
|
|
2838
|
-
|
|
2839
|
-
message.channelId = reader.string();
|
|
2840
|
-
continue;
|
|
2841
|
-
}
|
|
2842
|
-
case 3: {
|
|
2843
|
-
if (tag !== 26) {
|
|
2844
|
-
break;
|
|
2845
|
-
}
|
|
2846
|
-
|
|
2847
|
-
message.counterpartyUpgrade = Upgrade.decode(reader, reader.uint32());
|
|
2848
|
-
continue;
|
|
2849
|
-
}
|
|
2850
|
-
case 4: {
|
|
2851
|
-
if (tag !== 34) {
|
|
2852
|
-
break;
|
|
2853
|
-
}
|
|
2854
|
-
|
|
2855
|
-
message.proofChannel = reader.bytes();
|
|
2856
|
-
continue;
|
|
2857
|
-
}
|
|
2858
|
-
case 5: {
|
|
2859
|
-
if (tag !== 42) {
|
|
2860
|
-
break;
|
|
2861
|
-
}
|
|
2862
|
-
|
|
2863
|
-
message.proofUpgrade = reader.bytes();
|
|
2864
|
-
continue;
|
|
2865
|
-
}
|
|
2866
|
-
case 6: {
|
|
2867
|
-
if (tag !== 50) {
|
|
2868
|
-
break;
|
|
2869
|
-
}
|
|
2870
|
-
|
|
2871
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
2872
|
-
continue;
|
|
2873
|
-
}
|
|
2874
|
-
case 7: {
|
|
2875
|
-
if (tag !== 58) {
|
|
2876
|
-
break;
|
|
2877
|
-
}
|
|
2878
|
-
|
|
2879
|
-
message.signer = reader.string();
|
|
2880
|
-
continue;
|
|
2881
|
-
}
|
|
2882
|
-
}
|
|
2883
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2884
|
-
break;
|
|
2885
|
-
}
|
|
2886
|
-
reader.skip(tag & 7);
|
|
2887
|
-
}
|
|
2888
|
-
return message;
|
|
2889
|
-
},
|
|
2890
|
-
|
|
2891
|
-
fromJSON(object: any): MsgChannelUpgradeAck {
|
|
2892
|
-
return {
|
|
2893
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
2894
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
2895
|
-
counterpartyUpgrade: isSet(object.counterpartyUpgrade) ? Upgrade.fromJSON(object.counterpartyUpgrade) : undefined,
|
|
2896
|
-
proofChannel: isSet(object.proofChannel) ? bytesFromBase64(object.proofChannel) : new Uint8Array(0),
|
|
2897
|
-
proofUpgrade: isSet(object.proofUpgrade) ? bytesFromBase64(object.proofUpgrade) : new Uint8Array(0),
|
|
2898
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
2899
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
2900
|
-
};
|
|
2901
|
-
},
|
|
2902
|
-
|
|
2903
|
-
toJSON(message: MsgChannelUpgradeAck): unknown {
|
|
2904
|
-
const obj: any = {};
|
|
2905
|
-
if (message.portId !== "") {
|
|
2906
|
-
obj.portId = message.portId;
|
|
2907
|
-
}
|
|
2908
|
-
if (message.channelId !== "") {
|
|
2909
|
-
obj.channelId = message.channelId;
|
|
2910
|
-
}
|
|
2911
|
-
if (message.counterpartyUpgrade !== undefined) {
|
|
2912
|
-
obj.counterpartyUpgrade = Upgrade.toJSON(message.counterpartyUpgrade);
|
|
2913
|
-
}
|
|
2914
|
-
if (message.proofChannel.length !== 0) {
|
|
2915
|
-
obj.proofChannel = base64FromBytes(message.proofChannel);
|
|
2916
|
-
}
|
|
2917
|
-
if (message.proofUpgrade.length !== 0) {
|
|
2918
|
-
obj.proofUpgrade = base64FromBytes(message.proofUpgrade);
|
|
2919
|
-
}
|
|
2920
|
-
if (message.proofHeight !== undefined) {
|
|
2921
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
2922
|
-
}
|
|
2923
|
-
if (message.signer !== "") {
|
|
2924
|
-
obj.signer = message.signer;
|
|
2925
|
-
}
|
|
2926
|
-
return obj;
|
|
2927
|
-
},
|
|
2928
|
-
|
|
2929
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeAck>, I>>(base?: I): MsgChannelUpgradeAck {
|
|
2930
|
-
return MsgChannelUpgradeAck.fromPartial(base ?? ({} as any));
|
|
2931
|
-
},
|
|
2932
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeAck>, I>>(object: I): MsgChannelUpgradeAck {
|
|
2933
|
-
const message = createBaseMsgChannelUpgradeAck();
|
|
2934
|
-
message.portId = object.portId ?? "";
|
|
2935
|
-
message.channelId = object.channelId ?? "";
|
|
2936
|
-
message.counterpartyUpgrade = (object.counterpartyUpgrade !== undefined && object.counterpartyUpgrade !== null)
|
|
2937
|
-
? Upgrade.fromPartial(object.counterpartyUpgrade)
|
|
2938
|
-
: undefined;
|
|
2939
|
-
message.proofChannel = object.proofChannel ?? new Uint8Array(0);
|
|
2940
|
-
message.proofUpgrade = object.proofUpgrade ?? new Uint8Array(0);
|
|
2941
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
2942
|
-
? Height.fromPartial(object.proofHeight)
|
|
2943
|
-
: undefined;
|
|
2944
|
-
message.signer = object.signer ?? "";
|
|
2945
|
-
return message;
|
|
2946
|
-
},
|
|
2947
|
-
};
|
|
2948
|
-
|
|
2949
|
-
function createBaseMsgChannelUpgradeAckResponse(): MsgChannelUpgradeAckResponse {
|
|
2950
|
-
return { result: 0 };
|
|
2951
|
-
}
|
|
2952
|
-
|
|
2953
|
-
export const MsgChannelUpgradeAckResponse: MessageFns<MsgChannelUpgradeAckResponse> = {
|
|
2954
|
-
encode(message: MsgChannelUpgradeAckResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2955
|
-
if (message.result !== 0) {
|
|
2956
|
-
writer.uint32(8).int32(message.result);
|
|
2957
|
-
}
|
|
2958
|
-
return writer;
|
|
2959
|
-
},
|
|
2960
|
-
|
|
2961
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeAckResponse {
|
|
2962
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2963
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2964
|
-
const message = createBaseMsgChannelUpgradeAckResponse();
|
|
2965
|
-
while (reader.pos < end) {
|
|
2966
|
-
const tag = reader.uint32();
|
|
2967
|
-
switch (tag >>> 3) {
|
|
2968
|
-
case 1: {
|
|
2969
|
-
if (tag !== 8) {
|
|
2970
|
-
break;
|
|
2971
|
-
}
|
|
2972
|
-
|
|
2973
|
-
message.result = reader.int32() as any;
|
|
2974
|
-
continue;
|
|
2975
|
-
}
|
|
2976
|
-
}
|
|
2977
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2978
|
-
break;
|
|
2979
|
-
}
|
|
2980
|
-
reader.skip(tag & 7);
|
|
2981
|
-
}
|
|
2982
|
-
return message;
|
|
2983
|
-
},
|
|
2984
|
-
|
|
2985
|
-
fromJSON(object: any): MsgChannelUpgradeAckResponse {
|
|
2986
|
-
return { result: isSet(object.result) ? responseResultTypeFromJSON(object.result) : 0 };
|
|
2987
|
-
},
|
|
2988
|
-
|
|
2989
|
-
toJSON(message: MsgChannelUpgradeAckResponse): unknown {
|
|
2990
|
-
const obj: any = {};
|
|
2991
|
-
if (message.result !== 0) {
|
|
2992
|
-
obj.result = responseResultTypeToJSON(message.result);
|
|
2993
|
-
}
|
|
2994
|
-
return obj;
|
|
2995
|
-
},
|
|
2996
|
-
|
|
2997
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeAckResponse>, I>>(base?: I): MsgChannelUpgradeAckResponse {
|
|
2998
|
-
return MsgChannelUpgradeAckResponse.fromPartial(base ?? ({} as any));
|
|
2999
|
-
},
|
|
3000
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeAckResponse>, I>>(object: I): MsgChannelUpgradeAckResponse {
|
|
3001
|
-
const message = createBaseMsgChannelUpgradeAckResponse();
|
|
3002
|
-
message.result = object.result ?? 0;
|
|
3003
|
-
return message;
|
|
3004
|
-
},
|
|
3005
|
-
};
|
|
3006
|
-
|
|
3007
|
-
function createBaseMsgChannelUpgradeConfirm(): MsgChannelUpgradeConfirm {
|
|
3008
|
-
return {
|
|
3009
|
-
portId: "",
|
|
3010
|
-
channelId: "",
|
|
3011
|
-
counterpartyChannelState: 0,
|
|
3012
|
-
counterpartyUpgrade: undefined,
|
|
3013
|
-
proofChannel: new Uint8Array(0),
|
|
3014
|
-
proofUpgrade: new Uint8Array(0),
|
|
3015
|
-
proofHeight: undefined,
|
|
3016
|
-
signer: "",
|
|
3017
|
-
};
|
|
3018
|
-
}
|
|
3019
|
-
|
|
3020
|
-
export const MsgChannelUpgradeConfirm: MessageFns<MsgChannelUpgradeConfirm> = {
|
|
3021
|
-
encode(message: MsgChannelUpgradeConfirm, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3022
|
-
if (message.portId !== "") {
|
|
3023
|
-
writer.uint32(10).string(message.portId);
|
|
3024
|
-
}
|
|
3025
|
-
if (message.channelId !== "") {
|
|
3026
|
-
writer.uint32(18).string(message.channelId);
|
|
3027
|
-
}
|
|
3028
|
-
if (message.counterpartyChannelState !== 0) {
|
|
3029
|
-
writer.uint32(24).int32(message.counterpartyChannelState);
|
|
3030
|
-
}
|
|
3031
|
-
if (message.counterpartyUpgrade !== undefined) {
|
|
3032
|
-
Upgrade.encode(message.counterpartyUpgrade, writer.uint32(34).fork()).join();
|
|
3033
|
-
}
|
|
3034
|
-
if (message.proofChannel.length !== 0) {
|
|
3035
|
-
writer.uint32(42).bytes(message.proofChannel);
|
|
3036
|
-
}
|
|
3037
|
-
if (message.proofUpgrade.length !== 0) {
|
|
3038
|
-
writer.uint32(50).bytes(message.proofUpgrade);
|
|
3039
|
-
}
|
|
3040
|
-
if (message.proofHeight !== undefined) {
|
|
3041
|
-
Height.encode(message.proofHeight, writer.uint32(58).fork()).join();
|
|
3042
|
-
}
|
|
3043
|
-
if (message.signer !== "") {
|
|
3044
|
-
writer.uint32(66).string(message.signer);
|
|
3045
|
-
}
|
|
3046
|
-
return writer;
|
|
3047
|
-
},
|
|
3048
|
-
|
|
3049
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeConfirm {
|
|
3050
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3051
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3052
|
-
const message = createBaseMsgChannelUpgradeConfirm();
|
|
3053
|
-
while (reader.pos < end) {
|
|
3054
|
-
const tag = reader.uint32();
|
|
3055
|
-
switch (tag >>> 3) {
|
|
3056
|
-
case 1: {
|
|
3057
|
-
if (tag !== 10) {
|
|
3058
|
-
break;
|
|
3059
|
-
}
|
|
3060
|
-
|
|
3061
|
-
message.portId = reader.string();
|
|
3062
|
-
continue;
|
|
3063
|
-
}
|
|
3064
|
-
case 2: {
|
|
3065
|
-
if (tag !== 18) {
|
|
3066
|
-
break;
|
|
3067
|
-
}
|
|
3068
|
-
|
|
3069
|
-
message.channelId = reader.string();
|
|
3070
|
-
continue;
|
|
3071
|
-
}
|
|
3072
|
-
case 3: {
|
|
3073
|
-
if (tag !== 24) {
|
|
3074
|
-
break;
|
|
3075
|
-
}
|
|
3076
|
-
|
|
3077
|
-
message.counterpartyChannelState = reader.int32() as any;
|
|
3078
|
-
continue;
|
|
3079
|
-
}
|
|
3080
|
-
case 4: {
|
|
3081
|
-
if (tag !== 34) {
|
|
3082
|
-
break;
|
|
3083
|
-
}
|
|
3084
|
-
|
|
3085
|
-
message.counterpartyUpgrade = Upgrade.decode(reader, reader.uint32());
|
|
3086
|
-
continue;
|
|
3087
|
-
}
|
|
3088
|
-
case 5: {
|
|
3089
|
-
if (tag !== 42) {
|
|
3090
|
-
break;
|
|
3091
|
-
}
|
|
3092
|
-
|
|
3093
|
-
message.proofChannel = reader.bytes();
|
|
3094
|
-
continue;
|
|
3095
|
-
}
|
|
3096
|
-
case 6: {
|
|
3097
|
-
if (tag !== 50) {
|
|
3098
|
-
break;
|
|
3099
|
-
}
|
|
3100
|
-
|
|
3101
|
-
message.proofUpgrade = reader.bytes();
|
|
3102
|
-
continue;
|
|
3103
|
-
}
|
|
3104
|
-
case 7: {
|
|
3105
|
-
if (tag !== 58) {
|
|
3106
|
-
break;
|
|
3107
|
-
}
|
|
3108
|
-
|
|
3109
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
3110
|
-
continue;
|
|
3111
|
-
}
|
|
3112
|
-
case 8: {
|
|
3113
|
-
if (tag !== 66) {
|
|
3114
|
-
break;
|
|
3115
|
-
}
|
|
3116
|
-
|
|
3117
|
-
message.signer = reader.string();
|
|
3118
|
-
continue;
|
|
3119
|
-
}
|
|
3120
|
-
}
|
|
3121
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3122
|
-
break;
|
|
3123
|
-
}
|
|
3124
|
-
reader.skip(tag & 7);
|
|
3125
|
-
}
|
|
3126
|
-
return message;
|
|
3127
|
-
},
|
|
3128
|
-
|
|
3129
|
-
fromJSON(object: any): MsgChannelUpgradeConfirm {
|
|
3130
|
-
return {
|
|
3131
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
3132
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
3133
|
-
counterpartyChannelState: isSet(object.counterpartyChannelState)
|
|
3134
|
-
? stateFromJSON(object.counterpartyChannelState)
|
|
3135
|
-
: 0,
|
|
3136
|
-
counterpartyUpgrade: isSet(object.counterpartyUpgrade) ? Upgrade.fromJSON(object.counterpartyUpgrade) : undefined,
|
|
3137
|
-
proofChannel: isSet(object.proofChannel) ? bytesFromBase64(object.proofChannel) : new Uint8Array(0),
|
|
3138
|
-
proofUpgrade: isSet(object.proofUpgrade) ? bytesFromBase64(object.proofUpgrade) : new Uint8Array(0),
|
|
3139
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
3140
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
3141
|
-
};
|
|
3142
|
-
},
|
|
3143
|
-
|
|
3144
|
-
toJSON(message: MsgChannelUpgradeConfirm): unknown {
|
|
3145
|
-
const obj: any = {};
|
|
3146
|
-
if (message.portId !== "") {
|
|
3147
|
-
obj.portId = message.portId;
|
|
3148
|
-
}
|
|
3149
|
-
if (message.channelId !== "") {
|
|
3150
|
-
obj.channelId = message.channelId;
|
|
3151
|
-
}
|
|
3152
|
-
if (message.counterpartyChannelState !== 0) {
|
|
3153
|
-
obj.counterpartyChannelState = stateToJSON(message.counterpartyChannelState);
|
|
3154
|
-
}
|
|
3155
|
-
if (message.counterpartyUpgrade !== undefined) {
|
|
3156
|
-
obj.counterpartyUpgrade = Upgrade.toJSON(message.counterpartyUpgrade);
|
|
3157
|
-
}
|
|
3158
|
-
if (message.proofChannel.length !== 0) {
|
|
3159
|
-
obj.proofChannel = base64FromBytes(message.proofChannel);
|
|
3160
|
-
}
|
|
3161
|
-
if (message.proofUpgrade.length !== 0) {
|
|
3162
|
-
obj.proofUpgrade = base64FromBytes(message.proofUpgrade);
|
|
3163
|
-
}
|
|
3164
|
-
if (message.proofHeight !== undefined) {
|
|
3165
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
3166
|
-
}
|
|
3167
|
-
if (message.signer !== "") {
|
|
3168
|
-
obj.signer = message.signer;
|
|
3169
|
-
}
|
|
3170
|
-
return obj;
|
|
3171
|
-
},
|
|
3172
|
-
|
|
3173
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeConfirm>, I>>(base?: I): MsgChannelUpgradeConfirm {
|
|
3174
|
-
return MsgChannelUpgradeConfirm.fromPartial(base ?? ({} as any));
|
|
3175
|
-
},
|
|
3176
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeConfirm>, I>>(object: I): MsgChannelUpgradeConfirm {
|
|
3177
|
-
const message = createBaseMsgChannelUpgradeConfirm();
|
|
3178
|
-
message.portId = object.portId ?? "";
|
|
3179
|
-
message.channelId = object.channelId ?? "";
|
|
3180
|
-
message.counterpartyChannelState = object.counterpartyChannelState ?? 0;
|
|
3181
|
-
message.counterpartyUpgrade = (object.counterpartyUpgrade !== undefined && object.counterpartyUpgrade !== null)
|
|
3182
|
-
? Upgrade.fromPartial(object.counterpartyUpgrade)
|
|
3183
|
-
: undefined;
|
|
3184
|
-
message.proofChannel = object.proofChannel ?? new Uint8Array(0);
|
|
3185
|
-
message.proofUpgrade = object.proofUpgrade ?? new Uint8Array(0);
|
|
3186
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
3187
|
-
? Height.fromPartial(object.proofHeight)
|
|
3188
|
-
: undefined;
|
|
3189
|
-
message.signer = object.signer ?? "";
|
|
3190
|
-
return message;
|
|
3191
|
-
},
|
|
3192
|
-
};
|
|
3193
|
-
|
|
3194
|
-
function createBaseMsgChannelUpgradeConfirmResponse(): MsgChannelUpgradeConfirmResponse {
|
|
3195
|
-
return { result: 0 };
|
|
3196
|
-
}
|
|
3197
|
-
|
|
3198
|
-
export const MsgChannelUpgradeConfirmResponse: MessageFns<MsgChannelUpgradeConfirmResponse> = {
|
|
3199
|
-
encode(message: MsgChannelUpgradeConfirmResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3200
|
-
if (message.result !== 0) {
|
|
3201
|
-
writer.uint32(8).int32(message.result);
|
|
3202
|
-
}
|
|
3203
|
-
return writer;
|
|
3204
|
-
},
|
|
3205
|
-
|
|
3206
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeConfirmResponse {
|
|
3207
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3208
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3209
|
-
const message = createBaseMsgChannelUpgradeConfirmResponse();
|
|
3210
|
-
while (reader.pos < end) {
|
|
3211
|
-
const tag = reader.uint32();
|
|
3212
|
-
switch (tag >>> 3) {
|
|
3213
|
-
case 1: {
|
|
3214
|
-
if (tag !== 8) {
|
|
3215
|
-
break;
|
|
3216
|
-
}
|
|
3217
|
-
|
|
3218
|
-
message.result = reader.int32() as any;
|
|
3219
|
-
continue;
|
|
3220
|
-
}
|
|
3221
|
-
}
|
|
3222
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3223
|
-
break;
|
|
3224
|
-
}
|
|
3225
|
-
reader.skip(tag & 7);
|
|
3226
|
-
}
|
|
3227
|
-
return message;
|
|
3228
|
-
},
|
|
3229
|
-
|
|
3230
|
-
fromJSON(object: any): MsgChannelUpgradeConfirmResponse {
|
|
3231
|
-
return { result: isSet(object.result) ? responseResultTypeFromJSON(object.result) : 0 };
|
|
3232
|
-
},
|
|
3233
|
-
|
|
3234
|
-
toJSON(message: MsgChannelUpgradeConfirmResponse): unknown {
|
|
3235
|
-
const obj: any = {};
|
|
3236
|
-
if (message.result !== 0) {
|
|
3237
|
-
obj.result = responseResultTypeToJSON(message.result);
|
|
3238
|
-
}
|
|
3239
|
-
return obj;
|
|
3240
|
-
},
|
|
3241
|
-
|
|
3242
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeConfirmResponse>, I>>(
|
|
3243
|
-
base?: I,
|
|
3244
|
-
): MsgChannelUpgradeConfirmResponse {
|
|
3245
|
-
return MsgChannelUpgradeConfirmResponse.fromPartial(base ?? ({} as any));
|
|
3246
|
-
},
|
|
3247
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeConfirmResponse>, I>>(
|
|
3248
|
-
object: I,
|
|
3249
|
-
): MsgChannelUpgradeConfirmResponse {
|
|
3250
|
-
const message = createBaseMsgChannelUpgradeConfirmResponse();
|
|
3251
|
-
message.result = object.result ?? 0;
|
|
3252
|
-
return message;
|
|
3253
|
-
},
|
|
3254
|
-
};
|
|
3255
|
-
|
|
3256
|
-
function createBaseMsgChannelUpgradeOpen(): MsgChannelUpgradeOpen {
|
|
3257
|
-
return {
|
|
3258
|
-
portId: "",
|
|
3259
|
-
channelId: "",
|
|
3260
|
-
counterpartyChannelState: 0,
|
|
3261
|
-
counterpartyUpgradeSequence: 0,
|
|
3262
|
-
proofChannel: new Uint8Array(0),
|
|
3263
|
-
proofHeight: undefined,
|
|
3264
|
-
signer: "",
|
|
3265
|
-
};
|
|
3266
|
-
}
|
|
3267
|
-
|
|
3268
|
-
export const MsgChannelUpgradeOpen: MessageFns<MsgChannelUpgradeOpen> = {
|
|
3269
|
-
encode(message: MsgChannelUpgradeOpen, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3270
|
-
if (message.portId !== "") {
|
|
3271
|
-
writer.uint32(10).string(message.portId);
|
|
3272
|
-
}
|
|
3273
|
-
if (message.channelId !== "") {
|
|
3274
|
-
writer.uint32(18).string(message.channelId);
|
|
3275
|
-
}
|
|
3276
|
-
if (message.counterpartyChannelState !== 0) {
|
|
3277
|
-
writer.uint32(24).int32(message.counterpartyChannelState);
|
|
3278
|
-
}
|
|
3279
|
-
if (message.counterpartyUpgradeSequence !== 0) {
|
|
3280
|
-
writer.uint32(32).uint64(message.counterpartyUpgradeSequence);
|
|
3281
|
-
}
|
|
3282
|
-
if (message.proofChannel.length !== 0) {
|
|
3283
|
-
writer.uint32(42).bytes(message.proofChannel);
|
|
3284
|
-
}
|
|
3285
|
-
if (message.proofHeight !== undefined) {
|
|
3286
|
-
Height.encode(message.proofHeight, writer.uint32(50).fork()).join();
|
|
3287
|
-
}
|
|
3288
|
-
if (message.signer !== "") {
|
|
3289
|
-
writer.uint32(58).string(message.signer);
|
|
3290
|
-
}
|
|
3291
|
-
return writer;
|
|
3292
|
-
},
|
|
3293
|
-
|
|
3294
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeOpen {
|
|
3295
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3296
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3297
|
-
const message = createBaseMsgChannelUpgradeOpen();
|
|
3298
|
-
while (reader.pos < end) {
|
|
3299
|
-
const tag = reader.uint32();
|
|
3300
|
-
switch (tag >>> 3) {
|
|
3301
|
-
case 1: {
|
|
3302
|
-
if (tag !== 10) {
|
|
3303
|
-
break;
|
|
3304
|
-
}
|
|
3305
|
-
|
|
3306
|
-
message.portId = reader.string();
|
|
3307
|
-
continue;
|
|
3308
|
-
}
|
|
3309
|
-
case 2: {
|
|
3310
|
-
if (tag !== 18) {
|
|
3311
|
-
break;
|
|
3312
|
-
}
|
|
3313
|
-
|
|
3314
|
-
message.channelId = reader.string();
|
|
3315
|
-
continue;
|
|
3316
|
-
}
|
|
3317
|
-
case 3: {
|
|
3318
|
-
if (tag !== 24) {
|
|
3319
|
-
break;
|
|
3320
|
-
}
|
|
3321
|
-
|
|
3322
|
-
message.counterpartyChannelState = reader.int32() as any;
|
|
3323
|
-
continue;
|
|
3324
|
-
}
|
|
3325
|
-
case 4: {
|
|
3326
|
-
if (tag !== 32) {
|
|
3327
|
-
break;
|
|
3328
|
-
}
|
|
3329
|
-
|
|
3330
|
-
message.counterpartyUpgradeSequence = longToNumber(reader.uint64());
|
|
3331
|
-
continue;
|
|
3332
|
-
}
|
|
3333
|
-
case 5: {
|
|
3334
|
-
if (tag !== 42) {
|
|
3335
|
-
break;
|
|
3336
|
-
}
|
|
3337
|
-
|
|
3338
|
-
message.proofChannel = reader.bytes();
|
|
3339
|
-
continue;
|
|
3340
|
-
}
|
|
3341
|
-
case 6: {
|
|
3342
|
-
if (tag !== 50) {
|
|
3343
|
-
break;
|
|
3344
|
-
}
|
|
3345
|
-
|
|
3346
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
3347
|
-
continue;
|
|
3348
|
-
}
|
|
3349
|
-
case 7: {
|
|
3350
|
-
if (tag !== 58) {
|
|
3351
|
-
break;
|
|
3352
|
-
}
|
|
3353
|
-
|
|
3354
|
-
message.signer = reader.string();
|
|
3355
|
-
continue;
|
|
3356
|
-
}
|
|
3357
|
-
}
|
|
3358
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3359
|
-
break;
|
|
3360
|
-
}
|
|
3361
|
-
reader.skip(tag & 7);
|
|
3362
|
-
}
|
|
3363
|
-
return message;
|
|
3364
|
-
},
|
|
3365
|
-
|
|
3366
|
-
fromJSON(object: any): MsgChannelUpgradeOpen {
|
|
3367
|
-
return {
|
|
3368
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
3369
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
3370
|
-
counterpartyChannelState: isSet(object.counterpartyChannelState)
|
|
3371
|
-
? stateFromJSON(object.counterpartyChannelState)
|
|
3372
|
-
: 0,
|
|
3373
|
-
counterpartyUpgradeSequence: isSet(object.counterpartyUpgradeSequence)
|
|
3374
|
-
? globalThis.Number(object.counterpartyUpgradeSequence)
|
|
3375
|
-
: 0,
|
|
3376
|
-
proofChannel: isSet(object.proofChannel) ? bytesFromBase64(object.proofChannel) : new Uint8Array(0),
|
|
3377
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
3378
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
3379
|
-
};
|
|
3380
|
-
},
|
|
3381
|
-
|
|
3382
|
-
toJSON(message: MsgChannelUpgradeOpen): unknown {
|
|
3383
|
-
const obj: any = {};
|
|
3384
|
-
if (message.portId !== "") {
|
|
3385
|
-
obj.portId = message.portId;
|
|
3386
|
-
}
|
|
3387
|
-
if (message.channelId !== "") {
|
|
3388
|
-
obj.channelId = message.channelId;
|
|
3389
|
-
}
|
|
3390
|
-
if (message.counterpartyChannelState !== 0) {
|
|
3391
|
-
obj.counterpartyChannelState = stateToJSON(message.counterpartyChannelState);
|
|
3392
|
-
}
|
|
3393
|
-
if (message.counterpartyUpgradeSequence !== 0) {
|
|
3394
|
-
obj.counterpartyUpgradeSequence = Math.round(message.counterpartyUpgradeSequence);
|
|
3395
|
-
}
|
|
3396
|
-
if (message.proofChannel.length !== 0) {
|
|
3397
|
-
obj.proofChannel = base64FromBytes(message.proofChannel);
|
|
3398
|
-
}
|
|
3399
|
-
if (message.proofHeight !== undefined) {
|
|
3400
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
3401
|
-
}
|
|
3402
|
-
if (message.signer !== "") {
|
|
3403
|
-
obj.signer = message.signer;
|
|
3404
|
-
}
|
|
3405
|
-
return obj;
|
|
3406
|
-
},
|
|
3407
|
-
|
|
3408
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeOpen>, I>>(base?: I): MsgChannelUpgradeOpen {
|
|
3409
|
-
return MsgChannelUpgradeOpen.fromPartial(base ?? ({} as any));
|
|
3410
|
-
},
|
|
3411
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeOpen>, I>>(object: I): MsgChannelUpgradeOpen {
|
|
3412
|
-
const message = createBaseMsgChannelUpgradeOpen();
|
|
3413
|
-
message.portId = object.portId ?? "";
|
|
3414
|
-
message.channelId = object.channelId ?? "";
|
|
3415
|
-
message.counterpartyChannelState = object.counterpartyChannelState ?? 0;
|
|
3416
|
-
message.counterpartyUpgradeSequence = object.counterpartyUpgradeSequence ?? 0;
|
|
3417
|
-
message.proofChannel = object.proofChannel ?? new Uint8Array(0);
|
|
3418
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
3419
|
-
? Height.fromPartial(object.proofHeight)
|
|
3420
|
-
: undefined;
|
|
3421
|
-
message.signer = object.signer ?? "";
|
|
3422
|
-
return message;
|
|
3423
|
-
},
|
|
3424
|
-
};
|
|
3425
|
-
|
|
3426
|
-
function createBaseMsgChannelUpgradeOpenResponse(): MsgChannelUpgradeOpenResponse {
|
|
3427
|
-
return {};
|
|
3428
|
-
}
|
|
3429
|
-
|
|
3430
|
-
export const MsgChannelUpgradeOpenResponse: MessageFns<MsgChannelUpgradeOpenResponse> = {
|
|
3431
|
-
encode(_: MsgChannelUpgradeOpenResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3432
|
-
return writer;
|
|
3433
|
-
},
|
|
3434
|
-
|
|
3435
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeOpenResponse {
|
|
3436
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3437
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3438
|
-
const message = createBaseMsgChannelUpgradeOpenResponse();
|
|
3439
|
-
while (reader.pos < end) {
|
|
3440
|
-
const tag = reader.uint32();
|
|
3441
|
-
switch (tag >>> 3) {
|
|
3442
|
-
}
|
|
3443
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3444
|
-
break;
|
|
3445
|
-
}
|
|
3446
|
-
reader.skip(tag & 7);
|
|
3447
|
-
}
|
|
3448
|
-
return message;
|
|
3449
|
-
},
|
|
3450
|
-
|
|
3451
|
-
fromJSON(_: any): MsgChannelUpgradeOpenResponse {
|
|
3452
|
-
return {};
|
|
3453
|
-
},
|
|
3454
|
-
|
|
3455
|
-
toJSON(_: MsgChannelUpgradeOpenResponse): unknown {
|
|
3456
|
-
const obj: any = {};
|
|
3457
|
-
return obj;
|
|
3458
|
-
},
|
|
3459
|
-
|
|
3460
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeOpenResponse>, I>>(base?: I): MsgChannelUpgradeOpenResponse {
|
|
3461
|
-
return MsgChannelUpgradeOpenResponse.fromPartial(base ?? ({} as any));
|
|
3462
|
-
},
|
|
3463
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeOpenResponse>, I>>(_: I): MsgChannelUpgradeOpenResponse {
|
|
3464
|
-
const message = createBaseMsgChannelUpgradeOpenResponse();
|
|
3465
|
-
return message;
|
|
3466
|
-
},
|
|
3467
|
-
};
|
|
3468
|
-
|
|
3469
|
-
function createBaseMsgChannelUpgradeTimeout(): MsgChannelUpgradeTimeout {
|
|
3470
|
-
return {
|
|
3471
|
-
portId: "",
|
|
3472
|
-
channelId: "",
|
|
3473
|
-
counterpartyChannel: undefined,
|
|
3474
|
-
proofChannel: new Uint8Array(0),
|
|
3475
|
-
proofHeight: undefined,
|
|
3476
|
-
signer: "",
|
|
3477
|
-
};
|
|
3478
|
-
}
|
|
3479
|
-
|
|
3480
|
-
export const MsgChannelUpgradeTimeout: MessageFns<MsgChannelUpgradeTimeout> = {
|
|
3481
|
-
encode(message: MsgChannelUpgradeTimeout, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3482
|
-
if (message.portId !== "") {
|
|
3483
|
-
writer.uint32(10).string(message.portId);
|
|
3484
|
-
}
|
|
3485
|
-
if (message.channelId !== "") {
|
|
3486
|
-
writer.uint32(18).string(message.channelId);
|
|
3487
|
-
}
|
|
3488
|
-
if (message.counterpartyChannel !== undefined) {
|
|
3489
|
-
Channel.encode(message.counterpartyChannel, writer.uint32(26).fork()).join();
|
|
3490
|
-
}
|
|
3491
|
-
if (message.proofChannel.length !== 0) {
|
|
3492
|
-
writer.uint32(34).bytes(message.proofChannel);
|
|
3493
|
-
}
|
|
3494
|
-
if (message.proofHeight !== undefined) {
|
|
3495
|
-
Height.encode(message.proofHeight, writer.uint32(42).fork()).join();
|
|
3496
|
-
}
|
|
3497
|
-
if (message.signer !== "") {
|
|
3498
|
-
writer.uint32(50).string(message.signer);
|
|
3499
|
-
}
|
|
3500
|
-
return writer;
|
|
3501
|
-
},
|
|
3502
|
-
|
|
3503
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeTimeout {
|
|
3504
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3505
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3506
|
-
const message = createBaseMsgChannelUpgradeTimeout();
|
|
3507
|
-
while (reader.pos < end) {
|
|
3508
|
-
const tag = reader.uint32();
|
|
3509
|
-
switch (tag >>> 3) {
|
|
3510
|
-
case 1: {
|
|
3511
|
-
if (tag !== 10) {
|
|
3512
|
-
break;
|
|
3513
|
-
}
|
|
3514
|
-
|
|
3515
|
-
message.portId = reader.string();
|
|
3516
|
-
continue;
|
|
3517
|
-
}
|
|
3518
|
-
case 2: {
|
|
3519
|
-
if (tag !== 18) {
|
|
3520
|
-
break;
|
|
3521
|
-
}
|
|
3522
|
-
|
|
3523
|
-
message.channelId = reader.string();
|
|
3524
|
-
continue;
|
|
3525
|
-
}
|
|
3526
|
-
case 3: {
|
|
3527
|
-
if (tag !== 26) {
|
|
3528
|
-
break;
|
|
3529
|
-
}
|
|
3530
|
-
|
|
3531
|
-
message.counterpartyChannel = Channel.decode(reader, reader.uint32());
|
|
3532
|
-
continue;
|
|
3533
|
-
}
|
|
3534
|
-
case 4: {
|
|
3535
|
-
if (tag !== 34) {
|
|
3536
|
-
break;
|
|
3537
|
-
}
|
|
3538
|
-
|
|
3539
|
-
message.proofChannel = reader.bytes();
|
|
3540
|
-
continue;
|
|
3541
|
-
}
|
|
3542
|
-
case 5: {
|
|
3543
|
-
if (tag !== 42) {
|
|
3544
|
-
break;
|
|
3545
|
-
}
|
|
3546
|
-
|
|
3547
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
3548
|
-
continue;
|
|
3549
|
-
}
|
|
3550
|
-
case 6: {
|
|
3551
|
-
if (tag !== 50) {
|
|
3552
|
-
break;
|
|
3553
|
-
}
|
|
3554
|
-
|
|
3555
|
-
message.signer = reader.string();
|
|
3556
|
-
continue;
|
|
3557
|
-
}
|
|
3558
|
-
}
|
|
3559
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3560
|
-
break;
|
|
3561
|
-
}
|
|
3562
|
-
reader.skip(tag & 7);
|
|
3563
|
-
}
|
|
3564
|
-
return message;
|
|
3565
|
-
},
|
|
3566
|
-
|
|
3567
|
-
fromJSON(object: any): MsgChannelUpgradeTimeout {
|
|
3568
|
-
return {
|
|
3569
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
3570
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
3571
|
-
counterpartyChannel: isSet(object.counterpartyChannel) ? Channel.fromJSON(object.counterpartyChannel) : undefined,
|
|
3572
|
-
proofChannel: isSet(object.proofChannel) ? bytesFromBase64(object.proofChannel) : new Uint8Array(0),
|
|
3573
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
3574
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
3575
|
-
};
|
|
3576
|
-
},
|
|
3577
|
-
|
|
3578
|
-
toJSON(message: MsgChannelUpgradeTimeout): unknown {
|
|
3579
|
-
const obj: any = {};
|
|
3580
|
-
if (message.portId !== "") {
|
|
3581
|
-
obj.portId = message.portId;
|
|
3582
|
-
}
|
|
3583
|
-
if (message.channelId !== "") {
|
|
3584
|
-
obj.channelId = message.channelId;
|
|
3585
|
-
}
|
|
3586
|
-
if (message.counterpartyChannel !== undefined) {
|
|
3587
|
-
obj.counterpartyChannel = Channel.toJSON(message.counterpartyChannel);
|
|
3588
|
-
}
|
|
3589
|
-
if (message.proofChannel.length !== 0) {
|
|
3590
|
-
obj.proofChannel = base64FromBytes(message.proofChannel);
|
|
3591
|
-
}
|
|
3592
|
-
if (message.proofHeight !== undefined) {
|
|
3593
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
3594
|
-
}
|
|
3595
|
-
if (message.signer !== "") {
|
|
3596
|
-
obj.signer = message.signer;
|
|
3597
|
-
}
|
|
3598
|
-
return obj;
|
|
3599
|
-
},
|
|
3600
|
-
|
|
3601
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeTimeout>, I>>(base?: I): MsgChannelUpgradeTimeout {
|
|
3602
|
-
return MsgChannelUpgradeTimeout.fromPartial(base ?? ({} as any));
|
|
3603
|
-
},
|
|
3604
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeTimeout>, I>>(object: I): MsgChannelUpgradeTimeout {
|
|
3605
|
-
const message = createBaseMsgChannelUpgradeTimeout();
|
|
3606
|
-
message.portId = object.portId ?? "";
|
|
3607
|
-
message.channelId = object.channelId ?? "";
|
|
3608
|
-
message.counterpartyChannel = (object.counterpartyChannel !== undefined && object.counterpartyChannel !== null)
|
|
3609
|
-
? Channel.fromPartial(object.counterpartyChannel)
|
|
3610
|
-
: undefined;
|
|
3611
|
-
message.proofChannel = object.proofChannel ?? new Uint8Array(0);
|
|
3612
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
3613
|
-
? Height.fromPartial(object.proofHeight)
|
|
3614
|
-
: undefined;
|
|
3615
|
-
message.signer = object.signer ?? "";
|
|
3616
|
-
return message;
|
|
3617
|
-
},
|
|
3618
|
-
};
|
|
3619
|
-
|
|
3620
|
-
function createBaseMsgChannelUpgradeTimeoutResponse(): MsgChannelUpgradeTimeoutResponse {
|
|
3621
|
-
return {};
|
|
3622
|
-
}
|
|
3623
|
-
|
|
3624
|
-
export const MsgChannelUpgradeTimeoutResponse: MessageFns<MsgChannelUpgradeTimeoutResponse> = {
|
|
3625
|
-
encode(_: MsgChannelUpgradeTimeoutResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3626
|
-
return writer;
|
|
3627
|
-
},
|
|
3628
|
-
|
|
3629
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeTimeoutResponse {
|
|
3630
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3631
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3632
|
-
const message = createBaseMsgChannelUpgradeTimeoutResponse();
|
|
3633
|
-
while (reader.pos < end) {
|
|
3634
|
-
const tag = reader.uint32();
|
|
3635
|
-
switch (tag >>> 3) {
|
|
3636
|
-
}
|
|
3637
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3638
|
-
break;
|
|
3639
|
-
}
|
|
3640
|
-
reader.skip(tag & 7);
|
|
3641
|
-
}
|
|
3642
|
-
return message;
|
|
3643
|
-
},
|
|
3644
|
-
|
|
3645
|
-
fromJSON(_: any): MsgChannelUpgradeTimeoutResponse {
|
|
3646
|
-
return {};
|
|
3647
|
-
},
|
|
3648
|
-
|
|
3649
|
-
toJSON(_: MsgChannelUpgradeTimeoutResponse): unknown {
|
|
3650
|
-
const obj: any = {};
|
|
3651
|
-
return obj;
|
|
3652
|
-
},
|
|
3653
|
-
|
|
3654
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeTimeoutResponse>, I>>(
|
|
3655
|
-
base?: I,
|
|
3656
|
-
): MsgChannelUpgradeTimeoutResponse {
|
|
3657
|
-
return MsgChannelUpgradeTimeoutResponse.fromPartial(base ?? ({} as any));
|
|
3658
|
-
},
|
|
3659
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeTimeoutResponse>, I>>(
|
|
3660
|
-
_: I,
|
|
3661
|
-
): MsgChannelUpgradeTimeoutResponse {
|
|
3662
|
-
const message = createBaseMsgChannelUpgradeTimeoutResponse();
|
|
3663
|
-
return message;
|
|
3664
|
-
},
|
|
3665
|
-
};
|
|
3666
|
-
|
|
3667
|
-
function createBaseMsgChannelUpgradeCancel(): MsgChannelUpgradeCancel {
|
|
3668
|
-
return {
|
|
3669
|
-
portId: "",
|
|
3670
|
-
channelId: "",
|
|
3671
|
-
errorReceipt: undefined,
|
|
3672
|
-
proofErrorReceipt: new Uint8Array(0),
|
|
3673
|
-
proofHeight: undefined,
|
|
3674
|
-
signer: "",
|
|
3675
|
-
};
|
|
3676
|
-
}
|
|
3677
|
-
|
|
3678
|
-
export const MsgChannelUpgradeCancel: MessageFns<MsgChannelUpgradeCancel> = {
|
|
3679
|
-
encode(message: MsgChannelUpgradeCancel, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3680
|
-
if (message.portId !== "") {
|
|
3681
|
-
writer.uint32(10).string(message.portId);
|
|
3682
|
-
}
|
|
3683
|
-
if (message.channelId !== "") {
|
|
3684
|
-
writer.uint32(18).string(message.channelId);
|
|
3685
|
-
}
|
|
3686
|
-
if (message.errorReceipt !== undefined) {
|
|
3687
|
-
ErrorReceipt.encode(message.errorReceipt, writer.uint32(26).fork()).join();
|
|
3688
|
-
}
|
|
3689
|
-
if (message.proofErrorReceipt.length !== 0) {
|
|
3690
|
-
writer.uint32(34).bytes(message.proofErrorReceipt);
|
|
3691
|
-
}
|
|
3692
|
-
if (message.proofHeight !== undefined) {
|
|
3693
|
-
Height.encode(message.proofHeight, writer.uint32(42).fork()).join();
|
|
3694
|
-
}
|
|
3695
|
-
if (message.signer !== "") {
|
|
3696
|
-
writer.uint32(50).string(message.signer);
|
|
3697
|
-
}
|
|
3698
|
-
return writer;
|
|
3699
|
-
},
|
|
3700
|
-
|
|
3701
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeCancel {
|
|
3702
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3703
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3704
|
-
const message = createBaseMsgChannelUpgradeCancel();
|
|
3705
|
-
while (reader.pos < end) {
|
|
3706
|
-
const tag = reader.uint32();
|
|
3707
|
-
switch (tag >>> 3) {
|
|
3708
|
-
case 1: {
|
|
3709
|
-
if (tag !== 10) {
|
|
3710
|
-
break;
|
|
3711
|
-
}
|
|
3712
|
-
|
|
3713
|
-
message.portId = reader.string();
|
|
3714
|
-
continue;
|
|
3715
|
-
}
|
|
3716
|
-
case 2: {
|
|
3717
|
-
if (tag !== 18) {
|
|
3718
|
-
break;
|
|
3719
|
-
}
|
|
3720
|
-
|
|
3721
|
-
message.channelId = reader.string();
|
|
3722
|
-
continue;
|
|
3723
|
-
}
|
|
3724
|
-
case 3: {
|
|
3725
|
-
if (tag !== 26) {
|
|
3726
|
-
break;
|
|
3727
|
-
}
|
|
3728
|
-
|
|
3729
|
-
message.errorReceipt = ErrorReceipt.decode(reader, reader.uint32());
|
|
3730
|
-
continue;
|
|
3731
|
-
}
|
|
3732
|
-
case 4: {
|
|
3733
|
-
if (tag !== 34) {
|
|
3734
|
-
break;
|
|
3735
|
-
}
|
|
3736
|
-
|
|
3737
|
-
message.proofErrorReceipt = reader.bytes();
|
|
3738
|
-
continue;
|
|
3739
|
-
}
|
|
3740
|
-
case 5: {
|
|
3741
|
-
if (tag !== 42) {
|
|
3742
|
-
break;
|
|
3743
|
-
}
|
|
3744
|
-
|
|
3745
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
3746
|
-
continue;
|
|
3747
|
-
}
|
|
3748
|
-
case 6: {
|
|
3749
|
-
if (tag !== 50) {
|
|
3750
|
-
break;
|
|
3751
|
-
}
|
|
3752
|
-
|
|
3753
|
-
message.signer = reader.string();
|
|
3754
|
-
continue;
|
|
3755
|
-
}
|
|
3756
|
-
}
|
|
3757
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3758
|
-
break;
|
|
3759
|
-
}
|
|
3760
|
-
reader.skip(tag & 7);
|
|
3761
|
-
}
|
|
3762
|
-
return message;
|
|
3763
|
-
},
|
|
3764
|
-
|
|
3765
|
-
fromJSON(object: any): MsgChannelUpgradeCancel {
|
|
3766
|
-
return {
|
|
3767
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
3768
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
3769
|
-
errorReceipt: isSet(object.errorReceipt) ? ErrorReceipt.fromJSON(object.errorReceipt) : undefined,
|
|
3770
|
-
proofErrorReceipt: isSet(object.proofErrorReceipt)
|
|
3771
|
-
? bytesFromBase64(object.proofErrorReceipt)
|
|
3772
|
-
: new Uint8Array(0),
|
|
3773
|
-
proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
|
|
3774
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
3775
|
-
};
|
|
3776
|
-
},
|
|
3777
|
-
|
|
3778
|
-
toJSON(message: MsgChannelUpgradeCancel): unknown {
|
|
3779
|
-
const obj: any = {};
|
|
3780
|
-
if (message.portId !== "") {
|
|
3781
|
-
obj.portId = message.portId;
|
|
3782
|
-
}
|
|
3783
|
-
if (message.channelId !== "") {
|
|
3784
|
-
obj.channelId = message.channelId;
|
|
3785
|
-
}
|
|
3786
|
-
if (message.errorReceipt !== undefined) {
|
|
3787
|
-
obj.errorReceipt = ErrorReceipt.toJSON(message.errorReceipt);
|
|
3788
|
-
}
|
|
3789
|
-
if (message.proofErrorReceipt.length !== 0) {
|
|
3790
|
-
obj.proofErrorReceipt = base64FromBytes(message.proofErrorReceipt);
|
|
3791
|
-
}
|
|
3792
|
-
if (message.proofHeight !== undefined) {
|
|
3793
|
-
obj.proofHeight = Height.toJSON(message.proofHeight);
|
|
3794
|
-
}
|
|
3795
|
-
if (message.signer !== "") {
|
|
3796
|
-
obj.signer = message.signer;
|
|
3797
|
-
}
|
|
3798
|
-
return obj;
|
|
3799
|
-
},
|
|
3800
|
-
|
|
3801
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeCancel>, I>>(base?: I): MsgChannelUpgradeCancel {
|
|
3802
|
-
return MsgChannelUpgradeCancel.fromPartial(base ?? ({} as any));
|
|
3803
|
-
},
|
|
3804
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeCancel>, I>>(object: I): MsgChannelUpgradeCancel {
|
|
3805
|
-
const message = createBaseMsgChannelUpgradeCancel();
|
|
3806
|
-
message.portId = object.portId ?? "";
|
|
3807
|
-
message.channelId = object.channelId ?? "";
|
|
3808
|
-
message.errorReceipt = (object.errorReceipt !== undefined && object.errorReceipt !== null)
|
|
3809
|
-
? ErrorReceipt.fromPartial(object.errorReceipt)
|
|
3810
|
-
: undefined;
|
|
3811
|
-
message.proofErrorReceipt = object.proofErrorReceipt ?? new Uint8Array(0);
|
|
3812
|
-
message.proofHeight = (object.proofHeight !== undefined && object.proofHeight !== null)
|
|
3813
|
-
? Height.fromPartial(object.proofHeight)
|
|
3814
|
-
: undefined;
|
|
3815
|
-
message.signer = object.signer ?? "";
|
|
3816
|
-
return message;
|
|
3817
|
-
},
|
|
3818
|
-
};
|
|
3819
|
-
|
|
3820
|
-
function createBaseMsgChannelUpgradeCancelResponse(): MsgChannelUpgradeCancelResponse {
|
|
3821
|
-
return {};
|
|
3822
|
-
}
|
|
3823
|
-
|
|
3824
|
-
export const MsgChannelUpgradeCancelResponse: MessageFns<MsgChannelUpgradeCancelResponse> = {
|
|
3825
|
-
encode(_: MsgChannelUpgradeCancelResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3826
|
-
return writer;
|
|
3827
|
-
},
|
|
3828
|
-
|
|
3829
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgChannelUpgradeCancelResponse {
|
|
3830
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3831
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3832
|
-
const message = createBaseMsgChannelUpgradeCancelResponse();
|
|
3833
|
-
while (reader.pos < end) {
|
|
3834
|
-
const tag = reader.uint32();
|
|
3835
|
-
switch (tag >>> 3) {
|
|
3836
|
-
}
|
|
3837
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3838
|
-
break;
|
|
3839
|
-
}
|
|
3840
|
-
reader.skip(tag & 7);
|
|
3841
|
-
}
|
|
3842
|
-
return message;
|
|
3843
|
-
},
|
|
3844
|
-
|
|
3845
|
-
fromJSON(_: any): MsgChannelUpgradeCancelResponse {
|
|
3846
|
-
return {};
|
|
3847
|
-
},
|
|
3848
|
-
|
|
3849
|
-
toJSON(_: MsgChannelUpgradeCancelResponse): unknown {
|
|
3850
|
-
const obj: any = {};
|
|
3851
|
-
return obj;
|
|
3852
|
-
},
|
|
3853
|
-
|
|
3854
|
-
create<I extends Exact<DeepPartial<MsgChannelUpgradeCancelResponse>, I>>(base?: I): MsgChannelUpgradeCancelResponse {
|
|
3855
|
-
return MsgChannelUpgradeCancelResponse.fromPartial(base ?? ({} as any));
|
|
3856
|
-
},
|
|
3857
|
-
fromPartial<I extends Exact<DeepPartial<MsgChannelUpgradeCancelResponse>, I>>(_: I): MsgChannelUpgradeCancelResponse {
|
|
3858
|
-
const message = createBaseMsgChannelUpgradeCancelResponse();
|
|
3859
|
-
return message;
|
|
3860
|
-
},
|
|
3861
|
-
};
|
|
3862
|
-
|
|
3863
|
-
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
3864
|
-
return { authority: "", params: undefined };
|
|
3865
|
-
}
|
|
3866
|
-
|
|
3867
|
-
export const MsgUpdateParams: MessageFns<MsgUpdateParams> = {
|
|
3868
|
-
encode(message: MsgUpdateParams, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3869
|
-
if (message.authority !== "") {
|
|
3870
|
-
writer.uint32(10).string(message.authority);
|
|
3871
|
-
}
|
|
3872
|
-
if (message.params !== undefined) {
|
|
3873
|
-
Params.encode(message.params, writer.uint32(18).fork()).join();
|
|
3874
|
-
}
|
|
3875
|
-
return writer;
|
|
3876
|
-
},
|
|
3877
|
-
|
|
3878
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
|
|
3879
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3880
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3881
|
-
const message = createBaseMsgUpdateParams();
|
|
3882
|
-
while (reader.pos < end) {
|
|
3883
|
-
const tag = reader.uint32();
|
|
3884
|
-
switch (tag >>> 3) {
|
|
3885
|
-
case 1: {
|
|
3886
|
-
if (tag !== 10) {
|
|
3887
|
-
break;
|
|
3888
|
-
}
|
|
3889
|
-
|
|
3890
|
-
message.authority = reader.string();
|
|
3891
|
-
continue;
|
|
3892
|
-
}
|
|
3893
|
-
case 2: {
|
|
3894
|
-
if (tag !== 18) {
|
|
3895
|
-
break;
|
|
3896
|
-
}
|
|
3897
|
-
|
|
3898
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
3899
|
-
continue;
|
|
3900
|
-
}
|
|
3901
|
-
}
|
|
3902
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3903
|
-
break;
|
|
3904
|
-
}
|
|
3905
|
-
reader.skip(tag & 7);
|
|
3906
|
-
}
|
|
3907
|
-
return message;
|
|
3908
|
-
},
|
|
3909
|
-
|
|
3910
|
-
fromJSON(object: any): MsgUpdateParams {
|
|
3911
|
-
return {
|
|
3912
|
-
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
3913
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
3914
|
-
};
|
|
3915
|
-
},
|
|
3916
|
-
|
|
3917
|
-
toJSON(message: MsgUpdateParams): unknown {
|
|
3918
|
-
const obj: any = {};
|
|
3919
|
-
if (message.authority !== "") {
|
|
3920
|
-
obj.authority = message.authority;
|
|
3921
|
-
}
|
|
3922
|
-
if (message.params !== undefined) {
|
|
3923
|
-
obj.params = Params.toJSON(message.params);
|
|
3924
|
-
}
|
|
3925
|
-
return obj;
|
|
3926
|
-
},
|
|
3927
|
-
|
|
3928
|
-
create<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(base?: I): MsgUpdateParams {
|
|
3929
|
-
return MsgUpdateParams.fromPartial(base ?? ({} as any));
|
|
3930
|
-
},
|
|
3931
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams {
|
|
3932
|
-
const message = createBaseMsgUpdateParams();
|
|
3933
|
-
message.authority = object.authority ?? "";
|
|
3934
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
3935
|
-
? Params.fromPartial(object.params)
|
|
3936
|
-
: undefined;
|
|
3937
|
-
return message;
|
|
3938
|
-
},
|
|
3939
|
-
};
|
|
3940
|
-
|
|
3941
|
-
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
3942
|
-
return {};
|
|
3943
|
-
}
|
|
3944
|
-
|
|
3945
|
-
export const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse> = {
|
|
3946
|
-
encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3947
|
-
return writer;
|
|
3948
|
-
},
|
|
3949
|
-
|
|
3950
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
3951
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3952
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3953
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
3954
|
-
while (reader.pos < end) {
|
|
3955
|
-
const tag = reader.uint32();
|
|
3956
|
-
switch (tag >>> 3) {
|
|
3957
|
-
}
|
|
3958
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3959
|
-
break;
|
|
3960
|
-
}
|
|
3961
|
-
reader.skip(tag & 7);
|
|
3962
|
-
}
|
|
3963
|
-
return message;
|
|
3964
|
-
},
|
|
3965
|
-
|
|
3966
|
-
fromJSON(_: any): MsgUpdateParamsResponse {
|
|
3967
|
-
return {};
|
|
3968
|
-
},
|
|
3969
|
-
|
|
3970
|
-
toJSON(_: MsgUpdateParamsResponse): unknown {
|
|
3971
|
-
const obj: any = {};
|
|
3972
|
-
return obj;
|
|
3973
|
-
},
|
|
3974
|
-
|
|
3975
|
-
create<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(base?: I): MsgUpdateParamsResponse {
|
|
3976
|
-
return MsgUpdateParamsResponse.fromPartial(base ?? ({} as any));
|
|
3977
|
-
},
|
|
3978
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
|
|
3979
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
3980
|
-
return message;
|
|
3981
|
-
},
|
|
3982
|
-
};
|
|
3983
|
-
|
|
3984
|
-
function createBaseMsgPruneAcknowledgements(): MsgPruneAcknowledgements {
|
|
3985
|
-
return { portId: "", channelId: "", limit: 0, signer: "" };
|
|
3986
|
-
}
|
|
3987
|
-
|
|
3988
|
-
export const MsgPruneAcknowledgements: MessageFns<MsgPruneAcknowledgements> = {
|
|
3989
|
-
encode(message: MsgPruneAcknowledgements, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3990
|
-
if (message.portId !== "") {
|
|
3991
|
-
writer.uint32(10).string(message.portId);
|
|
3992
|
-
}
|
|
3993
|
-
if (message.channelId !== "") {
|
|
3994
|
-
writer.uint32(18).string(message.channelId);
|
|
3995
|
-
}
|
|
3996
|
-
if (message.limit !== 0) {
|
|
3997
|
-
writer.uint32(24).uint64(message.limit);
|
|
3998
|
-
}
|
|
3999
|
-
if (message.signer !== "") {
|
|
4000
|
-
writer.uint32(34).string(message.signer);
|
|
4001
|
-
}
|
|
4002
|
-
return writer;
|
|
4003
|
-
},
|
|
4004
|
-
|
|
4005
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgPruneAcknowledgements {
|
|
4006
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4007
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4008
|
-
const message = createBaseMsgPruneAcknowledgements();
|
|
4009
|
-
while (reader.pos < end) {
|
|
4010
|
-
const tag = reader.uint32();
|
|
4011
|
-
switch (tag >>> 3) {
|
|
4012
|
-
case 1: {
|
|
4013
|
-
if (tag !== 10) {
|
|
4014
|
-
break;
|
|
4015
|
-
}
|
|
4016
|
-
|
|
4017
|
-
message.portId = reader.string();
|
|
4018
|
-
continue;
|
|
4019
|
-
}
|
|
4020
|
-
case 2: {
|
|
4021
|
-
if (tag !== 18) {
|
|
4022
|
-
break;
|
|
4023
|
-
}
|
|
4024
|
-
|
|
4025
|
-
message.channelId = reader.string();
|
|
4026
|
-
continue;
|
|
4027
|
-
}
|
|
4028
|
-
case 3: {
|
|
4029
|
-
if (tag !== 24) {
|
|
4030
|
-
break;
|
|
4031
|
-
}
|
|
4032
|
-
|
|
4033
|
-
message.limit = longToNumber(reader.uint64());
|
|
4034
|
-
continue;
|
|
4035
|
-
}
|
|
4036
|
-
case 4: {
|
|
4037
|
-
if (tag !== 34) {
|
|
4038
|
-
break;
|
|
4039
|
-
}
|
|
4040
|
-
|
|
4041
|
-
message.signer = reader.string();
|
|
4042
|
-
continue;
|
|
4043
|
-
}
|
|
4044
|
-
}
|
|
4045
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
4046
|
-
break;
|
|
4047
|
-
}
|
|
4048
|
-
reader.skip(tag & 7);
|
|
4049
|
-
}
|
|
4050
|
-
return message;
|
|
4051
|
-
},
|
|
4052
|
-
|
|
4053
|
-
fromJSON(object: any): MsgPruneAcknowledgements {
|
|
4054
|
-
return {
|
|
4055
|
-
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
|
|
4056
|
-
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
|
|
4057
|
-
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
4058
|
-
signer: isSet(object.signer) ? globalThis.String(object.signer) : "",
|
|
4059
|
-
};
|
|
4060
|
-
},
|
|
4061
|
-
|
|
4062
|
-
toJSON(message: MsgPruneAcknowledgements): unknown {
|
|
4063
|
-
const obj: any = {};
|
|
4064
|
-
if (message.portId !== "") {
|
|
4065
|
-
obj.portId = message.portId;
|
|
4066
|
-
}
|
|
4067
|
-
if (message.channelId !== "") {
|
|
4068
|
-
obj.channelId = message.channelId;
|
|
4069
|
-
}
|
|
4070
|
-
if (message.limit !== 0) {
|
|
4071
|
-
obj.limit = Math.round(message.limit);
|
|
4072
|
-
}
|
|
4073
|
-
if (message.signer !== "") {
|
|
4074
|
-
obj.signer = message.signer;
|
|
4075
|
-
}
|
|
4076
|
-
return obj;
|
|
4077
|
-
},
|
|
4078
|
-
|
|
4079
|
-
create<I extends Exact<DeepPartial<MsgPruneAcknowledgements>, I>>(base?: I): MsgPruneAcknowledgements {
|
|
4080
|
-
return MsgPruneAcknowledgements.fromPartial(base ?? ({} as any));
|
|
4081
|
-
},
|
|
4082
|
-
fromPartial<I extends Exact<DeepPartial<MsgPruneAcknowledgements>, I>>(object: I): MsgPruneAcknowledgements {
|
|
4083
|
-
const message = createBaseMsgPruneAcknowledgements();
|
|
4084
|
-
message.portId = object.portId ?? "";
|
|
4085
|
-
message.channelId = object.channelId ?? "";
|
|
4086
|
-
message.limit = object.limit ?? 0;
|
|
4087
|
-
message.signer = object.signer ?? "";
|
|
4088
|
-
return message;
|
|
4089
|
-
},
|
|
4090
|
-
};
|
|
4091
|
-
|
|
4092
|
-
function createBaseMsgPruneAcknowledgementsResponse(): MsgPruneAcknowledgementsResponse {
|
|
4093
|
-
return { totalPrunedSequences: 0, totalRemainingSequences: 0 };
|
|
4094
|
-
}
|
|
4095
|
-
|
|
4096
|
-
export const MsgPruneAcknowledgementsResponse: MessageFns<MsgPruneAcknowledgementsResponse> = {
|
|
4097
|
-
encode(message: MsgPruneAcknowledgementsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
4098
|
-
if (message.totalPrunedSequences !== 0) {
|
|
4099
|
-
writer.uint32(8).uint64(message.totalPrunedSequences);
|
|
4100
|
-
}
|
|
4101
|
-
if (message.totalRemainingSequences !== 0) {
|
|
4102
|
-
writer.uint32(16).uint64(message.totalRemainingSequences);
|
|
4103
|
-
}
|
|
4104
|
-
return writer;
|
|
4105
|
-
},
|
|
4106
|
-
|
|
4107
|
-
decode(input: BinaryReader | Uint8Array, length?: number): MsgPruneAcknowledgementsResponse {
|
|
4108
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4109
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4110
|
-
const message = createBaseMsgPruneAcknowledgementsResponse();
|
|
4111
|
-
while (reader.pos < end) {
|
|
4112
|
-
const tag = reader.uint32();
|
|
4113
|
-
switch (tag >>> 3) {
|
|
4114
|
-
case 1: {
|
|
4115
|
-
if (tag !== 8) {
|
|
4116
|
-
break;
|
|
4117
|
-
}
|
|
4118
|
-
|
|
4119
|
-
message.totalPrunedSequences = longToNumber(reader.uint64());
|
|
4120
|
-
continue;
|
|
4121
|
-
}
|
|
4122
|
-
case 2: {
|
|
4123
|
-
if (tag !== 16) {
|
|
4124
|
-
break;
|
|
4125
|
-
}
|
|
4126
|
-
|
|
4127
|
-
message.totalRemainingSequences = longToNumber(reader.uint64());
|
|
4128
|
-
continue;
|
|
4129
|
-
}
|
|
4130
|
-
}
|
|
4131
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
4132
|
-
break;
|
|
4133
|
-
}
|
|
4134
|
-
reader.skip(tag & 7);
|
|
4135
|
-
}
|
|
4136
|
-
return message;
|
|
4137
|
-
},
|
|
4138
|
-
|
|
4139
|
-
fromJSON(object: any): MsgPruneAcknowledgementsResponse {
|
|
4140
|
-
return {
|
|
4141
|
-
totalPrunedSequences: isSet(object.totalPrunedSequences) ? globalThis.Number(object.totalPrunedSequences) : 0,
|
|
4142
|
-
totalRemainingSequences: isSet(object.totalRemainingSequences)
|
|
4143
|
-
? globalThis.Number(object.totalRemainingSequences)
|
|
4144
|
-
: 0,
|
|
4145
|
-
};
|
|
4146
|
-
},
|
|
4147
|
-
|
|
4148
|
-
toJSON(message: MsgPruneAcknowledgementsResponse): unknown {
|
|
4149
|
-
const obj: any = {};
|
|
4150
|
-
if (message.totalPrunedSequences !== 0) {
|
|
4151
|
-
obj.totalPrunedSequences = Math.round(message.totalPrunedSequences);
|
|
4152
|
-
}
|
|
4153
|
-
if (message.totalRemainingSequences !== 0) {
|
|
4154
|
-
obj.totalRemainingSequences = Math.round(message.totalRemainingSequences);
|
|
4155
|
-
}
|
|
4156
|
-
return obj;
|
|
4157
|
-
},
|
|
4158
|
-
|
|
4159
|
-
create<I extends Exact<DeepPartial<MsgPruneAcknowledgementsResponse>, I>>(
|
|
4160
|
-
base?: I,
|
|
4161
|
-
): MsgPruneAcknowledgementsResponse {
|
|
4162
|
-
return MsgPruneAcknowledgementsResponse.fromPartial(base ?? ({} as any));
|
|
4163
|
-
},
|
|
4164
|
-
fromPartial<I extends Exact<DeepPartial<MsgPruneAcknowledgementsResponse>, I>>(
|
|
4165
|
-
object: I,
|
|
4166
|
-
): MsgPruneAcknowledgementsResponse {
|
|
4167
|
-
const message = createBaseMsgPruneAcknowledgementsResponse();
|
|
4168
|
-
message.totalPrunedSequences = object.totalPrunedSequences ?? 0;
|
|
4169
|
-
message.totalRemainingSequences = object.totalRemainingSequences ?? 0;
|
|
4170
|
-
return message;
|
|
4171
|
-
},
|
|
4172
|
-
};
|
|
4173
|
-
|
|
4174
|
-
/** Msg defines the ibc/channel Msg service. */
|
|
4175
|
-
export interface Msg {
|
|
4176
|
-
/** ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. */
|
|
4177
|
-
ChannelOpenInit(request: MsgChannelOpenInit): Promise<MsgChannelOpenInitResponse>;
|
|
4178
|
-
/** ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. */
|
|
4179
|
-
ChannelOpenTry(request: MsgChannelOpenTry): Promise<MsgChannelOpenTryResponse>;
|
|
4180
|
-
/** ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. */
|
|
4181
|
-
ChannelOpenAck(request: MsgChannelOpenAck): Promise<MsgChannelOpenAckResponse>;
|
|
4182
|
-
/** ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. */
|
|
4183
|
-
ChannelOpenConfirm(request: MsgChannelOpenConfirm): Promise<MsgChannelOpenConfirmResponse>;
|
|
4184
|
-
/** ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. */
|
|
4185
|
-
ChannelCloseInit(request: MsgChannelCloseInit): Promise<MsgChannelCloseInitResponse>;
|
|
4186
|
-
/**
|
|
4187
|
-
* ChannelCloseConfirm defines a rpc handler method for
|
|
4188
|
-
* MsgChannelCloseConfirm.
|
|
4189
|
-
*/
|
|
4190
|
-
ChannelCloseConfirm(request: MsgChannelCloseConfirm): Promise<MsgChannelCloseConfirmResponse>;
|
|
4191
|
-
/** RecvPacket defines a rpc handler method for MsgRecvPacket. */
|
|
4192
|
-
RecvPacket(request: MsgRecvPacket): Promise<MsgRecvPacketResponse>;
|
|
4193
|
-
/** Timeout defines a rpc handler method for MsgTimeout. */
|
|
4194
|
-
Timeout(request: MsgTimeout): Promise<MsgTimeoutResponse>;
|
|
4195
|
-
/** TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. */
|
|
4196
|
-
TimeoutOnClose(request: MsgTimeoutOnClose): Promise<MsgTimeoutOnCloseResponse>;
|
|
4197
|
-
/** Acknowledgement defines a rpc handler method for MsgAcknowledgement. */
|
|
4198
|
-
Acknowledgement(request: MsgAcknowledgement): Promise<MsgAcknowledgementResponse>;
|
|
4199
|
-
/** ChannelUpgradeInit defines a rpc handler method for MsgChannelUpgradeInit. */
|
|
4200
|
-
ChannelUpgradeInit(request: MsgChannelUpgradeInit): Promise<MsgChannelUpgradeInitResponse>;
|
|
4201
|
-
/** ChannelUpgradeTry defines a rpc handler method for MsgChannelUpgradeTry. */
|
|
4202
|
-
ChannelUpgradeTry(request: MsgChannelUpgradeTry): Promise<MsgChannelUpgradeTryResponse>;
|
|
4203
|
-
/** ChannelUpgradeAck defines a rpc handler method for MsgChannelUpgradeAck. */
|
|
4204
|
-
ChannelUpgradeAck(request: MsgChannelUpgradeAck): Promise<MsgChannelUpgradeAckResponse>;
|
|
4205
|
-
/** ChannelUpgradeConfirm defines a rpc handler method for MsgChannelUpgradeConfirm. */
|
|
4206
|
-
ChannelUpgradeConfirm(request: MsgChannelUpgradeConfirm): Promise<MsgChannelUpgradeConfirmResponse>;
|
|
4207
|
-
/** ChannelUpgradeOpen defines a rpc handler method for MsgChannelUpgradeOpen. */
|
|
4208
|
-
ChannelUpgradeOpen(request: MsgChannelUpgradeOpen): Promise<MsgChannelUpgradeOpenResponse>;
|
|
4209
|
-
/** ChannelUpgradeTimeout defines a rpc handler method for MsgChannelUpgradeTimeout. */
|
|
4210
|
-
ChannelUpgradeTimeout(request: MsgChannelUpgradeTimeout): Promise<MsgChannelUpgradeTimeoutResponse>;
|
|
4211
|
-
/** ChannelUpgradeCancel defines a rpc handler method for MsgChannelUpgradeCancel. */
|
|
4212
|
-
ChannelUpgradeCancel(request: MsgChannelUpgradeCancel): Promise<MsgChannelUpgradeCancelResponse>;
|
|
4213
|
-
/** UpdateChannelParams defines a rpc handler method for MsgUpdateParams. */
|
|
4214
|
-
UpdateChannelParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
4215
|
-
/** PruneAcknowledgements defines a rpc handler method for MsgPruneAcknowledgements. */
|
|
4216
|
-
PruneAcknowledgements(request: MsgPruneAcknowledgements): Promise<MsgPruneAcknowledgementsResponse>;
|
|
4217
|
-
}
|
|
4218
|
-
|
|
4219
|
-
export const MsgServiceName = "ibc.core.channel.v1.Msg";
|
|
4220
|
-
export class MsgClientImpl implements Msg {
|
|
4221
|
-
private readonly rpc: Rpc;
|
|
4222
|
-
private readonly service: string;
|
|
4223
|
-
constructor(rpc: Rpc, opts?: { service?: string }) {
|
|
4224
|
-
this.service = opts?.service || MsgServiceName;
|
|
4225
|
-
this.rpc = rpc;
|
|
4226
|
-
this.ChannelOpenInit = this.ChannelOpenInit.bind(this);
|
|
4227
|
-
this.ChannelOpenTry = this.ChannelOpenTry.bind(this);
|
|
4228
|
-
this.ChannelOpenAck = this.ChannelOpenAck.bind(this);
|
|
4229
|
-
this.ChannelOpenConfirm = this.ChannelOpenConfirm.bind(this);
|
|
4230
|
-
this.ChannelCloseInit = this.ChannelCloseInit.bind(this);
|
|
4231
|
-
this.ChannelCloseConfirm = this.ChannelCloseConfirm.bind(this);
|
|
4232
|
-
this.RecvPacket = this.RecvPacket.bind(this);
|
|
4233
|
-
this.Timeout = this.Timeout.bind(this);
|
|
4234
|
-
this.TimeoutOnClose = this.TimeoutOnClose.bind(this);
|
|
4235
|
-
this.Acknowledgement = this.Acknowledgement.bind(this);
|
|
4236
|
-
this.ChannelUpgradeInit = this.ChannelUpgradeInit.bind(this);
|
|
4237
|
-
this.ChannelUpgradeTry = this.ChannelUpgradeTry.bind(this);
|
|
4238
|
-
this.ChannelUpgradeAck = this.ChannelUpgradeAck.bind(this);
|
|
4239
|
-
this.ChannelUpgradeConfirm = this.ChannelUpgradeConfirm.bind(this);
|
|
4240
|
-
this.ChannelUpgradeOpen = this.ChannelUpgradeOpen.bind(this);
|
|
4241
|
-
this.ChannelUpgradeTimeout = this.ChannelUpgradeTimeout.bind(this);
|
|
4242
|
-
this.ChannelUpgradeCancel = this.ChannelUpgradeCancel.bind(this);
|
|
4243
|
-
this.UpdateChannelParams = this.UpdateChannelParams.bind(this);
|
|
4244
|
-
this.PruneAcknowledgements = this.PruneAcknowledgements.bind(this);
|
|
4245
|
-
}
|
|
4246
|
-
ChannelOpenInit(request: MsgChannelOpenInit): Promise<MsgChannelOpenInitResponse> {
|
|
4247
|
-
const data = MsgChannelOpenInit.encode(request).finish();
|
|
4248
|
-
const promise = this.rpc.request(this.service, "ChannelOpenInit", data);
|
|
4249
|
-
return promise.then((data) => MsgChannelOpenInitResponse.decode(new BinaryReader(data)));
|
|
4250
|
-
}
|
|
4251
|
-
|
|
4252
|
-
ChannelOpenTry(request: MsgChannelOpenTry): Promise<MsgChannelOpenTryResponse> {
|
|
4253
|
-
const data = MsgChannelOpenTry.encode(request).finish();
|
|
4254
|
-
const promise = this.rpc.request(this.service, "ChannelOpenTry", data);
|
|
4255
|
-
return promise.then((data) => MsgChannelOpenTryResponse.decode(new BinaryReader(data)));
|
|
4256
|
-
}
|
|
4257
|
-
|
|
4258
|
-
ChannelOpenAck(request: MsgChannelOpenAck): Promise<MsgChannelOpenAckResponse> {
|
|
4259
|
-
const data = MsgChannelOpenAck.encode(request).finish();
|
|
4260
|
-
const promise = this.rpc.request(this.service, "ChannelOpenAck", data);
|
|
4261
|
-
return promise.then((data) => MsgChannelOpenAckResponse.decode(new BinaryReader(data)));
|
|
4262
|
-
}
|
|
4263
|
-
|
|
4264
|
-
ChannelOpenConfirm(request: MsgChannelOpenConfirm): Promise<MsgChannelOpenConfirmResponse> {
|
|
4265
|
-
const data = MsgChannelOpenConfirm.encode(request).finish();
|
|
4266
|
-
const promise = this.rpc.request(this.service, "ChannelOpenConfirm", data);
|
|
4267
|
-
return promise.then((data) => MsgChannelOpenConfirmResponse.decode(new BinaryReader(data)));
|
|
4268
|
-
}
|
|
4269
|
-
|
|
4270
|
-
ChannelCloseInit(request: MsgChannelCloseInit): Promise<MsgChannelCloseInitResponse> {
|
|
4271
|
-
const data = MsgChannelCloseInit.encode(request).finish();
|
|
4272
|
-
const promise = this.rpc.request(this.service, "ChannelCloseInit", data);
|
|
4273
|
-
return promise.then((data) => MsgChannelCloseInitResponse.decode(new BinaryReader(data)));
|
|
4274
|
-
}
|
|
4275
|
-
|
|
4276
|
-
ChannelCloseConfirm(request: MsgChannelCloseConfirm): Promise<MsgChannelCloseConfirmResponse> {
|
|
4277
|
-
const data = MsgChannelCloseConfirm.encode(request).finish();
|
|
4278
|
-
const promise = this.rpc.request(this.service, "ChannelCloseConfirm", data);
|
|
4279
|
-
return promise.then((data) => MsgChannelCloseConfirmResponse.decode(new BinaryReader(data)));
|
|
4280
|
-
}
|
|
4281
|
-
|
|
4282
|
-
RecvPacket(request: MsgRecvPacket): Promise<MsgRecvPacketResponse> {
|
|
4283
|
-
const data = MsgRecvPacket.encode(request).finish();
|
|
4284
|
-
const promise = this.rpc.request(this.service, "RecvPacket", data);
|
|
4285
|
-
return promise.then((data) => MsgRecvPacketResponse.decode(new BinaryReader(data)));
|
|
4286
|
-
}
|
|
4287
|
-
|
|
4288
|
-
Timeout(request: MsgTimeout): Promise<MsgTimeoutResponse> {
|
|
4289
|
-
const data = MsgTimeout.encode(request).finish();
|
|
4290
|
-
const promise = this.rpc.request(this.service, "Timeout", data);
|
|
4291
|
-
return promise.then((data) => MsgTimeoutResponse.decode(new BinaryReader(data)));
|
|
4292
|
-
}
|
|
4293
|
-
|
|
4294
|
-
TimeoutOnClose(request: MsgTimeoutOnClose): Promise<MsgTimeoutOnCloseResponse> {
|
|
4295
|
-
const data = MsgTimeoutOnClose.encode(request).finish();
|
|
4296
|
-
const promise = this.rpc.request(this.service, "TimeoutOnClose", data);
|
|
4297
|
-
return promise.then((data) => MsgTimeoutOnCloseResponse.decode(new BinaryReader(data)));
|
|
4298
|
-
}
|
|
4299
|
-
|
|
4300
|
-
Acknowledgement(request: MsgAcknowledgement): Promise<MsgAcknowledgementResponse> {
|
|
4301
|
-
const data = MsgAcknowledgement.encode(request).finish();
|
|
4302
|
-
const promise = this.rpc.request(this.service, "Acknowledgement", data);
|
|
4303
|
-
return promise.then((data) => MsgAcknowledgementResponse.decode(new BinaryReader(data)));
|
|
4304
|
-
}
|
|
4305
|
-
|
|
4306
|
-
ChannelUpgradeInit(request: MsgChannelUpgradeInit): Promise<MsgChannelUpgradeInitResponse> {
|
|
4307
|
-
const data = MsgChannelUpgradeInit.encode(request).finish();
|
|
4308
|
-
const promise = this.rpc.request(this.service, "ChannelUpgradeInit", data);
|
|
4309
|
-
return promise.then((data) => MsgChannelUpgradeInitResponse.decode(new BinaryReader(data)));
|
|
4310
|
-
}
|
|
4311
|
-
|
|
4312
|
-
ChannelUpgradeTry(request: MsgChannelUpgradeTry): Promise<MsgChannelUpgradeTryResponse> {
|
|
4313
|
-
const data = MsgChannelUpgradeTry.encode(request).finish();
|
|
4314
|
-
const promise = this.rpc.request(this.service, "ChannelUpgradeTry", data);
|
|
4315
|
-
return promise.then((data) => MsgChannelUpgradeTryResponse.decode(new BinaryReader(data)));
|
|
4316
|
-
}
|
|
4317
|
-
|
|
4318
|
-
ChannelUpgradeAck(request: MsgChannelUpgradeAck): Promise<MsgChannelUpgradeAckResponse> {
|
|
4319
|
-
const data = MsgChannelUpgradeAck.encode(request).finish();
|
|
4320
|
-
const promise = this.rpc.request(this.service, "ChannelUpgradeAck", data);
|
|
4321
|
-
return promise.then((data) => MsgChannelUpgradeAckResponse.decode(new BinaryReader(data)));
|
|
4322
|
-
}
|
|
4323
|
-
|
|
4324
|
-
ChannelUpgradeConfirm(request: MsgChannelUpgradeConfirm): Promise<MsgChannelUpgradeConfirmResponse> {
|
|
4325
|
-
const data = MsgChannelUpgradeConfirm.encode(request).finish();
|
|
4326
|
-
const promise = this.rpc.request(this.service, "ChannelUpgradeConfirm", data);
|
|
4327
|
-
return promise.then((data) => MsgChannelUpgradeConfirmResponse.decode(new BinaryReader(data)));
|
|
4328
|
-
}
|
|
4329
|
-
|
|
4330
|
-
ChannelUpgradeOpen(request: MsgChannelUpgradeOpen): Promise<MsgChannelUpgradeOpenResponse> {
|
|
4331
|
-
const data = MsgChannelUpgradeOpen.encode(request).finish();
|
|
4332
|
-
const promise = this.rpc.request(this.service, "ChannelUpgradeOpen", data);
|
|
4333
|
-
return promise.then((data) => MsgChannelUpgradeOpenResponse.decode(new BinaryReader(data)));
|
|
4334
|
-
}
|
|
4335
|
-
|
|
4336
|
-
ChannelUpgradeTimeout(request: MsgChannelUpgradeTimeout): Promise<MsgChannelUpgradeTimeoutResponse> {
|
|
4337
|
-
const data = MsgChannelUpgradeTimeout.encode(request).finish();
|
|
4338
|
-
const promise = this.rpc.request(this.service, "ChannelUpgradeTimeout", data);
|
|
4339
|
-
return promise.then((data) => MsgChannelUpgradeTimeoutResponse.decode(new BinaryReader(data)));
|
|
4340
|
-
}
|
|
4341
|
-
|
|
4342
|
-
ChannelUpgradeCancel(request: MsgChannelUpgradeCancel): Promise<MsgChannelUpgradeCancelResponse> {
|
|
4343
|
-
const data = MsgChannelUpgradeCancel.encode(request).finish();
|
|
4344
|
-
const promise = this.rpc.request(this.service, "ChannelUpgradeCancel", data);
|
|
4345
|
-
return promise.then((data) => MsgChannelUpgradeCancelResponse.decode(new BinaryReader(data)));
|
|
4346
|
-
}
|
|
4347
|
-
|
|
4348
|
-
UpdateChannelParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
|
|
4349
|
-
const data = MsgUpdateParams.encode(request).finish();
|
|
4350
|
-
const promise = this.rpc.request(this.service, "UpdateChannelParams", data);
|
|
4351
|
-
return promise.then((data) => MsgUpdateParamsResponse.decode(new BinaryReader(data)));
|
|
4352
|
-
}
|
|
4353
|
-
|
|
4354
|
-
PruneAcknowledgements(request: MsgPruneAcknowledgements): Promise<MsgPruneAcknowledgementsResponse> {
|
|
4355
|
-
const data = MsgPruneAcknowledgements.encode(request).finish();
|
|
4356
|
-
const promise = this.rpc.request(this.service, "PruneAcknowledgements", data);
|
|
4357
|
-
return promise.then((data) => MsgPruneAcknowledgementsResponse.decode(new BinaryReader(data)));
|
|
4358
|
-
}
|
|
4359
|
-
}
|
|
4360
|
-
|
|
4361
|
-
interface Rpc {
|
|
4362
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
4363
|
-
}
|
|
4364
|
-
|
|
4365
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
4366
|
-
if ((globalThis as any).Buffer) {
|
|
4367
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
4368
|
-
} else {
|
|
4369
|
-
const bin = globalThis.atob(b64);
|
|
4370
|
-
const arr = new Uint8Array(bin.length);
|
|
4371
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
4372
|
-
arr[i] = bin.charCodeAt(i);
|
|
4373
|
-
}
|
|
4374
|
-
return arr;
|
|
4375
|
-
}
|
|
4376
|
-
}
|
|
4377
|
-
|
|
4378
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
4379
|
-
if ((globalThis as any).Buffer) {
|
|
4380
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
4381
|
-
} else {
|
|
4382
|
-
const bin: string[] = [];
|
|
4383
|
-
arr.forEach((byte) => {
|
|
4384
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
4385
|
-
});
|
|
4386
|
-
return globalThis.btoa(bin.join(""));
|
|
4387
|
-
}
|
|
4388
|
-
}
|
|
4389
|
-
|
|
4390
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
4391
|
-
|
|
4392
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
4393
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
4394
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
4395
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
4396
|
-
: Partial<T>;
|
|
4397
|
-
|
|
4398
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
4399
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
4400
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
4401
|
-
|
|
4402
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
4403
|
-
const num = globalThis.Number(int64.toString());
|
|
4404
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
4405
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
4406
|
-
}
|
|
4407
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
4408
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
4409
|
-
}
|
|
4410
|
-
return num;
|
|
4411
|
-
}
|
|
4412
|
-
|
|
4413
|
-
function isSet(value: any): boolean {
|
|
4414
|
-
return value !== null && value !== undefined;
|
|
4415
|
-
}
|
|
4416
|
-
|
|
4417
|
-
export interface MessageFns<T> {
|
|
4418
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
4419
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
4420
|
-
fromJSON(object: any): T;
|
|
4421
|
-
toJSON(message: T): unknown;
|
|
4422
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
4423
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
4424
|
-
}
|