@layerzerolabs/lz-evm-sdk-v1 2.3.9 → 2.3.11

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 (166) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/artifacts-tron/contracts/Endpoint.sol/Endpoint.json +958 -0
  3. package/artifacts-tron/contracts/NonceContract.sol/NonceContract.json +88 -0
  4. package/artifacts-tron/contracts/PriceFeed.sol/PriceFeed.json +531 -0
  5. package/artifacts-tron/contracts/RelayerV2.sol/RelayerV2.json +1170 -0
  6. package/artifacts-tron/contracts/UltraLightNode.sol/UltraLightNode.json +1475 -0
  7. package/artifacts-tron/contracts/UltraLightNodeV2.sol/UltraLightNodeV2.json +1423 -0
  8. package/artifacts-tron/contracts/interfaces/IContractOne.sol/IContractOne.json +24 -0
  9. package/artifacts-tron/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.json +447 -0
  10. package/artifacts-tron/contracts/interfaces/ILayerZeroMessagingLibrary.sol/ILayerZeroMessagingLibrary.json +160 -0
  11. package/artifacts-tron/contracts/interfaces/ILayerZeroMessagingLibraryV2.sol/ILayerZeroMessagingLibraryV2.json +184 -0
  12. package/artifacts-tron/contracts/interfaces/ILayerZeroOracle.sol/ILayerZeroOracle.json +77 -0
  13. package/artifacts-tron/contracts/interfaces/ILayerZeroOracleV2.sol/ILayerZeroOracleV2.json +97 -0
  14. package/artifacts-tron/contracts/interfaces/ILayerZeroPriceFeed.sol/ILayerZeroPriceFeed.json +107 -0
  15. package/artifacts-tron/contracts/interfaces/ILayerZeroPriceFeedV2.sol/ILayerZeroPriceFeedV2.json +104 -0
  16. package/artifacts-tron/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +39 -0
  17. package/artifacts-tron/contracts/interfaces/ILayerZeroRelayer.sol/ILayerZeroRelayer.json +92 -0
  18. package/artifacts-tron/contracts/interfaces/ILayerZeroRelayerV2.sol/ILayerZeroRelayerV2.json +107 -0
  19. package/artifacts-tron/contracts/interfaces/ILayerZeroRelayerV2PriceData.sol/ILayerZeroRelayerV2PriceData.json +83 -0
  20. package/artifacts-tron/contracts/interfaces/ILayerZeroTreasury.sol/ILayerZeroTreasury.json +40 -0
  21. package/artifacts-tron/contracts/interfaces/ILayerZeroUltraLightNodeV1.sol/ILayerZeroUltraLightNodeV1.json +156 -0
  22. package/artifacts-tron/contracts/interfaces/ILayerZeroUltraLightNodeV2.sol/ILayerZeroUltraLightNodeV2.json +582 -0
  23. package/artifacts-tron/contracts/interfaces/ILayerZeroUserApplicationConfig.sol/ILayerZeroUserApplicationConfig.json +83 -0
  24. package/artifacts-tron/contracts/interfaces/ILayerZeroValidationLibrary.sol/ILayerZeroValidationLibrary.json +77 -0
  25. package/artifacts-tron/contracts/interfaces/IValidationLibraryHelper.sol/IValidationLibraryHelper.json +146 -0
  26. package/artifacts-tron/contracts/interfaces/IValidationLibraryHelperV2.sol/IValidationLibraryHelperV2.json +154 -0
  27. package/artifacts-tron/contracts/precrime/PreCrime.sol/PreCrime.json +353 -0
  28. package/artifacts-tron/contracts/precrime/PreCrimeBase.sol/PreCrimeBase.json +259 -0
  29. package/artifacts-tron/contracts/precrime/PreCrimeView.sol/PreCrimeView.json +318 -0
  30. package/artifacts-tron/contracts/precrime/interfaces/IPreCrime.sol/IPreCrime.json +162 -0
  31. package/artifacts-tron/contracts/precrime/interfaces/IPreCrimeBase.sol/IPreCrimeBase.json +116 -0
  32. package/artifacts-tron/contracts/precrime/interfaces/IPreCrimeView.sol/IPreCrimeView.json +162 -0
  33. package/artifacts-tron/contracts/proof/FPValidator.sol/FPValidator.json +326 -0
  34. package/artifacts-tron/contracts/proof/FPValidator.sol/IStargate.json +10 -0
  35. package/artifacts-tron/contracts/proof/MPTValidator.sol/MPTValidator.json +146 -0
  36. package/artifacts-tron/contracts/proof/MPTValidator01.sol/IStargate.json +10 -0
  37. package/artifacts-tron/contracts/proof/MPTValidator01.sol/MPTValidator01.json +339 -0
  38. package/artifacts-tron/contracts/proof/MPTValidatorStgV3.sol/MPTValidatorStgV3.json +310 -0
  39. package/artifacts-tron/contracts/proof/MPTValidatorV2.sol/MPTValidatorV2.json +212 -0
  40. package/artifacts-tron/contracts/proof/MPTValidatorV4.sol/IStargate.json +10 -0
  41. package/artifacts-tron/contracts/proof/MPTValidatorV4.sol/IUltraLightNode.json +108 -0
  42. package/artifacts-tron/contracts/proof/MPTValidatorV4.sol/MPTValidatorV4.json +414 -0
  43. package/artifacts-tron/contracts/proof/MPTValidatorV5.sol/IStargate.json +10 -0
  44. package/artifacts-tron/contracts/proof/MPTValidatorV5.sol/IUltraLightNode.json +108 -0
  45. package/artifacts-tron/contracts/proof/MPTValidatorV5.sol/MPTValidatorV5.json +432 -0
  46. package/artifacts-tron/contracts/proof/utility/Buffer.sol/Buffer.json +10 -0
  47. package/artifacts-tron/contracts/proof/utility/LayerZeroPacket.sol/LayerZeroPacket.json +10 -0
  48. package/artifacts-tron/contracts/proof/utility/RLPDecode.sol/RLPDecode.json +10 -0
  49. package/artifacts-tron/contracts/proof/utility/UltraLightNodeEVMDecoder.sol/UltraLightNodeEVMDecoder.json +10 -0
  50. package/artifacts-zk/contracts/Endpoint.sol/Endpoint.json +959 -0
  51. package/artifacts-zk/contracts/NonceContract.sol/NonceContract.json +89 -0
  52. package/artifacts-zk/contracts/PriceFeed.sol/PriceFeed.json +545 -0
  53. package/artifacts-zk/contracts/RelayerV2.sol/RelayerV2.json +1020 -0
  54. package/artifacts-zk/contracts/TreasuryV2.sol/TreasuryV2.json +309 -0
  55. package/artifacts-zk/contracts/UltraLightNodeV2.sol/UltraLightNodeV2.json +1424 -0
  56. package/artifacts-zk/contracts/interfaces/IContractOne.sol/IContractOne.json +25 -0
  57. package/artifacts-zk/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.json +448 -0
  58. package/artifacts-zk/contracts/interfaces/ILayerZeroMessagingLibrary.sol/ILayerZeroMessagingLibrary.json +161 -0
  59. package/artifacts-zk/contracts/interfaces/ILayerZeroMessagingLibraryV2.sol/ILayerZeroMessagingLibraryV2.json +185 -0
  60. package/artifacts-zk/contracts/interfaces/ILayerZeroOracleV2.sol/ILayerZeroOracleV2.json +98 -0
  61. package/artifacts-zk/contracts/interfaces/ILayerZeroPriceFeed.sol/ILayerZeroPriceFeed.json +108 -0
  62. package/artifacts-zk/contracts/interfaces/ILayerZeroPriceFeedV2.sol/ILayerZeroPriceFeedV2.json +105 -0
  63. package/artifacts-zk/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +40 -0
  64. package/artifacts-zk/contracts/interfaces/ILayerZeroRelayerV2.sol/ILayerZeroRelayerV2.json +108 -0
  65. package/artifacts-zk/contracts/interfaces/ILayerZeroTreasury.sol/ILayerZeroTreasury.json +41 -0
  66. package/artifacts-zk/contracts/interfaces/ILayerZeroUltraLightNodeV2.sol/ILayerZeroUltraLightNodeV2.json +583 -0
  67. package/artifacts-zk/contracts/interfaces/ILayerZeroUserApplicationConfig.sol/ILayerZeroUserApplicationConfig.json +84 -0
  68. package/artifacts-zk/contracts/interfaces/ILayerZeroValidationLibrary.sol/ILayerZeroValidationLibrary.json +78 -0
  69. package/artifacts-zk/contracts/interfaces/IValidationLibraryHelper.sol/IValidationLibraryHelper.json +147 -0
  70. package/artifacts-zk/contracts/interfaces/IValidationLibraryHelperV2.sol/IValidationLibraryHelperV2.json +155 -0
  71. package/artifacts-zk/contracts/oracle/OracleV2.sol/OracleV2.json +1527 -0
  72. package/artifacts-zk/contracts/precrime/PreCrime.sol/PreCrime.json +354 -0
  73. package/artifacts-zk/contracts/precrime/PreCrimeBase.sol/PreCrimeBase.json +260 -0
  74. package/artifacts-zk/contracts/precrime/PreCrimeView.sol/PreCrimeView.json +319 -0
  75. package/artifacts-zk/contracts/precrime/example/inherit/CounterI.sol/CounterI.json +624 -0
  76. package/artifacts-zk/contracts/precrime/example/inherit/CounterPrecrime.sol/CounterPrecrime.json +458 -0
  77. package/artifacts-zk/contracts/precrime/example/view/CounterPrecrimeView.sol/CounterPrecrimeView.json +417 -0
  78. package/artifacts-zk/contracts/precrime/example/view/CounterV.sol/CounterV.json +178 -0
  79. package/artifacts-zk/contracts/precrime/example/view/CounterView.sol/CounterView.json +166 -0
  80. package/artifacts-zk/contracts/precrime/interfaces/IPreCrime.sol/IPreCrime.json +163 -0
  81. package/artifacts-zk/contracts/precrime/interfaces/IPreCrimeBase.sol/IPreCrimeBase.json +117 -0
  82. package/artifacts-zk/contracts/precrime/interfaces/IPreCrimeView.sol/IPreCrimeView.json +163 -0
  83. package/artifacts-zk/contracts/proof/FPValidator.sol/FPValidator.json +327 -0
  84. package/artifacts-zk/contracts/proof/FPValidator.sol/IStargate.json +11 -0
  85. package/artifacts-zk/contracts/proof/utility/Buffer.sol/Buffer.json +11 -0
  86. package/artifacts-zk/contracts/proof/utility/LayerZeroPacket.sol/LayerZeroPacket.json +11 -0
  87. package/artifacts-zk/contracts/proof/utility/RLPDecode.sol/RLPDecode.json +11 -0
  88. package/artifacts-zk/contracts/proof/utility/UltraLightNodeEVMDecoder.sol/UltraLightNodeEVMDecoder.json +11 -0
  89. package/artifacts-zk/contracts/proxy/ProxyAdmin.sol/ProxyAdmin.json +172 -0
  90. package/artifacts-zk/contracts/proxy/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +156 -0
  91. package/deployments/arbitrum-sandbox-local/DefaultProxyAdmin.json +10 -10
  92. package/deployments/arbitrum-sandbox-local/Endpoint.json +7 -7
  93. package/deployments/arbitrum-sandbox-local/FPValidator.json +4 -4
  94. package/deployments/arbitrum-sandbox-local/MPTValidator01.json +4 -4
  95. package/deployments/arbitrum-sandbox-local/NonceContract.json +4 -4
  96. package/deployments/arbitrum-sandbox-local/RelayerV2.json +16 -16
  97. package/deployments/arbitrum-sandbox-local/RelayerV2_Implementation.json +4 -4
  98. package/deployments/arbitrum-sandbox-local/RelayerV2_Proxy.json +16 -16
  99. package/deployments/arbitrum-sandbox-local/TreasuryV2.json +7 -7
  100. package/deployments/arbitrum-sandbox-local/UltraLightNode.json +7 -7
  101. package/deployments/arbitrum-sandbox-local/UltraLightNodeV2.json +7 -7
  102. package/deployments/bsc-sandbox-local/DefaultProxyAdmin.json +10 -10
  103. package/deployments/bsc-sandbox-local/Endpoint.json +7 -7
  104. package/deployments/bsc-sandbox-local/FPValidator.json +4 -4
  105. package/deployments/bsc-sandbox-local/MPTValidator01.json +4 -4
  106. package/deployments/bsc-sandbox-local/NonceContract.json +4 -4
  107. package/deployments/bsc-sandbox-local/RelayerV2.json +16 -16
  108. package/deployments/bsc-sandbox-local/RelayerV2_Implementation.json +4 -4
  109. package/deployments/bsc-sandbox-local/RelayerV2_Proxy.json +16 -16
  110. package/deployments/bsc-sandbox-local/TreasuryV2.json +7 -7
  111. package/deployments/bsc-sandbox-local/UltraLightNode.json +7 -7
  112. package/deployments/bsc-sandbox-local/UltraLightNodeV2.json +7 -7
  113. package/deployments/cyber-mainnet/DefaultProxyAdmin.json +273 -0
  114. package/deployments/cyber-mainnet/Endpoint.json +1282 -0
  115. package/deployments/cyber-mainnet/FPValidator.json +382 -0
  116. package/deployments/cyber-mainnet/MPTValidator01.json +395 -0
  117. package/deployments/cyber-mainnet/NonceContract.json +159 -0
  118. package/deployments/cyber-mainnet/RelayerV2.json +1415 -0
  119. package/deployments/cyber-mainnet/RelayerV2_Implementation.json +1612 -0
  120. package/deployments/cyber-mainnet/RelayerV2_Proxy.json +245 -0
  121. package/deployments/cyber-mainnet/TreasuryV2.json +458 -0
  122. package/deployments/cyber-mainnet/UltraLightNodeV2.json +1816 -0
  123. package/deployments/ethereum-sandbox-local/DefaultProxyAdmin.json +10 -10
  124. package/deployments/ethereum-sandbox-local/Endpoint.json +7 -7
  125. package/deployments/ethereum-sandbox-local/FPValidator.json +4 -4
  126. package/deployments/ethereum-sandbox-local/MPTValidator01.json +4 -4
  127. package/deployments/ethereum-sandbox-local/NonceContract.json +4 -4
  128. package/deployments/ethereum-sandbox-local/RelayerV2.json +16 -16
  129. package/deployments/ethereum-sandbox-local/RelayerV2_Implementation.json +4 -4
  130. package/deployments/ethereum-sandbox-local/RelayerV2_Proxy.json +16 -16
  131. package/deployments/ethereum-sandbox-local/TreasuryV2.json +7 -7
  132. package/deployments/ethereum-sandbox-local/UltraLightNode.json +7 -7
  133. package/deployments/ethereum-sandbox-local/UltraLightNodeV2.json +7 -7
  134. package/deployments/iota-mainnet/DefaultProxyAdmin.json +273 -0
  135. package/deployments/iota-mainnet/Endpoint.json +1282 -0
  136. package/deployments/iota-mainnet/FPValidator.json +382 -0
  137. package/deployments/iota-mainnet/MPTValidator01.json +395 -0
  138. package/deployments/iota-mainnet/NonceContract.json +159 -0
  139. package/deployments/iota-mainnet/RelayerV2.json +1415 -0
  140. package/deployments/iota-mainnet/RelayerV2_Implementation.json +1612 -0
  141. package/deployments/iota-mainnet/RelayerV2_Proxy.json +245 -0
  142. package/deployments/iota-mainnet/TreasuryV2.json +458 -0
  143. package/deployments/iota-mainnet/UltraLightNodeV2.json +1816 -0
  144. package/deployments/polygon-sandbox-local/DefaultProxyAdmin.json +3 -3
  145. package/deployments/polygon-sandbox-local/Endpoint.json +2 -2
  146. package/deployments/polygon-sandbox-local/FPValidator.json +1 -1
  147. package/deployments/polygon-sandbox-local/MPTValidator01.json +1 -1
  148. package/deployments/polygon-sandbox-local/NonceContract.json +1 -1
  149. package/deployments/polygon-sandbox-local/RelayerV2.json +5 -5
  150. package/deployments/polygon-sandbox-local/RelayerV2_Implementation.json +1 -1
  151. package/deployments/polygon-sandbox-local/RelayerV2_Proxy.json +5 -5
  152. package/deployments/polygon-sandbox-local/TreasuryV2.json +2 -2
  153. package/deployments/polygon-sandbox-local/UltraLightNode.json +2 -2
  154. package/deployments/polygon-sandbox-local/UltraLightNodeV2.json +2 -2
  155. package/deployments/tron-sandbox-local/DefaultProxyAdmin.json +14 -14
  156. package/deployments/tron-sandbox-local/Endpoint.json +10 -10
  157. package/deployments/tron-sandbox-local/FPValidator.json +6 -6
  158. package/deployments/tron-sandbox-local/MPTValidator01.json +6 -6
  159. package/deployments/tron-sandbox-local/NonceContract.json +7 -7
  160. package/deployments/tron-sandbox-local/RelayerV2.json +31 -31
  161. package/deployments/tron-sandbox-local/RelayerV2_Implementation.json +6 -6
  162. package/deployments/tron-sandbox-local/RelayerV2_Proxy.json +28 -28
  163. package/deployments/tron-sandbox-local/TreasuryV2.json +11 -11
  164. package/deployments/tron-sandbox-local/UltraLightNode.json +11 -11
  165. package/deployments/tron-sandbox-local/UltraLightNodeV2.json +12 -12
  166. package/package.json +23 -7
@@ -0,0 +1,353 @@
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
+ "name": "maxBatchSize",
189
+ "outputs": [
190
+ {
191
+ "internalType": "uint64",
192
+ "name": "",
193
+ "type": "uint64"
194
+ }
195
+ ],
196
+ "stateMutability": "view",
197
+ "type": "function"
198
+ },
199
+ {
200
+ "inputs": [
201
+ {
202
+ "components": [
203
+ {
204
+ "internalType": "uint16",
205
+ "name": "srcChainId",
206
+ "type": "uint16"
207
+ },
208
+ {
209
+ "internalType": "bytes32",
210
+ "name": "srcAddress",
211
+ "type": "bytes32"
212
+ },
213
+ {
214
+ "internalType": "uint64",
215
+ "name": "nonce",
216
+ "type": "uint64"
217
+ },
218
+ {
219
+ "internalType": "bytes",
220
+ "name": "payload",
221
+ "type": "bytes"
222
+ }
223
+ ],
224
+ "internalType": "struct IPreCrimeBase.Packet[]",
225
+ "name": "_packets",
226
+ "type": "tuple[]"
227
+ },
228
+ {
229
+ "internalType": "bytes[]",
230
+ "name": "_simulation",
231
+ "type": "bytes[]"
232
+ }
233
+ ],
234
+ "name": "precrime",
235
+ "outputs": [
236
+ {
237
+ "internalType": "uint16",
238
+ "name": "code",
239
+ "type": "uint16"
240
+ },
241
+ {
242
+ "internalType": "bytes",
243
+ "name": "reason",
244
+ "type": "bytes"
245
+ }
246
+ ],
247
+ "stateMutability": "view",
248
+ "type": "function"
249
+ },
250
+ {
251
+ "inputs": [],
252
+ "name": "precrimeAdmin",
253
+ "outputs": [
254
+ {
255
+ "internalType": "address",
256
+ "name": "",
257
+ "type": "address"
258
+ }
259
+ ],
260
+ "stateMutability": "view",
261
+ "type": "function"
262
+ },
263
+ {
264
+ "inputs": [
265
+ {
266
+ "internalType": "uint64",
267
+ "name": "_maxBatchSize",
268
+ "type": "uint64"
269
+ }
270
+ ],
271
+ "name": "setMaxBatchSize",
272
+ "outputs": [],
273
+ "stateMutability": "nonpayable",
274
+ "type": "function"
275
+ },
276
+ {
277
+ "inputs": [
278
+ {
279
+ "internalType": "address",
280
+ "name": "_precrimeAdmin",
281
+ "type": "address"
282
+ }
283
+ ],
284
+ "name": "setPrecrimeAdmin",
285
+ "outputs": [],
286
+ "stateMutability": "nonpayable",
287
+ "type": "function"
288
+ },
289
+ {
290
+ "inputs": [
291
+ {
292
+ "components": [
293
+ {
294
+ "internalType": "uint16",
295
+ "name": "srcChainId",
296
+ "type": "uint16"
297
+ },
298
+ {
299
+ "internalType": "bytes32",
300
+ "name": "srcAddress",
301
+ "type": "bytes32"
302
+ },
303
+ {
304
+ "internalType": "uint64",
305
+ "name": "nonce",
306
+ "type": "uint64"
307
+ },
308
+ {
309
+ "internalType": "bytes",
310
+ "name": "payload",
311
+ "type": "bytes"
312
+ }
313
+ ],
314
+ "internalType": "struct IPreCrimeBase.Packet[]",
315
+ "name": "_packets",
316
+ "type": "tuple[]"
317
+ }
318
+ ],
319
+ "name": "simulate",
320
+ "outputs": [
321
+ {
322
+ "internalType": "uint16",
323
+ "name": "code",
324
+ "type": "uint16"
325
+ },
326
+ {
327
+ "internalType": "bytes",
328
+ "name": "data",
329
+ "type": "bytes"
330
+ }
331
+ ],
332
+ "stateMutability": "nonpayable",
333
+ "type": "function"
334
+ },
335
+ {
336
+ "inputs": [],
337
+ "name": "version",
338
+ "outputs": [
339
+ {
340
+ "internalType": "uint16",
341
+ "name": "",
342
+ "type": "uint16"
343
+ }
344
+ ],
345
+ "stateMutability": "pure",
346
+ "type": "function"
347
+ }
348
+ ],
349
+ "bytecode": "0x",
350
+ "deployedBytecode": "0x",
351
+ "linkReferences": {},
352
+ "deployedLinkReferences": {}
353
+ }
@@ -0,0 +1,259 @@
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
+ "name": "maxBatchSize",
141
+ "outputs": [
142
+ {
143
+ "internalType": "uint64",
144
+ "name": "",
145
+ "type": "uint64"
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
+ "name": "precrimeAdmin",
205
+ "outputs": [
206
+ {
207
+ "internalType": "address",
208
+ "name": "",
209
+ "type": "address"
210
+ }
211
+ ],
212
+ "stateMutability": "view",
213
+ "type": "function"
214
+ },
215
+ {
216
+ "inputs": [
217
+ {
218
+ "internalType": "uint64",
219
+ "name": "_maxBatchSize",
220
+ "type": "uint64"
221
+ }
222
+ ],
223
+ "name": "setMaxBatchSize",
224
+ "outputs": [],
225
+ "stateMutability": "nonpayable",
226
+ "type": "function"
227
+ },
228
+ {
229
+ "inputs": [
230
+ {
231
+ "internalType": "address",
232
+ "name": "_precrimeAdmin",
233
+ "type": "address"
234
+ }
235
+ ],
236
+ "name": "setPrecrimeAdmin",
237
+ "outputs": [],
238
+ "stateMutability": "nonpayable",
239
+ "type": "function"
240
+ },
241
+ {
242
+ "inputs": [],
243
+ "name": "version",
244
+ "outputs": [
245
+ {
246
+ "internalType": "uint16",
247
+ "name": "",
248
+ "type": "uint16"
249
+ }
250
+ ],
251
+ "stateMutability": "view",
252
+ "type": "function"
253
+ }
254
+ ],
255
+ "bytecode": "0x",
256
+ "deployedBytecode": "0x",
257
+ "linkReferences": {},
258
+ "deployedLinkReferences": {}
259
+ }