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