@layerzerolabs/lz-evm-sdk-v1 1.5.13 → 1.5.14

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.
@@ -0,0 +1,301 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "PreCrime",
4
+ "sourceName": "contracts/precrime/PreCrime.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "CODE_MISS_SIMULATE_RESULT",
9
+ "outputs": [
10
+ {
11
+ "internalType": "uint16",
12
+ "name": "",
13
+ "type": "uint16"
14
+ }
15
+ ],
16
+ "stateMutability": "view",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "inputs": [],
21
+ "name": "CODE_PACKETS_OVERSIZE",
22
+ "outputs": [
23
+ {
24
+ "internalType": "uint16",
25
+ "name": "",
26
+ "type": "uint16"
27
+ }
28
+ ],
29
+ "stateMutability": "view",
30
+ "type": "function"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "CODE_PACKETS_UNSORTED",
35
+ "outputs": [
36
+ {
37
+ "internalType": "uint16",
38
+ "name": "",
39
+ "type": "uint16"
40
+ }
41
+ ],
42
+ "stateMutability": "view",
43
+ "type": "function"
44
+ },
45
+ {
46
+ "inputs": [],
47
+ "name": "CODE_PRECRIME_FAILURE",
48
+ "outputs": [
49
+ {
50
+ "internalType": "uint16",
51
+ "name": "",
52
+ "type": "uint16"
53
+ }
54
+ ],
55
+ "stateMutability": "view",
56
+ "type": "function"
57
+ },
58
+ {
59
+ "inputs": [],
60
+ "name": "CODE_SUCCESS",
61
+ "outputs": [
62
+ {
63
+ "internalType": "uint16",
64
+ "name": "",
65
+ "type": "uint16"
66
+ }
67
+ ],
68
+ "stateMutability": "view",
69
+ "type": "function"
70
+ },
71
+ {
72
+ "inputs": [],
73
+ "name": "CONFIG_VERSION",
74
+ "outputs": [
75
+ {
76
+ "internalType": "uint16",
77
+ "name": "",
78
+ "type": "uint16"
79
+ }
80
+ ],
81
+ "stateMutability": "view",
82
+ "type": "function"
83
+ },
84
+ {
85
+ "inputs": [],
86
+ "name": "PRECRIME_VERSION",
87
+ "outputs": [
88
+ {
89
+ "internalType": "uint16",
90
+ "name": "",
91
+ "type": "uint16"
92
+ }
93
+ ],
94
+ "stateMutability": "view",
95
+ "type": "function"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "components": [
101
+ {
102
+ "internalType": "uint16",
103
+ "name": "srcChainId",
104
+ "type": "uint16"
105
+ },
106
+ {
107
+ "internalType": "bytes32",
108
+ "name": "srcAddress",
109
+ "type": "bytes32"
110
+ },
111
+ {
112
+ "internalType": "uint64",
113
+ "name": "nonce",
114
+ "type": "uint64"
115
+ },
116
+ {
117
+ "internalType": "bytes",
118
+ "name": "payload",
119
+ "type": "bytes"
120
+ }
121
+ ],
122
+ "internalType": "struct IPreCrimeBase.Packet[]",
123
+ "name": "_packets",
124
+ "type": "tuple[]"
125
+ }
126
+ ],
127
+ "name": "_simulateAndRevert",
128
+ "outputs": [],
129
+ "stateMutability": "nonpayable",
130
+ "type": "function"
131
+ },
132
+ {
133
+ "inputs": [
134
+ {
135
+ "components": [
136
+ {
137
+ "internalType": "uint16",
138
+ "name": "srcChainId",
139
+ "type": "uint16"
140
+ },
141
+ {
142
+ "internalType": "bytes32",
143
+ "name": "srcAddress",
144
+ "type": "bytes32"
145
+ },
146
+ {
147
+ "internalType": "uint64",
148
+ "name": "nonce",
149
+ "type": "uint64"
150
+ },
151
+ {
152
+ "internalType": "bytes",
153
+ "name": "payload",
154
+ "type": "bytes"
155
+ }
156
+ ],
157
+ "internalType": "struct IPreCrimeBase.Packet[]",
158
+ "name": "_packets",
159
+ "type": "tuple[]"
160
+ }
161
+ ],
162
+ "name": "getConfig",
163
+ "outputs": [
164
+ {
165
+ "internalType": "bytes",
166
+ "name": "",
167
+ "type": "bytes"
168
+ }
169
+ ],
170
+ "stateMutability": "view",
171
+ "type": "function"
172
+ },
173
+ {
174
+ "inputs": [],
175
+ "name": "localChainId",
176
+ "outputs": [
177
+ {
178
+ "internalType": "uint16",
179
+ "name": "",
180
+ "type": "uint16"
181
+ }
182
+ ],
183
+ "stateMutability": "view",
184
+ "type": "function"
185
+ },
186
+ {
187
+ "inputs": [
188
+ {
189
+ "components": [
190
+ {
191
+ "internalType": "uint16",
192
+ "name": "srcChainId",
193
+ "type": "uint16"
194
+ },
195
+ {
196
+ "internalType": "bytes32",
197
+ "name": "srcAddress",
198
+ "type": "bytes32"
199
+ },
200
+ {
201
+ "internalType": "uint64",
202
+ "name": "nonce",
203
+ "type": "uint64"
204
+ },
205
+ {
206
+ "internalType": "bytes",
207
+ "name": "payload",
208
+ "type": "bytes"
209
+ }
210
+ ],
211
+ "internalType": "struct IPreCrimeBase.Packet[]",
212
+ "name": "_packets",
213
+ "type": "tuple[]"
214
+ },
215
+ {
216
+ "internalType": "bytes[]",
217
+ "name": "_simulation",
218
+ "type": "bytes[]"
219
+ }
220
+ ],
221
+ "name": "precrime",
222
+ "outputs": [
223
+ {
224
+ "internalType": "uint16",
225
+ "name": "code",
226
+ "type": "uint16"
227
+ },
228
+ {
229
+ "internalType": "bytes",
230
+ "name": "reason",
231
+ "type": "bytes"
232
+ }
233
+ ],
234
+ "stateMutability": "view",
235
+ "type": "function"
236
+ },
237
+ {
238
+ "inputs": [
239
+ {
240
+ "components": [
241
+ {
242
+ "internalType": "uint16",
243
+ "name": "srcChainId",
244
+ "type": "uint16"
245
+ },
246
+ {
247
+ "internalType": "bytes32",
248
+ "name": "srcAddress",
249
+ "type": "bytes32"
250
+ },
251
+ {
252
+ "internalType": "uint64",
253
+ "name": "nonce",
254
+ "type": "uint64"
255
+ },
256
+ {
257
+ "internalType": "bytes",
258
+ "name": "payload",
259
+ "type": "bytes"
260
+ }
261
+ ],
262
+ "internalType": "struct IPreCrimeBase.Packet[]",
263
+ "name": "_packets",
264
+ "type": "tuple[]"
265
+ }
266
+ ],
267
+ "name": "simulate",
268
+ "outputs": [
269
+ {
270
+ "internalType": "uint16",
271
+ "name": "code",
272
+ "type": "uint16"
273
+ },
274
+ {
275
+ "internalType": "bytes",
276
+ "name": "data",
277
+ "type": "bytes"
278
+ }
279
+ ],
280
+ "stateMutability": "nonpayable",
281
+ "type": "function"
282
+ },
283
+ {
284
+ "inputs": [],
285
+ "name": "version",
286
+ "outputs": [
287
+ {
288
+ "internalType": "uint16",
289
+ "name": "",
290
+ "type": "uint16"
291
+ }
292
+ ],
293
+ "stateMutability": "pure",
294
+ "type": "function"
295
+ }
296
+ ],
297
+ "bytecode": "0x",
298
+ "deployedBytecode": "0x",
299
+ "linkReferences": {},
300
+ "deployedLinkReferences": {}
301
+ }
@@ -0,0 +1,207 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "PreCrimeBase",
4
+ "sourceName": "contracts/precrime/PreCrimeBase.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "CODE_MISS_SIMULATE_RESULT",
9
+ "outputs": [
10
+ {
11
+ "internalType": "uint16",
12
+ "name": "",
13
+ "type": "uint16"
14
+ }
15
+ ],
16
+ "stateMutability": "view",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "inputs": [],
21
+ "name": "CODE_PACKETS_OVERSIZE",
22
+ "outputs": [
23
+ {
24
+ "internalType": "uint16",
25
+ "name": "",
26
+ "type": "uint16"
27
+ }
28
+ ],
29
+ "stateMutability": "view",
30
+ "type": "function"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "CODE_PACKETS_UNSORTED",
35
+ "outputs": [
36
+ {
37
+ "internalType": "uint16",
38
+ "name": "",
39
+ "type": "uint16"
40
+ }
41
+ ],
42
+ "stateMutability": "view",
43
+ "type": "function"
44
+ },
45
+ {
46
+ "inputs": [],
47
+ "name": "CODE_PRECRIME_FAILURE",
48
+ "outputs": [
49
+ {
50
+ "internalType": "uint16",
51
+ "name": "",
52
+ "type": "uint16"
53
+ }
54
+ ],
55
+ "stateMutability": "view",
56
+ "type": "function"
57
+ },
58
+ {
59
+ "inputs": [],
60
+ "name": "CODE_SUCCESS",
61
+ "outputs": [
62
+ {
63
+ "internalType": "uint16",
64
+ "name": "",
65
+ "type": "uint16"
66
+ }
67
+ ],
68
+ "stateMutability": "view",
69
+ "type": "function"
70
+ },
71
+ {
72
+ "inputs": [],
73
+ "name": "CONFIG_VERSION",
74
+ "outputs": [
75
+ {
76
+ "internalType": "uint16",
77
+ "name": "",
78
+ "type": "uint16"
79
+ }
80
+ ],
81
+ "stateMutability": "view",
82
+ "type": "function"
83
+ },
84
+ {
85
+ "inputs": [
86
+ {
87
+ "components": [
88
+ {
89
+ "internalType": "uint16",
90
+ "name": "srcChainId",
91
+ "type": "uint16"
92
+ },
93
+ {
94
+ "internalType": "bytes32",
95
+ "name": "srcAddress",
96
+ "type": "bytes32"
97
+ },
98
+ {
99
+ "internalType": "uint64",
100
+ "name": "nonce",
101
+ "type": "uint64"
102
+ },
103
+ {
104
+ "internalType": "bytes",
105
+ "name": "payload",
106
+ "type": "bytes"
107
+ }
108
+ ],
109
+ "internalType": "struct IPreCrimeBase.Packet[]",
110
+ "name": "_packets",
111
+ "type": "tuple[]"
112
+ }
113
+ ],
114
+ "name": "getConfig",
115
+ "outputs": [
116
+ {
117
+ "internalType": "bytes",
118
+ "name": "",
119
+ "type": "bytes"
120
+ }
121
+ ],
122
+ "stateMutability": "view",
123
+ "type": "function"
124
+ },
125
+ {
126
+ "inputs": [],
127
+ "name": "localChainId",
128
+ "outputs": [
129
+ {
130
+ "internalType": "uint16",
131
+ "name": "",
132
+ "type": "uint16"
133
+ }
134
+ ],
135
+ "stateMutability": "view",
136
+ "type": "function"
137
+ },
138
+ {
139
+ "inputs": [
140
+ {
141
+ "components": [
142
+ {
143
+ "internalType": "uint16",
144
+ "name": "srcChainId",
145
+ "type": "uint16"
146
+ },
147
+ {
148
+ "internalType": "bytes32",
149
+ "name": "srcAddress",
150
+ "type": "bytes32"
151
+ },
152
+ {
153
+ "internalType": "uint64",
154
+ "name": "nonce",
155
+ "type": "uint64"
156
+ },
157
+ {
158
+ "internalType": "bytes",
159
+ "name": "payload",
160
+ "type": "bytes"
161
+ }
162
+ ],
163
+ "internalType": "struct IPreCrimeBase.Packet[]",
164
+ "name": "_packets",
165
+ "type": "tuple[]"
166
+ },
167
+ {
168
+ "internalType": "bytes[]",
169
+ "name": "_simulation",
170
+ "type": "bytes[]"
171
+ }
172
+ ],
173
+ "name": "precrime",
174
+ "outputs": [
175
+ {
176
+ "internalType": "uint16",
177
+ "name": "code",
178
+ "type": "uint16"
179
+ },
180
+ {
181
+ "internalType": "bytes",
182
+ "name": "reason",
183
+ "type": "bytes"
184
+ }
185
+ ],
186
+ "stateMutability": "view",
187
+ "type": "function"
188
+ },
189
+ {
190
+ "inputs": [],
191
+ "name": "version",
192
+ "outputs": [
193
+ {
194
+ "internalType": "uint16",
195
+ "name": "",
196
+ "type": "uint16"
197
+ }
198
+ ],
199
+ "stateMutability": "view",
200
+ "type": "function"
201
+ }
202
+ ],
203
+ "bytecode": "0x",
204
+ "deployedBytecode": "0x",
205
+ "linkReferences": {},
206
+ "deployedLinkReferences": {}
207
+ }