@latticexyz/world-modules 2.0.0-main-08d7c471 → 2.0.0-main-9ff4f451
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/AccessControl.sol/AccessControl.json +200 -200
- package/out/ArrayLib.sol/ArrayLib.json +255 -255
- package/out/Balances.sol/Balances.json +1713 -1713
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +207 -207
- package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
- package/out/DelegationControl.sol/DelegationControl.json +89 -89
- package/out/FunctionSelectors.sol/FunctionSelectors.json +2335 -2335
- package/out/Hooks.sol/Hooks.json +45 -45
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +18 -18
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
- package/out/IBaseWorld.sol/IBaseWorld.json +68 -68
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
- package/out/IDelegationControl.sol/IDelegationControl.json +11 -11
- package/out/ISystemHook.sol/ISystemHook.json +16 -16
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
- package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
- package/out/IWorldKernel.sol/IWorldCall.json +14 -14
- package/out/IWorldKernel.sol/IWorldKernel.json +14 -14
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +14 -14
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +43 -43
- package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
- package/out/KeysInTableHook.sol/KeysInTableHook.json +861 -861
- package/out/KeysInTableModule.sol/KeysInTableModule.json +527 -527
- package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +989 -989
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +416 -416
- package/out/Module.sol/Module.json +75 -75
- package/out/NamespaceOwner.sol/NamespaceOwner.json +464 -464
- package/out/ResourceAccess.sol/ResourceAccess.json +471 -471
- package/out/ResourceIds.sol/ResourceIds.json +45 -45
- package/out/Schema.sol/SchemaInstance.json +30 -30
- package/out/Schema.sol/SchemaLib.json +30 -30
- package/out/SchemaType.sol/SchemaType.json +276 -276
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +293 -293
- package/out/StoreHook.sol/StoreHook.json +368 -368
- package/out/StoreHooks.sol/StoreHooks.json +45 -45
- package/out/System.sol/System.json +19 -19
- package/out/SystemHooks.sol/SystemHooks.json +4091 -4091
- package/out/SystemSwitch.sol/SystemSwitch.json +356 -356
- package/out/Systems.sol/Systems.json +2459 -2459
- package/out/Tables.sol/Tables.json +73 -73
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +111 -111
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
- package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +317 -317
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +85 -85
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2723 -2723
- package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
- package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
- package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +101 -101
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +101 -101
- package/out/constants.sol/constants.json +403 -120
- package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
- package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
- package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
- package/out/getUniqueEntity.sol/getUniqueEntity.json +105 -105
- package/out/hasKey.sol/hasKey.json +130 -130
- package/out/index.sol/index.json +53 -53
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +128 -128
- package/out/query.sol/query.json +1154 -1154
- package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
- package/out/src/Bytes.sol/Bytes.json +1338 -1338
- package/out/src/FieldLayout.sol/FieldLayoutInstance.json +698 -698
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +698 -698
- package/out/src/Hook.sol/HookInstance.json +331 -331
- package/out/src/Hook.sol/HookLib.json +331 -331
- package/out/src/IStore.sol/IStore.json +53 -53
- package/out/src/ISystemHook.sol/ISystemHook.json +90 -90
- package/out/src/IWorldErrors.sol/IWorldErrors.json +151 -151
- package/out/src/IWorldKernel.sol/IWorldCall.json +157 -157
- package/out/src/IWorldKernel.sol/IWorldKernel.json +157 -157
- package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +157 -157
- package/out/src/Memory.sol/Memory.json +91 -91
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +929 -929
- package/out/src/PackedCounter.sol/PackedCounterLib.json +929 -929
- package/out/src/ResourceId.sol/ResourceIdInstance.json +116 -116
- package/out/src/ResourceId.sol/ResourceIdLib.json +116 -116
- package/out/src/Schema.sol/SchemaInstance.json +790 -790
- package/out/src/Schema.sol/SchemaLib.json +790 -790
- package/out/src/Slice.sol/SliceInstance.json +430 -430
- package/out/src/Slice.sol/SliceLib.json +430 -430
- package/out/src/StoreCore.sol/StoreCore.json +4455 -4455
- package/out/src/StoreCore.sol/StoreCoreInternal.json +4455 -4455
- package/out/src/StoreSwitch.sol/StoreSwitch.json +2483 -2483
- package/out/src/WorldContext.sol/WorldContextConsumer.json +418 -418
- package/out/src/WorldContext.sol/WorldContextConsumerLib.json +418 -418
- package/out/src/WorldContext.sol/WorldContextProviderLib.json +418 -418
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
- package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
- package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
- package/out/systemHookTypes.sol/systemHookTypes.json +25 -25
- package/out/tables/ResourceIds.sol/ResourceIds.json +1747 -1747
- package/out/tables/Tables.sol/Tables.json +7288 -7288
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3345 -3345
- package/out/types.sol/types.json +41 -41
- package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
- package/package.json +8 -8
@@ -358,41 +358,41 @@
|
|
358
358
|
},
|
359
359
|
"ast": {
|
360
360
|
"absolutePath": "node_modules/@latticexyz/world/src/WorldContext.sol",
|
361
|
-
"id":
|
361
|
+
"id": 42227,
|
362
362
|
"exportedSymbols": {
|
363
363
|
"CONTEXT_BYTES": [
|
364
|
-
|
364
|
+
41978
|
365
365
|
],
|
366
366
|
"ERC165_INTERFACE_ID": [
|
367
|
-
|
367
|
+
75623
|
368
368
|
],
|
369
369
|
"IWorldContextConsumer": [
|
370
|
-
|
370
|
+
75676
|
371
371
|
],
|
372
372
|
"StoreSwitch": [
|
373
|
-
|
373
|
+
33826
|
374
374
|
],
|
375
375
|
"WORLD_CONTEXT_CONSUMER_INTERFACE_ID": [
|
376
|
-
|
376
|
+
75654
|
377
377
|
],
|
378
378
|
"WorldContextConsumer": [
|
379
|
-
|
379
|
+
42032
|
380
380
|
],
|
381
381
|
"WorldContextConsumerLib": [
|
382
|
-
|
382
|
+
42072
|
383
383
|
],
|
384
384
|
"WorldContextProviderLib": [
|
385
|
-
|
385
|
+
42226
|
386
386
|
],
|
387
387
|
"revertWithBytes": [
|
388
|
-
|
388
|
+
49007
|
389
389
|
]
|
390
390
|
},
|
391
391
|
"nodeType": "SourceUnit",
|
392
392
|
"src": "32:8156:100",
|
393
393
|
"nodes": [
|
394
394
|
{
|
395
|
-
"id":
|
395
|
+
"id": 41964,
|
396
396
|
"nodeType": "PragmaDirective",
|
397
397
|
"src": "32:25:100",
|
398
398
|
"nodes": [],
|
@@ -404,23 +404,23 @@
|
|
404
404
|
]
|
405
405
|
},
|
406
406
|
{
|
407
|
-
"id":
|
407
|
+
"id": 41966,
|
408
408
|
"nodeType": "ImportDirective",
|
409
409
|
"src": "59:68:100",
|
410
410
|
"nodes": [],
|
411
411
|
"absolutePath": "node_modules/@latticexyz/store/src/StoreSwitch.sol",
|
412
412
|
"file": "@latticexyz/store/src/StoreSwitch.sol",
|
413
413
|
"nameLocation": "-1:-1:-1",
|
414
|
-
"scope":
|
415
|
-
"sourceUnit":
|
414
|
+
"scope": 42227,
|
415
|
+
"sourceUnit": 33827,
|
416
416
|
"symbolAliases": [
|
417
417
|
{
|
418
418
|
"foreign": {
|
419
|
-
"id":
|
419
|
+
"id": 41965,
|
420
420
|
"name": "StoreSwitch",
|
421
421
|
"nodeType": "Identifier",
|
422
422
|
"overloadedDeclarations": [],
|
423
|
-
"referencedDeclaration":
|
423
|
+
"referencedDeclaration": 33826,
|
424
424
|
"src": "68:11:100",
|
425
425
|
"typeDescriptions": {}
|
426
426
|
},
|
@@ -430,23 +430,23 @@
|
|
430
430
|
"unitAlias": ""
|
431
431
|
},
|
432
432
|
{
|
433
|
-
"id":
|
433
|
+
"id": 41968,
|
434
434
|
"nodeType": "ImportDirective",
|
435
435
|
"src": "128:56:100",
|
436
436
|
"nodes": [],
|
437
437
|
"absolutePath": "node_modules/@latticexyz/world/src/revertWithBytes.sol",
|
438
438
|
"file": "./revertWithBytes.sol",
|
439
439
|
"nameLocation": "-1:-1:-1",
|
440
|
-
"scope":
|
441
|
-
"sourceUnit":
|
440
|
+
"scope": 42227,
|
441
|
+
"sourceUnit": 49008,
|
442
442
|
"symbolAliases": [
|
443
443
|
{
|
444
444
|
"foreign": {
|
445
|
-
"id":
|
445
|
+
"id": 41967,
|
446
446
|
"name": "revertWithBytes",
|
447
447
|
"nodeType": "Identifier",
|
448
448
|
"overloadedDeclarations": [],
|
449
|
-
"referencedDeclaration":
|
449
|
+
"referencedDeclaration": 49007,
|
450
450
|
"src": "137:15:100",
|
451
451
|
"typeDescriptions": {}
|
452
452
|
},
|
@@ -456,23 +456,23 @@
|
|
456
456
|
"unitAlias": ""
|
457
457
|
},
|
458
458
|
{
|
459
|
-
"id":
|
459
|
+
"id": 41970,
|
460
460
|
"nodeType": "ImportDirective",
|
461
461
|
"src": "185:52:100",
|
462
462
|
"nodes": [],
|
463
463
|
"absolutePath": "node_modules/@latticexyz/world/src/IERC165.sol",
|
464
464
|
"file": "./IERC165.sol",
|
465
465
|
"nameLocation": "-1:-1:-1",
|
466
|
-
"scope":
|
467
|
-
"sourceUnit":
|
466
|
+
"scope": 42227,
|
467
|
+
"sourceUnit": 75634,
|
468
468
|
"symbolAliases": [
|
469
469
|
{
|
470
470
|
"foreign": {
|
471
|
-
"id":
|
471
|
+
"id": 41969,
|
472
472
|
"name": "ERC165_INTERFACE_ID",
|
473
473
|
"nodeType": "Identifier",
|
474
474
|
"overloadedDeclarations": [],
|
475
|
-
"referencedDeclaration":
|
475
|
+
"referencedDeclaration": 75623,
|
476
476
|
"src": "194:19:100",
|
477
477
|
"typeDescriptions": {}
|
478
478
|
},
|
@@ -482,23 +482,23 @@
|
|
482
482
|
"unitAlias": ""
|
483
483
|
},
|
484
484
|
{
|
485
|
-
"id":
|
485
|
+
"id": 41973,
|
486
486
|
"nodeType": "ImportDirective",
|
487
487
|
"src": "238:105:100",
|
488
488
|
"nodes": [],
|
489
489
|
"absolutePath": "node_modules/@latticexyz/world/src/IWorldContextConsumer.sol",
|
490
490
|
"file": "./IWorldContextConsumer.sol",
|
491
491
|
"nameLocation": "-1:-1:-1",
|
492
|
-
"scope":
|
493
|
-
"sourceUnit":
|
492
|
+
"scope": 42227,
|
493
|
+
"sourceUnit": 75677,
|
494
494
|
"symbolAliases": [
|
495
495
|
{
|
496
496
|
"foreign": {
|
497
|
-
"id":
|
497
|
+
"id": 41971,
|
498
498
|
"name": "IWorldContextConsumer",
|
499
499
|
"nodeType": "Identifier",
|
500
500
|
"overloadedDeclarations": [],
|
501
|
-
"referencedDeclaration":
|
501
|
+
"referencedDeclaration": 75676,
|
502
502
|
"src": "247:21:100",
|
503
503
|
"typeDescriptions": {}
|
504
504
|
},
|
@@ -506,11 +506,11 @@
|
|
506
506
|
},
|
507
507
|
{
|
508
508
|
"foreign": {
|
509
|
-
"id":
|
509
|
+
"id": 41972,
|
510
510
|
"name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
|
511
511
|
"nodeType": "Identifier",
|
512
512
|
"overloadedDeclarations": [],
|
513
|
-
"referencedDeclaration":
|
513
|
+
"referencedDeclaration": 75654,
|
514
514
|
"src": "270:35:100",
|
515
515
|
"typeDescriptions": {}
|
516
516
|
},
|
@@ -520,7 +520,7 @@
|
|
520
520
|
"unitAlias": ""
|
521
521
|
},
|
522
522
|
{
|
523
|
-
"id":
|
523
|
+
"id": 41978,
|
524
524
|
"nodeType": "VariableDeclaration",
|
525
525
|
"src": "420:40:100",
|
526
526
|
"nodes": [],
|
@@ -528,7 +528,7 @@
|
|
528
528
|
"mutability": "constant",
|
529
529
|
"name": "CONTEXT_BYTES",
|
530
530
|
"nameLocation": "437:13:100",
|
531
|
-
"scope":
|
531
|
+
"scope": 42227,
|
532
532
|
"stateVariable": false,
|
533
533
|
"storageLocation": "default",
|
534
534
|
"typeDescriptions": {
|
@@ -536,7 +536,7 @@
|
|
536
536
|
"typeString": "uint256"
|
537
537
|
},
|
538
538
|
"typeName": {
|
539
|
-
"id":
|
539
|
+
"id": 41974,
|
540
540
|
"name": "uint256",
|
541
541
|
"nodeType": "ElementaryTypeName",
|
542
542
|
"src": "420:7:100",
|
@@ -550,14 +550,14 @@
|
|
550
550
|
"typeIdentifier": "t_rational_52_by_1",
|
551
551
|
"typeString": "int_const 52"
|
552
552
|
},
|
553
|
-
"id":
|
553
|
+
"id": 41977,
|
554
554
|
"isConstant": false,
|
555
555
|
"isLValue": false,
|
556
556
|
"isPure": true,
|
557
557
|
"lValueRequested": false,
|
558
558
|
"leftExpression": {
|
559
559
|
"hexValue": "3230",
|
560
|
-
"id":
|
560
|
+
"id": 41975,
|
561
561
|
"isConstant": false,
|
562
562
|
"isLValue": false,
|
563
563
|
"isPure": true,
|
@@ -575,7 +575,7 @@
|
|
575
575
|
"operator": "+",
|
576
576
|
"rightExpression": {
|
577
577
|
"hexValue": "3332",
|
578
|
-
"id":
|
578
|
+
"id": 41976,
|
579
579
|
"isConstant": false,
|
580
580
|
"isLValue": false,
|
581
581
|
"isPure": true,
|
@@ -598,17 +598,17 @@
|
|
598
598
|
"visibility": "internal"
|
599
599
|
},
|
600
600
|
{
|
601
|
-
"id":
|
601
|
+
"id": 42032,
|
602
602
|
"nodeType": "ContractDefinition",
|
603
603
|
"src": "937:1564:100",
|
604
604
|
"nodes": [
|
605
605
|
{
|
606
|
-
"id":
|
606
|
+
"id": 41992,
|
607
607
|
"nodeType": "FunctionDefinition",
|
608
608
|
"src": "1245:113:100",
|
609
609
|
"nodes": [],
|
610
610
|
"body": {
|
611
|
-
"id":
|
611
|
+
"id": 41991,
|
612
612
|
"nodeType": "Block",
|
613
613
|
"src": "1304:54:100",
|
614
614
|
"nodes": [],
|
@@ -619,18 +619,18 @@
|
|
619
619
|
"expression": {
|
620
620
|
"argumentTypes": [],
|
621
621
|
"expression": {
|
622
|
-
"id":
|
622
|
+
"id": 41987,
|
623
623
|
"name": "WorldContextConsumerLib",
|
624
624
|
"nodeType": "Identifier",
|
625
625
|
"overloadedDeclarations": [],
|
626
|
-
"referencedDeclaration":
|
626
|
+
"referencedDeclaration": 42072,
|
627
627
|
"src": "1317:23:100",
|
628
628
|
"typeDescriptions": {
|
629
|
-
"typeIdentifier": "t_type$_t_contract$_WorldContextConsumerLib_$
|
629
|
+
"typeIdentifier": "t_type$_t_contract$_WorldContextConsumerLib_$42072_$",
|
630
630
|
"typeString": "type(library WorldContextConsumerLib)"
|
631
631
|
}
|
632
632
|
},
|
633
|
-
"id":
|
633
|
+
"id": 41988,
|
634
634
|
"isConstant": false,
|
635
635
|
"isLValue": false,
|
636
636
|
"isPure": false,
|
@@ -638,14 +638,14 @@
|
|
638
638
|
"memberLocation": "1341:10:100",
|
639
639
|
"memberName": "_msgSender",
|
640
640
|
"nodeType": "MemberAccess",
|
641
|
-
"referencedDeclaration":
|
641
|
+
"referencedDeclaration": 42052,
|
642
642
|
"src": "1317:34:100",
|
643
643
|
"typeDescriptions": {
|
644
644
|
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
|
645
645
|
"typeString": "function () view returns (address)"
|
646
646
|
}
|
647
647
|
},
|
648
|
-
"id":
|
648
|
+
"id": 41989,
|
649
649
|
"isConstant": false,
|
650
650
|
"isLValue": false,
|
651
651
|
"isPure": false,
|
@@ -661,18 +661,18 @@
|
|
661
661
|
"typeString": "address"
|
662
662
|
}
|
663
663
|
},
|
664
|
-
"functionReturnParameters":
|
665
|
-
"id":
|
664
|
+
"functionReturnParameters": 41986,
|
665
|
+
"id": 41990,
|
666
666
|
"nodeType": "Return",
|
667
667
|
"src": "1310:43:100"
|
668
668
|
}
|
669
669
|
]
|
670
670
|
},
|
671
671
|
"baseFunctions": [
|
672
|
-
|
672
|
+
75663
|
673
673
|
],
|
674
674
|
"documentation": {
|
675
|
-
"id":
|
675
|
+
"id": 41982,
|
676
676
|
"nodeType": "StructuredDocumentation",
|
677
677
|
"src": "1005:237:100",
|
678
678
|
"text": " @notice Extract the `msg.sender` from the context appended to the calldata.\n @return sender The `msg.sender` in the call to the World contract before the World routed the\n call to the WorldContextConsumer contract."
|
@@ -684,23 +684,23 @@
|
|
684
684
|
"name": "_msgSender",
|
685
685
|
"nameLocation": "1254:10:100",
|
686
686
|
"parameters": {
|
687
|
-
"id":
|
687
|
+
"id": 41983,
|
688
688
|
"nodeType": "ParameterList",
|
689
689
|
"parameters": [],
|
690
690
|
"src": "1264:2:100"
|
691
691
|
},
|
692
692
|
"returnParameters": {
|
693
|
-
"id":
|
693
|
+
"id": 41986,
|
694
694
|
"nodeType": "ParameterList",
|
695
695
|
"parameters": [
|
696
696
|
{
|
697
697
|
"constant": false,
|
698
|
-
"id":
|
698
|
+
"id": 41985,
|
699
699
|
"mutability": "mutable",
|
700
700
|
"name": "sender",
|
701
701
|
"nameLocation": "1296:6:100",
|
702
702
|
"nodeType": "VariableDeclaration",
|
703
|
-
"scope":
|
703
|
+
"scope": 41992,
|
704
704
|
"src": "1288:14:100",
|
705
705
|
"stateVariable": false,
|
706
706
|
"storageLocation": "default",
|
@@ -709,7 +709,7 @@
|
|
709
709
|
"typeString": "address"
|
710
710
|
},
|
711
711
|
"typeName": {
|
712
|
-
"id":
|
712
|
+
"id": 41984,
|
713
713
|
"name": "address",
|
714
714
|
"nodeType": "ElementaryTypeName",
|
715
715
|
"src": "1288:7:100",
|
@@ -724,18 +724,18 @@
|
|
724
724
|
],
|
725
725
|
"src": "1287:16:100"
|
726
726
|
},
|
727
|
-
"scope":
|
727
|
+
"scope": 42032,
|
728
728
|
"stateMutability": "view",
|
729
729
|
"virtual": false,
|
730
730
|
"visibility": "public"
|
731
731
|
},
|
732
732
|
{
|
733
|
-
"id":
|
733
|
+
"id": 42003,
|
734
734
|
"nodeType": "FunctionDefinition",
|
735
735
|
"src": "1599:110:100",
|
736
736
|
"nodes": [],
|
737
737
|
"body": {
|
738
|
-
"id":
|
738
|
+
"id": 42002,
|
739
739
|
"nodeType": "Block",
|
740
740
|
"src": "1656:53:100",
|
741
741
|
"nodes": [],
|
@@ -746,18 +746,18 @@
|
|
746
746
|
"expression": {
|
747
747
|
"argumentTypes": [],
|
748
748
|
"expression": {
|
749
|
-
"id":
|
749
|
+
"id": 41998,
|
750
750
|
"name": "WorldContextConsumerLib",
|
751
751
|
"nodeType": "Identifier",
|
752
752
|
"overloadedDeclarations": [],
|
753
|
-
"referencedDeclaration":
|
753
|
+
"referencedDeclaration": 42072,
|
754
754
|
"src": "1669:23:100",
|
755
755
|
"typeDescriptions": {
|
756
|
-
"typeIdentifier": "t_type$_t_contract$_WorldContextConsumerLib_$
|
756
|
+
"typeIdentifier": "t_type$_t_contract$_WorldContextConsumerLib_$42072_$",
|
757
757
|
"typeString": "type(library WorldContextConsumerLib)"
|
758
758
|
}
|
759
759
|
},
|
760
|
-
"id":
|
760
|
+
"id": 41999,
|
761
761
|
"isConstant": false,
|
762
762
|
"isLValue": false,
|
763
763
|
"isPure": false,
|
@@ -765,14 +765,14 @@
|
|
765
765
|
"memberLocation": "1693:9:100",
|
766
766
|
"memberName": "_msgValue",
|
767
767
|
"nodeType": "MemberAccess",
|
768
|
-
"referencedDeclaration":
|
768
|
+
"referencedDeclaration": 42060,
|
769
769
|
"src": "1669:33:100",
|
770
770
|
"typeDescriptions": {
|
771
771
|
"typeIdentifier": "t_function_internal_pure$__$returns$_t_uint256_$",
|
772
772
|
"typeString": "function () pure returns (uint256)"
|
773
773
|
}
|
774
774
|
},
|
775
|
-
"id":
|
775
|
+
"id": 42000,
|
776
776
|
"isConstant": false,
|
777
777
|
"isLValue": false,
|
778
778
|
"isPure": false,
|
@@ -788,18 +788,18 @@
|
|
788
788
|
"typeString": "uint256"
|
789
789
|
}
|
790
790
|
},
|
791
|
-
"functionReturnParameters":
|
792
|
-
"id":
|
791
|
+
"functionReturnParameters": 41997,
|
792
|
+
"id": 42001,
|
793
793
|
"nodeType": "Return",
|
794
794
|
"src": "1662:42:100"
|
795
795
|
}
|
796
796
|
]
|
797
797
|
},
|
798
798
|
"baseFunctions": [
|
799
|
-
|
799
|
+
75669
|
800
800
|
],
|
801
801
|
"documentation": {
|
802
|
-
"id":
|
802
|
+
"id": 41993,
|
803
803
|
"nodeType": "StructuredDocumentation",
|
804
804
|
"src": "1362:234:100",
|
805
805
|
"text": " @notice Extract the `msg.value` from the context appended to the calldata.\n @return value The `msg.value` in the call to the World contract before the World routed the\n call to the WorldContextConsumer contract."
|
@@ -811,23 +811,23 @@
|
|
811
811
|
"name": "_msgValue",
|
812
812
|
"nameLocation": "1608:9:100",
|
813
813
|
"parameters": {
|
814
|
-
"id":
|
814
|
+
"id": 41994,
|
815
815
|
"nodeType": "ParameterList",
|
816
816
|
"parameters": [],
|
817
817
|
"src": "1617:2:100"
|
818
818
|
},
|
819
819
|
"returnParameters": {
|
820
|
-
"id":
|
820
|
+
"id": 41997,
|
821
821
|
"nodeType": "ParameterList",
|
822
822
|
"parameters": [
|
823
823
|
{
|
824
824
|
"constant": false,
|
825
|
-
"id":
|
825
|
+
"id": 41996,
|
826
826
|
"mutability": "mutable",
|
827
827
|
"name": "value",
|
828
828
|
"nameLocation": "1649:5:100",
|
829
829
|
"nodeType": "VariableDeclaration",
|
830
|
-
"scope":
|
830
|
+
"scope": 42003,
|
831
831
|
"src": "1641:13:100",
|
832
832
|
"stateVariable": false,
|
833
833
|
"storageLocation": "default",
|
@@ -836,7 +836,7 @@
|
|
836
836
|
"typeString": "uint256"
|
837
837
|
},
|
838
838
|
"typeName": {
|
839
|
-
"id":
|
839
|
+
"id": 41995,
|
840
840
|
"name": "uint256",
|
841
841
|
"nodeType": "ElementaryTypeName",
|
842
842
|
"src": "1641:7:100",
|
@@ -850,18 +850,18 @@
|
|
850
850
|
],
|
851
851
|
"src": "1640:15:100"
|
852
852
|
},
|
853
|
-
"scope":
|
853
|
+
"scope": 42032,
|
854
854
|
"stateMutability": "pure",
|
855
855
|
"virtual": false,
|
856
856
|
"visibility": "public"
|
857
857
|
},
|
858
858
|
{
|
859
|
-
"id":
|
859
|
+
"id": 42014,
|
860
860
|
"nodeType": "FunctionDefinition",
|
861
861
|
"src": "1925:95:100",
|
862
862
|
"nodes": [],
|
863
863
|
"body": {
|
864
|
-
"id":
|
864
|
+
"id": 42013,
|
865
865
|
"nodeType": "Block",
|
866
866
|
"src": "1973:47:100",
|
867
867
|
"nodes": [],
|
@@ -872,18 +872,18 @@
|
|
872
872
|
"expression": {
|
873
873
|
"argumentTypes": [],
|
874
874
|
"expression": {
|
875
|
-
"id":
|
875
|
+
"id": 42009,
|
876
876
|
"name": "StoreSwitch",
|
877
877
|
"nodeType": "Identifier",
|
878
878
|
"overloadedDeclarations": [],
|
879
|
-
"referencedDeclaration":
|
879
|
+
"referencedDeclaration": 33826,
|
880
880
|
"src": "1986:11:100",
|
881
881
|
"typeDescriptions": {
|
882
|
-
"typeIdentifier": "t_type$_t_contract$_StoreSwitch_$
|
882
|
+
"typeIdentifier": "t_type$_t_contract$_StoreSwitch_$33826_$",
|
883
883
|
"typeString": "type(library StoreSwitch)"
|
884
884
|
}
|
885
885
|
},
|
886
|
-
"id":
|
886
|
+
"id": 42010,
|
887
887
|
"isConstant": false,
|
888
888
|
"isLValue": false,
|
889
889
|
"isPure": false,
|
@@ -891,14 +891,14 @@
|
|
891
891
|
"memberLocation": "1998:15:100",
|
892
892
|
"memberName": "getStoreAddress",
|
893
893
|
"nodeType": "MemberAccess",
|
894
|
-
"referencedDeclaration":
|
894
|
+
"referencedDeclaration": 32570,
|
895
895
|
"src": "1986:27:100",
|
896
896
|
"typeDescriptions": {
|
897
897
|
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
|
898
898
|
"typeString": "function () view returns (address)"
|
899
899
|
}
|
900
900
|
},
|
901
|
-
"id":
|
901
|
+
"id": 42011,
|
902
902
|
"isConstant": false,
|
903
903
|
"isLValue": false,
|
904
904
|
"isPure": false,
|
@@ -914,18 +914,18 @@
|
|
914
914
|
"typeString": "address"
|
915
915
|
}
|
916
916
|
},
|
917
|
-
"functionReturnParameters":
|
918
|
-
"id":
|
917
|
+
"functionReturnParameters": 42008,
|
918
|
+
"id": 42012,
|
919
919
|
"nodeType": "Return",
|
920
920
|
"src": "1979:36:100"
|
921
921
|
}
|
922
922
|
]
|
923
923
|
},
|
924
924
|
"baseFunctions": [
|
925
|
-
|
925
|
+
75675
|
926
926
|
],
|
927
927
|
"documentation": {
|
928
|
-
"id":
|
928
|
+
"id": 42004,
|
929
929
|
"nodeType": "StructuredDocumentation",
|
930
930
|
"src": "1713:209:100",
|
931
931
|
"text": " @notice Get the address of the World contract that routed the call to this WorldContextConsumer.\n @return The address of the World contract that routed the call to this WorldContextConsumer."
|
@@ -937,23 +937,23 @@
|
|
937
937
|
"name": "_world",
|
938
938
|
"nameLocation": "1934:6:100",
|
939
939
|
"parameters": {
|
940
|
-
"id":
|
940
|
+
"id": 42005,
|
941
941
|
"nodeType": "ParameterList",
|
942
942
|
"parameters": [],
|
943
943
|
"src": "1940:2:100"
|
944
944
|
},
|
945
945
|
"returnParameters": {
|
946
|
-
"id":
|
946
|
+
"id": 42008,
|
947
947
|
"nodeType": "ParameterList",
|
948
948
|
"parameters": [
|
949
949
|
{
|
950
950
|
"constant": false,
|
951
|
-
"id":
|
951
|
+
"id": 42007,
|
952
952
|
"mutability": "mutable",
|
953
953
|
"name": "",
|
954
954
|
"nameLocation": "-1:-1:-1",
|
955
955
|
"nodeType": "VariableDeclaration",
|
956
|
-
"scope":
|
956
|
+
"scope": 42014,
|
957
957
|
"src": "1964:7:100",
|
958
958
|
"stateVariable": false,
|
959
959
|
"storageLocation": "default",
|
@@ -962,7 +962,7 @@
|
|
962
962
|
"typeString": "address"
|
963
963
|
},
|
964
964
|
"typeName": {
|
965
|
-
"id":
|
965
|
+
"id": 42006,
|
966
966
|
"name": "address",
|
967
967
|
"nodeType": "ElementaryTypeName",
|
968
968
|
"src": "1964:7:100",
|
@@ -977,18 +977,18 @@
|
|
977
977
|
],
|
978
978
|
"src": "1963:9:100"
|
979
979
|
},
|
980
|
-
"scope":
|
980
|
+
"scope": 42032,
|
981
981
|
"stateMutability": "view",
|
982
982
|
"virtual": false,
|
983
983
|
"visibility": "public"
|
984
984
|
},
|
985
985
|
{
|
986
|
-
"id":
|
986
|
+
"id": 42031,
|
987
987
|
"nodeType": "FunctionDefinition",
|
988
988
|
"src": "2311:188:100",
|
989
989
|
"nodes": [],
|
990
990
|
"body": {
|
991
|
-
"id":
|
991
|
+
"id": 42030,
|
992
992
|
"nodeType": "Block",
|
993
993
|
"src": "2393:106:100",
|
994
994
|
"nodes": [],
|
@@ -999,7 +999,7 @@
|
|
999
999
|
"typeIdentifier": "t_bool",
|
1000
1000
|
"typeString": "bool"
|
1001
1001
|
},
|
1002
|
-
"id":
|
1002
|
+
"id": 42028,
|
1003
1003
|
"isConstant": false,
|
1004
1004
|
"isLValue": false,
|
1005
1005
|
"isPure": false,
|
@@ -1009,17 +1009,17 @@
|
|
1009
1009
|
"typeIdentifier": "t_bytes4",
|
1010
1010
|
"typeString": "bytes4"
|
1011
1011
|
},
|
1012
|
-
"id":
|
1012
|
+
"id": 42024,
|
1013
1013
|
"isConstant": false,
|
1014
1014
|
"isLValue": false,
|
1015
1015
|
"isPure": false,
|
1016
1016
|
"lValueRequested": false,
|
1017
1017
|
"leftExpression": {
|
1018
|
-
"id":
|
1018
|
+
"id": 42022,
|
1019
1019
|
"name": "interfaceId",
|
1020
1020
|
"nodeType": "Identifier",
|
1021
1021
|
"overloadedDeclarations": [],
|
1022
|
-
"referencedDeclaration":
|
1022
|
+
"referencedDeclaration": 42017,
|
1023
1023
|
"src": "2406:11:100",
|
1024
1024
|
"typeDescriptions": {
|
1025
1025
|
"typeIdentifier": "t_bytes4",
|
@@ -1029,11 +1029,11 @@
|
|
1029
1029
|
"nodeType": "BinaryOperation",
|
1030
1030
|
"operator": "==",
|
1031
1031
|
"rightExpression": {
|
1032
|
-
"id":
|
1032
|
+
"id": 42023,
|
1033
1033
|
"name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
|
1034
1034
|
"nodeType": "Identifier",
|
1035
1035
|
"overloadedDeclarations": [],
|
1036
|
-
"referencedDeclaration":
|
1036
|
+
"referencedDeclaration": 75654,
|
1037
1037
|
"src": "2421:35:100",
|
1038
1038
|
"typeDescriptions": {
|
1039
1039
|
"typeIdentifier": "t_bytes4",
|
@@ -1053,17 +1053,17 @@
|
|
1053
1053
|
"typeIdentifier": "t_bytes4",
|
1054
1054
|
"typeString": "bytes4"
|
1055
1055
|
},
|
1056
|
-
"id":
|
1056
|
+
"id": 42027,
|
1057
1057
|
"isConstant": false,
|
1058
1058
|
"isLValue": false,
|
1059
1059
|
"isPure": false,
|
1060
1060
|
"lValueRequested": false,
|
1061
1061
|
"leftExpression": {
|
1062
|
-
"id":
|
1062
|
+
"id": 42025,
|
1063
1063
|
"name": "interfaceId",
|
1064
1064
|
"nodeType": "Identifier",
|
1065
1065
|
"overloadedDeclarations": [],
|
1066
|
-
"referencedDeclaration":
|
1066
|
+
"referencedDeclaration": 42017,
|
1067
1067
|
"src": "2460:11:100",
|
1068
1068
|
"typeDescriptions": {
|
1069
1069
|
"typeIdentifier": "t_bytes4",
|
@@ -1073,11 +1073,11 @@
|
|
1073
1073
|
"nodeType": "BinaryOperation",
|
1074
1074
|
"operator": "==",
|
1075
1075
|
"rightExpression": {
|
1076
|
-
"id":
|
1076
|
+
"id": 42026,
|
1077
1077
|
"name": "ERC165_INTERFACE_ID",
|
1078
1078
|
"nodeType": "Identifier",
|
1079
1079
|
"overloadedDeclarations": [],
|
1080
|
-
"referencedDeclaration":
|
1080
|
+
"referencedDeclaration": 75623,
|
1081
1081
|
"src": "2475:19:100",
|
1082
1082
|
"typeDescriptions": {
|
1083
1083
|
"typeIdentifier": "t_bytes4",
|
@@ -1096,18 +1096,18 @@
|
|
1096
1096
|
"typeString": "bool"
|
1097
1097
|
}
|
1098
1098
|
},
|
1099
|
-
"functionReturnParameters":
|
1100
|
-
"id":
|
1099
|
+
"functionReturnParameters": 42021,
|
1100
|
+
"id": 42029,
|
1101
1101
|
"nodeType": "Return",
|
1102
1102
|
"src": "2399:95:100"
|
1103
1103
|
}
|
1104
1104
|
]
|
1105
1105
|
},
|
1106
1106
|
"baseFunctions": [
|
1107
|
-
|
1107
|
+
75632
|
1108
1108
|
],
|
1109
1109
|
"documentation": {
|
1110
|
-
"id":
|
1110
|
+
"id": 42015,
|
1111
1111
|
"nodeType": "StructuredDocumentation",
|
1112
1112
|
"src": "2024:284:100",
|
1113
1113
|
"text": " @notice Checks if an interface is supported by the contract.\n using ERC-165 supportsInterface (see https://eips.ethereum.org/EIPS/eip-165)\n @param interfaceId The ID of the interface in question.\n @return True if the interface is supported, false otherwise."
|
@@ -1119,17 +1119,17 @@
|
|
1119
1119
|
"name": "supportsInterface",
|
1120
1120
|
"nameLocation": "2320:17:100",
|
1121
1121
|
"parameters": {
|
1122
|
-
"id":
|
1122
|
+
"id": 42018,
|
1123
1123
|
"nodeType": "ParameterList",
|
1124
1124
|
"parameters": [
|
1125
1125
|
{
|
1126
1126
|
"constant": false,
|
1127
|
-
"id":
|
1127
|
+
"id": 42017,
|
1128
1128
|
"mutability": "mutable",
|
1129
1129
|
"name": "interfaceId",
|
1130
1130
|
"nameLocation": "2345:11:100",
|
1131
1131
|
"nodeType": "VariableDeclaration",
|
1132
|
-
"scope":
|
1132
|
+
"scope": 42031,
|
1133
1133
|
"src": "2338:18:100",
|
1134
1134
|
"stateVariable": false,
|
1135
1135
|
"storageLocation": "default",
|
@@ -1138,7 +1138,7 @@
|
|
1138
1138
|
"typeString": "bytes4"
|
1139
1139
|
},
|
1140
1140
|
"typeName": {
|
1141
|
-
"id":
|
1141
|
+
"id": 42016,
|
1142
1142
|
"name": "bytes4",
|
1143
1143
|
"nodeType": "ElementaryTypeName",
|
1144
1144
|
"src": "2338:6:100",
|
@@ -1153,17 +1153,17 @@
|
|
1153
1153
|
"src": "2337:20:100"
|
1154
1154
|
},
|
1155
1155
|
"returnParameters": {
|
1156
|
-
"id":
|
1156
|
+
"id": 42021,
|
1157
1157
|
"nodeType": "ParameterList",
|
1158
1158
|
"parameters": [
|
1159
1159
|
{
|
1160
1160
|
"constant": false,
|
1161
|
-
"id":
|
1161
|
+
"id": 42020,
|
1162
1162
|
"mutability": "mutable",
|
1163
1163
|
"name": "",
|
1164
1164
|
"nameLocation": "-1:-1:-1",
|
1165
1165
|
"nodeType": "VariableDeclaration",
|
1166
|
-
"scope":
|
1166
|
+
"scope": 42031,
|
1167
1167
|
"src": "2387:4:100",
|
1168
1168
|
"stateVariable": false,
|
1169
1169
|
"storageLocation": "default",
|
@@ -1172,7 +1172,7 @@
|
|
1172
1172
|
"typeString": "bool"
|
1173
1173
|
},
|
1174
1174
|
"typeName": {
|
1175
|
-
"id":
|
1175
|
+
"id": 42019,
|
1176
1176
|
"name": "bool",
|
1177
1177
|
"nodeType": "ElementaryTypeName",
|
1178
1178
|
"src": "2387:4:100",
|
@@ -1186,7 +1186,7 @@
|
|
1186
1186
|
],
|
1187
1187
|
"src": "2386:6:100"
|
1188
1188
|
},
|
1189
|
-
"scope":
|
1189
|
+
"scope": 42032,
|
1190
1190
|
"stateMutability": "pure",
|
1191
1191
|
"virtual": true,
|
1192
1192
|
"visibility": "public"
|
@@ -1196,16 +1196,16 @@
|
|
1196
1196
|
"baseContracts": [
|
1197
1197
|
{
|
1198
1198
|
"baseName": {
|
1199
|
-
"id":
|
1199
|
+
"id": 41980,
|
1200
1200
|
"name": "IWorldContextConsumer",
|
1201
1201
|
"nameLocations": [
|
1202
1202
|
"979:21:100"
|
1203
1203
|
],
|
1204
1204
|
"nodeType": "IdentifierPath",
|
1205
|
-
"referencedDeclaration":
|
1205
|
+
"referencedDeclaration": 75676,
|
1206
1206
|
"src": "979:21:100"
|
1207
1207
|
},
|
1208
|
-
"id":
|
1208
|
+
"id": 41981,
|
1209
1209
|
"nodeType": "InheritanceSpecifier",
|
1210
1210
|
"src": "979:21:100"
|
1211
1211
|
}
|
@@ -1214,35 +1214,35 @@
|
|
1214
1214
|
"contractDependencies": [],
|
1215
1215
|
"contractKind": "contract",
|
1216
1216
|
"documentation": {
|
1217
|
-
"id":
|
1217
|
+
"id": 41979,
|
1218
1218
|
"nodeType": "StructuredDocumentation",
|
1219
1219
|
"src": "463:473:100",
|
1220
1220
|
"text": " @title WorldContextConsumer - Extracting trusted context values from appended calldata.\n @notice This contract is designed to extract trusted context values (like msg.sender and msg.value)\n from the appended calldata. It provides mechanisms similar to EIP-2771 (https://eips.ethereum.org/EIPS/eip-2771),\n but allowing any contract to be the trusted forwarder.\n @dev This contract should only be used for contracts without their own storage, like Systems."
|
1221
1221
|
},
|
1222
1222
|
"fullyImplemented": true,
|
1223
1223
|
"linearizedBaseContracts": [
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1224
|
+
42032,
|
1225
|
+
75676,
|
1226
|
+
75633
|
1227
1227
|
],
|
1228
1228
|
"name": "WorldContextConsumer",
|
1229
1229
|
"nameLocation": "955:20:100",
|
1230
|
-
"scope":
|
1230
|
+
"scope": 42227,
|
1231
1231
|
"usedErrors": [],
|
1232
1232
|
"usedEvents": []
|
1233
1233
|
},
|
1234
1234
|
{
|
1235
|
-
"id":
|
1235
|
+
"id": 42072,
|
1236
1236
|
"nodeType": "ContractDefinition",
|
1237
1237
|
"src": "2503:1427:100",
|
1238
1238
|
"nodes": [
|
1239
1239
|
{
|
1240
|
-
"id":
|
1240
|
+
"id": 42052,
|
1241
1241
|
"nodeType": "FunctionDefinition",
|
1242
1242
|
"src": "2779:381:100",
|
1243
1243
|
"nodes": [],
|
1244
1244
|
"body": {
|
1245
|
-
"id":
|
1245
|
+
"id": 42051,
|
1246
1246
|
"nodeType": "Block",
|
1247
1247
|
"src": "2840:320:100",
|
1248
1248
|
"nodes": [],
|
@@ -1336,21 +1336,21 @@
|
|
1336
1336
|
"evmVersion": "paris",
|
1337
1337
|
"externalReferences": [
|
1338
1338
|
{
|
1339
|
-
"declaration":
|
1339
|
+
"declaration": 41978,
|
1340
1340
|
"isOffset": false,
|
1341
1341
|
"isSlot": false,
|
1342
1342
|
"src": "3083:13:100",
|
1343
1343
|
"valueSize": 1
|
1344
1344
|
},
|
1345
1345
|
{
|
1346
|
-
"declaration":
|
1346
|
+
"declaration": 42036,
|
1347
1347
|
"isOffset": false,
|
1348
1348
|
"isSlot": false,
|
1349
1349
|
"src": "3032:6:100",
|
1350
1350
|
"valueSize": 1
|
1351
1351
|
}
|
1352
1352
|
],
|
1353
|
-
"id":
|
1353
|
+
"id": 42038,
|
1354
1354
|
"nodeType": "InlineAssembly",
|
1355
1355
|
"src": "2846:259:100"
|
1356
1356
|
},
|
@@ -1360,17 +1360,17 @@
|
|
1360
1360
|
"typeIdentifier": "t_address",
|
1361
1361
|
"typeString": "address"
|
1362
1362
|
},
|
1363
|
-
"id":
|
1363
|
+
"id": 42044,
|
1364
1364
|
"isConstant": false,
|
1365
1365
|
"isLValue": false,
|
1366
1366
|
"isPure": false,
|
1367
1367
|
"lValueRequested": false,
|
1368
1368
|
"leftExpression": {
|
1369
|
-
"id":
|
1369
|
+
"id": 42039,
|
1370
1370
|
"name": "sender",
|
1371
1371
|
"nodeType": "Identifier",
|
1372
1372
|
"overloadedDeclarations": [],
|
1373
|
-
"referencedDeclaration":
|
1373
|
+
"referencedDeclaration": 42036,
|
1374
1374
|
"src": "3114:6:100",
|
1375
1375
|
"typeDescriptions": {
|
1376
1376
|
"typeIdentifier": "t_address",
|
@@ -1383,7 +1383,7 @@
|
|
1383
1383
|
"arguments": [
|
1384
1384
|
{
|
1385
1385
|
"hexValue": "30",
|
1386
|
-
"id":
|
1386
|
+
"id": 42042,
|
1387
1387
|
"isConstant": false,
|
1388
1388
|
"isLValue": false,
|
1389
1389
|
"isPure": true,
|
@@ -1405,7 +1405,7 @@
|
|
1405
1405
|
"typeString": "int_const 0"
|
1406
1406
|
}
|
1407
1407
|
],
|
1408
|
-
"id":
|
1408
|
+
"id": 42041,
|
1409
1409
|
"isConstant": false,
|
1410
1410
|
"isLValue": false,
|
1411
1411
|
"isPure": true,
|
@@ -1417,14 +1417,14 @@
|
|
1417
1417
|
"typeString": "type(address)"
|
1418
1418
|
},
|
1419
1419
|
"typeName": {
|
1420
|
-
"id":
|
1420
|
+
"id": 42040,
|
1421
1421
|
"name": "address",
|
1422
1422
|
"nodeType": "ElementaryTypeName",
|
1423
1423
|
"src": "3124:7:100",
|
1424
1424
|
"typeDescriptions": {}
|
1425
1425
|
}
|
1426
1426
|
},
|
1427
|
-
"id":
|
1427
|
+
"id": 42043,
|
1428
1428
|
"isConstant": false,
|
1429
1429
|
"isLValue": false,
|
1430
1430
|
"isPure": true,
|
@@ -1446,22 +1446,22 @@
|
|
1446
1446
|
"typeString": "bool"
|
1447
1447
|
}
|
1448
1448
|
},
|
1449
|
-
"id":
|
1449
|
+
"id": 42050,
|
1450
1450
|
"nodeType": "IfStatement",
|
1451
1451
|
"src": "3110:45:100",
|
1452
1452
|
"trueBody": {
|
1453
1453
|
"expression": {
|
1454
|
-
"id":
|
1454
|
+
"id": 42048,
|
1455
1455
|
"isConstant": false,
|
1456
1456
|
"isLValue": false,
|
1457
1457
|
"isPure": false,
|
1458
1458
|
"lValueRequested": false,
|
1459
1459
|
"leftHandSide": {
|
1460
|
-
"id":
|
1460
|
+
"id": 42045,
|
1461
1461
|
"name": "sender",
|
1462
1462
|
"nodeType": "Identifier",
|
1463
1463
|
"overloadedDeclarations": [],
|
1464
|
-
"referencedDeclaration":
|
1464
|
+
"referencedDeclaration": 42036,
|
1465
1465
|
"src": "3136:6:100",
|
1466
1466
|
"typeDescriptions": {
|
1467
1467
|
"typeIdentifier": "t_address",
|
@@ -1472,7 +1472,7 @@
|
|
1472
1472
|
"operator": "=",
|
1473
1473
|
"rightHandSide": {
|
1474
1474
|
"expression": {
|
1475
|
-
"id":
|
1475
|
+
"id": 42046,
|
1476
1476
|
"name": "msg",
|
1477
1477
|
"nodeType": "Identifier",
|
1478
1478
|
"overloadedDeclarations": [],
|
@@ -1483,7 +1483,7 @@
|
|
1483
1483
|
"typeString": "msg"
|
1484
1484
|
}
|
1485
1485
|
},
|
1486
|
-
"id":
|
1486
|
+
"id": 42047,
|
1487
1487
|
"isConstant": false,
|
1488
1488
|
"isLValue": false,
|
1489
1489
|
"isPure": false,
|
@@ -1503,7 +1503,7 @@
|
|
1503
1503
|
"typeString": "address"
|
1504
1504
|
}
|
1505
1505
|
},
|
1506
|
-
"id":
|
1506
|
+
"id": 42049,
|
1507
1507
|
"nodeType": "ExpressionStatement",
|
1508
1508
|
"src": "3136:19:100"
|
1509
1509
|
}
|
@@ -1511,7 +1511,7 @@
|
|
1511
1511
|
]
|
1512
1512
|
},
|
1513
1513
|
"documentation": {
|
1514
|
-
"id":
|
1514
|
+
"id": 42033,
|
1515
1515
|
"nodeType": "StructuredDocumentation",
|
1516
1516
|
"src": "2539:237:100",
|
1517
1517
|
"text": " @notice Extract the `msg.sender` from the context appended to the calldata.\n @return sender The `msg.sender` in the call to the World contract before the World routed the\n call to the WorldContextConsumer contract."
|
@@ -1522,23 +1522,23 @@
|
|
1522
1522
|
"name": "_msgSender",
|
1523
1523
|
"nameLocation": "2788:10:100",
|
1524
1524
|
"parameters": {
|
1525
|
-
"id":
|
1525
|
+
"id": 42034,
|
1526
1526
|
"nodeType": "ParameterList",
|
1527
1527
|
"parameters": [],
|
1528
1528
|
"src": "2798:2:100"
|
1529
1529
|
},
|
1530
1530
|
"returnParameters": {
|
1531
|
-
"id":
|
1531
|
+
"id": 42037,
|
1532
1532
|
"nodeType": "ParameterList",
|
1533
1533
|
"parameters": [
|
1534
1534
|
{
|
1535
1535
|
"constant": false,
|
1536
|
-
"id":
|
1536
|
+
"id": 42036,
|
1537
1537
|
"mutability": "mutable",
|
1538
1538
|
"name": "sender",
|
1539
1539
|
"nameLocation": "2832:6:100",
|
1540
1540
|
"nodeType": "VariableDeclaration",
|
1541
|
-
"scope":
|
1541
|
+
"scope": 42052,
|
1542
1542
|
"src": "2824:14:100",
|
1543
1543
|
"stateVariable": false,
|
1544
1544
|
"storageLocation": "default",
|
@@ -1547,7 +1547,7 @@
|
|
1547
1547
|
"typeString": "address"
|
1548
1548
|
},
|
1549
1549
|
"typeName": {
|
1550
|
-
"id":
|
1550
|
+
"id": 42035,
|
1551
1551
|
"name": "address",
|
1552
1552
|
"nodeType": "ElementaryTypeName",
|
1553
1553
|
"src": "2824:7:100",
|
@@ -1562,18 +1562,18 @@
|
|
1562
1562
|
],
|
1563
1563
|
"src": "2823:16:100"
|
1564
1564
|
},
|
1565
|
-
"scope":
|
1565
|
+
"scope": 42072,
|
1566
1566
|
"stateMutability": "view",
|
1567
1567
|
"virtual": false,
|
1568
1568
|
"visibility": "internal"
|
1569
1569
|
},
|
1570
1570
|
{
|
1571
|
-
"id":
|
1571
|
+
"id": 42060,
|
1572
1572
|
"nodeType": "FunctionDefinition",
|
1573
1573
|
"src": "3401:214:100",
|
1574
1574
|
"nodes": [],
|
1575
1575
|
"body": {
|
1576
|
-
"id":
|
1576
|
+
"id": 42059,
|
1577
1577
|
"nodeType": "Block",
|
1578
1578
|
"src": "3460:155:100",
|
1579
1579
|
"nodes": [],
|
@@ -1648,21 +1648,21 @@
|
|
1648
1648
|
"evmVersion": "paris",
|
1649
1649
|
"externalReferences": [
|
1650
1650
|
{
|
1651
|
-
"declaration":
|
1651
|
+
"declaration": 42056,
|
1652
1652
|
"isOffset": false,
|
1653
1653
|
"isSlot": false,
|
1654
1654
|
"src": "3559:5:100",
|
1655
1655
|
"valueSize": 1
|
1656
1656
|
}
|
1657
1657
|
],
|
1658
|
-
"id":
|
1658
|
+
"id": 42058,
|
1659
1659
|
"nodeType": "InlineAssembly",
|
1660
1660
|
"src": "3466:145:100"
|
1661
1661
|
}
|
1662
1662
|
]
|
1663
1663
|
},
|
1664
1664
|
"documentation": {
|
1665
|
-
"id":
|
1665
|
+
"id": 42053,
|
1666
1666
|
"nodeType": "StructuredDocumentation",
|
1667
1667
|
"src": "3164:234:100",
|
1668
1668
|
"text": " @notice Extract the `msg.value` from the context appended to the calldata.\n @return value The `msg.value` in the call to the World contract before the World routed the\n call to the WorldContextConsumer contract."
|
@@ -1673,23 +1673,23 @@
|
|
1673
1673
|
"name": "_msgValue",
|
1674
1674
|
"nameLocation": "3410:9:100",
|
1675
1675
|
"parameters": {
|
1676
|
-
"id":
|
1676
|
+
"id": 42054,
|
1677
1677
|
"nodeType": "ParameterList",
|
1678
1678
|
"parameters": [],
|
1679
1679
|
"src": "3419:2:100"
|
1680
1680
|
},
|
1681
1681
|
"returnParameters": {
|
1682
|
-
"id":
|
1682
|
+
"id": 42057,
|
1683
1683
|
"nodeType": "ParameterList",
|
1684
1684
|
"parameters": [
|
1685
1685
|
{
|
1686
1686
|
"constant": false,
|
1687
|
-
"id":
|
1687
|
+
"id": 42056,
|
1688
1688
|
"mutability": "mutable",
|
1689
1689
|
"name": "value",
|
1690
1690
|
"nameLocation": "3453:5:100",
|
1691
1691
|
"nodeType": "VariableDeclaration",
|
1692
|
-
"scope":
|
1692
|
+
"scope": 42060,
|
1693
1693
|
"src": "3445:13:100",
|
1694
1694
|
"stateVariable": false,
|
1695
1695
|
"storageLocation": "default",
|
@@ -1698,7 +1698,7 @@
|
|
1698
1698
|
"typeString": "uint256"
|
1699
1699
|
},
|
1700
1700
|
"typeName": {
|
1701
|
-
"id":
|
1701
|
+
"id": 42055,
|
1702
1702
|
"name": "uint256",
|
1703
1703
|
"nodeType": "ElementaryTypeName",
|
1704
1704
|
"src": "3445:7:100",
|
@@ -1712,18 +1712,18 @@
|
|
1712
1712
|
],
|
1713
1713
|
"src": "3444:15:100"
|
1714
1714
|
},
|
1715
|
-
"scope":
|
1715
|
+
"scope": 42072,
|
1716
1716
|
"stateMutability": "pure",
|
1717
1717
|
"virtual": false,
|
1718
1718
|
"visibility": "internal"
|
1719
1719
|
},
|
1720
1720
|
{
|
1721
|
-
"id":
|
1721
|
+
"id": 42071,
|
1722
1722
|
"nodeType": "FunctionDefinition",
|
1723
1723
|
"src": "3831:97:100",
|
1724
1724
|
"nodes": [],
|
1725
1725
|
"body": {
|
1726
|
-
"id":
|
1726
|
+
"id": 42070,
|
1727
1727
|
"nodeType": "Block",
|
1728
1728
|
"src": "3881:47:100",
|
1729
1729
|
"nodes": [],
|
@@ -1734,18 +1734,18 @@
|
|
1734
1734
|
"expression": {
|
1735
1735
|
"argumentTypes": [],
|
1736
1736
|
"expression": {
|
1737
|
-
"id":
|
1737
|
+
"id": 42066,
|
1738
1738
|
"name": "StoreSwitch",
|
1739
1739
|
"nodeType": "Identifier",
|
1740
1740
|
"overloadedDeclarations": [],
|
1741
|
-
"referencedDeclaration":
|
1741
|
+
"referencedDeclaration": 33826,
|
1742
1742
|
"src": "3894:11:100",
|
1743
1743
|
"typeDescriptions": {
|
1744
|
-
"typeIdentifier": "t_type$_t_contract$_StoreSwitch_$
|
1744
|
+
"typeIdentifier": "t_type$_t_contract$_StoreSwitch_$33826_$",
|
1745
1745
|
"typeString": "type(library StoreSwitch)"
|
1746
1746
|
}
|
1747
1747
|
},
|
1748
|
-
"id":
|
1748
|
+
"id": 42067,
|
1749
1749
|
"isConstant": false,
|
1750
1750
|
"isLValue": false,
|
1751
1751
|
"isPure": false,
|
@@ -1753,14 +1753,14 @@
|
|
1753
1753
|
"memberLocation": "3906:15:100",
|
1754
1754
|
"memberName": "getStoreAddress",
|
1755
1755
|
"nodeType": "MemberAccess",
|
1756
|
-
"referencedDeclaration":
|
1756
|
+
"referencedDeclaration": 32570,
|
1757
1757
|
"src": "3894:27:100",
|
1758
1758
|
"typeDescriptions": {
|
1759
1759
|
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
|
1760
1760
|
"typeString": "function () view returns (address)"
|
1761
1761
|
}
|
1762
1762
|
},
|
1763
|
-
"id":
|
1763
|
+
"id": 42068,
|
1764
1764
|
"isConstant": false,
|
1765
1765
|
"isLValue": false,
|
1766
1766
|
"isPure": false,
|
@@ -1776,15 +1776,15 @@
|
|
1776
1776
|
"typeString": "address"
|
1777
1777
|
}
|
1778
1778
|
},
|
1779
|
-
"functionReturnParameters":
|
1780
|
-
"id":
|
1779
|
+
"functionReturnParameters": 42065,
|
1780
|
+
"id": 42069,
|
1781
1781
|
"nodeType": "Return",
|
1782
1782
|
"src": "3887:36:100"
|
1783
1783
|
}
|
1784
1784
|
]
|
1785
1785
|
},
|
1786
1786
|
"documentation": {
|
1787
|
-
"id":
|
1787
|
+
"id": 42061,
|
1788
1788
|
"nodeType": "StructuredDocumentation",
|
1789
1789
|
"src": "3619:209:100",
|
1790
1790
|
"text": " @notice Get the address of the World contract that routed the call to this WorldContextConsumer.\n @return The address of the World contract that routed the call to this WorldContextConsumer."
|
@@ -1795,23 +1795,23 @@
|
|
1795
1795
|
"name": "_world",
|
1796
1796
|
"nameLocation": "3840:6:100",
|
1797
1797
|
"parameters": {
|
1798
|
-
"id":
|
1798
|
+
"id": 42062,
|
1799
1799
|
"nodeType": "ParameterList",
|
1800
1800
|
"parameters": [],
|
1801
1801
|
"src": "3846:2:100"
|
1802
1802
|
},
|
1803
1803
|
"returnParameters": {
|
1804
|
-
"id":
|
1804
|
+
"id": 42065,
|
1805
1805
|
"nodeType": "ParameterList",
|
1806
1806
|
"parameters": [
|
1807
1807
|
{
|
1808
1808
|
"constant": false,
|
1809
|
-
"id":
|
1809
|
+
"id": 42064,
|
1810
1810
|
"mutability": "mutable",
|
1811
1811
|
"name": "",
|
1812
1812
|
"nameLocation": "-1:-1:-1",
|
1813
1813
|
"nodeType": "VariableDeclaration",
|
1814
|
-
"scope":
|
1814
|
+
"scope": 42071,
|
1815
1815
|
"src": "3872:7:100",
|
1816
1816
|
"stateVariable": false,
|
1817
1817
|
"storageLocation": "default",
|
@@ -1820,7 +1820,7 @@
|
|
1820
1820
|
"typeString": "address"
|
1821
1821
|
},
|
1822
1822
|
"typeName": {
|
1823
|
-
"id":
|
1823
|
+
"id": 42063,
|
1824
1824
|
"name": "address",
|
1825
1825
|
"nodeType": "ElementaryTypeName",
|
1826
1826
|
"src": "3872:7:100",
|
@@ -1835,7 +1835,7 @@
|
|
1835
1835
|
],
|
1836
1836
|
"src": "3871:9:100"
|
1837
1837
|
},
|
1838
|
-
"scope":
|
1838
|
+
"scope": 42072,
|
1839
1839
|
"stateMutability": "view",
|
1840
1840
|
"virtual": false,
|
1841
1841
|
"visibility": "internal"
|
@@ -1848,26 +1848,26 @@
|
|
1848
1848
|
"contractKind": "library",
|
1849
1849
|
"fullyImplemented": true,
|
1850
1850
|
"linearizedBaseContracts": [
|
1851
|
-
|
1851
|
+
42072
|
1852
1852
|
],
|
1853
1853
|
"name": "WorldContextConsumerLib",
|
1854
1854
|
"nameLocation": "2511:23:100",
|
1855
|
-
"scope":
|
1855
|
+
"scope": 42227,
|
1856
1856
|
"usedErrors": [],
|
1857
1857
|
"usedEvents": []
|
1858
1858
|
},
|
1859
1859
|
{
|
1860
|
-
"id":
|
1860
|
+
"id": 42226,
|
1861
1861
|
"nodeType": "ContractDefinition",
|
1862
1862
|
"src": "4265:3922:100",
|
1863
1863
|
"nodes": [
|
1864
1864
|
{
|
1865
|
-
"id":
|
1865
|
+
"id": 42093,
|
1866
1866
|
"nodeType": "FunctionDefinition",
|
1867
1867
|
"src": "4614:201:100",
|
1868
1868
|
"nodes": [],
|
1869
1869
|
"body": {
|
1870
|
-
"id":
|
1870
|
+
"id": 42092,
|
1871
1871
|
"nodeType": "Block",
|
1872
1872
|
"src": "4750:65:100",
|
1873
1873
|
"nodes": [],
|
@@ -1876,11 +1876,11 @@
|
|
1876
1876
|
"expression": {
|
1877
1877
|
"arguments": [
|
1878
1878
|
{
|
1879
|
-
"id":
|
1879
|
+
"id": 42087,
|
1880
1880
|
"name": "callData",
|
1881
1881
|
"nodeType": "Identifier",
|
1882
1882
|
"overloadedDeclarations": [],
|
1883
|
-
"referencedDeclaration":
|
1883
|
+
"referencedDeclaration": 42076,
|
1884
1884
|
"src": "4780:8:100",
|
1885
1885
|
"typeDescriptions": {
|
1886
1886
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -1888,11 +1888,11 @@
|
|
1888
1888
|
}
|
1889
1889
|
},
|
1890
1890
|
{
|
1891
|
-
"id":
|
1891
|
+
"id": 42088,
|
1892
1892
|
"name": "msgSender",
|
1893
1893
|
"nodeType": "Identifier",
|
1894
1894
|
"overloadedDeclarations": [],
|
1895
|
-
"referencedDeclaration":
|
1895
|
+
"referencedDeclaration": 42078,
|
1896
1896
|
"src": "4790:9:100",
|
1897
1897
|
"typeDescriptions": {
|
1898
1898
|
"typeIdentifier": "t_address",
|
@@ -1900,11 +1900,11 @@
|
|
1900
1900
|
}
|
1901
1901
|
},
|
1902
1902
|
{
|
1903
|
-
"id":
|
1903
|
+
"id": 42089,
|
1904
1904
|
"name": "msgValue",
|
1905
1905
|
"nodeType": "Identifier",
|
1906
1906
|
"overloadedDeclarations": [],
|
1907
|
-
"referencedDeclaration":
|
1907
|
+
"referencedDeclaration": 42080,
|
1908
1908
|
"src": "4801:8:100",
|
1909
1909
|
"typeDescriptions": {
|
1910
1910
|
"typeIdentifier": "t_uint256",
|
@@ -1928,7 +1928,7 @@
|
|
1928
1928
|
}
|
1929
1929
|
],
|
1930
1930
|
"expression": {
|
1931
|
-
"id":
|
1931
|
+
"id": 42085,
|
1932
1932
|
"name": "abi",
|
1933
1933
|
"nodeType": "Identifier",
|
1934
1934
|
"overloadedDeclarations": [],
|
@@ -1939,7 +1939,7 @@
|
|
1939
1939
|
"typeString": "abi"
|
1940
1940
|
}
|
1941
1941
|
},
|
1942
|
-
"id":
|
1942
|
+
"id": 42086,
|
1943
1943
|
"isConstant": false,
|
1944
1944
|
"isLValue": false,
|
1945
1945
|
"isPure": true,
|
@@ -1953,7 +1953,7 @@
|
|
1953
1953
|
"typeString": "function () pure returns (bytes memory)"
|
1954
1954
|
}
|
1955
1955
|
},
|
1956
|
-
"id":
|
1956
|
+
"id": 42090,
|
1957
1957
|
"isConstant": false,
|
1958
1958
|
"isLValue": false,
|
1959
1959
|
"isPure": false,
|
@@ -1969,15 +1969,15 @@
|
|
1969
1969
|
"typeString": "bytes memory"
|
1970
1970
|
}
|
1971
1971
|
},
|
1972
|
-
"functionReturnParameters":
|
1973
|
-
"id":
|
1972
|
+
"functionReturnParameters": 42084,
|
1973
|
+
"id": 42091,
|
1974
1974
|
"nodeType": "Return",
|
1975
1975
|
"src": "4756:54:100"
|
1976
1976
|
}
|
1977
1977
|
]
|
1978
1978
|
},
|
1979
1979
|
"documentation": {
|
1980
|
-
"id":
|
1980
|
+
"id": 42074,
|
1981
1981
|
"nodeType": "StructuredDocumentation",
|
1982
1982
|
"src": "4301:310:100",
|
1983
1983
|
"text": " @notice Appends context values to the given calldata.\n @param callData The original calldata.\n @param msgSender The address of the transaction sender.\n @param msgValue The amount of ether sent with the original transaction.\n @return The new calldata with context values appended."
|
@@ -1988,17 +1988,17 @@
|
|
1988
1988
|
"name": "appendContext",
|
1989
1989
|
"nameLocation": "4623:13:100",
|
1990
1990
|
"parameters": {
|
1991
|
-
"id":
|
1991
|
+
"id": 42081,
|
1992
1992
|
"nodeType": "ParameterList",
|
1993
1993
|
"parameters": [
|
1994
1994
|
{
|
1995
1995
|
"constant": false,
|
1996
|
-
"id":
|
1996
|
+
"id": 42076,
|
1997
1997
|
"mutability": "mutable",
|
1998
1998
|
"name": "callData",
|
1999
1999
|
"nameLocation": "4655:8:100",
|
2000
2000
|
"nodeType": "VariableDeclaration",
|
2001
|
-
"scope":
|
2001
|
+
"scope": 42093,
|
2002
2002
|
"src": "4642:21:100",
|
2003
2003
|
"stateVariable": false,
|
2004
2004
|
"storageLocation": "memory",
|
@@ -2007,7 +2007,7 @@
|
|
2007
2007
|
"typeString": "bytes"
|
2008
2008
|
},
|
2009
2009
|
"typeName": {
|
2010
|
-
"id":
|
2010
|
+
"id": 42075,
|
2011
2011
|
"name": "bytes",
|
2012
2012
|
"nodeType": "ElementaryTypeName",
|
2013
2013
|
"src": "4642:5:100",
|
@@ -2020,12 +2020,12 @@
|
|
2020
2020
|
},
|
2021
2021
|
{
|
2022
2022
|
"constant": false,
|
2023
|
-
"id":
|
2023
|
+
"id": 42078,
|
2024
2024
|
"mutability": "mutable",
|
2025
2025
|
"name": "msgSender",
|
2026
2026
|
"nameLocation": "4677:9:100",
|
2027
2027
|
"nodeType": "VariableDeclaration",
|
2028
|
-
"scope":
|
2028
|
+
"scope": 42093,
|
2029
2029
|
"src": "4669:17:100",
|
2030
2030
|
"stateVariable": false,
|
2031
2031
|
"storageLocation": "default",
|
@@ -2034,7 +2034,7 @@
|
|
2034
2034
|
"typeString": "address"
|
2035
2035
|
},
|
2036
2036
|
"typeName": {
|
2037
|
-
"id":
|
2037
|
+
"id": 42077,
|
2038
2038
|
"name": "address",
|
2039
2039
|
"nodeType": "ElementaryTypeName",
|
2040
2040
|
"src": "4669:7:100",
|
@@ -2048,12 +2048,12 @@
|
|
2048
2048
|
},
|
2049
2049
|
{
|
2050
2050
|
"constant": false,
|
2051
|
-
"id":
|
2051
|
+
"id": 42080,
|
2052
2052
|
"mutability": "mutable",
|
2053
2053
|
"name": "msgValue",
|
2054
2054
|
"nameLocation": "4700:8:100",
|
2055
2055
|
"nodeType": "VariableDeclaration",
|
2056
|
-
"scope":
|
2056
|
+
"scope": 42093,
|
2057
2057
|
"src": "4692:16:100",
|
2058
2058
|
"stateVariable": false,
|
2059
2059
|
"storageLocation": "default",
|
@@ -2062,7 +2062,7 @@
|
|
2062
2062
|
"typeString": "uint256"
|
2063
2063
|
},
|
2064
2064
|
"typeName": {
|
2065
|
-
"id":
|
2065
|
+
"id": 42079,
|
2066
2066
|
"name": "uint256",
|
2067
2067
|
"nodeType": "ElementaryTypeName",
|
2068
2068
|
"src": "4692:7:100",
|
@@ -2077,17 +2077,17 @@
|
|
2077
2077
|
"src": "4636:76:100"
|
2078
2078
|
},
|
2079
2079
|
"returnParameters": {
|
2080
|
-
"id":
|
2080
|
+
"id": 42084,
|
2081
2081
|
"nodeType": "ParameterList",
|
2082
2082
|
"parameters": [
|
2083
2083
|
{
|
2084
2084
|
"constant": false,
|
2085
|
-
"id":
|
2085
|
+
"id": 42083,
|
2086
2086
|
"mutability": "mutable",
|
2087
2087
|
"name": "",
|
2088
2088
|
"nameLocation": "-1:-1:-1",
|
2089
2089
|
"nodeType": "VariableDeclaration",
|
2090
|
-
"scope":
|
2090
|
+
"scope": 42093,
|
2091
2091
|
"src": "4736:12:100",
|
2092
2092
|
"stateVariable": false,
|
2093
2093
|
"storageLocation": "memory",
|
@@ -2096,7 +2096,7 @@
|
|
2096
2096
|
"typeString": "bytes"
|
2097
2097
|
},
|
2098
2098
|
"typeName": {
|
2099
|
-
"id":
|
2099
|
+
"id": 42082,
|
2100
2100
|
"name": "bytes",
|
2101
2101
|
"nodeType": "ElementaryTypeName",
|
2102
2102
|
"src": "4736:5:100",
|
@@ -2110,25 +2110,25 @@
|
|
2110
2110
|
],
|
2111
2111
|
"src": "4735:14:100"
|
2112
2112
|
},
|
2113
|
-
"scope":
|
2113
|
+
"scope": 42226,
|
2114
2114
|
"stateMutability": "pure",
|
2115
2115
|
"virtual": false,
|
2116
2116
|
"visibility": "internal"
|
2117
2117
|
},
|
2118
2118
|
{
|
2119
|
-
"id":
|
2119
|
+
"id": 42125,
|
2120
2120
|
"nodeType": "FunctionDefinition",
|
2121
2121
|
"src": "5311:317:100",
|
2122
2122
|
"nodes": [],
|
2123
2123
|
"body": {
|
2124
|
-
"id":
|
2124
|
+
"id": 42124,
|
2125
2125
|
"nodeType": "Block",
|
2126
2126
|
"src": "5483:145:100",
|
2127
2127
|
"nodes": [],
|
2128
2128
|
"statements": [
|
2129
2129
|
{
|
2130
2130
|
"expression": {
|
2131
|
-
"id":
|
2131
|
+
"id": 42122,
|
2132
2132
|
"isConstant": false,
|
2133
2133
|
"isLValue": false,
|
2134
2134
|
"isPure": false,
|
@@ -2136,11 +2136,11 @@
|
|
2136
2136
|
"leftHandSide": {
|
2137
2137
|
"components": [
|
2138
2138
|
{
|
2139
|
-
"id":
|
2139
|
+
"id": 42109,
|
2140
2140
|
"name": "success",
|
2141
2141
|
"nodeType": "Identifier",
|
2142
2142
|
"overloadedDeclarations": [],
|
2143
|
-
"referencedDeclaration":
|
2143
|
+
"referencedDeclaration": 42105,
|
2144
2144
|
"src": "5490:7:100",
|
2145
2145
|
"typeDescriptions": {
|
2146
2146
|
"typeIdentifier": "t_bool",
|
@@ -2148,11 +2148,11 @@
|
|
2148
2148
|
}
|
2149
2149
|
},
|
2150
2150
|
{
|
2151
|
-
"id":
|
2151
|
+
"id": 42110,
|
2152
2152
|
"name": "data",
|
2153
2153
|
"nodeType": "Identifier",
|
2154
2154
|
"overloadedDeclarations": [],
|
2155
|
-
"referencedDeclaration":
|
2155
|
+
"referencedDeclaration": 42107,
|
2156
2156
|
"src": "5499:4:100",
|
2157
2157
|
"typeDescriptions": {
|
2158
2158
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -2160,7 +2160,7 @@
|
|
2160
2160
|
}
|
2161
2161
|
}
|
2162
2162
|
],
|
2163
|
-
"id":
|
2163
|
+
"id": 42111,
|
2164
2164
|
"isConstant": false,
|
2165
2165
|
"isInlineArray": false,
|
2166
2166
|
"isLValue": true,
|
@@ -2180,11 +2180,11 @@
|
|
2180
2180
|
{
|
2181
2181
|
"arguments": [
|
2182
2182
|
{
|
2183
|
-
"id":
|
2183
|
+
"id": 42117,
|
2184
2184
|
"name": "callData",
|
2185
2185
|
"nodeType": "Identifier",
|
2186
2186
|
"overloadedDeclarations": [],
|
2187
|
-
"referencedDeclaration":
|
2187
|
+
"referencedDeclaration": 42102,
|
2188
2188
|
"src": "5564:8:100",
|
2189
2189
|
"typeDescriptions": {
|
2190
2190
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -2192,11 +2192,11 @@
|
|
2192
2192
|
}
|
2193
2193
|
},
|
2194
2194
|
{
|
2195
|
-
"id":
|
2195
|
+
"id": 42118,
|
2196
2196
|
"name": "msgSender",
|
2197
2197
|
"nodeType": "Identifier",
|
2198
2198
|
"overloadedDeclarations": [],
|
2199
|
-
"referencedDeclaration":
|
2199
|
+
"referencedDeclaration": 42096,
|
2200
2200
|
"src": "5585:9:100",
|
2201
2201
|
"typeDescriptions": {
|
2202
2202
|
"typeIdentifier": "t_address",
|
@@ -2204,11 +2204,11 @@
|
|
2204
2204
|
}
|
2205
2205
|
},
|
2206
2206
|
{
|
2207
|
-
"id":
|
2207
|
+
"id": 42119,
|
2208
2208
|
"name": "msgValue",
|
2209
2209
|
"nodeType": "Identifier",
|
2210
2210
|
"overloadedDeclarations": [],
|
2211
|
-
"referencedDeclaration":
|
2211
|
+
"referencedDeclaration": 42098,
|
2212
2212
|
"src": "5606:8:100",
|
2213
2213
|
"typeDescriptions": {
|
2214
2214
|
"typeIdentifier": "t_uint256",
|
@@ -2231,18 +2231,18 @@
|
|
2231
2231
|
"typeString": "uint256"
|
2232
2232
|
}
|
2233
2233
|
],
|
2234
|
-
"id":
|
2234
|
+
"id": 42116,
|
2235
2235
|
"name": "appendContext",
|
2236
2236
|
"nodeType": "Identifier",
|
2237
2237
|
"overloadedDeclarations": [],
|
2238
|
-
"referencedDeclaration":
|
2238
|
+
"referencedDeclaration": 42093,
|
2239
2239
|
"src": "5538:13:100",
|
2240
2240
|
"typeDescriptions": {
|
2241
2241
|
"typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_address_$_t_uint256_$returns$_t_bytes_memory_ptr_$",
|
2242
2242
|
"typeString": "function (bytes memory,address,uint256) pure returns (bytes memory)"
|
2243
2243
|
}
|
2244
2244
|
},
|
2245
|
-
"id":
|
2245
|
+
"id": 42120,
|
2246
2246
|
"isConstant": false,
|
2247
2247
|
"isLValue": false,
|
2248
2248
|
"isPure": false,
|
@@ -2282,18 +2282,18 @@
|
|
2282
2282
|
}
|
2283
2283
|
],
|
2284
2284
|
"expression": {
|
2285
|
-
"id":
|
2285
|
+
"id": 42112,
|
2286
2286
|
"name": "target",
|
2287
2287
|
"nodeType": "Identifier",
|
2288
2288
|
"overloadedDeclarations": [],
|
2289
|
-
"referencedDeclaration":
|
2289
|
+
"referencedDeclaration": 42100,
|
2290
2290
|
"src": "5507:6:100",
|
2291
2291
|
"typeDescriptions": {
|
2292
2292
|
"typeIdentifier": "t_address",
|
2293
2293
|
"typeString": "address"
|
2294
2294
|
}
|
2295
2295
|
},
|
2296
|
-
"id":
|
2296
|
+
"id": 42113,
|
2297
2297
|
"isConstant": false,
|
2298
2298
|
"isLValue": false,
|
2299
2299
|
"isPure": false,
|
@@ -2307,7 +2307,7 @@
|
|
2307
2307
|
"typeString": "function (bytes memory) payable returns (bool,bytes memory)"
|
2308
2308
|
}
|
2309
2309
|
},
|
2310
|
-
"id":
|
2310
|
+
"id": 42115,
|
2311
2311
|
"isConstant": false,
|
2312
2312
|
"isLValue": false,
|
2313
2313
|
"isPure": false,
|
@@ -2319,7 +2319,7 @@
|
|
2319
2319
|
"options": [
|
2320
2320
|
{
|
2321
2321
|
"hexValue": "30",
|
2322
|
-
"id":
|
2322
|
+
"id": 42114,
|
2323
2323
|
"isConstant": false,
|
2324
2324
|
"isLValue": false,
|
2325
2325
|
"isPure": true,
|
@@ -2340,7 +2340,7 @@
|
|
2340
2340
|
"typeString": "function (bytes memory) payable returns (bool,bytes memory)"
|
2341
2341
|
}
|
2342
2342
|
},
|
2343
|
-
"id":
|
2343
|
+
"id": 42121,
|
2344
2344
|
"isConstant": false,
|
2345
2345
|
"isLValue": false,
|
2346
2346
|
"isPure": false,
|
@@ -2362,14 +2362,14 @@
|
|
2362
2362
|
"typeString": "tuple()"
|
2363
2363
|
}
|
2364
2364
|
},
|
2365
|
-
"id":
|
2365
|
+
"id": 42123,
|
2366
2366
|
"nodeType": "ExpressionStatement",
|
2367
2367
|
"src": "5489:134:100"
|
2368
2368
|
}
|
2369
2369
|
]
|
2370
2370
|
},
|
2371
2371
|
"documentation": {
|
2372
|
-
"id":
|
2372
|
+
"id": 42094,
|
2373
2373
|
"nodeType": "StructuredDocumentation",
|
2374
2374
|
"src": "4819:489:100",
|
2375
2375
|
"text": " @notice Makes a call to the target contract with context values appended to the calldata.\n @param msgSender The address of the transaction sender.\n @param msgValue The amount of ether sent with the original transaction.\n @param target The address of the contract to call.\n @param callData The calldata for the call.\n @return success A boolean indicating whether the call was successful or not.\n @return data The abi encoded return data from the call."
|
@@ -2380,17 +2380,17 @@
|
|
2380
2380
|
"name": "callWithContext",
|
2381
2381
|
"nameLocation": "5320:15:100",
|
2382
2382
|
"parameters": {
|
2383
|
-
"id":
|
2383
|
+
"id": 42103,
|
2384
2384
|
"nodeType": "ParameterList",
|
2385
2385
|
"parameters": [
|
2386
2386
|
{
|
2387
2387
|
"constant": false,
|
2388
|
-
"id":
|
2388
|
+
"id": 42096,
|
2389
2389
|
"mutability": "mutable",
|
2390
2390
|
"name": "msgSender",
|
2391
2391
|
"nameLocation": "5349:9:100",
|
2392
2392
|
"nodeType": "VariableDeclaration",
|
2393
|
-
"scope":
|
2393
|
+
"scope": 42125,
|
2394
2394
|
"src": "5341:17:100",
|
2395
2395
|
"stateVariable": false,
|
2396
2396
|
"storageLocation": "default",
|
@@ -2399,7 +2399,7 @@
|
|
2399
2399
|
"typeString": "address"
|
2400
2400
|
},
|
2401
2401
|
"typeName": {
|
2402
|
-
"id":
|
2402
|
+
"id": 42095,
|
2403
2403
|
"name": "address",
|
2404
2404
|
"nodeType": "ElementaryTypeName",
|
2405
2405
|
"src": "5341:7:100",
|
@@ -2413,12 +2413,12 @@
|
|
2413
2413
|
},
|
2414
2414
|
{
|
2415
2415
|
"constant": false,
|
2416
|
-
"id":
|
2416
|
+
"id": 42098,
|
2417
2417
|
"mutability": "mutable",
|
2418
2418
|
"name": "msgValue",
|
2419
2419
|
"nameLocation": "5372:8:100",
|
2420
2420
|
"nodeType": "VariableDeclaration",
|
2421
|
-
"scope":
|
2421
|
+
"scope": 42125,
|
2422
2422
|
"src": "5364:16:100",
|
2423
2423
|
"stateVariable": false,
|
2424
2424
|
"storageLocation": "default",
|
@@ -2427,7 +2427,7 @@
|
|
2427
2427
|
"typeString": "uint256"
|
2428
2428
|
},
|
2429
2429
|
"typeName": {
|
2430
|
-
"id":
|
2430
|
+
"id": 42097,
|
2431
2431
|
"name": "uint256",
|
2432
2432
|
"nodeType": "ElementaryTypeName",
|
2433
2433
|
"src": "5364:7:100",
|
@@ -2440,12 +2440,12 @@
|
|
2440
2440
|
},
|
2441
2441
|
{
|
2442
2442
|
"constant": false,
|
2443
|
-
"id":
|
2443
|
+
"id": 42100,
|
2444
2444
|
"mutability": "mutable",
|
2445
2445
|
"name": "target",
|
2446
2446
|
"nameLocation": "5394:6:100",
|
2447
2447
|
"nodeType": "VariableDeclaration",
|
2448
|
-
"scope":
|
2448
|
+
"scope": 42125,
|
2449
2449
|
"src": "5386:14:100",
|
2450
2450
|
"stateVariable": false,
|
2451
2451
|
"storageLocation": "default",
|
@@ -2454,7 +2454,7 @@
|
|
2454
2454
|
"typeString": "address"
|
2455
2455
|
},
|
2456
2456
|
"typeName": {
|
2457
|
-
"id":
|
2457
|
+
"id": 42099,
|
2458
2458
|
"name": "address",
|
2459
2459
|
"nodeType": "ElementaryTypeName",
|
2460
2460
|
"src": "5386:7:100",
|
@@ -2468,12 +2468,12 @@
|
|
2468
2468
|
},
|
2469
2469
|
{
|
2470
2470
|
"constant": false,
|
2471
|
-
"id":
|
2471
|
+
"id": 42102,
|
2472
2472
|
"mutability": "mutable",
|
2473
2473
|
"name": "callData",
|
2474
2474
|
"nameLocation": "5419:8:100",
|
2475
2475
|
"nodeType": "VariableDeclaration",
|
2476
|
-
"scope":
|
2476
|
+
"scope": 42125,
|
2477
2477
|
"src": "5406:21:100",
|
2478
2478
|
"stateVariable": false,
|
2479
2479
|
"storageLocation": "memory",
|
@@ -2482,7 +2482,7 @@
|
|
2482
2482
|
"typeString": "bytes"
|
2483
2483
|
},
|
2484
2484
|
"typeName": {
|
2485
|
-
"id":
|
2485
|
+
"id": 42101,
|
2486
2486
|
"name": "bytes",
|
2487
2487
|
"nodeType": "ElementaryTypeName",
|
2488
2488
|
"src": "5406:5:100",
|
@@ -2497,17 +2497,17 @@
|
|
2497
2497
|
"src": "5335:96:100"
|
2498
2498
|
},
|
2499
2499
|
"returnParameters": {
|
2500
|
-
"id":
|
2500
|
+
"id": 42108,
|
2501
2501
|
"nodeType": "ParameterList",
|
2502
2502
|
"parameters": [
|
2503
2503
|
{
|
2504
2504
|
"constant": false,
|
2505
|
-
"id":
|
2505
|
+
"id": 42105,
|
2506
2506
|
"mutability": "mutable",
|
2507
2507
|
"name": "success",
|
2508
2508
|
"nameLocation": "5455:7:100",
|
2509
2509
|
"nodeType": "VariableDeclaration",
|
2510
|
-
"scope":
|
2510
|
+
"scope": 42125,
|
2511
2511
|
"src": "5450:12:100",
|
2512
2512
|
"stateVariable": false,
|
2513
2513
|
"storageLocation": "default",
|
@@ -2516,7 +2516,7 @@
|
|
2516
2516
|
"typeString": "bool"
|
2517
2517
|
},
|
2518
2518
|
"typeName": {
|
2519
|
-
"id":
|
2519
|
+
"id": 42104,
|
2520
2520
|
"name": "bool",
|
2521
2521
|
"nodeType": "ElementaryTypeName",
|
2522
2522
|
"src": "5450:4:100",
|
@@ -2529,12 +2529,12 @@
|
|
2529
2529
|
},
|
2530
2530
|
{
|
2531
2531
|
"constant": false,
|
2532
|
-
"id":
|
2532
|
+
"id": 42107,
|
2533
2533
|
"mutability": "mutable",
|
2534
2534
|
"name": "data",
|
2535
2535
|
"nameLocation": "5477:4:100",
|
2536
2536
|
"nodeType": "VariableDeclaration",
|
2537
|
-
"scope":
|
2537
|
+
"scope": 42125,
|
2538
2538
|
"src": "5464:17:100",
|
2539
2539
|
"stateVariable": false,
|
2540
2540
|
"storageLocation": "memory",
|
@@ -2543,7 +2543,7 @@
|
|
2543
2543
|
"typeString": "bytes"
|
2544
2544
|
},
|
2545
2545
|
"typeName": {
|
2546
|
-
"id":
|
2546
|
+
"id": 42106,
|
2547
2547
|
"name": "bytes",
|
2548
2548
|
"nodeType": "ElementaryTypeName",
|
2549
2549
|
"src": "5464:5:100",
|
@@ -2557,25 +2557,25 @@
|
|
2557
2557
|
],
|
2558
2558
|
"src": "5449:33:100"
|
2559
2559
|
},
|
2560
|
-
"scope":
|
2560
|
+
"scope": 42226,
|
2561
2561
|
"stateMutability": "nonpayable",
|
2562
2562
|
"virtual": false,
|
2563
2563
|
"visibility": "internal"
|
2564
2564
|
},
|
2565
2565
|
{
|
2566
|
-
"id":
|
2566
|
+
"id": 42155,
|
2567
2567
|
"nodeType": "FunctionDefinition",
|
2568
2568
|
"src": "6132:321:100",
|
2569
2569
|
"nodes": [],
|
2570
2570
|
"body": {
|
2571
|
-
"id":
|
2571
|
+
"id": 42154,
|
2572
2572
|
"nodeType": "Block",
|
2573
2573
|
"src": "6312:141:100",
|
2574
2574
|
"nodes": [],
|
2575
2575
|
"statements": [
|
2576
2576
|
{
|
2577
2577
|
"expression": {
|
2578
|
-
"id":
|
2578
|
+
"id": 42152,
|
2579
2579
|
"isConstant": false,
|
2580
2580
|
"isLValue": false,
|
2581
2581
|
"isPure": false,
|
@@ -2583,11 +2583,11 @@
|
|
2583
2583
|
"leftHandSide": {
|
2584
2584
|
"components": [
|
2585
2585
|
{
|
2586
|
-
"id":
|
2586
|
+
"id": 42141,
|
2587
2587
|
"name": "success",
|
2588
2588
|
"nodeType": "Identifier",
|
2589
2589
|
"overloadedDeclarations": [],
|
2590
|
-
"referencedDeclaration":
|
2590
|
+
"referencedDeclaration": 42137,
|
2591
2591
|
"src": "6319:7:100",
|
2592
2592
|
"typeDescriptions": {
|
2593
2593
|
"typeIdentifier": "t_bool",
|
@@ -2595,11 +2595,11 @@
|
|
2595
2595
|
}
|
2596
2596
|
},
|
2597
2597
|
{
|
2598
|
-
"id":
|
2598
|
+
"id": 42142,
|
2599
2599
|
"name": "data",
|
2600
2600
|
"nodeType": "Identifier",
|
2601
2601
|
"overloadedDeclarations": [],
|
2602
|
-
"referencedDeclaration":
|
2602
|
+
"referencedDeclaration": 42139,
|
2603
2603
|
"src": "6328:4:100",
|
2604
2604
|
"typeDescriptions": {
|
2605
2605
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -2607,7 +2607,7 @@
|
|
2607
2607
|
}
|
2608
2608
|
}
|
2609
2609
|
],
|
2610
|
-
"id":
|
2610
|
+
"id": 42143,
|
2611
2611
|
"isConstant": false,
|
2612
2612
|
"isInlineArray": false,
|
2613
2613
|
"isLValue": true,
|
@@ -2627,11 +2627,11 @@
|
|
2627
2627
|
{
|
2628
2628
|
"arguments": [
|
2629
2629
|
{
|
2630
|
-
"id":
|
2630
|
+
"id": 42147,
|
2631
2631
|
"name": "callData",
|
2632
2632
|
"nodeType": "Identifier",
|
2633
2633
|
"overloadedDeclarations": [],
|
2634
|
-
"referencedDeclaration":
|
2634
|
+
"referencedDeclaration": 42134,
|
2635
2635
|
"src": "6389:8:100",
|
2636
2636
|
"typeDescriptions": {
|
2637
2637
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -2639,11 +2639,11 @@
|
|
2639
2639
|
}
|
2640
2640
|
},
|
2641
2641
|
{
|
2642
|
-
"id":
|
2642
|
+
"id": 42148,
|
2643
2643
|
"name": "msgSender",
|
2644
2644
|
"nodeType": "Identifier",
|
2645
2645
|
"overloadedDeclarations": [],
|
2646
|
-
"referencedDeclaration":
|
2646
|
+
"referencedDeclaration": 42128,
|
2647
2647
|
"src": "6410:9:100",
|
2648
2648
|
"typeDescriptions": {
|
2649
2649
|
"typeIdentifier": "t_address",
|
@@ -2651,11 +2651,11 @@
|
|
2651
2651
|
}
|
2652
2652
|
},
|
2653
2653
|
{
|
2654
|
-
"id":
|
2654
|
+
"id": 42149,
|
2655
2655
|
"name": "msgValue",
|
2656
2656
|
"nodeType": "Identifier",
|
2657
2657
|
"overloadedDeclarations": [],
|
2658
|
-
"referencedDeclaration":
|
2658
|
+
"referencedDeclaration": 42130,
|
2659
2659
|
"src": "6431:8:100",
|
2660
2660
|
"typeDescriptions": {
|
2661
2661
|
"typeIdentifier": "t_uint256",
|
@@ -2678,18 +2678,18 @@
|
|
2678
2678
|
"typeString": "uint256"
|
2679
2679
|
}
|
2680
2680
|
],
|
2681
|
-
"id":
|
2681
|
+
"id": 42146,
|
2682
2682
|
"name": "appendContext",
|
2683
2683
|
"nodeType": "Identifier",
|
2684
2684
|
"overloadedDeclarations": [],
|
2685
|
-
"referencedDeclaration":
|
2685
|
+
"referencedDeclaration": 42093,
|
2686
2686
|
"src": "6363:13:100",
|
2687
2687
|
"typeDescriptions": {
|
2688
2688
|
"typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_address_$_t_uint256_$returns$_t_bytes_memory_ptr_$",
|
2689
2689
|
"typeString": "function (bytes memory,address,uint256) pure returns (bytes memory)"
|
2690
2690
|
}
|
2691
2691
|
},
|
2692
|
-
"id":
|
2692
|
+
"id": 42150,
|
2693
2693
|
"isConstant": false,
|
2694
2694
|
"isLValue": false,
|
2695
2695
|
"isPure": false,
|
@@ -2722,18 +2722,18 @@
|
|
2722
2722
|
}
|
2723
2723
|
],
|
2724
2724
|
"expression": {
|
2725
|
-
"id":
|
2725
|
+
"id": 42144,
|
2726
2726
|
"name": "target",
|
2727
2727
|
"nodeType": "Identifier",
|
2728
2728
|
"overloadedDeclarations": [],
|
2729
|
-
"referencedDeclaration":
|
2729
|
+
"referencedDeclaration": 42132,
|
2730
2730
|
"src": "6336:6:100",
|
2731
2731
|
"typeDescriptions": {
|
2732
2732
|
"typeIdentifier": "t_address",
|
2733
2733
|
"typeString": "address"
|
2734
2734
|
}
|
2735
2735
|
},
|
2736
|
-
"id":
|
2736
|
+
"id": 42145,
|
2737
2737
|
"isConstant": false,
|
2738
2738
|
"isLValue": false,
|
2739
2739
|
"isPure": false,
|
@@ -2747,7 +2747,7 @@
|
|
2747
2747
|
"typeString": "function (bytes memory) returns (bool,bytes memory)"
|
2748
2748
|
}
|
2749
2749
|
},
|
2750
|
-
"id":
|
2750
|
+
"id": 42151,
|
2751
2751
|
"isConstant": false,
|
2752
2752
|
"isLValue": false,
|
2753
2753
|
"isPure": false,
|
@@ -2769,14 +2769,14 @@
|
|
2769
2769
|
"typeString": "tuple()"
|
2770
2770
|
}
|
2771
2771
|
},
|
2772
|
-
"id":
|
2772
|
+
"id": 42153,
|
2773
2773
|
"nodeType": "ExpressionStatement",
|
2774
2774
|
"src": "6318:130:100"
|
2775
2775
|
}
|
2776
2776
|
]
|
2777
2777
|
},
|
2778
2778
|
"documentation": {
|
2779
|
-
"id":
|
2779
|
+
"id": 42126,
|
2780
2780
|
"nodeType": "StructuredDocumentation",
|
2781
2781
|
"src": "5632:497:100",
|
2782
2782
|
"text": " @notice Makes a delegatecall to the target contract with context values appended to the calldata.\n @param msgSender The address of the transaction sender.\n @param msgValue The amount of ether sent with the original transaction.\n @param target The address of the contract to call.\n @param callData The calldata for the call.\n @return success A boolean indicating whether the call was successful or not.\n @return data The abi encoded return data from the call."
|
@@ -2787,17 +2787,17 @@
|
|
2787
2787
|
"name": "delegatecallWithContext",
|
2788
2788
|
"nameLocation": "6141:23:100",
|
2789
2789
|
"parameters": {
|
2790
|
-
"id":
|
2790
|
+
"id": 42135,
|
2791
2791
|
"nodeType": "ParameterList",
|
2792
2792
|
"parameters": [
|
2793
2793
|
{
|
2794
2794
|
"constant": false,
|
2795
|
-
"id":
|
2795
|
+
"id": 42128,
|
2796
2796
|
"mutability": "mutable",
|
2797
2797
|
"name": "msgSender",
|
2798
2798
|
"nameLocation": "6178:9:100",
|
2799
2799
|
"nodeType": "VariableDeclaration",
|
2800
|
-
"scope":
|
2800
|
+
"scope": 42155,
|
2801
2801
|
"src": "6170:17:100",
|
2802
2802
|
"stateVariable": false,
|
2803
2803
|
"storageLocation": "default",
|
@@ -2806,7 +2806,7 @@
|
|
2806
2806
|
"typeString": "address"
|
2807
2807
|
},
|
2808
2808
|
"typeName": {
|
2809
|
-
"id":
|
2809
|
+
"id": 42127,
|
2810
2810
|
"name": "address",
|
2811
2811
|
"nodeType": "ElementaryTypeName",
|
2812
2812
|
"src": "6170:7:100",
|
@@ -2820,12 +2820,12 @@
|
|
2820
2820
|
},
|
2821
2821
|
{
|
2822
2822
|
"constant": false,
|
2823
|
-
"id":
|
2823
|
+
"id": 42130,
|
2824
2824
|
"mutability": "mutable",
|
2825
2825
|
"name": "msgValue",
|
2826
2826
|
"nameLocation": "6201:8:100",
|
2827
2827
|
"nodeType": "VariableDeclaration",
|
2828
|
-
"scope":
|
2828
|
+
"scope": 42155,
|
2829
2829
|
"src": "6193:16:100",
|
2830
2830
|
"stateVariable": false,
|
2831
2831
|
"storageLocation": "default",
|
@@ -2834,7 +2834,7 @@
|
|
2834
2834
|
"typeString": "uint256"
|
2835
2835
|
},
|
2836
2836
|
"typeName": {
|
2837
|
-
"id":
|
2837
|
+
"id": 42129,
|
2838
2838
|
"name": "uint256",
|
2839
2839
|
"nodeType": "ElementaryTypeName",
|
2840
2840
|
"src": "6193:7:100",
|
@@ -2847,12 +2847,12 @@
|
|
2847
2847
|
},
|
2848
2848
|
{
|
2849
2849
|
"constant": false,
|
2850
|
-
"id":
|
2850
|
+
"id": 42132,
|
2851
2851
|
"mutability": "mutable",
|
2852
2852
|
"name": "target",
|
2853
2853
|
"nameLocation": "6223:6:100",
|
2854
2854
|
"nodeType": "VariableDeclaration",
|
2855
|
-
"scope":
|
2855
|
+
"scope": 42155,
|
2856
2856
|
"src": "6215:14:100",
|
2857
2857
|
"stateVariable": false,
|
2858
2858
|
"storageLocation": "default",
|
@@ -2861,7 +2861,7 @@
|
|
2861
2861
|
"typeString": "address"
|
2862
2862
|
},
|
2863
2863
|
"typeName": {
|
2864
|
-
"id":
|
2864
|
+
"id": 42131,
|
2865
2865
|
"name": "address",
|
2866
2866
|
"nodeType": "ElementaryTypeName",
|
2867
2867
|
"src": "6215:7:100",
|
@@ -2875,12 +2875,12 @@
|
|
2875
2875
|
},
|
2876
2876
|
{
|
2877
2877
|
"constant": false,
|
2878
|
-
"id":
|
2878
|
+
"id": 42134,
|
2879
2879
|
"mutability": "mutable",
|
2880
2880
|
"name": "callData",
|
2881
2881
|
"nameLocation": "6248:8:100",
|
2882
2882
|
"nodeType": "VariableDeclaration",
|
2883
|
-
"scope":
|
2883
|
+
"scope": 42155,
|
2884
2884
|
"src": "6235:21:100",
|
2885
2885
|
"stateVariable": false,
|
2886
2886
|
"storageLocation": "memory",
|
@@ -2889,7 +2889,7 @@
|
|
2889
2889
|
"typeString": "bytes"
|
2890
2890
|
},
|
2891
2891
|
"typeName": {
|
2892
|
-
"id":
|
2892
|
+
"id": 42133,
|
2893
2893
|
"name": "bytes",
|
2894
2894
|
"nodeType": "ElementaryTypeName",
|
2895
2895
|
"src": "6235:5:100",
|
@@ -2904,17 +2904,17 @@
|
|
2904
2904
|
"src": "6164:96:100"
|
2905
2905
|
},
|
2906
2906
|
"returnParameters": {
|
2907
|
-
"id":
|
2907
|
+
"id": 42140,
|
2908
2908
|
"nodeType": "ParameterList",
|
2909
2909
|
"parameters": [
|
2910
2910
|
{
|
2911
2911
|
"constant": false,
|
2912
|
-
"id":
|
2912
|
+
"id": 42137,
|
2913
2913
|
"mutability": "mutable",
|
2914
2914
|
"name": "success",
|
2915
2915
|
"nameLocation": "6284:7:100",
|
2916
2916
|
"nodeType": "VariableDeclaration",
|
2917
|
-
"scope":
|
2917
|
+
"scope": 42155,
|
2918
2918
|
"src": "6279:12:100",
|
2919
2919
|
"stateVariable": false,
|
2920
2920
|
"storageLocation": "default",
|
@@ -2923,7 +2923,7 @@
|
|
2923
2923
|
"typeString": "bool"
|
2924
2924
|
},
|
2925
2925
|
"typeName": {
|
2926
|
-
"id":
|
2926
|
+
"id": 42136,
|
2927
2927
|
"name": "bool",
|
2928
2928
|
"nodeType": "ElementaryTypeName",
|
2929
2929
|
"src": "6279:4:100",
|
@@ -2936,12 +2936,12 @@
|
|
2936
2936
|
},
|
2937
2937
|
{
|
2938
2938
|
"constant": false,
|
2939
|
-
"id":
|
2939
|
+
"id": 42139,
|
2940
2940
|
"mutability": "mutable",
|
2941
2941
|
"name": "data",
|
2942
2942
|
"nameLocation": "6306:4:100",
|
2943
2943
|
"nodeType": "VariableDeclaration",
|
2944
|
-
"scope":
|
2944
|
+
"scope": 42155,
|
2945
2945
|
"src": "6293:17:100",
|
2946
2946
|
"stateVariable": false,
|
2947
2947
|
"storageLocation": "memory",
|
@@ -2950,7 +2950,7 @@
|
|
2950
2950
|
"typeString": "bytes"
|
2951
2951
|
},
|
2952
2952
|
"typeName": {
|
2953
|
-
"id":
|
2953
|
+
"id": 42138,
|
2954
2954
|
"name": "bytes",
|
2955
2955
|
"nodeType": "ElementaryTypeName",
|
2956
2956
|
"src": "6293:5:100",
|
@@ -2964,36 +2964,36 @@
|
|
2964
2964
|
],
|
2965
2965
|
"src": "6278:33:100"
|
2966
2966
|
},
|
2967
|
-
"scope":
|
2967
|
+
"scope": 42226,
|
2968
2968
|
"stateMutability": "nonpayable",
|
2969
2969
|
"virtual": false,
|
2970
2970
|
"visibility": "internal"
|
2971
2971
|
},
|
2972
2972
|
{
|
2973
|
-
"id":
|
2973
|
+
"id": 42190,
|
2974
2974
|
"nodeType": "FunctionDefinition",
|
2975
2975
|
"src": "6908:399:100",
|
2976
2976
|
"nodes": [],
|
2977
2977
|
"body": {
|
2978
|
-
"id":
|
2978
|
+
"id": 42189,
|
2979
2979
|
"nodeType": "Block",
|
2980
2980
|
"src": "7074:233:100",
|
2981
2981
|
"nodes": [],
|
2982
2982
|
"statements": [
|
2983
2983
|
{
|
2984
2984
|
"assignments": [
|
2985
|
-
|
2986
|
-
|
2985
|
+
42170,
|
2986
|
+
42172
|
2987
2987
|
],
|
2988
2988
|
"declarations": [
|
2989
2989
|
{
|
2990
2990
|
"constant": false,
|
2991
|
-
"id":
|
2991
|
+
"id": 42170,
|
2992
2992
|
"mutability": "mutable",
|
2993
2993
|
"name": "success",
|
2994
2994
|
"nameLocation": "7086:7:100",
|
2995
2995
|
"nodeType": "VariableDeclaration",
|
2996
|
-
"scope":
|
2996
|
+
"scope": 42189,
|
2997
2997
|
"src": "7081:12:100",
|
2998
2998
|
"stateVariable": false,
|
2999
2999
|
"storageLocation": "default",
|
@@ -3002,7 +3002,7 @@
|
|
3002
3002
|
"typeString": "bool"
|
3003
3003
|
},
|
3004
3004
|
"typeName": {
|
3005
|
-
"id":
|
3005
|
+
"id": 42169,
|
3006
3006
|
"name": "bool",
|
3007
3007
|
"nodeType": "ElementaryTypeName",
|
3008
3008
|
"src": "7081:4:100",
|
@@ -3015,12 +3015,12 @@
|
|
3015
3015
|
},
|
3016
3016
|
{
|
3017
3017
|
"constant": false,
|
3018
|
-
"id":
|
3018
|
+
"id": 42172,
|
3019
3019
|
"mutability": "mutable",
|
3020
3020
|
"name": "_data",
|
3021
3021
|
"nameLocation": "7108:5:100",
|
3022
3022
|
"nodeType": "VariableDeclaration",
|
3023
|
-
"scope":
|
3023
|
+
"scope": 42189,
|
3024
3024
|
"src": "7095:18:100",
|
3025
3025
|
"stateVariable": false,
|
3026
3026
|
"storageLocation": "memory",
|
@@ -3029,7 +3029,7 @@
|
|
3029
3029
|
"typeString": "bytes"
|
3030
3030
|
},
|
3031
3031
|
"typeName": {
|
3032
|
-
"id":
|
3032
|
+
"id": 42171,
|
3033
3033
|
"name": "bytes",
|
3034
3034
|
"nodeType": "ElementaryTypeName",
|
3035
3035
|
"src": "7095:5:100",
|
@@ -3041,15 +3041,15 @@
|
|
3041
3041
|
"visibility": "internal"
|
3042
3042
|
}
|
3043
3043
|
],
|
3044
|
-
"id":
|
3044
|
+
"id": 42179,
|
3045
3045
|
"initialValue": {
|
3046
3046
|
"arguments": [
|
3047
3047
|
{
|
3048
|
-
"id":
|
3048
|
+
"id": 42174,
|
3049
3049
|
"name": "msgSender",
|
3050
3050
|
"nodeType": "Identifier",
|
3051
3051
|
"overloadedDeclarations": [],
|
3052
|
-
"referencedDeclaration":
|
3052
|
+
"referencedDeclaration": 42158,
|
3053
3053
|
"src": "7152:9:100",
|
3054
3054
|
"typeDescriptions": {
|
3055
3055
|
"typeIdentifier": "t_address",
|
@@ -3057,11 +3057,11 @@
|
|
3057
3057
|
}
|
3058
3058
|
},
|
3059
3059
|
{
|
3060
|
-
"id":
|
3060
|
+
"id": 42175,
|
3061
3061
|
"name": "msgValue",
|
3062
3062
|
"nodeType": "Identifier",
|
3063
3063
|
"overloadedDeclarations": [],
|
3064
|
-
"referencedDeclaration":
|
3064
|
+
"referencedDeclaration": 42160,
|
3065
3065
|
"src": "7179:8:100",
|
3066
3066
|
"typeDescriptions": {
|
3067
3067
|
"typeIdentifier": "t_uint256",
|
@@ -3069,11 +3069,11 @@
|
|
3069
3069
|
}
|
3070
3070
|
},
|
3071
3071
|
{
|
3072
|
-
"id":
|
3072
|
+
"id": 42176,
|
3073
3073
|
"name": "target",
|
3074
3074
|
"nodeType": "Identifier",
|
3075
3075
|
"overloadedDeclarations": [],
|
3076
|
-
"referencedDeclaration":
|
3076
|
+
"referencedDeclaration": 42162,
|
3077
3077
|
"src": "7203:6:100",
|
3078
3078
|
"typeDescriptions": {
|
3079
3079
|
"typeIdentifier": "t_address",
|
@@ -3081,11 +3081,11 @@
|
|
3081
3081
|
}
|
3082
3082
|
},
|
3083
3083
|
{
|
3084
|
-
"id":
|
3084
|
+
"id": 42177,
|
3085
3085
|
"name": "callData",
|
3086
3086
|
"nodeType": "Identifier",
|
3087
3087
|
"overloadedDeclarations": [],
|
3088
|
-
"referencedDeclaration":
|
3088
|
+
"referencedDeclaration": 42164,
|
3089
3089
|
"src": "7227:8:100",
|
3090
3090
|
"typeDescriptions": {
|
3091
3091
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -3112,18 +3112,18 @@
|
|
3112
3112
|
"typeString": "bytes memory"
|
3113
3113
|
}
|
3114
3114
|
],
|
3115
|
-
"id":
|
3115
|
+
"id": 42173,
|
3116
3116
|
"name": "callWithContext",
|
3117
3117
|
"nodeType": "Identifier",
|
3118
3118
|
"overloadedDeclarations": [],
|
3119
|
-
"referencedDeclaration":
|
3119
|
+
"referencedDeclaration": 42125,
|
3120
3120
|
"src": "7117:15:100",
|
3121
3121
|
"typeDescriptions": {
|
3122
3122
|
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_address_$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$",
|
3123
3123
|
"typeString": "function (address,uint256,address,bytes memory) returns (bool,bytes memory)"
|
3124
3124
|
}
|
3125
3125
|
},
|
3126
|
-
"id":
|
3126
|
+
"id": 42178,
|
3127
3127
|
"isConstant": false,
|
3128
3128
|
"isLValue": false,
|
3129
3129
|
"isPure": false,
|
@@ -3154,7 +3154,7 @@
|
|
3154
3154
|
},
|
3155
3155
|
{
|
3156
3156
|
"condition": {
|
3157
|
-
"id":
|
3157
|
+
"id": 42181,
|
3158
3158
|
"isConstant": false,
|
3159
3159
|
"isLValue": false,
|
3160
3160
|
"isPure": false,
|
@@ -3164,11 +3164,11 @@
|
|
3164
3164
|
"prefix": true,
|
3165
3165
|
"src": "7252:8:100",
|
3166
3166
|
"subExpression": {
|
3167
|
-
"id":
|
3167
|
+
"id": 42180,
|
3168
3168
|
"name": "success",
|
3169
3169
|
"nodeType": "Identifier",
|
3170
3170
|
"overloadedDeclarations": [],
|
3171
|
-
"referencedDeclaration":
|
3171
|
+
"referencedDeclaration": 42170,
|
3172
3172
|
"src": "7253:7:100",
|
3173
3173
|
"typeDescriptions": {
|
3174
3174
|
"typeIdentifier": "t_bool",
|
@@ -3180,18 +3180,18 @@
|
|
3180
3180
|
"typeString": "bool"
|
3181
3181
|
}
|
3182
3182
|
},
|
3183
|
-
"id":
|
3183
|
+
"id": 42186,
|
3184
3184
|
"nodeType": "IfStatement",
|
3185
3185
|
"src": "7248:36:100",
|
3186
3186
|
"trueBody": {
|
3187
3187
|
"expression": {
|
3188
3188
|
"arguments": [
|
3189
3189
|
{
|
3190
|
-
"id":
|
3190
|
+
"id": 42183,
|
3191
3191
|
"name": "_data",
|
3192
3192
|
"nodeType": "Identifier",
|
3193
3193
|
"overloadedDeclarations": [],
|
3194
|
-
"referencedDeclaration":
|
3194
|
+
"referencedDeclaration": 42172,
|
3195
3195
|
"src": "7278:5:100",
|
3196
3196
|
"typeDescriptions": {
|
3197
3197
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -3206,18 +3206,18 @@
|
|
3206
3206
|
"typeString": "bytes memory"
|
3207
3207
|
}
|
3208
3208
|
],
|
3209
|
-
"id":
|
3209
|
+
"id": 42182,
|
3210
3210
|
"name": "revertWithBytes",
|
3211
3211
|
"nodeType": "Identifier",
|
3212
3212
|
"overloadedDeclarations": [],
|
3213
|
-
"referencedDeclaration":
|
3213
|
+
"referencedDeclaration": 49007,
|
3214
3214
|
"src": "7262:15:100",
|
3215
3215
|
"typeDescriptions": {
|
3216
3216
|
"typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$__$",
|
3217
3217
|
"typeString": "function (bytes memory) pure"
|
3218
3218
|
}
|
3219
3219
|
},
|
3220
|
-
"id":
|
3220
|
+
"id": 42184,
|
3221
3221
|
"isConstant": false,
|
3222
3222
|
"isLValue": false,
|
3223
3223
|
"isPure": false,
|
@@ -3233,33 +3233,33 @@
|
|
3233
3233
|
"typeString": "tuple()"
|
3234
3234
|
}
|
3235
3235
|
},
|
3236
|
-
"id":
|
3236
|
+
"id": 42185,
|
3237
3237
|
"nodeType": "ExpressionStatement",
|
3238
3238
|
"src": "7262:22:100"
|
3239
3239
|
}
|
3240
3240
|
},
|
3241
3241
|
{
|
3242
3242
|
"expression": {
|
3243
|
-
"id":
|
3243
|
+
"id": 42187,
|
3244
3244
|
"name": "_data",
|
3245
3245
|
"nodeType": "Identifier",
|
3246
3246
|
"overloadedDeclarations": [],
|
3247
|
-
"referencedDeclaration":
|
3247
|
+
"referencedDeclaration": 42172,
|
3248
3248
|
"src": "7297:5:100",
|
3249
3249
|
"typeDescriptions": {
|
3250
3250
|
"typeIdentifier": "t_bytes_memory_ptr",
|
3251
3251
|
"typeString": "bytes memory"
|
3252
3252
|
}
|
3253
3253
|
},
|
3254
|
-
"functionReturnParameters":
|
3255
|
-
"id":
|
3254
|
+
"functionReturnParameters": 42168,
|
3255
|
+
"id": 42188,
|
3256
3256
|
"nodeType": "Return",
|
3257
3257
|
"src": "7290:12:100"
|
3258
3258
|
}
|
3259
3259
|
]
|
3260
3260
|
},
|
3261
3261
|
"documentation": {
|
3262
|
-
"id":
|
3262
|
+
"id": 42156,
|
3263
3263
|
"nodeType": "StructuredDocumentation",
|
3264
3264
|
"src": "6457:448:100",
|
3265
3265
|
"text": " @notice Makes a call to the target contract with context values appended to the calldata.\n @dev Revert in the case of failure.\n @param msgSender The address of the transaction sender.\n @param msgValue The amount of ether sent with the original transaction.\n @param target The address of the contract to call.\n @param callData The calldata for the call.\n @return data The abi encoded return data from the call."
|
@@ -3270,17 +3270,17 @@
|
|
3270
3270
|
"name": "callWithContextOrRevert",
|
3271
3271
|
"nameLocation": "6917:23:100",
|
3272
3272
|
"parameters": {
|
3273
|
-
"id":
|
3273
|
+
"id": 42165,
|
3274
3274
|
"nodeType": "ParameterList",
|
3275
3275
|
"parameters": [
|
3276
3276
|
{
|
3277
3277
|
"constant": false,
|
3278
|
-
"id":
|
3278
|
+
"id": 42158,
|
3279
3279
|
"mutability": "mutable",
|
3280
3280
|
"name": "msgSender",
|
3281
3281
|
"nameLocation": "6954:9:100",
|
3282
3282
|
"nodeType": "VariableDeclaration",
|
3283
|
-
"scope":
|
3283
|
+
"scope": 42190,
|
3284
3284
|
"src": "6946:17:100",
|
3285
3285
|
"stateVariable": false,
|
3286
3286
|
"storageLocation": "default",
|
@@ -3289,7 +3289,7 @@
|
|
3289
3289
|
"typeString": "address"
|
3290
3290
|
},
|
3291
3291
|
"typeName": {
|
3292
|
-
"id":
|
3292
|
+
"id": 42157,
|
3293
3293
|
"name": "address",
|
3294
3294
|
"nodeType": "ElementaryTypeName",
|
3295
3295
|
"src": "6946:7:100",
|
@@ -3303,12 +3303,12 @@
|
|
3303
3303
|
},
|
3304
3304
|
{
|
3305
3305
|
"constant": false,
|
3306
|
-
"id":
|
3306
|
+
"id": 42160,
|
3307
3307
|
"mutability": "mutable",
|
3308
3308
|
"name": "msgValue",
|
3309
3309
|
"nameLocation": "6977:8:100",
|
3310
3310
|
"nodeType": "VariableDeclaration",
|
3311
|
-
"scope":
|
3311
|
+
"scope": 42190,
|
3312
3312
|
"src": "6969:16:100",
|
3313
3313
|
"stateVariable": false,
|
3314
3314
|
"storageLocation": "default",
|
@@ -3317,7 +3317,7 @@
|
|
3317
3317
|
"typeString": "uint256"
|
3318
3318
|
},
|
3319
3319
|
"typeName": {
|
3320
|
-
"id":
|
3320
|
+
"id": 42159,
|
3321
3321
|
"name": "uint256",
|
3322
3322
|
"nodeType": "ElementaryTypeName",
|
3323
3323
|
"src": "6969:7:100",
|
@@ -3330,12 +3330,12 @@
|
|
3330
3330
|
},
|
3331
3331
|
{
|
3332
3332
|
"constant": false,
|
3333
|
-
"id":
|
3333
|
+
"id": 42162,
|
3334
3334
|
"mutability": "mutable",
|
3335
3335
|
"name": "target",
|
3336
3336
|
"nameLocation": "6999:6:100",
|
3337
3337
|
"nodeType": "VariableDeclaration",
|
3338
|
-
"scope":
|
3338
|
+
"scope": 42190,
|
3339
3339
|
"src": "6991:14:100",
|
3340
3340
|
"stateVariable": false,
|
3341
3341
|
"storageLocation": "default",
|
@@ -3344,7 +3344,7 @@
|
|
3344
3344
|
"typeString": "address"
|
3345
3345
|
},
|
3346
3346
|
"typeName": {
|
3347
|
-
"id":
|
3347
|
+
"id": 42161,
|
3348
3348
|
"name": "address",
|
3349
3349
|
"nodeType": "ElementaryTypeName",
|
3350
3350
|
"src": "6991:7:100",
|
@@ -3358,12 +3358,12 @@
|
|
3358
3358
|
},
|
3359
3359
|
{
|
3360
3360
|
"constant": false,
|
3361
|
-
"id":
|
3361
|
+
"id": 42164,
|
3362
3362
|
"mutability": "mutable",
|
3363
3363
|
"name": "callData",
|
3364
3364
|
"nameLocation": "7024:8:100",
|
3365
3365
|
"nodeType": "VariableDeclaration",
|
3366
|
-
"scope":
|
3366
|
+
"scope": 42190,
|
3367
3367
|
"src": "7011:21:100",
|
3368
3368
|
"stateVariable": false,
|
3369
3369
|
"storageLocation": "memory",
|
@@ -3372,7 +3372,7 @@
|
|
3372
3372
|
"typeString": "bytes"
|
3373
3373
|
},
|
3374
3374
|
"typeName": {
|
3375
|
-
"id":
|
3375
|
+
"id": 42163,
|
3376
3376
|
"name": "bytes",
|
3377
3377
|
"nodeType": "ElementaryTypeName",
|
3378
3378
|
"src": "7011:5:100",
|
@@ -3387,17 +3387,17 @@
|
|
3387
3387
|
"src": "6940:96:100"
|
3388
3388
|
},
|
3389
3389
|
"returnParameters": {
|
3390
|
-
"id":
|
3390
|
+
"id": 42168,
|
3391
3391
|
"nodeType": "ParameterList",
|
3392
3392
|
"parameters": [
|
3393
3393
|
{
|
3394
3394
|
"constant": false,
|
3395
|
-
"id":
|
3395
|
+
"id": 42167,
|
3396
3396
|
"mutability": "mutable",
|
3397
3397
|
"name": "data",
|
3398
3398
|
"nameLocation": "7068:4:100",
|
3399
3399
|
"nodeType": "VariableDeclaration",
|
3400
|
-
"scope":
|
3400
|
+
"scope": 42190,
|
3401
3401
|
"src": "7055:17:100",
|
3402
3402
|
"stateVariable": false,
|
3403
3403
|
"storageLocation": "memory",
|
@@ -3406,7 +3406,7 @@
|
|
3406
3406
|
"typeString": "bytes"
|
3407
3407
|
},
|
3408
3408
|
"typeName": {
|
3409
|
-
"id":
|
3409
|
+
"id": 42166,
|
3410
3410
|
"name": "bytes",
|
3411
3411
|
"nodeType": "ElementaryTypeName",
|
3412
3412
|
"src": "7055:5:100",
|
@@ -3420,36 +3420,36 @@
|
|
3420
3420
|
],
|
3421
3421
|
"src": "7054:19:100"
|
3422
3422
|
},
|
3423
|
-
"scope":
|
3423
|
+
"scope": 42226,
|
3424
3424
|
"stateMutability": "nonpayable",
|
3425
3425
|
"virtual": false,
|
3426
3426
|
"visibility": "internal"
|
3427
3427
|
},
|
3428
3428
|
{
|
3429
|
-
"id":
|
3429
|
+
"id": 42225,
|
3430
3430
|
"nodeType": "FunctionDefinition",
|
3431
3431
|
"src": "7770:415:100",
|
3432
3432
|
"nodes": [],
|
3433
3433
|
"body": {
|
3434
|
-
"id":
|
3434
|
+
"id": 42224,
|
3435
3435
|
"nodeType": "Block",
|
3436
3436
|
"src": "7944:241:100",
|
3437
3437
|
"nodes": [],
|
3438
3438
|
"statements": [
|
3439
3439
|
{
|
3440
3440
|
"assignments": [
|
3441
|
-
|
3442
|
-
|
3441
|
+
42205,
|
3442
|
+
42207
|
3443
3443
|
],
|
3444
3444
|
"declarations": [
|
3445
3445
|
{
|
3446
3446
|
"constant": false,
|
3447
|
-
"id":
|
3447
|
+
"id": 42205,
|
3448
3448
|
"mutability": "mutable",
|
3449
3449
|
"name": "success",
|
3450
3450
|
"nameLocation": "7956:7:100",
|
3451
3451
|
"nodeType": "VariableDeclaration",
|
3452
|
-
"scope":
|
3452
|
+
"scope": 42224,
|
3453
3453
|
"src": "7951:12:100",
|
3454
3454
|
"stateVariable": false,
|
3455
3455
|
"storageLocation": "default",
|
@@ -3458,7 +3458,7 @@
|
|
3458
3458
|
"typeString": "bool"
|
3459
3459
|
},
|
3460
3460
|
"typeName": {
|
3461
|
-
"id":
|
3461
|
+
"id": 42204,
|
3462
3462
|
"name": "bool",
|
3463
3463
|
"nodeType": "ElementaryTypeName",
|
3464
3464
|
"src": "7951:4:100",
|
@@ -3471,12 +3471,12 @@
|
|
3471
3471
|
},
|
3472
3472
|
{
|
3473
3473
|
"constant": false,
|
3474
|
-
"id":
|
3474
|
+
"id": 42207,
|
3475
3475
|
"mutability": "mutable",
|
3476
3476
|
"name": "_data",
|
3477
3477
|
"nameLocation": "7978:5:100",
|
3478
3478
|
"nodeType": "VariableDeclaration",
|
3479
|
-
"scope":
|
3479
|
+
"scope": 42224,
|
3480
3480
|
"src": "7965:18:100",
|
3481
3481
|
"stateVariable": false,
|
3482
3482
|
"storageLocation": "memory",
|
@@ -3485,7 +3485,7 @@
|
|
3485
3485
|
"typeString": "bytes"
|
3486
3486
|
},
|
3487
3487
|
"typeName": {
|
3488
|
-
"id":
|
3488
|
+
"id": 42206,
|
3489
3489
|
"name": "bytes",
|
3490
3490
|
"nodeType": "ElementaryTypeName",
|
3491
3491
|
"src": "7965:5:100",
|
@@ -3497,15 +3497,15 @@
|
|
3497
3497
|
"visibility": "internal"
|
3498
3498
|
}
|
3499
3499
|
],
|
3500
|
-
"id":
|
3500
|
+
"id": 42214,
|
3501
3501
|
"initialValue": {
|
3502
3502
|
"arguments": [
|
3503
3503
|
{
|
3504
|
-
"id":
|
3504
|
+
"id": 42209,
|
3505
3505
|
"name": "msgSender",
|
3506
3506
|
"nodeType": "Identifier",
|
3507
3507
|
"overloadedDeclarations": [],
|
3508
|
-
"referencedDeclaration":
|
3508
|
+
"referencedDeclaration": 42193,
|
3509
3509
|
"src": "8030:9:100",
|
3510
3510
|
"typeDescriptions": {
|
3511
3511
|
"typeIdentifier": "t_address",
|
@@ -3513,11 +3513,11 @@
|
|
3513
3513
|
}
|
3514
3514
|
},
|
3515
3515
|
{
|
3516
|
-
"id":
|
3516
|
+
"id": 42210,
|
3517
3517
|
"name": "msgValue",
|
3518
3518
|
"nodeType": "Identifier",
|
3519
3519
|
"overloadedDeclarations": [],
|
3520
|
-
"referencedDeclaration":
|
3520
|
+
"referencedDeclaration": 42195,
|
3521
3521
|
"src": "8057:8:100",
|
3522
3522
|
"typeDescriptions": {
|
3523
3523
|
"typeIdentifier": "t_uint256",
|
@@ -3525,11 +3525,11 @@
|
|
3525
3525
|
}
|
3526
3526
|
},
|
3527
3527
|
{
|
3528
|
-
"id":
|
3528
|
+
"id": 42211,
|
3529
3529
|
"name": "target",
|
3530
3530
|
"nodeType": "Identifier",
|
3531
3531
|
"overloadedDeclarations": [],
|
3532
|
-
"referencedDeclaration":
|
3532
|
+
"referencedDeclaration": 42197,
|
3533
3533
|
"src": "8081:6:100",
|
3534
3534
|
"typeDescriptions": {
|
3535
3535
|
"typeIdentifier": "t_address",
|
@@ -3537,11 +3537,11 @@
|
|
3537
3537
|
}
|
3538
3538
|
},
|
3539
3539
|
{
|
3540
|
-
"id":
|
3540
|
+
"id": 42212,
|
3541
3541
|
"name": "callData",
|
3542
3542
|
"nodeType": "Identifier",
|
3543
3543
|
"overloadedDeclarations": [],
|
3544
|
-
"referencedDeclaration":
|
3544
|
+
"referencedDeclaration": 42199,
|
3545
3545
|
"src": "8105:8:100",
|
3546
3546
|
"typeDescriptions": {
|
3547
3547
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -3568,18 +3568,18 @@
|
|
3568
3568
|
"typeString": "bytes memory"
|
3569
3569
|
}
|
3570
3570
|
],
|
3571
|
-
"id":
|
3571
|
+
"id": 42208,
|
3572
3572
|
"name": "delegatecallWithContext",
|
3573
3573
|
"nodeType": "Identifier",
|
3574
3574
|
"overloadedDeclarations": [],
|
3575
|
-
"referencedDeclaration":
|
3575
|
+
"referencedDeclaration": 42155,
|
3576
3576
|
"src": "7987:23:100",
|
3577
3577
|
"typeDescriptions": {
|
3578
3578
|
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$_t_address_$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$",
|
3579
3579
|
"typeString": "function (address,uint256,address,bytes memory) returns (bool,bytes memory)"
|
3580
3580
|
}
|
3581
3581
|
},
|
3582
|
-
"id":
|
3582
|
+
"id": 42213,
|
3583
3583
|
"isConstant": false,
|
3584
3584
|
"isLValue": false,
|
3585
3585
|
"isPure": false,
|
@@ -3610,7 +3610,7 @@
|
|
3610
3610
|
},
|
3611
3611
|
{
|
3612
3612
|
"condition": {
|
3613
|
-
"id":
|
3613
|
+
"id": 42216,
|
3614
3614
|
"isConstant": false,
|
3615
3615
|
"isLValue": false,
|
3616
3616
|
"isPure": false,
|
@@ -3620,11 +3620,11 @@
|
|
3620
3620
|
"prefix": true,
|
3621
3621
|
"src": "8130:8:100",
|
3622
3622
|
"subExpression": {
|
3623
|
-
"id":
|
3623
|
+
"id": 42215,
|
3624
3624
|
"name": "success",
|
3625
3625
|
"nodeType": "Identifier",
|
3626
3626
|
"overloadedDeclarations": [],
|
3627
|
-
"referencedDeclaration":
|
3627
|
+
"referencedDeclaration": 42205,
|
3628
3628
|
"src": "8131:7:100",
|
3629
3629
|
"typeDescriptions": {
|
3630
3630
|
"typeIdentifier": "t_bool",
|
@@ -3636,18 +3636,18 @@
|
|
3636
3636
|
"typeString": "bool"
|
3637
3637
|
}
|
3638
3638
|
},
|
3639
|
-
"id":
|
3639
|
+
"id": 42221,
|
3640
3640
|
"nodeType": "IfStatement",
|
3641
3641
|
"src": "8126:36:100",
|
3642
3642
|
"trueBody": {
|
3643
3643
|
"expression": {
|
3644
3644
|
"arguments": [
|
3645
3645
|
{
|
3646
|
-
"id":
|
3646
|
+
"id": 42218,
|
3647
3647
|
"name": "_data",
|
3648
3648
|
"nodeType": "Identifier",
|
3649
3649
|
"overloadedDeclarations": [],
|
3650
|
-
"referencedDeclaration":
|
3650
|
+
"referencedDeclaration": 42207,
|
3651
3651
|
"src": "8156:5:100",
|
3652
3652
|
"typeDescriptions": {
|
3653
3653
|
"typeIdentifier": "t_bytes_memory_ptr",
|
@@ -3662,18 +3662,18 @@
|
|
3662
3662
|
"typeString": "bytes memory"
|
3663
3663
|
}
|
3664
3664
|
],
|
3665
|
-
"id":
|
3665
|
+
"id": 42217,
|
3666
3666
|
"name": "revertWithBytes",
|
3667
3667
|
"nodeType": "Identifier",
|
3668
3668
|
"overloadedDeclarations": [],
|
3669
|
-
"referencedDeclaration":
|
3669
|
+
"referencedDeclaration": 49007,
|
3670
3670
|
"src": "8140:15:100",
|
3671
3671
|
"typeDescriptions": {
|
3672
3672
|
"typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$__$",
|
3673
3673
|
"typeString": "function (bytes memory) pure"
|
3674
3674
|
}
|
3675
3675
|
},
|
3676
|
-
"id":
|
3676
|
+
"id": 42219,
|
3677
3677
|
"isConstant": false,
|
3678
3678
|
"isLValue": false,
|
3679
3679
|
"isPure": false,
|
@@ -3689,33 +3689,33 @@
|
|
3689
3689
|
"typeString": "tuple()"
|
3690
3690
|
}
|
3691
3691
|
},
|
3692
|
-
"id":
|
3692
|
+
"id": 42220,
|
3693
3693
|
"nodeType": "ExpressionStatement",
|
3694
3694
|
"src": "8140:22:100"
|
3695
3695
|
}
|
3696
3696
|
},
|
3697
3697
|
{
|
3698
3698
|
"expression": {
|
3699
|
-
"id":
|
3699
|
+
"id": 42222,
|
3700
3700
|
"name": "_data",
|
3701
3701
|
"nodeType": "Identifier",
|
3702
3702
|
"overloadedDeclarations": [],
|
3703
|
-
"referencedDeclaration":
|
3703
|
+
"referencedDeclaration": 42207,
|
3704
3704
|
"src": "8175:5:100",
|
3705
3705
|
"typeDescriptions": {
|
3706
3706
|
"typeIdentifier": "t_bytes_memory_ptr",
|
3707
3707
|
"typeString": "bytes memory"
|
3708
3708
|
}
|
3709
3709
|
},
|
3710
|
-
"functionReturnParameters":
|
3711
|
-
"id":
|
3710
|
+
"functionReturnParameters": 42203,
|
3711
|
+
"id": 42223,
|
3712
3712
|
"nodeType": "Return",
|
3713
3713
|
"src": "8168:12:100"
|
3714
3714
|
}
|
3715
3715
|
]
|
3716
3716
|
},
|
3717
3717
|
"documentation": {
|
3718
|
-
"id":
|
3718
|
+
"id": 42191,
|
3719
3719
|
"nodeType": "StructuredDocumentation",
|
3720
3720
|
"src": "7311:456:100",
|
3721
3721
|
"text": " @notice Makes a delegatecall to the target contract with context values appended to the calldata.\n @dev Revert in the case of failure.\n @param msgSender The address of the transaction sender.\n @param msgValue The amount of ether sent with the original transaction.\n @param target The address of the contract to call.\n @param callData The calldata for the call.\n @return data The abi encoded return data from the call."
|
@@ -3726,17 +3726,17 @@
|
|
3726
3726
|
"name": "delegatecallWithContextOrRevert",
|
3727
3727
|
"nameLocation": "7779:31:100",
|
3728
3728
|
"parameters": {
|
3729
|
-
"id":
|
3729
|
+
"id": 42200,
|
3730
3730
|
"nodeType": "ParameterList",
|
3731
3731
|
"parameters": [
|
3732
3732
|
{
|
3733
3733
|
"constant": false,
|
3734
|
-
"id":
|
3734
|
+
"id": 42193,
|
3735
3735
|
"mutability": "mutable",
|
3736
3736
|
"name": "msgSender",
|
3737
3737
|
"nameLocation": "7824:9:100",
|
3738
3738
|
"nodeType": "VariableDeclaration",
|
3739
|
-
"scope":
|
3739
|
+
"scope": 42225,
|
3740
3740
|
"src": "7816:17:100",
|
3741
3741
|
"stateVariable": false,
|
3742
3742
|
"storageLocation": "default",
|
@@ -3745,7 +3745,7 @@
|
|
3745
3745
|
"typeString": "address"
|
3746
3746
|
},
|
3747
3747
|
"typeName": {
|
3748
|
-
"id":
|
3748
|
+
"id": 42192,
|
3749
3749
|
"name": "address",
|
3750
3750
|
"nodeType": "ElementaryTypeName",
|
3751
3751
|
"src": "7816:7:100",
|
@@ -3759,12 +3759,12 @@
|
|
3759
3759
|
},
|
3760
3760
|
{
|
3761
3761
|
"constant": false,
|
3762
|
-
"id":
|
3762
|
+
"id": 42195,
|
3763
3763
|
"mutability": "mutable",
|
3764
3764
|
"name": "msgValue",
|
3765
3765
|
"nameLocation": "7847:8:100",
|
3766
3766
|
"nodeType": "VariableDeclaration",
|
3767
|
-
"scope":
|
3767
|
+
"scope": 42225,
|
3768
3768
|
"src": "7839:16:100",
|
3769
3769
|
"stateVariable": false,
|
3770
3770
|
"storageLocation": "default",
|
@@ -3773,7 +3773,7 @@
|
|
3773
3773
|
"typeString": "uint256"
|
3774
3774
|
},
|
3775
3775
|
"typeName": {
|
3776
|
-
"id":
|
3776
|
+
"id": 42194,
|
3777
3777
|
"name": "uint256",
|
3778
3778
|
"nodeType": "ElementaryTypeName",
|
3779
3779
|
"src": "7839:7:100",
|
@@ -3786,12 +3786,12 @@
|
|
3786
3786
|
},
|
3787
3787
|
{
|
3788
3788
|
"constant": false,
|
3789
|
-
"id":
|
3789
|
+
"id": 42197,
|
3790
3790
|
"mutability": "mutable",
|
3791
3791
|
"name": "target",
|
3792
3792
|
"nameLocation": "7869:6:100",
|
3793
3793
|
"nodeType": "VariableDeclaration",
|
3794
|
-
"scope":
|
3794
|
+
"scope": 42225,
|
3795
3795
|
"src": "7861:14:100",
|
3796
3796
|
"stateVariable": false,
|
3797
3797
|
"storageLocation": "default",
|
@@ -3800,7 +3800,7 @@
|
|
3800
3800
|
"typeString": "address"
|
3801
3801
|
},
|
3802
3802
|
"typeName": {
|
3803
|
-
"id":
|
3803
|
+
"id": 42196,
|
3804
3804
|
"name": "address",
|
3805
3805
|
"nodeType": "ElementaryTypeName",
|
3806
3806
|
"src": "7861:7:100",
|
@@ -3814,12 +3814,12 @@
|
|
3814
3814
|
},
|
3815
3815
|
{
|
3816
3816
|
"constant": false,
|
3817
|
-
"id":
|
3817
|
+
"id": 42199,
|
3818
3818
|
"mutability": "mutable",
|
3819
3819
|
"name": "callData",
|
3820
3820
|
"nameLocation": "7894:8:100",
|
3821
3821
|
"nodeType": "VariableDeclaration",
|
3822
|
-
"scope":
|
3822
|
+
"scope": 42225,
|
3823
3823
|
"src": "7881:21:100",
|
3824
3824
|
"stateVariable": false,
|
3825
3825
|
"storageLocation": "memory",
|
@@ -3828,7 +3828,7 @@
|
|
3828
3828
|
"typeString": "bytes"
|
3829
3829
|
},
|
3830
3830
|
"typeName": {
|
3831
|
-
"id":
|
3831
|
+
"id": 42198,
|
3832
3832
|
"name": "bytes",
|
3833
3833
|
"nodeType": "ElementaryTypeName",
|
3834
3834
|
"src": "7881:5:100",
|
@@ -3843,17 +3843,17 @@
|
|
3843
3843
|
"src": "7810:96:100"
|
3844
3844
|
},
|
3845
3845
|
"returnParameters": {
|
3846
|
-
"id":
|
3846
|
+
"id": 42203,
|
3847
3847
|
"nodeType": "ParameterList",
|
3848
3848
|
"parameters": [
|
3849
3849
|
{
|
3850
3850
|
"constant": false,
|
3851
|
-
"id":
|
3851
|
+
"id": 42202,
|
3852
3852
|
"mutability": "mutable",
|
3853
3853
|
"name": "data",
|
3854
3854
|
"nameLocation": "7938:4:100",
|
3855
3855
|
"nodeType": "VariableDeclaration",
|
3856
|
-
"scope":
|
3856
|
+
"scope": 42225,
|
3857
3857
|
"src": "7925:17:100",
|
3858
3858
|
"stateVariable": false,
|
3859
3859
|
"storageLocation": "memory",
|
@@ -3862,7 +3862,7 @@
|
|
3862
3862
|
"typeString": "bytes"
|
3863
3863
|
},
|
3864
3864
|
"typeName": {
|
3865
|
-
"id":
|
3865
|
+
"id": 42201,
|
3866
3866
|
"name": "bytes",
|
3867
3867
|
"nodeType": "ElementaryTypeName",
|
3868
3868
|
"src": "7925:5:100",
|
@@ -3876,7 +3876,7 @@
|
|
3876
3876
|
],
|
3877
3877
|
"src": "7924:19:100"
|
3878
3878
|
},
|
3879
|
-
"scope":
|
3879
|
+
"scope": 42226,
|
3880
3880
|
"stateMutability": "nonpayable",
|
3881
3881
|
"virtual": false,
|
3882
3882
|
"visibility": "internal"
|
@@ -3888,18 +3888,18 @@
|
|
3888
3888
|
"contractDependencies": [],
|
3889
3889
|
"contractKind": "library",
|
3890
3890
|
"documentation": {
|
3891
|
-
"id":
|
3891
|
+
"id": 42073,
|
3892
3892
|
"nodeType": "StructuredDocumentation",
|
3893
3893
|
"src": "3932:332:100",
|
3894
3894
|
"text": " @title WorldContextProviderLib - Utility functions to call contracts with context values appended to calldata.\n @notice This library provides functions to make calls or delegatecalls to other contracts,\n appending the context values (like msg.sender and msg.value) to the calldata for WorldContextConsumer to consume."
|
3895
3895
|
},
|
3896
3896
|
"fullyImplemented": true,
|
3897
3897
|
"linearizedBaseContracts": [
|
3898
|
-
|
3898
|
+
42226
|
3899
3899
|
],
|
3900
3900
|
"name": "WorldContextProviderLib",
|
3901
3901
|
"nameLocation": "4273:23:100",
|
3902
|
-
"scope":
|
3902
|
+
"scope": 42227,
|
3903
3903
|
"usedErrors": [],
|
3904
3904
|
"usedEvents": []
|
3905
3905
|
}
|