@layerzerolabs/lz-evm-oapp-v1 2.0.1 → 2.0.3

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/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ exports.__esModule = true;
17
+ __exportStar(require("./typechain-types"), exports);
18
+ __exportStar(require("./typechain-types/common"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ exports.__esModule = true;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.mocks = exports.lzApp = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ exports.lzApp = require("./lzApp");
8
+ exports.mocks = require("./mocks");
@@ -0,0 +1,468 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ exports.__esModule = true;
6
+ exports.LzApp__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: true,
14
+ internalType: "address",
15
+ name: "previousOwner",
16
+ type: "address"
17
+ },
18
+ {
19
+ indexed: true,
20
+ internalType: "address",
21
+ name: "newOwner",
22
+ type: "address"
23
+ },
24
+ ],
25
+ name: "OwnershipTransferred",
26
+ type: "event"
27
+ },
28
+ {
29
+ anonymous: false,
30
+ inputs: [
31
+ {
32
+ indexed: false,
33
+ internalType: "uint16",
34
+ name: "_dstChainId",
35
+ type: "uint16"
36
+ },
37
+ {
38
+ indexed: false,
39
+ internalType: "uint16",
40
+ name: "_type",
41
+ type: "uint16"
42
+ },
43
+ {
44
+ indexed: false,
45
+ internalType: "uint256",
46
+ name: "_minDstGas",
47
+ type: "uint256"
48
+ },
49
+ ],
50
+ name: "SetMinDstGas",
51
+ type: "event"
52
+ },
53
+ {
54
+ anonymous: false,
55
+ inputs: [
56
+ {
57
+ indexed: false,
58
+ internalType: "address",
59
+ name: "precrime",
60
+ type: "address"
61
+ },
62
+ ],
63
+ name: "SetPrecrime",
64
+ type: "event"
65
+ },
66
+ {
67
+ anonymous: false,
68
+ inputs: [
69
+ {
70
+ indexed: false,
71
+ internalType: "uint16",
72
+ name: "_remoteChainId",
73
+ type: "uint16"
74
+ },
75
+ {
76
+ indexed: false,
77
+ internalType: "bytes",
78
+ name: "_path",
79
+ type: "bytes"
80
+ },
81
+ ],
82
+ name: "SetTrustedRemote",
83
+ type: "event"
84
+ },
85
+ {
86
+ anonymous: false,
87
+ inputs: [
88
+ {
89
+ indexed: false,
90
+ internalType: "uint16",
91
+ name: "_remoteChainId",
92
+ type: "uint16"
93
+ },
94
+ {
95
+ indexed: false,
96
+ internalType: "bytes",
97
+ name: "_remoteAddress",
98
+ type: "bytes"
99
+ },
100
+ ],
101
+ name: "SetTrustedRemoteAddress",
102
+ type: "event"
103
+ },
104
+ {
105
+ inputs: [
106
+ {
107
+ internalType: "uint16",
108
+ name: "_srcChainId",
109
+ type: "uint16"
110
+ },
111
+ {
112
+ internalType: "bytes",
113
+ name: "_srcAddress",
114
+ type: "bytes"
115
+ },
116
+ ],
117
+ name: "forceResumeReceive",
118
+ outputs: [],
119
+ stateMutability: "nonpayable",
120
+ type: "function"
121
+ },
122
+ {
123
+ inputs: [
124
+ {
125
+ internalType: "uint16",
126
+ name: "_version",
127
+ type: "uint16"
128
+ },
129
+ {
130
+ internalType: "uint16",
131
+ name: "_chainId",
132
+ type: "uint16"
133
+ },
134
+ {
135
+ internalType: "address",
136
+ name: "",
137
+ type: "address"
138
+ },
139
+ {
140
+ internalType: "uint256",
141
+ name: "_configType",
142
+ type: "uint256"
143
+ },
144
+ ],
145
+ name: "getConfig",
146
+ outputs: [
147
+ {
148
+ internalType: "bytes",
149
+ name: "",
150
+ type: "bytes"
151
+ },
152
+ ],
153
+ stateMutability: "view",
154
+ type: "function"
155
+ },
156
+ {
157
+ inputs: [
158
+ {
159
+ internalType: "uint16",
160
+ name: "_remoteChainId",
161
+ type: "uint16"
162
+ },
163
+ ],
164
+ name: "getTrustedRemoteAddress",
165
+ outputs: [
166
+ {
167
+ internalType: "bytes",
168
+ name: "",
169
+ type: "bytes"
170
+ },
171
+ ],
172
+ stateMutability: "view",
173
+ type: "function"
174
+ },
175
+ {
176
+ inputs: [
177
+ {
178
+ internalType: "uint16",
179
+ name: "_srcChainId",
180
+ type: "uint16"
181
+ },
182
+ {
183
+ internalType: "bytes",
184
+ name: "_srcAddress",
185
+ type: "bytes"
186
+ },
187
+ ],
188
+ name: "isTrustedRemote",
189
+ outputs: [
190
+ {
191
+ internalType: "bool",
192
+ name: "",
193
+ type: "bool"
194
+ },
195
+ ],
196
+ stateMutability: "view",
197
+ type: "function"
198
+ },
199
+ {
200
+ inputs: [],
201
+ name: "lzEndpoint",
202
+ outputs: [
203
+ {
204
+ internalType: "contract ILayerZeroEndpoint",
205
+ name: "",
206
+ type: "address"
207
+ },
208
+ ],
209
+ stateMutability: "view",
210
+ type: "function"
211
+ },
212
+ {
213
+ inputs: [
214
+ {
215
+ internalType: "uint16",
216
+ name: "_srcChainId",
217
+ type: "uint16"
218
+ },
219
+ {
220
+ internalType: "bytes",
221
+ name: "_srcAddress",
222
+ type: "bytes"
223
+ },
224
+ {
225
+ internalType: "uint64",
226
+ name: "_nonce",
227
+ type: "uint64"
228
+ },
229
+ {
230
+ internalType: "bytes",
231
+ name: "_payload",
232
+ type: "bytes"
233
+ },
234
+ ],
235
+ name: "lzReceive",
236
+ outputs: [],
237
+ stateMutability: "nonpayable",
238
+ type: "function"
239
+ },
240
+ {
241
+ inputs: [
242
+ {
243
+ internalType: "uint16",
244
+ name: "",
245
+ type: "uint16"
246
+ },
247
+ {
248
+ internalType: "uint16",
249
+ name: "",
250
+ type: "uint16"
251
+ },
252
+ ],
253
+ name: "minDstGasLookup",
254
+ outputs: [
255
+ {
256
+ internalType: "uint256",
257
+ name: "",
258
+ type: "uint256"
259
+ },
260
+ ],
261
+ stateMutability: "view",
262
+ type: "function"
263
+ },
264
+ {
265
+ inputs: [],
266
+ name: "owner",
267
+ outputs: [
268
+ {
269
+ internalType: "address",
270
+ name: "",
271
+ type: "address"
272
+ },
273
+ ],
274
+ stateMutability: "view",
275
+ type: "function"
276
+ },
277
+ {
278
+ inputs: [],
279
+ name: "precrime",
280
+ outputs: [
281
+ {
282
+ internalType: "address",
283
+ name: "",
284
+ type: "address"
285
+ },
286
+ ],
287
+ stateMutability: "view",
288
+ type: "function"
289
+ },
290
+ {
291
+ inputs: [],
292
+ name: "renounceOwnership",
293
+ outputs: [],
294
+ stateMutability: "nonpayable",
295
+ type: "function"
296
+ },
297
+ {
298
+ inputs: [
299
+ {
300
+ internalType: "uint16",
301
+ name: "_version",
302
+ type: "uint16"
303
+ },
304
+ {
305
+ internalType: "uint16",
306
+ name: "_chainId",
307
+ type: "uint16"
308
+ },
309
+ {
310
+ internalType: "uint256",
311
+ name: "_configType",
312
+ type: "uint256"
313
+ },
314
+ {
315
+ internalType: "bytes",
316
+ name: "_config",
317
+ type: "bytes"
318
+ },
319
+ ],
320
+ name: "setConfig",
321
+ outputs: [],
322
+ stateMutability: "nonpayable",
323
+ type: "function"
324
+ },
325
+ {
326
+ inputs: [
327
+ {
328
+ internalType: "uint16",
329
+ name: "_dstChainId",
330
+ type: "uint16"
331
+ },
332
+ {
333
+ internalType: "uint16",
334
+ name: "_packetType",
335
+ type: "uint16"
336
+ },
337
+ {
338
+ internalType: "uint256",
339
+ name: "_minGas",
340
+ type: "uint256"
341
+ },
342
+ ],
343
+ name: "setMinDstGas",
344
+ outputs: [],
345
+ stateMutability: "nonpayable",
346
+ type: "function"
347
+ },
348
+ {
349
+ inputs: [
350
+ {
351
+ internalType: "address",
352
+ name: "_precrime",
353
+ type: "address"
354
+ },
355
+ ],
356
+ name: "setPrecrime",
357
+ outputs: [],
358
+ stateMutability: "nonpayable",
359
+ type: "function"
360
+ },
361
+ {
362
+ inputs: [
363
+ {
364
+ internalType: "uint16",
365
+ name: "_version",
366
+ type: "uint16"
367
+ },
368
+ ],
369
+ name: "setReceiveVersion",
370
+ outputs: [],
371
+ stateMutability: "nonpayable",
372
+ type: "function"
373
+ },
374
+ {
375
+ inputs: [
376
+ {
377
+ internalType: "uint16",
378
+ name: "_version",
379
+ type: "uint16"
380
+ },
381
+ ],
382
+ name: "setSendVersion",
383
+ outputs: [],
384
+ stateMutability: "nonpayable",
385
+ type: "function"
386
+ },
387
+ {
388
+ inputs: [
389
+ {
390
+ internalType: "uint16",
391
+ name: "_srcChainId",
392
+ type: "uint16"
393
+ },
394
+ {
395
+ internalType: "bytes",
396
+ name: "_path",
397
+ type: "bytes"
398
+ },
399
+ ],
400
+ name: "setTrustedRemote",
401
+ outputs: [],
402
+ stateMutability: "nonpayable",
403
+ type: "function"
404
+ },
405
+ {
406
+ inputs: [
407
+ {
408
+ internalType: "uint16",
409
+ name: "_remoteChainId",
410
+ type: "uint16"
411
+ },
412
+ {
413
+ internalType: "bytes",
414
+ name: "_remoteAddress",
415
+ type: "bytes"
416
+ },
417
+ ],
418
+ name: "setTrustedRemoteAddress",
419
+ outputs: [],
420
+ stateMutability: "nonpayable",
421
+ type: "function"
422
+ },
423
+ {
424
+ inputs: [
425
+ {
426
+ internalType: "address",
427
+ name: "newOwner",
428
+ type: "address"
429
+ },
430
+ ],
431
+ name: "transferOwnership",
432
+ outputs: [],
433
+ stateMutability: "nonpayable",
434
+ type: "function"
435
+ },
436
+ {
437
+ inputs: [
438
+ {
439
+ internalType: "uint16",
440
+ name: "",
441
+ type: "uint16"
442
+ },
443
+ ],
444
+ name: "trustedRemoteLookup",
445
+ outputs: [
446
+ {
447
+ internalType: "bytes",
448
+ name: "",
449
+ type: "bytes"
450
+ },
451
+ ],
452
+ stateMutability: "view",
453
+ type: "function"
454
+ },
455
+ ];
456
+ var LzApp__factory = /** @class */ (function () {
457
+ function LzApp__factory() {
458
+ }
459
+ LzApp__factory.createInterface = function () {
460
+ return new ethers_1.utils.Interface(_abi);
461
+ };
462
+ LzApp__factory.connect = function (address, signerOrProvider) {
463
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
464
+ };
465
+ LzApp__factory.abi = _abi;
466
+ return LzApp__factory;
467
+ }());
468
+ exports.LzApp__factory = LzApp__factory;