@layerzerolabs/lz-evm-protocol-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 (51) hide show
  1. package/artifacts/contracts/EndpointV2.sol/EndpointV2.json +2364 -0
  2. package/artifacts/contracts/EndpointV2Alt.sol/EndpointV2Alt.json +2379 -0
  3. package/artifacts/contracts/MessageLibManager.sol/MessageLibManager.json +783 -0
  4. package/artifacts/contracts/MessagingChannel.sol/MessagingChannel.json +426 -0
  5. package/artifacts/contracts/MessagingComposer.sol/MessagingComposer.json +320 -0
  6. package/artifacts/contracts/MessagingContext.sol/MessagingContext.json +42 -0
  7. package/artifacts/contracts/interfaces/ILayerZeroComposer.sol/ILayerZeroComposer.json +44 -0
  8. package/artifacts/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.json +1844 -0
  9. package/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +121 -0
  10. package/artifacts/contracts/interfaces/IMessageLib.sol/IMessageLib.json +149 -0
  11. package/artifacts/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.json +629 -0
  12. package/artifacts/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.json +344 -0
  13. package/artifacts/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.json +246 -0
  14. package/artifacts/contracts/interfaces/IMessagingContext.sol/IMessagingContext.json +42 -0
  15. package/artifacts/contracts/interfaces/ISendLib.sol/ISendLib.json +364 -0
  16. package/artifacts/contracts/libs/AddressCast.sol/AddressCast.json +10 -0
  17. package/artifacts/contracts/libs/CalldataBytesLib.sol/CalldataBytesLib.json +10 -0
  18. package/artifacts/contracts/libs/Errors.sol/Errors.json +226 -0
  19. package/artifacts/contracts/libs/GUID.sol/GUID.json +10 -0
  20. package/artifacts/contracts/libs/Transfer.sol/Transfer.json +32 -0
  21. package/artifacts/contracts/messagelib/BlockedMessageLib.sol/BlockedMessageLib.json +94 -0
  22. package/artifacts/contracts/messagelib/SimpleMessageLib.sol/SimpleMessageLib.json +591 -0
  23. package/artifacts/contracts/messagelib/libs/BitMaps.sol/BitMaps.json +10 -0
  24. package/artifacts/contracts/messagelib/libs/ExecutorOptions.sol/ExecutorOptions.json +26 -0
  25. package/artifacts/contracts/messagelib/libs/PacketV1Codec.sol/PacketV1Codec.json +10 -0
  26. package/contracts/EndpointV2.sol +403 -0
  27. package/contracts/EndpointV2Alt.sol +50 -0
  28. package/contracts/MessageLibManager.sol +326 -0
  29. package/contracts/MessagingChannel.sol +161 -0
  30. package/contracts/MessagingComposer.sol +80 -0
  31. package/contracts/MessagingContext.sol +36 -0
  32. package/contracts/interfaces/ILayerZeroComposer.sol +24 -0
  33. package/contracts/interfaces/ILayerZeroEndpointV2.sol +98 -0
  34. package/contracts/interfaces/ILayerZeroReceiver.sol +20 -0
  35. package/contracts/interfaces/IMessageLib.sol +26 -0
  36. package/contracts/interfaces/IMessageLibManager.sol +68 -0
  37. package/contracts/interfaces/IMessagingChannel.sol +32 -0
  38. package/contracts/interfaces/IMessagingComposer.sol +38 -0
  39. package/contracts/interfaces/IMessagingContext.sol +9 -0
  40. package/contracts/interfaces/ISendLib.sol +36 -0
  41. package/contracts/libs/AddressCast.sol +40 -0
  42. package/contracts/libs/CalldataBytesLib.sol +58 -0
  43. package/contracts/libs/Errors.sol +42 -0
  44. package/contracts/libs/GUID.sol +19 -0
  45. package/contracts/libs/Transfer.sol +34 -0
  46. package/contracts/messagelib/BlockedMessageLib.sol +30 -0
  47. package/contracts/messagelib/SimpleMessageLib.sol +149 -0
  48. package/contracts/messagelib/libs/BitMaps.sol +26 -0
  49. package/contracts/messagelib/libs/ExecutorOptions.sol +85 -0
  50. package/contracts/messagelib/libs/PacketV1Codec.sol +108 -0
  51. package/package.json +27 -0
@@ -0,0 +1,320 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "MessagingComposer",
4
+ "sourceName": "contracts/MessagingComposer.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "ComposeExists",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "bytes32",
15
+ "name": "expected",
16
+ "type": "bytes32"
17
+ },
18
+ {
19
+ "internalType": "bytes32",
20
+ "name": "actual",
21
+ "type": "bytes32"
22
+ }
23
+ ],
24
+ "name": "ComposeNotFound",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "anonymous": false,
29
+ "inputs": [
30
+ {
31
+ "indexed": false,
32
+ "internalType": "address",
33
+ "name": "from",
34
+ "type": "address"
35
+ },
36
+ {
37
+ "indexed": false,
38
+ "internalType": "address",
39
+ "name": "to",
40
+ "type": "address"
41
+ },
42
+ {
43
+ "indexed": false,
44
+ "internalType": "bytes32",
45
+ "name": "guid",
46
+ "type": "bytes32"
47
+ },
48
+ {
49
+ "indexed": false,
50
+ "internalType": "uint16",
51
+ "name": "index",
52
+ "type": "uint16"
53
+ }
54
+ ],
55
+ "name": "ComposeDelivered",
56
+ "type": "event"
57
+ },
58
+ {
59
+ "anonymous": false,
60
+ "inputs": [
61
+ {
62
+ "indexed": false,
63
+ "internalType": "address",
64
+ "name": "from",
65
+ "type": "address"
66
+ },
67
+ {
68
+ "indexed": false,
69
+ "internalType": "address",
70
+ "name": "to",
71
+ "type": "address"
72
+ },
73
+ {
74
+ "indexed": false,
75
+ "internalType": "bytes32",
76
+ "name": "guid",
77
+ "type": "bytes32"
78
+ },
79
+ {
80
+ "indexed": false,
81
+ "internalType": "uint16",
82
+ "name": "index",
83
+ "type": "uint16"
84
+ },
85
+ {
86
+ "indexed": false,
87
+ "internalType": "bytes",
88
+ "name": "message",
89
+ "type": "bytes"
90
+ }
91
+ ],
92
+ "name": "ComposeSent",
93
+ "type": "event"
94
+ },
95
+ {
96
+ "anonymous": false,
97
+ "inputs": [
98
+ {
99
+ "indexed": true,
100
+ "internalType": "address",
101
+ "name": "from",
102
+ "type": "address"
103
+ },
104
+ {
105
+ "indexed": true,
106
+ "internalType": "address",
107
+ "name": "to",
108
+ "type": "address"
109
+ },
110
+ {
111
+ "indexed": true,
112
+ "internalType": "address",
113
+ "name": "executor",
114
+ "type": "address"
115
+ },
116
+ {
117
+ "indexed": false,
118
+ "internalType": "bytes32",
119
+ "name": "guid",
120
+ "type": "bytes32"
121
+ },
122
+ {
123
+ "indexed": false,
124
+ "internalType": "uint16",
125
+ "name": "index",
126
+ "type": "uint16"
127
+ },
128
+ {
129
+ "indexed": false,
130
+ "internalType": "uint256",
131
+ "name": "gas",
132
+ "type": "uint256"
133
+ },
134
+ {
135
+ "indexed": false,
136
+ "internalType": "uint256",
137
+ "name": "value",
138
+ "type": "uint256"
139
+ },
140
+ {
141
+ "indexed": false,
142
+ "internalType": "bytes",
143
+ "name": "message",
144
+ "type": "bytes"
145
+ },
146
+ {
147
+ "indexed": false,
148
+ "internalType": "bytes",
149
+ "name": "extraData",
150
+ "type": "bytes"
151
+ },
152
+ {
153
+ "indexed": false,
154
+ "internalType": "bytes",
155
+ "name": "reason",
156
+ "type": "bytes"
157
+ }
158
+ ],
159
+ "name": "LzComposeAlert",
160
+ "type": "event"
161
+ },
162
+ {
163
+ "inputs": [
164
+ {
165
+ "internalType": "address",
166
+ "name": "from",
167
+ "type": "address"
168
+ },
169
+ {
170
+ "internalType": "address",
171
+ "name": "to",
172
+ "type": "address"
173
+ },
174
+ {
175
+ "internalType": "bytes32",
176
+ "name": "guid",
177
+ "type": "bytes32"
178
+ },
179
+ {
180
+ "internalType": "uint16",
181
+ "name": "index",
182
+ "type": "uint16"
183
+ }
184
+ ],
185
+ "name": "composeQueue",
186
+ "outputs": [
187
+ {
188
+ "internalType": "bytes32",
189
+ "name": "messageHash",
190
+ "type": "bytes32"
191
+ }
192
+ ],
193
+ "stateMutability": "view",
194
+ "type": "function"
195
+ },
196
+ {
197
+ "inputs": [
198
+ {
199
+ "internalType": "address",
200
+ "name": "_from",
201
+ "type": "address"
202
+ },
203
+ {
204
+ "internalType": "address",
205
+ "name": "_to",
206
+ "type": "address"
207
+ },
208
+ {
209
+ "internalType": "bytes32",
210
+ "name": "_guid",
211
+ "type": "bytes32"
212
+ },
213
+ {
214
+ "internalType": "uint16",
215
+ "name": "_index",
216
+ "type": "uint16"
217
+ },
218
+ {
219
+ "internalType": "bytes",
220
+ "name": "_message",
221
+ "type": "bytes"
222
+ },
223
+ {
224
+ "internalType": "bytes",
225
+ "name": "_extraData",
226
+ "type": "bytes"
227
+ }
228
+ ],
229
+ "name": "lzCompose",
230
+ "outputs": [],
231
+ "stateMutability": "payable",
232
+ "type": "function"
233
+ },
234
+ {
235
+ "inputs": [
236
+ {
237
+ "internalType": "address",
238
+ "name": "_from",
239
+ "type": "address"
240
+ },
241
+ {
242
+ "internalType": "address",
243
+ "name": "_to",
244
+ "type": "address"
245
+ },
246
+ {
247
+ "internalType": "bytes32",
248
+ "name": "_guid",
249
+ "type": "bytes32"
250
+ },
251
+ {
252
+ "internalType": "uint16",
253
+ "name": "_index",
254
+ "type": "uint16"
255
+ },
256
+ {
257
+ "internalType": "uint256",
258
+ "name": "_gas",
259
+ "type": "uint256"
260
+ },
261
+ {
262
+ "internalType": "uint256",
263
+ "name": "_value",
264
+ "type": "uint256"
265
+ },
266
+ {
267
+ "internalType": "bytes",
268
+ "name": "_message",
269
+ "type": "bytes"
270
+ },
271
+ {
272
+ "internalType": "bytes",
273
+ "name": "_extraData",
274
+ "type": "bytes"
275
+ },
276
+ {
277
+ "internalType": "bytes",
278
+ "name": "_reason",
279
+ "type": "bytes"
280
+ }
281
+ ],
282
+ "name": "lzComposeAlert",
283
+ "outputs": [],
284
+ "stateMutability": "nonpayable",
285
+ "type": "function"
286
+ },
287
+ {
288
+ "inputs": [
289
+ {
290
+ "internalType": "address",
291
+ "name": "_to",
292
+ "type": "address"
293
+ },
294
+ {
295
+ "internalType": "bytes32",
296
+ "name": "_guid",
297
+ "type": "bytes32"
298
+ },
299
+ {
300
+ "internalType": "uint16",
301
+ "name": "_index",
302
+ "type": "uint16"
303
+ },
304
+ {
305
+ "internalType": "bytes",
306
+ "name": "_message",
307
+ "type": "bytes"
308
+ }
309
+ ],
310
+ "name": "sendCompose",
311
+ "outputs": [],
312
+ "stateMutability": "nonpayable",
313
+ "type": "function"
314
+ }
315
+ ],
316
+ "bytecode": "0x",
317
+ "deployedBytecode": "0x",
318
+ "linkReferences": {},
319
+ "deployedLinkReferences": {}
320
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "MessagingContext",
4
+ "sourceName": "contracts/MessagingContext.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "getSendContext",
9
+ "outputs": [
10
+ {
11
+ "internalType": "uint32",
12
+ "name": "",
13
+ "type": "uint32"
14
+ },
15
+ {
16
+ "internalType": "address",
17
+ "name": "",
18
+ "type": "address"
19
+ }
20
+ ],
21
+ "stateMutability": "view",
22
+ "type": "function"
23
+ },
24
+ {
25
+ "inputs": [],
26
+ "name": "isSendingMessage",
27
+ "outputs": [
28
+ {
29
+ "internalType": "bool",
30
+ "name": "",
31
+ "type": "bool"
32
+ }
33
+ ],
34
+ "stateMutability": "view",
35
+ "type": "function"
36
+ }
37
+ ],
38
+ "bytecode": "0x",
39
+ "deployedBytecode": "0x",
40
+ "linkReferences": {},
41
+ "deployedLinkReferences": {}
42
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ILayerZeroComposer",
4
+ "sourceName": "contracts/interfaces/ILayerZeroComposer.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "_from",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "bytes32",
15
+ "name": "_guid",
16
+ "type": "bytes32"
17
+ },
18
+ {
19
+ "internalType": "bytes",
20
+ "name": "_message",
21
+ "type": "bytes"
22
+ },
23
+ {
24
+ "internalType": "address",
25
+ "name": "_executor",
26
+ "type": "address"
27
+ },
28
+ {
29
+ "internalType": "bytes",
30
+ "name": "_extraData",
31
+ "type": "bytes"
32
+ }
33
+ ],
34
+ "name": "lzCompose",
35
+ "outputs": [],
36
+ "stateMutability": "payable",
37
+ "type": "function"
38
+ }
39
+ ],
40
+ "bytecode": "0x",
41
+ "deployedBytecode": "0x",
42
+ "linkReferences": {},
43
+ "deployedLinkReferences": {}
44
+ }