@velocitycareerlabs/revocation-list-contract 1.25.0-dev-build.1f018aa8f → 1.25.0-dev-build.19f417eae

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