@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,1745 +1 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { Channel, Packet, } from './channel.js';
|
|
3
|
-
import { Height } from '../../client/v1/client.js';
|
|
4
|
-
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
|
|
5
|
-
import { isSet, bytesFromBase64, base64FromBytes, } from '../../../../helpers.js';
|
|
6
|
-
import {} from '../../../../json-safe.js';
|
|
7
|
-
/** ResponseResultType defines the possible outcomes of the execution of a message */
|
|
8
|
-
export var ResponseResultType;
|
|
9
|
-
(function (ResponseResultType) {
|
|
10
|
-
/** RESPONSE_RESULT_TYPE_UNSPECIFIED - Default zero value enumeration */
|
|
11
|
-
ResponseResultType[ResponseResultType["RESPONSE_RESULT_TYPE_UNSPECIFIED"] = 0] = "RESPONSE_RESULT_TYPE_UNSPECIFIED";
|
|
12
|
-
/** RESPONSE_RESULT_TYPE_NOOP - The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) */
|
|
13
|
-
ResponseResultType[ResponseResultType["RESPONSE_RESULT_TYPE_NOOP"] = 1] = "RESPONSE_RESULT_TYPE_NOOP";
|
|
14
|
-
/** RESPONSE_RESULT_TYPE_SUCCESS - The message was executed successfully */
|
|
15
|
-
ResponseResultType[ResponseResultType["RESPONSE_RESULT_TYPE_SUCCESS"] = 2] = "RESPONSE_RESULT_TYPE_SUCCESS";
|
|
16
|
-
ResponseResultType[ResponseResultType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
17
|
-
})(ResponseResultType || (ResponseResultType = {}));
|
|
18
|
-
export const ResponseResultTypeSDKType = ResponseResultType;
|
|
19
|
-
export function responseResultTypeFromJSON(object) {
|
|
20
|
-
switch (object) {
|
|
21
|
-
case 0:
|
|
22
|
-
case 'RESPONSE_RESULT_TYPE_UNSPECIFIED':
|
|
23
|
-
return ResponseResultType.RESPONSE_RESULT_TYPE_UNSPECIFIED;
|
|
24
|
-
case 1:
|
|
25
|
-
case 'RESPONSE_RESULT_TYPE_NOOP':
|
|
26
|
-
return ResponseResultType.RESPONSE_RESULT_TYPE_NOOP;
|
|
27
|
-
case 2:
|
|
28
|
-
case 'RESPONSE_RESULT_TYPE_SUCCESS':
|
|
29
|
-
return ResponseResultType.RESPONSE_RESULT_TYPE_SUCCESS;
|
|
30
|
-
case -1:
|
|
31
|
-
case 'UNRECOGNIZED':
|
|
32
|
-
default:
|
|
33
|
-
return ResponseResultType.UNRECOGNIZED;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
export function responseResultTypeToJSON(object) {
|
|
37
|
-
switch (object) {
|
|
38
|
-
case ResponseResultType.RESPONSE_RESULT_TYPE_UNSPECIFIED:
|
|
39
|
-
return 'RESPONSE_RESULT_TYPE_UNSPECIFIED';
|
|
40
|
-
case ResponseResultType.RESPONSE_RESULT_TYPE_NOOP:
|
|
41
|
-
return 'RESPONSE_RESULT_TYPE_NOOP';
|
|
42
|
-
case ResponseResultType.RESPONSE_RESULT_TYPE_SUCCESS:
|
|
43
|
-
return 'RESPONSE_RESULT_TYPE_SUCCESS';
|
|
44
|
-
case ResponseResultType.UNRECOGNIZED:
|
|
45
|
-
default:
|
|
46
|
-
return 'UNRECOGNIZED';
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function createBaseMsgChannelOpenInit() {
|
|
50
|
-
return {
|
|
51
|
-
portId: '',
|
|
52
|
-
channel: Channel.fromPartial({}),
|
|
53
|
-
signer: '',
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export const MsgChannelOpenInit = {
|
|
57
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenInit',
|
|
58
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
59
|
-
if (message.portId !== '') {
|
|
60
|
-
writer.uint32(10).string(message.portId);
|
|
61
|
-
}
|
|
62
|
-
if (message.channel !== undefined) {
|
|
63
|
-
Channel.encode(message.channel, writer.uint32(18).fork()).ldelim();
|
|
64
|
-
}
|
|
65
|
-
if (message.signer !== '') {
|
|
66
|
-
writer.uint32(26).string(message.signer);
|
|
67
|
-
}
|
|
68
|
-
return writer;
|
|
69
|
-
},
|
|
70
|
-
decode(input, length) {
|
|
71
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
72
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
73
|
-
const message = createBaseMsgChannelOpenInit();
|
|
74
|
-
while (reader.pos < end) {
|
|
75
|
-
const tag = reader.uint32();
|
|
76
|
-
switch (tag >>> 3) {
|
|
77
|
-
case 1:
|
|
78
|
-
message.portId = reader.string();
|
|
79
|
-
break;
|
|
80
|
-
case 2:
|
|
81
|
-
message.channel = Channel.decode(reader, reader.uint32());
|
|
82
|
-
break;
|
|
83
|
-
case 3:
|
|
84
|
-
message.signer = reader.string();
|
|
85
|
-
break;
|
|
86
|
-
default:
|
|
87
|
-
reader.skipType(tag & 7);
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return message;
|
|
92
|
-
},
|
|
93
|
-
fromJSON(object) {
|
|
94
|
-
return {
|
|
95
|
-
portId: isSet(object.portId) ? String(object.portId) : '',
|
|
96
|
-
channel: isSet(object.channel)
|
|
97
|
-
? Channel.fromJSON(object.channel)
|
|
98
|
-
: undefined,
|
|
99
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
100
|
-
};
|
|
101
|
-
},
|
|
102
|
-
toJSON(message) {
|
|
103
|
-
const obj = {};
|
|
104
|
-
message.portId !== undefined && (obj.portId = message.portId);
|
|
105
|
-
message.channel !== undefined &&
|
|
106
|
-
(obj.channel = message.channel
|
|
107
|
-
? Channel.toJSON(message.channel)
|
|
108
|
-
: undefined);
|
|
109
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
110
|
-
return obj;
|
|
111
|
-
},
|
|
112
|
-
fromPartial(object) {
|
|
113
|
-
const message = createBaseMsgChannelOpenInit();
|
|
114
|
-
message.portId = object.portId ?? '';
|
|
115
|
-
message.channel =
|
|
116
|
-
object.channel !== undefined && object.channel !== null
|
|
117
|
-
? Channel.fromPartial(object.channel)
|
|
118
|
-
: undefined;
|
|
119
|
-
message.signer = object.signer ?? '';
|
|
120
|
-
return message;
|
|
121
|
-
},
|
|
122
|
-
fromProtoMsg(message) {
|
|
123
|
-
return MsgChannelOpenInit.decode(message.value);
|
|
124
|
-
},
|
|
125
|
-
toProto(message) {
|
|
126
|
-
return MsgChannelOpenInit.encode(message).finish();
|
|
127
|
-
},
|
|
128
|
-
toProtoMsg(message) {
|
|
129
|
-
return {
|
|
130
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenInit',
|
|
131
|
-
value: MsgChannelOpenInit.encode(message).finish(),
|
|
132
|
-
};
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
|
-
function createBaseMsgChannelOpenInitResponse() {
|
|
136
|
-
return {
|
|
137
|
-
channelId: '',
|
|
138
|
-
version: '',
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
export const MsgChannelOpenInitResponse = {
|
|
142
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenInitResponse',
|
|
143
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
144
|
-
if (message.channelId !== '') {
|
|
145
|
-
writer.uint32(10).string(message.channelId);
|
|
146
|
-
}
|
|
147
|
-
if (message.version !== '') {
|
|
148
|
-
writer.uint32(18).string(message.version);
|
|
149
|
-
}
|
|
150
|
-
return writer;
|
|
151
|
-
},
|
|
152
|
-
decode(input, length) {
|
|
153
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
154
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
155
|
-
const message = createBaseMsgChannelOpenInitResponse();
|
|
156
|
-
while (reader.pos < end) {
|
|
157
|
-
const tag = reader.uint32();
|
|
158
|
-
switch (tag >>> 3) {
|
|
159
|
-
case 1:
|
|
160
|
-
message.channelId = reader.string();
|
|
161
|
-
break;
|
|
162
|
-
case 2:
|
|
163
|
-
message.version = reader.string();
|
|
164
|
-
break;
|
|
165
|
-
default:
|
|
166
|
-
reader.skipType(tag & 7);
|
|
167
|
-
break;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
return message;
|
|
171
|
-
},
|
|
172
|
-
fromJSON(object) {
|
|
173
|
-
return {
|
|
174
|
-
channelId: isSet(object.channelId) ? String(object.channelId) : '',
|
|
175
|
-
version: isSet(object.version) ? String(object.version) : '',
|
|
176
|
-
};
|
|
177
|
-
},
|
|
178
|
-
toJSON(message) {
|
|
179
|
-
const obj = {};
|
|
180
|
-
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
181
|
-
message.version !== undefined && (obj.version = message.version);
|
|
182
|
-
return obj;
|
|
183
|
-
},
|
|
184
|
-
fromPartial(object) {
|
|
185
|
-
const message = createBaseMsgChannelOpenInitResponse();
|
|
186
|
-
message.channelId = object.channelId ?? '';
|
|
187
|
-
message.version = object.version ?? '';
|
|
188
|
-
return message;
|
|
189
|
-
},
|
|
190
|
-
fromProtoMsg(message) {
|
|
191
|
-
return MsgChannelOpenInitResponse.decode(message.value);
|
|
192
|
-
},
|
|
193
|
-
toProto(message) {
|
|
194
|
-
return MsgChannelOpenInitResponse.encode(message).finish();
|
|
195
|
-
},
|
|
196
|
-
toProtoMsg(message) {
|
|
197
|
-
return {
|
|
198
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenInitResponse',
|
|
199
|
-
value: MsgChannelOpenInitResponse.encode(message).finish(),
|
|
200
|
-
};
|
|
201
|
-
},
|
|
202
|
-
};
|
|
203
|
-
function createBaseMsgChannelOpenTry() {
|
|
204
|
-
return {
|
|
205
|
-
portId: '',
|
|
206
|
-
previousChannelId: '',
|
|
207
|
-
channel: Channel.fromPartial({}),
|
|
208
|
-
counterpartyVersion: '',
|
|
209
|
-
proofInit: new Uint8Array(),
|
|
210
|
-
proofHeight: Height.fromPartial({}),
|
|
211
|
-
signer: '',
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
export const MsgChannelOpenTry = {
|
|
215
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenTry',
|
|
216
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
217
|
-
if (message.portId !== '') {
|
|
218
|
-
writer.uint32(10).string(message.portId);
|
|
219
|
-
}
|
|
220
|
-
if (message.previousChannelId !== '') {
|
|
221
|
-
writer.uint32(18).string(message.previousChannelId);
|
|
222
|
-
}
|
|
223
|
-
if (message.channel !== undefined) {
|
|
224
|
-
Channel.encode(message.channel, writer.uint32(26).fork()).ldelim();
|
|
225
|
-
}
|
|
226
|
-
if (message.counterpartyVersion !== '') {
|
|
227
|
-
writer.uint32(34).string(message.counterpartyVersion);
|
|
228
|
-
}
|
|
229
|
-
if (message.proofInit.length !== 0) {
|
|
230
|
-
writer.uint32(42).bytes(message.proofInit);
|
|
231
|
-
}
|
|
232
|
-
if (message.proofHeight !== undefined) {
|
|
233
|
-
Height.encode(message.proofHeight, writer.uint32(50).fork()).ldelim();
|
|
234
|
-
}
|
|
235
|
-
if (message.signer !== '') {
|
|
236
|
-
writer.uint32(58).string(message.signer);
|
|
237
|
-
}
|
|
238
|
-
return writer;
|
|
239
|
-
},
|
|
240
|
-
decode(input, length) {
|
|
241
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
242
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
243
|
-
const message = createBaseMsgChannelOpenTry();
|
|
244
|
-
while (reader.pos < end) {
|
|
245
|
-
const tag = reader.uint32();
|
|
246
|
-
switch (tag >>> 3) {
|
|
247
|
-
case 1:
|
|
248
|
-
message.portId = reader.string();
|
|
249
|
-
break;
|
|
250
|
-
case 2:
|
|
251
|
-
message.previousChannelId = reader.string();
|
|
252
|
-
break;
|
|
253
|
-
case 3:
|
|
254
|
-
message.channel = Channel.decode(reader, reader.uint32());
|
|
255
|
-
break;
|
|
256
|
-
case 4:
|
|
257
|
-
message.counterpartyVersion = reader.string();
|
|
258
|
-
break;
|
|
259
|
-
case 5:
|
|
260
|
-
message.proofInit = reader.bytes();
|
|
261
|
-
break;
|
|
262
|
-
case 6:
|
|
263
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
264
|
-
break;
|
|
265
|
-
case 7:
|
|
266
|
-
message.signer = reader.string();
|
|
267
|
-
break;
|
|
268
|
-
default:
|
|
269
|
-
reader.skipType(tag & 7);
|
|
270
|
-
break;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
return message;
|
|
274
|
-
},
|
|
275
|
-
fromJSON(object) {
|
|
276
|
-
return {
|
|
277
|
-
portId: isSet(object.portId) ? String(object.portId) : '',
|
|
278
|
-
previousChannelId: isSet(object.previousChannelId)
|
|
279
|
-
? String(object.previousChannelId)
|
|
280
|
-
: '',
|
|
281
|
-
channel: isSet(object.channel)
|
|
282
|
-
? Channel.fromJSON(object.channel)
|
|
283
|
-
: undefined,
|
|
284
|
-
counterpartyVersion: isSet(object.counterpartyVersion)
|
|
285
|
-
? String(object.counterpartyVersion)
|
|
286
|
-
: '',
|
|
287
|
-
proofInit: isSet(object.proofInit)
|
|
288
|
-
? bytesFromBase64(object.proofInit)
|
|
289
|
-
: new Uint8Array(),
|
|
290
|
-
proofHeight: isSet(object.proofHeight)
|
|
291
|
-
? Height.fromJSON(object.proofHeight)
|
|
292
|
-
: undefined,
|
|
293
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
294
|
-
};
|
|
295
|
-
},
|
|
296
|
-
toJSON(message) {
|
|
297
|
-
const obj = {};
|
|
298
|
-
message.portId !== undefined && (obj.portId = message.portId);
|
|
299
|
-
message.previousChannelId !== undefined &&
|
|
300
|
-
(obj.previousChannelId = message.previousChannelId);
|
|
301
|
-
message.channel !== undefined &&
|
|
302
|
-
(obj.channel = message.channel
|
|
303
|
-
? Channel.toJSON(message.channel)
|
|
304
|
-
: undefined);
|
|
305
|
-
message.counterpartyVersion !== undefined &&
|
|
306
|
-
(obj.counterpartyVersion = message.counterpartyVersion);
|
|
307
|
-
message.proofInit !== undefined &&
|
|
308
|
-
(obj.proofInit = base64FromBytes(message.proofInit !== undefined ? message.proofInit : new Uint8Array()));
|
|
309
|
-
message.proofHeight !== undefined &&
|
|
310
|
-
(obj.proofHeight = message.proofHeight
|
|
311
|
-
? Height.toJSON(message.proofHeight)
|
|
312
|
-
: undefined);
|
|
313
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
314
|
-
return obj;
|
|
315
|
-
},
|
|
316
|
-
fromPartial(object) {
|
|
317
|
-
const message = createBaseMsgChannelOpenTry();
|
|
318
|
-
message.portId = object.portId ?? '';
|
|
319
|
-
message.previousChannelId = object.previousChannelId ?? '';
|
|
320
|
-
message.channel =
|
|
321
|
-
object.channel !== undefined && object.channel !== null
|
|
322
|
-
? Channel.fromPartial(object.channel)
|
|
323
|
-
: undefined;
|
|
324
|
-
message.counterpartyVersion = object.counterpartyVersion ?? '';
|
|
325
|
-
message.proofInit = object.proofInit ?? new Uint8Array();
|
|
326
|
-
message.proofHeight =
|
|
327
|
-
object.proofHeight !== undefined && object.proofHeight !== null
|
|
328
|
-
? Height.fromPartial(object.proofHeight)
|
|
329
|
-
: undefined;
|
|
330
|
-
message.signer = object.signer ?? '';
|
|
331
|
-
return message;
|
|
332
|
-
},
|
|
333
|
-
fromProtoMsg(message) {
|
|
334
|
-
return MsgChannelOpenTry.decode(message.value);
|
|
335
|
-
},
|
|
336
|
-
toProto(message) {
|
|
337
|
-
return MsgChannelOpenTry.encode(message).finish();
|
|
338
|
-
},
|
|
339
|
-
toProtoMsg(message) {
|
|
340
|
-
return {
|
|
341
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenTry',
|
|
342
|
-
value: MsgChannelOpenTry.encode(message).finish(),
|
|
343
|
-
};
|
|
344
|
-
},
|
|
345
|
-
};
|
|
346
|
-
function createBaseMsgChannelOpenTryResponse() {
|
|
347
|
-
return {
|
|
348
|
-
version: '',
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
export const MsgChannelOpenTryResponse = {
|
|
352
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenTryResponse',
|
|
353
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
354
|
-
if (message.version !== '') {
|
|
355
|
-
writer.uint32(10).string(message.version);
|
|
356
|
-
}
|
|
357
|
-
return writer;
|
|
358
|
-
},
|
|
359
|
-
decode(input, length) {
|
|
360
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
361
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
362
|
-
const message = createBaseMsgChannelOpenTryResponse();
|
|
363
|
-
while (reader.pos < end) {
|
|
364
|
-
const tag = reader.uint32();
|
|
365
|
-
switch (tag >>> 3) {
|
|
366
|
-
case 1:
|
|
367
|
-
message.version = reader.string();
|
|
368
|
-
break;
|
|
369
|
-
default:
|
|
370
|
-
reader.skipType(tag & 7);
|
|
371
|
-
break;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
return message;
|
|
375
|
-
},
|
|
376
|
-
fromJSON(object) {
|
|
377
|
-
return {
|
|
378
|
-
version: isSet(object.version) ? String(object.version) : '',
|
|
379
|
-
};
|
|
380
|
-
},
|
|
381
|
-
toJSON(message) {
|
|
382
|
-
const obj = {};
|
|
383
|
-
message.version !== undefined && (obj.version = message.version);
|
|
384
|
-
return obj;
|
|
385
|
-
},
|
|
386
|
-
fromPartial(object) {
|
|
387
|
-
const message = createBaseMsgChannelOpenTryResponse();
|
|
388
|
-
message.version = object.version ?? '';
|
|
389
|
-
return message;
|
|
390
|
-
},
|
|
391
|
-
fromProtoMsg(message) {
|
|
392
|
-
return MsgChannelOpenTryResponse.decode(message.value);
|
|
393
|
-
},
|
|
394
|
-
toProto(message) {
|
|
395
|
-
return MsgChannelOpenTryResponse.encode(message).finish();
|
|
396
|
-
},
|
|
397
|
-
toProtoMsg(message) {
|
|
398
|
-
return {
|
|
399
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenTryResponse',
|
|
400
|
-
value: MsgChannelOpenTryResponse.encode(message).finish(),
|
|
401
|
-
};
|
|
402
|
-
},
|
|
403
|
-
};
|
|
404
|
-
function createBaseMsgChannelOpenAck() {
|
|
405
|
-
return {
|
|
406
|
-
portId: '',
|
|
407
|
-
channelId: '',
|
|
408
|
-
counterpartyChannelId: '',
|
|
409
|
-
counterpartyVersion: '',
|
|
410
|
-
proofTry: new Uint8Array(),
|
|
411
|
-
proofHeight: Height.fromPartial({}),
|
|
412
|
-
signer: '',
|
|
413
|
-
};
|
|
414
|
-
}
|
|
415
|
-
export const MsgChannelOpenAck = {
|
|
416
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenAck',
|
|
417
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
418
|
-
if (message.portId !== '') {
|
|
419
|
-
writer.uint32(10).string(message.portId);
|
|
420
|
-
}
|
|
421
|
-
if (message.channelId !== '') {
|
|
422
|
-
writer.uint32(18).string(message.channelId);
|
|
423
|
-
}
|
|
424
|
-
if (message.counterpartyChannelId !== '') {
|
|
425
|
-
writer.uint32(26).string(message.counterpartyChannelId);
|
|
426
|
-
}
|
|
427
|
-
if (message.counterpartyVersion !== '') {
|
|
428
|
-
writer.uint32(34).string(message.counterpartyVersion);
|
|
429
|
-
}
|
|
430
|
-
if (message.proofTry.length !== 0) {
|
|
431
|
-
writer.uint32(42).bytes(message.proofTry);
|
|
432
|
-
}
|
|
433
|
-
if (message.proofHeight !== undefined) {
|
|
434
|
-
Height.encode(message.proofHeight, writer.uint32(50).fork()).ldelim();
|
|
435
|
-
}
|
|
436
|
-
if (message.signer !== '') {
|
|
437
|
-
writer.uint32(58).string(message.signer);
|
|
438
|
-
}
|
|
439
|
-
return writer;
|
|
440
|
-
},
|
|
441
|
-
decode(input, length) {
|
|
442
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
443
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
444
|
-
const message = createBaseMsgChannelOpenAck();
|
|
445
|
-
while (reader.pos < end) {
|
|
446
|
-
const tag = reader.uint32();
|
|
447
|
-
switch (tag >>> 3) {
|
|
448
|
-
case 1:
|
|
449
|
-
message.portId = reader.string();
|
|
450
|
-
break;
|
|
451
|
-
case 2:
|
|
452
|
-
message.channelId = reader.string();
|
|
453
|
-
break;
|
|
454
|
-
case 3:
|
|
455
|
-
message.counterpartyChannelId = reader.string();
|
|
456
|
-
break;
|
|
457
|
-
case 4:
|
|
458
|
-
message.counterpartyVersion = reader.string();
|
|
459
|
-
break;
|
|
460
|
-
case 5:
|
|
461
|
-
message.proofTry = reader.bytes();
|
|
462
|
-
break;
|
|
463
|
-
case 6:
|
|
464
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
465
|
-
break;
|
|
466
|
-
case 7:
|
|
467
|
-
message.signer = reader.string();
|
|
468
|
-
break;
|
|
469
|
-
default:
|
|
470
|
-
reader.skipType(tag & 7);
|
|
471
|
-
break;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
return message;
|
|
475
|
-
},
|
|
476
|
-
fromJSON(object) {
|
|
477
|
-
return {
|
|
478
|
-
portId: isSet(object.portId) ? String(object.portId) : '',
|
|
479
|
-
channelId: isSet(object.channelId) ? String(object.channelId) : '',
|
|
480
|
-
counterpartyChannelId: isSet(object.counterpartyChannelId)
|
|
481
|
-
? String(object.counterpartyChannelId)
|
|
482
|
-
: '',
|
|
483
|
-
counterpartyVersion: isSet(object.counterpartyVersion)
|
|
484
|
-
? String(object.counterpartyVersion)
|
|
485
|
-
: '',
|
|
486
|
-
proofTry: isSet(object.proofTry)
|
|
487
|
-
? bytesFromBase64(object.proofTry)
|
|
488
|
-
: new Uint8Array(),
|
|
489
|
-
proofHeight: isSet(object.proofHeight)
|
|
490
|
-
? Height.fromJSON(object.proofHeight)
|
|
491
|
-
: undefined,
|
|
492
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
493
|
-
};
|
|
494
|
-
},
|
|
495
|
-
toJSON(message) {
|
|
496
|
-
const obj = {};
|
|
497
|
-
message.portId !== undefined && (obj.portId = message.portId);
|
|
498
|
-
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
499
|
-
message.counterpartyChannelId !== undefined &&
|
|
500
|
-
(obj.counterpartyChannelId = message.counterpartyChannelId);
|
|
501
|
-
message.counterpartyVersion !== undefined &&
|
|
502
|
-
(obj.counterpartyVersion = message.counterpartyVersion);
|
|
503
|
-
message.proofTry !== undefined &&
|
|
504
|
-
(obj.proofTry = base64FromBytes(message.proofTry !== undefined ? message.proofTry : new Uint8Array()));
|
|
505
|
-
message.proofHeight !== undefined &&
|
|
506
|
-
(obj.proofHeight = message.proofHeight
|
|
507
|
-
? Height.toJSON(message.proofHeight)
|
|
508
|
-
: undefined);
|
|
509
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
510
|
-
return obj;
|
|
511
|
-
},
|
|
512
|
-
fromPartial(object) {
|
|
513
|
-
const message = createBaseMsgChannelOpenAck();
|
|
514
|
-
message.portId = object.portId ?? '';
|
|
515
|
-
message.channelId = object.channelId ?? '';
|
|
516
|
-
message.counterpartyChannelId = object.counterpartyChannelId ?? '';
|
|
517
|
-
message.counterpartyVersion = object.counterpartyVersion ?? '';
|
|
518
|
-
message.proofTry = object.proofTry ?? new Uint8Array();
|
|
519
|
-
message.proofHeight =
|
|
520
|
-
object.proofHeight !== undefined && object.proofHeight !== null
|
|
521
|
-
? Height.fromPartial(object.proofHeight)
|
|
522
|
-
: undefined;
|
|
523
|
-
message.signer = object.signer ?? '';
|
|
524
|
-
return message;
|
|
525
|
-
},
|
|
526
|
-
fromProtoMsg(message) {
|
|
527
|
-
return MsgChannelOpenAck.decode(message.value);
|
|
528
|
-
},
|
|
529
|
-
toProto(message) {
|
|
530
|
-
return MsgChannelOpenAck.encode(message).finish();
|
|
531
|
-
},
|
|
532
|
-
toProtoMsg(message) {
|
|
533
|
-
return {
|
|
534
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenAck',
|
|
535
|
-
value: MsgChannelOpenAck.encode(message).finish(),
|
|
536
|
-
};
|
|
537
|
-
},
|
|
538
|
-
};
|
|
539
|
-
function createBaseMsgChannelOpenAckResponse() {
|
|
540
|
-
return {};
|
|
541
|
-
}
|
|
542
|
-
export const MsgChannelOpenAckResponse = {
|
|
543
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenAckResponse',
|
|
544
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
545
|
-
return writer;
|
|
546
|
-
},
|
|
547
|
-
decode(input, length) {
|
|
548
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
549
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
550
|
-
const message = createBaseMsgChannelOpenAckResponse();
|
|
551
|
-
while (reader.pos < end) {
|
|
552
|
-
const tag = reader.uint32();
|
|
553
|
-
switch (tag >>> 3) {
|
|
554
|
-
default:
|
|
555
|
-
reader.skipType(tag & 7);
|
|
556
|
-
break;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
return message;
|
|
560
|
-
},
|
|
561
|
-
fromJSON(_) {
|
|
562
|
-
return {};
|
|
563
|
-
},
|
|
564
|
-
toJSON(_) {
|
|
565
|
-
const obj = {};
|
|
566
|
-
return obj;
|
|
567
|
-
},
|
|
568
|
-
fromPartial(_) {
|
|
569
|
-
const message = createBaseMsgChannelOpenAckResponse();
|
|
570
|
-
return message;
|
|
571
|
-
},
|
|
572
|
-
fromProtoMsg(message) {
|
|
573
|
-
return MsgChannelOpenAckResponse.decode(message.value);
|
|
574
|
-
},
|
|
575
|
-
toProto(message) {
|
|
576
|
-
return MsgChannelOpenAckResponse.encode(message).finish();
|
|
577
|
-
},
|
|
578
|
-
toProtoMsg(message) {
|
|
579
|
-
return {
|
|
580
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenAckResponse',
|
|
581
|
-
value: MsgChannelOpenAckResponse.encode(message).finish(),
|
|
582
|
-
};
|
|
583
|
-
},
|
|
584
|
-
};
|
|
585
|
-
function createBaseMsgChannelOpenConfirm() {
|
|
586
|
-
return {
|
|
587
|
-
portId: '',
|
|
588
|
-
channelId: '',
|
|
589
|
-
proofAck: new Uint8Array(),
|
|
590
|
-
proofHeight: Height.fromPartial({}),
|
|
591
|
-
signer: '',
|
|
592
|
-
};
|
|
593
|
-
}
|
|
594
|
-
export const MsgChannelOpenConfirm = {
|
|
595
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenConfirm',
|
|
596
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
597
|
-
if (message.portId !== '') {
|
|
598
|
-
writer.uint32(10).string(message.portId);
|
|
599
|
-
}
|
|
600
|
-
if (message.channelId !== '') {
|
|
601
|
-
writer.uint32(18).string(message.channelId);
|
|
602
|
-
}
|
|
603
|
-
if (message.proofAck.length !== 0) {
|
|
604
|
-
writer.uint32(26).bytes(message.proofAck);
|
|
605
|
-
}
|
|
606
|
-
if (message.proofHeight !== undefined) {
|
|
607
|
-
Height.encode(message.proofHeight, writer.uint32(34).fork()).ldelim();
|
|
608
|
-
}
|
|
609
|
-
if (message.signer !== '') {
|
|
610
|
-
writer.uint32(42).string(message.signer);
|
|
611
|
-
}
|
|
612
|
-
return writer;
|
|
613
|
-
},
|
|
614
|
-
decode(input, length) {
|
|
615
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
616
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
617
|
-
const message = createBaseMsgChannelOpenConfirm();
|
|
618
|
-
while (reader.pos < end) {
|
|
619
|
-
const tag = reader.uint32();
|
|
620
|
-
switch (tag >>> 3) {
|
|
621
|
-
case 1:
|
|
622
|
-
message.portId = reader.string();
|
|
623
|
-
break;
|
|
624
|
-
case 2:
|
|
625
|
-
message.channelId = reader.string();
|
|
626
|
-
break;
|
|
627
|
-
case 3:
|
|
628
|
-
message.proofAck = reader.bytes();
|
|
629
|
-
break;
|
|
630
|
-
case 4:
|
|
631
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
632
|
-
break;
|
|
633
|
-
case 5:
|
|
634
|
-
message.signer = reader.string();
|
|
635
|
-
break;
|
|
636
|
-
default:
|
|
637
|
-
reader.skipType(tag & 7);
|
|
638
|
-
break;
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
return message;
|
|
642
|
-
},
|
|
643
|
-
fromJSON(object) {
|
|
644
|
-
return {
|
|
645
|
-
portId: isSet(object.portId) ? String(object.portId) : '',
|
|
646
|
-
channelId: isSet(object.channelId) ? String(object.channelId) : '',
|
|
647
|
-
proofAck: isSet(object.proofAck)
|
|
648
|
-
? bytesFromBase64(object.proofAck)
|
|
649
|
-
: new Uint8Array(),
|
|
650
|
-
proofHeight: isSet(object.proofHeight)
|
|
651
|
-
? Height.fromJSON(object.proofHeight)
|
|
652
|
-
: undefined,
|
|
653
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
654
|
-
};
|
|
655
|
-
},
|
|
656
|
-
toJSON(message) {
|
|
657
|
-
const obj = {};
|
|
658
|
-
message.portId !== undefined && (obj.portId = message.portId);
|
|
659
|
-
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
660
|
-
message.proofAck !== undefined &&
|
|
661
|
-
(obj.proofAck = base64FromBytes(message.proofAck !== undefined ? message.proofAck : new Uint8Array()));
|
|
662
|
-
message.proofHeight !== undefined &&
|
|
663
|
-
(obj.proofHeight = message.proofHeight
|
|
664
|
-
? Height.toJSON(message.proofHeight)
|
|
665
|
-
: undefined);
|
|
666
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
667
|
-
return obj;
|
|
668
|
-
},
|
|
669
|
-
fromPartial(object) {
|
|
670
|
-
const message = createBaseMsgChannelOpenConfirm();
|
|
671
|
-
message.portId = object.portId ?? '';
|
|
672
|
-
message.channelId = object.channelId ?? '';
|
|
673
|
-
message.proofAck = object.proofAck ?? new Uint8Array();
|
|
674
|
-
message.proofHeight =
|
|
675
|
-
object.proofHeight !== undefined && object.proofHeight !== null
|
|
676
|
-
? Height.fromPartial(object.proofHeight)
|
|
677
|
-
: undefined;
|
|
678
|
-
message.signer = object.signer ?? '';
|
|
679
|
-
return message;
|
|
680
|
-
},
|
|
681
|
-
fromProtoMsg(message) {
|
|
682
|
-
return MsgChannelOpenConfirm.decode(message.value);
|
|
683
|
-
},
|
|
684
|
-
toProto(message) {
|
|
685
|
-
return MsgChannelOpenConfirm.encode(message).finish();
|
|
686
|
-
},
|
|
687
|
-
toProtoMsg(message) {
|
|
688
|
-
return {
|
|
689
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenConfirm',
|
|
690
|
-
value: MsgChannelOpenConfirm.encode(message).finish(),
|
|
691
|
-
};
|
|
692
|
-
},
|
|
693
|
-
};
|
|
694
|
-
function createBaseMsgChannelOpenConfirmResponse() {
|
|
695
|
-
return {};
|
|
696
|
-
}
|
|
697
|
-
export const MsgChannelOpenConfirmResponse = {
|
|
698
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenConfirmResponse',
|
|
699
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
700
|
-
return writer;
|
|
701
|
-
},
|
|
702
|
-
decode(input, length) {
|
|
703
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
704
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
705
|
-
const message = createBaseMsgChannelOpenConfirmResponse();
|
|
706
|
-
while (reader.pos < end) {
|
|
707
|
-
const tag = reader.uint32();
|
|
708
|
-
switch (tag >>> 3) {
|
|
709
|
-
default:
|
|
710
|
-
reader.skipType(tag & 7);
|
|
711
|
-
break;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
return message;
|
|
715
|
-
},
|
|
716
|
-
fromJSON(_) {
|
|
717
|
-
return {};
|
|
718
|
-
},
|
|
719
|
-
toJSON(_) {
|
|
720
|
-
const obj = {};
|
|
721
|
-
return obj;
|
|
722
|
-
},
|
|
723
|
-
fromPartial(_) {
|
|
724
|
-
const message = createBaseMsgChannelOpenConfirmResponse();
|
|
725
|
-
return message;
|
|
726
|
-
},
|
|
727
|
-
fromProtoMsg(message) {
|
|
728
|
-
return MsgChannelOpenConfirmResponse.decode(message.value);
|
|
729
|
-
},
|
|
730
|
-
toProto(message) {
|
|
731
|
-
return MsgChannelOpenConfirmResponse.encode(message).finish();
|
|
732
|
-
},
|
|
733
|
-
toProtoMsg(message) {
|
|
734
|
-
return {
|
|
735
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelOpenConfirmResponse',
|
|
736
|
-
value: MsgChannelOpenConfirmResponse.encode(message).finish(),
|
|
737
|
-
};
|
|
738
|
-
},
|
|
739
|
-
};
|
|
740
|
-
function createBaseMsgChannelCloseInit() {
|
|
741
|
-
return {
|
|
742
|
-
portId: '',
|
|
743
|
-
channelId: '',
|
|
744
|
-
signer: '',
|
|
745
|
-
};
|
|
746
|
-
}
|
|
747
|
-
export const MsgChannelCloseInit = {
|
|
748
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelCloseInit',
|
|
749
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
750
|
-
if (message.portId !== '') {
|
|
751
|
-
writer.uint32(10).string(message.portId);
|
|
752
|
-
}
|
|
753
|
-
if (message.channelId !== '') {
|
|
754
|
-
writer.uint32(18).string(message.channelId);
|
|
755
|
-
}
|
|
756
|
-
if (message.signer !== '') {
|
|
757
|
-
writer.uint32(26).string(message.signer);
|
|
758
|
-
}
|
|
759
|
-
return writer;
|
|
760
|
-
},
|
|
761
|
-
decode(input, length) {
|
|
762
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
763
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
764
|
-
const message = createBaseMsgChannelCloseInit();
|
|
765
|
-
while (reader.pos < end) {
|
|
766
|
-
const tag = reader.uint32();
|
|
767
|
-
switch (tag >>> 3) {
|
|
768
|
-
case 1:
|
|
769
|
-
message.portId = reader.string();
|
|
770
|
-
break;
|
|
771
|
-
case 2:
|
|
772
|
-
message.channelId = reader.string();
|
|
773
|
-
break;
|
|
774
|
-
case 3:
|
|
775
|
-
message.signer = reader.string();
|
|
776
|
-
break;
|
|
777
|
-
default:
|
|
778
|
-
reader.skipType(tag & 7);
|
|
779
|
-
break;
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
return message;
|
|
783
|
-
},
|
|
784
|
-
fromJSON(object) {
|
|
785
|
-
return {
|
|
786
|
-
portId: isSet(object.portId) ? String(object.portId) : '',
|
|
787
|
-
channelId: isSet(object.channelId) ? String(object.channelId) : '',
|
|
788
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
789
|
-
};
|
|
790
|
-
},
|
|
791
|
-
toJSON(message) {
|
|
792
|
-
const obj = {};
|
|
793
|
-
message.portId !== undefined && (obj.portId = message.portId);
|
|
794
|
-
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
795
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
796
|
-
return obj;
|
|
797
|
-
},
|
|
798
|
-
fromPartial(object) {
|
|
799
|
-
const message = createBaseMsgChannelCloseInit();
|
|
800
|
-
message.portId = object.portId ?? '';
|
|
801
|
-
message.channelId = object.channelId ?? '';
|
|
802
|
-
message.signer = object.signer ?? '';
|
|
803
|
-
return message;
|
|
804
|
-
},
|
|
805
|
-
fromProtoMsg(message) {
|
|
806
|
-
return MsgChannelCloseInit.decode(message.value);
|
|
807
|
-
},
|
|
808
|
-
toProto(message) {
|
|
809
|
-
return MsgChannelCloseInit.encode(message).finish();
|
|
810
|
-
},
|
|
811
|
-
toProtoMsg(message) {
|
|
812
|
-
return {
|
|
813
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelCloseInit',
|
|
814
|
-
value: MsgChannelCloseInit.encode(message).finish(),
|
|
815
|
-
};
|
|
816
|
-
},
|
|
817
|
-
};
|
|
818
|
-
function createBaseMsgChannelCloseInitResponse() {
|
|
819
|
-
return {};
|
|
820
|
-
}
|
|
821
|
-
export const MsgChannelCloseInitResponse = {
|
|
822
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelCloseInitResponse',
|
|
823
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
824
|
-
return writer;
|
|
825
|
-
},
|
|
826
|
-
decode(input, length) {
|
|
827
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
828
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
829
|
-
const message = createBaseMsgChannelCloseInitResponse();
|
|
830
|
-
while (reader.pos < end) {
|
|
831
|
-
const tag = reader.uint32();
|
|
832
|
-
switch (tag >>> 3) {
|
|
833
|
-
default:
|
|
834
|
-
reader.skipType(tag & 7);
|
|
835
|
-
break;
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
return message;
|
|
839
|
-
},
|
|
840
|
-
fromJSON(_) {
|
|
841
|
-
return {};
|
|
842
|
-
},
|
|
843
|
-
toJSON(_) {
|
|
844
|
-
const obj = {};
|
|
845
|
-
return obj;
|
|
846
|
-
},
|
|
847
|
-
fromPartial(_) {
|
|
848
|
-
const message = createBaseMsgChannelCloseInitResponse();
|
|
849
|
-
return message;
|
|
850
|
-
},
|
|
851
|
-
fromProtoMsg(message) {
|
|
852
|
-
return MsgChannelCloseInitResponse.decode(message.value);
|
|
853
|
-
},
|
|
854
|
-
toProto(message) {
|
|
855
|
-
return MsgChannelCloseInitResponse.encode(message).finish();
|
|
856
|
-
},
|
|
857
|
-
toProtoMsg(message) {
|
|
858
|
-
return {
|
|
859
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelCloseInitResponse',
|
|
860
|
-
value: MsgChannelCloseInitResponse.encode(message).finish(),
|
|
861
|
-
};
|
|
862
|
-
},
|
|
863
|
-
};
|
|
864
|
-
function createBaseMsgChannelCloseConfirm() {
|
|
865
|
-
return {
|
|
866
|
-
portId: '',
|
|
867
|
-
channelId: '',
|
|
868
|
-
proofInit: new Uint8Array(),
|
|
869
|
-
proofHeight: Height.fromPartial({}),
|
|
870
|
-
signer: '',
|
|
871
|
-
};
|
|
872
|
-
}
|
|
873
|
-
export const MsgChannelCloseConfirm = {
|
|
874
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelCloseConfirm',
|
|
875
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
876
|
-
if (message.portId !== '') {
|
|
877
|
-
writer.uint32(10).string(message.portId);
|
|
878
|
-
}
|
|
879
|
-
if (message.channelId !== '') {
|
|
880
|
-
writer.uint32(18).string(message.channelId);
|
|
881
|
-
}
|
|
882
|
-
if (message.proofInit.length !== 0) {
|
|
883
|
-
writer.uint32(26).bytes(message.proofInit);
|
|
884
|
-
}
|
|
885
|
-
if (message.proofHeight !== undefined) {
|
|
886
|
-
Height.encode(message.proofHeight, writer.uint32(34).fork()).ldelim();
|
|
887
|
-
}
|
|
888
|
-
if (message.signer !== '') {
|
|
889
|
-
writer.uint32(42).string(message.signer);
|
|
890
|
-
}
|
|
891
|
-
return writer;
|
|
892
|
-
},
|
|
893
|
-
decode(input, length) {
|
|
894
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
895
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
896
|
-
const message = createBaseMsgChannelCloseConfirm();
|
|
897
|
-
while (reader.pos < end) {
|
|
898
|
-
const tag = reader.uint32();
|
|
899
|
-
switch (tag >>> 3) {
|
|
900
|
-
case 1:
|
|
901
|
-
message.portId = reader.string();
|
|
902
|
-
break;
|
|
903
|
-
case 2:
|
|
904
|
-
message.channelId = reader.string();
|
|
905
|
-
break;
|
|
906
|
-
case 3:
|
|
907
|
-
message.proofInit = reader.bytes();
|
|
908
|
-
break;
|
|
909
|
-
case 4:
|
|
910
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
911
|
-
break;
|
|
912
|
-
case 5:
|
|
913
|
-
message.signer = reader.string();
|
|
914
|
-
break;
|
|
915
|
-
default:
|
|
916
|
-
reader.skipType(tag & 7);
|
|
917
|
-
break;
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
return message;
|
|
921
|
-
},
|
|
922
|
-
fromJSON(object) {
|
|
923
|
-
return {
|
|
924
|
-
portId: isSet(object.portId) ? String(object.portId) : '',
|
|
925
|
-
channelId: isSet(object.channelId) ? String(object.channelId) : '',
|
|
926
|
-
proofInit: isSet(object.proofInit)
|
|
927
|
-
? bytesFromBase64(object.proofInit)
|
|
928
|
-
: new Uint8Array(),
|
|
929
|
-
proofHeight: isSet(object.proofHeight)
|
|
930
|
-
? Height.fromJSON(object.proofHeight)
|
|
931
|
-
: undefined,
|
|
932
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
933
|
-
};
|
|
934
|
-
},
|
|
935
|
-
toJSON(message) {
|
|
936
|
-
const obj = {};
|
|
937
|
-
message.portId !== undefined && (obj.portId = message.portId);
|
|
938
|
-
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
939
|
-
message.proofInit !== undefined &&
|
|
940
|
-
(obj.proofInit = base64FromBytes(message.proofInit !== undefined ? message.proofInit : new Uint8Array()));
|
|
941
|
-
message.proofHeight !== undefined &&
|
|
942
|
-
(obj.proofHeight = message.proofHeight
|
|
943
|
-
? Height.toJSON(message.proofHeight)
|
|
944
|
-
: undefined);
|
|
945
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
946
|
-
return obj;
|
|
947
|
-
},
|
|
948
|
-
fromPartial(object) {
|
|
949
|
-
const message = createBaseMsgChannelCloseConfirm();
|
|
950
|
-
message.portId = object.portId ?? '';
|
|
951
|
-
message.channelId = object.channelId ?? '';
|
|
952
|
-
message.proofInit = object.proofInit ?? new Uint8Array();
|
|
953
|
-
message.proofHeight =
|
|
954
|
-
object.proofHeight !== undefined && object.proofHeight !== null
|
|
955
|
-
? Height.fromPartial(object.proofHeight)
|
|
956
|
-
: undefined;
|
|
957
|
-
message.signer = object.signer ?? '';
|
|
958
|
-
return message;
|
|
959
|
-
},
|
|
960
|
-
fromProtoMsg(message) {
|
|
961
|
-
return MsgChannelCloseConfirm.decode(message.value);
|
|
962
|
-
},
|
|
963
|
-
toProto(message) {
|
|
964
|
-
return MsgChannelCloseConfirm.encode(message).finish();
|
|
965
|
-
},
|
|
966
|
-
toProtoMsg(message) {
|
|
967
|
-
return {
|
|
968
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelCloseConfirm',
|
|
969
|
-
value: MsgChannelCloseConfirm.encode(message).finish(),
|
|
970
|
-
};
|
|
971
|
-
},
|
|
972
|
-
};
|
|
973
|
-
function createBaseMsgChannelCloseConfirmResponse() {
|
|
974
|
-
return {};
|
|
975
|
-
}
|
|
976
|
-
export const MsgChannelCloseConfirmResponse = {
|
|
977
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelCloseConfirmResponse',
|
|
978
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
979
|
-
return writer;
|
|
980
|
-
},
|
|
981
|
-
decode(input, length) {
|
|
982
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
983
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
984
|
-
const message = createBaseMsgChannelCloseConfirmResponse();
|
|
985
|
-
while (reader.pos < end) {
|
|
986
|
-
const tag = reader.uint32();
|
|
987
|
-
switch (tag >>> 3) {
|
|
988
|
-
default:
|
|
989
|
-
reader.skipType(tag & 7);
|
|
990
|
-
break;
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
return message;
|
|
994
|
-
},
|
|
995
|
-
fromJSON(_) {
|
|
996
|
-
return {};
|
|
997
|
-
},
|
|
998
|
-
toJSON(_) {
|
|
999
|
-
const obj = {};
|
|
1000
|
-
return obj;
|
|
1001
|
-
},
|
|
1002
|
-
fromPartial(_) {
|
|
1003
|
-
const message = createBaseMsgChannelCloseConfirmResponse();
|
|
1004
|
-
return message;
|
|
1005
|
-
},
|
|
1006
|
-
fromProtoMsg(message) {
|
|
1007
|
-
return MsgChannelCloseConfirmResponse.decode(message.value);
|
|
1008
|
-
},
|
|
1009
|
-
toProto(message) {
|
|
1010
|
-
return MsgChannelCloseConfirmResponse.encode(message).finish();
|
|
1011
|
-
},
|
|
1012
|
-
toProtoMsg(message) {
|
|
1013
|
-
return {
|
|
1014
|
-
typeUrl: '/ibc.core.channel.v1.MsgChannelCloseConfirmResponse',
|
|
1015
|
-
value: MsgChannelCloseConfirmResponse.encode(message).finish(),
|
|
1016
|
-
};
|
|
1017
|
-
},
|
|
1018
|
-
};
|
|
1019
|
-
function createBaseMsgRecvPacket() {
|
|
1020
|
-
return {
|
|
1021
|
-
packet: Packet.fromPartial({}),
|
|
1022
|
-
proofCommitment: new Uint8Array(),
|
|
1023
|
-
proofHeight: Height.fromPartial({}),
|
|
1024
|
-
signer: '',
|
|
1025
|
-
};
|
|
1026
|
-
}
|
|
1027
|
-
export const MsgRecvPacket = {
|
|
1028
|
-
typeUrl: '/ibc.core.channel.v1.MsgRecvPacket',
|
|
1029
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1030
|
-
if (message.packet !== undefined) {
|
|
1031
|
-
Packet.encode(message.packet, writer.uint32(10).fork()).ldelim();
|
|
1032
|
-
}
|
|
1033
|
-
if (message.proofCommitment.length !== 0) {
|
|
1034
|
-
writer.uint32(18).bytes(message.proofCommitment);
|
|
1035
|
-
}
|
|
1036
|
-
if (message.proofHeight !== undefined) {
|
|
1037
|
-
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
1038
|
-
}
|
|
1039
|
-
if (message.signer !== '') {
|
|
1040
|
-
writer.uint32(34).string(message.signer);
|
|
1041
|
-
}
|
|
1042
|
-
return writer;
|
|
1043
|
-
},
|
|
1044
|
-
decode(input, length) {
|
|
1045
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1046
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1047
|
-
const message = createBaseMsgRecvPacket();
|
|
1048
|
-
while (reader.pos < end) {
|
|
1049
|
-
const tag = reader.uint32();
|
|
1050
|
-
switch (tag >>> 3) {
|
|
1051
|
-
case 1:
|
|
1052
|
-
message.packet = Packet.decode(reader, reader.uint32());
|
|
1053
|
-
break;
|
|
1054
|
-
case 2:
|
|
1055
|
-
message.proofCommitment = reader.bytes();
|
|
1056
|
-
break;
|
|
1057
|
-
case 3:
|
|
1058
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1059
|
-
break;
|
|
1060
|
-
case 4:
|
|
1061
|
-
message.signer = reader.string();
|
|
1062
|
-
break;
|
|
1063
|
-
default:
|
|
1064
|
-
reader.skipType(tag & 7);
|
|
1065
|
-
break;
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
return message;
|
|
1069
|
-
},
|
|
1070
|
-
fromJSON(object) {
|
|
1071
|
-
return {
|
|
1072
|
-
packet: isSet(object.packet) ? Packet.fromJSON(object.packet) : undefined,
|
|
1073
|
-
proofCommitment: isSet(object.proofCommitment)
|
|
1074
|
-
? bytesFromBase64(object.proofCommitment)
|
|
1075
|
-
: new Uint8Array(),
|
|
1076
|
-
proofHeight: isSet(object.proofHeight)
|
|
1077
|
-
? Height.fromJSON(object.proofHeight)
|
|
1078
|
-
: undefined,
|
|
1079
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
1080
|
-
};
|
|
1081
|
-
},
|
|
1082
|
-
toJSON(message) {
|
|
1083
|
-
const obj = {};
|
|
1084
|
-
message.packet !== undefined &&
|
|
1085
|
-
(obj.packet = message.packet ? Packet.toJSON(message.packet) : undefined);
|
|
1086
|
-
message.proofCommitment !== undefined &&
|
|
1087
|
-
(obj.proofCommitment = base64FromBytes(message.proofCommitment !== undefined
|
|
1088
|
-
? message.proofCommitment
|
|
1089
|
-
: new Uint8Array()));
|
|
1090
|
-
message.proofHeight !== undefined &&
|
|
1091
|
-
(obj.proofHeight = message.proofHeight
|
|
1092
|
-
? Height.toJSON(message.proofHeight)
|
|
1093
|
-
: undefined);
|
|
1094
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
1095
|
-
return obj;
|
|
1096
|
-
},
|
|
1097
|
-
fromPartial(object) {
|
|
1098
|
-
const message = createBaseMsgRecvPacket();
|
|
1099
|
-
message.packet =
|
|
1100
|
-
object.packet !== undefined && object.packet !== null
|
|
1101
|
-
? Packet.fromPartial(object.packet)
|
|
1102
|
-
: undefined;
|
|
1103
|
-
message.proofCommitment = object.proofCommitment ?? new Uint8Array();
|
|
1104
|
-
message.proofHeight =
|
|
1105
|
-
object.proofHeight !== undefined && object.proofHeight !== null
|
|
1106
|
-
? Height.fromPartial(object.proofHeight)
|
|
1107
|
-
: undefined;
|
|
1108
|
-
message.signer = object.signer ?? '';
|
|
1109
|
-
return message;
|
|
1110
|
-
},
|
|
1111
|
-
fromProtoMsg(message) {
|
|
1112
|
-
return MsgRecvPacket.decode(message.value);
|
|
1113
|
-
},
|
|
1114
|
-
toProto(message) {
|
|
1115
|
-
return MsgRecvPacket.encode(message).finish();
|
|
1116
|
-
},
|
|
1117
|
-
toProtoMsg(message) {
|
|
1118
|
-
return {
|
|
1119
|
-
typeUrl: '/ibc.core.channel.v1.MsgRecvPacket',
|
|
1120
|
-
value: MsgRecvPacket.encode(message).finish(),
|
|
1121
|
-
};
|
|
1122
|
-
},
|
|
1123
|
-
};
|
|
1124
|
-
function createBaseMsgRecvPacketResponse() {
|
|
1125
|
-
return {
|
|
1126
|
-
result: 0,
|
|
1127
|
-
};
|
|
1128
|
-
}
|
|
1129
|
-
export const MsgRecvPacketResponse = {
|
|
1130
|
-
typeUrl: '/ibc.core.channel.v1.MsgRecvPacketResponse',
|
|
1131
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1132
|
-
if (message.result !== 0) {
|
|
1133
|
-
writer.uint32(8).int32(message.result);
|
|
1134
|
-
}
|
|
1135
|
-
return writer;
|
|
1136
|
-
},
|
|
1137
|
-
decode(input, length) {
|
|
1138
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1139
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1140
|
-
const message = createBaseMsgRecvPacketResponse();
|
|
1141
|
-
while (reader.pos < end) {
|
|
1142
|
-
const tag = reader.uint32();
|
|
1143
|
-
switch (tag >>> 3) {
|
|
1144
|
-
case 1:
|
|
1145
|
-
message.result = reader.int32();
|
|
1146
|
-
break;
|
|
1147
|
-
default:
|
|
1148
|
-
reader.skipType(tag & 7);
|
|
1149
|
-
break;
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
return message;
|
|
1153
|
-
},
|
|
1154
|
-
fromJSON(object) {
|
|
1155
|
-
return {
|
|
1156
|
-
result: isSet(object.result)
|
|
1157
|
-
? responseResultTypeFromJSON(object.result)
|
|
1158
|
-
: -1,
|
|
1159
|
-
};
|
|
1160
|
-
},
|
|
1161
|
-
toJSON(message) {
|
|
1162
|
-
const obj = {};
|
|
1163
|
-
message.result !== undefined &&
|
|
1164
|
-
(obj.result = responseResultTypeToJSON(message.result));
|
|
1165
|
-
return obj;
|
|
1166
|
-
},
|
|
1167
|
-
fromPartial(object) {
|
|
1168
|
-
const message = createBaseMsgRecvPacketResponse();
|
|
1169
|
-
message.result = object.result ?? 0;
|
|
1170
|
-
return message;
|
|
1171
|
-
},
|
|
1172
|
-
fromProtoMsg(message) {
|
|
1173
|
-
return MsgRecvPacketResponse.decode(message.value);
|
|
1174
|
-
},
|
|
1175
|
-
toProto(message) {
|
|
1176
|
-
return MsgRecvPacketResponse.encode(message).finish();
|
|
1177
|
-
},
|
|
1178
|
-
toProtoMsg(message) {
|
|
1179
|
-
return {
|
|
1180
|
-
typeUrl: '/ibc.core.channel.v1.MsgRecvPacketResponse',
|
|
1181
|
-
value: MsgRecvPacketResponse.encode(message).finish(),
|
|
1182
|
-
};
|
|
1183
|
-
},
|
|
1184
|
-
};
|
|
1185
|
-
function createBaseMsgTimeout() {
|
|
1186
|
-
return {
|
|
1187
|
-
packet: Packet.fromPartial({}),
|
|
1188
|
-
proofUnreceived: new Uint8Array(),
|
|
1189
|
-
proofHeight: Height.fromPartial({}),
|
|
1190
|
-
nextSequenceRecv: BigInt(0),
|
|
1191
|
-
signer: '',
|
|
1192
|
-
};
|
|
1193
|
-
}
|
|
1194
|
-
export const MsgTimeout = {
|
|
1195
|
-
typeUrl: '/ibc.core.channel.v1.MsgTimeout',
|
|
1196
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1197
|
-
if (message.packet !== undefined) {
|
|
1198
|
-
Packet.encode(message.packet, writer.uint32(10).fork()).ldelim();
|
|
1199
|
-
}
|
|
1200
|
-
if (message.proofUnreceived.length !== 0) {
|
|
1201
|
-
writer.uint32(18).bytes(message.proofUnreceived);
|
|
1202
|
-
}
|
|
1203
|
-
if (message.proofHeight !== undefined) {
|
|
1204
|
-
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
1205
|
-
}
|
|
1206
|
-
if (message.nextSequenceRecv !== BigInt(0)) {
|
|
1207
|
-
writer.uint32(32).uint64(message.nextSequenceRecv);
|
|
1208
|
-
}
|
|
1209
|
-
if (message.signer !== '') {
|
|
1210
|
-
writer.uint32(42).string(message.signer);
|
|
1211
|
-
}
|
|
1212
|
-
return writer;
|
|
1213
|
-
},
|
|
1214
|
-
decode(input, length) {
|
|
1215
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1216
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1217
|
-
const message = createBaseMsgTimeout();
|
|
1218
|
-
while (reader.pos < end) {
|
|
1219
|
-
const tag = reader.uint32();
|
|
1220
|
-
switch (tag >>> 3) {
|
|
1221
|
-
case 1:
|
|
1222
|
-
message.packet = Packet.decode(reader, reader.uint32());
|
|
1223
|
-
break;
|
|
1224
|
-
case 2:
|
|
1225
|
-
message.proofUnreceived = reader.bytes();
|
|
1226
|
-
break;
|
|
1227
|
-
case 3:
|
|
1228
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1229
|
-
break;
|
|
1230
|
-
case 4:
|
|
1231
|
-
message.nextSequenceRecv = reader.uint64();
|
|
1232
|
-
break;
|
|
1233
|
-
case 5:
|
|
1234
|
-
message.signer = reader.string();
|
|
1235
|
-
break;
|
|
1236
|
-
default:
|
|
1237
|
-
reader.skipType(tag & 7);
|
|
1238
|
-
break;
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
return message;
|
|
1242
|
-
},
|
|
1243
|
-
fromJSON(object) {
|
|
1244
|
-
return {
|
|
1245
|
-
packet: isSet(object.packet) ? Packet.fromJSON(object.packet) : undefined,
|
|
1246
|
-
proofUnreceived: isSet(object.proofUnreceived)
|
|
1247
|
-
? bytesFromBase64(object.proofUnreceived)
|
|
1248
|
-
: new Uint8Array(),
|
|
1249
|
-
proofHeight: isSet(object.proofHeight)
|
|
1250
|
-
? Height.fromJSON(object.proofHeight)
|
|
1251
|
-
: undefined,
|
|
1252
|
-
nextSequenceRecv: isSet(object.nextSequenceRecv)
|
|
1253
|
-
? BigInt(object.nextSequenceRecv.toString())
|
|
1254
|
-
: BigInt(0),
|
|
1255
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
1256
|
-
};
|
|
1257
|
-
},
|
|
1258
|
-
toJSON(message) {
|
|
1259
|
-
const obj = {};
|
|
1260
|
-
message.packet !== undefined &&
|
|
1261
|
-
(obj.packet = message.packet ? Packet.toJSON(message.packet) : undefined);
|
|
1262
|
-
message.proofUnreceived !== undefined &&
|
|
1263
|
-
(obj.proofUnreceived = base64FromBytes(message.proofUnreceived !== undefined
|
|
1264
|
-
? message.proofUnreceived
|
|
1265
|
-
: new Uint8Array()));
|
|
1266
|
-
message.proofHeight !== undefined &&
|
|
1267
|
-
(obj.proofHeight = message.proofHeight
|
|
1268
|
-
? Height.toJSON(message.proofHeight)
|
|
1269
|
-
: undefined);
|
|
1270
|
-
message.nextSequenceRecv !== undefined &&
|
|
1271
|
-
(obj.nextSequenceRecv = (message.nextSequenceRecv || BigInt(0)).toString());
|
|
1272
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
1273
|
-
return obj;
|
|
1274
|
-
},
|
|
1275
|
-
fromPartial(object) {
|
|
1276
|
-
const message = createBaseMsgTimeout();
|
|
1277
|
-
message.packet =
|
|
1278
|
-
object.packet !== undefined && object.packet !== null
|
|
1279
|
-
? Packet.fromPartial(object.packet)
|
|
1280
|
-
: undefined;
|
|
1281
|
-
message.proofUnreceived = object.proofUnreceived ?? new Uint8Array();
|
|
1282
|
-
message.proofHeight =
|
|
1283
|
-
object.proofHeight !== undefined && object.proofHeight !== null
|
|
1284
|
-
? Height.fromPartial(object.proofHeight)
|
|
1285
|
-
: undefined;
|
|
1286
|
-
message.nextSequenceRecv =
|
|
1287
|
-
object.nextSequenceRecv !== undefined && object.nextSequenceRecv !== null
|
|
1288
|
-
? BigInt(object.nextSequenceRecv.toString())
|
|
1289
|
-
: BigInt(0);
|
|
1290
|
-
message.signer = object.signer ?? '';
|
|
1291
|
-
return message;
|
|
1292
|
-
},
|
|
1293
|
-
fromProtoMsg(message) {
|
|
1294
|
-
return MsgTimeout.decode(message.value);
|
|
1295
|
-
},
|
|
1296
|
-
toProto(message) {
|
|
1297
|
-
return MsgTimeout.encode(message).finish();
|
|
1298
|
-
},
|
|
1299
|
-
toProtoMsg(message) {
|
|
1300
|
-
return {
|
|
1301
|
-
typeUrl: '/ibc.core.channel.v1.MsgTimeout',
|
|
1302
|
-
value: MsgTimeout.encode(message).finish(),
|
|
1303
|
-
};
|
|
1304
|
-
},
|
|
1305
|
-
};
|
|
1306
|
-
function createBaseMsgTimeoutResponse() {
|
|
1307
|
-
return {
|
|
1308
|
-
result: 0,
|
|
1309
|
-
};
|
|
1310
|
-
}
|
|
1311
|
-
export const MsgTimeoutResponse = {
|
|
1312
|
-
typeUrl: '/ibc.core.channel.v1.MsgTimeoutResponse',
|
|
1313
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1314
|
-
if (message.result !== 0) {
|
|
1315
|
-
writer.uint32(8).int32(message.result);
|
|
1316
|
-
}
|
|
1317
|
-
return writer;
|
|
1318
|
-
},
|
|
1319
|
-
decode(input, length) {
|
|
1320
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1321
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1322
|
-
const message = createBaseMsgTimeoutResponse();
|
|
1323
|
-
while (reader.pos < end) {
|
|
1324
|
-
const tag = reader.uint32();
|
|
1325
|
-
switch (tag >>> 3) {
|
|
1326
|
-
case 1:
|
|
1327
|
-
message.result = reader.int32();
|
|
1328
|
-
break;
|
|
1329
|
-
default:
|
|
1330
|
-
reader.skipType(tag & 7);
|
|
1331
|
-
break;
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
return message;
|
|
1335
|
-
},
|
|
1336
|
-
fromJSON(object) {
|
|
1337
|
-
return {
|
|
1338
|
-
result: isSet(object.result)
|
|
1339
|
-
? responseResultTypeFromJSON(object.result)
|
|
1340
|
-
: -1,
|
|
1341
|
-
};
|
|
1342
|
-
},
|
|
1343
|
-
toJSON(message) {
|
|
1344
|
-
const obj = {};
|
|
1345
|
-
message.result !== undefined &&
|
|
1346
|
-
(obj.result = responseResultTypeToJSON(message.result));
|
|
1347
|
-
return obj;
|
|
1348
|
-
},
|
|
1349
|
-
fromPartial(object) {
|
|
1350
|
-
const message = createBaseMsgTimeoutResponse();
|
|
1351
|
-
message.result = object.result ?? 0;
|
|
1352
|
-
return message;
|
|
1353
|
-
},
|
|
1354
|
-
fromProtoMsg(message) {
|
|
1355
|
-
return MsgTimeoutResponse.decode(message.value);
|
|
1356
|
-
},
|
|
1357
|
-
toProto(message) {
|
|
1358
|
-
return MsgTimeoutResponse.encode(message).finish();
|
|
1359
|
-
},
|
|
1360
|
-
toProtoMsg(message) {
|
|
1361
|
-
return {
|
|
1362
|
-
typeUrl: '/ibc.core.channel.v1.MsgTimeoutResponse',
|
|
1363
|
-
value: MsgTimeoutResponse.encode(message).finish(),
|
|
1364
|
-
};
|
|
1365
|
-
},
|
|
1366
|
-
};
|
|
1367
|
-
function createBaseMsgTimeoutOnClose() {
|
|
1368
|
-
return {
|
|
1369
|
-
packet: Packet.fromPartial({}),
|
|
1370
|
-
proofUnreceived: new Uint8Array(),
|
|
1371
|
-
proofClose: new Uint8Array(),
|
|
1372
|
-
proofHeight: Height.fromPartial({}),
|
|
1373
|
-
nextSequenceRecv: BigInt(0),
|
|
1374
|
-
signer: '',
|
|
1375
|
-
};
|
|
1376
|
-
}
|
|
1377
|
-
export const MsgTimeoutOnClose = {
|
|
1378
|
-
typeUrl: '/ibc.core.channel.v1.MsgTimeoutOnClose',
|
|
1379
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1380
|
-
if (message.packet !== undefined) {
|
|
1381
|
-
Packet.encode(message.packet, writer.uint32(10).fork()).ldelim();
|
|
1382
|
-
}
|
|
1383
|
-
if (message.proofUnreceived.length !== 0) {
|
|
1384
|
-
writer.uint32(18).bytes(message.proofUnreceived);
|
|
1385
|
-
}
|
|
1386
|
-
if (message.proofClose.length !== 0) {
|
|
1387
|
-
writer.uint32(26).bytes(message.proofClose);
|
|
1388
|
-
}
|
|
1389
|
-
if (message.proofHeight !== undefined) {
|
|
1390
|
-
Height.encode(message.proofHeight, writer.uint32(34).fork()).ldelim();
|
|
1391
|
-
}
|
|
1392
|
-
if (message.nextSequenceRecv !== BigInt(0)) {
|
|
1393
|
-
writer.uint32(40).uint64(message.nextSequenceRecv);
|
|
1394
|
-
}
|
|
1395
|
-
if (message.signer !== '') {
|
|
1396
|
-
writer.uint32(50).string(message.signer);
|
|
1397
|
-
}
|
|
1398
|
-
return writer;
|
|
1399
|
-
},
|
|
1400
|
-
decode(input, length) {
|
|
1401
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1402
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1403
|
-
const message = createBaseMsgTimeoutOnClose();
|
|
1404
|
-
while (reader.pos < end) {
|
|
1405
|
-
const tag = reader.uint32();
|
|
1406
|
-
switch (tag >>> 3) {
|
|
1407
|
-
case 1:
|
|
1408
|
-
message.packet = Packet.decode(reader, reader.uint32());
|
|
1409
|
-
break;
|
|
1410
|
-
case 2:
|
|
1411
|
-
message.proofUnreceived = reader.bytes();
|
|
1412
|
-
break;
|
|
1413
|
-
case 3:
|
|
1414
|
-
message.proofClose = reader.bytes();
|
|
1415
|
-
break;
|
|
1416
|
-
case 4:
|
|
1417
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1418
|
-
break;
|
|
1419
|
-
case 5:
|
|
1420
|
-
message.nextSequenceRecv = reader.uint64();
|
|
1421
|
-
break;
|
|
1422
|
-
case 6:
|
|
1423
|
-
message.signer = reader.string();
|
|
1424
|
-
break;
|
|
1425
|
-
default:
|
|
1426
|
-
reader.skipType(tag & 7);
|
|
1427
|
-
break;
|
|
1428
|
-
}
|
|
1429
|
-
}
|
|
1430
|
-
return message;
|
|
1431
|
-
},
|
|
1432
|
-
fromJSON(object) {
|
|
1433
|
-
return {
|
|
1434
|
-
packet: isSet(object.packet) ? Packet.fromJSON(object.packet) : undefined,
|
|
1435
|
-
proofUnreceived: isSet(object.proofUnreceived)
|
|
1436
|
-
? bytesFromBase64(object.proofUnreceived)
|
|
1437
|
-
: new Uint8Array(),
|
|
1438
|
-
proofClose: isSet(object.proofClose)
|
|
1439
|
-
? bytesFromBase64(object.proofClose)
|
|
1440
|
-
: new Uint8Array(),
|
|
1441
|
-
proofHeight: isSet(object.proofHeight)
|
|
1442
|
-
? Height.fromJSON(object.proofHeight)
|
|
1443
|
-
: undefined,
|
|
1444
|
-
nextSequenceRecv: isSet(object.nextSequenceRecv)
|
|
1445
|
-
? BigInt(object.nextSequenceRecv.toString())
|
|
1446
|
-
: BigInt(0),
|
|
1447
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
1448
|
-
};
|
|
1449
|
-
},
|
|
1450
|
-
toJSON(message) {
|
|
1451
|
-
const obj = {};
|
|
1452
|
-
message.packet !== undefined &&
|
|
1453
|
-
(obj.packet = message.packet ? Packet.toJSON(message.packet) : undefined);
|
|
1454
|
-
message.proofUnreceived !== undefined &&
|
|
1455
|
-
(obj.proofUnreceived = base64FromBytes(message.proofUnreceived !== undefined
|
|
1456
|
-
? message.proofUnreceived
|
|
1457
|
-
: new Uint8Array()));
|
|
1458
|
-
message.proofClose !== undefined &&
|
|
1459
|
-
(obj.proofClose = base64FromBytes(message.proofClose !== undefined
|
|
1460
|
-
? message.proofClose
|
|
1461
|
-
: new Uint8Array()));
|
|
1462
|
-
message.proofHeight !== undefined &&
|
|
1463
|
-
(obj.proofHeight = message.proofHeight
|
|
1464
|
-
? Height.toJSON(message.proofHeight)
|
|
1465
|
-
: undefined);
|
|
1466
|
-
message.nextSequenceRecv !== undefined &&
|
|
1467
|
-
(obj.nextSequenceRecv = (message.nextSequenceRecv || BigInt(0)).toString());
|
|
1468
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
1469
|
-
return obj;
|
|
1470
|
-
},
|
|
1471
|
-
fromPartial(object) {
|
|
1472
|
-
const message = createBaseMsgTimeoutOnClose();
|
|
1473
|
-
message.packet =
|
|
1474
|
-
object.packet !== undefined && object.packet !== null
|
|
1475
|
-
? Packet.fromPartial(object.packet)
|
|
1476
|
-
: undefined;
|
|
1477
|
-
message.proofUnreceived = object.proofUnreceived ?? new Uint8Array();
|
|
1478
|
-
message.proofClose = object.proofClose ?? new Uint8Array();
|
|
1479
|
-
message.proofHeight =
|
|
1480
|
-
object.proofHeight !== undefined && object.proofHeight !== null
|
|
1481
|
-
? Height.fromPartial(object.proofHeight)
|
|
1482
|
-
: undefined;
|
|
1483
|
-
message.nextSequenceRecv =
|
|
1484
|
-
object.nextSequenceRecv !== undefined && object.nextSequenceRecv !== null
|
|
1485
|
-
? BigInt(object.nextSequenceRecv.toString())
|
|
1486
|
-
: BigInt(0);
|
|
1487
|
-
message.signer = object.signer ?? '';
|
|
1488
|
-
return message;
|
|
1489
|
-
},
|
|
1490
|
-
fromProtoMsg(message) {
|
|
1491
|
-
return MsgTimeoutOnClose.decode(message.value);
|
|
1492
|
-
},
|
|
1493
|
-
toProto(message) {
|
|
1494
|
-
return MsgTimeoutOnClose.encode(message).finish();
|
|
1495
|
-
},
|
|
1496
|
-
toProtoMsg(message) {
|
|
1497
|
-
return {
|
|
1498
|
-
typeUrl: '/ibc.core.channel.v1.MsgTimeoutOnClose',
|
|
1499
|
-
value: MsgTimeoutOnClose.encode(message).finish(),
|
|
1500
|
-
};
|
|
1501
|
-
},
|
|
1502
|
-
};
|
|
1503
|
-
function createBaseMsgTimeoutOnCloseResponse() {
|
|
1504
|
-
return {
|
|
1505
|
-
result: 0,
|
|
1506
|
-
};
|
|
1507
|
-
}
|
|
1508
|
-
export const MsgTimeoutOnCloseResponse = {
|
|
1509
|
-
typeUrl: '/ibc.core.channel.v1.MsgTimeoutOnCloseResponse',
|
|
1510
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1511
|
-
if (message.result !== 0) {
|
|
1512
|
-
writer.uint32(8).int32(message.result);
|
|
1513
|
-
}
|
|
1514
|
-
return writer;
|
|
1515
|
-
},
|
|
1516
|
-
decode(input, length) {
|
|
1517
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1518
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1519
|
-
const message = createBaseMsgTimeoutOnCloseResponse();
|
|
1520
|
-
while (reader.pos < end) {
|
|
1521
|
-
const tag = reader.uint32();
|
|
1522
|
-
switch (tag >>> 3) {
|
|
1523
|
-
case 1:
|
|
1524
|
-
message.result = reader.int32();
|
|
1525
|
-
break;
|
|
1526
|
-
default:
|
|
1527
|
-
reader.skipType(tag & 7);
|
|
1528
|
-
break;
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
return message;
|
|
1532
|
-
},
|
|
1533
|
-
fromJSON(object) {
|
|
1534
|
-
return {
|
|
1535
|
-
result: isSet(object.result)
|
|
1536
|
-
? responseResultTypeFromJSON(object.result)
|
|
1537
|
-
: -1,
|
|
1538
|
-
};
|
|
1539
|
-
},
|
|
1540
|
-
toJSON(message) {
|
|
1541
|
-
const obj = {};
|
|
1542
|
-
message.result !== undefined &&
|
|
1543
|
-
(obj.result = responseResultTypeToJSON(message.result));
|
|
1544
|
-
return obj;
|
|
1545
|
-
},
|
|
1546
|
-
fromPartial(object) {
|
|
1547
|
-
const message = createBaseMsgTimeoutOnCloseResponse();
|
|
1548
|
-
message.result = object.result ?? 0;
|
|
1549
|
-
return message;
|
|
1550
|
-
},
|
|
1551
|
-
fromProtoMsg(message) {
|
|
1552
|
-
return MsgTimeoutOnCloseResponse.decode(message.value);
|
|
1553
|
-
},
|
|
1554
|
-
toProto(message) {
|
|
1555
|
-
return MsgTimeoutOnCloseResponse.encode(message).finish();
|
|
1556
|
-
},
|
|
1557
|
-
toProtoMsg(message) {
|
|
1558
|
-
return {
|
|
1559
|
-
typeUrl: '/ibc.core.channel.v1.MsgTimeoutOnCloseResponse',
|
|
1560
|
-
value: MsgTimeoutOnCloseResponse.encode(message).finish(),
|
|
1561
|
-
};
|
|
1562
|
-
},
|
|
1563
|
-
};
|
|
1564
|
-
function createBaseMsgAcknowledgement() {
|
|
1565
|
-
return {
|
|
1566
|
-
packet: Packet.fromPartial({}),
|
|
1567
|
-
acknowledgement: new Uint8Array(),
|
|
1568
|
-
proofAcked: new Uint8Array(),
|
|
1569
|
-
proofHeight: Height.fromPartial({}),
|
|
1570
|
-
signer: '',
|
|
1571
|
-
};
|
|
1572
|
-
}
|
|
1573
|
-
export const MsgAcknowledgement = {
|
|
1574
|
-
typeUrl: '/ibc.core.channel.v1.MsgAcknowledgement',
|
|
1575
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1576
|
-
if (message.packet !== undefined) {
|
|
1577
|
-
Packet.encode(message.packet, writer.uint32(10).fork()).ldelim();
|
|
1578
|
-
}
|
|
1579
|
-
if (message.acknowledgement.length !== 0) {
|
|
1580
|
-
writer.uint32(18).bytes(message.acknowledgement);
|
|
1581
|
-
}
|
|
1582
|
-
if (message.proofAcked.length !== 0) {
|
|
1583
|
-
writer.uint32(26).bytes(message.proofAcked);
|
|
1584
|
-
}
|
|
1585
|
-
if (message.proofHeight !== undefined) {
|
|
1586
|
-
Height.encode(message.proofHeight, writer.uint32(34).fork()).ldelim();
|
|
1587
|
-
}
|
|
1588
|
-
if (message.signer !== '') {
|
|
1589
|
-
writer.uint32(42).string(message.signer);
|
|
1590
|
-
}
|
|
1591
|
-
return writer;
|
|
1592
|
-
},
|
|
1593
|
-
decode(input, length) {
|
|
1594
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1595
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1596
|
-
const message = createBaseMsgAcknowledgement();
|
|
1597
|
-
while (reader.pos < end) {
|
|
1598
|
-
const tag = reader.uint32();
|
|
1599
|
-
switch (tag >>> 3) {
|
|
1600
|
-
case 1:
|
|
1601
|
-
message.packet = Packet.decode(reader, reader.uint32());
|
|
1602
|
-
break;
|
|
1603
|
-
case 2:
|
|
1604
|
-
message.acknowledgement = reader.bytes();
|
|
1605
|
-
break;
|
|
1606
|
-
case 3:
|
|
1607
|
-
message.proofAcked = reader.bytes();
|
|
1608
|
-
break;
|
|
1609
|
-
case 4:
|
|
1610
|
-
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
1611
|
-
break;
|
|
1612
|
-
case 5:
|
|
1613
|
-
message.signer = reader.string();
|
|
1614
|
-
break;
|
|
1615
|
-
default:
|
|
1616
|
-
reader.skipType(tag & 7);
|
|
1617
|
-
break;
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
|
-
return message;
|
|
1621
|
-
},
|
|
1622
|
-
fromJSON(object) {
|
|
1623
|
-
return {
|
|
1624
|
-
packet: isSet(object.packet) ? Packet.fromJSON(object.packet) : undefined,
|
|
1625
|
-
acknowledgement: isSet(object.acknowledgement)
|
|
1626
|
-
? bytesFromBase64(object.acknowledgement)
|
|
1627
|
-
: new Uint8Array(),
|
|
1628
|
-
proofAcked: isSet(object.proofAcked)
|
|
1629
|
-
? bytesFromBase64(object.proofAcked)
|
|
1630
|
-
: new Uint8Array(),
|
|
1631
|
-
proofHeight: isSet(object.proofHeight)
|
|
1632
|
-
? Height.fromJSON(object.proofHeight)
|
|
1633
|
-
: undefined,
|
|
1634
|
-
signer: isSet(object.signer) ? String(object.signer) : '',
|
|
1635
|
-
};
|
|
1636
|
-
},
|
|
1637
|
-
toJSON(message) {
|
|
1638
|
-
const obj = {};
|
|
1639
|
-
message.packet !== undefined &&
|
|
1640
|
-
(obj.packet = message.packet ? Packet.toJSON(message.packet) : undefined);
|
|
1641
|
-
message.acknowledgement !== undefined &&
|
|
1642
|
-
(obj.acknowledgement = base64FromBytes(message.acknowledgement !== undefined
|
|
1643
|
-
? message.acknowledgement
|
|
1644
|
-
: new Uint8Array()));
|
|
1645
|
-
message.proofAcked !== undefined &&
|
|
1646
|
-
(obj.proofAcked = base64FromBytes(message.proofAcked !== undefined
|
|
1647
|
-
? message.proofAcked
|
|
1648
|
-
: new Uint8Array()));
|
|
1649
|
-
message.proofHeight !== undefined &&
|
|
1650
|
-
(obj.proofHeight = message.proofHeight
|
|
1651
|
-
? Height.toJSON(message.proofHeight)
|
|
1652
|
-
: undefined);
|
|
1653
|
-
message.signer !== undefined && (obj.signer = message.signer);
|
|
1654
|
-
return obj;
|
|
1655
|
-
},
|
|
1656
|
-
fromPartial(object) {
|
|
1657
|
-
const message = createBaseMsgAcknowledgement();
|
|
1658
|
-
message.packet =
|
|
1659
|
-
object.packet !== undefined && object.packet !== null
|
|
1660
|
-
? Packet.fromPartial(object.packet)
|
|
1661
|
-
: undefined;
|
|
1662
|
-
message.acknowledgement = object.acknowledgement ?? new Uint8Array();
|
|
1663
|
-
message.proofAcked = object.proofAcked ?? new Uint8Array();
|
|
1664
|
-
message.proofHeight =
|
|
1665
|
-
object.proofHeight !== undefined && object.proofHeight !== null
|
|
1666
|
-
? Height.fromPartial(object.proofHeight)
|
|
1667
|
-
: undefined;
|
|
1668
|
-
message.signer = object.signer ?? '';
|
|
1669
|
-
return message;
|
|
1670
|
-
},
|
|
1671
|
-
fromProtoMsg(message) {
|
|
1672
|
-
return MsgAcknowledgement.decode(message.value);
|
|
1673
|
-
},
|
|
1674
|
-
toProto(message) {
|
|
1675
|
-
return MsgAcknowledgement.encode(message).finish();
|
|
1676
|
-
},
|
|
1677
|
-
toProtoMsg(message) {
|
|
1678
|
-
return {
|
|
1679
|
-
typeUrl: '/ibc.core.channel.v1.MsgAcknowledgement',
|
|
1680
|
-
value: MsgAcknowledgement.encode(message).finish(),
|
|
1681
|
-
};
|
|
1682
|
-
},
|
|
1683
|
-
};
|
|
1684
|
-
function createBaseMsgAcknowledgementResponse() {
|
|
1685
|
-
return {
|
|
1686
|
-
result: 0,
|
|
1687
|
-
};
|
|
1688
|
-
}
|
|
1689
|
-
export const MsgAcknowledgementResponse = {
|
|
1690
|
-
typeUrl: '/ibc.core.channel.v1.MsgAcknowledgementResponse',
|
|
1691
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1692
|
-
if (message.result !== 0) {
|
|
1693
|
-
writer.uint32(8).int32(message.result);
|
|
1694
|
-
}
|
|
1695
|
-
return writer;
|
|
1696
|
-
},
|
|
1697
|
-
decode(input, length) {
|
|
1698
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1699
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1700
|
-
const message = createBaseMsgAcknowledgementResponse();
|
|
1701
|
-
while (reader.pos < end) {
|
|
1702
|
-
const tag = reader.uint32();
|
|
1703
|
-
switch (tag >>> 3) {
|
|
1704
|
-
case 1:
|
|
1705
|
-
message.result = reader.int32();
|
|
1706
|
-
break;
|
|
1707
|
-
default:
|
|
1708
|
-
reader.skipType(tag & 7);
|
|
1709
|
-
break;
|
|
1710
|
-
}
|
|
1711
|
-
}
|
|
1712
|
-
return message;
|
|
1713
|
-
},
|
|
1714
|
-
fromJSON(object) {
|
|
1715
|
-
return {
|
|
1716
|
-
result: isSet(object.result)
|
|
1717
|
-
? responseResultTypeFromJSON(object.result)
|
|
1718
|
-
: -1,
|
|
1719
|
-
};
|
|
1720
|
-
},
|
|
1721
|
-
toJSON(message) {
|
|
1722
|
-
const obj = {};
|
|
1723
|
-
message.result !== undefined &&
|
|
1724
|
-
(obj.result = responseResultTypeToJSON(message.result));
|
|
1725
|
-
return obj;
|
|
1726
|
-
},
|
|
1727
|
-
fromPartial(object) {
|
|
1728
|
-
const message = createBaseMsgAcknowledgementResponse();
|
|
1729
|
-
message.result = object.result ?? 0;
|
|
1730
|
-
return message;
|
|
1731
|
-
},
|
|
1732
|
-
fromProtoMsg(message) {
|
|
1733
|
-
return MsgAcknowledgementResponse.decode(message.value);
|
|
1734
|
-
},
|
|
1735
|
-
toProto(message) {
|
|
1736
|
-
return MsgAcknowledgementResponse.encode(message).finish();
|
|
1737
|
-
},
|
|
1738
|
-
toProtoMsg(message) {
|
|
1739
|
-
return {
|
|
1740
|
-
typeUrl: '/ibc.core.channel.v1.MsgAcknowledgementResponse',
|
|
1741
|
-
value: MsgAcknowledgementResponse.encode(message).finish(),
|
|
1742
|
-
};
|
|
1743
|
-
},
|
|
1744
|
-
};
|
|
1745
|
-
//# sourceMappingURL=tx.js.map
|
|
1
|
+
import{Channel as e,Packet as o}from"./channel.js";import{Height as n}from"../../client/v1/client.js";import{BinaryReader as r,BinaryWriter as t}from"../../../../binary.js";import{isSet as i,bytesFromBase64 as s,base64FromBytes as c}from"../../../../helpers.js";import{}from"../../../../json-safe.js";export var ResponseResultType;!function(e){e[e.RESPONSE_RESULT_TYPE_UNSPECIFIED=0]="RESPONSE_RESULT_TYPE_UNSPECIFIED",e[e.RESPONSE_RESULT_TYPE_NOOP=1]="RESPONSE_RESULT_TYPE_NOOP",e[e.RESPONSE_RESULT_TYPE_SUCCESS=2]="RESPONSE_RESULT_TYPE_SUCCESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ResponseResultType||(ResponseResultType={}));export const ResponseResultTypeSDKType=ResponseResultType;export function responseResultTypeFromJSON(e){switch(e){case 0:case"RESPONSE_RESULT_TYPE_UNSPECIFIED":return ResponseResultType.RESPONSE_RESULT_TYPE_UNSPECIFIED;case 1:case"RESPONSE_RESULT_TYPE_NOOP":return ResponseResultType.RESPONSE_RESULT_TYPE_NOOP;case 2:case"RESPONSE_RESULT_TYPE_SUCCESS":return ResponseResultType.RESPONSE_RESULT_TYPE_SUCCESS;default:return ResponseResultType.UNRECOGNIZED}}export function responseResultTypeToJSON(e){switch(e){case ResponseResultType.RESPONSE_RESULT_TYPE_UNSPECIFIED:return"RESPONSE_RESULT_TYPE_UNSPECIFIED";case ResponseResultType.RESPONSE_RESULT_TYPE_NOOP:return"RESPONSE_RESULT_TYPE_NOOP";case ResponseResultType.RESPONSE_RESULT_TYPE_SUCCESS:return"RESPONSE_RESULT_TYPE_SUCCESS";case ResponseResultType.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(){return{portId:"",channel:e.fromPartial({}),signer:""}}export const MsgChannelOpenInit={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenInit",encode:(o,n=t.create())=>(""!==o.portId&&n.uint32(10).string(o.portId),void 0!==o.channel&&e.encode(o.channel,n.uint32(18).fork()).ldelim(),""!==o.signer&&n.uint32(26).string(o.signer),n),decode(o,n){const t=o instanceof r?o:new r(o);let i=void 0===n?t.len:t.pos+n;const s=p();for(;t.pos<i;){const o=t.uint32();switch(o>>>3){case 1:s.portId=t.string();break;case 2:s.channel=e.decode(t,t.uint32());break;case 3:s.signer=t.string();break;default:t.skipType(7&o)}}return s},fromJSON:o=>({portId:i(o.portId)?String(o.portId):"",channel:i(o.channel)?e.fromJSON(o.channel):void 0,signer:i(o.signer)?String(o.signer):""}),toJSON(o){const n={};return void 0!==o.portId&&(n.portId=o.portId),void 0!==o.channel&&(n.channel=o.channel?e.toJSON(o.channel):void 0),void 0!==o.signer&&(n.signer=o.signer),n},fromPartial(o){const n=p();return n.portId=o.portId??"",n.channel=void 0!==o.channel&&null!==o.channel?e.fromPartial(o.channel):void 0,n.signer=o.signer??"",n},fromProtoMsg:e=>MsgChannelOpenInit.decode(e.value),toProto:e=>MsgChannelOpenInit.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenInit",value:MsgChannelOpenInit.encode(e).finish()})};export const MsgChannelOpenInitResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenInitResponse",encode:(e,o=t.create())=>(""!==e.channelId&&o.uint32(10).string(e.channelId),""!==e.version&&o.uint32(18).string(e.version),o),decode(e,o){const n=e instanceof r?e:new r(e);let t=void 0===o?n.len:n.pos+o;const i={channelId:"",version:""};for(;n.pos<t;){const e=n.uint32();switch(e>>>3){case 1:i.channelId=n.string();break;case 2:i.version=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({channelId:i(e.channelId)?String(e.channelId):"",version:i(e.version)?String(e.version):""}),toJSON(e){const o={};return void 0!==e.channelId&&(o.channelId=e.channelId),void 0!==e.version&&(o.version=e.version),o},fromPartial(e){const o={channelId:"",version:""};return o.channelId=e.channelId??"",o.version=e.version??"",o},fromProtoMsg:e=>MsgChannelOpenInitResponse.decode(e.value),toProto:e=>MsgChannelOpenInitResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenInitResponse",value:MsgChannelOpenInitResponse.encode(e).finish()})};function a(){return{portId:"",previousChannelId:"",channel:e.fromPartial({}),counterpartyVersion:"",proofInit:new Uint8Array,proofHeight:n.fromPartial({}),signer:""}}export const MsgChannelOpenTry={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenTry",encode:(o,r=t.create())=>(""!==o.portId&&r.uint32(10).string(o.portId),""!==o.previousChannelId&&r.uint32(18).string(o.previousChannelId),void 0!==o.channel&&e.encode(o.channel,r.uint32(26).fork()).ldelim(),""!==o.counterpartyVersion&&r.uint32(34).string(o.counterpartyVersion),0!==o.proofInit.length&&r.uint32(42).bytes(o.proofInit),void 0!==o.proofHeight&&n.encode(o.proofHeight,r.uint32(50).fork()).ldelim(),""!==o.signer&&r.uint32(58).string(o.signer),r),decode(o,t){const i=o instanceof r?o:new r(o);let s=void 0===t?i.len:i.pos+t;const c=a();for(;i.pos<s;){const o=i.uint32();switch(o>>>3){case 1:c.portId=i.string();break;case 2:c.previousChannelId=i.string();break;case 3:c.channel=e.decode(i,i.uint32());break;case 4:c.counterpartyVersion=i.string();break;case 5:c.proofInit=i.bytes();break;case 6:c.proofHeight=n.decode(i,i.uint32());break;case 7:c.signer=i.string();break;default:i.skipType(7&o)}}return c},fromJSON:o=>({portId:i(o.portId)?String(o.portId):"",previousChannelId:i(o.previousChannelId)?String(o.previousChannelId):"",channel:i(o.channel)?e.fromJSON(o.channel):void 0,counterpartyVersion:i(o.counterpartyVersion)?String(o.counterpartyVersion):"",proofInit:i(o.proofInit)?s(o.proofInit):new Uint8Array,proofHeight:i(o.proofHeight)?n.fromJSON(o.proofHeight):void 0,signer:i(o.signer)?String(o.signer):""}),toJSON(o){const r={};return void 0!==o.portId&&(r.portId=o.portId),void 0!==o.previousChannelId&&(r.previousChannelId=o.previousChannelId),void 0!==o.channel&&(r.channel=o.channel?e.toJSON(o.channel):void 0),void 0!==o.counterpartyVersion&&(r.counterpartyVersion=o.counterpartyVersion),void 0!==o.proofInit&&(r.proofInit=c(void 0!==o.proofInit?o.proofInit:new Uint8Array)),void 0!==o.proofHeight&&(r.proofHeight=o.proofHeight?n.toJSON(o.proofHeight):void 0),void 0!==o.signer&&(r.signer=o.signer),r},fromPartial(o){const r=a();return r.portId=o.portId??"",r.previousChannelId=o.previousChannelId??"",r.channel=void 0!==o.channel&&null!==o.channel?e.fromPartial(o.channel):void 0,r.counterpartyVersion=o.counterpartyVersion??"",r.proofInit=o.proofInit??new Uint8Array,r.proofHeight=void 0!==o.proofHeight&&null!==o.proofHeight?n.fromPartial(o.proofHeight):void 0,r.signer=o.signer??"",r},fromProtoMsg:e=>MsgChannelOpenTry.decode(e.value),toProto:e=>MsgChannelOpenTry.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenTry",value:MsgChannelOpenTry.encode(e).finish()})};export const MsgChannelOpenTryResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenTryResponse",encode:(e,o=t.create())=>(""!==e.version&&o.uint32(10).string(e.version),o),decode(e,o){const n=e instanceof r?e:new r(e);let t=void 0===o?n.len:n.pos+o;const i={version:""};for(;n.pos<t;){const e=n.uint32();if(e>>>3==1)i.version=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({version:i(e.version)?String(e.version):""}),toJSON(e){const o={};return void 0!==e.version&&(o.version=e.version),o},fromPartial(e){const o={version:""};return o.version=e.version??"",o},fromProtoMsg:e=>MsgChannelOpenTryResponse.decode(e.value),toProto:e=>MsgChannelOpenTryResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenTryResponse",value:MsgChannelOpenTryResponse.encode(e).finish()})};function l(){return{portId:"",channelId:"",counterpartyChannelId:"",counterpartyVersion:"",proofTry:new Uint8Array,proofHeight:n.fromPartial({}),signer:""}}export const MsgChannelOpenAck={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenAck",encode:(e,o=t.create())=>(""!==e.portId&&o.uint32(10).string(e.portId),""!==e.channelId&&o.uint32(18).string(e.channelId),""!==e.counterpartyChannelId&&o.uint32(26).string(e.counterpartyChannelId),""!==e.counterpartyVersion&&o.uint32(34).string(e.counterpartyVersion),0!==e.proofTry.length&&o.uint32(42).bytes(e.proofTry),void 0!==e.proofHeight&&n.encode(e.proofHeight,o.uint32(50).fork()).ldelim(),""!==e.signer&&o.uint32(58).string(e.signer),o),decode(e,o){const t=e instanceof r?e:new r(e);let i=void 0===o?t.len:t.pos+o;const s=l();for(;t.pos<i;){const e=t.uint32();switch(e>>>3){case 1:s.portId=t.string();break;case 2:s.channelId=t.string();break;case 3:s.counterpartyChannelId=t.string();break;case 4:s.counterpartyVersion=t.string();break;case 5:s.proofTry=t.bytes();break;case 6:s.proofHeight=n.decode(t,t.uint32());break;case 7:s.signer=t.string();break;default:t.skipType(7&e)}}return s},fromJSON:e=>({portId:i(e.portId)?String(e.portId):"",channelId:i(e.channelId)?String(e.channelId):"",counterpartyChannelId:i(e.counterpartyChannelId)?String(e.counterpartyChannelId):"",counterpartyVersion:i(e.counterpartyVersion)?String(e.counterpartyVersion):"",proofTry:i(e.proofTry)?s(e.proofTry):new Uint8Array,proofHeight:i(e.proofHeight)?n.fromJSON(e.proofHeight):void 0,signer:i(e.signer)?String(e.signer):""}),toJSON(e){const o={};return void 0!==e.portId&&(o.portId=e.portId),void 0!==e.channelId&&(o.channelId=e.channelId),void 0!==e.counterpartyChannelId&&(o.counterpartyChannelId=e.counterpartyChannelId),void 0!==e.counterpartyVersion&&(o.counterpartyVersion=e.counterpartyVersion),void 0!==e.proofTry&&(o.proofTry=c(void 0!==e.proofTry?e.proofTry:new Uint8Array)),void 0!==e.proofHeight&&(o.proofHeight=e.proofHeight?n.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(o.signer=e.signer),o},fromPartial(e){const o=l();return o.portId=e.portId??"",o.channelId=e.channelId??"",o.counterpartyChannelId=e.counterpartyChannelId??"",o.counterpartyVersion=e.counterpartyVersion??"",o.proofTry=e.proofTry??new Uint8Array,o.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?n.fromPartial(e.proofHeight):void 0,o.signer=e.signer??"",o},fromProtoMsg:e=>MsgChannelOpenAck.decode(e.value),toProto:e=>MsgChannelOpenAck.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenAck",value:MsgChannelOpenAck.encode(e).finish()})};export const MsgChannelOpenAckResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenAckResponse",encode:(e,o=t.create())=>o,decode(e,o){const n=e instanceof r?e:new r(e);let t=void 0===o?n.len:n.pos+o;const i={};for(;n.pos<t;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgChannelOpenAckResponse.decode(e.value),toProto:e=>MsgChannelOpenAckResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenAckResponse",value:MsgChannelOpenAckResponse.encode(e).finish()})};function d(){return{portId:"",channelId:"",proofAck:new Uint8Array,proofHeight:n.fromPartial({}),signer:""}}export const MsgChannelOpenConfirm={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenConfirm",encode:(e,o=t.create())=>(""!==e.portId&&o.uint32(10).string(e.portId),""!==e.channelId&&o.uint32(18).string(e.channelId),0!==e.proofAck.length&&o.uint32(26).bytes(e.proofAck),void 0!==e.proofHeight&&n.encode(e.proofHeight,o.uint32(34).fork()).ldelim(),""!==e.signer&&o.uint32(42).string(e.signer),o),decode(e,o){const t=e instanceof r?e:new r(e);let i=void 0===o?t.len:t.pos+o;const s=d();for(;t.pos<i;){const e=t.uint32();switch(e>>>3){case 1:s.portId=t.string();break;case 2:s.channelId=t.string();break;case 3:s.proofAck=t.bytes();break;case 4:s.proofHeight=n.decode(t,t.uint32());break;case 5:s.signer=t.string();break;default:t.skipType(7&e)}}return s},fromJSON:e=>({portId:i(e.portId)?String(e.portId):"",channelId:i(e.channelId)?String(e.channelId):"",proofAck:i(e.proofAck)?s(e.proofAck):new Uint8Array,proofHeight:i(e.proofHeight)?n.fromJSON(e.proofHeight):void 0,signer:i(e.signer)?String(e.signer):""}),toJSON(e){const o={};return void 0!==e.portId&&(o.portId=e.portId),void 0!==e.channelId&&(o.channelId=e.channelId),void 0!==e.proofAck&&(o.proofAck=c(void 0!==e.proofAck?e.proofAck:new Uint8Array)),void 0!==e.proofHeight&&(o.proofHeight=e.proofHeight?n.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(o.signer=e.signer),o},fromPartial(e){const o=d();return o.portId=e.portId??"",o.channelId=e.channelId??"",o.proofAck=e.proofAck??new Uint8Array,o.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?n.fromPartial(e.proofHeight):void 0,o.signer=e.signer??"",o},fromProtoMsg:e=>MsgChannelOpenConfirm.decode(e.value),toProto:e=>MsgChannelOpenConfirm.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenConfirm",value:MsgChannelOpenConfirm.encode(e).finish()})};export const MsgChannelOpenConfirmResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelOpenConfirmResponse",encode:(e,o=t.create())=>o,decode(e,o){const n=e instanceof r?e:new r(e);let t=void 0===o?n.len:n.pos+o;const i={};for(;n.pos<t;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgChannelOpenConfirmResponse.decode(e.value),toProto:e=>MsgChannelOpenConfirmResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenConfirmResponse",value:MsgChannelOpenConfirmResponse.encode(e).finish()})};export const MsgChannelCloseInit={typeUrl:"/ibc.core.channel.v1.MsgChannelCloseInit",encode:(e,o=t.create())=>(""!==e.portId&&o.uint32(10).string(e.portId),""!==e.channelId&&o.uint32(18).string(e.channelId),""!==e.signer&&o.uint32(26).string(e.signer),o),decode(e,o){const n=e instanceof r?e:new r(e);let t=void 0===o?n.len:n.pos+o;const i={portId:"",channelId:"",signer:""};for(;n.pos<t;){const e=n.uint32();switch(e>>>3){case 1:i.portId=n.string();break;case 2:i.channelId=n.string();break;case 3:i.signer=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({portId:i(e.portId)?String(e.portId):"",channelId:i(e.channelId)?String(e.channelId):"",signer:i(e.signer)?String(e.signer):""}),toJSON(e){const o={};return void 0!==e.portId&&(o.portId=e.portId),void 0!==e.channelId&&(o.channelId=e.channelId),void 0!==e.signer&&(o.signer=e.signer),o},fromPartial(e){const o={portId:"",channelId:"",signer:""};return o.portId=e.portId??"",o.channelId=e.channelId??"",o.signer=e.signer??"",o},fromProtoMsg:e=>MsgChannelCloseInit.decode(e.value),toProto:e=>MsgChannelCloseInit.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgChannelCloseInit",value:MsgChannelCloseInit.encode(e).finish()})};export const MsgChannelCloseInitResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelCloseInitResponse",encode:(e,o=t.create())=>o,decode(e,o){const n=e instanceof r?e:new r(e);let t=void 0===o?n.len:n.pos+o;const i={};for(;n.pos<t;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgChannelCloseInitResponse.decode(e.value),toProto:e=>MsgChannelCloseInitResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgChannelCloseInitResponse",value:MsgChannelCloseInitResponse.encode(e).finish()})};function g(){return{portId:"",channelId:"",proofInit:new Uint8Array,proofHeight:n.fromPartial({}),signer:""}}export const MsgChannelCloseConfirm={typeUrl:"/ibc.core.channel.v1.MsgChannelCloseConfirm",encode:(e,o=t.create())=>(""!==e.portId&&o.uint32(10).string(e.portId),""!==e.channelId&&o.uint32(18).string(e.channelId),0!==e.proofInit.length&&o.uint32(26).bytes(e.proofInit),void 0!==e.proofHeight&&n.encode(e.proofHeight,o.uint32(34).fork()).ldelim(),""!==e.signer&&o.uint32(42).string(e.signer),o),decode(e,o){const t=e instanceof r?e:new r(e);let i=void 0===o?t.len:t.pos+o;const s=g();for(;t.pos<i;){const e=t.uint32();switch(e>>>3){case 1:s.portId=t.string();break;case 2:s.channelId=t.string();break;case 3:s.proofInit=t.bytes();break;case 4:s.proofHeight=n.decode(t,t.uint32());break;case 5:s.signer=t.string();break;default:t.skipType(7&e)}}return s},fromJSON:e=>({portId:i(e.portId)?String(e.portId):"",channelId:i(e.channelId)?String(e.channelId):"",proofInit:i(e.proofInit)?s(e.proofInit):new Uint8Array,proofHeight:i(e.proofHeight)?n.fromJSON(e.proofHeight):void 0,signer:i(e.signer)?String(e.signer):""}),toJSON(e){const o={};return void 0!==e.portId&&(o.portId=e.portId),void 0!==e.channelId&&(o.channelId=e.channelId),void 0!==e.proofInit&&(o.proofInit=c(void 0!==e.proofInit?e.proofInit:new Uint8Array)),void 0!==e.proofHeight&&(o.proofHeight=e.proofHeight?n.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(o.signer=e.signer),o},fromPartial(e){const o=g();return o.portId=e.portId??"",o.channelId=e.channelId??"",o.proofInit=e.proofInit??new Uint8Array,o.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?n.fromPartial(e.proofHeight):void 0,o.signer=e.signer??"",o},fromProtoMsg:e=>MsgChannelCloseConfirm.decode(e.value),toProto:e=>MsgChannelCloseConfirm.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgChannelCloseConfirm",value:MsgChannelCloseConfirm.encode(e).finish()})};export const MsgChannelCloseConfirmResponse={typeUrl:"/ibc.core.channel.v1.MsgChannelCloseConfirmResponse",encode:(e,o=t.create())=>o,decode(e,o){const n=e instanceof r?e:new r(e);let t=void 0===o?n.len:n.pos+o;const i={};for(;n.pos<t;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgChannelCloseConfirmResponse.decode(e.value),toProto:e=>MsgChannelCloseConfirmResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgChannelCloseConfirmResponse",value:MsgChannelCloseConfirmResponse.encode(e).finish()})};function f(){return{packet:o.fromPartial({}),proofCommitment:new Uint8Array,proofHeight:n.fromPartial({}),signer:""}}export const MsgRecvPacket={typeUrl:"/ibc.core.channel.v1.MsgRecvPacket",encode:(e,r=t.create())=>(void 0!==e.packet&&o.encode(e.packet,r.uint32(10).fork()).ldelim(),0!==e.proofCommitment.length&&r.uint32(18).bytes(e.proofCommitment),void 0!==e.proofHeight&&n.encode(e.proofHeight,r.uint32(26).fork()).ldelim(),""!==e.signer&&r.uint32(34).string(e.signer),r),decode(e,t){const i=e instanceof r?e:new r(e);let s=void 0===t?i.len:i.pos+t;const c=f();for(;i.pos<s;){const e=i.uint32();switch(e>>>3){case 1:c.packet=o.decode(i,i.uint32());break;case 2:c.proofCommitment=i.bytes();break;case 3:c.proofHeight=n.decode(i,i.uint32());break;case 4:c.signer=i.string();break;default:i.skipType(7&e)}}return c},fromJSON:e=>({packet:i(e.packet)?o.fromJSON(e.packet):void 0,proofCommitment:i(e.proofCommitment)?s(e.proofCommitment):new Uint8Array,proofHeight:i(e.proofHeight)?n.fromJSON(e.proofHeight):void 0,signer:i(e.signer)?String(e.signer):""}),toJSON(e){const r={};return void 0!==e.packet&&(r.packet=e.packet?o.toJSON(e.packet):void 0),void 0!==e.proofCommitment&&(r.proofCommitment=c(void 0!==e.proofCommitment?e.proofCommitment:new Uint8Array)),void 0!==e.proofHeight&&(r.proofHeight=e.proofHeight?n.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(r.signer=e.signer),r},fromPartial(e){const r=f();return r.packet=void 0!==e.packet&&null!==e.packet?o.fromPartial(e.packet):void 0,r.proofCommitment=e.proofCommitment??new Uint8Array,r.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?n.fromPartial(e.proofHeight):void 0,r.signer=e.signer??"",r},fromProtoMsg:e=>MsgRecvPacket.decode(e.value),toProto:e=>MsgRecvPacket.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgRecvPacket",value:MsgRecvPacket.encode(e).finish()})};export const MsgRecvPacketResponse={typeUrl:"/ibc.core.channel.v1.MsgRecvPacketResponse",encode:(e,o=t.create())=>(0!==e.result&&o.uint32(8).int32(e.result),o),decode(e,o){const n=e instanceof r?e:new r(e);let t=void 0===o?n.len:n.pos+o;const i={result:0};for(;n.pos<t;){const e=n.uint32();if(e>>>3==1)i.result=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({result:i(e.result)?responseResultTypeFromJSON(e.result):-1}),toJSON(e){const o={};return void 0!==e.result&&(o.result=responseResultTypeToJSON(e.result)),o},fromPartial(e){const o={result:0};return o.result=e.result??0,o},fromProtoMsg:e=>MsgRecvPacketResponse.decode(e.value),toProto:e=>MsgRecvPacketResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgRecvPacketResponse",value:MsgRecvPacketResponse.encode(e).finish()})};function u(){return{packet:o.fromPartial({}),proofUnreceived:new Uint8Array,proofHeight:n.fromPartial({}),nextSequenceRecv:BigInt(0),signer:""}}export const MsgTimeout={typeUrl:"/ibc.core.channel.v1.MsgTimeout",encode:(e,r=t.create())=>(void 0!==e.packet&&o.encode(e.packet,r.uint32(10).fork()).ldelim(),0!==e.proofUnreceived.length&&r.uint32(18).bytes(e.proofUnreceived),void 0!==e.proofHeight&&n.encode(e.proofHeight,r.uint32(26).fork()).ldelim(),e.nextSequenceRecv!==BigInt(0)&&r.uint32(32).uint64(e.nextSequenceRecv),""!==e.signer&&r.uint32(42).string(e.signer),r),decode(e,t){const i=e instanceof r?e:new r(e);let s=void 0===t?i.len:i.pos+t;const c=u();for(;i.pos<s;){const e=i.uint32();switch(e>>>3){case 1:c.packet=o.decode(i,i.uint32());break;case 2:c.proofUnreceived=i.bytes();break;case 3:c.proofHeight=n.decode(i,i.uint32());break;case 4:c.nextSequenceRecv=i.uint64();break;case 5:c.signer=i.string();break;default:i.skipType(7&e)}}return c},fromJSON:e=>({packet:i(e.packet)?o.fromJSON(e.packet):void 0,proofUnreceived:i(e.proofUnreceived)?s(e.proofUnreceived):new Uint8Array,proofHeight:i(e.proofHeight)?n.fromJSON(e.proofHeight):void 0,nextSequenceRecv:i(e.nextSequenceRecv)?BigInt(e.nextSequenceRecv.toString()):BigInt(0),signer:i(e.signer)?String(e.signer):""}),toJSON(e){const r={};return void 0!==e.packet&&(r.packet=e.packet?o.toJSON(e.packet):void 0),void 0!==e.proofUnreceived&&(r.proofUnreceived=c(void 0!==e.proofUnreceived?e.proofUnreceived:new Uint8Array)),void 0!==e.proofHeight&&(r.proofHeight=e.proofHeight?n.toJSON(e.proofHeight):void 0),void 0!==e.nextSequenceRecv&&(r.nextSequenceRecv=(e.nextSequenceRecv||BigInt(0)).toString()),void 0!==e.signer&&(r.signer=e.signer),r},fromPartial(e){const r=u();return r.packet=void 0!==e.packet&&null!==e.packet?o.fromPartial(e.packet):void 0,r.proofUnreceived=e.proofUnreceived??new Uint8Array,r.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?n.fromPartial(e.proofHeight):void 0,r.nextSequenceRecv=void 0!==e.nextSequenceRecv&&null!==e.nextSequenceRecv?BigInt(e.nextSequenceRecv.toString()):BigInt(0),r.signer=e.signer??"",r},fromProtoMsg:e=>MsgTimeout.decode(e.value),toProto:e=>MsgTimeout.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgTimeout",value:MsgTimeout.encode(e).finish()})};export const MsgTimeoutResponse={typeUrl:"/ibc.core.channel.v1.MsgTimeoutResponse",encode:(e,o=t.create())=>(0!==e.result&&o.uint32(8).int32(e.result),o),decode(e,o){const n=e instanceof r?e:new r(e);let t=void 0===o?n.len:n.pos+o;const i={result:0};for(;n.pos<t;){const e=n.uint32();if(e>>>3==1)i.result=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({result:i(e.result)?responseResultTypeFromJSON(e.result):-1}),toJSON(e){const o={};return void 0!==e.result&&(o.result=responseResultTypeToJSON(e.result)),o},fromPartial(e){const o={result:0};return o.result=e.result??0,o},fromProtoMsg:e=>MsgTimeoutResponse.decode(e.value),toProto:e=>MsgTimeoutResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgTimeoutResponse",value:MsgTimeoutResponse.encode(e).finish()})};function h(){return{packet:o.fromPartial({}),proofUnreceived:new Uint8Array,proofClose:new Uint8Array,proofHeight:n.fromPartial({}),nextSequenceRecv:BigInt(0),signer:""}}export const MsgTimeoutOnClose={typeUrl:"/ibc.core.channel.v1.MsgTimeoutOnClose",encode:(e,r=t.create())=>(void 0!==e.packet&&o.encode(e.packet,r.uint32(10).fork()).ldelim(),0!==e.proofUnreceived.length&&r.uint32(18).bytes(e.proofUnreceived),0!==e.proofClose.length&&r.uint32(26).bytes(e.proofClose),void 0!==e.proofHeight&&n.encode(e.proofHeight,r.uint32(34).fork()).ldelim(),e.nextSequenceRecv!==BigInt(0)&&r.uint32(40).uint64(e.nextSequenceRecv),""!==e.signer&&r.uint32(50).string(e.signer),r),decode(e,t){const i=e instanceof r?e:new r(e);let s=void 0===t?i.len:i.pos+t;const c=h();for(;i.pos<s;){const e=i.uint32();switch(e>>>3){case 1:c.packet=o.decode(i,i.uint32());break;case 2:c.proofUnreceived=i.bytes();break;case 3:c.proofClose=i.bytes();break;case 4:c.proofHeight=n.decode(i,i.uint32());break;case 5:c.nextSequenceRecv=i.uint64();break;case 6:c.signer=i.string();break;default:i.skipType(7&e)}}return c},fromJSON:e=>({packet:i(e.packet)?o.fromJSON(e.packet):void 0,proofUnreceived:i(e.proofUnreceived)?s(e.proofUnreceived):new Uint8Array,proofClose:i(e.proofClose)?s(e.proofClose):new Uint8Array,proofHeight:i(e.proofHeight)?n.fromJSON(e.proofHeight):void 0,nextSequenceRecv:i(e.nextSequenceRecv)?BigInt(e.nextSequenceRecv.toString()):BigInt(0),signer:i(e.signer)?String(e.signer):""}),toJSON(e){const r={};return void 0!==e.packet&&(r.packet=e.packet?o.toJSON(e.packet):void 0),void 0!==e.proofUnreceived&&(r.proofUnreceived=c(void 0!==e.proofUnreceived?e.proofUnreceived:new Uint8Array)),void 0!==e.proofClose&&(r.proofClose=c(void 0!==e.proofClose?e.proofClose:new Uint8Array)),void 0!==e.proofHeight&&(r.proofHeight=e.proofHeight?n.toJSON(e.proofHeight):void 0),void 0!==e.nextSequenceRecv&&(r.nextSequenceRecv=(e.nextSequenceRecv||BigInt(0)).toString()),void 0!==e.signer&&(r.signer=e.signer),r},fromPartial(e){const r=h();return r.packet=void 0!==e.packet&&null!==e.packet?o.fromPartial(e.packet):void 0,r.proofUnreceived=e.proofUnreceived??new Uint8Array,r.proofClose=e.proofClose??new Uint8Array,r.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?n.fromPartial(e.proofHeight):void 0,r.nextSequenceRecv=void 0!==e.nextSequenceRecv&&null!==e.nextSequenceRecv?BigInt(e.nextSequenceRecv.toString()):BigInt(0),r.signer=e.signer??"",r},fromProtoMsg:e=>MsgTimeoutOnClose.decode(e.value),toProto:e=>MsgTimeoutOnClose.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgTimeoutOnClose",value:MsgTimeoutOnClose.encode(e).finish()})};export const MsgTimeoutOnCloseResponse={typeUrl:"/ibc.core.channel.v1.MsgTimeoutOnCloseResponse",encode:(e,o=t.create())=>(0!==e.result&&o.uint32(8).int32(e.result),o),decode(e,o){const n=e instanceof r?e:new r(e);let t=void 0===o?n.len:n.pos+o;const i={result:0};for(;n.pos<t;){const e=n.uint32();if(e>>>3==1)i.result=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({result:i(e.result)?responseResultTypeFromJSON(e.result):-1}),toJSON(e){const o={};return void 0!==e.result&&(o.result=responseResultTypeToJSON(e.result)),o},fromPartial(e){const o={result:0};return o.result=e.result??0,o},fromProtoMsg:e=>MsgTimeoutOnCloseResponse.decode(e.value),toProto:e=>MsgTimeoutOnCloseResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgTimeoutOnCloseResponse",value:MsgTimeoutOnCloseResponse.encode(e).finish()})};function v(){return{packet:o.fromPartial({}),acknowledgement:new Uint8Array,proofAcked:new Uint8Array,proofHeight:n.fromPartial({}),signer:""}}export const MsgAcknowledgement={typeUrl:"/ibc.core.channel.v1.MsgAcknowledgement",encode:(e,r=t.create())=>(void 0!==e.packet&&o.encode(e.packet,r.uint32(10).fork()).ldelim(),0!==e.acknowledgement.length&&r.uint32(18).bytes(e.acknowledgement),0!==e.proofAcked.length&&r.uint32(26).bytes(e.proofAcked),void 0!==e.proofHeight&&n.encode(e.proofHeight,r.uint32(34).fork()).ldelim(),""!==e.signer&&r.uint32(42).string(e.signer),r),decode(e,t){const i=e instanceof r?e:new r(e);let s=void 0===t?i.len:i.pos+t;const c=v();for(;i.pos<s;){const e=i.uint32();switch(e>>>3){case 1:c.packet=o.decode(i,i.uint32());break;case 2:c.acknowledgement=i.bytes();break;case 3:c.proofAcked=i.bytes();break;case 4:c.proofHeight=n.decode(i,i.uint32());break;case 5:c.signer=i.string();break;default:i.skipType(7&e)}}return c},fromJSON:e=>({packet:i(e.packet)?o.fromJSON(e.packet):void 0,acknowledgement:i(e.acknowledgement)?s(e.acknowledgement):new Uint8Array,proofAcked:i(e.proofAcked)?s(e.proofAcked):new Uint8Array,proofHeight:i(e.proofHeight)?n.fromJSON(e.proofHeight):void 0,signer:i(e.signer)?String(e.signer):""}),toJSON(e){const r={};return void 0!==e.packet&&(r.packet=e.packet?o.toJSON(e.packet):void 0),void 0!==e.acknowledgement&&(r.acknowledgement=c(void 0!==e.acknowledgement?e.acknowledgement:new Uint8Array)),void 0!==e.proofAcked&&(r.proofAcked=c(void 0!==e.proofAcked?e.proofAcked:new Uint8Array)),void 0!==e.proofHeight&&(r.proofHeight=e.proofHeight?n.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(r.signer=e.signer),r},fromPartial(e){const r=v();return r.packet=void 0!==e.packet&&null!==e.packet?o.fromPartial(e.packet):void 0,r.acknowledgement=e.acknowledgement??new Uint8Array,r.proofAcked=e.proofAcked??new Uint8Array,r.proofHeight=void 0!==e.proofHeight&&null!==e.proofHeight?n.fromPartial(e.proofHeight):void 0,r.signer=e.signer??"",r},fromProtoMsg:e=>MsgAcknowledgement.decode(e.value),toProto:e=>MsgAcknowledgement.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgAcknowledgement",value:MsgAcknowledgement.encode(e).finish()})};export const MsgAcknowledgementResponse={typeUrl:"/ibc.core.channel.v1.MsgAcknowledgementResponse",encode:(e,o=t.create())=>(0!==e.result&&o.uint32(8).int32(e.result),o),decode(e,o){const n=e instanceof r?e:new r(e);let t=void 0===o?n.len:n.pos+o;const i={result:0};for(;n.pos<t;){const e=n.uint32();if(e>>>3==1)i.result=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({result:i(e.result)?responseResultTypeFromJSON(e.result):-1}),toJSON(e){const o={};return void 0!==e.result&&(o.result=responseResultTypeToJSON(e.result)),o},fromPartial(e){const o={result:0};return o.result=e.result??0,o},fromProtoMsg:e=>MsgAcknowledgementResponse.decode(e.value),toProto:e=>MsgAcknowledgementResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.MsgAcknowledgementResponse",value:MsgAcknowledgementResponse.encode(e).finish()})};
|