@layerzerolabs/lz-evm-messagelib-v2 2.0.2

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 (106) hide show
  1. package/artifacts/contracts/Executor.sol/Executor.json +1156 -0
  2. package/artifacts/contracts/ExecutorFeeLib.sol/ExecutorFeeLib.json +336 -0
  3. package/artifacts/contracts/MessageLibBase.sol/MessageLibBase.json +16 -0
  4. package/artifacts/contracts/PriceFeed.sol/PriceFeed.json +650 -0
  5. package/artifacts/contracts/ReceiveLibBaseE2.sol/ReceiveLibBaseE2.json +154 -0
  6. package/artifacts/contracts/SendLibBase.sol/SendLibBase.json +381 -0
  7. package/artifacts/contracts/SendLibBaseE2.sol/SendLibBaseE2.json +819 -0
  8. package/artifacts/contracts/Treasury.sol/Treasury.json +309 -0
  9. package/artifacts/contracts/Worker.sol/Worker.json +579 -0
  10. package/artifacts/contracts/interfaces/IExecutor.sol/IExecutor.json +429 -0
  11. package/artifacts/contracts/interfaces/IExecutorFeeLib.sol/IExecutorFeeLib.json +210 -0
  12. package/artifacts/contracts/interfaces/ILayerZeroExecutor.sol/ILayerZeroExecutor.json +79 -0
  13. package/artifacts/contracts/interfaces/ILayerZeroPriceFeed.sol/ILayerZeroPriceFeed.json +222 -0
  14. package/artifacts/contracts/interfaces/ILayerZeroTreasury.sol/ILayerZeroTreasury.json +79 -0
  15. package/artifacts/contracts/interfaces/IWorker.sol/IWorker.json +221 -0
  16. package/artifacts/contracts/libs/SafeCall.sol/SafeCall.json +10 -0
  17. package/artifacts/contracts/uln/LzExecutor.sol/LzExecutor.json +256 -0
  18. package/artifacts/contracts/uln/ReceiveUlnBase.sol/ReceiveUlnBase.json +472 -0
  19. package/artifacts/contracts/uln/SendUlnBase.sol/SendUlnBase.json +412 -0
  20. package/artifacts/contracts/uln/UlnBase.sol/UlnBase.json +387 -0
  21. package/artifacts/contracts/uln/dvn/DVN.sol/DVN.json +1370 -0
  22. package/artifacts/contracts/uln/dvn/DVNFeeLib.sol/DVNFeeLib.json +300 -0
  23. package/artifacts/contracts/uln/dvn/MultiSig.sol/MultiSig.json +164 -0
  24. package/artifacts/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapter.sol/CCIPDVNAdapter.json +742 -0
  25. package/artifacts/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapterFeeLib.sol/CCIPDVNAdapterFeeLib.json +50 -0
  26. package/artifacts/contracts/uln/dvn/adapters/DVNAdapterBase.sol/DVNAdapterBase.json +463 -0
  27. package/artifacts/contracts/uln/dvn/adapters/DVNAdapterFeeLibBase.sol/DVNAdapterFeeLibBase.json +50 -0
  28. package/artifacts/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapter.sol/AxelarDVNAdapter.json +804 -0
  29. package/artifacts/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapterFeeLib.sol/AxelarDVNAdapterFeeLib.json +50 -0
  30. package/artifacts/contracts/uln/interfaces/IDVN.sol/IDVN.json +370 -0
  31. package/artifacts/contracts/uln/interfaces/IDVNAdapterFeeLib.sol/IDVNAdapterFeeLib.json +50 -0
  32. package/artifacts/contracts/uln/interfaces/IDVNFeeLib.sol/IDVNFeeLib.json +178 -0
  33. package/artifacts/contracts/uln/interfaces/ILayerZeroDVN.sol/ILayerZeroDVN.json +96 -0
  34. package/artifacts/contracts/uln/interfaces/IReceiveUlnE2.sol/IReceiveUlnE2.json +76 -0
  35. package/artifacts/contracts/uln/libs/DVNOptions.sol/DVNOptions.json +27 -0
  36. package/artifacts/contracts/uln/libs/UlnOptions.sol/UlnOptions.json +54 -0
  37. package/artifacts/contracts/uln/uln301/AddressSizeConfig.sol/AddressSizeConfig.json +129 -0
  38. package/artifacts/contracts/uln/uln301/ReceiveLibBaseE1.sol/ILayerZeroReceiveLibrary.json +68 -0
  39. package/artifacts/contracts/uln/uln301/ReceiveLibBaseE1.sol/ReceiveLibBaseE1.json +416 -0
  40. package/artifacts/contracts/uln/uln301/ReceiveUln301.sol/ReceiveUln301.json +969 -0
  41. package/artifacts/contracts/uln/uln301/SendLibBaseE1.sol/SendLibBaseE1.json +804 -0
  42. package/artifacts/contracts/uln/uln301/SendUln301.sol/SendUln301.json +1278 -0
  43. package/artifacts/contracts/uln/uln301/TreasuryFeeHandler.sol/TreasuryFeeHandler.json +94 -0
  44. package/artifacts/contracts/uln/uln301/interfaces/IMessageLibE1.sol/IMessageLibE1.json +247 -0
  45. package/artifacts/contracts/uln/uln301/interfaces/INonceContract.sol/INonceContract.json +40 -0
  46. package/artifacts/contracts/uln/uln301/interfaces/ITreasuryFeeHandler.sol/ITreasuryFeeHandler.json +44 -0
  47. package/artifacts/contracts/uln/uln301/interfaces/IUltraLightNode301.sol/IUltraLightNode301.json +29 -0
  48. package/artifacts/contracts/uln/uln301/mocks/NonceContractMock.sol/NonceContractMock.json +93 -0
  49. package/artifacts/contracts/uln/uln302/ReceiveUln302.sol/ReceiveUln302.json +702 -0
  50. package/artifacts/contracts/uln/uln302/SendUln302.sol/SendUln302.json +1259 -0
  51. package/artifacts/contracts/upgradeable/WorkerUpgradeable.sol/WorkerUpgradeable.json +592 -0
  52. package/artifacts/contracts/upgradeable/proxy/ProxyAdmin.sol/ProxyAdmin.json +181 -0
  53. package/artifacts/contracts/upgradeable/proxy/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +160 -0
  54. package/contracts/Executor.sol +162 -0
  55. package/contracts/ExecutorFeeLib.sol +190 -0
  56. package/contracts/MessageLibBase.sol +21 -0
  57. package/contracts/PriceFeed.sol +257 -0
  58. package/contracts/ReceiveLibBaseE2.sol +54 -0
  59. package/contracts/SendLibBase.sol +258 -0
  60. package/contracts/SendLibBaseE2.sol +140 -0
  61. package/contracts/Treasury.sol +74 -0
  62. package/contracts/Worker.sol +167 -0
  63. package/contracts/interfaces/IExecutor.sol +44 -0
  64. package/contracts/interfaces/IExecutorFeeLib.sol +32 -0
  65. package/contracts/interfaces/ILayerZeroExecutor.sol +29 -0
  66. package/contracts/interfaces/ILayerZeroPriceFeed.sol +61 -0
  67. package/contracts/interfaces/ILayerZeroTreasury.sol +19 -0
  68. package/contracts/interfaces/IWorker.sol +29 -0
  69. package/contracts/libs/SafeCall.sol +123 -0
  70. package/contracts/uln/LzExecutor.sol +96 -0
  71. package/contracts/uln/ReceiveUlnBase.sol +118 -0
  72. package/contracts/uln/SendUlnBase.sol +129 -0
  73. package/contracts/uln/UlnBase.sol +195 -0
  74. package/contracts/uln/dvn/DVN.sol +349 -0
  75. package/contracts/uln/dvn/DVNFeeLib.sol +141 -0
  76. package/contracts/uln/dvn/MultiSig.sol +104 -0
  77. package/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapter.sol +152 -0
  78. package/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapterFeeLib.sol +7 -0
  79. package/contracts/uln/dvn/adapters/DVNAdapterBase.sol +162 -0
  80. package/contracts/uln/dvn/adapters/DVNAdapterFeeLibBase.sol +20 -0
  81. package/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapter.sol +156 -0
  82. package/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapterFeeLib.sol +7 -0
  83. package/contracts/uln/interfaces/IDVN.sol +25 -0
  84. package/contracts/uln/interfaces/IDVNAdapterFeeLib.sol +13 -0
  85. package/contracts/uln/interfaces/IDVNFeeLib.sol +30 -0
  86. package/contracts/uln/interfaces/ILayerZeroDVN.sol +34 -0
  87. package/contracts/uln/interfaces/IReceiveUlnE2.sol +18 -0
  88. package/contracts/uln/libs/DVNOptions.sol +181 -0
  89. package/contracts/uln/libs/UlnOptions.sol +176 -0
  90. package/contracts/uln/uln301/AddressSizeConfig.sol +22 -0
  91. package/contracts/uln/uln301/ReceiveLibBaseE1.sol +103 -0
  92. package/contracts/uln/uln301/ReceiveUln301.sol +120 -0
  93. package/contracts/uln/uln301/SendLibBaseE1.sol +194 -0
  94. package/contracts/uln/uln301/SendUln301.sol +99 -0
  95. package/contracts/uln/uln301/TreasuryFeeHandler.sol +41 -0
  96. package/contracts/uln/uln301/interfaces/IMessageLibE1.sol +22 -0
  97. package/contracts/uln/uln301/interfaces/INonceContract.sol +7 -0
  98. package/contracts/uln/uln301/interfaces/ITreasuryFeeHandler.sol +13 -0
  99. package/contracts/uln/uln301/interfaces/IUltraLightNode301.sol +7 -0
  100. package/contracts/uln/uln301/mocks/NonceContractMock.sol +23 -0
  101. package/contracts/uln/uln302/ReceiveUln302.sol +108 -0
  102. package/contracts/uln/uln302/SendUln302.sol +86 -0
  103. package/contracts/upgradeable/WorkerUpgradeable.sol +186 -0
  104. package/contracts/upgradeable/proxy/ProxyAdmin.sol +96 -0
  105. package/contracts/upgradeable/proxy/TransparentUpgradeableProxy.sol +131 -0
  106. package/package.json +51 -0
@@ -0,0 +1,819 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "SendLibBaseE2",
4
+ "sourceName": "contracts/SendLibBaseE2.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "CannotWithdrawAltToken",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "requested",
16
+ "type": "uint256"
17
+ },
18
+ {
19
+ "internalType": "uint256",
20
+ "name": "available",
21
+ "type": "uint256"
22
+ }
23
+ ],
24
+ "name": "InvalidAmount",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [],
29
+ "name": "InvalidExecutor",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "uint256",
36
+ "name": "actual",
37
+ "type": "uint256"
38
+ },
39
+ {
40
+ "internalType": "uint256",
41
+ "name": "max",
42
+ "type": "uint256"
43
+ }
44
+ ],
45
+ "name": "InvalidMessageSize",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [],
50
+ "name": "NotTreasury",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [],
55
+ "name": "OnlyEndpoint",
56
+ "type": "error"
57
+ },
58
+ {
59
+ "inputs": [],
60
+ "name": "ToAddressIsZero",
61
+ "type": "error"
62
+ },
63
+ {
64
+ "inputs": [],
65
+ "name": "TransferFailed",
66
+ "type": "error"
67
+ },
68
+ {
69
+ "inputs": [
70
+ {
71
+ "internalType": "address",
72
+ "name": "_to",
73
+ "type": "address"
74
+ },
75
+ {
76
+ "internalType": "uint256",
77
+ "name": "_value",
78
+ "type": "uint256"
79
+ }
80
+ ],
81
+ "name": "TransferNativeFailed",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [],
86
+ "name": "ZeroMessageSize",
87
+ "type": "error"
88
+ },
89
+ {
90
+ "anonymous": false,
91
+ "inputs": [
92
+ {
93
+ "components": [
94
+ {
95
+ "internalType": "uint32",
96
+ "name": "eid",
97
+ "type": "uint32"
98
+ },
99
+ {
100
+ "components": [
101
+ {
102
+ "internalType": "uint32",
103
+ "name": "maxMessageSize",
104
+ "type": "uint32"
105
+ },
106
+ {
107
+ "internalType": "address",
108
+ "name": "executor",
109
+ "type": "address"
110
+ }
111
+ ],
112
+ "internalType": "struct ExecutorConfig",
113
+ "name": "config",
114
+ "type": "tuple"
115
+ }
116
+ ],
117
+ "indexed": false,
118
+ "internalType": "struct SetDefaultExecutorConfigParam[]",
119
+ "name": "params",
120
+ "type": "tuple[]"
121
+ }
122
+ ],
123
+ "name": "DefaultExecutorConfigsSet",
124
+ "type": "event"
125
+ },
126
+ {
127
+ "anonymous": false,
128
+ "inputs": [
129
+ {
130
+ "indexed": false,
131
+ "internalType": "address",
132
+ "name": "oapp",
133
+ "type": "address"
134
+ },
135
+ {
136
+ "indexed": false,
137
+ "internalType": "uint32",
138
+ "name": "eid",
139
+ "type": "uint32"
140
+ },
141
+ {
142
+ "components": [
143
+ {
144
+ "internalType": "uint32",
145
+ "name": "maxMessageSize",
146
+ "type": "uint32"
147
+ },
148
+ {
149
+ "internalType": "address",
150
+ "name": "executor",
151
+ "type": "address"
152
+ }
153
+ ],
154
+ "indexed": false,
155
+ "internalType": "struct ExecutorConfig",
156
+ "name": "config",
157
+ "type": "tuple"
158
+ }
159
+ ],
160
+ "name": "ExecutorConfigSet",
161
+ "type": "event"
162
+ },
163
+ {
164
+ "anonymous": false,
165
+ "inputs": [
166
+ {
167
+ "indexed": false,
168
+ "internalType": "address",
169
+ "name": "executor",
170
+ "type": "address"
171
+ },
172
+ {
173
+ "indexed": false,
174
+ "internalType": "uint256",
175
+ "name": "fee",
176
+ "type": "uint256"
177
+ }
178
+ ],
179
+ "name": "ExecutorFeePaid",
180
+ "type": "event"
181
+ },
182
+ {
183
+ "anonymous": false,
184
+ "inputs": [
185
+ {
186
+ "indexed": false,
187
+ "internalType": "address",
188
+ "name": "lzToken",
189
+ "type": "address"
190
+ },
191
+ {
192
+ "indexed": false,
193
+ "internalType": "address",
194
+ "name": "receiver",
195
+ "type": "address"
196
+ },
197
+ {
198
+ "indexed": false,
199
+ "internalType": "uint256",
200
+ "name": "amount",
201
+ "type": "uint256"
202
+ }
203
+ ],
204
+ "name": "LzTokenFeeWithdrawn",
205
+ "type": "event"
206
+ },
207
+ {
208
+ "anonymous": false,
209
+ "inputs": [
210
+ {
211
+ "indexed": false,
212
+ "internalType": "address",
213
+ "name": "worker",
214
+ "type": "address"
215
+ },
216
+ {
217
+ "indexed": false,
218
+ "internalType": "address",
219
+ "name": "receiver",
220
+ "type": "address"
221
+ },
222
+ {
223
+ "indexed": false,
224
+ "internalType": "uint256",
225
+ "name": "amount",
226
+ "type": "uint256"
227
+ }
228
+ ],
229
+ "name": "NativeFeeWithdrawn",
230
+ "type": "event"
231
+ },
232
+ {
233
+ "anonymous": false,
234
+ "inputs": [
235
+ {
236
+ "indexed": true,
237
+ "internalType": "address",
238
+ "name": "previousOwner",
239
+ "type": "address"
240
+ },
241
+ {
242
+ "indexed": true,
243
+ "internalType": "address",
244
+ "name": "newOwner",
245
+ "type": "address"
246
+ }
247
+ ],
248
+ "name": "OwnershipTransferred",
249
+ "type": "event"
250
+ },
251
+ {
252
+ "anonymous": false,
253
+ "inputs": [
254
+ {
255
+ "indexed": false,
256
+ "internalType": "uint256",
257
+ "name": "newTreasuryNativeFeeCap",
258
+ "type": "uint256"
259
+ }
260
+ ],
261
+ "name": "TreasuryNativeFeeCapSet",
262
+ "type": "event"
263
+ },
264
+ {
265
+ "anonymous": false,
266
+ "inputs": [
267
+ {
268
+ "indexed": false,
269
+ "internalType": "address",
270
+ "name": "treasury",
271
+ "type": "address"
272
+ }
273
+ ],
274
+ "name": "TreasurySet",
275
+ "type": "event"
276
+ },
277
+ {
278
+ "inputs": [
279
+ {
280
+ "internalType": "address",
281
+ "name": "oapp",
282
+ "type": "address"
283
+ },
284
+ {
285
+ "internalType": "uint32",
286
+ "name": "eid",
287
+ "type": "uint32"
288
+ }
289
+ ],
290
+ "name": "executorConfigs",
291
+ "outputs": [
292
+ {
293
+ "internalType": "uint32",
294
+ "name": "maxMessageSize",
295
+ "type": "uint32"
296
+ },
297
+ {
298
+ "internalType": "address",
299
+ "name": "executor",
300
+ "type": "address"
301
+ }
302
+ ],
303
+ "stateMutability": "view",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [
308
+ {
309
+ "internalType": "address",
310
+ "name": "worker",
311
+ "type": "address"
312
+ }
313
+ ],
314
+ "name": "fees",
315
+ "outputs": [
316
+ {
317
+ "internalType": "uint256",
318
+ "name": "",
319
+ "type": "uint256"
320
+ }
321
+ ],
322
+ "stateMutability": "view",
323
+ "type": "function"
324
+ },
325
+ {
326
+ "inputs": [
327
+ {
328
+ "internalType": "uint32",
329
+ "name": "_eid",
330
+ "type": "uint32"
331
+ },
332
+ {
333
+ "internalType": "address",
334
+ "name": "_oapp",
335
+ "type": "address"
336
+ },
337
+ {
338
+ "internalType": "uint32",
339
+ "name": "_configType",
340
+ "type": "uint32"
341
+ }
342
+ ],
343
+ "name": "getConfig",
344
+ "outputs": [
345
+ {
346
+ "internalType": "bytes",
347
+ "name": "config",
348
+ "type": "bytes"
349
+ }
350
+ ],
351
+ "stateMutability": "view",
352
+ "type": "function"
353
+ },
354
+ {
355
+ "inputs": [
356
+ {
357
+ "internalType": "address",
358
+ "name": "_oapp",
359
+ "type": "address"
360
+ },
361
+ {
362
+ "internalType": "uint32",
363
+ "name": "_remoteEid",
364
+ "type": "uint32"
365
+ }
366
+ ],
367
+ "name": "getExecutorConfig",
368
+ "outputs": [
369
+ {
370
+ "components": [
371
+ {
372
+ "internalType": "uint32",
373
+ "name": "maxMessageSize",
374
+ "type": "uint32"
375
+ },
376
+ {
377
+ "internalType": "address",
378
+ "name": "executor",
379
+ "type": "address"
380
+ }
381
+ ],
382
+ "internalType": "struct ExecutorConfig",
383
+ "name": "rtnConfig",
384
+ "type": "tuple"
385
+ }
386
+ ],
387
+ "stateMutability": "view",
388
+ "type": "function"
389
+ },
390
+ {
391
+ "inputs": [
392
+ {
393
+ "internalType": "uint32",
394
+ "name": "_eid",
395
+ "type": "uint32"
396
+ }
397
+ ],
398
+ "name": "isSupportedEid",
399
+ "outputs": [
400
+ {
401
+ "internalType": "bool",
402
+ "name": "",
403
+ "type": "bool"
404
+ }
405
+ ],
406
+ "stateMutability": "view",
407
+ "type": "function"
408
+ },
409
+ {
410
+ "inputs": [],
411
+ "name": "messageLibType",
412
+ "outputs": [
413
+ {
414
+ "internalType": "enum MessageLibType",
415
+ "name": "",
416
+ "type": "uint8"
417
+ }
418
+ ],
419
+ "stateMutability": "pure",
420
+ "type": "function"
421
+ },
422
+ {
423
+ "inputs": [],
424
+ "name": "owner",
425
+ "outputs": [
426
+ {
427
+ "internalType": "address",
428
+ "name": "",
429
+ "type": "address"
430
+ }
431
+ ],
432
+ "stateMutability": "view",
433
+ "type": "function"
434
+ },
435
+ {
436
+ "inputs": [
437
+ {
438
+ "components": [
439
+ {
440
+ "internalType": "uint64",
441
+ "name": "nonce",
442
+ "type": "uint64"
443
+ },
444
+ {
445
+ "internalType": "uint32",
446
+ "name": "srcEid",
447
+ "type": "uint32"
448
+ },
449
+ {
450
+ "internalType": "address",
451
+ "name": "sender",
452
+ "type": "address"
453
+ },
454
+ {
455
+ "internalType": "uint32",
456
+ "name": "dstEid",
457
+ "type": "uint32"
458
+ },
459
+ {
460
+ "internalType": "bytes32",
461
+ "name": "receiver",
462
+ "type": "bytes32"
463
+ },
464
+ {
465
+ "internalType": "bytes32",
466
+ "name": "guid",
467
+ "type": "bytes32"
468
+ },
469
+ {
470
+ "internalType": "bytes",
471
+ "name": "message",
472
+ "type": "bytes"
473
+ }
474
+ ],
475
+ "internalType": "struct Packet",
476
+ "name": "_packet",
477
+ "type": "tuple"
478
+ },
479
+ {
480
+ "internalType": "bytes",
481
+ "name": "_options",
482
+ "type": "bytes"
483
+ },
484
+ {
485
+ "internalType": "bool",
486
+ "name": "_payInLzToken",
487
+ "type": "bool"
488
+ }
489
+ ],
490
+ "name": "quote",
491
+ "outputs": [
492
+ {
493
+ "components": [
494
+ {
495
+ "internalType": "uint256",
496
+ "name": "nativeFee",
497
+ "type": "uint256"
498
+ },
499
+ {
500
+ "internalType": "uint256",
501
+ "name": "lzTokenFee",
502
+ "type": "uint256"
503
+ }
504
+ ],
505
+ "internalType": "struct MessagingFee",
506
+ "name": "",
507
+ "type": "tuple"
508
+ }
509
+ ],
510
+ "stateMutability": "view",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [],
515
+ "name": "renounceOwnership",
516
+ "outputs": [],
517
+ "stateMutability": "nonpayable",
518
+ "type": "function"
519
+ },
520
+ {
521
+ "inputs": [
522
+ {
523
+ "components": [
524
+ {
525
+ "internalType": "uint64",
526
+ "name": "nonce",
527
+ "type": "uint64"
528
+ },
529
+ {
530
+ "internalType": "uint32",
531
+ "name": "srcEid",
532
+ "type": "uint32"
533
+ },
534
+ {
535
+ "internalType": "address",
536
+ "name": "sender",
537
+ "type": "address"
538
+ },
539
+ {
540
+ "internalType": "uint32",
541
+ "name": "dstEid",
542
+ "type": "uint32"
543
+ },
544
+ {
545
+ "internalType": "bytes32",
546
+ "name": "receiver",
547
+ "type": "bytes32"
548
+ },
549
+ {
550
+ "internalType": "bytes32",
551
+ "name": "guid",
552
+ "type": "bytes32"
553
+ },
554
+ {
555
+ "internalType": "bytes",
556
+ "name": "message",
557
+ "type": "bytes"
558
+ }
559
+ ],
560
+ "internalType": "struct Packet",
561
+ "name": "_packet",
562
+ "type": "tuple"
563
+ },
564
+ {
565
+ "internalType": "bytes",
566
+ "name": "_options",
567
+ "type": "bytes"
568
+ },
569
+ {
570
+ "internalType": "bool",
571
+ "name": "_payInLzToken",
572
+ "type": "bool"
573
+ }
574
+ ],
575
+ "name": "send",
576
+ "outputs": [
577
+ {
578
+ "components": [
579
+ {
580
+ "internalType": "uint256",
581
+ "name": "nativeFee",
582
+ "type": "uint256"
583
+ },
584
+ {
585
+ "internalType": "uint256",
586
+ "name": "lzTokenFee",
587
+ "type": "uint256"
588
+ }
589
+ ],
590
+ "internalType": "struct MessagingFee",
591
+ "name": "",
592
+ "type": "tuple"
593
+ },
594
+ {
595
+ "internalType": "bytes",
596
+ "name": "",
597
+ "type": "bytes"
598
+ }
599
+ ],
600
+ "stateMutability": "nonpayable",
601
+ "type": "function"
602
+ },
603
+ {
604
+ "inputs": [
605
+ {
606
+ "internalType": "address",
607
+ "name": "_oapp",
608
+ "type": "address"
609
+ },
610
+ {
611
+ "components": [
612
+ {
613
+ "internalType": "uint32",
614
+ "name": "eid",
615
+ "type": "uint32"
616
+ },
617
+ {
618
+ "internalType": "uint32",
619
+ "name": "configType",
620
+ "type": "uint32"
621
+ },
622
+ {
623
+ "internalType": "bytes",
624
+ "name": "config",
625
+ "type": "bytes"
626
+ }
627
+ ],
628
+ "internalType": "struct SetConfigParam[]",
629
+ "name": "_config",
630
+ "type": "tuple[]"
631
+ }
632
+ ],
633
+ "name": "setConfig",
634
+ "outputs": [],
635
+ "stateMutability": "nonpayable",
636
+ "type": "function"
637
+ },
638
+ {
639
+ "inputs": [
640
+ {
641
+ "components": [
642
+ {
643
+ "internalType": "uint32",
644
+ "name": "eid",
645
+ "type": "uint32"
646
+ },
647
+ {
648
+ "components": [
649
+ {
650
+ "internalType": "uint32",
651
+ "name": "maxMessageSize",
652
+ "type": "uint32"
653
+ },
654
+ {
655
+ "internalType": "address",
656
+ "name": "executor",
657
+ "type": "address"
658
+ }
659
+ ],
660
+ "internalType": "struct ExecutorConfig",
661
+ "name": "config",
662
+ "type": "tuple"
663
+ }
664
+ ],
665
+ "internalType": "struct SetDefaultExecutorConfigParam[]",
666
+ "name": "_params",
667
+ "type": "tuple[]"
668
+ }
669
+ ],
670
+ "name": "setDefaultExecutorConfigs",
671
+ "outputs": [],
672
+ "stateMutability": "nonpayable",
673
+ "type": "function"
674
+ },
675
+ {
676
+ "inputs": [
677
+ {
678
+ "internalType": "address",
679
+ "name": "_treasury",
680
+ "type": "address"
681
+ }
682
+ ],
683
+ "name": "setTreasury",
684
+ "outputs": [],
685
+ "stateMutability": "nonpayable",
686
+ "type": "function"
687
+ },
688
+ {
689
+ "inputs": [
690
+ {
691
+ "internalType": "uint256",
692
+ "name": "_newTreasuryNativeFeeCap",
693
+ "type": "uint256"
694
+ }
695
+ ],
696
+ "name": "setTreasuryNativeFeeCap",
697
+ "outputs": [],
698
+ "stateMutability": "nonpayable",
699
+ "type": "function"
700
+ },
701
+ {
702
+ "inputs": [
703
+ {
704
+ "internalType": "bytes4",
705
+ "name": "_interfaceId",
706
+ "type": "bytes4"
707
+ }
708
+ ],
709
+ "name": "supportsInterface",
710
+ "outputs": [
711
+ {
712
+ "internalType": "bool",
713
+ "name": "",
714
+ "type": "bool"
715
+ }
716
+ ],
717
+ "stateMutability": "view",
718
+ "type": "function"
719
+ },
720
+ {
721
+ "inputs": [
722
+ {
723
+ "internalType": "address",
724
+ "name": "newOwner",
725
+ "type": "address"
726
+ }
727
+ ],
728
+ "name": "transferOwnership",
729
+ "outputs": [],
730
+ "stateMutability": "nonpayable",
731
+ "type": "function"
732
+ },
733
+ {
734
+ "inputs": [],
735
+ "name": "treasury",
736
+ "outputs": [
737
+ {
738
+ "internalType": "address",
739
+ "name": "",
740
+ "type": "address"
741
+ }
742
+ ],
743
+ "stateMutability": "view",
744
+ "type": "function"
745
+ },
746
+ {
747
+ "inputs": [],
748
+ "name": "version",
749
+ "outputs": [
750
+ {
751
+ "internalType": "uint64",
752
+ "name": "major",
753
+ "type": "uint64"
754
+ },
755
+ {
756
+ "internalType": "uint8",
757
+ "name": "minor",
758
+ "type": "uint8"
759
+ },
760
+ {
761
+ "internalType": "uint8",
762
+ "name": "endpointVersion",
763
+ "type": "uint8"
764
+ }
765
+ ],
766
+ "stateMutability": "view",
767
+ "type": "function"
768
+ },
769
+ {
770
+ "inputs": [
771
+ {
772
+ "internalType": "address",
773
+ "name": "_to",
774
+ "type": "address"
775
+ },
776
+ {
777
+ "internalType": "uint256",
778
+ "name": "_amount",
779
+ "type": "uint256"
780
+ }
781
+ ],
782
+ "name": "withdrawFee",
783
+ "outputs": [],
784
+ "stateMutability": "nonpayable",
785
+ "type": "function"
786
+ },
787
+ {
788
+ "inputs": [
789
+ {
790
+ "internalType": "address",
791
+ "name": "_lzToken",
792
+ "type": "address"
793
+ },
794
+ {
795
+ "internalType": "address",
796
+ "name": "_to",
797
+ "type": "address"
798
+ },
799
+ {
800
+ "internalType": "uint256",
801
+ "name": "_amount",
802
+ "type": "uint256"
803
+ }
804
+ ],
805
+ "name": "withdrawLzTokenFee",
806
+ "outputs": [],
807
+ "stateMutability": "nonpayable",
808
+ "type": "function"
809
+ },
810
+ {
811
+ "stateMutability": "payable",
812
+ "type": "receive"
813
+ }
814
+ ],
815
+ "bytecode": "0x",
816
+ "deployedBytecode": "0x",
817
+ "linkReferences": {},
818
+ "deployedLinkReferences": {}
819
+ }