@rocketh/diamond 0.17.11 → 0.17.12

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,1559 @@
1
+ export default {
2
+ contractName: 'DiamondERC165Init',
3
+ sourceName: 'solc_0.8/diamond/initializers/DiamondERC165Init.sol',
4
+ abi: [
5
+ {
6
+ inputs: [
7
+ {
8
+ internalType: 'bytes4[]',
9
+ name: 'interfaceIds',
10
+ type: 'bytes4[]',
11
+ },
12
+ {
13
+ internalType: 'bytes4[]',
14
+ name: 'interfaceIdsToRemove',
15
+ type: 'bytes4[]',
16
+ },
17
+ ],
18
+ name: 'setERC165',
19
+ outputs: [],
20
+ stateMutability: 'nonpayable',
21
+ type: 'function',
22
+ },
23
+ ],
24
+ bytecode:
25
+ '0x608060405234801561001057600080fd5b5061041e806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80632a84809114610030575b600080fd5b61004361003e3660046102a4565b610045565b005b7f01ffc9a70000000000000000000000000000000000000000000000000000000060009081527fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131f6020527f699d9daa71b280d05a152715774afa0a81a312594b2d731d6b0b2552b7d6f69f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c905b848110156101a457600182600301600088888581811061011e5761011e610310565b9050602002016020810190610133919061033f565b7fffffffff00000000000000000000000000000000000000000000000000000000168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061019c81610388565b9150506100fc565b5060005b828110156102505760008260030160008686858181106101ca576101ca610310565b90506020020160208101906101df919061033f565b7fffffffff00000000000000000000000000000000000000000000000000000000168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061024881610388565b9150506101a8565b505050505050565b60008083601f84011261026a57600080fd5b50813567ffffffffffffffff81111561028257600080fd5b6020830191508360208260051b850101111561029d57600080fd5b9250929050565b600080600080604085870312156102ba57600080fd5b843567ffffffffffffffff808211156102d257600080fd5b6102de88838901610258565b909650945060208701359150808211156102f757600080fd5b5061030487828801610258565b95989497509550505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561035157600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461038157600080fd5b9392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156103e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b506001019056fea264697066735822122089ec289e8a22b626b334a083bad15a54a94f6bb0677c64dd693ce4bbd20ff34664736f6c634300080a0033',
26
+ deployedBytecode:
27
+ '0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80632a84809114610030575b600080fd5b61004361003e3660046102a4565b610045565b005b7f01ffc9a70000000000000000000000000000000000000000000000000000000060009081527fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131f6020527f699d9daa71b280d05a152715774afa0a81a312594b2d731d6b0b2552b7d6f69f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c905b848110156101a457600182600301600088888581811061011e5761011e610310565b9050602002016020810190610133919061033f565b7fffffffff00000000000000000000000000000000000000000000000000000000168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061019c81610388565b9150506100fc565b5060005b828110156102505760008260030160008686858181106101ca576101ca610310565b90506020020160208101906101df919061033f565b7fffffffff00000000000000000000000000000000000000000000000000000000168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061024881610388565b9150506101a8565b505050505050565b60008083601f84011261026a57600080fd5b50813567ffffffffffffffff81111561028257600080fd5b6020830191508360208260051b850101111561029d57600080fd5b9250929050565b600080600080604085870312156102ba57600080fd5b843567ffffffffffffffff808211156102d257600080fd5b6102de88838901610258565b909650945060208701359150808211156102f757600080fd5b5061030487828801610258565b95989497509550505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561035157600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461038157600080fd5b9392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156103e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b506001019056fea264697066735822122089ec289e8a22b626b334a083bad15a54a94f6bb0677c64dd693ce4bbd20ff34664736f6c634300080a0033',
28
+ linkReferences: {},
29
+ deployedLinkReferences: {},
30
+ devdoc: {
31
+ kind: 'dev',
32
+ methods: {
33
+ 'setERC165(bytes4[],bytes4[])': {
34
+ params: {
35
+ interfaceIds: 'list of interface id to set as supported',
36
+ interfaceIdsToRemove:
37
+ 'list of interface id to unset as supported. Technically, you can remove support of ERC165 by having the IERC165 id itself being part of that array.',
38
+ },
39
+ },
40
+ },
41
+ version: 1,
42
+ },
43
+ evm: {
44
+ bytecode: {
45
+ functionDebugData: {},
46
+ generatedSources: [],
47
+ linkReferences: {},
48
+ opcodes:
49
+ 'PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x41E DUP1 PUSH2 0x20 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x2B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x2A848091 EQ PUSH2 0x30 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x43 PUSH2 0x3E CALLDATASIZE PUSH1 0x4 PUSH2 0x2A4 JUMP JUMPDEST PUSH2 0x45 JUMP JUMPDEST STOP JUMPDEST PUSH32 0x1FFC9A700000000000000000000000000000000000000000000000000000000 PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH32 0xC8FCAD8DB84D3CC18B4C41D551EA0EE66DD599CDE068D998E57D5E09332C131F PUSH1 0x20 MSTORE PUSH32 0x699D9DAA71B280D05A152715774AFA0A81A312594B2D731D6B0B2552B7D6F69F DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 AND PUSH1 0x1 OR SWAP1 SSTORE PUSH32 0xC8FCAD8DB84D3CC18B4C41D551EA0EE66DD599CDE068D998E57D5E09332C131C SWAP1 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x1A4 JUMPI PUSH1 0x1 DUP3 PUSH1 0x3 ADD PUSH1 0x0 DUP9 DUP9 DUP6 DUP2 DUP2 LT PUSH2 0x11E JUMPI PUSH2 0x11E PUSH2 0x310 JUMP JUMPDEST SWAP1 POP PUSH1 0x20 MUL ADD PUSH1 0x20 DUP2 ADD SWAP1 PUSH2 0x133 SWAP2 SWAP1 PUSH2 0x33F JUMP JUMPDEST PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 AND DUP2 MSTORE PUSH1 0x20 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x40 ADD PUSH1 0x0 KECCAK256 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 AND SWAP2 ISZERO ISZERO SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE DUP1 PUSH2 0x19C DUP2 PUSH2 0x388 JUMP JUMPDEST SWAP2 POP POP PUSH2 0xFC JUMP JUMPDEST POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x250 JUMPI PUSH1 0x0 DUP3 PUSH1 0x3 ADD PUSH1 0x0 DUP7 DUP7 DUP6 DUP2 DUP2 LT PUSH2 0x1CA JUMPI PUSH2 0x1CA PUSH2 0x310 JUMP JUMPDEST SWAP1 POP PUSH1 0x20 MUL ADD PUSH1 0x20 DUP2 ADD SWAP1 PUSH2 0x1DF SWAP2 SWAP1 PUSH2 0x33F JUMP JUMPDEST PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 AND DUP2 MSTORE PUSH1 0x20 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x40 ADD PUSH1 0x0 KECCAK256 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 AND SWAP2 ISZERO ISZERO SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE DUP1 PUSH2 0x248 DUP2 PUSH2 0x388 JUMP JUMPDEST SWAP2 POP POP PUSH2 0x1A8 JUMP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0x26A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x282 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x20 DUP3 PUSH1 0x5 SHL DUP6 ADD ADD GT ISZERO PUSH2 0x29D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x40 DUP6 DUP8 SUB SLT ISZERO PUSH2 0x2BA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP5 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x2D2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2DE DUP9 DUP4 DUP10 ADD PUSH2 0x258 JUMP JUMPDEST SWAP1 SWAP7 POP SWAP5 POP PUSH1 0x20 DUP8 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0x2F7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x304 DUP8 DUP3 DUP9 ADD PUSH2 0x258 JUMP JUMPDEST SWAP6 SWAP9 SWAP5 SWAP8 POP SWAP6 POP POP POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x351 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 DUP2 AND DUP2 EQ PUSH2 0x381 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 EQ ISZERO PUSH2 0x3E1 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP PUSH1 0x1 ADD SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP10 0xEC 0x28 SWAP15 DUP11 0x22 0xB6 0x26 0xB3 CALLVALUE LOG0 DUP4 0xBA 0xD1 GAS SLOAD 0xA9 0x4F PUSH12 0xB0677C64DD693CE4BBD20FF3 CHAINID PUSH5 0x736F6C6343 STOP ADDMOD EXP STOP CALLER ',
50
+ sourceMap: '165:902:6:-:0;;;;;;;;;;;;;;;;;;;',
51
+ },
52
+ deployedBytecode: {
53
+ functionDebugData: {
54
+ '@diamondStorage_809': {
55
+ entryPoint: null,
56
+ id: 809,
57
+ parameterSlots: 0,
58
+ returnSlots: 1,
59
+ },
60
+ '@setERC165_643': {
61
+ entryPoint: 69,
62
+ id: 643,
63
+ parameterSlots: 4,
64
+ returnSlots: 0,
65
+ },
66
+ abi_decode_array_bytes4_dyn_calldata: {
67
+ entryPoint: 600,
68
+ id: null,
69
+ parameterSlots: 2,
70
+ returnSlots: 2,
71
+ },
72
+ abi_decode_tuple_t_array$_t_bytes4_$dyn_calldata_ptrt_array$_t_bytes4_$dyn_calldata_ptr: {
73
+ entryPoint: 676,
74
+ id: null,
75
+ parameterSlots: 2,
76
+ returnSlots: 4,
77
+ },
78
+ abi_decode_tuple_t_bytes4: {
79
+ entryPoint: 831,
80
+ id: null,
81
+ parameterSlots: 2,
82
+ returnSlots: 1,
83
+ },
84
+ increment_t_uint256: {
85
+ entryPoint: 904,
86
+ id: null,
87
+ parameterSlots: 1,
88
+ returnSlots: 1,
89
+ },
90
+ panic_error_0x32: {
91
+ entryPoint: 784,
92
+ id: null,
93
+ parameterSlots: 0,
94
+ returnSlots: 0,
95
+ },
96
+ },
97
+ generatedSources: [
98
+ {
99
+ ast: {
100
+ nodeType: 'YulBlock',
101
+ src: '0:2036:12',
102
+ statements: [
103
+ {
104
+ nodeType: 'YulBlock',
105
+ src: '6:3:12',
106
+ statements: [],
107
+ },
108
+ {
109
+ body: {
110
+ nodeType: 'YulBlock',
111
+ src: '97:283:12',
112
+ statements: [
113
+ {
114
+ body: {
115
+ nodeType: 'YulBlock',
116
+ src: '146:16:12',
117
+ statements: [
118
+ {
119
+ expression: {
120
+ arguments: [
121
+ {
122
+ kind: 'number',
123
+ nodeType: 'YulLiteral',
124
+ src: '155:1:12',
125
+ type: '',
126
+ value: '0',
127
+ },
128
+ {
129
+ kind: 'number',
130
+ nodeType: 'YulLiteral',
131
+ src: '158:1:12',
132
+ type: '',
133
+ value: '0',
134
+ },
135
+ ],
136
+ functionName: {
137
+ name: 'revert',
138
+ nodeType: 'YulIdentifier',
139
+ src: '148:6:12',
140
+ },
141
+ nodeType: 'YulFunctionCall',
142
+ src: '148:12:12',
143
+ },
144
+ nodeType: 'YulExpressionStatement',
145
+ src: '148:12:12',
146
+ },
147
+ ],
148
+ },
149
+ condition: {
150
+ arguments: [
151
+ {
152
+ arguments: [
153
+ {
154
+ arguments: [
155
+ {
156
+ name: 'offset',
157
+ nodeType: 'YulIdentifier',
158
+ src: '125:6:12',
159
+ },
160
+ {
161
+ kind: 'number',
162
+ nodeType: 'YulLiteral',
163
+ src: '133:4:12',
164
+ type: '',
165
+ value: '0x1f',
166
+ },
167
+ ],
168
+ functionName: {
169
+ name: 'add',
170
+ nodeType: 'YulIdentifier',
171
+ src: '121:3:12',
172
+ },
173
+ nodeType: 'YulFunctionCall',
174
+ src: '121:17:12',
175
+ },
176
+ {
177
+ name: 'end',
178
+ nodeType: 'YulIdentifier',
179
+ src: '140:3:12',
180
+ },
181
+ ],
182
+ functionName: {
183
+ name: 'slt',
184
+ nodeType: 'YulIdentifier',
185
+ src: '117:3:12',
186
+ },
187
+ nodeType: 'YulFunctionCall',
188
+ src: '117:27:12',
189
+ },
190
+ ],
191
+ functionName: {
192
+ name: 'iszero',
193
+ nodeType: 'YulIdentifier',
194
+ src: '110:6:12',
195
+ },
196
+ nodeType: 'YulFunctionCall',
197
+ src: '110:35:12',
198
+ },
199
+ nodeType: 'YulIf',
200
+ src: '107:55:12',
201
+ },
202
+ {
203
+ nodeType: 'YulAssignment',
204
+ src: '171:30:12',
205
+ value: {
206
+ arguments: [
207
+ {
208
+ name: 'offset',
209
+ nodeType: 'YulIdentifier',
210
+ src: '194:6:12',
211
+ },
212
+ ],
213
+ functionName: {
214
+ name: 'calldataload',
215
+ nodeType: 'YulIdentifier',
216
+ src: '181:12:12',
217
+ },
218
+ nodeType: 'YulFunctionCall',
219
+ src: '181:20:12',
220
+ },
221
+ variableNames: [
222
+ {
223
+ name: 'length',
224
+ nodeType: 'YulIdentifier',
225
+ src: '171:6:12',
226
+ },
227
+ ],
228
+ },
229
+ {
230
+ body: {
231
+ nodeType: 'YulBlock',
232
+ src: '244:16:12',
233
+ statements: [
234
+ {
235
+ expression: {
236
+ arguments: [
237
+ {
238
+ kind: 'number',
239
+ nodeType: 'YulLiteral',
240
+ src: '253:1:12',
241
+ type: '',
242
+ value: '0',
243
+ },
244
+ {
245
+ kind: 'number',
246
+ nodeType: 'YulLiteral',
247
+ src: '256:1:12',
248
+ type: '',
249
+ value: '0',
250
+ },
251
+ ],
252
+ functionName: {
253
+ name: 'revert',
254
+ nodeType: 'YulIdentifier',
255
+ src: '246:6:12',
256
+ },
257
+ nodeType: 'YulFunctionCall',
258
+ src: '246:12:12',
259
+ },
260
+ nodeType: 'YulExpressionStatement',
261
+ src: '246:12:12',
262
+ },
263
+ ],
264
+ },
265
+ condition: {
266
+ arguments: [
267
+ {
268
+ name: 'length',
269
+ nodeType: 'YulIdentifier',
270
+ src: '216:6:12',
271
+ },
272
+ {
273
+ kind: 'number',
274
+ nodeType: 'YulLiteral',
275
+ src: '224:18:12',
276
+ type: '',
277
+ value: '0xffffffffffffffff',
278
+ },
279
+ ],
280
+ functionName: {
281
+ name: 'gt',
282
+ nodeType: 'YulIdentifier',
283
+ src: '213:2:12',
284
+ },
285
+ nodeType: 'YulFunctionCall',
286
+ src: '213:30:12',
287
+ },
288
+ nodeType: 'YulIf',
289
+ src: '210:50:12',
290
+ },
291
+ {
292
+ nodeType: 'YulAssignment',
293
+ src: '269:29:12',
294
+ value: {
295
+ arguments: [
296
+ {
297
+ name: 'offset',
298
+ nodeType: 'YulIdentifier',
299
+ src: '285:6:12',
300
+ },
301
+ {
302
+ kind: 'number',
303
+ nodeType: 'YulLiteral',
304
+ src: '293:4:12',
305
+ type: '',
306
+ value: '0x20',
307
+ },
308
+ ],
309
+ functionName: {
310
+ name: 'add',
311
+ nodeType: 'YulIdentifier',
312
+ src: '281:3:12',
313
+ },
314
+ nodeType: 'YulFunctionCall',
315
+ src: '281:17:12',
316
+ },
317
+ variableNames: [
318
+ {
319
+ name: 'arrayPos',
320
+ nodeType: 'YulIdentifier',
321
+ src: '269:8:12',
322
+ },
323
+ ],
324
+ },
325
+ {
326
+ body: {
327
+ nodeType: 'YulBlock',
328
+ src: '358:16:12',
329
+ statements: [
330
+ {
331
+ expression: {
332
+ arguments: [
333
+ {
334
+ kind: 'number',
335
+ nodeType: 'YulLiteral',
336
+ src: '367:1:12',
337
+ type: '',
338
+ value: '0',
339
+ },
340
+ {
341
+ kind: 'number',
342
+ nodeType: 'YulLiteral',
343
+ src: '370:1:12',
344
+ type: '',
345
+ value: '0',
346
+ },
347
+ ],
348
+ functionName: {
349
+ name: 'revert',
350
+ nodeType: 'YulIdentifier',
351
+ src: '360:6:12',
352
+ },
353
+ nodeType: 'YulFunctionCall',
354
+ src: '360:12:12',
355
+ },
356
+ nodeType: 'YulExpressionStatement',
357
+ src: '360:12:12',
358
+ },
359
+ ],
360
+ },
361
+ condition: {
362
+ arguments: [
363
+ {
364
+ arguments: [
365
+ {
366
+ arguments: [
367
+ {
368
+ name: 'offset',
369
+ nodeType: 'YulIdentifier',
370
+ src: '321:6:12',
371
+ },
372
+ {
373
+ arguments: [
374
+ {
375
+ kind: 'number',
376
+ nodeType: 'YulLiteral',
377
+ src: '333:1:12',
378
+ type: '',
379
+ value: '5',
380
+ },
381
+ {
382
+ name: 'length',
383
+ nodeType: 'YulIdentifier',
384
+ src: '336:6:12',
385
+ },
386
+ ],
387
+ functionName: {
388
+ name: 'shl',
389
+ nodeType: 'YulIdentifier',
390
+ src: '329:3:12',
391
+ },
392
+ nodeType: 'YulFunctionCall',
393
+ src: '329:14:12',
394
+ },
395
+ ],
396
+ functionName: {
397
+ name: 'add',
398
+ nodeType: 'YulIdentifier',
399
+ src: '317:3:12',
400
+ },
401
+ nodeType: 'YulFunctionCall',
402
+ src: '317:27:12',
403
+ },
404
+ {
405
+ kind: 'number',
406
+ nodeType: 'YulLiteral',
407
+ src: '346:4:12',
408
+ type: '',
409
+ value: '0x20',
410
+ },
411
+ ],
412
+ functionName: {
413
+ name: 'add',
414
+ nodeType: 'YulIdentifier',
415
+ src: '313:3:12',
416
+ },
417
+ nodeType: 'YulFunctionCall',
418
+ src: '313:38:12',
419
+ },
420
+ {
421
+ name: 'end',
422
+ nodeType: 'YulIdentifier',
423
+ src: '353:3:12',
424
+ },
425
+ ],
426
+ functionName: {
427
+ name: 'gt',
428
+ nodeType: 'YulIdentifier',
429
+ src: '310:2:12',
430
+ },
431
+ nodeType: 'YulFunctionCall',
432
+ src: '310:47:12',
433
+ },
434
+ nodeType: 'YulIf',
435
+ src: '307:67:12',
436
+ },
437
+ ],
438
+ },
439
+ name: 'abi_decode_array_bytes4_dyn_calldata',
440
+ nodeType: 'YulFunctionDefinition',
441
+ parameters: [
442
+ {
443
+ name: 'offset',
444
+ nodeType: 'YulTypedName',
445
+ src: '60:6:12',
446
+ type: '',
447
+ },
448
+ {
449
+ name: 'end',
450
+ nodeType: 'YulTypedName',
451
+ src: '68:3:12',
452
+ type: '',
453
+ },
454
+ ],
455
+ returnVariables: [
456
+ {
457
+ name: 'arrayPos',
458
+ nodeType: 'YulTypedName',
459
+ src: '76:8:12',
460
+ type: '',
461
+ },
462
+ {
463
+ name: 'length',
464
+ nodeType: 'YulTypedName',
465
+ src: '86:6:12',
466
+ type: '',
467
+ },
468
+ ],
469
+ src: '14:366:12',
470
+ },
471
+ {
472
+ body: {
473
+ nodeType: 'YulBlock',
474
+ src: '540:614:12',
475
+ statements: [
476
+ {
477
+ body: {
478
+ nodeType: 'YulBlock',
479
+ src: '586:16:12',
480
+ statements: [
481
+ {
482
+ expression: {
483
+ arguments: [
484
+ {
485
+ kind: 'number',
486
+ nodeType: 'YulLiteral',
487
+ src: '595:1:12',
488
+ type: '',
489
+ value: '0',
490
+ },
491
+ {
492
+ kind: 'number',
493
+ nodeType: 'YulLiteral',
494
+ src: '598:1:12',
495
+ type: '',
496
+ value: '0',
497
+ },
498
+ ],
499
+ functionName: {
500
+ name: 'revert',
501
+ nodeType: 'YulIdentifier',
502
+ src: '588:6:12',
503
+ },
504
+ nodeType: 'YulFunctionCall',
505
+ src: '588:12:12',
506
+ },
507
+ nodeType: 'YulExpressionStatement',
508
+ src: '588:12:12',
509
+ },
510
+ ],
511
+ },
512
+ condition: {
513
+ arguments: [
514
+ {
515
+ arguments: [
516
+ {
517
+ name: 'dataEnd',
518
+ nodeType: 'YulIdentifier',
519
+ src: '561:7:12',
520
+ },
521
+ {
522
+ name: 'headStart',
523
+ nodeType: 'YulIdentifier',
524
+ src: '570:9:12',
525
+ },
526
+ ],
527
+ functionName: {
528
+ name: 'sub',
529
+ nodeType: 'YulIdentifier',
530
+ src: '557:3:12',
531
+ },
532
+ nodeType: 'YulFunctionCall',
533
+ src: '557:23:12',
534
+ },
535
+ {
536
+ kind: 'number',
537
+ nodeType: 'YulLiteral',
538
+ src: '582:2:12',
539
+ type: '',
540
+ value: '64',
541
+ },
542
+ ],
543
+ functionName: {
544
+ name: 'slt',
545
+ nodeType: 'YulIdentifier',
546
+ src: '553:3:12',
547
+ },
548
+ nodeType: 'YulFunctionCall',
549
+ src: '553:32:12',
550
+ },
551
+ nodeType: 'YulIf',
552
+ src: '550:52:12',
553
+ },
554
+ {
555
+ nodeType: 'YulVariableDeclaration',
556
+ src: '611:37:12',
557
+ value: {
558
+ arguments: [
559
+ {
560
+ name: 'headStart',
561
+ nodeType: 'YulIdentifier',
562
+ src: '638:9:12',
563
+ },
564
+ ],
565
+ functionName: {
566
+ name: 'calldataload',
567
+ nodeType: 'YulIdentifier',
568
+ src: '625:12:12',
569
+ },
570
+ nodeType: 'YulFunctionCall',
571
+ src: '625:23:12',
572
+ },
573
+ variables: [
574
+ {
575
+ name: 'offset',
576
+ nodeType: 'YulTypedName',
577
+ src: '615:6:12',
578
+ type: '',
579
+ },
580
+ ],
581
+ },
582
+ {
583
+ nodeType: 'YulVariableDeclaration',
584
+ src: '657:28:12',
585
+ value: {
586
+ kind: 'number',
587
+ nodeType: 'YulLiteral',
588
+ src: '667:18:12',
589
+ type: '',
590
+ value: '0xffffffffffffffff',
591
+ },
592
+ variables: [
593
+ {
594
+ name: '_1',
595
+ nodeType: 'YulTypedName',
596
+ src: '661:2:12',
597
+ type: '',
598
+ },
599
+ ],
600
+ },
601
+ {
602
+ body: {
603
+ nodeType: 'YulBlock',
604
+ src: '712:16:12',
605
+ statements: [
606
+ {
607
+ expression: {
608
+ arguments: [
609
+ {
610
+ kind: 'number',
611
+ nodeType: 'YulLiteral',
612
+ src: '721:1:12',
613
+ type: '',
614
+ value: '0',
615
+ },
616
+ {
617
+ kind: 'number',
618
+ nodeType: 'YulLiteral',
619
+ src: '724:1:12',
620
+ type: '',
621
+ value: '0',
622
+ },
623
+ ],
624
+ functionName: {
625
+ name: 'revert',
626
+ nodeType: 'YulIdentifier',
627
+ src: '714:6:12',
628
+ },
629
+ nodeType: 'YulFunctionCall',
630
+ src: '714:12:12',
631
+ },
632
+ nodeType: 'YulExpressionStatement',
633
+ src: '714:12:12',
634
+ },
635
+ ],
636
+ },
637
+ condition: {
638
+ arguments: [
639
+ {
640
+ name: 'offset',
641
+ nodeType: 'YulIdentifier',
642
+ src: '700:6:12',
643
+ },
644
+ {
645
+ name: '_1',
646
+ nodeType: 'YulIdentifier',
647
+ src: '708:2:12',
648
+ },
649
+ ],
650
+ functionName: {
651
+ name: 'gt',
652
+ nodeType: 'YulIdentifier',
653
+ src: '697:2:12',
654
+ },
655
+ nodeType: 'YulFunctionCall',
656
+ src: '697:14:12',
657
+ },
658
+ nodeType: 'YulIf',
659
+ src: '694:34:12',
660
+ },
661
+ {
662
+ nodeType: 'YulVariableDeclaration',
663
+ src: '737:95:12',
664
+ value: {
665
+ arguments: [
666
+ {
667
+ arguments: [
668
+ {
669
+ name: 'headStart',
670
+ nodeType: 'YulIdentifier',
671
+ src: '804:9:12',
672
+ },
673
+ {
674
+ name: 'offset',
675
+ nodeType: 'YulIdentifier',
676
+ src: '815:6:12',
677
+ },
678
+ ],
679
+ functionName: {
680
+ name: 'add',
681
+ nodeType: 'YulIdentifier',
682
+ src: '800:3:12',
683
+ },
684
+ nodeType: 'YulFunctionCall',
685
+ src: '800:22:12',
686
+ },
687
+ {
688
+ name: 'dataEnd',
689
+ nodeType: 'YulIdentifier',
690
+ src: '824:7:12',
691
+ },
692
+ ],
693
+ functionName: {
694
+ name: 'abi_decode_array_bytes4_dyn_calldata',
695
+ nodeType: 'YulIdentifier',
696
+ src: '763:36:12',
697
+ },
698
+ nodeType: 'YulFunctionCall',
699
+ src: '763:69:12',
700
+ },
701
+ variables: [
702
+ {
703
+ name: 'value0_1',
704
+ nodeType: 'YulTypedName',
705
+ src: '741:8:12',
706
+ type: '',
707
+ },
708
+ {
709
+ name: 'value1_1',
710
+ nodeType: 'YulTypedName',
711
+ src: '751:8:12',
712
+ type: '',
713
+ },
714
+ ],
715
+ },
716
+ {
717
+ nodeType: 'YulAssignment',
718
+ src: '841:18:12',
719
+ value: {
720
+ name: 'value0_1',
721
+ nodeType: 'YulIdentifier',
722
+ src: '851:8:12',
723
+ },
724
+ variableNames: [
725
+ {
726
+ name: 'value0',
727
+ nodeType: 'YulIdentifier',
728
+ src: '841:6:12',
729
+ },
730
+ ],
731
+ },
732
+ {
733
+ nodeType: 'YulAssignment',
734
+ src: '868:18:12',
735
+ value: {
736
+ name: 'value1_1',
737
+ nodeType: 'YulIdentifier',
738
+ src: '878:8:12',
739
+ },
740
+ variableNames: [
741
+ {
742
+ name: 'value1',
743
+ nodeType: 'YulIdentifier',
744
+ src: '868:6:12',
745
+ },
746
+ ],
747
+ },
748
+ {
749
+ nodeType: 'YulVariableDeclaration',
750
+ src: '895:48:12',
751
+ value: {
752
+ arguments: [
753
+ {
754
+ arguments: [
755
+ {
756
+ name: 'headStart',
757
+ nodeType: 'YulIdentifier',
758
+ src: '928:9:12',
759
+ },
760
+ {
761
+ kind: 'number',
762
+ nodeType: 'YulLiteral',
763
+ src: '939:2:12',
764
+ type: '',
765
+ value: '32',
766
+ },
767
+ ],
768
+ functionName: {
769
+ name: 'add',
770
+ nodeType: 'YulIdentifier',
771
+ src: '924:3:12',
772
+ },
773
+ nodeType: 'YulFunctionCall',
774
+ src: '924:18:12',
775
+ },
776
+ ],
777
+ functionName: {
778
+ name: 'calldataload',
779
+ nodeType: 'YulIdentifier',
780
+ src: '911:12:12',
781
+ },
782
+ nodeType: 'YulFunctionCall',
783
+ src: '911:32:12',
784
+ },
785
+ variables: [
786
+ {
787
+ name: 'offset_1',
788
+ nodeType: 'YulTypedName',
789
+ src: '899:8:12',
790
+ type: '',
791
+ },
792
+ ],
793
+ },
794
+ {
795
+ body: {
796
+ nodeType: 'YulBlock',
797
+ src: '972:16:12',
798
+ statements: [
799
+ {
800
+ expression: {
801
+ arguments: [
802
+ {
803
+ kind: 'number',
804
+ nodeType: 'YulLiteral',
805
+ src: '981:1:12',
806
+ type: '',
807
+ value: '0',
808
+ },
809
+ {
810
+ kind: 'number',
811
+ nodeType: 'YulLiteral',
812
+ src: '984:1:12',
813
+ type: '',
814
+ value: '0',
815
+ },
816
+ ],
817
+ functionName: {
818
+ name: 'revert',
819
+ nodeType: 'YulIdentifier',
820
+ src: '974:6:12',
821
+ },
822
+ nodeType: 'YulFunctionCall',
823
+ src: '974:12:12',
824
+ },
825
+ nodeType: 'YulExpressionStatement',
826
+ src: '974:12:12',
827
+ },
828
+ ],
829
+ },
830
+ condition: {
831
+ arguments: [
832
+ {
833
+ name: 'offset_1',
834
+ nodeType: 'YulIdentifier',
835
+ src: '958:8:12',
836
+ },
837
+ {
838
+ name: '_1',
839
+ nodeType: 'YulIdentifier',
840
+ src: '968:2:12',
841
+ },
842
+ ],
843
+ functionName: {
844
+ name: 'gt',
845
+ nodeType: 'YulIdentifier',
846
+ src: '955:2:12',
847
+ },
848
+ nodeType: 'YulFunctionCall',
849
+ src: '955:16:12',
850
+ },
851
+ nodeType: 'YulIf',
852
+ src: '952:36:12',
853
+ },
854
+ {
855
+ nodeType: 'YulVariableDeclaration',
856
+ src: '997:97:12',
857
+ value: {
858
+ arguments: [
859
+ {
860
+ arguments: [
861
+ {
862
+ name: 'headStart',
863
+ nodeType: 'YulIdentifier',
864
+ src: '1064:9:12',
865
+ },
866
+ {
867
+ name: 'offset_1',
868
+ nodeType: 'YulIdentifier',
869
+ src: '1075:8:12',
870
+ },
871
+ ],
872
+ functionName: {
873
+ name: 'add',
874
+ nodeType: 'YulIdentifier',
875
+ src: '1060:3:12',
876
+ },
877
+ nodeType: 'YulFunctionCall',
878
+ src: '1060:24:12',
879
+ },
880
+ {
881
+ name: 'dataEnd',
882
+ nodeType: 'YulIdentifier',
883
+ src: '1086:7:12',
884
+ },
885
+ ],
886
+ functionName: {
887
+ name: 'abi_decode_array_bytes4_dyn_calldata',
888
+ nodeType: 'YulIdentifier',
889
+ src: '1023:36:12',
890
+ },
891
+ nodeType: 'YulFunctionCall',
892
+ src: '1023:71:12',
893
+ },
894
+ variables: [
895
+ {
896
+ name: 'value2_1',
897
+ nodeType: 'YulTypedName',
898
+ src: '1001:8:12',
899
+ type: '',
900
+ },
901
+ {
902
+ name: 'value3_1',
903
+ nodeType: 'YulTypedName',
904
+ src: '1011:8:12',
905
+ type: '',
906
+ },
907
+ ],
908
+ },
909
+ {
910
+ nodeType: 'YulAssignment',
911
+ src: '1103:18:12',
912
+ value: {
913
+ name: 'value2_1',
914
+ nodeType: 'YulIdentifier',
915
+ src: '1113:8:12',
916
+ },
917
+ variableNames: [
918
+ {
919
+ name: 'value2',
920
+ nodeType: 'YulIdentifier',
921
+ src: '1103:6:12',
922
+ },
923
+ ],
924
+ },
925
+ {
926
+ nodeType: 'YulAssignment',
927
+ src: '1130:18:12',
928
+ value: {
929
+ name: 'value3_1',
930
+ nodeType: 'YulIdentifier',
931
+ src: '1140:8:12',
932
+ },
933
+ variableNames: [
934
+ {
935
+ name: 'value3',
936
+ nodeType: 'YulIdentifier',
937
+ src: '1130:6:12',
938
+ },
939
+ ],
940
+ },
941
+ ],
942
+ },
943
+ name: 'abi_decode_tuple_t_array$_t_bytes4_$dyn_calldata_ptrt_array$_t_bytes4_$dyn_calldata_ptr',
944
+ nodeType: 'YulFunctionDefinition',
945
+ parameters: [
946
+ {
947
+ name: 'headStart',
948
+ nodeType: 'YulTypedName',
949
+ src: '482:9:12',
950
+ type: '',
951
+ },
952
+ {
953
+ name: 'dataEnd',
954
+ nodeType: 'YulTypedName',
955
+ src: '493:7:12',
956
+ type: '',
957
+ },
958
+ ],
959
+ returnVariables: [
960
+ {
961
+ name: 'value0',
962
+ nodeType: 'YulTypedName',
963
+ src: '505:6:12',
964
+ type: '',
965
+ },
966
+ {
967
+ name: 'value1',
968
+ nodeType: 'YulTypedName',
969
+ src: '513:6:12',
970
+ type: '',
971
+ },
972
+ {
973
+ name: 'value2',
974
+ nodeType: 'YulTypedName',
975
+ src: '521:6:12',
976
+ type: '',
977
+ },
978
+ {
979
+ name: 'value3',
980
+ nodeType: 'YulTypedName',
981
+ src: '529:6:12',
982
+ type: '',
983
+ },
984
+ ],
985
+ src: '385:769:12',
986
+ },
987
+ {
988
+ body: {
989
+ nodeType: 'YulBlock',
990
+ src: '1191:152:12',
991
+ statements: [
992
+ {
993
+ expression: {
994
+ arguments: [
995
+ {
996
+ kind: 'number',
997
+ nodeType: 'YulLiteral',
998
+ src: '1208:1:12',
999
+ type: '',
1000
+ value: '0',
1001
+ },
1002
+ {
1003
+ kind: 'number',
1004
+ nodeType: 'YulLiteral',
1005
+ src: '1211:77:12',
1006
+ type: '',
1007
+ value: '35408467139433450592217433187231851964531694900788300625387963629091585785856',
1008
+ },
1009
+ ],
1010
+ functionName: {
1011
+ name: 'mstore',
1012
+ nodeType: 'YulIdentifier',
1013
+ src: '1201:6:12',
1014
+ },
1015
+ nodeType: 'YulFunctionCall',
1016
+ src: '1201:88:12',
1017
+ },
1018
+ nodeType: 'YulExpressionStatement',
1019
+ src: '1201:88:12',
1020
+ },
1021
+ {
1022
+ expression: {
1023
+ arguments: [
1024
+ {
1025
+ kind: 'number',
1026
+ nodeType: 'YulLiteral',
1027
+ src: '1305:1:12',
1028
+ type: '',
1029
+ value: '4',
1030
+ },
1031
+ {
1032
+ kind: 'number',
1033
+ nodeType: 'YulLiteral',
1034
+ src: '1308:4:12',
1035
+ type: '',
1036
+ value: '0x32',
1037
+ },
1038
+ ],
1039
+ functionName: {
1040
+ name: 'mstore',
1041
+ nodeType: 'YulIdentifier',
1042
+ src: '1298:6:12',
1043
+ },
1044
+ nodeType: 'YulFunctionCall',
1045
+ src: '1298:15:12',
1046
+ },
1047
+ nodeType: 'YulExpressionStatement',
1048
+ src: '1298:15:12',
1049
+ },
1050
+ {
1051
+ expression: {
1052
+ arguments: [
1053
+ {
1054
+ kind: 'number',
1055
+ nodeType: 'YulLiteral',
1056
+ src: '1329:1:12',
1057
+ type: '',
1058
+ value: '0',
1059
+ },
1060
+ {
1061
+ kind: 'number',
1062
+ nodeType: 'YulLiteral',
1063
+ src: '1332:4:12',
1064
+ type: '',
1065
+ value: '0x24',
1066
+ },
1067
+ ],
1068
+ functionName: {
1069
+ name: 'revert',
1070
+ nodeType: 'YulIdentifier',
1071
+ src: '1322:6:12',
1072
+ },
1073
+ nodeType: 'YulFunctionCall',
1074
+ src: '1322:15:12',
1075
+ },
1076
+ nodeType: 'YulExpressionStatement',
1077
+ src: '1322:15:12',
1078
+ },
1079
+ ],
1080
+ },
1081
+ name: 'panic_error_0x32',
1082
+ nodeType: 'YulFunctionDefinition',
1083
+ src: '1159:184:12',
1084
+ },
1085
+ {
1086
+ body: {
1087
+ nodeType: 'YulBlock',
1088
+ src: '1417:263:12',
1089
+ statements: [
1090
+ {
1091
+ body: {
1092
+ nodeType: 'YulBlock',
1093
+ src: '1463:16:12',
1094
+ statements: [
1095
+ {
1096
+ expression: {
1097
+ arguments: [
1098
+ {
1099
+ kind: 'number',
1100
+ nodeType: 'YulLiteral',
1101
+ src: '1472:1:12',
1102
+ type: '',
1103
+ value: '0',
1104
+ },
1105
+ {
1106
+ kind: 'number',
1107
+ nodeType: 'YulLiteral',
1108
+ src: '1475:1:12',
1109
+ type: '',
1110
+ value: '0',
1111
+ },
1112
+ ],
1113
+ functionName: {
1114
+ name: 'revert',
1115
+ nodeType: 'YulIdentifier',
1116
+ src: '1465:6:12',
1117
+ },
1118
+ nodeType: 'YulFunctionCall',
1119
+ src: '1465:12:12',
1120
+ },
1121
+ nodeType: 'YulExpressionStatement',
1122
+ src: '1465:12:12',
1123
+ },
1124
+ ],
1125
+ },
1126
+ condition: {
1127
+ arguments: [
1128
+ {
1129
+ arguments: [
1130
+ {
1131
+ name: 'dataEnd',
1132
+ nodeType: 'YulIdentifier',
1133
+ src: '1438:7:12',
1134
+ },
1135
+ {
1136
+ name: 'headStart',
1137
+ nodeType: 'YulIdentifier',
1138
+ src: '1447:9:12',
1139
+ },
1140
+ ],
1141
+ functionName: {
1142
+ name: 'sub',
1143
+ nodeType: 'YulIdentifier',
1144
+ src: '1434:3:12',
1145
+ },
1146
+ nodeType: 'YulFunctionCall',
1147
+ src: '1434:23:12',
1148
+ },
1149
+ {
1150
+ kind: 'number',
1151
+ nodeType: 'YulLiteral',
1152
+ src: '1459:2:12',
1153
+ type: '',
1154
+ value: '32',
1155
+ },
1156
+ ],
1157
+ functionName: {
1158
+ name: 'slt',
1159
+ nodeType: 'YulIdentifier',
1160
+ src: '1430:3:12',
1161
+ },
1162
+ nodeType: 'YulFunctionCall',
1163
+ src: '1430:32:12',
1164
+ },
1165
+ nodeType: 'YulIf',
1166
+ src: '1427:52:12',
1167
+ },
1168
+ {
1169
+ nodeType: 'YulVariableDeclaration',
1170
+ src: '1488:36:12',
1171
+ value: {
1172
+ arguments: [
1173
+ {
1174
+ name: 'headStart',
1175
+ nodeType: 'YulIdentifier',
1176
+ src: '1514:9:12',
1177
+ },
1178
+ ],
1179
+ functionName: {
1180
+ name: 'calldataload',
1181
+ nodeType: 'YulIdentifier',
1182
+ src: '1501:12:12',
1183
+ },
1184
+ nodeType: 'YulFunctionCall',
1185
+ src: '1501:23:12',
1186
+ },
1187
+ variables: [
1188
+ {
1189
+ name: 'value',
1190
+ nodeType: 'YulTypedName',
1191
+ src: '1492:5:12',
1192
+ type: '',
1193
+ },
1194
+ ],
1195
+ },
1196
+ {
1197
+ body: {
1198
+ nodeType: 'YulBlock',
1199
+ src: '1634:16:12',
1200
+ statements: [
1201
+ {
1202
+ expression: {
1203
+ arguments: [
1204
+ {
1205
+ kind: 'number',
1206
+ nodeType: 'YulLiteral',
1207
+ src: '1643:1:12',
1208
+ type: '',
1209
+ value: '0',
1210
+ },
1211
+ {
1212
+ kind: 'number',
1213
+ nodeType: 'YulLiteral',
1214
+ src: '1646:1:12',
1215
+ type: '',
1216
+ value: '0',
1217
+ },
1218
+ ],
1219
+ functionName: {
1220
+ name: 'revert',
1221
+ nodeType: 'YulIdentifier',
1222
+ src: '1636:6:12',
1223
+ },
1224
+ nodeType: 'YulFunctionCall',
1225
+ src: '1636:12:12',
1226
+ },
1227
+ nodeType: 'YulExpressionStatement',
1228
+ src: '1636:12:12',
1229
+ },
1230
+ ],
1231
+ },
1232
+ condition: {
1233
+ arguments: [
1234
+ {
1235
+ arguments: [
1236
+ {
1237
+ name: 'value',
1238
+ nodeType: 'YulIdentifier',
1239
+ src: '1546:5:12',
1240
+ },
1241
+ {
1242
+ arguments: [
1243
+ {
1244
+ name: 'value',
1245
+ nodeType: 'YulIdentifier',
1246
+ src: '1557:5:12',
1247
+ },
1248
+ {
1249
+ kind: 'number',
1250
+ nodeType: 'YulLiteral',
1251
+ src: '1564:66:12',
1252
+ type: '',
1253
+ value: '0xffffffff00000000000000000000000000000000000000000000000000000000',
1254
+ },
1255
+ ],
1256
+ functionName: {
1257
+ name: 'and',
1258
+ nodeType: 'YulIdentifier',
1259
+ src: '1553:3:12',
1260
+ },
1261
+ nodeType: 'YulFunctionCall',
1262
+ src: '1553:78:12',
1263
+ },
1264
+ ],
1265
+ functionName: {
1266
+ name: 'eq',
1267
+ nodeType: 'YulIdentifier',
1268
+ src: '1543:2:12',
1269
+ },
1270
+ nodeType: 'YulFunctionCall',
1271
+ src: '1543:89:12',
1272
+ },
1273
+ ],
1274
+ functionName: {
1275
+ name: 'iszero',
1276
+ nodeType: 'YulIdentifier',
1277
+ src: '1536:6:12',
1278
+ },
1279
+ nodeType: 'YulFunctionCall',
1280
+ src: '1536:97:12',
1281
+ },
1282
+ nodeType: 'YulIf',
1283
+ src: '1533:117:12',
1284
+ },
1285
+ {
1286
+ nodeType: 'YulAssignment',
1287
+ src: '1659:15:12',
1288
+ value: {
1289
+ name: 'value',
1290
+ nodeType: 'YulIdentifier',
1291
+ src: '1669:5:12',
1292
+ },
1293
+ variableNames: [
1294
+ {
1295
+ name: 'value0',
1296
+ nodeType: 'YulIdentifier',
1297
+ src: '1659:6:12',
1298
+ },
1299
+ ],
1300
+ },
1301
+ ],
1302
+ },
1303
+ name: 'abi_decode_tuple_t_bytes4',
1304
+ nodeType: 'YulFunctionDefinition',
1305
+ parameters: [
1306
+ {
1307
+ name: 'headStart',
1308
+ nodeType: 'YulTypedName',
1309
+ src: '1383:9:12',
1310
+ type: '',
1311
+ },
1312
+ {
1313
+ name: 'dataEnd',
1314
+ nodeType: 'YulTypedName',
1315
+ src: '1394:7:12',
1316
+ type: '',
1317
+ },
1318
+ ],
1319
+ returnVariables: [
1320
+ {
1321
+ name: 'value0',
1322
+ nodeType: 'YulTypedName',
1323
+ src: '1406:6:12',
1324
+ type: '',
1325
+ },
1326
+ ],
1327
+ src: '1348:332:12',
1328
+ },
1329
+ {
1330
+ body: {
1331
+ nodeType: 'YulBlock',
1332
+ src: '1732:302:12',
1333
+ statements: [
1334
+ {
1335
+ body: {
1336
+ nodeType: 'YulBlock',
1337
+ src: '1831:168:12',
1338
+ statements: [
1339
+ {
1340
+ expression: {
1341
+ arguments: [
1342
+ {
1343
+ kind: 'number',
1344
+ nodeType: 'YulLiteral',
1345
+ src: '1852:1:12',
1346
+ type: '',
1347
+ value: '0',
1348
+ },
1349
+ {
1350
+ kind: 'number',
1351
+ nodeType: 'YulLiteral',
1352
+ src: '1855:77:12',
1353
+ type: '',
1354
+ value:
1355
+ '35408467139433450592217433187231851964531694900788300625387963629091585785856',
1356
+ },
1357
+ ],
1358
+ functionName: {
1359
+ name: 'mstore',
1360
+ nodeType: 'YulIdentifier',
1361
+ src: '1845:6:12',
1362
+ },
1363
+ nodeType: 'YulFunctionCall',
1364
+ src: '1845:88:12',
1365
+ },
1366
+ nodeType: 'YulExpressionStatement',
1367
+ src: '1845:88:12',
1368
+ },
1369
+ {
1370
+ expression: {
1371
+ arguments: [
1372
+ {
1373
+ kind: 'number',
1374
+ nodeType: 'YulLiteral',
1375
+ src: '1953:1:12',
1376
+ type: '',
1377
+ value: '4',
1378
+ },
1379
+ {
1380
+ kind: 'number',
1381
+ nodeType: 'YulLiteral',
1382
+ src: '1956:4:12',
1383
+ type: '',
1384
+ value: '0x11',
1385
+ },
1386
+ ],
1387
+ functionName: {
1388
+ name: 'mstore',
1389
+ nodeType: 'YulIdentifier',
1390
+ src: '1946:6:12',
1391
+ },
1392
+ nodeType: 'YulFunctionCall',
1393
+ src: '1946:15:12',
1394
+ },
1395
+ nodeType: 'YulExpressionStatement',
1396
+ src: '1946:15:12',
1397
+ },
1398
+ {
1399
+ expression: {
1400
+ arguments: [
1401
+ {
1402
+ kind: 'number',
1403
+ nodeType: 'YulLiteral',
1404
+ src: '1981:1:12',
1405
+ type: '',
1406
+ value: '0',
1407
+ },
1408
+ {
1409
+ kind: 'number',
1410
+ nodeType: 'YulLiteral',
1411
+ src: '1984:4:12',
1412
+ type: '',
1413
+ value: '0x24',
1414
+ },
1415
+ ],
1416
+ functionName: {
1417
+ name: 'revert',
1418
+ nodeType: 'YulIdentifier',
1419
+ src: '1974:6:12',
1420
+ },
1421
+ nodeType: 'YulFunctionCall',
1422
+ src: '1974:15:12',
1423
+ },
1424
+ nodeType: 'YulExpressionStatement',
1425
+ src: '1974:15:12',
1426
+ },
1427
+ ],
1428
+ },
1429
+ condition: {
1430
+ arguments: [
1431
+ {
1432
+ name: 'value',
1433
+ nodeType: 'YulIdentifier',
1434
+ src: '1748:5:12',
1435
+ },
1436
+ {
1437
+ kind: 'number',
1438
+ nodeType: 'YulLiteral',
1439
+ src: '1755:66:12',
1440
+ type: '',
1441
+ value: '0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff',
1442
+ },
1443
+ ],
1444
+ functionName: {
1445
+ name: 'eq',
1446
+ nodeType: 'YulIdentifier',
1447
+ src: '1745:2:12',
1448
+ },
1449
+ nodeType: 'YulFunctionCall',
1450
+ src: '1745:77:12',
1451
+ },
1452
+ nodeType: 'YulIf',
1453
+ src: '1742:257:12',
1454
+ },
1455
+ {
1456
+ nodeType: 'YulAssignment',
1457
+ src: '2008:20:12',
1458
+ value: {
1459
+ arguments: [
1460
+ {
1461
+ name: 'value',
1462
+ nodeType: 'YulIdentifier',
1463
+ src: '2019:5:12',
1464
+ },
1465
+ {
1466
+ kind: 'number',
1467
+ nodeType: 'YulLiteral',
1468
+ src: '2026:1:12',
1469
+ type: '',
1470
+ value: '1',
1471
+ },
1472
+ ],
1473
+ functionName: {
1474
+ name: 'add',
1475
+ nodeType: 'YulIdentifier',
1476
+ src: '2015:3:12',
1477
+ },
1478
+ nodeType: 'YulFunctionCall',
1479
+ src: '2015:13:12',
1480
+ },
1481
+ variableNames: [
1482
+ {
1483
+ name: 'ret',
1484
+ nodeType: 'YulIdentifier',
1485
+ src: '2008:3:12',
1486
+ },
1487
+ ],
1488
+ },
1489
+ ],
1490
+ },
1491
+ name: 'increment_t_uint256',
1492
+ nodeType: 'YulFunctionDefinition',
1493
+ parameters: [
1494
+ {
1495
+ name: 'value',
1496
+ nodeType: 'YulTypedName',
1497
+ src: '1714:5:12',
1498
+ type: '',
1499
+ },
1500
+ ],
1501
+ returnVariables: [
1502
+ {
1503
+ name: 'ret',
1504
+ nodeType: 'YulTypedName',
1505
+ src: '1724:3:12',
1506
+ type: '',
1507
+ },
1508
+ ],
1509
+ src: '1685:349:12',
1510
+ },
1511
+ ],
1512
+ },
1513
+ contents:
1514
+ '{\n { }\n function abi_decode_array_bytes4_dyn_calldata(offset, end) -> arrayPos, length\n {\n if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) }\n length := calldataload(offset)\n if gt(length, 0xffffffffffffffff) { revert(0, 0) }\n arrayPos := add(offset, 0x20)\n if gt(add(add(offset, shl(5, length)), 0x20), end) { revert(0, 0) }\n }\n function abi_decode_tuple_t_array$_t_bytes4_$dyn_calldata_ptrt_array$_t_bytes4_$dyn_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3\n {\n if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n let offset := calldataload(headStart)\n let _1 := 0xffffffffffffffff\n if gt(offset, _1) { revert(0, 0) }\n let value0_1, value1_1 := abi_decode_array_bytes4_dyn_calldata(add(headStart, offset), dataEnd)\n value0 := value0_1\n value1 := value1_1\n let offset_1 := calldataload(add(headStart, 32))\n if gt(offset_1, _1) { revert(0, 0) }\n let value2_1, value3_1 := abi_decode_array_bytes4_dyn_calldata(add(headStart, offset_1), dataEnd)\n value2 := value2_1\n value3 := value3_1\n }\n function panic_error_0x32()\n {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x32)\n revert(0, 0x24)\n }\n function abi_decode_tuple_t_bytes4(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n let value := calldataload(headStart)\n if iszero(eq(value, and(value, 0xffffffff00000000000000000000000000000000000000000000000000000000))) { revert(0, 0) }\n value0 := value\n }\n function increment_t_uint256(value) -> ret\n {\n if eq(value, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)\n {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n ret := add(value, 1)\n }\n}',
1515
+ id: 12,
1516
+ language: 'Yul',
1517
+ name: '#utility.yul',
1518
+ },
1519
+ ],
1520
+ immutableReferences: {},
1521
+ linkReferences: {},
1522
+ opcodes:
1523
+ 'PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x2B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x2A848091 EQ PUSH2 0x30 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x43 PUSH2 0x3E CALLDATASIZE PUSH1 0x4 PUSH2 0x2A4 JUMP JUMPDEST PUSH2 0x45 JUMP JUMPDEST STOP JUMPDEST PUSH32 0x1FFC9A700000000000000000000000000000000000000000000000000000000 PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH32 0xC8FCAD8DB84D3CC18B4C41D551EA0EE66DD599CDE068D998E57D5E09332C131F PUSH1 0x20 MSTORE PUSH32 0x699D9DAA71B280D05A152715774AFA0A81A312594B2D731D6B0B2552B7D6F69F DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 AND PUSH1 0x1 OR SWAP1 SSTORE PUSH32 0xC8FCAD8DB84D3CC18B4C41D551EA0EE66DD599CDE068D998E57D5E09332C131C SWAP1 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x1A4 JUMPI PUSH1 0x1 DUP3 PUSH1 0x3 ADD PUSH1 0x0 DUP9 DUP9 DUP6 DUP2 DUP2 LT PUSH2 0x11E JUMPI PUSH2 0x11E PUSH2 0x310 JUMP JUMPDEST SWAP1 POP PUSH1 0x20 MUL ADD PUSH1 0x20 DUP2 ADD SWAP1 PUSH2 0x133 SWAP2 SWAP1 PUSH2 0x33F JUMP JUMPDEST PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 AND DUP2 MSTORE PUSH1 0x20 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x40 ADD PUSH1 0x0 KECCAK256 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 AND SWAP2 ISZERO ISZERO SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE DUP1 PUSH2 0x19C DUP2 PUSH2 0x388 JUMP JUMPDEST SWAP2 POP POP PUSH2 0xFC JUMP JUMPDEST POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x250 JUMPI PUSH1 0x0 DUP3 PUSH1 0x3 ADD PUSH1 0x0 DUP7 DUP7 DUP6 DUP2 DUP2 LT PUSH2 0x1CA JUMPI PUSH2 0x1CA PUSH2 0x310 JUMP JUMPDEST SWAP1 POP PUSH1 0x20 MUL ADD PUSH1 0x20 DUP2 ADD SWAP1 PUSH2 0x1DF SWAP2 SWAP1 PUSH2 0x33F JUMP JUMPDEST PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 AND DUP2 MSTORE PUSH1 0x20 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x40 ADD PUSH1 0x0 KECCAK256 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 AND SWAP2 ISZERO ISZERO SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE DUP1 PUSH2 0x248 DUP2 PUSH2 0x388 JUMP JUMPDEST SWAP2 POP POP PUSH2 0x1A8 JUMP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0x26A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x282 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x20 DUP3 PUSH1 0x5 SHL DUP6 ADD ADD GT ISZERO PUSH2 0x29D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x40 DUP6 DUP8 SUB SLT ISZERO PUSH2 0x2BA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP5 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x2D2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2DE DUP9 DUP4 DUP10 ADD PUSH2 0x258 JUMP JUMPDEST SWAP1 SWAP7 POP SWAP5 POP PUSH1 0x20 DUP8 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0x2F7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x304 DUP8 DUP3 DUP9 ADD PUSH2 0x258 JUMP JUMPDEST SWAP6 SWAP9 SWAP5 SWAP8 POP SWAP6 POP POP POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x351 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 DUP2 AND DUP2 EQ PUSH2 0x381 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 EQ ISZERO PUSH2 0x3E1 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP PUSH1 0x1 ADD SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP10 0xEC 0x28 SWAP15 DUP11 0x22 0xB6 0x26 0xB3 CALLVALUE LOG0 DUP4 0xBA 0xD1 GAS SLOAD 0xA9 0x4F PUSH12 0xB0677C64DD693CE4BBD20FF3 CHAINID PUSH5 0x736F6C6343 STOP ADDMOD EXP STOP CALLER ',
1524
+ sourceMap:
1525
+ '165:902:6:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;536:529;;;;;;:::i;:::-;;:::i;:::-;;;746:25;646:36;723:49;;;:22;:49;;;:56;;;;775:4;723:56;;;492:45:11;;790:121:6;810:23;;;790:121;;;896:4;854:2;:22;;:39;877:12;;890:1;877:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;854:39;;;;;;;;;;;;;-1:-1:-1;854:39:6;:46;;;;;;;;;;;;;835:3;;;;:::i;:::-;;;;790:121;;;;926:9;921:138;941:31;;;921:138;;;1043:5;993:2;:22;;:47;1016:20;;1037:1;1016:23;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;993:47;;;;;;;;;;;;;-1:-1:-1;993:47:6;:55;;;;;;;;;;;;;974:3;;;;:::i;:::-;;;;921:138;;;;636:429;536:529;;;;:::o;14:366:12:-;76:8;86:6;140:3;133:4;125:6;121:17;117:27;107:55;;158:1;155;148:12;107:55;-1:-1:-1;181:20:12;;224:18;213:30;;210:50;;;256:1;253;246:12;210:50;293:4;285:6;281:17;269:29;;353:3;346:4;336:6;333:1;329:14;321:6;317:27;313:38;310:47;307:67;;;370:1;367;360:12;307:67;14:366;;;;;:::o;385:769::-;505:6;513;521;529;582:2;570:9;561:7;557:23;553:32;550:52;;;598:1;595;588:12;550:52;638:9;625:23;667:18;708:2;700:6;697:14;694:34;;;724:1;721;714:12;694:34;763:69;824:7;815:6;804:9;800:22;763:69;:::i;:::-;851:8;;-1:-1:-1;737:95:12;-1:-1:-1;939:2:12;924:18;;911:32;;-1:-1:-1;955:16:12;;;952:36;;;984:1;981;974:12;952:36;;1023:71;1086:7;1075:8;1064:9;1060:24;1023:71;:::i;:::-;385:769;;;;-1:-1:-1;1113:8:12;-1:-1:-1;;;;385:769:12:o;1159:184::-;1211:77;1208:1;1201:88;1308:4;1305:1;1298:15;1332:4;1329:1;1322:15;1348:332;1406:6;1459:2;1447:9;1438:7;1434:23;1430:32;1427:52;;;1475:1;1472;1465:12;1427:52;1514:9;1501:23;1564:66;1557:5;1553:78;1546:5;1543:89;1533:117;;1646:1;1643;1636:12;1533:117;1669:5;1348:332;-1:-1:-1;;;1348:332:12:o;1685:349::-;1724:3;1755:66;1748:5;1745:77;1742:257;;;1855:77;1852:1;1845:88;1956:4;1953:1;1946:15;1984:4;1981:1;1974:15;1742:257;-1:-1:-1;2026:1:12;2015:13;;1685:349::o',
1526
+ },
1527
+ gasEstimates: {
1528
+ creation: {
1529
+ codeDepositCost: '210800',
1530
+ executionCost: '251',
1531
+ totalCost: '211051',
1532
+ },
1533
+ external: {
1534
+ 'setERC165(bytes4[],bytes4[])': 'infinite',
1535
+ },
1536
+ },
1537
+ methodIdentifiers: {
1538
+ 'setERC165(bytes4[],bytes4[])': '2a848091',
1539
+ },
1540
+ },
1541
+ metadata:
1542
+ '{"compiler":{"version":"0.8.10+commit.fc410830"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"bytes4[]","name":"interfaceIds","type":"bytes4[]"},{"internalType":"bytes4[]","name":"interfaceIdsToRemove","type":"bytes4[]"}],"name":"setERC165","outputs":[],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"kind":"dev","methods":{"setERC165(bytes4[],bytes4[])":{"params":{"interfaceIds":"list of interface id to set as supported","interfaceIdsToRemove":"list of interface id to unset as supported. Technically, you can remove support of ERC165 by having the IERC165 id itself being part of that array."}}},"version":1},"userdoc":{"kind":"user","methods":{"setERC165(bytes4[],bytes4[])":{"notice":"set or unset ERC165 using DiamondStorage.supportedInterfaces"}},"version":1}},"settings":{"compilationTarget":{"solc_0.8/diamond/initializers/DiamondERC165Init.sol":"DiamondERC165Init"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":true},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"sources":{"solc_0.8/diamond/initializers/DiamondERC165Init.sol":{"content":"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {LibDiamond} from \\"../libraries/LibDiamond.sol\\";\\nimport {IERC165} from \\"../interfaces/IERC165.sol\\";\\n\\ncontract DiamondERC165Init {\\n /// @notice set or unset ERC165 using DiamondStorage.supportedInterfaces\\n /// @param interfaceIds list of interface id to set as supported\\n /// @param interfaceIdsToRemove list of interface id to unset as supported.\\n /// Technically, you can remove support of ERC165 by having the IERC165 id itself being part of that array.\\n function setERC165(bytes4[] calldata interfaceIds, bytes4[] calldata interfaceIdsToRemove) external {\\n LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();\\n\\n ds.supportedInterfaces[type(IERC165).interfaceId] = true;\\n\\n for (uint256 i = 0; i < interfaceIds.length; i++) {\\n ds.supportedInterfaces[interfaceIds[i]] = true;\\n }\\n\\n for (uint256 i = 0; i < interfaceIdsToRemove.length; i++) {\\n ds.supportedInterfaces[interfaceIdsToRemove[i]] = false;\\n }\\n }\\n}\\n","keccak256":"0x71a7a882fb6ee26dbfd70ec75d230f6336d2dd05db7e480168aadb53f216ae4b","license":"MIT"},"solc_0.8/diamond/interfaces/IDiamondCut.sol":{"content":"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/******************************************************************************\\\\\\n* Author: Nick Mudge <nick@perfectabstractions.com> (https://twitter.com/mudgen)\\n* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535\\n/******************************************************************************/\\n\\ninterface IDiamondCut {\\n enum FacetCutAction {Add, Replace, Remove}\\n // Add=0, Replace=1, Remove=2\\n\\n struct FacetCut {\\n address facetAddress;\\n FacetCutAction action;\\n bytes4[] functionSelectors;\\n }\\n\\n /// @notice Add/replace/remove any number of functions and optionally execute\\n /// a function with delegatecall\\n /// @param _diamondCut Contains the facet addresses and function selectors\\n /// @param _init The address of the contract or facet to execute _calldata\\n /// @param _calldata A function call, including function selector and arguments\\n /// _calldata is executed with delegatecall on _init\\n function diamondCut(\\n FacetCut[] calldata _diamondCut,\\n address _init,\\n bytes calldata _calldata\\n ) external;\\n\\n event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata);\\n}\\n","keccak256":"0xc00c16bfa30a3fa5f3dc684f7f8ba62c259962b25f647d9588739458989717fc","license":"MIT"},"solc_0.8/diamond/interfaces/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IERC165 {\\n /// @notice Query if a contract implements an interface\\n /// @param interfaceId The interface identifier, as specified in ERC-165\\n /// @dev Interface identification is specified in ERC-165. This function\\n /// uses less than 30,000 gas.\\n /// @return `true` if the contract implements `interfaceID` and\\n /// `interfaceID` is not 0xffffffff, `false` otherwise\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n","keccak256":"0x7541f7408d0f74162bc4664d5e012427f2ceaab2abadca0353269ef15ee03d8b","license":"MIT"},"solc_0.8/diamond/libraries/LibDiamond.sol":{"content":"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/******************************************************************************\\\\\\n* Author: Nick Mudge <nick@perfectabstractions.com> (https://twitter.com/mudgen)\\n* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535\\n/******************************************************************************/\\nimport { IDiamondCut } from \\"../interfaces/IDiamondCut.sol\\";\\n\\nlibrary LibDiamond {\\n bytes32 constant DIAMOND_STORAGE_POSITION = keccak256(\\"diamond.standard.diamond.storage\\");\\n\\n struct FacetAddressAndPosition {\\n address facetAddress;\\n uint96 functionSelectorPosition; // position in facetFunctionSelectors.functionSelectors array\\n }\\n\\n struct FacetFunctionSelectors {\\n bytes4[] functionSelectors;\\n uint256 facetAddressPosition; // position of facetAddress in facetAddresses array\\n }\\n\\n struct DiamondStorage {\\n // maps function selector to the facet address and\\n // the position of the selector in the facetFunctionSelectors.selectors array\\n mapping(bytes4 => FacetAddressAndPosition) selectorToFacetAndPosition;\\n // maps facet addresses to function selectors\\n mapping(address => FacetFunctionSelectors) facetFunctionSelectors;\\n // facet addresses\\n address[] facetAddresses;\\n // Used to query if a contract implements an interface.\\n // Used to implement ERC-165.\\n mapping(bytes4 => bool) supportedInterfaces;\\n // owner of the contract\\n address contractOwner;\\n }\\n\\n function diamondStorage() internal pure returns (DiamondStorage storage ds) {\\n bytes32 position = DIAMOND_STORAGE_POSITION;\\n assembly {\\n ds.slot := position\\n }\\n }\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n function setContractOwner(address _newOwner) internal {\\n DiamondStorage storage ds = diamondStorage();\\n address previousOwner = ds.contractOwner;\\n ds.contractOwner = _newOwner;\\n emit OwnershipTransferred(previousOwner, _newOwner);\\n }\\n\\n function contractOwner() internal view returns (address contractOwner_) {\\n contractOwner_ = diamondStorage().contractOwner;\\n }\\n\\n function enforceIsContractOwner() internal view {\\n require(msg.sender == diamondStorage().contractOwner, \\"LibDiamond: Must be contract owner\\");\\n }\\n\\n event DiamondCut(IDiamondCut.FacetCut[] _diamondCut, address _init, bytes _calldata);\\n\\n // Internal function version of diamondCut\\n function diamondCut(\\n IDiamondCut.FacetCut[] memory _diamondCut,\\n address _init,\\n bytes memory _calldata\\n ) internal {\\n for (uint256 facetIndex; facetIndex < _diamondCut.length; facetIndex++) {\\n IDiamondCut.FacetCutAction action = _diamondCut[facetIndex].action;\\n if (action == IDiamondCut.FacetCutAction.Add) {\\n addFunctions(_diamondCut[facetIndex].facetAddress, _diamondCut[facetIndex].functionSelectors);\\n } else if (action == IDiamondCut.FacetCutAction.Replace) {\\n replaceFunctions(_diamondCut[facetIndex].facetAddress, _diamondCut[facetIndex].functionSelectors);\\n } else if (action == IDiamondCut.FacetCutAction.Remove) {\\n removeFunctions(_diamondCut[facetIndex].facetAddress, _diamondCut[facetIndex].functionSelectors);\\n } else {\\n revert(\\"LibDiamondCut: Incorrect FacetCutAction\\");\\n }\\n }\\n emit DiamondCut(_diamondCut, _init, _calldata);\\n initializeDiamondCut(_init, _calldata);\\n }\\n\\n function addFunctions(address _facetAddress, bytes4[] memory _functionSelectors) internal {\\n require(_functionSelectors.length > 0, \\"LibDiamondCut: No selectors in facet to cut\\");\\n DiamondStorage storage ds = diamondStorage(); \\n require(_facetAddress != address(0), \\"LibDiamondCut: Add facet can\'t be address(0)\\");\\n uint96 selectorPosition = uint96(ds.facetFunctionSelectors[_facetAddress].functionSelectors.length);\\n // add new facet address if it does not exist\\n if (selectorPosition == 0) {\\n addFacet(ds, _facetAddress); \\n }\\n for (uint256 selectorIndex; selectorIndex < _functionSelectors.length; selectorIndex++) {\\n bytes4 selector = _functionSelectors[selectorIndex];\\n address oldFacetAddress = ds.selectorToFacetAndPosition[selector].facetAddress;\\n require(oldFacetAddress == address(0), \\"LibDiamondCut: Can\'t add function that already exists\\");\\n addFunction(ds, selector, selectorPosition, _facetAddress);\\n selectorPosition++;\\n }\\n }\\n\\n function replaceFunctions(address _facetAddress, bytes4[] memory _functionSelectors) internal {\\n require(_functionSelectors.length > 0, \\"LibDiamondCut: No selectors in facet to cut\\");\\n DiamondStorage storage ds = diamondStorage();\\n require(_facetAddress != address(0), \\"LibDiamondCut: Add facet can\'t be address(0)\\");\\n uint96 selectorPosition = uint96(ds.facetFunctionSelectors[_facetAddress].functionSelectors.length);\\n // add new facet address if it does not exist\\n if (selectorPosition == 0) {\\n addFacet(ds, _facetAddress);\\n }\\n for (uint256 selectorIndex; selectorIndex < _functionSelectors.length; selectorIndex++) {\\n bytes4 selector = _functionSelectors[selectorIndex];\\n address oldFacetAddress = ds.selectorToFacetAndPosition[selector].facetAddress;\\n require(oldFacetAddress != _facetAddress, \\"LibDiamondCut: Can\'t replace function with same function\\");\\n removeFunction(ds, oldFacetAddress, selector);\\n addFunction(ds, selector, selectorPosition, _facetAddress);\\n selectorPosition++;\\n }\\n }\\n\\n function removeFunctions(address _facetAddress, bytes4[] memory _functionSelectors) internal {\\n require(_functionSelectors.length > 0, \\"LibDiamondCut: No selectors in facet to cut\\");\\n DiamondStorage storage ds = diamondStorage();\\n // if function does not exist then do nothing and return\\n require(_facetAddress == address(0), \\"LibDiamondCut: Remove facet address must be address(0)\\");\\n for (uint256 selectorIndex; selectorIndex < _functionSelectors.length; selectorIndex++) {\\n bytes4 selector = _functionSelectors[selectorIndex];\\n address oldFacetAddress = ds.selectorToFacetAndPosition[selector].facetAddress;\\n removeFunction(ds, oldFacetAddress, selector);\\n }\\n }\\n\\n function addFacet(DiamondStorage storage ds, address _facetAddress) internal {\\n enforceHasContractCode(_facetAddress, \\"LibDiamondCut: New facet has no code\\");\\n ds.facetFunctionSelectors[_facetAddress].facetAddressPosition = ds.facetAddresses.length;\\n ds.facetAddresses.push(_facetAddress);\\n } \\n\\n\\n function addFunction(DiamondStorage storage ds, bytes4 _selector, uint96 _selectorPosition, address _facetAddress) internal {\\n ds.selectorToFacetAndPosition[_selector].functionSelectorPosition = _selectorPosition;\\n ds.facetFunctionSelectors[_facetAddress].functionSelectors.push(_selector);\\n ds.selectorToFacetAndPosition[_selector].facetAddress = _facetAddress;\\n }\\n\\n function removeFunction(DiamondStorage storage ds, address _facetAddress, bytes4 _selector) internal { \\n require(_facetAddress != address(0), \\"LibDiamondCut: Can\'t remove function that doesn\'t exist\\");\\n // an immutable function is a function defined directly in a diamond\\n require(_facetAddress != address(this), \\"LibDiamondCut: Can\'t remove immutable function\\");\\n // replace selector with last selector, then delete last selector\\n uint256 selectorPosition = ds.selectorToFacetAndPosition[_selector].functionSelectorPosition;\\n uint256 lastSelectorPosition = ds.facetFunctionSelectors[_facetAddress].functionSelectors.length - 1;\\n // if not the same then replace _selector with lastSelector\\n if (selectorPosition != lastSelectorPosition) {\\n bytes4 lastSelector = ds.facetFunctionSelectors[_facetAddress].functionSelectors[lastSelectorPosition];\\n ds.facetFunctionSelectors[_facetAddress].functionSelectors[selectorPosition] = lastSelector;\\n ds.selectorToFacetAndPosition[lastSelector].functionSelectorPosition = uint96(selectorPosition);\\n }\\n // delete the last selector\\n ds.facetFunctionSelectors[_facetAddress].functionSelectors.pop();\\n delete ds.selectorToFacetAndPosition[_selector];\\n\\n // if no more selectors for facet address then delete the facet address\\n if (lastSelectorPosition == 0) {\\n // replace facet address with last facet address and delete last facet address\\n uint256 lastFacetAddressPosition = ds.facetAddresses.length - 1;\\n uint256 facetAddressPosition = ds.facetFunctionSelectors[_facetAddress].facetAddressPosition;\\n if (facetAddressPosition != lastFacetAddressPosition) {\\n address lastFacetAddress = ds.facetAddresses[lastFacetAddressPosition];\\n ds.facetAddresses[facetAddressPosition] = lastFacetAddress;\\n ds.facetFunctionSelectors[lastFacetAddress].facetAddressPosition = facetAddressPosition;\\n }\\n ds.facetAddresses.pop();\\n delete ds.facetFunctionSelectors[_facetAddress].facetAddressPosition;\\n }\\n }\\n\\n function initializeDiamondCut(address _init, bytes memory _calldata) internal {\\n if (_init == address(0)) {\\n require(_calldata.length == 0, \\"LibDiamondCut: _init is address(0) but_calldata is not empty\\");\\n } else {\\n require(_calldata.length > 0, \\"LibDiamondCut: _calldata is empty but _init is not address(0)\\");\\n if (_init != address(this)) {\\n enforceHasContractCode(_init, \\"LibDiamondCut: _init address has no code\\");\\n }\\n (bool success, bytes memory error) = _init.delegatecall(_calldata);\\n if (!success) {\\n if (error.length > 0) {\\n // bubble up the error\\n revert(string(error));\\n } else {\\n revert(\\"LibDiamondCut: _init function reverted\\");\\n }\\n }\\n }\\n }\\n\\n function enforceHasContractCode(address _contract, string memory _errorMessage) internal view {\\n uint256 contractSize;\\n assembly {\\n contractSize := extcodesize(_contract)\\n }\\n require(contractSize > 0, _errorMessage);\\n }\\n}\\n","keccak256":"0x2205345e83eb86f5281f159a9215a096cb6d404782619f9b8e9d7a4a46c32a37","license":"MIT"}},"version":1}',
1543
+ storageLayout: {
1544
+ storage: [],
1545
+ types: null,
1546
+ },
1547
+ userdoc: {
1548
+ kind: 'user',
1549
+ methods: {
1550
+ 'setERC165(bytes4[],bytes4[])': {
1551
+ notice: 'set or unset ERC165 using DiamondStorage.supportedInterfaces',
1552
+ },
1553
+ },
1554
+ version: 1,
1555
+ },
1556
+ solcInput:
1557
+ '{\n "language": "Solidity",\n "sources": {\n "solc_0.8/diamond/Diamond.sol": {\n "content": "// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/******************************************************************************\\\\\\n* Author: Nick Mudge <nick@perfectabstractions.com> (https://twitter.com/mudgen)\\n* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535\\n*\\n* Implementation of a diamond.\\n/******************************************************************************/\\n\\nimport {LibDiamond} from \\"./libraries/LibDiamond.sol\\";\\nimport {IDiamondCut} from \\"./interfaces/IDiamondCut.sol\\";\\n\\ncontract Diamond {\\n struct Initialization {\\n address initContract;\\n bytes initData;\\n }\\n\\n /// @notice This construct a diamond contract\\n /// @param _contractOwner the owner of the contract. With default DiamondCutFacet, this is the sole address allowed to make further cuts.\\n /// @param _diamondCut the list of facet to add\\n /// @param _initializations the list of initialization pair to execute. This allow to setup a contract with multiple level of independent initialization.\\n constructor(\\n address _contractOwner,\\n IDiamondCut.FacetCut[] memory _diamondCut,\\n Initialization[] memory _initializations\\n ) payable {\\n if (_contractOwner != address(0)) {\\n LibDiamond.setContractOwner(_contractOwner);\\n }\\n\\n LibDiamond.diamondCut(_diamondCut, address(0), \\"\\");\\n\\n for (uint256 i = 0; i < _initializations.length; i++) {\\n LibDiamond.initializeDiamondCut(_initializations[i].initContract, _initializations[i].initData);\\n }\\n }\\n\\n // Find facet for function that is called and execute the\\n // function if a facet is found and return any value.\\n fallback() external payable {\\n LibDiamond.DiamondStorage storage ds;\\n bytes32 position = LibDiamond.DIAMOND_STORAGE_POSITION;\\n // get diamond storage\\n assembly {\\n ds.slot := position\\n }\\n // get facet from function selector\\n address facet = ds.selectorToFacetAndPosition[msg.sig].facetAddress;\\n require(facet != address(0), \\"Diamond: Function does not exist\\");\\n // Execute external function from facet using delegatecall and return any value.\\n assembly {\\n // copy function selector and any arguments\\n calldatacopy(0, 0, calldatasize())\\n // execute function call using the facet\\n let result := delegatecall(gas(), facet, 0, calldatasize(), 0, 0)\\n // get any return value\\n returndatacopy(0, 0, returndatasize())\\n // return any return value or error back to the caller\\n switch result\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n receive() external payable {}\\n}\\n"\n },\n "solc_0.8/diamond/libraries/LibDiamond.sol": {\n "content": "// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/******************************************************************************\\\\\\n* Author: Nick Mudge <nick@perfectabstractions.com> (https://twitter.com/mudgen)\\n* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535\\n/******************************************************************************/\\nimport { IDiamondCut } from \\"../interfaces/IDiamondCut.sol\\";\\n\\nlibrary LibDiamond {\\n bytes32 constant DIAMOND_STORAGE_POSITION = keccak256(\\"diamond.standard.diamond.storage\\");\\n\\n struct FacetAddressAndPosition {\\n address facetAddress;\\n uint96 functionSelectorPosition; // position in facetFunctionSelectors.functionSelectors array\\n }\\n\\n struct FacetFunctionSelectors {\\n bytes4[] functionSelectors;\\n uint256 facetAddressPosition; // position of facetAddress in facetAddresses array\\n }\\n\\n struct DiamondStorage {\\n // maps function selector to the facet address and\\n // the position of the selector in the facetFunctionSelectors.selectors array\\n mapping(bytes4 => FacetAddressAndPosition) selectorToFacetAndPosition;\\n // maps facet addresses to function selectors\\n mapping(address => FacetFunctionSelectors) facetFunctionSelectors;\\n // facet addresses\\n address[] facetAddresses;\\n // Used to query if a contract implements an interface.\\n // Used to implement ERC-165.\\n mapping(bytes4 => bool) supportedInterfaces;\\n // owner of the contract\\n address contractOwner;\\n }\\n\\n function diamondStorage() internal pure returns (DiamondStorage storage ds) {\\n bytes32 position = DIAMOND_STORAGE_POSITION;\\n assembly {\\n ds.slot := position\\n }\\n }\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n function setContractOwner(address _newOwner) internal {\\n DiamondStorage storage ds = diamondStorage();\\n address previousOwner = ds.contractOwner;\\n ds.contractOwner = _newOwner;\\n emit OwnershipTransferred(previousOwner, _newOwner);\\n }\\n\\n function contractOwner() internal view returns (address contractOwner_) {\\n contractOwner_ = diamondStorage().contractOwner;\\n }\\n\\n function enforceIsContractOwner() internal view {\\n require(msg.sender == diamondStorage().contractOwner, \\"LibDiamond: Must be contract owner\\");\\n }\\n\\n event DiamondCut(IDiamondCut.FacetCut[] _diamondCut, address _init, bytes _calldata);\\n\\n // Internal function version of diamondCut\\n function diamondCut(\\n IDiamondCut.FacetCut[] memory _diamondCut,\\n address _init,\\n bytes memory _calldata\\n ) internal {\\n for (uint256 facetIndex; facetIndex < _diamondCut.length; facetIndex++) {\\n IDiamondCut.FacetCutAction action = _diamondCut[facetIndex].action;\\n if (action == IDiamondCut.FacetCutAction.Add) {\\n addFunctions(_diamondCut[facetIndex].facetAddress, _diamondCut[facetIndex].functionSelectors);\\n } else if (action == IDiamondCut.FacetCutAction.Replace) {\\n replaceFunctions(_diamondCut[facetIndex].facetAddress, _diamondCut[facetIndex].functionSelectors);\\n } else if (action == IDiamondCut.FacetCutAction.Remove) {\\n removeFunctions(_diamondCut[facetIndex].facetAddress, _diamondCut[facetIndex].functionSelectors);\\n } else {\\n revert(\\"LibDiamondCut: Incorrect FacetCutAction\\");\\n }\\n }\\n emit DiamondCut(_diamondCut, _init, _calldata);\\n initializeDiamondCut(_init, _calldata);\\n }\\n\\n function addFunctions(address _facetAddress, bytes4[] memory _functionSelectors) internal {\\n require(_functionSelectors.length > 0, \\"LibDiamondCut: No selectors in facet to cut\\");\\n DiamondStorage storage ds = diamondStorage(); \\n require(_facetAddress != address(0), \\"LibDiamondCut: Add facet can\'t be address(0)\\");\\n uint96 selectorPosition = uint96(ds.facetFunctionSelectors[_facetAddress].functionSelectors.length);\\n // add new facet address if it does not exist\\n if (selectorPosition == 0) {\\n addFacet(ds, _facetAddress); \\n }\\n for (uint256 selectorIndex; selectorIndex < _functionSelectors.length; selectorIndex++) {\\n bytes4 selector = _functionSelectors[selectorIndex];\\n address oldFacetAddress = ds.selectorToFacetAndPosition[selector].facetAddress;\\n require(oldFacetAddress == address(0), \\"LibDiamondCut: Can\'t add function that already exists\\");\\n addFunction(ds, selector, selectorPosition, _facetAddress);\\n selectorPosition++;\\n }\\n }\\n\\n function replaceFunctions(address _facetAddress, bytes4[] memory _functionSelectors) internal {\\n require(_functionSelectors.length > 0, \\"LibDiamondCut: No selectors in facet to cut\\");\\n DiamondStorage storage ds = diamondStorage();\\n require(_facetAddress != address(0), \\"LibDiamondCut: Add facet can\'t be address(0)\\");\\n uint96 selectorPosition = uint96(ds.facetFunctionSelectors[_facetAddress].functionSelectors.length);\\n // add new facet address if it does not exist\\n if (selectorPosition == 0) {\\n addFacet(ds, _facetAddress);\\n }\\n for (uint256 selectorIndex; selectorIndex < _functionSelectors.length; selectorIndex++) {\\n bytes4 selector = _functionSelectors[selectorIndex];\\n address oldFacetAddress = ds.selectorToFacetAndPosition[selector].facetAddress;\\n require(oldFacetAddress != _facetAddress, \\"LibDiamondCut: Can\'t replace function with same function\\");\\n removeFunction(ds, oldFacetAddress, selector);\\n addFunction(ds, selector, selectorPosition, _facetAddress);\\n selectorPosition++;\\n }\\n }\\n\\n function removeFunctions(address _facetAddress, bytes4[] memory _functionSelectors) internal {\\n require(_functionSelectors.length > 0, \\"LibDiamondCut: No selectors in facet to cut\\");\\n DiamondStorage storage ds = diamondStorage();\\n // if function does not exist then do nothing and return\\n require(_facetAddress == address(0), \\"LibDiamondCut: Remove facet address must be address(0)\\");\\n for (uint256 selectorIndex; selectorIndex < _functionSelectors.length; selectorIndex++) {\\n bytes4 selector = _functionSelectors[selectorIndex];\\n address oldFacetAddress = ds.selectorToFacetAndPosition[selector].facetAddress;\\n removeFunction(ds, oldFacetAddress, selector);\\n }\\n }\\n\\n function addFacet(DiamondStorage storage ds, address _facetAddress) internal {\\n enforceHasContractCode(_facetAddress, \\"LibDiamondCut: New facet has no code\\");\\n ds.facetFunctionSelectors[_facetAddress].facetAddressPosition = ds.facetAddresses.length;\\n ds.facetAddresses.push(_facetAddress);\\n } \\n\\n\\n function addFunction(DiamondStorage storage ds, bytes4 _selector, uint96 _selectorPosition, address _facetAddress) internal {\\n ds.selectorToFacetAndPosition[_selector].functionSelectorPosition = _selectorPosition;\\n ds.facetFunctionSelectors[_facetAddress].functionSelectors.push(_selector);\\n ds.selectorToFacetAndPosition[_selector].facetAddress = _facetAddress;\\n }\\n\\n function removeFunction(DiamondStorage storage ds, address _facetAddress, bytes4 _selector) internal { \\n require(_facetAddress != address(0), \\"LibDiamondCut: Can\'t remove function that doesn\'t exist\\");\\n // an immutable function is a function defined directly in a diamond\\n require(_facetAddress != address(this), \\"LibDiamondCut: Can\'t remove immutable function\\");\\n // replace selector with last selector, then delete last selector\\n uint256 selectorPosition = ds.selectorToFacetAndPosition[_selector].functionSelectorPosition;\\n uint256 lastSelectorPosition = ds.facetFunctionSelectors[_facetAddress].functionSelectors.length - 1;\\n // if not the same then replace _selector with lastSelector\\n if (selectorPosition != lastSelectorPosition) {\\n bytes4 lastSelector = ds.facetFunctionSelectors[_facetAddress].functionSelectors[lastSelectorPosition];\\n ds.facetFunctionSelectors[_facetAddress].functionSelectors[selectorPosition] = lastSelector;\\n ds.selectorToFacetAndPosition[lastSelector].functionSelectorPosition = uint96(selectorPosition);\\n }\\n // delete the last selector\\n ds.facetFunctionSelectors[_facetAddress].functionSelectors.pop();\\n delete ds.selectorToFacetAndPosition[_selector];\\n\\n // if no more selectors for facet address then delete the facet address\\n if (lastSelectorPosition == 0) {\\n // replace facet address with last facet address and delete last facet address\\n uint256 lastFacetAddressPosition = ds.facetAddresses.length - 1;\\n uint256 facetAddressPosition = ds.facetFunctionSelectors[_facetAddress].facetAddressPosition;\\n if (facetAddressPosition != lastFacetAddressPosition) {\\n address lastFacetAddress = ds.facetAddresses[lastFacetAddressPosition];\\n ds.facetAddresses[facetAddressPosition] = lastFacetAddress;\\n ds.facetFunctionSelectors[lastFacetAddress].facetAddressPosition = facetAddressPosition;\\n }\\n ds.facetAddresses.pop();\\n delete ds.facetFunctionSelectors[_facetAddress].facetAddressPosition;\\n }\\n }\\n\\n function initializeDiamondCut(address _init, bytes memory _calldata) internal {\\n if (_init == address(0)) {\\n require(_calldata.length == 0, \\"LibDiamondCut: _init is address(0) but_calldata is not empty\\");\\n } else {\\n require(_calldata.length > 0, \\"LibDiamondCut: _calldata is empty but _init is not address(0)\\");\\n if (_init != address(this)) {\\n enforceHasContractCode(_init, \\"LibDiamondCut: _init address has no code\\");\\n }\\n (bool success, bytes memory error) = _init.delegatecall(_calldata);\\n if (!success) {\\n if (error.length > 0) {\\n // bubble up the error\\n revert(string(error));\\n } else {\\n revert(\\"LibDiamondCut: _init function reverted\\");\\n }\\n }\\n }\\n }\\n\\n function enforceHasContractCode(address _contract, string memory _errorMessage) internal view {\\n uint256 contractSize;\\n assembly {\\n contractSize := extcodesize(_contract)\\n }\\n require(contractSize > 0, _errorMessage);\\n }\\n}\\n"\n },\n "solc_0.8/diamond/interfaces/IDiamondCut.sol": {\n "content": "// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/******************************************************************************\\\\\\n* Author: Nick Mudge <nick@perfectabstractions.com> (https://twitter.com/mudgen)\\n* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535\\n/******************************************************************************/\\n\\ninterface IDiamondCut {\\n enum FacetCutAction {Add, Replace, Remove}\\n // Add=0, Replace=1, Remove=2\\n\\n struct FacetCut {\\n address facetAddress;\\n FacetCutAction action;\\n bytes4[] functionSelectors;\\n }\\n\\n /// @notice Add/replace/remove any number of functions and optionally execute\\n /// a function with delegatecall\\n /// @param _diamondCut Contains the facet addresses and function selectors\\n /// @param _init The address of the contract or facet to execute _calldata\\n /// @param _calldata A function call, including function selector and arguments\\n /// _calldata is executed with delegatecall on _init\\n function diamondCut(\\n FacetCut[] calldata _diamondCut,\\n address _init,\\n bytes calldata _calldata\\n ) external;\\n\\n event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata);\\n}\\n"\n },\n "solc_0.8/diamond/facets/DiamondCutFacet.sol": {\n "content": "// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/******************************************************************************\\\\\\n* Author: Nick Mudge <nick@perfectabstractions.com> (https://twitter.com/mudgen)\\n* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535\\n/******************************************************************************/\\n\\nimport { IDiamondCut } from \\"../interfaces/IDiamondCut.sol\\";\\nimport { LibDiamond } from \\"../libraries/LibDiamond.sol\\";\\n\\ncontract DiamondCutFacet is IDiamondCut {\\n /// @notice Add/replace/remove any number of functions and optionally execute\\n /// a function with delegatecall\\n /// @param _diamondCut Contains the facet addresses and function selectors\\n /// @param _init The address of the contract or facet to execute _calldata\\n /// @param _calldata A function call, including function selector and arguments\\n /// _calldata is executed with delegatecall on _init\\n function diamondCut(\\n FacetCut[] calldata _diamondCut,\\n address _init,\\n bytes calldata _calldata\\n ) external override {\\n LibDiamond.enforceIsContractOwner();\\n LibDiamond.diamondCut(_diamondCut, _init, _calldata);\\n }\\n}\\n"\n },\n "solc_0.8/diamond/UsingDiamondOwner.sol": {\n "content": "// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\"./libraries/LibDiamond.sol\\";\\n\\ncontract UsingDiamondOwner {\\n modifier onlyOwner() {\\n LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();\\n require(msg.sender == ds.contractOwner, \\"Only owner is allowed to perform this action\\");\\n _;\\n }\\n}\\n"\n },\n "solc_0.8/diamond/initializers/DiamondERC165Init.sol": {\n "content": "// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {LibDiamond} from \\"../libraries/LibDiamond.sol\\";\\nimport {IERC165} from \\"../interfaces/IERC165.sol\\";\\n\\ncontract DiamondERC165Init {\\n /// @notice set or unset ERC165 using DiamondStorage.supportedInterfaces\\n /// @param interfaceIds list of interface id to set as supported\\n /// @param interfaceIdsToRemove list of interface id to unset as supported.\\n /// Technically, you can remove support of ERC165 by having the IERC165 id itself being part of that array.\\n function setERC165(bytes4[] calldata interfaceIds, bytes4[] calldata interfaceIdsToRemove) external {\\n LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();\\n\\n ds.supportedInterfaces[type(IERC165).interfaceId] = true;\\n\\n for (uint256 i = 0; i < interfaceIds.length; i++) {\\n ds.supportedInterfaces[interfaceIds[i]] = true;\\n }\\n\\n for (uint256 i = 0; i < interfaceIdsToRemove.length; i++) {\\n ds.supportedInterfaces[interfaceIdsToRemove[i]] = false;\\n }\\n }\\n}\\n"\n },\n "solc_0.8/diamond/interfaces/IERC165.sol": {\n "content": "// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IERC165 {\\n /// @notice Query if a contract implements an interface\\n /// @param interfaceId The interface identifier, as specified in ERC-165\\n /// @dev Interface identification is specified in ERC-165. This function\\n /// uses less than 30,000 gas.\\n /// @return `true` if the contract implements `interfaceID` and\\n /// `interfaceID` is not 0xffffffff, `false` otherwise\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n"\n },\n "solc_0.8/diamond/facets/DiamondLoupeFacet.sol": {\n "content": "// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n/******************************************************************************\\\\\\n* Author: Nick Mudge <nick@perfectabstractions.com> (https://twitter.com/mudgen)\\n* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535\\n/******************************************************************************/\\n\\nimport { LibDiamond } from \\"../libraries/LibDiamond.sol\\";\\nimport { IDiamondLoupe } from \\"../interfaces/IDiamondLoupe.sol\\";\\nimport { IERC165 } from \\"../interfaces/IERC165.sol\\";\\n\\ncontract DiamondLoupeFacet is IDiamondLoupe, IERC165 {\\n // Diamond Loupe Functions\\n ////////////////////////////////////////////////////////////////////\\n /// These functions are expected to be called frequently by tools.\\n //\\n // struct Facet {\\n // address facetAddress;\\n // bytes4[] functionSelectors;\\n // }\\n\\n /// @notice Gets all facets and their selectors.\\n /// @return facets_ Facet\\n function facets() external override view returns (Facet[] memory facets_) {\\n LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();\\n uint256 numFacets = ds.facetAddresses.length;\\n facets_ = new Facet[](numFacets);\\n for (uint256 i; i < numFacets; i++) {\\n address facetAddress_ = ds.facetAddresses[i];\\n facets_[i].facetAddress = facetAddress_;\\n facets_[i].functionSelectors = ds.facetFunctionSelectors[facetAddress_].functionSelectors;\\n }\\n }\\n\\n /// @notice Gets all the function selectors provided by a facet.\\n /// @param _facet The facet address.\\n /// @return facetFunctionSelectors_\\n function facetFunctionSelectors(address _facet) external override view returns (bytes4[] memory facetFunctionSelectors_) {\\n LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();\\n facetFunctionSelectors_ = ds.facetFunctionSelectors[_facet].functionSelectors;\\n }\\n\\n /// @notice Get all the facet addresses used by a diamond.\\n /// @return facetAddresses_\\n function facetAddresses() external override view returns (address[] memory facetAddresses_) {\\n LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();\\n facetAddresses_ = ds.facetAddresses;\\n }\\n\\n /// @notice Gets the facet that supports the given selector.\\n /// @dev If facet is not found return address(0).\\n /// @param _functionSelector The function selector.\\n /// @return facetAddress_ The facet address.\\n function facetAddress(bytes4 _functionSelector) external override view returns (address facetAddress_) {\\n LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();\\n facetAddress_ = ds.selectorToFacetAndPosition[_functionSelector].facetAddress;\\n }\\n\\n // This implements ERC-165.\\n function supportsInterface(bytes4 _interfaceId) external override view returns (bool) {\\n LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();\\n return ds.supportedInterfaces[_interfaceId];\\n }\\n}\\n"\n },\n "solc_0.8/diamond/interfaces/IDiamondLoupe.sol": {\n "content": "// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/******************************************************************************\\\\\\n* Author: Nick Mudge <nick@perfectabstractions.com> (https://twitter.com/mudgen)\\n* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535\\n/******************************************************************************/\\n\\n// A loupe is a small magnifying glass used to look at diamonds.\\n// These functions look at diamonds\\ninterface IDiamondLoupe {\\n /// These functions are expected to be called frequently\\n /// by tools.\\n\\n struct Facet {\\n address facetAddress;\\n bytes4[] functionSelectors;\\n }\\n\\n /// @notice Gets all facet addresses and their four byte function selectors.\\n /// @return facets_ Facet\\n function facets() external view returns (Facet[] memory facets_);\\n\\n /// @notice Gets all the function selectors supported by a specific facet.\\n /// @param _facet The facet address.\\n /// @return facetFunctionSelectors_\\n function facetFunctionSelectors(address _facet) external view returns (bytes4[] memory facetFunctionSelectors_);\\n\\n /// @notice Get all the facet addresses used by a diamond.\\n /// @return facetAddresses_\\n function facetAddresses() external view returns (address[] memory facetAddresses_);\\n\\n /// @notice Gets the facet that supports the given selector.\\n /// @dev If facet is not found return address(0).\\n /// @param _functionSelector The function selector.\\n /// @return facetAddress_ The facet address.\\n function facetAddress(bytes4 _functionSelector) external view returns (address facetAddress_);\\n}\\n"\n },\n "solc_0.8/diamond/facets/DiamondLoupeFacetWithoutSupportsInterface.sol": {\n "content": "// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n/******************************************************************************\\\\\\n* Author: Nick Mudge <nick@perfectabstractions.com> (https://twitter.com/mudgen)\\n* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535\\n/******************************************************************************/\\n\\nimport {LibDiamond} from \\"../libraries/LibDiamond.sol\\";\\nimport {IDiamondLoupe} from \\"../interfaces/IDiamondLoupe.sol\\";\\n\\ncontract DiamondLoupeFacetWithoutSupportsInterface is IDiamondLoupe {\\n // Diamond Loupe Functions\\n ////////////////////////////////////////////////////////////////////\\n /// These functions are expected to be called frequently by tools.\\n //\\n // struct Facet {\\n // address facetAddress;\\n // bytes4[] functionSelectors;\\n // }\\n\\n /// @notice Gets all facets and their selectors.\\n /// @return facets_ Facet\\n function facets() external view override returns (Facet[] memory facets_) {\\n LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();\\n uint256 numFacets = ds.facetAddresses.length;\\n facets_ = new Facet[](numFacets);\\n for (uint256 i; i < numFacets; i++) {\\n address facetAddress_ = ds.facetAddresses[i];\\n facets_[i].facetAddress = facetAddress_;\\n facets_[i].functionSelectors = ds.facetFunctionSelectors[facetAddress_].functionSelectors;\\n }\\n }\\n\\n /// @notice Gets all the function selectors provided by a facet.\\n /// @param _facet The facet address.\\n /// @return facetFunctionSelectors_\\n function facetFunctionSelectors(address _facet) external view override returns (bytes4[] memory facetFunctionSelectors_) {\\n LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();\\n facetFunctionSelectors_ = ds.facetFunctionSelectors[_facet].functionSelectors;\\n }\\n\\n /// @notice Get all the facet addresses used by a diamond.\\n /// @return facetAddresses_\\n function facetAddresses() external view override returns (address[] memory facetAddresses_) {\\n LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();\\n facetAddresses_ = ds.facetAddresses;\\n }\\n\\n /// @notice Gets the facet that supports the given selector.\\n /// @dev If facet is not found return address(0).\\n /// @param _functionSelector The function selector.\\n /// @return facetAddress_ The facet address.\\n function facetAddress(bytes4 _functionSelector) external view override returns (address facetAddress_) {\\n LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();\\n facetAddress_ = ds.selectorToFacetAndPosition[_functionSelector].facetAddress;\\n }\\n}\\n"\n },\n "solc_0.8/diamond/facets/OwnershipFacet.sol": {\n "content": "// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { LibDiamond } from \\"../libraries/LibDiamond.sol\\";\\nimport { IERC173 } from \\"../interfaces/IERC173.sol\\";\\n\\ncontract OwnershipFacet is IERC173 {\\n function transferOwnership(address _newOwner) external override {\\n LibDiamond.enforceIsContractOwner();\\n LibDiamond.setContractOwner(_newOwner);\\n }\\n\\n function owner() external override view returns (address owner_) {\\n owner_ = LibDiamond.contractOwner();\\n }\\n}\\n"\n },\n "solc_0.8/diamond/interfaces/IERC173.sol": {\n "content": "// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title ERC-173 Contract Ownership Standard\\n/// Note: the ERC-165 identifier for this interface is 0x7f5828d0\\n/* is ERC165 */\\ninterface IERC173 {\\n /// @dev This emits when ownership of a contract changes.\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /// @notice Get the address of the owner\\n /// @return owner_ The address of the owner.\\n function owner() external view returns (address owner_);\\n\\n /// @notice Set the address of the new owner of the contract\\n /// @dev Set _newOwner to address(0) to renounce any ownership.\\n /// @param _newOwner The address of the new owner of the contract\\n function transferOwnership(address _newOwner) external;\\n}\\n"\n }\n },\n "settings": {\n "optimizer": {\n "enabled": true,\n "runs": 999999\n },\n "outputSelection": {\n "*": {\n "*": [\n "abi",\n "evm.bytecode",\n "evm.deployedBytecode",\n "evm.methodIdentifiers",\n "metadata",\n "devdoc",\n "userdoc",\n "storageLayout",\n "evm.gasEstimates"\n ],\n "": [\n "ast"\n ]\n }\n },\n "metadata": {\n "useLiteralContent": true\n }\n }\n}',
1558
+ solcInputHash: '3fe12e823553336a8d0f950a5a792ac9',
1559
+ } as const;