@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,429 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IExecutor",
4
+ "sourceName": "contracts/interfaces/IExecutor.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "NotAllowed",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [],
13
+ "name": "OnlyMessageLib",
14
+ "type": "error"
15
+ },
16
+ {
17
+ "inputs": [],
18
+ "name": "RoleRenouncingDisabled",
19
+ "type": "error"
20
+ },
21
+ {
22
+ "anonymous": false,
23
+ "inputs": [
24
+ {
25
+ "components": [
26
+ {
27
+ "internalType": "uint32",
28
+ "name": "dstEid",
29
+ "type": "uint32"
30
+ },
31
+ {
32
+ "internalType": "uint64",
33
+ "name": "baseGas",
34
+ "type": "uint64"
35
+ },
36
+ {
37
+ "internalType": "uint16",
38
+ "name": "multiplierBps",
39
+ "type": "uint16"
40
+ },
41
+ {
42
+ "internalType": "uint128",
43
+ "name": "floorMarginUSD",
44
+ "type": "uint128"
45
+ },
46
+ {
47
+ "internalType": "uint128",
48
+ "name": "nativeCap",
49
+ "type": "uint128"
50
+ }
51
+ ],
52
+ "indexed": false,
53
+ "internalType": "struct IExecutor.DstConfigParam[]",
54
+ "name": "params",
55
+ "type": "tuple[]"
56
+ }
57
+ ],
58
+ "name": "DstConfigSet",
59
+ "type": "event"
60
+ },
61
+ {
62
+ "anonymous": false,
63
+ "inputs": [
64
+ {
65
+ "components": [
66
+ {
67
+ "internalType": "uint32",
68
+ "name": "srcEid",
69
+ "type": "uint32"
70
+ },
71
+ {
72
+ "internalType": "bytes32",
73
+ "name": "sender",
74
+ "type": "bytes32"
75
+ },
76
+ {
77
+ "internalType": "uint64",
78
+ "name": "nonce",
79
+ "type": "uint64"
80
+ }
81
+ ],
82
+ "indexed": false,
83
+ "internalType": "struct Origin",
84
+ "name": "origin",
85
+ "type": "tuple"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "internalType": "uint32",
90
+ "name": "dstEid",
91
+ "type": "uint32"
92
+ },
93
+ {
94
+ "indexed": false,
95
+ "internalType": "address",
96
+ "name": "oapp",
97
+ "type": "address"
98
+ },
99
+ {
100
+ "components": [
101
+ {
102
+ "internalType": "address",
103
+ "name": "receiver",
104
+ "type": "address"
105
+ },
106
+ {
107
+ "internalType": "uint256",
108
+ "name": "amount",
109
+ "type": "uint256"
110
+ }
111
+ ],
112
+ "indexed": false,
113
+ "internalType": "struct IExecutor.NativeDropParams[]",
114
+ "name": "params",
115
+ "type": "tuple[]"
116
+ },
117
+ {
118
+ "indexed": false,
119
+ "internalType": "bool[]",
120
+ "name": "success",
121
+ "type": "bool[]"
122
+ }
123
+ ],
124
+ "name": "NativeDropApplied",
125
+ "type": "event"
126
+ },
127
+ {
128
+ "anonymous": false,
129
+ "inputs": [
130
+ {
131
+ "indexed": false,
132
+ "internalType": "uint16",
133
+ "name": "multiplierBps",
134
+ "type": "uint16"
135
+ }
136
+ ],
137
+ "name": "SetDefaultMultiplierBps",
138
+ "type": "event"
139
+ },
140
+ {
141
+ "anonymous": false,
142
+ "inputs": [
143
+ {
144
+ "indexed": false,
145
+ "internalType": "address",
146
+ "name": "priceFeed",
147
+ "type": "address"
148
+ }
149
+ ],
150
+ "name": "SetPriceFeed",
151
+ "type": "event"
152
+ },
153
+ {
154
+ "anonymous": false,
155
+ "inputs": [
156
+ {
157
+ "indexed": false,
158
+ "internalType": "uint32",
159
+ "name": "dstEid",
160
+ "type": "uint32"
161
+ },
162
+ {
163
+ "indexed": false,
164
+ "internalType": "uint8[]",
165
+ "name": "optionTypes",
166
+ "type": "uint8[]"
167
+ }
168
+ ],
169
+ "name": "SetSupportedOptionTypes",
170
+ "type": "event"
171
+ },
172
+ {
173
+ "anonymous": false,
174
+ "inputs": [
175
+ {
176
+ "indexed": false,
177
+ "internalType": "address",
178
+ "name": "workerLib",
179
+ "type": "address"
180
+ }
181
+ ],
182
+ "name": "SetWorkerLib",
183
+ "type": "event"
184
+ },
185
+ {
186
+ "anonymous": false,
187
+ "inputs": [
188
+ {
189
+ "indexed": false,
190
+ "internalType": "address",
191
+ "name": "lib",
192
+ "type": "address"
193
+ },
194
+ {
195
+ "indexed": false,
196
+ "internalType": "address",
197
+ "name": "to",
198
+ "type": "address"
199
+ },
200
+ {
201
+ "indexed": false,
202
+ "internalType": "uint256",
203
+ "name": "amount",
204
+ "type": "uint256"
205
+ }
206
+ ],
207
+ "name": "Withdraw",
208
+ "type": "event"
209
+ },
210
+ {
211
+ "inputs": [
212
+ {
213
+ "internalType": "uint32",
214
+ "name": "_dstEid",
215
+ "type": "uint32"
216
+ },
217
+ {
218
+ "internalType": "address",
219
+ "name": "_sender",
220
+ "type": "address"
221
+ },
222
+ {
223
+ "internalType": "uint256",
224
+ "name": "_calldataSize",
225
+ "type": "uint256"
226
+ },
227
+ {
228
+ "internalType": "bytes",
229
+ "name": "_options",
230
+ "type": "bytes"
231
+ }
232
+ ],
233
+ "name": "assignJob",
234
+ "outputs": [
235
+ {
236
+ "internalType": "uint256",
237
+ "name": "price",
238
+ "type": "uint256"
239
+ }
240
+ ],
241
+ "stateMutability": "nonpayable",
242
+ "type": "function"
243
+ },
244
+ {
245
+ "inputs": [],
246
+ "name": "defaultMultiplierBps",
247
+ "outputs": [
248
+ {
249
+ "internalType": "uint16",
250
+ "name": "",
251
+ "type": "uint16"
252
+ }
253
+ ],
254
+ "stateMutability": "view",
255
+ "type": "function"
256
+ },
257
+ {
258
+ "inputs": [
259
+ {
260
+ "internalType": "uint32",
261
+ "name": "_dstEid",
262
+ "type": "uint32"
263
+ }
264
+ ],
265
+ "name": "dstConfig",
266
+ "outputs": [
267
+ {
268
+ "internalType": "uint64",
269
+ "name": "",
270
+ "type": "uint64"
271
+ },
272
+ {
273
+ "internalType": "uint16",
274
+ "name": "",
275
+ "type": "uint16"
276
+ },
277
+ {
278
+ "internalType": "uint128",
279
+ "name": "",
280
+ "type": "uint128"
281
+ },
282
+ {
283
+ "internalType": "uint128",
284
+ "name": "",
285
+ "type": "uint128"
286
+ }
287
+ ],
288
+ "stateMutability": "view",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "inputs": [
293
+ {
294
+ "internalType": "uint32",
295
+ "name": "_dstEid",
296
+ "type": "uint32"
297
+ },
298
+ {
299
+ "internalType": "address",
300
+ "name": "_sender",
301
+ "type": "address"
302
+ },
303
+ {
304
+ "internalType": "uint256",
305
+ "name": "_calldataSize",
306
+ "type": "uint256"
307
+ },
308
+ {
309
+ "internalType": "bytes",
310
+ "name": "_options",
311
+ "type": "bytes"
312
+ }
313
+ ],
314
+ "name": "getFee",
315
+ "outputs": [
316
+ {
317
+ "internalType": "uint256",
318
+ "name": "price",
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
+ "name": "getSupportedOptionTypes",
334
+ "outputs": [
335
+ {
336
+ "internalType": "uint8[]",
337
+ "name": "",
338
+ "type": "uint8[]"
339
+ }
340
+ ],
341
+ "stateMutability": "view",
342
+ "type": "function"
343
+ },
344
+ {
345
+ "inputs": [],
346
+ "name": "priceFeed",
347
+ "outputs": [
348
+ {
349
+ "internalType": "address",
350
+ "name": "",
351
+ "type": "address"
352
+ }
353
+ ],
354
+ "stateMutability": "view",
355
+ "type": "function"
356
+ },
357
+ {
358
+ "inputs": [
359
+ {
360
+ "internalType": "uint16",
361
+ "name": "_multiplierBps",
362
+ "type": "uint16"
363
+ }
364
+ ],
365
+ "name": "setDefaultMultiplierBps",
366
+ "outputs": [],
367
+ "stateMutability": "nonpayable",
368
+ "type": "function"
369
+ },
370
+ {
371
+ "inputs": [
372
+ {
373
+ "internalType": "address",
374
+ "name": "_priceFeed",
375
+ "type": "address"
376
+ }
377
+ ],
378
+ "name": "setPriceFeed",
379
+ "outputs": [],
380
+ "stateMutability": "nonpayable",
381
+ "type": "function"
382
+ },
383
+ {
384
+ "inputs": [
385
+ {
386
+ "internalType": "uint32",
387
+ "name": "_eid",
388
+ "type": "uint32"
389
+ },
390
+ {
391
+ "internalType": "uint8[]",
392
+ "name": "_optionTypes",
393
+ "type": "uint8[]"
394
+ }
395
+ ],
396
+ "name": "setSupportedOptionTypes",
397
+ "outputs": [],
398
+ "stateMutability": "nonpayable",
399
+ "type": "function"
400
+ },
401
+ {
402
+ "inputs": [
403
+ {
404
+ "internalType": "address",
405
+ "name": "_lib",
406
+ "type": "address"
407
+ },
408
+ {
409
+ "internalType": "address",
410
+ "name": "_to",
411
+ "type": "address"
412
+ },
413
+ {
414
+ "internalType": "uint256",
415
+ "name": "_amount",
416
+ "type": "uint256"
417
+ }
418
+ ],
419
+ "name": "withdrawFee",
420
+ "outputs": [],
421
+ "stateMutability": "nonpayable",
422
+ "type": "function"
423
+ }
424
+ ],
425
+ "bytecode": "0x",
426
+ "deployedBytecode": "0x",
427
+ "linkReferences": {},
428
+ "deployedLinkReferences": {}
429
+ }
@@ -0,0 +1,210 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IExecutorFeeLib",
4
+ "sourceName": "contracts/interfaces/IExecutorFeeLib.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint256",
10
+ "name": "cursor",
11
+ "type": "uint256"
12
+ }
13
+ ],
14
+ "name": "InvalidExecutorOptions",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "uint256",
21
+ "name": "amount",
22
+ "type": "uint256"
23
+ },
24
+ {
25
+ "internalType": "uint256",
26
+ "name": "cap",
27
+ "type": "uint256"
28
+ }
29
+ ],
30
+ "name": "NativeAmountExceedsCap",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "NoOptions",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [
40
+ {
41
+ "internalType": "uint8",
42
+ "name": "optionType",
43
+ "type": "uint8"
44
+ }
45
+ ],
46
+ "name": "UnsupportedOptionType",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [
51
+ {
52
+ "components": [
53
+ {
54
+ "internalType": "address",
55
+ "name": "priceFeed",
56
+ "type": "address"
57
+ },
58
+ {
59
+ "internalType": "uint32",
60
+ "name": "dstEid",
61
+ "type": "uint32"
62
+ },
63
+ {
64
+ "internalType": "address",
65
+ "name": "sender",
66
+ "type": "address"
67
+ },
68
+ {
69
+ "internalType": "uint256",
70
+ "name": "calldataSize",
71
+ "type": "uint256"
72
+ },
73
+ {
74
+ "internalType": "uint16",
75
+ "name": "defaultMultiplierBps",
76
+ "type": "uint16"
77
+ }
78
+ ],
79
+ "internalType": "struct IExecutorFeeLib.FeeParams",
80
+ "name": "_params",
81
+ "type": "tuple"
82
+ },
83
+ {
84
+ "components": [
85
+ {
86
+ "internalType": "uint64",
87
+ "name": "baseGas",
88
+ "type": "uint64"
89
+ },
90
+ {
91
+ "internalType": "uint16",
92
+ "name": "multiplierBps",
93
+ "type": "uint16"
94
+ },
95
+ {
96
+ "internalType": "uint128",
97
+ "name": "floorMarginUSD",
98
+ "type": "uint128"
99
+ },
100
+ {
101
+ "internalType": "uint128",
102
+ "name": "nativeCap",
103
+ "type": "uint128"
104
+ }
105
+ ],
106
+ "internalType": "struct IExecutor.DstConfig",
107
+ "name": "_dstConfig",
108
+ "type": "tuple"
109
+ },
110
+ {
111
+ "internalType": "bytes",
112
+ "name": "_options",
113
+ "type": "bytes"
114
+ }
115
+ ],
116
+ "name": "getFee",
117
+ "outputs": [
118
+ {
119
+ "internalType": "uint256",
120
+ "name": "fee",
121
+ "type": "uint256"
122
+ }
123
+ ],
124
+ "stateMutability": "view",
125
+ "type": "function"
126
+ },
127
+ {
128
+ "inputs": [
129
+ {
130
+ "components": [
131
+ {
132
+ "internalType": "address",
133
+ "name": "priceFeed",
134
+ "type": "address"
135
+ },
136
+ {
137
+ "internalType": "uint32",
138
+ "name": "dstEid",
139
+ "type": "uint32"
140
+ },
141
+ {
142
+ "internalType": "address",
143
+ "name": "sender",
144
+ "type": "address"
145
+ },
146
+ {
147
+ "internalType": "uint256",
148
+ "name": "calldataSize",
149
+ "type": "uint256"
150
+ },
151
+ {
152
+ "internalType": "uint16",
153
+ "name": "defaultMultiplierBps",
154
+ "type": "uint16"
155
+ }
156
+ ],
157
+ "internalType": "struct IExecutorFeeLib.FeeParams",
158
+ "name": "_params",
159
+ "type": "tuple"
160
+ },
161
+ {
162
+ "components": [
163
+ {
164
+ "internalType": "uint64",
165
+ "name": "baseGas",
166
+ "type": "uint64"
167
+ },
168
+ {
169
+ "internalType": "uint16",
170
+ "name": "multiplierBps",
171
+ "type": "uint16"
172
+ },
173
+ {
174
+ "internalType": "uint128",
175
+ "name": "floorMarginUSD",
176
+ "type": "uint128"
177
+ },
178
+ {
179
+ "internalType": "uint128",
180
+ "name": "nativeCap",
181
+ "type": "uint128"
182
+ }
183
+ ],
184
+ "internalType": "struct IExecutor.DstConfig",
185
+ "name": "_dstConfig",
186
+ "type": "tuple"
187
+ },
188
+ {
189
+ "internalType": "bytes",
190
+ "name": "_options",
191
+ "type": "bytes"
192
+ }
193
+ ],
194
+ "name": "getFeeOnSend",
195
+ "outputs": [
196
+ {
197
+ "internalType": "uint256",
198
+ "name": "fee",
199
+ "type": "uint256"
200
+ }
201
+ ],
202
+ "stateMutability": "nonpayable",
203
+ "type": "function"
204
+ }
205
+ ],
206
+ "bytecode": "0x",
207
+ "deployedBytecode": "0x",
208
+ "linkReferences": {},
209
+ "deployedLinkReferences": {}
210
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ILayerZeroExecutor",
4
+ "sourceName": "contracts/interfaces/ILayerZeroExecutor.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint32",
10
+ "name": "_dstEid",
11
+ "type": "uint32"
12
+ },
13
+ {
14
+ "internalType": "address",
15
+ "name": "_sender",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "internalType": "uint256",
20
+ "name": "_calldataSize",
21
+ "type": "uint256"
22
+ },
23
+ {
24
+ "internalType": "bytes",
25
+ "name": "_options",
26
+ "type": "bytes"
27
+ }
28
+ ],
29
+ "name": "assignJob",
30
+ "outputs": [
31
+ {
32
+ "internalType": "uint256",
33
+ "name": "price",
34
+ "type": "uint256"
35
+ }
36
+ ],
37
+ "stateMutability": "nonpayable",
38
+ "type": "function"
39
+ },
40
+ {
41
+ "inputs": [
42
+ {
43
+ "internalType": "uint32",
44
+ "name": "_dstEid",
45
+ "type": "uint32"
46
+ },
47
+ {
48
+ "internalType": "address",
49
+ "name": "_sender",
50
+ "type": "address"
51
+ },
52
+ {
53
+ "internalType": "uint256",
54
+ "name": "_calldataSize",
55
+ "type": "uint256"
56
+ },
57
+ {
58
+ "internalType": "bytes",
59
+ "name": "_options",
60
+ "type": "bytes"
61
+ }
62
+ ],
63
+ "name": "getFee",
64
+ "outputs": [
65
+ {
66
+ "internalType": "uint256",
67
+ "name": "price",
68
+ "type": "uint256"
69
+ }
70
+ ],
71
+ "stateMutability": "view",
72
+ "type": "function"
73
+ }
74
+ ],
75
+ "bytecode": "0x",
76
+ "deployedBytecode": "0x",
77
+ "linkReferences": {},
78
+ "deployedLinkReferences": {}
79
+ }