@agoric/cosmic-proto 0.5.0-u19.2 → 0.5.0-u20.0
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/dist/address-hooks.d.ts +4 -3
- package/dist/address-hooks.js +1 -217
- package/dist/address-hooks.js.map +1 -1
- package/dist/codegen/agoric/bundle.js +1 -51
- package/dist/codegen/agoric/lien/genesis.js +1 -143
- package/dist/codegen/agoric/lien/lien.js +1 -87
- package/dist/codegen/agoric/swingset/genesis.js +1 -181
- package/dist/codegen/agoric/swingset/msgs.js +1 -700
- package/dist/codegen/agoric/swingset/query.js +1 -356
- package/dist/codegen/agoric/swingset/swingset.js +1 -816
- package/dist/codegen/agoric/vbank/genesis.js +1 -82
- package/dist/codegen/agoric/vbank/msgs.js +1 -2
- package/dist/codegen/agoric/vbank/query.js +1 -222
- package/dist/codegen/agoric/vbank/vbank.js +1 -237
- package/dist/codegen/agoric/vibc/msgs.js +1 -127
- package/dist/codegen/agoric/vlocalchain/vlocalchain.js +1 -307
- package/dist/codegen/agoric/vstorage/genesis.js +1 -138
- package/dist/codegen/agoric/vstorage/query.js +1 -441
- package/dist/codegen/agoric/vstorage/vstorage.js +1 -128
- package/dist/codegen/agoric/vtransfer/genesis.js +1 -70
- package/dist/codegen/amino/amino.js +1 -2
- package/dist/codegen/amino/bundle.js +1 -6
- package/dist/codegen/binary.js +1 -367
- package/dist/codegen/circle/bundle.d.ts +0 -506
- package/dist/codegen/circle/bundle.js +1 -40
- package/dist/codegen/circle/cctp/v1/attester.js +1 -63
- package/dist/codegen/circle/cctp/v1/burn_message.js +1 -117
- package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +1 -63
- package/dist/codegen/circle/cctp/v1/events.js +1 -1612
- package/dist/codegen/circle/cctp/v1/genesis.js +1 -295
- package/dist/codegen/circle/cctp/v1/max_message_body_size.js +1 -69
- package/dist/codegen/circle/cctp/v1/message.js +1 -160
- package/dist/codegen/circle/cctp/v1/nonce.js +1 -80
- package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +1 -73
- package/dist/codegen/circle/cctp/v1/query.js +1 -2421
- package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +1 -77
- package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +1 -63
- package/dist/codegen/circle/cctp/v1/signature_threshold.js +1 -63
- package/dist/codegen/circle/cctp/v1/token_pair.js +1 -91
- package/dist/codegen/circle/cctp/v1/tx.d.ts +0 -998
- package/dist/codegen/circle/cctp/v1/tx.js +1 -3264
- package/dist/codegen/circle/cctp/v1/tx.js.map +1 -1
- package/dist/codegen/cosmos/auth/v1beta1/auth.js +1 -337
- package/dist/codegen/cosmos/auth/v1beta1/genesis.js +1 -86
- package/dist/codegen/cosmos/auth/v1beta1/query.js +1 -1113
- package/dist/codegen/cosmos/authz/v1beta1/authz.js +1 -334
- package/dist/codegen/cosmos/authz/v1beta1/event.js +1 -161
- package/dist/codegen/cosmos/authz/v1beta1/genesis.js +1 -71
- package/dist/codegen/cosmos/authz/v1beta1/query.js +1 -506
- package/dist/codegen/cosmos/authz/v1beta1/tx.js +1 -415
- package/dist/codegen/cosmos/bank/v1beta1/authz.js +1 -71
- package/dist/codegen/cosmos/bank/v1beta1/bank.js +1 -592
- package/dist/codegen/cosmos/bank/v1beta1/genesis.js +1 -196
- package/dist/codegen/cosmos/bank/v1beta1/query.js +1 -1347
- package/dist/codegen/cosmos/bank/v1beta1/tx.js +1 -267
- package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1012
- package/dist/codegen/cosmos/base/node/v1beta1/query.js +1 -112
- package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +1 -189
- package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1 -1755
- package/dist/codegen/cosmos/base/v1beta1/coin.js +1 -257
- package/dist/codegen/cosmos/bundle.js +1 -249
- package/dist/codegen/cosmos/crypto/ed25519/keys.js +1 -123
- package/dist/codegen/cosmos/crypto/hd/v1/hd.js +1 -109
- package/dist/codegen/cosmos/crypto/keyring/v1/record.js +1 -367
- package/dist/codegen/cosmos/crypto/multisig/keys.js +1 -82
- package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +1 -144
- package/dist/codegen/cosmos/crypto/secp256k1/keys.js +1 -123
- package/dist/codegen/cosmos/crypto/secp256r1/keys.js +1 -125
- package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +1 -978
- package/dist/codegen/cosmos/distribution/v1beta1/genesis.js +1 -837
- package/dist/codegen/cosmos/distribution/v1beta1/query.js +1 -1207
- package/dist/codegen/cosmos/distribution/v1beta1/tx.js +1 -512
- package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +1 -412
- package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js +1 -71
- package/dist/codegen/cosmos/feegrant/v1beta1/query.js +1 -461
- package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +1 -267
- package/dist/codegen/cosmos/gov/v1/genesis.js +1 -177
- package/dist/codegen/cosmos/gov/v1/gov.js +1 -928
- package/dist/codegen/cosmos/gov/v1/query.js +1 -1216
- package/dist/codegen/cosmos/gov/v1/tx.js +1 -730
- package/dist/codegen/cosmos/gov/v1beta1/genesis.js +1 -177
- package/dist/codegen/cosmos/gov/v1beta1/gov.js +1 -1003
- package/dist/codegen/cosmos/gov/v1beta1/query.js +1 -1216
- package/dist/codegen/cosmos/gov/v1beta1/tx.js +1 -578
- package/dist/codegen/cosmos/group/v1/events.js +1 -696
- package/dist/codegen/cosmos/group/v1/genesis.js +1 -190
- package/dist/codegen/cosmos/group/v1/query.js +1 -2096
- package/dist/codegen/cosmos/group/v1/tx.js +1 -2073
- package/dist/codegen/cosmos/group/v1/types.js +1 -1387
- package/dist/codegen/cosmos/mint/v1beta1/genesis.js +1 -82
- package/dist/codegen/cosmos/mint/v1beta1/mint.js +1 -211
- package/dist/codegen/cosmos/mint/v1beta1/query.js +1 -330
- package/dist/codegen/cosmos/msg/v1/msg.js +1 -2
- package/dist/codegen/cosmos/params/v1beta1/params.js +1 -171
- package/dist/codegen/cosmos/params/v1beta1/query.js +1 -327
- package/dist/codegen/cosmos/staking/v1beta1/authz.js +1 -240
- package/dist/codegen/cosmos/staking/v1beta1/genesis.js +1 -256
- package/dist/codegen/cosmos/staking/v1beta1/query.js +1 -2069
- package/dist/codegen/cosmos/staking/v1beta1/staking.js +1 -1915
- package/dist/codegen/cosmos/staking/v1beta1/tx.js +1 -968
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -516
- package/dist/codegen/cosmos/tx/v1beta1/service.js +1 -975
- package/dist/codegen/cosmos/tx/v1beta1/tx.js +1 -1256
- package/dist/codegen/cosmos/upgrade/v1beta1/query.js +1 -592
- package/dist/codegen/cosmos/upgrade/v1beta1/tx.js +1 -228
- package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +1 -352
- package/dist/codegen/cosmos/vesting/v1beta1/tx.js +1 -865
- package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +1 -674
- package/dist/codegen/cosmos_proto/bundle.js +1 -6
- package/dist/codegen/cosmos_proto/cosmos.js +1 -208
- package/dist/codegen/gogoproto/bundle.js +1 -6
- package/dist/codegen/gogoproto/gogo.js +1 -2
- package/dist/codegen/google/api/annotations.js +1 -2
- package/dist/codegen/google/api/http.js +1 -319
- package/dist/codegen/google/bundle.js +1 -17
- package/dist/codegen/google/protobuf/any.js +1 -77
- package/dist/codegen/google/protobuf/descriptor.js +1 -3421
- package/dist/codegen/google/protobuf/duration.js +1 -79
- package/dist/codegen/google/protobuf/empty.js +1 -50
- package/dist/codegen/google/protobuf/timestamp.js +1 -79
- package/dist/codegen/helpers.js +1 -196
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +1 -66
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +1 -243
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +1 -314
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +1 -503
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +1 -83
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +1 -114
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +1 -86
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +1 -119
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +1 -190
- package/dist/codegen/ibc/applications/transfer/v1/authz.js +1 -178
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js +1 -96
- package/dist/codegen/ibc/applications/transfer/v1/query.js +1 -634
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js +1 -147
- package/dist/codegen/ibc/applications/transfer/v1/tx.js +1 -220
- package/dist/codegen/ibc/applications/transfer/v2/packet.js +1 -103
- package/dist/codegen/ibc/bundle.js +1 -142
- package/dist/codegen/ibc/core/channel/v1/channel.js +1 -845
- package/dist/codegen/ibc/core/channel/v1/genesis.js +1 -281
- package/dist/codegen/ibc/core/channel/v1/query.js +1 -2344
- package/dist/codegen/ibc/core/channel/v1/tx.js +1 -1745
- package/dist/codegen/ibc/core/client/v1/client.js +1 -583
- package/dist/codegen/ibc/core/client/v1/genesis.js +1 -301
- package/dist/codegen/ibc/core/client/v1/query.js +1 -1283
- package/dist/codegen/ibc/core/client/v1/tx.js +1 -587
- package/dist/codegen/ibc/core/commitment/v1/commitment.js +1 -259
- package/dist/codegen/ibc/core/connection/v1/connection.js +1 -678
- package/dist/codegen/ibc/core/connection/v1/genesis.js +1 -122
- package/dist/codegen/ibc/core/connection/v1/query.js +1 -952
- package/dist/codegen/ibc/core/connection/v1/tx.js +1 -843
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +1 -78
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1 -1520
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1 -1514
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +1 -628
- package/dist/codegen/icq/bundle.js +1 -17
- package/dist/codegen/icq/v1/genesis.js +1 -78
- package/dist/codegen/icq/v1/icq.js +1 -83
- package/dist/codegen/icq/v1/packet.js +1 -270
- package/dist/codegen/icq/v1/query.js +1 -114
- package/dist/codegen/icq/v1/tx.js +1 -124
- package/dist/codegen/ics23/bundle.js +1 -6
- package/dist/codegen/index.js +1 -23
- package/dist/codegen/json-safe.js +1 -8
- package/dist/codegen/proofs.js +1 -1436
- package/dist/codegen/stride/bundle.js +1 -71
- package/dist/codegen/stride/epochs/genesis.js +1 -227
- package/dist/codegen/stride/epochs/query.js +1 -398
- package/dist/codegen/stride/records/callbacks.js +1 -136
- package/dist/codegen/stride/records/genesis.js +1 -186
- package/dist/codegen/stride/records/params.js +1 -50
- package/dist/codegen/stride/records/query.js +1 -1552
- package/dist/codegen/stride/records/records.js +1 -939
- package/dist/codegen/stride/stakedym/genesis.js +1 -312
- package/dist/codegen/stride/stakedym/query.js +1 -887
- package/dist/codegen/stride/stakedym/stakedym.js +1 -909
- package/dist/codegen/stride/stakedym/tx.js +1 -1661
- package/dist/codegen/stride/stakeibc/address_unbonding.js +1 -135
- package/dist/codegen/stride/stakeibc/callbacks.js +1 -1191
- package/dist/codegen/stride/stakeibc/epoch_tracker.js +1 -115
- package/dist/codegen/stride/stakeibc/genesis.js +1 -135
- package/dist/codegen/stride/stakeibc/gov.js +1 -212
- package/dist/codegen/stride/stakeibc/host_zone.js +1 -544
- package/dist/codegen/stride/stakeibc/ica_account.js +1 -165
- package/dist/codegen/stride/stakeibc/packet.js +1 -113
- package/dist/codegen/stride/stakeibc/params.js +1 -317
- package/dist/codegen/stride/stakeibc/query.js +1 -1372
- package/dist/codegen/stride/stakeibc/trade_route.js +1 -377
- package/dist/codegen/stride/stakeibc/tx.js +1 -3392
- package/dist/codegen/stride/stakeibc/validator.js +1 -170
- package/dist/codegen/stride/staketia/genesis.js +1 -312
- package/dist/codegen/stride/staketia/query.js +1 -887
- package/dist/codegen/stride/staketia/staketia.js +1 -819
- package/dist/codegen/stride/staketia/tx.js +1 -1671
- package/dist/codegen/tendermint/abci/types.d.ts +264 -692
- package/dist/codegen/tendermint/abci/types.js +1 -4434
- package/dist/codegen/tendermint/abci/types.js.map +1 -1
- package/dist/codegen/tendermint/bundle.d.ts +0 -272
- package/dist/codegen/tendermint/bundle.js +1 -42
- package/dist/codegen/tendermint/crypto/keys.js +1 -85
- package/dist/codegen/tendermint/crypto/proof.js +1 -409
- package/dist/codegen/tendermint/libs/bits/types.js +1 -94
- package/dist/codegen/tendermint/p2p/types.js +1 -506
- package/dist/codegen/tendermint/types/block.js +1 -119
- package/dist/codegen/tendermint/types/evidence.js +1 -415
- package/dist/codegen/tendermint/types/params.js +1 -529
- package/dist/codegen/tendermint/types/types.js +1 -1534
- package/dist/codegen/tendermint/types/validator.js +1 -299
- package/dist/codegen/tendermint/version/types.js +1 -155
- package/dist/codegen/utf8.js +1 -138
- package/dist/codegen/varint.js +1 -409
- package/dist/helpers.js +1 -22
- package/dist/index.js +1 -6
- package/package.json +12 -10
|
@@ -1,843 +1 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { Counterparty, Version, } from './connection.js';
|
|
3
|
-
import { Any } from '../../../../google/protobuf/any.js';
|
|
4
|
-
import { Height } from '../../client/v1/client.js';
|
|
5
|
-
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
|
|
6
|
-
import { isSet, bytesFromBase64, base64FromBytes, } from '../../../../helpers.js';
|
|
7
|
-
import {} from '../../../../json-safe.js';
|
|
8
|
-
function createBaseMsgConnectionOpenInit() {
|
|
9
|
-
return {
|
|
10
|
-
clientId: '',
|
|
11
|
-
counterparty: Counterparty.fromPartial({}),
|
|
12
|
-
version: undefined,
|
|
13
|
-
delayPeriod: BigInt(0),
|
|
14
|
-
signer: '',
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export const MsgConnectionOpenInit = {
|
|
18
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenInit',
|
|
19
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
20
|
-
if (message.clientId !== '') {
|
|
21
|
-
writer.uint32(10).string(message.clientId);
|
|
22
|
-
}
|
|
23
|
-
if (message.counterparty !== undefined) {
|
|
24
|
-
Counterparty.encode(message.counterparty, writer.uint32(18).fork()).ldelim();
|
|
25
|
-
}
|
|
26
|
-
if (message.version !== undefined) {
|
|
27
|
-
Version.encode(message.version, writer.uint32(26).fork()).ldelim();
|
|
28
|
-
}
|
|
29
|
-
if (message.delayPeriod !== BigInt(0)) {
|
|
30
|
-
writer.uint32(32).uint64(message.delayPeriod);
|
|
31
|
-
}
|
|
32
|
-
if (message.signer !== '') {
|
|
33
|
-
writer.uint32(42).string(message.signer);
|
|
34
|
-
}
|
|
35
|
-
return writer;
|
|
36
|
-
},
|
|
37
|
-
decode(input, length) {
|
|
38
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
39
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
40
|
-
const message = createBaseMsgConnectionOpenInit();
|
|
41
|
-
while (reader.pos < end) {
|
|
42
|
-
const tag = reader.uint32();
|
|
43
|
-
switch (tag >>> 3) {
|
|
44
|
-
case 1:
|
|
45
|
-
message.clientId = reader.string();
|
|
46
|
-
break;
|
|
47
|
-
case 2:
|
|
48
|
-
message.counterparty = Counterparty.decode(reader, reader.uint32());
|
|
49
|
-
break;
|
|
50
|
-
case 3:
|
|
51
|
-
message.version = Version.decode(reader, reader.uint32());
|
|
52
|
-
break;
|
|
53
|
-
case 4:
|
|
54
|
-
message.delayPeriod = reader.uint64();
|
|
55
|
-
break;
|
|
56
|
-
case 5:
|
|
57
|
-
message.signer = reader.string();
|
|
58
|
-
break;
|
|
59
|
-
default:
|
|
60
|
-
reader.skipType(tag & 7);
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return message;
|
|
65
|
-
},
|
|
66
|
-
fromJSON(object) {
|
|
67
|
-
return {
|
|
68
|
-
clientId: isSet(object.clientId) ? String(object.clientId) : '',
|
|
69
|
-
counterparty: isSet(object.counterparty)
|
|
70
|
-
? Counterparty.fromJSON(object.counterparty)
|
|
71
|
-
: undefined,
|
|
72
|
-
version: isSet(object.version)
|
|
73
|
-
? Version.fromJSON(object.version)
|
|
74
|
-
: undefined,
|
|
75
|
-
delayPeriod: isSet(object.delayPeriod)
|
|
76
|
-
? BigInt(object.delayPeriod.toString())
|
|
77
|
-
: BigInt(0),
|
|
78
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
79
|
-
};
|
|
80
|
-
},
|
|
81
|
-
toJSON(message) {
|
|
82
|
-
const obj = {};
|
|
83
|
-
message.clientId !== undefined && (obj.clientId = message.clientId);
|
|
84
|
-
message.counterparty !== undefined &&
|
|
85
|
-
(obj.counterparty = message.counterparty
|
|
86
|
-
? Counterparty.toJSON(message.counterparty)
|
|
87
|
-
: undefined);
|
|
88
|
-
message.version !== undefined &&
|
|
89
|
-
(obj.version = message.version
|
|
90
|
-
? Version.toJSON(message.version)
|
|
91
|
-
: undefined);
|
|
92
|
-
message.delayPeriod !== undefined &&
|
|
93
|
-
(obj.delayPeriod = (message.delayPeriod || BigInt(0)).toString());
|
|
94
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
95
|
-
return obj;
|
|
96
|
-
},
|
|
97
|
-
fromPartial(object) {
|
|
98
|
-
const message = createBaseMsgConnectionOpenInit();
|
|
99
|
-
message.clientId = object.clientId ?? '';
|
|
100
|
-
message.counterparty =
|
|
101
|
-
object.counterparty !== undefined && object.counterparty !== null
|
|
102
|
-
? Counterparty.fromPartial(object.counterparty)
|
|
103
|
-
: undefined;
|
|
104
|
-
message.version =
|
|
105
|
-
object.version !== undefined && object.version !== null
|
|
106
|
-
? Version.fromPartial(object.version)
|
|
107
|
-
: undefined;
|
|
108
|
-
message.delayPeriod =
|
|
109
|
-
object.delayPeriod !== undefined && object.delayPeriod !== null
|
|
110
|
-
? BigInt(object.delayPeriod.toString())
|
|
111
|
-
: BigInt(0);
|
|
112
|
-
message.signer = object.signer ?? '';
|
|
113
|
-
return message;
|
|
114
|
-
},
|
|
115
|
-
fromProtoMsg(message) {
|
|
116
|
-
return MsgConnectionOpenInit.decode(message.value);
|
|
117
|
-
},
|
|
118
|
-
toProto(message) {
|
|
119
|
-
return MsgConnectionOpenInit.encode(message).finish();
|
|
120
|
-
},
|
|
121
|
-
toProtoMsg(message) {
|
|
122
|
-
return {
|
|
123
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenInit',
|
|
124
|
-
value: MsgConnectionOpenInit.encode(message).finish(),
|
|
125
|
-
};
|
|
126
|
-
},
|
|
127
|
-
};
|
|
128
|
-
function createBaseMsgConnectionOpenInitResponse() {
|
|
129
|
-
return {};
|
|
130
|
-
}
|
|
131
|
-
export const MsgConnectionOpenInitResponse = {
|
|
132
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenInitResponse',
|
|
133
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
134
|
-
return writer;
|
|
135
|
-
},
|
|
136
|
-
decode(input, length) {
|
|
137
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
138
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
139
|
-
const message = createBaseMsgConnectionOpenInitResponse();
|
|
140
|
-
while (reader.pos < end) {
|
|
141
|
-
const tag = reader.uint32();
|
|
142
|
-
switch (tag >>> 3) {
|
|
143
|
-
default:
|
|
144
|
-
reader.skipType(tag & 7);
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return message;
|
|
149
|
-
},
|
|
150
|
-
fromJSON(_) {
|
|
151
|
-
return {};
|
|
152
|
-
},
|
|
153
|
-
toJSON(_) {
|
|
154
|
-
const obj = {};
|
|
155
|
-
return obj;
|
|
156
|
-
},
|
|
157
|
-
fromPartial(_) {
|
|
158
|
-
const message = createBaseMsgConnectionOpenInitResponse();
|
|
159
|
-
return message;
|
|
160
|
-
},
|
|
161
|
-
fromProtoMsg(message) {
|
|
162
|
-
return MsgConnectionOpenInitResponse.decode(message.value);
|
|
163
|
-
},
|
|
164
|
-
toProto(message) {
|
|
165
|
-
return MsgConnectionOpenInitResponse.encode(message).finish();
|
|
166
|
-
},
|
|
167
|
-
toProtoMsg(message) {
|
|
168
|
-
return {
|
|
169
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenInitResponse',
|
|
170
|
-
value: MsgConnectionOpenInitResponse.encode(message).finish(),
|
|
171
|
-
};
|
|
172
|
-
},
|
|
173
|
-
};
|
|
174
|
-
function createBaseMsgConnectionOpenTry() {
|
|
175
|
-
return {
|
|
176
|
-
clientId: '',
|
|
177
|
-
previousConnectionId: '',
|
|
178
|
-
clientState: undefined,
|
|
179
|
-
counterparty: Counterparty.fromPartial({}),
|
|
180
|
-
delayPeriod: BigInt(0),
|
|
181
|
-
counterpartyVersions: [],
|
|
182
|
-
proofHeight: Height.fromPartial({}),
|
|
183
|
-
proofInit: new Uint8Array(),
|
|
184
|
-
proofClient: new Uint8Array(),
|
|
185
|
-
proofConsensus: new Uint8Array(),
|
|
186
|
-
consensusHeight: Height.fromPartial({}),
|
|
187
|
-
signer: '',
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
export const MsgConnectionOpenTry = {
|
|
191
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenTry',
|
|
192
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
193
|
-
if (message.clientId !== '') {
|
|
194
|
-
writer.uint32(10).string(message.clientId);
|
|
195
|
-
}
|
|
196
|
-
if (message.previousConnectionId !== '') {
|
|
197
|
-
writer.uint32(18).string(message.previousConnectionId);
|
|
198
|
-
}
|
|
199
|
-
if (message.clientState !== undefined) {
|
|
200
|
-
Any.encode(message.clientState, writer.uint32(26).fork()).ldelim();
|
|
201
|
-
}
|
|
202
|
-
if (message.counterparty !== undefined) {
|
|
203
|
-
Counterparty.encode(message.counterparty, writer.uint32(34).fork()).ldelim();
|
|
204
|
-
}
|
|
205
|
-
if (message.delayPeriod !== BigInt(0)) {
|
|
206
|
-
writer.uint32(40).uint64(message.delayPeriod);
|
|
207
|
-
}
|
|
208
|
-
for (const v of message.counterpartyVersions) {
|
|
209
|
-
Version.encode(v, writer.uint32(50).fork()).ldelim();
|
|
210
|
-
}
|
|
211
|
-
if (message.proofHeight !== undefined) {
|
|
212
|
-
Height.encode(message.proofHeight, writer.uint32(58).fork()).ldelim();
|
|
213
|
-
}
|
|
214
|
-
if (message.proofInit.length !== 0) {
|
|
215
|
-
writer.uint32(66).bytes(message.proofInit);
|
|
216
|
-
}
|
|
217
|
-
if (message.proofClient.length !== 0) {
|
|
218
|
-
writer.uint32(74).bytes(message.proofClient);
|
|
219
|
-
}
|
|
220
|
-
if (message.proofConsensus.length !== 0) {
|
|
221
|
-
writer.uint32(82).bytes(message.proofConsensus);
|
|
222
|
-
}
|
|
223
|
-
if (message.consensusHeight !== undefined) {
|
|
224
|
-
Height.encode(message.consensusHeight, writer.uint32(90).fork()).ldelim();
|
|
225
|
-
}
|
|
226
|
-
if (message.signer !== '') {
|
|
227
|
-
writer.uint32(98).string(message.signer);
|
|
228
|
-
}
|
|
229
|
-
return writer;
|
|
230
|
-
},
|
|
231
|
-
decode(input, length) {
|
|
232
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
233
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
234
|
-
const message = createBaseMsgConnectionOpenTry();
|
|
235
|
-
while (reader.pos < end) {
|
|
236
|
-
const tag = reader.uint32();
|
|
237
|
-
switch (tag >>> 3) {
|
|
238
|
-
case 1:
|
|
239
|
-
message.clientId = reader.string();
|
|
240
|
-
break;
|
|
241
|
-
case 2:
|
|
242
|
-
message.previousConnectionId = reader.string();
|
|
243
|
-
break;
|
|
244
|
-
case 3:
|
|
245
|
-
message.clientState = Any.decode(reader, reader.uint32());
|
|
246
|
-
break;
|
|
247
|
-
case 4:
|
|
248
|
-
message.counterparty = Counterparty.decode(reader, reader.uint32());
|
|
249
|
-
break;
|
|
250
|
-
case 5:
|
|
251
|
-
message.delayPeriod = reader.uint64();
|
|
252
|
-
break;
|
|
253
|
-
case 6:
|
|
254
|
-
message.counterpartyVersions.push(Version.decode(reader, reader.uint32()));
|
|
255
|
-
break;
|
|
256
|
-
case 7:
|
|
257
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
258
|
-
break;
|
|
259
|
-
case 8:
|
|
260
|
-
message.proofInit = reader.bytes();
|
|
261
|
-
break;
|
|
262
|
-
case 9:
|
|
263
|
-
message.proofClient = reader.bytes();
|
|
264
|
-
break;
|
|
265
|
-
case 10:
|
|
266
|
-
message.proofConsensus = reader.bytes();
|
|
267
|
-
break;
|
|
268
|
-
case 11:
|
|
269
|
-
message.consensusHeight = Height.decode(reader, reader.uint32());
|
|
270
|
-
break;
|
|
271
|
-
case 12:
|
|
272
|
-
message.signer = reader.string();
|
|
273
|
-
break;
|
|
274
|
-
default:
|
|
275
|
-
reader.skipType(tag & 7);
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
return message;
|
|
280
|
-
},
|
|
281
|
-
fromJSON(object) {
|
|
282
|
-
return {
|
|
283
|
-
clientId: isSet(object.clientId) ? String(object.clientId) : '',
|
|
284
|
-
previousConnectionId: isSet(object.previousConnectionId)
|
|
285
|
-
? String(object.previousConnectionId)
|
|
286
|
-
: '',
|
|
287
|
-
clientState: isSet(object.clientState)
|
|
288
|
-
? Any.fromJSON(object.clientState)
|
|
289
|
-
: undefined,
|
|
290
|
-
counterparty: isSet(object.counterparty)
|
|
291
|
-
? Counterparty.fromJSON(object.counterparty)
|
|
292
|
-
: undefined,
|
|
293
|
-
delayPeriod: isSet(object.delayPeriod)
|
|
294
|
-
? BigInt(object.delayPeriod.toString())
|
|
295
|
-
: BigInt(0),
|
|
296
|
-
counterpartyVersions: Array.isArray(object?.counterpartyVersions)
|
|
297
|
-
? object.counterpartyVersions.map((e) => Version.fromJSON(e))
|
|
298
|
-
: [],
|
|
299
|
-
proofHeight: isSet(object.proofHeight)
|
|
300
|
-
? Height.fromJSON(object.proofHeight)
|
|
301
|
-
: undefined,
|
|
302
|
-
proofInit: isSet(object.proofInit)
|
|
303
|
-
? bytesFromBase64(object.proofInit)
|
|
304
|
-
: new Uint8Array(),
|
|
305
|
-
proofClient: isSet(object.proofClient)
|
|
306
|
-
? bytesFromBase64(object.proofClient)
|
|
307
|
-
: new Uint8Array(),
|
|
308
|
-
proofConsensus: isSet(object.proofConsensus)
|
|
309
|
-
? bytesFromBase64(object.proofConsensus)
|
|
310
|
-
: new Uint8Array(),
|
|
311
|
-
consensusHeight: isSet(object.consensusHeight)
|
|
312
|
-
? Height.fromJSON(object.consensusHeight)
|
|
313
|
-
: undefined,
|
|
314
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
315
|
-
};
|
|
316
|
-
},
|
|
317
|
-
toJSON(message) {
|
|
318
|
-
const obj = {};
|
|
319
|
-
message.clientId !== undefined && (obj.clientId = message.clientId);
|
|
320
|
-
message.previousConnectionId !== undefined &&
|
|
321
|
-
(obj.previousConnectionId = message.previousConnectionId);
|
|
322
|
-
message.clientState !== undefined &&
|
|
323
|
-
(obj.clientState = message.clientState
|
|
324
|
-
? Any.toJSON(message.clientState)
|
|
325
|
-
: undefined);
|
|
326
|
-
message.counterparty !== undefined &&
|
|
327
|
-
(obj.counterparty = message.counterparty
|
|
328
|
-
? Counterparty.toJSON(message.counterparty)
|
|
329
|
-
: undefined);
|
|
330
|
-
message.delayPeriod !== undefined &&
|
|
331
|
-
(obj.delayPeriod = (message.delayPeriod || BigInt(0)).toString());
|
|
332
|
-
if (message.counterpartyVersions) {
|
|
333
|
-
obj.counterpartyVersions = message.counterpartyVersions.map(e => e ? Version.toJSON(e) : undefined);
|
|
334
|
-
}
|
|
335
|
-
else {
|
|
336
|
-
obj.counterpartyVersions = [];
|
|
337
|
-
}
|
|
338
|
-
message.proofHeight !== undefined &&
|
|
339
|
-
(obj.proofHeight = message.proofHeight
|
|
340
|
-
? Height.toJSON(message.proofHeight)
|
|
341
|
-
: undefined);
|
|
342
|
-
message.proofInit !== undefined &&
|
|
343
|
-
(obj.proofInit = base64FromBytes(message.proofInit !== undefined ? message.proofInit : new Uint8Array()));
|
|
344
|
-
message.proofClient !== undefined &&
|
|
345
|
-
(obj.proofClient = base64FromBytes(message.proofClient !== undefined
|
|
346
|
-
? message.proofClient
|
|
347
|
-
: new Uint8Array()));
|
|
348
|
-
message.proofConsensus !== undefined &&
|
|
349
|
-
(obj.proofConsensus = base64FromBytes(message.proofConsensus !== undefined
|
|
350
|
-
? message.proofConsensus
|
|
351
|
-
: new Uint8Array()));
|
|
352
|
-
message.consensusHeight !== undefined &&
|
|
353
|
-
(obj.consensusHeight = message.consensusHeight
|
|
354
|
-
? Height.toJSON(message.consensusHeight)
|
|
355
|
-
: undefined);
|
|
356
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
357
|
-
return obj;
|
|
358
|
-
},
|
|
359
|
-
fromPartial(object) {
|
|
360
|
-
const message = createBaseMsgConnectionOpenTry();
|
|
361
|
-
message.clientId = object.clientId ?? '';
|
|
362
|
-
message.previousConnectionId = object.previousConnectionId ?? '';
|
|
363
|
-
message.clientState =
|
|
364
|
-
object.clientState !== undefined && object.clientState !== null
|
|
365
|
-
? Any.fromPartial(object.clientState)
|
|
366
|
-
: undefined;
|
|
367
|
-
message.counterparty =
|
|
368
|
-
object.counterparty !== undefined && object.counterparty !== null
|
|
369
|
-
? Counterparty.fromPartial(object.counterparty)
|
|
370
|
-
: undefined;
|
|
371
|
-
message.delayPeriod =
|
|
372
|
-
object.delayPeriod !== undefined && object.delayPeriod !== null
|
|
373
|
-
? BigInt(object.delayPeriod.toString())
|
|
374
|
-
: BigInt(0);
|
|
375
|
-
message.counterpartyVersions =
|
|
376
|
-
object.counterpartyVersions?.map(e => Version.fromPartial(e)) || [];
|
|
377
|
-
message.proofHeight =
|
|
378
|
-
object.proofHeight !== undefined && object.proofHeight !== null
|
|
379
|
-
? Height.fromPartial(object.proofHeight)
|
|
380
|
-
: undefined;
|
|
381
|
-
message.proofInit = object.proofInit ?? new Uint8Array();
|
|
382
|
-
message.proofClient = object.proofClient ?? new Uint8Array();
|
|
383
|
-
message.proofConsensus = object.proofConsensus ?? new Uint8Array();
|
|
384
|
-
message.consensusHeight =
|
|
385
|
-
object.consensusHeight !== undefined && object.consensusHeight !== null
|
|
386
|
-
? Height.fromPartial(object.consensusHeight)
|
|
387
|
-
: undefined;
|
|
388
|
-
message.signer = object.signer ?? '';
|
|
389
|
-
return message;
|
|
390
|
-
},
|
|
391
|
-
fromProtoMsg(message) {
|
|
392
|
-
return MsgConnectionOpenTry.decode(message.value);
|
|
393
|
-
},
|
|
394
|
-
toProto(message) {
|
|
395
|
-
return MsgConnectionOpenTry.encode(message).finish();
|
|
396
|
-
},
|
|
397
|
-
toProtoMsg(message) {
|
|
398
|
-
return {
|
|
399
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenTry',
|
|
400
|
-
value: MsgConnectionOpenTry.encode(message).finish(),
|
|
401
|
-
};
|
|
402
|
-
},
|
|
403
|
-
};
|
|
404
|
-
function createBaseMsgConnectionOpenTryResponse() {
|
|
405
|
-
return {};
|
|
406
|
-
}
|
|
407
|
-
export const MsgConnectionOpenTryResponse = {
|
|
408
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenTryResponse',
|
|
409
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
410
|
-
return writer;
|
|
411
|
-
},
|
|
412
|
-
decode(input, length) {
|
|
413
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
414
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
415
|
-
const message = createBaseMsgConnectionOpenTryResponse();
|
|
416
|
-
while (reader.pos < end) {
|
|
417
|
-
const tag = reader.uint32();
|
|
418
|
-
switch (tag >>> 3) {
|
|
419
|
-
default:
|
|
420
|
-
reader.skipType(tag & 7);
|
|
421
|
-
break;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
return message;
|
|
425
|
-
},
|
|
426
|
-
fromJSON(_) {
|
|
427
|
-
return {};
|
|
428
|
-
},
|
|
429
|
-
toJSON(_) {
|
|
430
|
-
const obj = {};
|
|
431
|
-
return obj;
|
|
432
|
-
},
|
|
433
|
-
fromPartial(_) {
|
|
434
|
-
const message = createBaseMsgConnectionOpenTryResponse();
|
|
435
|
-
return message;
|
|
436
|
-
},
|
|
437
|
-
fromProtoMsg(message) {
|
|
438
|
-
return MsgConnectionOpenTryResponse.decode(message.value);
|
|
439
|
-
},
|
|
440
|
-
toProto(message) {
|
|
441
|
-
return MsgConnectionOpenTryResponse.encode(message).finish();
|
|
442
|
-
},
|
|
443
|
-
toProtoMsg(message) {
|
|
444
|
-
return {
|
|
445
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenTryResponse',
|
|
446
|
-
value: MsgConnectionOpenTryResponse.encode(message).finish(),
|
|
447
|
-
};
|
|
448
|
-
},
|
|
449
|
-
};
|
|
450
|
-
function createBaseMsgConnectionOpenAck() {
|
|
451
|
-
return {
|
|
452
|
-
connectionId: '',
|
|
453
|
-
counterpartyConnectionId: '',
|
|
454
|
-
version: undefined,
|
|
455
|
-
clientState: undefined,
|
|
456
|
-
proofHeight: Height.fromPartial({}),
|
|
457
|
-
proofTry: new Uint8Array(),
|
|
458
|
-
proofClient: new Uint8Array(),
|
|
459
|
-
proofConsensus: new Uint8Array(),
|
|
460
|
-
consensusHeight: Height.fromPartial({}),
|
|
461
|
-
signer: '',
|
|
462
|
-
};
|
|
463
|
-
}
|
|
464
|
-
export const MsgConnectionOpenAck = {
|
|
465
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenAck',
|
|
466
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
467
|
-
if (message.connectionId !== '') {
|
|
468
|
-
writer.uint32(10).string(message.connectionId);
|
|
469
|
-
}
|
|
470
|
-
if (message.counterpartyConnectionId !== '') {
|
|
471
|
-
writer.uint32(18).string(message.counterpartyConnectionId);
|
|
472
|
-
}
|
|
473
|
-
if (message.version !== undefined) {
|
|
474
|
-
Version.encode(message.version, writer.uint32(26).fork()).ldelim();
|
|
475
|
-
}
|
|
476
|
-
if (message.clientState !== undefined) {
|
|
477
|
-
Any.encode(message.clientState, writer.uint32(34).fork()).ldelim();
|
|
478
|
-
}
|
|
479
|
-
if (message.proofHeight !== undefined) {
|
|
480
|
-
Height.encode(message.proofHeight, writer.uint32(42).fork()).ldelim();
|
|
481
|
-
}
|
|
482
|
-
if (message.proofTry.length !== 0) {
|
|
483
|
-
writer.uint32(50).bytes(message.proofTry);
|
|
484
|
-
}
|
|
485
|
-
if (message.proofClient.length !== 0) {
|
|
486
|
-
writer.uint32(58).bytes(message.proofClient);
|
|
487
|
-
}
|
|
488
|
-
if (message.proofConsensus.length !== 0) {
|
|
489
|
-
writer.uint32(66).bytes(message.proofConsensus);
|
|
490
|
-
}
|
|
491
|
-
if (message.consensusHeight !== undefined) {
|
|
492
|
-
Height.encode(message.consensusHeight, writer.uint32(74).fork()).ldelim();
|
|
493
|
-
}
|
|
494
|
-
if (message.signer !== '') {
|
|
495
|
-
writer.uint32(82).string(message.signer);
|
|
496
|
-
}
|
|
497
|
-
return writer;
|
|
498
|
-
},
|
|
499
|
-
decode(input, length) {
|
|
500
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
501
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
502
|
-
const message = createBaseMsgConnectionOpenAck();
|
|
503
|
-
while (reader.pos < end) {
|
|
504
|
-
const tag = reader.uint32();
|
|
505
|
-
switch (tag >>> 3) {
|
|
506
|
-
case 1:
|
|
507
|
-
message.connectionId = reader.string();
|
|
508
|
-
break;
|
|
509
|
-
case 2:
|
|
510
|
-
message.counterpartyConnectionId = reader.string();
|
|
511
|
-
break;
|
|
512
|
-
case 3:
|
|
513
|
-
message.version = Version.decode(reader, reader.uint32());
|
|
514
|
-
break;
|
|
515
|
-
case 4:
|
|
516
|
-
message.clientState = Any.decode(reader, reader.uint32());
|
|
517
|
-
break;
|
|
518
|
-
case 5:
|
|
519
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
520
|
-
break;
|
|
521
|
-
case 6:
|
|
522
|
-
message.proofTry = reader.bytes();
|
|
523
|
-
break;
|
|
524
|
-
case 7:
|
|
525
|
-
message.proofClient = reader.bytes();
|
|
526
|
-
break;
|
|
527
|
-
case 8:
|
|
528
|
-
message.proofConsensus = reader.bytes();
|
|
529
|
-
break;
|
|
530
|
-
case 9:
|
|
531
|
-
message.consensusHeight = Height.decode(reader, reader.uint32());
|
|
532
|
-
break;
|
|
533
|
-
case 10:
|
|
534
|
-
message.signer = reader.string();
|
|
535
|
-
break;
|
|
536
|
-
default:
|
|
537
|
-
reader.skipType(tag & 7);
|
|
538
|
-
break;
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
return message;
|
|
542
|
-
},
|
|
543
|
-
fromJSON(object) {
|
|
544
|
-
return {
|
|
545
|
-
connectionId: isSet(object.connectionId)
|
|
546
|
-
? String(object.connectionId)
|
|
547
|
-
: '',
|
|
548
|
-
counterpartyConnectionId: isSet(object.counterpartyConnectionId)
|
|
549
|
-
? String(object.counterpartyConnectionId)
|
|
550
|
-
: '',
|
|
551
|
-
version: isSet(object.version)
|
|
552
|
-
? Version.fromJSON(object.version)
|
|
553
|
-
: undefined,
|
|
554
|
-
clientState: isSet(object.clientState)
|
|
555
|
-
? Any.fromJSON(object.clientState)
|
|
556
|
-
: undefined,
|
|
557
|
-
proofHeight: isSet(object.proofHeight)
|
|
558
|
-
? Height.fromJSON(object.proofHeight)
|
|
559
|
-
: undefined,
|
|
560
|
-
proofTry: isSet(object.proofTry)
|
|
561
|
-
? bytesFromBase64(object.proofTry)
|
|
562
|
-
: new Uint8Array(),
|
|
563
|
-
proofClient: isSet(object.proofClient)
|
|
564
|
-
? bytesFromBase64(object.proofClient)
|
|
565
|
-
: new Uint8Array(),
|
|
566
|
-
proofConsensus: isSet(object.proofConsensus)
|
|
567
|
-
? bytesFromBase64(object.proofConsensus)
|
|
568
|
-
: new Uint8Array(),
|
|
569
|
-
consensusHeight: isSet(object.consensusHeight)
|
|
570
|
-
? Height.fromJSON(object.consensusHeight)
|
|
571
|
-
: undefined,
|
|
572
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
573
|
-
};
|
|
574
|
-
},
|
|
575
|
-
toJSON(message) {
|
|
576
|
-
const obj = {};
|
|
577
|
-
message.connectionId !== undefined &&
|
|
578
|
-
(obj.connectionId = message.connectionId);
|
|
579
|
-
message.counterpartyConnectionId !== undefined &&
|
|
580
|
-
(obj.counterpartyConnectionId = message.counterpartyConnectionId);
|
|
581
|
-
message.version !== undefined &&
|
|
582
|
-
(obj.version = message.version
|
|
583
|
-
? Version.toJSON(message.version)
|
|
584
|
-
: undefined);
|
|
585
|
-
message.clientState !== undefined &&
|
|
586
|
-
(obj.clientState = message.clientState
|
|
587
|
-
? Any.toJSON(message.clientState)
|
|
588
|
-
: undefined);
|
|
589
|
-
message.proofHeight !== undefined &&
|
|
590
|
-
(obj.proofHeight = message.proofHeight
|
|
591
|
-
? Height.toJSON(message.proofHeight)
|
|
592
|
-
: undefined);
|
|
593
|
-
message.proofTry !== undefined &&
|
|
594
|
-
(obj.proofTry = base64FromBytes(message.proofTry !== undefined ? message.proofTry : new Uint8Array()));
|
|
595
|
-
message.proofClient !== undefined &&
|
|
596
|
-
(obj.proofClient = base64FromBytes(message.proofClient !== undefined
|
|
597
|
-
? message.proofClient
|
|
598
|
-
: new Uint8Array()));
|
|
599
|
-
message.proofConsensus !== undefined &&
|
|
600
|
-
(obj.proofConsensus = base64FromBytes(message.proofConsensus !== undefined
|
|
601
|
-
? message.proofConsensus
|
|
602
|
-
: new Uint8Array()));
|
|
603
|
-
message.consensusHeight !== undefined &&
|
|
604
|
-
(obj.consensusHeight = message.consensusHeight
|
|
605
|
-
? Height.toJSON(message.consensusHeight)
|
|
606
|
-
: undefined);
|
|
607
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
608
|
-
return obj;
|
|
609
|
-
},
|
|
610
|
-
fromPartial(object) {
|
|
611
|
-
const message = createBaseMsgConnectionOpenAck();
|
|
612
|
-
message.connectionId = object.connectionId ?? '';
|
|
613
|
-
message.counterpartyConnectionId = object.counterpartyConnectionId ?? '';
|
|
614
|
-
message.version =
|
|
615
|
-
object.version !== undefined && object.version !== null
|
|
616
|
-
? Version.fromPartial(object.version)
|
|
617
|
-
: undefined;
|
|
618
|
-
message.clientState =
|
|
619
|
-
object.clientState !== undefined && object.clientState !== null
|
|
620
|
-
? Any.fromPartial(object.clientState)
|
|
621
|
-
: undefined;
|
|
622
|
-
message.proofHeight =
|
|
623
|
-
object.proofHeight !== undefined && object.proofHeight !== null
|
|
624
|
-
? Height.fromPartial(object.proofHeight)
|
|
625
|
-
: undefined;
|
|
626
|
-
message.proofTry = object.proofTry ?? new Uint8Array();
|
|
627
|
-
message.proofClient = object.proofClient ?? new Uint8Array();
|
|
628
|
-
message.proofConsensus = object.proofConsensus ?? new Uint8Array();
|
|
629
|
-
message.consensusHeight =
|
|
630
|
-
object.consensusHeight !== undefined && object.consensusHeight !== null
|
|
631
|
-
? Height.fromPartial(object.consensusHeight)
|
|
632
|
-
: undefined;
|
|
633
|
-
message.signer = object.signer ?? '';
|
|
634
|
-
return message;
|
|
635
|
-
},
|
|
636
|
-
fromProtoMsg(message) {
|
|
637
|
-
return MsgConnectionOpenAck.decode(message.value);
|
|
638
|
-
},
|
|
639
|
-
toProto(message) {
|
|
640
|
-
return MsgConnectionOpenAck.encode(message).finish();
|
|
641
|
-
},
|
|
642
|
-
toProtoMsg(message) {
|
|
643
|
-
return {
|
|
644
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenAck',
|
|
645
|
-
value: MsgConnectionOpenAck.encode(message).finish(),
|
|
646
|
-
};
|
|
647
|
-
},
|
|
648
|
-
};
|
|
649
|
-
function createBaseMsgConnectionOpenAckResponse() {
|
|
650
|
-
return {};
|
|
651
|
-
}
|
|
652
|
-
export const MsgConnectionOpenAckResponse = {
|
|
653
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenAckResponse',
|
|
654
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
655
|
-
return writer;
|
|
656
|
-
},
|
|
657
|
-
decode(input, length) {
|
|
658
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
659
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
660
|
-
const message = createBaseMsgConnectionOpenAckResponse();
|
|
661
|
-
while (reader.pos < end) {
|
|
662
|
-
const tag = reader.uint32();
|
|
663
|
-
switch (tag >>> 3) {
|
|
664
|
-
default:
|
|
665
|
-
reader.skipType(tag & 7);
|
|
666
|
-
break;
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
return message;
|
|
670
|
-
},
|
|
671
|
-
fromJSON(_) {
|
|
672
|
-
return {};
|
|
673
|
-
},
|
|
674
|
-
toJSON(_) {
|
|
675
|
-
const obj = {};
|
|
676
|
-
return obj;
|
|
677
|
-
},
|
|
678
|
-
fromPartial(_) {
|
|
679
|
-
const message = createBaseMsgConnectionOpenAckResponse();
|
|
680
|
-
return message;
|
|
681
|
-
},
|
|
682
|
-
fromProtoMsg(message) {
|
|
683
|
-
return MsgConnectionOpenAckResponse.decode(message.value);
|
|
684
|
-
},
|
|
685
|
-
toProto(message) {
|
|
686
|
-
return MsgConnectionOpenAckResponse.encode(message).finish();
|
|
687
|
-
},
|
|
688
|
-
toProtoMsg(message) {
|
|
689
|
-
return {
|
|
690
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenAckResponse',
|
|
691
|
-
value: MsgConnectionOpenAckResponse.encode(message).finish(),
|
|
692
|
-
};
|
|
693
|
-
},
|
|
694
|
-
};
|
|
695
|
-
function createBaseMsgConnectionOpenConfirm() {
|
|
696
|
-
return {
|
|
697
|
-
connectionId: '',
|
|
698
|
-
proofAck: new Uint8Array(),
|
|
699
|
-
proofHeight: Height.fromPartial({}),
|
|
700
|
-
signer: '',
|
|
701
|
-
};
|
|
702
|
-
}
|
|
703
|
-
export const MsgConnectionOpenConfirm = {
|
|
704
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenConfirm',
|
|
705
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
706
|
-
if (message.connectionId !== '') {
|
|
707
|
-
writer.uint32(10).string(message.connectionId);
|
|
708
|
-
}
|
|
709
|
-
if (message.proofAck.length !== 0) {
|
|
710
|
-
writer.uint32(18).bytes(message.proofAck);
|
|
711
|
-
}
|
|
712
|
-
if (message.proofHeight !== undefined) {
|
|
713
|
-
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
714
|
-
}
|
|
715
|
-
if (message.signer !== '') {
|
|
716
|
-
writer.uint32(34).string(message.signer);
|
|
717
|
-
}
|
|
718
|
-
return writer;
|
|
719
|
-
},
|
|
720
|
-
decode(input, length) {
|
|
721
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
722
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
723
|
-
const message = createBaseMsgConnectionOpenConfirm();
|
|
724
|
-
while (reader.pos < end) {
|
|
725
|
-
const tag = reader.uint32();
|
|
726
|
-
switch (tag >>> 3) {
|
|
727
|
-
case 1:
|
|
728
|
-
message.connectionId = reader.string();
|
|
729
|
-
break;
|
|
730
|
-
case 2:
|
|
731
|
-
message.proofAck = reader.bytes();
|
|
732
|
-
break;
|
|
733
|
-
case 3:
|
|
734
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
735
|
-
break;
|
|
736
|
-
case 4:
|
|
737
|
-
message.signer = reader.string();
|
|
738
|
-
break;
|
|
739
|
-
default:
|
|
740
|
-
reader.skipType(tag & 7);
|
|
741
|
-
break;
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
return message;
|
|
745
|
-
},
|
|
746
|
-
fromJSON(object) {
|
|
747
|
-
return {
|
|
748
|
-
connectionId: isSet(object.connectionId)
|
|
749
|
-
? String(object.connectionId)
|
|
750
|
-
: '',
|
|
751
|
-
proofAck: isSet(object.proofAck)
|
|
752
|
-
? bytesFromBase64(object.proofAck)
|
|
753
|
-
: new Uint8Array(),
|
|
754
|
-
proofHeight: isSet(object.proofHeight)
|
|
755
|
-
? Height.fromJSON(object.proofHeight)
|
|
756
|
-
: undefined,
|
|
757
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
758
|
-
};
|
|
759
|
-
},
|
|
760
|
-
toJSON(message) {
|
|
761
|
-
const obj = {};
|
|
762
|
-
message.connectionId !== undefined &&
|
|
763
|
-
(obj.connectionId = message.connectionId);
|
|
764
|
-
message.proofAck !== undefined &&
|
|
765
|
-
(obj.proofAck = base64FromBytes(message.proofAck !== undefined ? message.proofAck : new Uint8Array()));
|
|
766
|
-
message.proofHeight !== undefined &&
|
|
767
|
-
(obj.proofHeight = message.proofHeight
|
|
768
|
-
? Height.toJSON(message.proofHeight)
|
|
769
|
-
: undefined);
|
|
770
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
771
|
-
return obj;
|
|
772
|
-
},
|
|
773
|
-
fromPartial(object) {
|
|
774
|
-
const message = createBaseMsgConnectionOpenConfirm();
|
|
775
|
-
message.connectionId = object.connectionId ?? '';
|
|
776
|
-
message.proofAck = object.proofAck ?? new Uint8Array();
|
|
777
|
-
message.proofHeight =
|
|
778
|
-
object.proofHeight !== undefined && object.proofHeight !== null
|
|
779
|
-
? Height.fromPartial(object.proofHeight)
|
|
780
|
-
: undefined;
|
|
781
|
-
message.signer = object.signer ?? '';
|
|
782
|
-
return message;
|
|
783
|
-
},
|
|
784
|
-
fromProtoMsg(message) {
|
|
785
|
-
return MsgConnectionOpenConfirm.decode(message.value);
|
|
786
|
-
},
|
|
787
|
-
toProto(message) {
|
|
788
|
-
return MsgConnectionOpenConfirm.encode(message).finish();
|
|
789
|
-
},
|
|
790
|
-
toProtoMsg(message) {
|
|
791
|
-
return {
|
|
792
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenConfirm',
|
|
793
|
-
value: MsgConnectionOpenConfirm.encode(message).finish(),
|
|
794
|
-
};
|
|
795
|
-
},
|
|
796
|
-
};
|
|
797
|
-
function createBaseMsgConnectionOpenConfirmResponse() {
|
|
798
|
-
return {};
|
|
799
|
-
}
|
|
800
|
-
export const MsgConnectionOpenConfirmResponse = {
|
|
801
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse',
|
|
802
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
803
|
-
return writer;
|
|
804
|
-
},
|
|
805
|
-
decode(input, length) {
|
|
806
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
807
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
808
|
-
const message = createBaseMsgConnectionOpenConfirmResponse();
|
|
809
|
-
while (reader.pos < end) {
|
|
810
|
-
const tag = reader.uint32();
|
|
811
|
-
switch (tag >>> 3) {
|
|
812
|
-
default:
|
|
813
|
-
reader.skipType(tag & 7);
|
|
814
|
-
break;
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
return message;
|
|
818
|
-
},
|
|
819
|
-
fromJSON(_) {
|
|
820
|
-
return {};
|
|
821
|
-
},
|
|
822
|
-
toJSON(_) {
|
|
823
|
-
const obj = {};
|
|
824
|
-
return obj;
|
|
825
|
-
},
|
|
826
|
-
fromPartial(_) {
|
|
827
|
-
const message = createBaseMsgConnectionOpenConfirmResponse();
|
|
828
|
-
return message;
|
|
829
|
-
},
|
|
830
|
-
fromProtoMsg(message) {
|
|
831
|
-
return MsgConnectionOpenConfirmResponse.decode(message.value);
|
|
832
|
-
},
|
|
833
|
-
toProto(message) {
|
|
834
|
-
return MsgConnectionOpenConfirmResponse.encode(message).finish();
|
|
835
|
-
},
|
|
836
|
-
toProtoMsg(message) {
|
|
837
|
-
return {
|
|
838
|
-
typeUrl: '/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse',
|
|
839
|
-
value: MsgConnectionOpenConfirmResponse.encode(message).finish(),
|
|
840
|
-
};
|
|
841
|
-
},
|
|
842
|
-
};
|
|
843
|
-
//# sourceMappingURL=tx.js.map
|
|
1
|
+
import{Counterparty as o,Version as n}from"./connection.js";import{Any as e}from"../../../../google/protobuf/any.js";import{Height as t}from"../../client/v1/client.js";import{BinaryReader as i,BinaryWriter as r}from"../../../../binary.js";import{isSet as s,bytesFromBase64 as c,base64FromBytes as d}from"../../../../helpers.js";import{}from"../../../../json-safe.js";function p(){return{clientId:"",counterparty:o.fromPartial({}),version:void 0,delayPeriod:BigInt(0),signer:""}}export const MsgConnectionOpenInit={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenInit",encode:(e,t=r.create())=>(""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.counterparty&&o.encode(e.counterparty,t.uint32(18).fork()).ldelim(),void 0!==e.version&&n.encode(e.version,t.uint32(26).fork()).ldelim(),e.delayPeriod!==BigInt(0)&&t.uint32(32).uint64(e.delayPeriod),""!==e.signer&&t.uint32(42).string(e.signer),t),decode(e,t){const r=e instanceof i?e:new i(e);let s=void 0===t?r.len:r.pos+t;const c=p();for(;r.pos<s;){const e=r.uint32();switch(e>>>3){case 1:c.clientId=r.string();break;case 2:c.counterparty=o.decode(r,r.uint32());break;case 3:c.version=n.decode(r,r.uint32());break;case 4:c.delayPeriod=r.uint64();break;case 5:c.signer=r.string();break;default:r.skipType(7&e)}}return c},fromJSON:e=>({clientId:s(e.clientId)?String(e.clientId):"",counterparty:s(e.counterparty)?o.fromJSON(e.counterparty):void 0,version:s(e.version)?n.fromJSON(e.version):void 0,delayPeriod:s(e.delayPeriod)?BigInt(e.delayPeriod.toString()):BigInt(0),signer:s(e.signer)?String(e.signer):""}),toJSON(e){const t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.counterparty&&(t.counterparty=e.counterparty?o.toJSON(e.counterparty):void 0),void 0!==e.version&&(t.version=e.version?n.toJSON(e.version):void 0),void 0!==e.delayPeriod&&(t.delayPeriod=(e.delayPeriod||BigInt(0)).toString()),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial(e){const t=p();return t.clientId=e.clientId??"",t.counterparty=void 0!==e.counterparty&&null!==e.counterparty?o.fromPartial(e.counterparty):void 0,t.version=void 0!==e.version&&null!==e.version?n.fromPartial(e.version):void 0,t.delayPeriod=void 0!==e.delayPeriod&&null!==e.delayPeriod?BigInt(e.delayPeriod.toString()):BigInt(0),t.signer=e.signer??"",t},fromProtoMsg:o=>MsgConnectionOpenInit.decode(o.value),toProto:o=>MsgConnectionOpenInit.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenInit",value:MsgConnectionOpenInit.encode(o).finish()})};export const MsgConnectionOpenInitResponse={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenInitResponse",encode:(o,n=r.create())=>n,decode(o,n){const e=o instanceof i?o:new i(o);let t=void 0===n?e.len:e.pos+n;const r={};for(;e.pos<t;){const o=e.uint32();e.skipType(7&o)}return r},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgConnectionOpenInitResponse.decode(o.value),toProto:o=>MsgConnectionOpenInitResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenInitResponse",value:MsgConnectionOpenInitResponse.encode(o).finish()})};function a(){return{clientId:"",previousConnectionId:"",clientState:void 0,counterparty:o.fromPartial({}),delayPeriod:BigInt(0),counterpartyVersions:[],proofHeight:t.fromPartial({}),proofInit:new Uint8Array,proofClient:new Uint8Array,proofConsensus:new Uint8Array,consensusHeight:t.fromPartial({}),signer:""}}export const MsgConnectionOpenTry={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenTry",encode(i,s=r.create()){""!==i.clientId&&s.uint32(10).string(i.clientId),""!==i.previousConnectionId&&s.uint32(18).string(i.previousConnectionId),void 0!==i.clientState&&e.encode(i.clientState,s.uint32(26).fork()).ldelim(),void 0!==i.counterparty&&o.encode(i.counterparty,s.uint32(34).fork()).ldelim(),i.delayPeriod!==BigInt(0)&&s.uint32(40).uint64(i.delayPeriod);for(const o of i.counterpartyVersions)n.encode(o,s.uint32(50).fork()).ldelim();return void 0!==i.proofHeight&&t.encode(i.proofHeight,s.uint32(58).fork()).ldelim(),0!==i.proofInit.length&&s.uint32(66).bytes(i.proofInit),0!==i.proofClient.length&&s.uint32(74).bytes(i.proofClient),0!==i.proofConsensus.length&&s.uint32(82).bytes(i.proofConsensus),void 0!==i.consensusHeight&&t.encode(i.consensusHeight,s.uint32(90).fork()).ldelim(),""!==i.signer&&s.uint32(98).string(i.signer),s},decode(r,s){const c=r instanceof i?r:new i(r);let d=void 0===s?c.len:c.pos+s;const p=a();for(;c.pos<d;){const i=c.uint32();switch(i>>>3){case 1:p.clientId=c.string();break;case 2:p.previousConnectionId=c.string();break;case 3:p.clientState=e.decode(c,c.uint32());break;case 4:p.counterparty=o.decode(c,c.uint32());break;case 5:p.delayPeriod=c.uint64();break;case 6:p.counterpartyVersions.push(n.decode(c,c.uint32()));break;case 7:p.proofHeight=t.decode(c,c.uint32());break;case 8:p.proofInit=c.bytes();break;case 9:p.proofClient=c.bytes();break;case 10:p.proofConsensus=c.bytes();break;case 11:p.consensusHeight=t.decode(c,c.uint32());break;case 12:p.signer=c.string();break;default:c.skipType(7&i)}}return p},fromJSON:i=>({clientId:s(i.clientId)?String(i.clientId):"",previousConnectionId:s(i.previousConnectionId)?String(i.previousConnectionId):"",clientState:s(i.clientState)?e.fromJSON(i.clientState):void 0,counterparty:s(i.counterparty)?o.fromJSON(i.counterparty):void 0,delayPeriod:s(i.delayPeriod)?BigInt(i.delayPeriod.toString()):BigInt(0),counterpartyVersions:Array.isArray(i?.counterpartyVersions)?i.counterpartyVersions.map((o=>n.fromJSON(o))):[],proofHeight:s(i.proofHeight)?t.fromJSON(i.proofHeight):void 0,proofInit:s(i.proofInit)?c(i.proofInit):new Uint8Array,proofClient:s(i.proofClient)?c(i.proofClient):new Uint8Array,proofConsensus:s(i.proofConsensus)?c(i.proofConsensus):new Uint8Array,consensusHeight:s(i.consensusHeight)?t.fromJSON(i.consensusHeight):void 0,signer:s(i.signer)?String(i.signer):""}),toJSON(i){const r={};return void 0!==i.clientId&&(r.clientId=i.clientId),void 0!==i.previousConnectionId&&(r.previousConnectionId=i.previousConnectionId),void 0!==i.clientState&&(r.clientState=i.clientState?e.toJSON(i.clientState):void 0),void 0!==i.counterparty&&(r.counterparty=i.counterparty?o.toJSON(i.counterparty):void 0),void 0!==i.delayPeriod&&(r.delayPeriod=(i.delayPeriod||BigInt(0)).toString()),i.counterpartyVersions?r.counterpartyVersions=i.counterpartyVersions.map((o=>o?n.toJSON(o):void 0)):r.counterpartyVersions=[],void 0!==i.proofHeight&&(r.proofHeight=i.proofHeight?t.toJSON(i.proofHeight):void 0),void 0!==i.proofInit&&(r.proofInit=d(void 0!==i.proofInit?i.proofInit:new Uint8Array)),void 0!==i.proofClient&&(r.proofClient=d(void 0!==i.proofClient?i.proofClient:new Uint8Array)),void 0!==i.proofConsensus&&(r.proofConsensus=d(void 0!==i.proofConsensus?i.proofConsensus:new Uint8Array)),void 0!==i.consensusHeight&&(r.consensusHeight=i.consensusHeight?t.toJSON(i.consensusHeight):void 0),void 0!==i.signer&&(r.signer=i.signer),r},fromPartial(i){const r=a();return r.clientId=i.clientId??"",r.previousConnectionId=i.previousConnectionId??"",r.clientState=void 0!==i.clientState&&null!==i.clientState?e.fromPartial(i.clientState):void 0,r.counterparty=void 0!==i.counterparty&&null!==i.counterparty?o.fromPartial(i.counterparty):void 0,r.delayPeriod=void 0!==i.delayPeriod&&null!==i.delayPeriod?BigInt(i.delayPeriod.toString()):BigInt(0),r.counterpartyVersions=i.counterpartyVersions?.map((o=>n.fromPartial(o)))||[],r.proofHeight=void 0!==i.proofHeight&&null!==i.proofHeight?t.fromPartial(i.proofHeight):void 0,r.proofInit=i.proofInit??new Uint8Array,r.proofClient=i.proofClient??new Uint8Array,r.proofConsensus=i.proofConsensus??new Uint8Array,r.consensusHeight=void 0!==i.consensusHeight&&null!==i.consensusHeight?t.fromPartial(i.consensusHeight):void 0,r.signer=i.signer??"",r},fromProtoMsg:o=>MsgConnectionOpenTry.decode(o.value),toProto:o=>MsgConnectionOpenTry.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenTry",value:MsgConnectionOpenTry.encode(o).finish()})};export const MsgConnectionOpenTryResponse={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenTryResponse",encode:(o,n=r.create())=>n,decode(o,n){const e=o instanceof i?o:new i(o);let t=void 0===n?e.len:e.pos+n;const r={};for(;e.pos<t;){const o=e.uint32();e.skipType(7&o)}return r},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgConnectionOpenTryResponse.decode(o.value),toProto:o=>MsgConnectionOpenTryResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenTryResponse",value:MsgConnectionOpenTryResponse.encode(o).finish()})};function f(){return{connectionId:"",counterpartyConnectionId:"",version:void 0,clientState:void 0,proofHeight:t.fromPartial({}),proofTry:new Uint8Array,proofClient:new Uint8Array,proofConsensus:new Uint8Array,consensusHeight:t.fromPartial({}),signer:""}}export const MsgConnectionOpenAck={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenAck",encode:(o,i=r.create())=>(""!==o.connectionId&&i.uint32(10).string(o.connectionId),""!==o.counterpartyConnectionId&&i.uint32(18).string(o.counterpartyConnectionId),void 0!==o.version&&n.encode(o.version,i.uint32(26).fork()).ldelim(),void 0!==o.clientState&&e.encode(o.clientState,i.uint32(34).fork()).ldelim(),void 0!==o.proofHeight&&t.encode(o.proofHeight,i.uint32(42).fork()).ldelim(),0!==o.proofTry.length&&i.uint32(50).bytes(o.proofTry),0!==o.proofClient.length&&i.uint32(58).bytes(o.proofClient),0!==o.proofConsensus.length&&i.uint32(66).bytes(o.proofConsensus),void 0!==o.consensusHeight&&t.encode(o.consensusHeight,i.uint32(74).fork()).ldelim(),""!==o.signer&&i.uint32(82).string(o.signer),i),decode(o,r){const s=o instanceof i?o:new i(o);let c=void 0===r?s.len:s.pos+r;const d=f();for(;s.pos<c;){const o=s.uint32();switch(o>>>3){case 1:d.connectionId=s.string();break;case 2:d.counterpartyConnectionId=s.string();break;case 3:d.version=n.decode(s,s.uint32());break;case 4:d.clientState=e.decode(s,s.uint32());break;case 5:d.proofHeight=t.decode(s,s.uint32());break;case 6:d.proofTry=s.bytes();break;case 7:d.proofClient=s.bytes();break;case 8:d.proofConsensus=s.bytes();break;case 9:d.consensusHeight=t.decode(s,s.uint32());break;case 10:d.signer=s.string();break;default:s.skipType(7&o)}}return d},fromJSON:o=>({connectionId:s(o.connectionId)?String(o.connectionId):"",counterpartyConnectionId:s(o.counterpartyConnectionId)?String(o.counterpartyConnectionId):"",version:s(o.version)?n.fromJSON(o.version):void 0,clientState:s(o.clientState)?e.fromJSON(o.clientState):void 0,proofHeight:s(o.proofHeight)?t.fromJSON(o.proofHeight):void 0,proofTry:s(o.proofTry)?c(o.proofTry):new Uint8Array,proofClient:s(o.proofClient)?c(o.proofClient):new Uint8Array,proofConsensus:s(o.proofConsensus)?c(o.proofConsensus):new Uint8Array,consensusHeight:s(o.consensusHeight)?t.fromJSON(o.consensusHeight):void 0,signer:s(o.signer)?String(o.signer):""}),toJSON(o){const i={};return void 0!==o.connectionId&&(i.connectionId=o.connectionId),void 0!==o.counterpartyConnectionId&&(i.counterpartyConnectionId=o.counterpartyConnectionId),void 0!==o.version&&(i.version=o.version?n.toJSON(o.version):void 0),void 0!==o.clientState&&(i.clientState=o.clientState?e.toJSON(o.clientState):void 0),void 0!==o.proofHeight&&(i.proofHeight=o.proofHeight?t.toJSON(o.proofHeight):void 0),void 0!==o.proofTry&&(i.proofTry=d(void 0!==o.proofTry?o.proofTry:new Uint8Array)),void 0!==o.proofClient&&(i.proofClient=d(void 0!==o.proofClient?o.proofClient:new Uint8Array)),void 0!==o.proofConsensus&&(i.proofConsensus=d(void 0!==o.proofConsensus?o.proofConsensus:new Uint8Array)),void 0!==o.consensusHeight&&(i.consensusHeight=o.consensusHeight?t.toJSON(o.consensusHeight):void 0),void 0!==o.signer&&(i.signer=o.signer),i},fromPartial(o){const i=f();return i.connectionId=o.connectionId??"",i.counterpartyConnectionId=o.counterpartyConnectionId??"",i.version=void 0!==o.version&&null!==o.version?n.fromPartial(o.version):void 0,i.clientState=void 0!==o.clientState&&null!==o.clientState?e.fromPartial(o.clientState):void 0,i.proofHeight=void 0!==o.proofHeight&&null!==o.proofHeight?t.fromPartial(o.proofHeight):void 0,i.proofTry=o.proofTry??new Uint8Array,i.proofClient=o.proofClient??new Uint8Array,i.proofConsensus=o.proofConsensus??new Uint8Array,i.consensusHeight=void 0!==o.consensusHeight&&null!==o.consensusHeight?t.fromPartial(o.consensusHeight):void 0,i.signer=o.signer??"",i},fromProtoMsg:o=>MsgConnectionOpenAck.decode(o.value),toProto:o=>MsgConnectionOpenAck.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenAck",value:MsgConnectionOpenAck.encode(o).finish()})};export const MsgConnectionOpenAckResponse={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenAckResponse",encode:(o,n=r.create())=>n,decode(o,n){const e=o instanceof i?o:new i(o);let t=void 0===n?e.len:e.pos+n;const r={};for(;e.pos<t;){const o=e.uint32();e.skipType(7&o)}return r},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgConnectionOpenAckResponse.decode(o.value),toProto:o=>MsgConnectionOpenAckResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenAckResponse",value:MsgConnectionOpenAckResponse.encode(o).finish()})};function l(){return{connectionId:"",proofAck:new Uint8Array,proofHeight:t.fromPartial({}),signer:""}}export const MsgConnectionOpenConfirm={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenConfirm",encode:(o,n=r.create())=>(""!==o.connectionId&&n.uint32(10).string(o.connectionId),0!==o.proofAck.length&&n.uint32(18).bytes(o.proofAck),void 0!==o.proofHeight&&t.encode(o.proofHeight,n.uint32(26).fork()).ldelim(),""!==o.signer&&n.uint32(34).string(o.signer),n),decode(o,n){const e=o instanceof i?o:new i(o);let r=void 0===n?e.len:e.pos+n;const s=l();for(;e.pos<r;){const o=e.uint32();switch(o>>>3){case 1:s.connectionId=e.string();break;case 2:s.proofAck=e.bytes();break;case 3:s.proofHeight=t.decode(e,e.uint32());break;case 4:s.signer=e.string();break;default:e.skipType(7&o)}}return s},fromJSON:o=>({connectionId:s(o.connectionId)?String(o.connectionId):"",proofAck:s(o.proofAck)?c(o.proofAck):new Uint8Array,proofHeight:s(o.proofHeight)?t.fromJSON(o.proofHeight):void 0,signer:s(o.signer)?String(o.signer):""}),toJSON(o){const n={};return void 0!==o.connectionId&&(n.connectionId=o.connectionId),void 0!==o.proofAck&&(n.proofAck=d(void 0!==o.proofAck?o.proofAck:new Uint8Array)),void 0!==o.proofHeight&&(n.proofHeight=o.proofHeight?t.toJSON(o.proofHeight):void 0),void 0!==o.signer&&(n.signer=o.signer),n},fromPartial(o){const n=l();return n.connectionId=o.connectionId??"",n.proofAck=o.proofAck??new Uint8Array,n.proofHeight=void 0!==o.proofHeight&&null!==o.proofHeight?t.fromPartial(o.proofHeight):void 0,n.signer=o.signer??"",n},fromProtoMsg:o=>MsgConnectionOpenConfirm.decode(o.value),toProto:o=>MsgConnectionOpenConfirm.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenConfirm",value:MsgConnectionOpenConfirm.encode(o).finish()})};export const MsgConnectionOpenConfirmResponse={typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse",encode:(o,n=r.create())=>n,decode(o,n){const e=o instanceof i?o:new i(o);let t=void 0===n?e.len:e.pos+n;const r={};for(;e.pos<t;){const o=e.uint32();e.skipType(7&o)}return r},fromJSON:o=>({}),toJSON:o=>({}),fromPartial:o=>({}),fromProtoMsg:o=>MsgConnectionOpenConfirmResponse.decode(o.value),toProto:o=>MsgConnectionOpenConfirmResponse.encode(o).finish(),toProtoMsg:o=>({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse",value:MsgConnectionOpenConfirmResponse.encode(o).finish()})};
|