@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,121 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ILayerZeroReceiver",
4
+ "sourceName": "contracts/interfaces/ILayerZeroReceiver.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "components": [
10
+ {
11
+ "internalType": "uint32",
12
+ "name": "srcEid",
13
+ "type": "uint32"
14
+ },
15
+ {
16
+ "internalType": "bytes32",
17
+ "name": "sender",
18
+ "type": "bytes32"
19
+ },
20
+ {
21
+ "internalType": "uint64",
22
+ "name": "nonce",
23
+ "type": "uint64"
24
+ }
25
+ ],
26
+ "internalType": "struct Origin",
27
+ "name": "_origin",
28
+ "type": "tuple"
29
+ }
30
+ ],
31
+ "name": "allowInitializePath",
32
+ "outputs": [
33
+ {
34
+ "internalType": "bool",
35
+ "name": "",
36
+ "type": "bool"
37
+ }
38
+ ],
39
+ "stateMutability": "view",
40
+ "type": "function"
41
+ },
42
+ {
43
+ "inputs": [
44
+ {
45
+ "components": [
46
+ {
47
+ "internalType": "uint32",
48
+ "name": "srcEid",
49
+ "type": "uint32"
50
+ },
51
+ {
52
+ "internalType": "bytes32",
53
+ "name": "sender",
54
+ "type": "bytes32"
55
+ },
56
+ {
57
+ "internalType": "uint64",
58
+ "name": "nonce",
59
+ "type": "uint64"
60
+ }
61
+ ],
62
+ "internalType": "struct Origin",
63
+ "name": "_origin",
64
+ "type": "tuple"
65
+ },
66
+ {
67
+ "internalType": "bytes32",
68
+ "name": "_guid",
69
+ "type": "bytes32"
70
+ },
71
+ {
72
+ "internalType": "bytes",
73
+ "name": "_message",
74
+ "type": "bytes"
75
+ },
76
+ {
77
+ "internalType": "address",
78
+ "name": "_executor",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "internalType": "bytes",
83
+ "name": "_extraData",
84
+ "type": "bytes"
85
+ }
86
+ ],
87
+ "name": "lzReceive",
88
+ "outputs": [],
89
+ "stateMutability": "payable",
90
+ "type": "function"
91
+ },
92
+ {
93
+ "inputs": [
94
+ {
95
+ "internalType": "uint32",
96
+ "name": "_eid",
97
+ "type": "uint32"
98
+ },
99
+ {
100
+ "internalType": "bytes32",
101
+ "name": "_sender",
102
+ "type": "bytes32"
103
+ }
104
+ ],
105
+ "name": "nextNonce",
106
+ "outputs": [
107
+ {
108
+ "internalType": "uint64",
109
+ "name": "",
110
+ "type": "uint64"
111
+ }
112
+ ],
113
+ "stateMutability": "view",
114
+ "type": "function"
115
+ }
116
+ ],
117
+ "bytecode": "0x",
118
+ "deployedBytecode": "0x",
119
+ "linkReferences": {},
120
+ "deployedLinkReferences": {}
121
+ }
@@ -0,0 +1,149 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IMessageLib",
4
+ "sourceName": "contracts/interfaces/IMessageLib.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint32",
10
+ "name": "_eid",
11
+ "type": "uint32"
12
+ },
13
+ {
14
+ "internalType": "address",
15
+ "name": "_oapp",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "internalType": "uint32",
20
+ "name": "_configType",
21
+ "type": "uint32"
22
+ }
23
+ ],
24
+ "name": "getConfig",
25
+ "outputs": [
26
+ {
27
+ "internalType": "bytes",
28
+ "name": "config",
29
+ "type": "bytes"
30
+ }
31
+ ],
32
+ "stateMutability": "view",
33
+ "type": "function"
34
+ },
35
+ {
36
+ "inputs": [
37
+ {
38
+ "internalType": "uint32",
39
+ "name": "_eid",
40
+ "type": "uint32"
41
+ }
42
+ ],
43
+ "name": "isSupportedEid",
44
+ "outputs": [
45
+ {
46
+ "internalType": "bool",
47
+ "name": "",
48
+ "type": "bool"
49
+ }
50
+ ],
51
+ "stateMutability": "view",
52
+ "type": "function"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "messageLibType",
57
+ "outputs": [
58
+ {
59
+ "internalType": "enum MessageLibType",
60
+ "name": "",
61
+ "type": "uint8"
62
+ }
63
+ ],
64
+ "stateMutability": "view",
65
+ "type": "function"
66
+ },
67
+ {
68
+ "inputs": [
69
+ {
70
+ "internalType": "address",
71
+ "name": "_oapp",
72
+ "type": "address"
73
+ },
74
+ {
75
+ "components": [
76
+ {
77
+ "internalType": "uint32",
78
+ "name": "eid",
79
+ "type": "uint32"
80
+ },
81
+ {
82
+ "internalType": "uint32",
83
+ "name": "configType",
84
+ "type": "uint32"
85
+ },
86
+ {
87
+ "internalType": "bytes",
88
+ "name": "config",
89
+ "type": "bytes"
90
+ }
91
+ ],
92
+ "internalType": "struct SetConfigParam[]",
93
+ "name": "_config",
94
+ "type": "tuple[]"
95
+ }
96
+ ],
97
+ "name": "setConfig",
98
+ "outputs": [],
99
+ "stateMutability": "nonpayable",
100
+ "type": "function"
101
+ },
102
+ {
103
+ "inputs": [
104
+ {
105
+ "internalType": "bytes4",
106
+ "name": "interfaceId",
107
+ "type": "bytes4"
108
+ }
109
+ ],
110
+ "name": "supportsInterface",
111
+ "outputs": [
112
+ {
113
+ "internalType": "bool",
114
+ "name": "",
115
+ "type": "bool"
116
+ }
117
+ ],
118
+ "stateMutability": "view",
119
+ "type": "function"
120
+ },
121
+ {
122
+ "inputs": [],
123
+ "name": "version",
124
+ "outputs": [
125
+ {
126
+ "internalType": "uint64",
127
+ "name": "major",
128
+ "type": "uint64"
129
+ },
130
+ {
131
+ "internalType": "uint8",
132
+ "name": "minor",
133
+ "type": "uint8"
134
+ },
135
+ {
136
+ "internalType": "uint8",
137
+ "name": "endpointVersion",
138
+ "type": "uint8"
139
+ }
140
+ ],
141
+ "stateMutability": "view",
142
+ "type": "function"
143
+ }
144
+ ],
145
+ "bytecode": "0x",
146
+ "deployedBytecode": "0x",
147
+ "linkReferences": {},
148
+ "deployedLinkReferences": {}
149
+ }