@layerzerolabs/lz-evm-sdk-v2 3.1.14 → 3.1.15

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.
Files changed (27) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/deployments/alpen-testnet/BlockedMessageLib.json +89 -0
  3. package/deployments/alpen-testnet/DVN.json +1504 -0
  4. package/deployments/alpen-testnet/DVNFeeLib.json +690 -0
  5. package/deployments/alpen-testnet/EndpointV2.json +2356 -0
  6. package/deployments/alpen-testnet/EndpointV2View.json +335 -0
  7. package/deployments/alpen-testnet/EndpointV2ViewProxyAdmin.json +166 -0
  8. package/deployments/alpen-testnet/EndpointV2View_Implementation.json +204 -0
  9. package/deployments/alpen-testnet/EndpointV2View_Proxy.json +137 -0
  10. package/deployments/alpen-testnet/Executor.json +1476 -0
  11. package/deployments/alpen-testnet/ExecutorFeeLib.json +541 -0
  12. package/deployments/alpen-testnet/ExecutorProxyAdmin.json +166 -0
  13. package/deployments/alpen-testnet/Executor_Implementation.json +1345 -0
  14. package/deployments/alpen-testnet/Executor_Proxy.json +137 -0
  15. package/deployments/alpen-testnet/OmniCounter.json +920 -0
  16. package/deployments/alpen-testnet/PriceFeed.json +820 -0
  17. package/deployments/alpen-testnet/PriceFeedProxyAdmin.json +166 -0
  18. package/deployments/alpen-testnet/PriceFeed_Implementation.json +689 -0
  19. package/deployments/alpen-testnet/PriceFeed_Proxy.json +137 -0
  20. package/deployments/alpen-testnet/ReceiveUln302.json +752 -0
  21. package/deployments/alpen-testnet/ReceiveUln302View.json +377 -0
  22. package/deployments/alpen-testnet/ReceiveUln302ViewProxyAdmin.json +166 -0
  23. package/deployments/alpen-testnet/ReceiveUln302View_Implementation.json +246 -0
  24. package/deployments/alpen-testnet/ReceiveUln302View_Proxy.json +137 -0
  25. package/deployments/alpen-testnet/SendUln302.json +1254 -0
  26. package/deployments/alpen-testnet/Treasury.json +304 -0
  27. package/package.json +1 -1
@@ -0,0 +1,541 @@
1
+ {
2
+ "address": "0x4991e62e7465c1fb94a68e8745fec20c55ac42dc",
3
+ "transactionHash": "0xbb17881bd4128d0c9272dfc81fae32ea2665ec23e0315895780231f648903b80",
4
+ "abi": [
5
+ {
6
+ "inputs": [
7
+ {
8
+ "internalType": "uint32",
9
+ "name": "_localEidV2",
10
+ "type": "uint32"
11
+ },
12
+ {
13
+ "internalType": "uint256",
14
+ "name": "_nativeDecimalsRate",
15
+ "type": "uint256"
16
+ }
17
+ ],
18
+ "stateMutability": "nonpayable",
19
+ "type": "constructor"
20
+ },
21
+ {
22
+ "inputs": [
23
+ {
24
+ "internalType": "uint32",
25
+ "name": "eid",
26
+ "type": "uint32"
27
+ }
28
+ ],
29
+ "name": "Executor_EidNotSupported",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "uint256",
36
+ "name": "cursor",
37
+ "type": "uint256"
38
+ }
39
+ ],
40
+ "name": "Executor_InvalidExecutorOptions",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "Executor_InvalidLzComposeOption",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [],
50
+ "name": "Executor_InvalidLzReadOption",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [],
55
+ "name": "Executor_InvalidLzReceiveOption",
56
+ "type": "error"
57
+ },
58
+ {
59
+ "inputs": [],
60
+ "name": "Executor_InvalidNativeDropOption",
61
+ "type": "error"
62
+ },
63
+ {
64
+ "inputs": [
65
+ {
66
+ "internalType": "uint256",
67
+ "name": "amount",
68
+ "type": "uint256"
69
+ },
70
+ {
71
+ "internalType": "uint256",
72
+ "name": "cap",
73
+ "type": "uint256"
74
+ }
75
+ ],
76
+ "name": "Executor_NativeAmountExceedsCap",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [],
81
+ "name": "Executor_NoOptions",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [
86
+ {
87
+ "internalType": "uint8",
88
+ "name": "optionType",
89
+ "type": "uint8"
90
+ }
91
+ ],
92
+ "name": "Executor_UnsupportedOptionType",
93
+ "type": "error"
94
+ },
95
+ {
96
+ "inputs": [],
97
+ "name": "Executor_ZeroCalldataSizeProvided",
98
+ "type": "error"
99
+ },
100
+ {
101
+ "inputs": [],
102
+ "name": "Executor_ZeroLzComposeGasProvided",
103
+ "type": "error"
104
+ },
105
+ {
106
+ "inputs": [],
107
+ "name": "Executor_ZeroLzReceiveGasProvided",
108
+ "type": "error"
109
+ },
110
+ {
111
+ "inputs": [
112
+ {
113
+ "internalType": "address",
114
+ "name": "_to",
115
+ "type": "address"
116
+ },
117
+ {
118
+ "internalType": "uint256",
119
+ "name": "_value",
120
+ "type": "uint256"
121
+ }
122
+ ],
123
+ "name": "Transfer_NativeFailed",
124
+ "type": "error"
125
+ },
126
+ {
127
+ "inputs": [],
128
+ "name": "Transfer_ToAddressIsZero",
129
+ "type": "error"
130
+ },
131
+ {
132
+ "anonymous": false,
133
+ "inputs": [
134
+ {
135
+ "indexed": true,
136
+ "internalType": "address",
137
+ "name": "previousOwner",
138
+ "type": "address"
139
+ },
140
+ {
141
+ "indexed": true,
142
+ "internalType": "address",
143
+ "name": "newOwner",
144
+ "type": "address"
145
+ }
146
+ ],
147
+ "name": "OwnershipTransferred",
148
+ "type": "event"
149
+ },
150
+ {
151
+ "inputs": [
152
+ {
153
+ "components": [
154
+ {
155
+ "internalType": "address",
156
+ "name": "priceFeed",
157
+ "type": "address"
158
+ },
159
+ {
160
+ "internalType": "address",
161
+ "name": "sender",
162
+ "type": "address"
163
+ },
164
+ {
165
+ "internalType": "uint16",
166
+ "name": "defaultMultiplierBps",
167
+ "type": "uint16"
168
+ }
169
+ ],
170
+ "internalType": "struct IExecutorFeeLib.FeeParamsForRead",
171
+ "name": "_params",
172
+ "type": "tuple"
173
+ },
174
+ {
175
+ "components": [
176
+ {
177
+ "internalType": "uint64",
178
+ "name": "lzReceiveBaseGas",
179
+ "type": "uint64"
180
+ },
181
+ {
182
+ "internalType": "uint16",
183
+ "name": "multiplierBps",
184
+ "type": "uint16"
185
+ },
186
+ {
187
+ "internalType": "uint128",
188
+ "name": "floorMarginUSD",
189
+ "type": "uint128"
190
+ },
191
+ {
192
+ "internalType": "uint128",
193
+ "name": "nativeCap",
194
+ "type": "uint128"
195
+ },
196
+ {
197
+ "internalType": "uint64",
198
+ "name": "lzComposeBaseGas",
199
+ "type": "uint64"
200
+ }
201
+ ],
202
+ "internalType": "struct IExecutor.DstConfig",
203
+ "name": "_dstConfig",
204
+ "type": "tuple"
205
+ },
206
+ {
207
+ "internalType": "bytes",
208
+ "name": "_options",
209
+ "type": "bytes"
210
+ }
211
+ ],
212
+ "name": "getFee",
213
+ "outputs": [
214
+ {
215
+ "internalType": "uint256",
216
+ "name": "fee",
217
+ "type": "uint256"
218
+ }
219
+ ],
220
+ "stateMutability": "view",
221
+ "type": "function"
222
+ },
223
+ {
224
+ "inputs": [
225
+ {
226
+ "components": [
227
+ {
228
+ "internalType": "address",
229
+ "name": "priceFeed",
230
+ "type": "address"
231
+ },
232
+ {
233
+ "internalType": "uint32",
234
+ "name": "dstEid",
235
+ "type": "uint32"
236
+ },
237
+ {
238
+ "internalType": "address",
239
+ "name": "sender",
240
+ "type": "address"
241
+ },
242
+ {
243
+ "internalType": "uint256",
244
+ "name": "calldataSize",
245
+ "type": "uint256"
246
+ },
247
+ {
248
+ "internalType": "uint16",
249
+ "name": "defaultMultiplierBps",
250
+ "type": "uint16"
251
+ }
252
+ ],
253
+ "internalType": "struct IExecutorFeeLib.FeeParams",
254
+ "name": "_params",
255
+ "type": "tuple"
256
+ },
257
+ {
258
+ "components": [
259
+ {
260
+ "internalType": "uint64",
261
+ "name": "lzReceiveBaseGas",
262
+ "type": "uint64"
263
+ },
264
+ {
265
+ "internalType": "uint16",
266
+ "name": "multiplierBps",
267
+ "type": "uint16"
268
+ },
269
+ {
270
+ "internalType": "uint128",
271
+ "name": "floorMarginUSD",
272
+ "type": "uint128"
273
+ },
274
+ {
275
+ "internalType": "uint128",
276
+ "name": "nativeCap",
277
+ "type": "uint128"
278
+ },
279
+ {
280
+ "internalType": "uint64",
281
+ "name": "lzComposeBaseGas",
282
+ "type": "uint64"
283
+ }
284
+ ],
285
+ "internalType": "struct IExecutor.DstConfig",
286
+ "name": "_dstConfig",
287
+ "type": "tuple"
288
+ },
289
+ {
290
+ "internalType": "bytes",
291
+ "name": "_options",
292
+ "type": "bytes"
293
+ }
294
+ ],
295
+ "name": "getFee",
296
+ "outputs": [
297
+ {
298
+ "internalType": "uint256",
299
+ "name": "fee",
300
+ "type": "uint256"
301
+ }
302
+ ],
303
+ "stateMutability": "view",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [
308
+ {
309
+ "components": [
310
+ {
311
+ "internalType": "address",
312
+ "name": "priceFeed",
313
+ "type": "address"
314
+ },
315
+ {
316
+ "internalType": "uint32",
317
+ "name": "dstEid",
318
+ "type": "uint32"
319
+ },
320
+ {
321
+ "internalType": "address",
322
+ "name": "sender",
323
+ "type": "address"
324
+ },
325
+ {
326
+ "internalType": "uint256",
327
+ "name": "calldataSize",
328
+ "type": "uint256"
329
+ },
330
+ {
331
+ "internalType": "uint16",
332
+ "name": "defaultMultiplierBps",
333
+ "type": "uint16"
334
+ }
335
+ ],
336
+ "internalType": "struct IExecutorFeeLib.FeeParams",
337
+ "name": "_params",
338
+ "type": "tuple"
339
+ },
340
+ {
341
+ "components": [
342
+ {
343
+ "internalType": "uint64",
344
+ "name": "lzReceiveBaseGas",
345
+ "type": "uint64"
346
+ },
347
+ {
348
+ "internalType": "uint16",
349
+ "name": "multiplierBps",
350
+ "type": "uint16"
351
+ },
352
+ {
353
+ "internalType": "uint128",
354
+ "name": "floorMarginUSD",
355
+ "type": "uint128"
356
+ },
357
+ {
358
+ "internalType": "uint128",
359
+ "name": "nativeCap",
360
+ "type": "uint128"
361
+ },
362
+ {
363
+ "internalType": "uint64",
364
+ "name": "lzComposeBaseGas",
365
+ "type": "uint64"
366
+ }
367
+ ],
368
+ "internalType": "struct IExecutor.DstConfig",
369
+ "name": "_dstConfig",
370
+ "type": "tuple"
371
+ },
372
+ {
373
+ "internalType": "bytes",
374
+ "name": "_options",
375
+ "type": "bytes"
376
+ }
377
+ ],
378
+ "name": "getFeeOnSend",
379
+ "outputs": [
380
+ {
381
+ "internalType": "uint256",
382
+ "name": "fee",
383
+ "type": "uint256"
384
+ }
385
+ ],
386
+ "stateMutability": "view",
387
+ "type": "function"
388
+ },
389
+ {
390
+ "inputs": [
391
+ {
392
+ "components": [
393
+ {
394
+ "internalType": "address",
395
+ "name": "priceFeed",
396
+ "type": "address"
397
+ },
398
+ {
399
+ "internalType": "address",
400
+ "name": "sender",
401
+ "type": "address"
402
+ },
403
+ {
404
+ "internalType": "uint16",
405
+ "name": "defaultMultiplierBps",
406
+ "type": "uint16"
407
+ }
408
+ ],
409
+ "internalType": "struct IExecutorFeeLib.FeeParamsForRead",
410
+ "name": "_params",
411
+ "type": "tuple"
412
+ },
413
+ {
414
+ "components": [
415
+ {
416
+ "internalType": "uint64",
417
+ "name": "lzReceiveBaseGas",
418
+ "type": "uint64"
419
+ },
420
+ {
421
+ "internalType": "uint16",
422
+ "name": "multiplierBps",
423
+ "type": "uint16"
424
+ },
425
+ {
426
+ "internalType": "uint128",
427
+ "name": "floorMarginUSD",
428
+ "type": "uint128"
429
+ },
430
+ {
431
+ "internalType": "uint128",
432
+ "name": "nativeCap",
433
+ "type": "uint128"
434
+ },
435
+ {
436
+ "internalType": "uint64",
437
+ "name": "lzComposeBaseGas",
438
+ "type": "uint64"
439
+ }
440
+ ],
441
+ "internalType": "struct IExecutor.DstConfig",
442
+ "name": "_dstConfig",
443
+ "type": "tuple"
444
+ },
445
+ {
446
+ "internalType": "bytes",
447
+ "name": "_options",
448
+ "type": "bytes"
449
+ }
450
+ ],
451
+ "name": "getFeeOnSend",
452
+ "outputs": [
453
+ {
454
+ "internalType": "uint256",
455
+ "name": "fee",
456
+ "type": "uint256"
457
+ }
458
+ ],
459
+ "stateMutability": "view",
460
+ "type": "function"
461
+ },
462
+ {
463
+ "inputs": [],
464
+ "name": "owner",
465
+ "outputs": [
466
+ {
467
+ "internalType": "address",
468
+ "name": "",
469
+ "type": "address"
470
+ }
471
+ ],
472
+ "stateMutability": "view",
473
+ "type": "function"
474
+ },
475
+ {
476
+ "inputs": [],
477
+ "name": "renounceOwnership",
478
+ "outputs": [],
479
+ "stateMutability": "nonpayable",
480
+ "type": "function"
481
+ },
482
+ {
483
+ "inputs": [
484
+ {
485
+ "internalType": "address",
486
+ "name": "newOwner",
487
+ "type": "address"
488
+ }
489
+ ],
490
+ "name": "transferOwnership",
491
+ "outputs": [],
492
+ "stateMutability": "nonpayable",
493
+ "type": "function"
494
+ },
495
+ {
496
+ "inputs": [],
497
+ "name": "version",
498
+ "outputs": [
499
+ {
500
+ "internalType": "uint64",
501
+ "name": "major",
502
+ "type": "uint64"
503
+ },
504
+ {
505
+ "internalType": "uint8",
506
+ "name": "minor",
507
+ "type": "uint8"
508
+ }
509
+ ],
510
+ "stateMutability": "pure",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [
515
+ {
516
+ "internalType": "address",
517
+ "name": "_token",
518
+ "type": "address"
519
+ },
520
+ {
521
+ "internalType": "address",
522
+ "name": "_to",
523
+ "type": "address"
524
+ },
525
+ {
526
+ "internalType": "uint256",
527
+ "name": "_amount",
528
+ "type": "uint256"
529
+ }
530
+ ],
531
+ "name": "withdrawToken",
532
+ "outputs": [],
533
+ "stateMutability": "nonpayable",
534
+ "type": "function"
535
+ },
536
+ {
537
+ "stateMutability": "payable",
538
+ "type": "receive"
539
+ }
540
+ ]
541
+ }
@@ -0,0 +1,166 @@
1
+ {
2
+ "address": "0x8e86a91e8888071fc776e1e4801bd17a5ab78314",
3
+ "transactionHash": "0x1fa262841e56b6c1601314a2b570bc6cef802d2cb10221f2b7af85e57f6c3753",
4
+ "abi": [
5
+ {
6
+ "type": "constructor",
7
+ "inputs": [
8
+ {
9
+ "name": "initialOwner",
10
+ "internalType": "address",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "stateMutability": "nonpayable"
15
+ },
16
+ {
17
+ "type": "event",
18
+ "anonymous": false,
19
+ "inputs": [
20
+ {
21
+ "name": "previousOwner",
22
+ "internalType": "address",
23
+ "type": "address",
24
+ "indexed": true
25
+ },
26
+ {
27
+ "name": "newOwner",
28
+ "internalType": "address",
29
+ "type": "address",
30
+ "indexed": true
31
+ }
32
+ ],
33
+ "name": "OwnershipTransferred"
34
+ },
35
+ {
36
+ "type": "function",
37
+ "inputs": [
38
+ {
39
+ "name": "proxy",
40
+ "internalType": "contract TransparentUpgradeableProxy",
41
+ "type": "address"
42
+ },
43
+ {
44
+ "name": "newAdmin",
45
+ "internalType": "address",
46
+ "type": "address"
47
+ }
48
+ ],
49
+ "name": "changeProxyAdmin",
50
+ "outputs": [],
51
+ "stateMutability": "nonpayable"
52
+ },
53
+ {
54
+ "type": "function",
55
+ "inputs": [
56
+ {
57
+ "name": "proxy",
58
+ "internalType": "contract TransparentUpgradeableProxy",
59
+ "type": "address"
60
+ }
61
+ ],
62
+ "name": "getProxyAdmin",
63
+ "outputs": [
64
+ {
65
+ "name": "",
66
+ "internalType": "address",
67
+ "type": "address"
68
+ }
69
+ ],
70
+ "stateMutability": "view"
71
+ },
72
+ {
73
+ "type": "function",
74
+ "inputs": [
75
+ {
76
+ "name": "proxy",
77
+ "internalType": "contract TransparentUpgradeableProxy",
78
+ "type": "address"
79
+ }
80
+ ],
81
+ "name": "getProxyImplementation",
82
+ "outputs": [
83
+ {
84
+ "name": "",
85
+ "internalType": "address",
86
+ "type": "address"
87
+ }
88
+ ],
89
+ "stateMutability": "view"
90
+ },
91
+ {
92
+ "type": "function",
93
+ "inputs": [],
94
+ "name": "owner",
95
+ "outputs": [
96
+ {
97
+ "name": "",
98
+ "internalType": "address",
99
+ "type": "address"
100
+ }
101
+ ],
102
+ "stateMutability": "view"
103
+ },
104
+ {
105
+ "type": "function",
106
+ "inputs": [],
107
+ "name": "renounceOwnership",
108
+ "outputs": [],
109
+ "stateMutability": "nonpayable"
110
+ },
111
+ {
112
+ "type": "function",
113
+ "inputs": [
114
+ {
115
+ "name": "newOwner",
116
+ "internalType": "address",
117
+ "type": "address"
118
+ }
119
+ ],
120
+ "name": "transferOwnership",
121
+ "outputs": [],
122
+ "stateMutability": "nonpayable"
123
+ },
124
+ {
125
+ "type": "function",
126
+ "inputs": [
127
+ {
128
+ "name": "proxy",
129
+ "internalType": "contract TransparentUpgradeableProxy",
130
+ "type": "address"
131
+ },
132
+ {
133
+ "name": "implementation",
134
+ "internalType": "address",
135
+ "type": "address"
136
+ }
137
+ ],
138
+ "name": "upgrade",
139
+ "outputs": [],
140
+ "stateMutability": "nonpayable"
141
+ },
142
+ {
143
+ "type": "function",
144
+ "inputs": [
145
+ {
146
+ "name": "proxy",
147
+ "internalType": "contract TransparentUpgradeableProxy",
148
+ "type": "address"
149
+ },
150
+ {
151
+ "name": "implementation",
152
+ "internalType": "address",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "name": "data",
157
+ "internalType": "bytes",
158
+ "type": "bytes"
159
+ }
160
+ ],
161
+ "name": "upgradeAndCall",
162
+ "outputs": [],
163
+ "stateMutability": "payable"
164
+ }
165
+ ]
166
+ }