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