@layerzerolabs/lz-evm-oapp-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.
- package/artifacts/contracts/oapp/OApp.sol/OApp.json +332 -0
- package/artifacts/contracts/oapp/OAppCore.sol/OAppCore.json +195 -0
- package/artifacts/contracts/oapp/OAppReceiver.sol/OAppReceiver.json +316 -0
- package/artifacts/contracts/oapp/OAppSender.sol/OAppSender.json +211 -0
- package/artifacts/contracts/oapp/examples/OmniCounter.sol/MsgCodec.json +10 -0
- package/artifacts/contracts/oapp/examples/OmniCounter.sol/OmniCounter.json +874 -0
- package/artifacts/contracts/oapp/examples/OmniCounterPreCrime.sol/OmniCounterPreCrime.json +373 -0
- package/artifacts/contracts/oapp/interfaces/IOAppComposer.sol/IOAppComposer.json +44 -0
- package/artifacts/contracts/oapp/interfaces/IOAppCore.sol/IOAppCore.json +143 -0
- package/artifacts/contracts/oapp/interfaces/IOAppMsgInspector.sol/IOAppMsgInspector.json +51 -0
- package/artifacts/contracts/oapp/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.json +111 -0
- package/artifacts/contracts/oapp/libs/OAppOptionsType3.sol/OAppOptionsType3.json +187 -0
- package/artifacts/contracts/oapp/libs/OptionsBuilder.sol/OptionsBuilder.json +38 -0
- package/artifacts/contracts/oft/OFT.sol/OFT.json +1466 -0
- package/artifacts/contracts/oft/OFTAdapter.sol/OFTAdapter.json +1204 -0
- package/artifacts/contracts/oft/OFTCore.sol/OFTCore.json +1170 -0
- package/artifacts/contracts/oft/interfaces/IOFT.sol/IOFT.json +472 -0
- package/artifacts/contracts/oft/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.json +10 -0
- package/artifacts/contracts/oft/libs/OFTMsgCodec.sol/OFTMsgCodec.json +10 -0
- package/artifacts/contracts/precrime/OAppPreCrimeSimulator.sol/OAppPreCrimeSimulator.json +277 -0
- package/artifacts/contracts/precrime/PreCrime.sol/PreCrime.json +352 -0
- package/artifacts/contracts/precrime/extensions/PreCrimeE1.sol/PreCrimeE1.json +352 -0
- package/artifacts/contracts/precrime/interfaces/IOAppPreCrimeSimulator.sol/IOAppPreCrimeSimulator.json +175 -0
- package/artifacts/contracts/precrime/interfaces/IPreCrime.sol/IPreCrime.json +188 -0
- package/artifacts/contracts/precrime/libs/Packet.sol/PacketDecoder.json +10 -0
- package/contracts/oapp/OApp.sol +39 -0
- package/contracts/oapp/OAppCore.sol +68 -0
- package/contracts/oapp/OAppReceiver.sol +101 -0
- package/contracts/oapp/OAppSender.sol +124 -0
- package/contracts/oapp/examples/OmniCounter.sol +283 -0
- package/contracts/oapp/examples/OmniCounterPreCrime.sol +102 -0
- package/contracts/oapp/interfaces/IOAppComposer.sol +12 -0
- package/contracts/oapp/interfaces/IOAppCore.sol +51 -0
- package/contracts/oapp/interfaces/IOAppMsgInspector.sol +22 -0
- package/contracts/oapp/interfaces/IOAppOptionsType3.sol +43 -0
- package/contracts/oapp/libs/OAppOptionsType3.sol +82 -0
- package/contracts/oapp/libs/OptionsBuilder.sol +200 -0
- package/contracts/oft/OFT.sol +116 -0
- package/contracts/oft/OFTAdapter.sol +131 -0
- package/contracts/oft/OFTCore.sol +456 -0
- package/contracts/oft/OFTPrecrime.sol +99 -0
- package/contracts/oft/interfaces/IOFT.sol +168 -0
- package/contracts/oft/libs/OFTComposeMsgCodec.sol +91 -0
- package/contracts/oft/libs/OFTMsgCodec.sol +83 -0
- package/contracts/precrime/OAppPreCrimeSimulator.sol +125 -0
- package/contracts/precrime/PreCrime.sol +208 -0
- package/contracts/precrime/extensions/PreCrimeE1.sol +30 -0
- package/contracts/precrime/interfaces/IOAppPreCrimeSimulator.sol +55 -0
- package/contracts/precrime/interfaces/IPreCrime.sol +40 -0
- package/contracts/precrime/libs/Packet.sol +61 -0
- package/package.json +35 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "OAppPreCrimeSimulator",
|
|
4
|
+
"sourceName": "contracts/precrime/OAppPreCrimeSimulator.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "OnlySelf",
|
|
9
|
+
"type": "error"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"inputs": [
|
|
13
|
+
{
|
|
14
|
+
"internalType": "bytes",
|
|
15
|
+
"name": "result",
|
|
16
|
+
"type": "bytes"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"name": "SimulationResult",
|
|
20
|
+
"type": "error"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"anonymous": false,
|
|
24
|
+
"inputs": [
|
|
25
|
+
{
|
|
26
|
+
"indexed": true,
|
|
27
|
+
"internalType": "address",
|
|
28
|
+
"name": "previousOwner",
|
|
29
|
+
"type": "address"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"indexed": true,
|
|
33
|
+
"internalType": "address",
|
|
34
|
+
"name": "newOwner",
|
|
35
|
+
"type": "address"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"name": "OwnershipTransferred",
|
|
39
|
+
"type": "event"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"anonymous": false,
|
|
43
|
+
"inputs": [
|
|
44
|
+
{
|
|
45
|
+
"indexed": false,
|
|
46
|
+
"internalType": "address",
|
|
47
|
+
"name": "preCrimeAddress",
|
|
48
|
+
"type": "address"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"name": "PreCrimeSet",
|
|
52
|
+
"type": "event"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"inputs": [
|
|
56
|
+
{
|
|
57
|
+
"internalType": "uint32",
|
|
58
|
+
"name": "_eid",
|
|
59
|
+
"type": "uint32"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"internalType": "bytes32",
|
|
63
|
+
"name": "_peer",
|
|
64
|
+
"type": "bytes32"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"name": "isPeer",
|
|
68
|
+
"outputs": [
|
|
69
|
+
{
|
|
70
|
+
"internalType": "bool",
|
|
71
|
+
"name": "",
|
|
72
|
+
"type": "bool"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"stateMutability": "view",
|
|
76
|
+
"type": "function"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"inputs": [
|
|
80
|
+
{
|
|
81
|
+
"components": [
|
|
82
|
+
{
|
|
83
|
+
"components": [
|
|
84
|
+
{
|
|
85
|
+
"internalType": "uint32",
|
|
86
|
+
"name": "srcEid",
|
|
87
|
+
"type": "uint32"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"internalType": "bytes32",
|
|
91
|
+
"name": "sender",
|
|
92
|
+
"type": "bytes32"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"internalType": "uint64",
|
|
96
|
+
"name": "nonce",
|
|
97
|
+
"type": "uint64"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"internalType": "struct Origin",
|
|
101
|
+
"name": "origin",
|
|
102
|
+
"type": "tuple"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"internalType": "uint32",
|
|
106
|
+
"name": "dstEid",
|
|
107
|
+
"type": "uint32"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"internalType": "address",
|
|
111
|
+
"name": "receiver",
|
|
112
|
+
"type": "address"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"internalType": "bytes32",
|
|
116
|
+
"name": "guid",
|
|
117
|
+
"type": "bytes32"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"internalType": "uint256",
|
|
121
|
+
"name": "value",
|
|
122
|
+
"type": "uint256"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"internalType": "address",
|
|
126
|
+
"name": "executor",
|
|
127
|
+
"type": "address"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"internalType": "bytes",
|
|
131
|
+
"name": "message",
|
|
132
|
+
"type": "bytes"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"internalType": "bytes",
|
|
136
|
+
"name": "extraData",
|
|
137
|
+
"type": "bytes"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"internalType": "struct InboundPacket[]",
|
|
141
|
+
"name": "_packets",
|
|
142
|
+
"type": "tuple[]"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"name": "lzReceiveAndRevert",
|
|
146
|
+
"outputs": [],
|
|
147
|
+
"stateMutability": "payable",
|
|
148
|
+
"type": "function"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"inputs": [
|
|
152
|
+
{
|
|
153
|
+
"components": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "uint32",
|
|
156
|
+
"name": "srcEid",
|
|
157
|
+
"type": "uint32"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"internalType": "bytes32",
|
|
161
|
+
"name": "sender",
|
|
162
|
+
"type": "bytes32"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"internalType": "uint64",
|
|
166
|
+
"name": "nonce",
|
|
167
|
+
"type": "uint64"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"internalType": "struct Origin",
|
|
171
|
+
"name": "_origin",
|
|
172
|
+
"type": "tuple"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"internalType": "bytes32",
|
|
176
|
+
"name": "_guid",
|
|
177
|
+
"type": "bytes32"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"internalType": "bytes",
|
|
181
|
+
"name": "_message",
|
|
182
|
+
"type": "bytes"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"internalType": "address",
|
|
186
|
+
"name": "_executor",
|
|
187
|
+
"type": "address"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"internalType": "bytes",
|
|
191
|
+
"name": "_extraData",
|
|
192
|
+
"type": "bytes"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"name": "lzReceiveSimulate",
|
|
196
|
+
"outputs": [],
|
|
197
|
+
"stateMutability": "payable",
|
|
198
|
+
"type": "function"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"inputs": [],
|
|
202
|
+
"name": "oApp",
|
|
203
|
+
"outputs": [
|
|
204
|
+
{
|
|
205
|
+
"internalType": "address",
|
|
206
|
+
"name": "",
|
|
207
|
+
"type": "address"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"stateMutability": "view",
|
|
211
|
+
"type": "function"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"inputs": [],
|
|
215
|
+
"name": "owner",
|
|
216
|
+
"outputs": [
|
|
217
|
+
{
|
|
218
|
+
"internalType": "address",
|
|
219
|
+
"name": "",
|
|
220
|
+
"type": "address"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"stateMutability": "view",
|
|
224
|
+
"type": "function"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"inputs": [],
|
|
228
|
+
"name": "preCrime",
|
|
229
|
+
"outputs": [
|
|
230
|
+
{
|
|
231
|
+
"internalType": "address",
|
|
232
|
+
"name": "",
|
|
233
|
+
"type": "address"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"stateMutability": "view",
|
|
237
|
+
"type": "function"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"inputs": [],
|
|
241
|
+
"name": "renounceOwnership",
|
|
242
|
+
"outputs": [],
|
|
243
|
+
"stateMutability": "nonpayable",
|
|
244
|
+
"type": "function"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"inputs": [
|
|
248
|
+
{
|
|
249
|
+
"internalType": "address",
|
|
250
|
+
"name": "_preCrime",
|
|
251
|
+
"type": "address"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"name": "setPreCrime",
|
|
255
|
+
"outputs": [],
|
|
256
|
+
"stateMutability": "nonpayable",
|
|
257
|
+
"type": "function"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"inputs": [
|
|
261
|
+
{
|
|
262
|
+
"internalType": "address",
|
|
263
|
+
"name": "newOwner",
|
|
264
|
+
"type": "address"
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"name": "transferOwnership",
|
|
268
|
+
"outputs": [],
|
|
269
|
+
"stateMutability": "nonpayable",
|
|
270
|
+
"type": "function"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"bytecode": "0x",
|
|
274
|
+
"deployedBytecode": "0x",
|
|
275
|
+
"linkReferences": {},
|
|
276
|
+
"deployedLinkReferences": {}
|
|
277
|
+
}
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "PreCrime",
|
|
4
|
+
"sourceName": "contracts/precrime/PreCrime.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "bytes",
|
|
10
|
+
"name": "crime",
|
|
11
|
+
"type": "bytes"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"name": "CrimeFound",
|
|
15
|
+
"type": "error"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"inputs": [
|
|
19
|
+
{
|
|
20
|
+
"internalType": "uint32",
|
|
21
|
+
"name": "eid",
|
|
22
|
+
"type": "uint32"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"internalType": "bytes",
|
|
26
|
+
"name": "reason",
|
|
27
|
+
"type": "bytes"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"name": "InvalidSimulationResult",
|
|
31
|
+
"type": "error"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"inputs": [],
|
|
35
|
+
"name": "OnlyOffChain",
|
|
36
|
+
"type": "error"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"inputs": [
|
|
40
|
+
{
|
|
41
|
+
"internalType": "uint256",
|
|
42
|
+
"name": "max",
|
|
43
|
+
"type": "uint256"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "actual",
|
|
48
|
+
"type": "uint256"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"name": "PacketOversize",
|
|
52
|
+
"type": "error"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"inputs": [],
|
|
56
|
+
"name": "PacketUnsorted",
|
|
57
|
+
"type": "error"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"inputs": [
|
|
61
|
+
{
|
|
62
|
+
"internalType": "bytes",
|
|
63
|
+
"name": "reason",
|
|
64
|
+
"type": "bytes"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"name": "SimulationFailed",
|
|
68
|
+
"type": "error"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"inputs": [
|
|
72
|
+
{
|
|
73
|
+
"internalType": "uint32",
|
|
74
|
+
"name": "eid",
|
|
75
|
+
"type": "uint32"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"name": "SimulationResultNotFound",
|
|
79
|
+
"type": "error"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"anonymous": false,
|
|
83
|
+
"inputs": [
|
|
84
|
+
{
|
|
85
|
+
"indexed": true,
|
|
86
|
+
"internalType": "address",
|
|
87
|
+
"name": "previousOwner",
|
|
88
|
+
"type": "address"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"indexed": true,
|
|
92
|
+
"internalType": "address",
|
|
93
|
+
"name": "newOwner",
|
|
94
|
+
"type": "address"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"name": "OwnershipTransferred",
|
|
98
|
+
"type": "event"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"inputs": [],
|
|
102
|
+
"name": "buildSimulationResult",
|
|
103
|
+
"outputs": [
|
|
104
|
+
{
|
|
105
|
+
"internalType": "bytes",
|
|
106
|
+
"name": "",
|
|
107
|
+
"type": "bytes"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"stateMutability": "view",
|
|
111
|
+
"type": "function"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"inputs": [
|
|
115
|
+
{
|
|
116
|
+
"internalType": "bytes[]",
|
|
117
|
+
"name": "_packets",
|
|
118
|
+
"type": "bytes[]"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"internalType": "uint256[]",
|
|
122
|
+
"name": "_packetMsgValues",
|
|
123
|
+
"type": "uint256[]"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"name": "getConfig",
|
|
127
|
+
"outputs": [
|
|
128
|
+
{
|
|
129
|
+
"internalType": "bytes",
|
|
130
|
+
"name": "",
|
|
131
|
+
"type": "bytes"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"stateMutability": "nonpayable",
|
|
135
|
+
"type": "function"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"inputs": [],
|
|
139
|
+
"name": "getPreCrimePeers",
|
|
140
|
+
"outputs": [
|
|
141
|
+
{
|
|
142
|
+
"components": [
|
|
143
|
+
{
|
|
144
|
+
"internalType": "uint32",
|
|
145
|
+
"name": "eid",
|
|
146
|
+
"type": "uint32"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"internalType": "bytes32",
|
|
150
|
+
"name": "preCrime",
|
|
151
|
+
"type": "bytes32"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"internalType": "bytes32",
|
|
155
|
+
"name": "oApp",
|
|
156
|
+
"type": "bytes32"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"internalType": "struct PreCrimePeer[]",
|
|
160
|
+
"name": "",
|
|
161
|
+
"type": "tuple[]"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"stateMutability": "view",
|
|
165
|
+
"type": "function"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"inputs": [],
|
|
169
|
+
"name": "maxBatchSize",
|
|
170
|
+
"outputs": [
|
|
171
|
+
{
|
|
172
|
+
"internalType": "uint64",
|
|
173
|
+
"name": "",
|
|
174
|
+
"type": "uint64"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"stateMutability": "view",
|
|
178
|
+
"type": "function"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"inputs": [],
|
|
182
|
+
"name": "oApp",
|
|
183
|
+
"outputs": [
|
|
184
|
+
{
|
|
185
|
+
"internalType": "address",
|
|
186
|
+
"name": "",
|
|
187
|
+
"type": "address"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"stateMutability": "view",
|
|
191
|
+
"type": "function"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"inputs": [],
|
|
195
|
+
"name": "owner",
|
|
196
|
+
"outputs": [
|
|
197
|
+
{
|
|
198
|
+
"internalType": "address",
|
|
199
|
+
"name": "",
|
|
200
|
+
"type": "address"
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"stateMutability": "view",
|
|
204
|
+
"type": "function"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"inputs": [
|
|
208
|
+
{
|
|
209
|
+
"internalType": "bytes[]",
|
|
210
|
+
"name": "_packets",
|
|
211
|
+
"type": "bytes[]"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"internalType": "uint256[]",
|
|
215
|
+
"name": "_packetMsgValues",
|
|
216
|
+
"type": "uint256[]"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"internalType": "bytes[]",
|
|
220
|
+
"name": "_simulations",
|
|
221
|
+
"type": "bytes[]"
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"name": "preCrime",
|
|
225
|
+
"outputs": [],
|
|
226
|
+
"stateMutability": "nonpayable",
|
|
227
|
+
"type": "function"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"inputs": [],
|
|
231
|
+
"name": "renounceOwnership",
|
|
232
|
+
"outputs": [],
|
|
233
|
+
"stateMutability": "nonpayable",
|
|
234
|
+
"type": "function"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"inputs": [
|
|
238
|
+
{
|
|
239
|
+
"internalType": "uint64",
|
|
240
|
+
"name": "_maxBatchSize",
|
|
241
|
+
"type": "uint64"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"name": "setMaxBatchSize",
|
|
245
|
+
"outputs": [],
|
|
246
|
+
"stateMutability": "nonpayable",
|
|
247
|
+
"type": "function"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"inputs": [
|
|
251
|
+
{
|
|
252
|
+
"components": [
|
|
253
|
+
{
|
|
254
|
+
"internalType": "uint32",
|
|
255
|
+
"name": "eid",
|
|
256
|
+
"type": "uint32"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"internalType": "bytes32",
|
|
260
|
+
"name": "preCrime",
|
|
261
|
+
"type": "bytes32"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"internalType": "bytes32",
|
|
265
|
+
"name": "oApp",
|
|
266
|
+
"type": "bytes32"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"internalType": "struct PreCrimePeer[]",
|
|
270
|
+
"name": "_preCrimePeers",
|
|
271
|
+
"type": "tuple[]"
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
"name": "setPreCrimePeers",
|
|
275
|
+
"outputs": [],
|
|
276
|
+
"stateMutability": "nonpayable",
|
|
277
|
+
"type": "function"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"inputs": [
|
|
281
|
+
{
|
|
282
|
+
"internalType": "bytes[]",
|
|
283
|
+
"name": "_packets",
|
|
284
|
+
"type": "bytes[]"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"internalType": "uint256[]",
|
|
288
|
+
"name": "_packetMsgValues",
|
|
289
|
+
"type": "uint256[]"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"name": "simulate",
|
|
293
|
+
"outputs": [
|
|
294
|
+
{
|
|
295
|
+
"internalType": "bytes",
|
|
296
|
+
"name": "",
|
|
297
|
+
"type": "bytes"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"stateMutability": "payable",
|
|
301
|
+
"type": "function"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"inputs": [],
|
|
305
|
+
"name": "simulator",
|
|
306
|
+
"outputs": [
|
|
307
|
+
{
|
|
308
|
+
"internalType": "address",
|
|
309
|
+
"name": "",
|
|
310
|
+
"type": "address"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"stateMutability": "view",
|
|
314
|
+
"type": "function"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"inputs": [
|
|
318
|
+
{
|
|
319
|
+
"internalType": "address",
|
|
320
|
+
"name": "newOwner",
|
|
321
|
+
"type": "address"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"name": "transferOwnership",
|
|
325
|
+
"outputs": [],
|
|
326
|
+
"stateMutability": "nonpayable",
|
|
327
|
+
"type": "function"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"inputs": [],
|
|
331
|
+
"name": "version",
|
|
332
|
+
"outputs": [
|
|
333
|
+
{
|
|
334
|
+
"internalType": "uint64",
|
|
335
|
+
"name": "major",
|
|
336
|
+
"type": "uint64"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"internalType": "uint8",
|
|
340
|
+
"name": "minor",
|
|
341
|
+
"type": "uint8"
|
|
342
|
+
}
|
|
343
|
+
],
|
|
344
|
+
"stateMutability": "pure",
|
|
345
|
+
"type": "function"
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"bytecode": "0x",
|
|
349
|
+
"deployedBytecode": "0x",
|
|
350
|
+
"linkReferences": {},
|
|
351
|
+
"deployedLinkReferences": {}
|
|
352
|
+
}
|