@velocitycareerlabs/metadata-registry-contract 1.25.0-dev-build.12642c864

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,1104 @@
1
+ {
2
+ "contractName": "Migrations",
3
+ "abi": [
4
+ {
5
+ "inputs": [],
6
+ "name": "last_completed_migration",
7
+ "outputs": [
8
+ {
9
+ "internalType": "uint256",
10
+ "name": "",
11
+ "type": "uint256"
12
+ }
13
+ ],
14
+ "stateMutability": "view",
15
+ "type": "function",
16
+ "constant": true
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "owner",
21
+ "outputs": [
22
+ {
23
+ "internalType": "address",
24
+ "name": "",
25
+ "type": "address"
26
+ }
27
+ ],
28
+ "stateMutability": "view",
29
+ "type": "function",
30
+ "constant": true
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "uint256",
36
+ "name": "completed",
37
+ "type": "uint256"
38
+ }
39
+ ],
40
+ "name": "setCompleted",
41
+ "outputs": [],
42
+ "stateMutability": "nonpayable",
43
+ "type": "function"
44
+ }
45
+ ],
46
+ "metadata": "{\"compiler\":{\"version\":\"0.8.4+commit.c7e474f2\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"last_completed_migration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"completed\",\"type\":\"uint256\"}],\"name\":\"setCompleted\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/Migrations.sol\":\"Migrations\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/Migrations.sol\":{\"keccak256\":\"0x392bc8bebb839caafa05737bb5266407a2e8d09bfab90260426497be307f430c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d1caf66fde46d34bc2ba16fcb3047a734aebe3994f8fad23b1087237e5ba42b3\",\"dweb:/ipfs/QmZxZo6A3iQKDyY8dQy7NytTdmo1JfrjJ16bvRvtAdVk8T\"]}},\"version\":1}",
47
+ "bytecode": "0x6080604052600080546001600160a01b0319163317905534801561002257600080fd5b5061016f806100326000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063445df0ac146100465780638da5cb5b14610062578063fdacd5761461008d575b600080fd5b61004f60015481565b6040519081526020015b60405180910390f35b600054610075906001600160a01b031681565b6040516001600160a01b039091168152602001610059565b6100a061009b366004610121565b6100a2565b005b6000546001600160a01b0316331461011c5760405162461bcd60e51b815260206004820152603360248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201527234329031b7b73a3930b1ba13b99037bbb732b960691b606482015260840160405180910390fd5b600155565b600060208284031215610132578081fd5b503591905056fea2646970667358221220bfe454fb272d6bb3c08fb108a8c65411829a5eddc65196f4f3d821da2dd6cd4364736f6c63430008040033",
48
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063445df0ac146100465780638da5cb5b14610062578063fdacd5761461008d575b600080fd5b61004f60015481565b6040519081526020015b60405180910390f35b600054610075906001600160a01b031681565b6040516001600160a01b039091168152602001610059565b6100a061009b366004610121565b6100a2565b005b6000546001600160a01b0316331461011c5760405162461bcd60e51b815260206004820152603360248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201527234329031b7b73a3930b1ba13b99037bbb732b960691b606482015260840160405180910390fd5b600155565b600060208284031215610132578081fd5b503591905056fea2646970667358221220bfe454fb272d6bb3c08fb108a8c65411829a5eddc65196f4f3d821da2dd6cd4364736f6c63430008040033",
49
+ "immutableReferences": {},
50
+ "generatedSources": [],
51
+ "deployedGeneratedSources": [
52
+ {
53
+ "ast": {
54
+ "nodeType": "YulBlock",
55
+ "src": "0:1016:23",
56
+ "statements": [
57
+ {
58
+ "nodeType": "YulBlock",
59
+ "src": "6:3:23",
60
+ "statements": []
61
+ },
62
+ {
63
+ "body": {
64
+ "nodeType": "YulBlock",
65
+ "src": "84:120:23",
66
+ "statements": [
67
+ {
68
+ "body": {
69
+ "nodeType": "YulBlock",
70
+ "src": "130:26:23",
71
+ "statements": [
72
+ {
73
+ "expression": {
74
+ "arguments": [
75
+ {
76
+ "name": "value0",
77
+ "nodeType": "YulIdentifier",
78
+ "src": "139:6:23"
79
+ },
80
+ {
81
+ "name": "value0",
82
+ "nodeType": "YulIdentifier",
83
+ "src": "147:6:23"
84
+ }
85
+ ],
86
+ "functionName": {
87
+ "name": "revert",
88
+ "nodeType": "YulIdentifier",
89
+ "src": "132:6:23"
90
+ },
91
+ "nodeType": "YulFunctionCall",
92
+ "src": "132:22:23"
93
+ },
94
+ "nodeType": "YulExpressionStatement",
95
+ "src": "132:22:23"
96
+ }
97
+ ]
98
+ },
99
+ "condition": {
100
+ "arguments": [
101
+ {
102
+ "arguments": [
103
+ {
104
+ "name": "dataEnd",
105
+ "nodeType": "YulIdentifier",
106
+ "src": "105:7:23"
107
+ },
108
+ {
109
+ "name": "headStart",
110
+ "nodeType": "YulIdentifier",
111
+ "src": "114:9:23"
112
+ }
113
+ ],
114
+ "functionName": {
115
+ "name": "sub",
116
+ "nodeType": "YulIdentifier",
117
+ "src": "101:3:23"
118
+ },
119
+ "nodeType": "YulFunctionCall",
120
+ "src": "101:23:23"
121
+ },
122
+ {
123
+ "kind": "number",
124
+ "nodeType": "YulLiteral",
125
+ "src": "126:2:23",
126
+ "type": "",
127
+ "value": "32"
128
+ }
129
+ ],
130
+ "functionName": {
131
+ "name": "slt",
132
+ "nodeType": "YulIdentifier",
133
+ "src": "97:3:23"
134
+ },
135
+ "nodeType": "YulFunctionCall",
136
+ "src": "97:32:23"
137
+ },
138
+ "nodeType": "YulIf",
139
+ "src": "94:2:23"
140
+ },
141
+ {
142
+ "nodeType": "YulAssignment",
143
+ "src": "165:33:23",
144
+ "value": {
145
+ "arguments": [
146
+ {
147
+ "name": "headStart",
148
+ "nodeType": "YulIdentifier",
149
+ "src": "188:9:23"
150
+ }
151
+ ],
152
+ "functionName": {
153
+ "name": "calldataload",
154
+ "nodeType": "YulIdentifier",
155
+ "src": "175:12:23"
156
+ },
157
+ "nodeType": "YulFunctionCall",
158
+ "src": "175:23:23"
159
+ },
160
+ "variableNames": [
161
+ {
162
+ "name": "value0",
163
+ "nodeType": "YulIdentifier",
164
+ "src": "165:6:23"
165
+ }
166
+ ]
167
+ }
168
+ ]
169
+ },
170
+ "name": "abi_decode_tuple_t_uint256",
171
+ "nodeType": "YulFunctionDefinition",
172
+ "parameters": [
173
+ {
174
+ "name": "headStart",
175
+ "nodeType": "YulTypedName",
176
+ "src": "50:9:23",
177
+ "type": ""
178
+ },
179
+ {
180
+ "name": "dataEnd",
181
+ "nodeType": "YulTypedName",
182
+ "src": "61:7:23",
183
+ "type": ""
184
+ }
185
+ ],
186
+ "returnVariables": [
187
+ {
188
+ "name": "value0",
189
+ "nodeType": "YulTypedName",
190
+ "src": "73:6:23",
191
+ "type": ""
192
+ }
193
+ ],
194
+ "src": "14:190:23"
195
+ },
196
+ {
197
+ "body": {
198
+ "nodeType": "YulBlock",
199
+ "src": "310:102:23",
200
+ "statements": [
201
+ {
202
+ "nodeType": "YulAssignment",
203
+ "src": "320:26:23",
204
+ "value": {
205
+ "arguments": [
206
+ {
207
+ "name": "headStart",
208
+ "nodeType": "YulIdentifier",
209
+ "src": "332:9:23"
210
+ },
211
+ {
212
+ "kind": "number",
213
+ "nodeType": "YulLiteral",
214
+ "src": "343:2:23",
215
+ "type": "",
216
+ "value": "32"
217
+ }
218
+ ],
219
+ "functionName": {
220
+ "name": "add",
221
+ "nodeType": "YulIdentifier",
222
+ "src": "328:3:23"
223
+ },
224
+ "nodeType": "YulFunctionCall",
225
+ "src": "328:18:23"
226
+ },
227
+ "variableNames": [
228
+ {
229
+ "name": "tail",
230
+ "nodeType": "YulIdentifier",
231
+ "src": "320:4:23"
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "expression": {
237
+ "arguments": [
238
+ {
239
+ "name": "headStart",
240
+ "nodeType": "YulIdentifier",
241
+ "src": "362:9:23"
242
+ },
243
+ {
244
+ "arguments": [
245
+ {
246
+ "name": "value0",
247
+ "nodeType": "YulIdentifier",
248
+ "src": "377:6:23"
249
+ },
250
+ {
251
+ "arguments": [
252
+ {
253
+ "arguments": [
254
+ {
255
+ "kind": "number",
256
+ "nodeType": "YulLiteral",
257
+ "src": "393:3:23",
258
+ "type": "",
259
+ "value": "160"
260
+ },
261
+ {
262
+ "kind": "number",
263
+ "nodeType": "YulLiteral",
264
+ "src": "398:1:23",
265
+ "type": "",
266
+ "value": "1"
267
+ }
268
+ ],
269
+ "functionName": {
270
+ "name": "shl",
271
+ "nodeType": "YulIdentifier",
272
+ "src": "389:3:23"
273
+ },
274
+ "nodeType": "YulFunctionCall",
275
+ "src": "389:11:23"
276
+ },
277
+ {
278
+ "kind": "number",
279
+ "nodeType": "YulLiteral",
280
+ "src": "402:1:23",
281
+ "type": "",
282
+ "value": "1"
283
+ }
284
+ ],
285
+ "functionName": {
286
+ "name": "sub",
287
+ "nodeType": "YulIdentifier",
288
+ "src": "385:3:23"
289
+ },
290
+ "nodeType": "YulFunctionCall",
291
+ "src": "385:19:23"
292
+ }
293
+ ],
294
+ "functionName": {
295
+ "name": "and",
296
+ "nodeType": "YulIdentifier",
297
+ "src": "373:3:23"
298
+ },
299
+ "nodeType": "YulFunctionCall",
300
+ "src": "373:32:23"
301
+ }
302
+ ],
303
+ "functionName": {
304
+ "name": "mstore",
305
+ "nodeType": "YulIdentifier",
306
+ "src": "355:6:23"
307
+ },
308
+ "nodeType": "YulFunctionCall",
309
+ "src": "355:51:23"
310
+ },
311
+ "nodeType": "YulExpressionStatement",
312
+ "src": "355:51:23"
313
+ }
314
+ ]
315
+ },
316
+ "name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
317
+ "nodeType": "YulFunctionDefinition",
318
+ "parameters": [
319
+ {
320
+ "name": "headStart",
321
+ "nodeType": "YulTypedName",
322
+ "src": "279:9:23",
323
+ "type": ""
324
+ },
325
+ {
326
+ "name": "value0",
327
+ "nodeType": "YulTypedName",
328
+ "src": "290:6:23",
329
+ "type": ""
330
+ }
331
+ ],
332
+ "returnVariables": [
333
+ {
334
+ "name": "tail",
335
+ "nodeType": "YulTypedName",
336
+ "src": "301:4:23",
337
+ "type": ""
338
+ }
339
+ ],
340
+ "src": "209:203:23"
341
+ },
342
+ {
343
+ "body": {
344
+ "nodeType": "YulBlock",
345
+ "src": "591:241:23",
346
+ "statements": [
347
+ {
348
+ "expression": {
349
+ "arguments": [
350
+ {
351
+ "name": "headStart",
352
+ "nodeType": "YulIdentifier",
353
+ "src": "608:9:23"
354
+ },
355
+ {
356
+ "kind": "number",
357
+ "nodeType": "YulLiteral",
358
+ "src": "619:2:23",
359
+ "type": "",
360
+ "value": "32"
361
+ }
362
+ ],
363
+ "functionName": {
364
+ "name": "mstore",
365
+ "nodeType": "YulIdentifier",
366
+ "src": "601:6:23"
367
+ },
368
+ "nodeType": "YulFunctionCall",
369
+ "src": "601:21:23"
370
+ },
371
+ "nodeType": "YulExpressionStatement",
372
+ "src": "601:21:23"
373
+ },
374
+ {
375
+ "expression": {
376
+ "arguments": [
377
+ {
378
+ "arguments": [
379
+ {
380
+ "name": "headStart",
381
+ "nodeType": "YulIdentifier",
382
+ "src": "642:9:23"
383
+ },
384
+ {
385
+ "kind": "number",
386
+ "nodeType": "YulLiteral",
387
+ "src": "653:2:23",
388
+ "type": "",
389
+ "value": "32"
390
+ }
391
+ ],
392
+ "functionName": {
393
+ "name": "add",
394
+ "nodeType": "YulIdentifier",
395
+ "src": "638:3:23"
396
+ },
397
+ "nodeType": "YulFunctionCall",
398
+ "src": "638:18:23"
399
+ },
400
+ {
401
+ "kind": "number",
402
+ "nodeType": "YulLiteral",
403
+ "src": "658:2:23",
404
+ "type": "",
405
+ "value": "51"
406
+ }
407
+ ],
408
+ "functionName": {
409
+ "name": "mstore",
410
+ "nodeType": "YulIdentifier",
411
+ "src": "631:6:23"
412
+ },
413
+ "nodeType": "YulFunctionCall",
414
+ "src": "631:30:23"
415
+ },
416
+ "nodeType": "YulExpressionStatement",
417
+ "src": "631:30:23"
418
+ },
419
+ {
420
+ "expression": {
421
+ "arguments": [
422
+ {
423
+ "arguments": [
424
+ {
425
+ "name": "headStart",
426
+ "nodeType": "YulIdentifier",
427
+ "src": "681:9:23"
428
+ },
429
+ {
430
+ "kind": "number",
431
+ "nodeType": "YulLiteral",
432
+ "src": "692:2:23",
433
+ "type": "",
434
+ "value": "64"
435
+ }
436
+ ],
437
+ "functionName": {
438
+ "name": "add",
439
+ "nodeType": "YulIdentifier",
440
+ "src": "677:3:23"
441
+ },
442
+ "nodeType": "YulFunctionCall",
443
+ "src": "677:18:23"
444
+ },
445
+ {
446
+ "kind": "string",
447
+ "nodeType": "YulLiteral",
448
+ "src": "697:34:23",
449
+ "type": "",
450
+ "value": "This function is restricted to t"
451
+ }
452
+ ],
453
+ "functionName": {
454
+ "name": "mstore",
455
+ "nodeType": "YulIdentifier",
456
+ "src": "670:6:23"
457
+ },
458
+ "nodeType": "YulFunctionCall",
459
+ "src": "670:62:23"
460
+ },
461
+ "nodeType": "YulExpressionStatement",
462
+ "src": "670:62:23"
463
+ },
464
+ {
465
+ "expression": {
466
+ "arguments": [
467
+ {
468
+ "arguments": [
469
+ {
470
+ "name": "headStart",
471
+ "nodeType": "YulIdentifier",
472
+ "src": "752:9:23"
473
+ },
474
+ {
475
+ "kind": "number",
476
+ "nodeType": "YulLiteral",
477
+ "src": "763:2:23",
478
+ "type": "",
479
+ "value": "96"
480
+ }
481
+ ],
482
+ "functionName": {
483
+ "name": "add",
484
+ "nodeType": "YulIdentifier",
485
+ "src": "748:3:23"
486
+ },
487
+ "nodeType": "YulFunctionCall",
488
+ "src": "748:18:23"
489
+ },
490
+ {
491
+ "kind": "string",
492
+ "nodeType": "YulLiteral",
493
+ "src": "768:21:23",
494
+ "type": "",
495
+ "value": "he contract's owner"
496
+ }
497
+ ],
498
+ "functionName": {
499
+ "name": "mstore",
500
+ "nodeType": "YulIdentifier",
501
+ "src": "741:6:23"
502
+ },
503
+ "nodeType": "YulFunctionCall",
504
+ "src": "741:49:23"
505
+ },
506
+ "nodeType": "YulExpressionStatement",
507
+ "src": "741:49:23"
508
+ },
509
+ {
510
+ "nodeType": "YulAssignment",
511
+ "src": "799:27:23",
512
+ "value": {
513
+ "arguments": [
514
+ {
515
+ "name": "headStart",
516
+ "nodeType": "YulIdentifier",
517
+ "src": "811:9:23"
518
+ },
519
+ {
520
+ "kind": "number",
521
+ "nodeType": "YulLiteral",
522
+ "src": "822:3:23",
523
+ "type": "",
524
+ "value": "128"
525
+ }
526
+ ],
527
+ "functionName": {
528
+ "name": "add",
529
+ "nodeType": "YulIdentifier",
530
+ "src": "807:3:23"
531
+ },
532
+ "nodeType": "YulFunctionCall",
533
+ "src": "807:19:23"
534
+ },
535
+ "variableNames": [
536
+ {
537
+ "name": "tail",
538
+ "nodeType": "YulIdentifier",
539
+ "src": "799:4:23"
540
+ }
541
+ ]
542
+ }
543
+ ]
544
+ },
545
+ "name": "abi_encode_tuple_t_stringliteral_f60fe2d9d123295bf92ecf95167f1fa709e374da35e4c083bd39dc2d82acd8b1__to_t_string_memory_ptr__fromStack_reversed",
546
+ "nodeType": "YulFunctionDefinition",
547
+ "parameters": [
548
+ {
549
+ "name": "headStart",
550
+ "nodeType": "YulTypedName",
551
+ "src": "568:9:23",
552
+ "type": ""
553
+ }
554
+ ],
555
+ "returnVariables": [
556
+ {
557
+ "name": "tail",
558
+ "nodeType": "YulTypedName",
559
+ "src": "582:4:23",
560
+ "type": ""
561
+ }
562
+ ],
563
+ "src": "417:415:23"
564
+ },
565
+ {
566
+ "body": {
567
+ "nodeType": "YulBlock",
568
+ "src": "938:76:23",
569
+ "statements": [
570
+ {
571
+ "nodeType": "YulAssignment",
572
+ "src": "948:26:23",
573
+ "value": {
574
+ "arguments": [
575
+ {
576
+ "name": "headStart",
577
+ "nodeType": "YulIdentifier",
578
+ "src": "960:9:23"
579
+ },
580
+ {
581
+ "kind": "number",
582
+ "nodeType": "YulLiteral",
583
+ "src": "971:2:23",
584
+ "type": "",
585
+ "value": "32"
586
+ }
587
+ ],
588
+ "functionName": {
589
+ "name": "add",
590
+ "nodeType": "YulIdentifier",
591
+ "src": "956:3:23"
592
+ },
593
+ "nodeType": "YulFunctionCall",
594
+ "src": "956:18:23"
595
+ },
596
+ "variableNames": [
597
+ {
598
+ "name": "tail",
599
+ "nodeType": "YulIdentifier",
600
+ "src": "948:4:23"
601
+ }
602
+ ]
603
+ },
604
+ {
605
+ "expression": {
606
+ "arguments": [
607
+ {
608
+ "name": "headStart",
609
+ "nodeType": "YulIdentifier",
610
+ "src": "990:9:23"
611
+ },
612
+ {
613
+ "name": "value0",
614
+ "nodeType": "YulIdentifier",
615
+ "src": "1001:6:23"
616
+ }
617
+ ],
618
+ "functionName": {
619
+ "name": "mstore",
620
+ "nodeType": "YulIdentifier",
621
+ "src": "983:6:23"
622
+ },
623
+ "nodeType": "YulFunctionCall",
624
+ "src": "983:25:23"
625
+ },
626
+ "nodeType": "YulExpressionStatement",
627
+ "src": "983:25:23"
628
+ }
629
+ ]
630
+ },
631
+ "name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
632
+ "nodeType": "YulFunctionDefinition",
633
+ "parameters": [
634
+ {
635
+ "name": "headStart",
636
+ "nodeType": "YulTypedName",
637
+ "src": "907:9:23",
638
+ "type": ""
639
+ },
640
+ {
641
+ "name": "value0",
642
+ "nodeType": "YulTypedName",
643
+ "src": "918:6:23",
644
+ "type": ""
645
+ }
646
+ ],
647
+ "returnVariables": [
648
+ {
649
+ "name": "tail",
650
+ "nodeType": "YulTypedName",
651
+ "src": "929:4:23",
652
+ "type": ""
653
+ }
654
+ ],
655
+ "src": "837:177:23"
656
+ }
657
+ ]
658
+ },
659
+ "contents": "{\n { }\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n value0 := calldataload(headStart)\n }\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n function abi_encode_tuple_t_stringliteral_f60fe2d9d123295bf92ecf95167f1fa709e374da35e4c083bd39dc2d82acd8b1__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 51)\n mstore(add(headStart, 64), \"This function is restricted to t\")\n mstore(add(headStart, 96), \"he contract's owner\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, value0)\n }\n}",
660
+ "id": 23,
661
+ "language": "Yul",
662
+ "name": "#utility.yul"
663
+ }
664
+ ],
665
+ "sourceMap": "56:352:22:-:0;;;80:33;;;-1:-1:-1;;;;;;80:33:22;103:10;80:33;;;56:352;;;;;;;;;;;;;;;;",
666
+ "deployedSourceMap": "56:352:22:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;117:36;;;;;;;;;983:25:23;;;971:2;956:18;117:36:22;;;;;;;;80:33;;;;;-1:-1:-1;;;;;80:33:22;;;;;;-1:-1:-1;;;;;373:32:23;;;355:51;;343:2;328:18;80:33:22;310:102:23;303:103:22;;;;;;:::i;:::-;;:::i;:::-;;;215:5;;-1:-1:-1;;;;;215:5:22;201:10;:19;186:101;;;;-1:-1:-1;;;186:101:22;;619:2:23;186:101:22;;;601:21:23;658:2;638:18;;;631:30;697:34;677:18;;;670:62;-1:-1:-1;;;748:18:23;;;741:49;807:19;;186:101:22;;;;;;;;365:24:::1;:36:::0;303:103::o;14:190:23:-;73:6;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;-1:-1:-1;175:23:23;;84:120;-1:-1:-1;84:120:23:o",
667
+ "source": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.4;\n\ncontract Migrations {\n address public owner = msg.sender;\n uint public last_completed_migration;\n\n modifier restricted() {\n require(\n msg.sender == owner,\n \"This function is restricted to the contract's owner\"\n );\n _;\n }\n\n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n}\n",
668
+ "sourcePath": "/Users/nassan/s/vclworld/monorepo/contracts/metadata-registry/contracts/Migrations.sol",
669
+ "ast": {
670
+ "absolutePath": "project:/contracts/Migrations.sol",
671
+ "exportedSymbols": {
672
+ "Migrations": [
673
+ 7447
674
+ ]
675
+ },
676
+ "id": 7448,
677
+ "license": "MIT",
678
+ "nodeType": "SourceUnit",
679
+ "nodes": [
680
+ {
681
+ "id": 7416,
682
+ "literals": [
683
+ "solidity",
684
+ "0.8",
685
+ ".4"
686
+ ],
687
+ "nodeType": "PragmaDirective",
688
+ "src": "32:22:22"
689
+ },
690
+ {
691
+ "abstract": false,
692
+ "baseContracts": [],
693
+ "contractDependencies": [],
694
+ "contractKind": "contract",
695
+ "fullyImplemented": true,
696
+ "id": 7447,
697
+ "linearizedBaseContracts": [
698
+ 7447
699
+ ],
700
+ "name": "Migrations",
701
+ "nameLocation": "65:10:22",
702
+ "nodeType": "ContractDefinition",
703
+ "nodes": [
704
+ {
705
+ "constant": false,
706
+ "functionSelector": "8da5cb5b",
707
+ "id": 7420,
708
+ "mutability": "mutable",
709
+ "name": "owner",
710
+ "nameLocation": "95:5:22",
711
+ "nodeType": "VariableDeclaration",
712
+ "scope": 7447,
713
+ "src": "80:33:22",
714
+ "stateVariable": true,
715
+ "storageLocation": "default",
716
+ "typeDescriptions": {
717
+ "typeIdentifier": "t_address",
718
+ "typeString": "address"
719
+ },
720
+ "typeName": {
721
+ "id": 7417,
722
+ "name": "address",
723
+ "nodeType": "ElementaryTypeName",
724
+ "src": "80:7:22",
725
+ "stateMutability": "nonpayable",
726
+ "typeDescriptions": {
727
+ "typeIdentifier": "t_address",
728
+ "typeString": "address"
729
+ }
730
+ },
731
+ "value": {
732
+ "expression": {
733
+ "id": 7418,
734
+ "name": "msg",
735
+ "nodeType": "Identifier",
736
+ "overloadedDeclarations": [],
737
+ "referencedDeclaration": 4294967281,
738
+ "src": "103:3:22",
739
+ "typeDescriptions": {
740
+ "typeIdentifier": "t_magic_message",
741
+ "typeString": "msg"
742
+ }
743
+ },
744
+ "id": 7419,
745
+ "isConstant": false,
746
+ "isLValue": false,
747
+ "isPure": false,
748
+ "lValueRequested": false,
749
+ "memberName": "sender",
750
+ "nodeType": "MemberAccess",
751
+ "src": "103:10:22",
752
+ "typeDescriptions": {
753
+ "typeIdentifier": "t_address",
754
+ "typeString": "address"
755
+ }
756
+ },
757
+ "visibility": "public"
758
+ },
759
+ {
760
+ "constant": false,
761
+ "functionSelector": "445df0ac",
762
+ "id": 7422,
763
+ "mutability": "mutable",
764
+ "name": "last_completed_migration",
765
+ "nameLocation": "129:24:22",
766
+ "nodeType": "VariableDeclaration",
767
+ "scope": 7447,
768
+ "src": "117:36:22",
769
+ "stateVariable": true,
770
+ "storageLocation": "default",
771
+ "typeDescriptions": {
772
+ "typeIdentifier": "t_uint256",
773
+ "typeString": "uint256"
774
+ },
775
+ "typeName": {
776
+ "id": 7421,
777
+ "name": "uint",
778
+ "nodeType": "ElementaryTypeName",
779
+ "src": "117:4:22",
780
+ "typeDescriptions": {
781
+ "typeIdentifier": "t_uint256",
782
+ "typeString": "uint256"
783
+ }
784
+ },
785
+ "visibility": "public"
786
+ },
787
+ {
788
+ "body": {
789
+ "id": 7433,
790
+ "nodeType": "Block",
791
+ "src": "180:119:22",
792
+ "statements": [
793
+ {
794
+ "expression": {
795
+ "arguments": [
796
+ {
797
+ "commonType": {
798
+ "typeIdentifier": "t_address",
799
+ "typeString": "address"
800
+ },
801
+ "id": 7428,
802
+ "isConstant": false,
803
+ "isLValue": false,
804
+ "isPure": false,
805
+ "lValueRequested": false,
806
+ "leftExpression": {
807
+ "expression": {
808
+ "id": 7425,
809
+ "name": "msg",
810
+ "nodeType": "Identifier",
811
+ "overloadedDeclarations": [],
812
+ "referencedDeclaration": 4294967281,
813
+ "src": "201:3:22",
814
+ "typeDescriptions": {
815
+ "typeIdentifier": "t_magic_message",
816
+ "typeString": "msg"
817
+ }
818
+ },
819
+ "id": 7426,
820
+ "isConstant": false,
821
+ "isLValue": false,
822
+ "isPure": false,
823
+ "lValueRequested": false,
824
+ "memberName": "sender",
825
+ "nodeType": "MemberAccess",
826
+ "src": "201:10:22",
827
+ "typeDescriptions": {
828
+ "typeIdentifier": "t_address",
829
+ "typeString": "address"
830
+ }
831
+ },
832
+ "nodeType": "BinaryOperation",
833
+ "operator": "==",
834
+ "rightExpression": {
835
+ "id": 7427,
836
+ "name": "owner",
837
+ "nodeType": "Identifier",
838
+ "overloadedDeclarations": [],
839
+ "referencedDeclaration": 7420,
840
+ "src": "215:5:22",
841
+ "typeDescriptions": {
842
+ "typeIdentifier": "t_address",
843
+ "typeString": "address"
844
+ }
845
+ },
846
+ "src": "201:19:22",
847
+ "typeDescriptions": {
848
+ "typeIdentifier": "t_bool",
849
+ "typeString": "bool"
850
+ }
851
+ },
852
+ {
853
+ "hexValue": "546869732066756e6374696f6e206973207265737472696374656420746f2074686520636f6e74726163742773206f776e6572",
854
+ "id": 7429,
855
+ "isConstant": false,
856
+ "isLValue": false,
857
+ "isPure": true,
858
+ "kind": "string",
859
+ "lValueRequested": false,
860
+ "nodeType": "Literal",
861
+ "src": "228:53:22",
862
+ "typeDescriptions": {
863
+ "typeIdentifier": "t_stringliteral_f60fe2d9d123295bf92ecf95167f1fa709e374da35e4c083bd39dc2d82acd8b1",
864
+ "typeString": "literal_string \"This function is restricted to the contract's owner\""
865
+ },
866
+ "value": "This function is restricted to the contract's owner"
867
+ }
868
+ ],
869
+ "expression": {
870
+ "argumentTypes": [
871
+ {
872
+ "typeIdentifier": "t_bool",
873
+ "typeString": "bool"
874
+ },
875
+ {
876
+ "typeIdentifier": "t_stringliteral_f60fe2d9d123295bf92ecf95167f1fa709e374da35e4c083bd39dc2d82acd8b1",
877
+ "typeString": "literal_string \"This function is restricted to the contract's owner\""
878
+ }
879
+ ],
880
+ "id": 7424,
881
+ "name": "require",
882
+ "nodeType": "Identifier",
883
+ "overloadedDeclarations": [
884
+ 4294967278,
885
+ 4294967278
886
+ ],
887
+ "referencedDeclaration": 4294967278,
888
+ "src": "186:7:22",
889
+ "typeDescriptions": {
890
+ "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
891
+ "typeString": "function (bool,string memory) pure"
892
+ }
893
+ },
894
+ "id": 7430,
895
+ "isConstant": false,
896
+ "isLValue": false,
897
+ "isPure": false,
898
+ "kind": "functionCall",
899
+ "lValueRequested": false,
900
+ "names": [],
901
+ "nodeType": "FunctionCall",
902
+ "src": "186:101:22",
903
+ "tryCall": false,
904
+ "typeDescriptions": {
905
+ "typeIdentifier": "t_tuple$__$",
906
+ "typeString": "tuple()"
907
+ }
908
+ },
909
+ "id": 7431,
910
+ "nodeType": "ExpressionStatement",
911
+ "src": "186:101:22"
912
+ },
913
+ {
914
+ "id": 7432,
915
+ "nodeType": "PlaceholderStatement",
916
+ "src": "293:1:22"
917
+ }
918
+ ]
919
+ },
920
+ "id": 7434,
921
+ "name": "restricted",
922
+ "nameLocation": "167:10:22",
923
+ "nodeType": "ModifierDefinition",
924
+ "parameters": {
925
+ "id": 7423,
926
+ "nodeType": "ParameterList",
927
+ "parameters": [],
928
+ "src": "177:2:22"
929
+ },
930
+ "src": "158:141:22",
931
+ "virtual": false,
932
+ "visibility": "internal"
933
+ },
934
+ {
935
+ "body": {
936
+ "id": 7445,
937
+ "nodeType": "Block",
938
+ "src": "359:47:22",
939
+ "statements": [
940
+ {
941
+ "expression": {
942
+ "id": 7443,
943
+ "isConstant": false,
944
+ "isLValue": false,
945
+ "isPure": false,
946
+ "lValueRequested": false,
947
+ "leftHandSide": {
948
+ "id": 7441,
949
+ "name": "last_completed_migration",
950
+ "nodeType": "Identifier",
951
+ "overloadedDeclarations": [],
952
+ "referencedDeclaration": 7422,
953
+ "src": "365:24:22",
954
+ "typeDescriptions": {
955
+ "typeIdentifier": "t_uint256",
956
+ "typeString": "uint256"
957
+ }
958
+ },
959
+ "nodeType": "Assignment",
960
+ "operator": "=",
961
+ "rightHandSide": {
962
+ "id": 7442,
963
+ "name": "completed",
964
+ "nodeType": "Identifier",
965
+ "overloadedDeclarations": [],
966
+ "referencedDeclaration": 7436,
967
+ "src": "392:9:22",
968
+ "typeDescriptions": {
969
+ "typeIdentifier": "t_uint256",
970
+ "typeString": "uint256"
971
+ }
972
+ },
973
+ "src": "365:36:22",
974
+ "typeDescriptions": {
975
+ "typeIdentifier": "t_uint256",
976
+ "typeString": "uint256"
977
+ }
978
+ },
979
+ "id": 7444,
980
+ "nodeType": "ExpressionStatement",
981
+ "src": "365:36:22"
982
+ }
983
+ ]
984
+ },
985
+ "functionSelector": "fdacd576",
986
+ "id": 7446,
987
+ "implemented": true,
988
+ "kind": "function",
989
+ "modifiers": [
990
+ {
991
+ "id": 7439,
992
+ "kind": "modifierInvocation",
993
+ "modifierName": {
994
+ "id": 7438,
995
+ "name": "restricted",
996
+ "nodeType": "IdentifierPath",
997
+ "referencedDeclaration": 7434,
998
+ "src": "348:10:22"
999
+ },
1000
+ "nodeType": "ModifierInvocation",
1001
+ "src": "348:10:22"
1002
+ }
1003
+ ],
1004
+ "name": "setCompleted",
1005
+ "nameLocation": "312:12:22",
1006
+ "nodeType": "FunctionDefinition",
1007
+ "parameters": {
1008
+ "id": 7437,
1009
+ "nodeType": "ParameterList",
1010
+ "parameters": [
1011
+ {
1012
+ "constant": false,
1013
+ "id": 7436,
1014
+ "mutability": "mutable",
1015
+ "name": "completed",
1016
+ "nameLocation": "330:9:22",
1017
+ "nodeType": "VariableDeclaration",
1018
+ "scope": 7446,
1019
+ "src": "325:14:22",
1020
+ "stateVariable": false,
1021
+ "storageLocation": "default",
1022
+ "typeDescriptions": {
1023
+ "typeIdentifier": "t_uint256",
1024
+ "typeString": "uint256"
1025
+ },
1026
+ "typeName": {
1027
+ "id": 7435,
1028
+ "name": "uint",
1029
+ "nodeType": "ElementaryTypeName",
1030
+ "src": "325:4:22",
1031
+ "typeDescriptions": {
1032
+ "typeIdentifier": "t_uint256",
1033
+ "typeString": "uint256"
1034
+ }
1035
+ },
1036
+ "visibility": "internal"
1037
+ }
1038
+ ],
1039
+ "src": "324:16:22"
1040
+ },
1041
+ "returnParameters": {
1042
+ "id": 7440,
1043
+ "nodeType": "ParameterList",
1044
+ "parameters": [],
1045
+ "src": "359:0:22"
1046
+ },
1047
+ "scope": 7447,
1048
+ "src": "303:103:22",
1049
+ "stateMutability": "nonpayable",
1050
+ "virtual": false,
1051
+ "visibility": "public"
1052
+ }
1053
+ ],
1054
+ "scope": 7448,
1055
+ "src": "56:352:22",
1056
+ "usedErrors": []
1057
+ }
1058
+ ],
1059
+ "src": "32:377:22"
1060
+ },
1061
+ "compiler": {
1062
+ "name": "solc",
1063
+ "version": "0.8.4+commit.c7e474f2.Emscripten.clang"
1064
+ },
1065
+ "networks": {
1066
+ "1480": {
1067
+ "events": {},
1068
+ "links": {},
1069
+ "address": "0xa41Efac6cb2BEfbA70FebA74702AD7B5fA826215",
1070
+ "transactionHash": "0x9e9e79f8d67ed77137782df6e37b1bf7805ebf74f307b0a095d6a9b9e49c9d21"
1071
+ },
1072
+ "1481": {
1073
+ "events": {},
1074
+ "links": {},
1075
+ "address": "0x1bB237b52176A29e71aDd42ff6C4Af3F9b32c72f",
1076
+ "transactionHash": "0xaedf944d4760916306bb5b4dee93bc694fec9e78871db67f57e4be33d7412446"
1077
+ },
1078
+ "1482": {
1079
+ "events": {},
1080
+ "links": {},
1081
+ "address": "0xd51F6bd6c071804cE5bd9d955dc7273d89F568a7",
1082
+ "transactionHash": "0x68c41ee9d9d4751b30fcc7b0138bbf7b43f6418cc923624cc0746710a3bddeec"
1083
+ },
1084
+ "1483": {
1085
+ "events": {},
1086
+ "links": {},
1087
+ "address": "0x5670D27192E633dD71F4318668e0D35aF7FBcFEa",
1088
+ "transactionHash": "0x80162f3c2c7f89aec775092bb3ea10785e3402bd7c9cd9ab267acadb3e321c61"
1089
+ }
1090
+ },
1091
+ "schemaVersion": "3.4.16",
1092
+ "updatedAt": "2024-09-04T08:05:29.000Z",
1093
+ "networkType": "ethereum",
1094
+ "devdoc": {
1095
+ "kind": "dev",
1096
+ "methods": {},
1097
+ "version": 1
1098
+ },
1099
+ "userdoc": {
1100
+ "kind": "user",
1101
+ "methods": {},
1102
+ "version": 1
1103
+ }
1104
+ }