@latticexyz/world-modules 2.0.0-main-251170e1 → 2.0.0-main-c07fa021

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.
Files changed (91) hide show
  1. package/dist/mud.config.js +1 -1
  2. package/dist/mud.config.js.map +1 -1
  3. package/out/ArrayLib.sol/ArrayLib.json +477 -477
  4. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +314 -314
  5. package/out/CallboundDelegations.sol/CallboundDelegations.json +4012 -4012
  6. package/out/DelegationControl.sol/DelegationControl.json +22 -22
  7. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +97 -97
  8. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +81 -81
  9. package/out/IBaseWorld.sol/IBaseWorld.abi.json +0 -13
  10. package/out/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +0 -13
  11. package/out/IBaseWorld.sol/IBaseWorld.json +63 -143
  12. package/out/ICallBatchSystem.sol/ICallBatchSystem.json +51 -51
  13. package/out/ICoreSystem.sol/ICoreSystem.json +15 -15
  14. package/out/IDelegationControl.sol/IDelegationControl.json +93 -93
  15. package/out/IModule.sol/IModule.json +139 -139
  16. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +58 -58
  17. package/out/ISystemHook.sol/ISystemHook.json +129 -129
  18. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +2 -2
  19. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json.d.ts +2 -2
  20. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +37 -37
  21. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +118 -118
  22. package/out/IWorldErrors.sol/IWorldErrors.json +238 -238
  23. package/out/IWorldKernel.sol/IWorldCall.json +241 -241
  24. package/out/IWorldKernel.sol/IWorldKernel.json +241 -241
  25. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +241 -241
  26. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +282 -282
  27. package/out/KeysInTable.sol/KeysInTable.json +15792 -15792
  28. package/out/KeysInTableHook.sol/KeysInTableHook.json +1253 -1253
  29. package/out/KeysInTableModule.sol/KeysInTableModule.json +798 -798
  30. package/out/KeysWithValue.sol/KeysWithValue.json +5879 -5879
  31. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1335 -1335
  32. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +619 -619
  33. package/out/Module.sol/Module.json +20 -20
  34. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +467 -467
  35. package/out/StoreHook.sol/StoreHook.json +31 -31
  36. package/out/System.sol/System.json +3 -3
  37. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +166 -166
  38. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3149 -3149
  39. package/out/UniqueEntity.sol/UniqueEntity.json +1976 -1976
  40. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +486 -486
  41. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +114 -114
  42. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +3954 -3954
  43. package/out/WorldContext.sol/WorldContextConsumer.json +17 -17
  44. package/out/WorldContext.sol/WorldContextProvider.json +17 -17
  45. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +7 -7
  46. package/out/WorldResourceId.sol/WorldResourceIdLib.json +7 -7
  47. package/out/constants.sol/constants.json +116 -116
  48. package/out/getKeysInTable.sol/getKeysInTable.json +819 -819
  49. package/out/getKeysWithValue.sol/getKeysWithValue.json +374 -374
  50. package/out/getTargetTableId.sol/getTargetTableId.json +232 -232
  51. package/out/getUniqueEntity.sol/getUniqueEntity.json +143 -143
  52. package/out/hasKey.sol/hasKey.json +189 -189
  53. package/out/index.sol/index.json +73 -73
  54. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +197 -197
  55. package/out/interfaces/IERC165.sol/IERC165.json +50 -50
  56. package/out/interfaces/IWorldKernel.sol/IWorldCall.json +137 -137
  57. package/out/interfaces/IWorldKernel.sol/IWorldKernel.json +137 -137
  58. package/out/interfaces/IWorldKernel.sol/IWorldModuleInstallation.json +137 -137
  59. package/out/query.sol/query.json +1791 -1791
  60. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +47 -47
  61. package/out/src/FieldLayout.sol/FieldLayoutLib.json +47 -47
  62. package/out/src/IStore.sol/IStore.json +21 -21
  63. package/out/src/IStore.sol/IStoreData.json +21 -21
  64. package/out/src/IStore.sol/IStoreRead.json +21 -21
  65. package/out/src/IStore.sol/IStoreRegistration.json +21 -21
  66. package/out/src/IStore.sol/IStoreWrite.json +21 -21
  67. package/out/src/Memory.sol/Memory.json +4 -4
  68. package/out/src/Schema.sol/SchemaInstance.json +42 -42
  69. package/out/src/Schema.sol/SchemaLib.json +42 -42
  70. package/out/src/Slice.sol/SliceInstance.json +4 -4
  71. package/out/src/Slice.sol/SliceLib.json +4 -4
  72. package/out/src/StoreCore.sol/StoreCore.json +294 -294
  73. package/out/src/StoreCore.sol/StoreCoreInternal.json +294 -294
  74. package/out/src/StoreSwitch.sol/StoreSwitch.json +23 -23
  75. package/out/src/WorldContext.sol/WorldContextConsumer.json +22 -22
  76. package/out/src/WorldContext.sol/WorldContextProvider.json +22 -22
  77. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +14 -14
  78. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +14 -14
  79. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +297 -297
  80. package/package.json +8 -8
  81. package/src/interfaces/IBaseWorld.sol +1 -3
  82. package/src/interfaces/IUniqueEntitySystem.sol +2 -3
  83. package/src/modules/keysintable/KeysInTableModule.sol +1 -1
  84. package/src/modules/keyswithvalue/KeysWithValueHook.sol +1 -1
  85. package/src/modules/keyswithvalue/KeysWithValueModule.sol +1 -1
  86. package/src/modules/std-delegations/StandardDelegationsModule.sol +1 -1
  87. package/src/modules/uniqueentity/UniqueEntityModule.sol +1 -1
  88. package/src/modules/uniqueentity/getUniqueEntity.sol +2 -2
  89. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +0 -15
  90. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json.d.ts +0 -16
  91. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +0 -197
@@ -446,22 +446,22 @@
446
446
  },
447
447
  "ast": {
448
448
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/interfaces/IWorldErrors.sol",
449
- "id": 33536,
449
+ "id": 33625,
450
450
  "exportedSymbols": {
451
451
  "IWorldErrors": [
452
- 33535
452
+ 33624
453
453
  ],
454
454
  "ResourceId": [
455
455
  36365
456
456
  ]
457
457
  },
458
458
  "nodeType": "SourceUnit",
459
- "src": "32:1079:46",
459
+ "src": "32:1079:47",
460
460
  "nodes": [
461
461
  {
462
- "id": 33458,
462
+ "id": 33547,
463
463
  "nodeType": "PragmaDirective",
464
- "src": "32:25:46",
464
+ "src": "32:25:47",
465
465
  "nodes": [],
466
466
  "literals": [
467
467
  "solidity",
@@ -471,24 +471,24 @@
471
471
  ]
472
472
  },
473
473
  {
474
- "id": 33460,
474
+ "id": 33549,
475
475
  "nodeType": "ImportDirective",
476
- "src": "59:66:46",
476
+ "src": "59:66:47",
477
477
  "nodes": [],
478
478
  "absolutePath": "node_modules/@latticexyz/store/src/ResourceId.sol",
479
479
  "file": "@latticexyz/store/src/ResourceId.sol",
480
480
  "nameLocation": "-1:-1:-1",
481
- "scope": 33536,
481
+ "scope": 33625,
482
482
  "sourceUnit": 36430,
483
483
  "symbolAliases": [
484
484
  {
485
485
  "foreign": {
486
- "id": 33459,
486
+ "id": 33548,
487
487
  "name": "ResourceId",
488
488
  "nodeType": "Identifier",
489
489
  "overloadedDeclarations": [],
490
490
  "referencedDeclaration": 36365,
491
- "src": "68:10:46",
491
+ "src": "68:10:47",
492
492
  "typeDescriptions": {}
493
493
  },
494
494
  "nameLocation": "-1:-1:-1"
@@ -497,46 +497,46 @@
497
497
  "unitAlias": ""
498
498
  },
499
499
  {
500
- "id": 33535,
500
+ "id": 33624,
501
501
  "nodeType": "ContractDefinition",
502
- "src": "127:983:46",
502
+ "src": "127:983:47",
503
503
  "nodes": [
504
504
  {
505
- "id": 33462,
505
+ "id": 33551,
506
506
  "nodeType": "ErrorDefinition",
507
- "src": "154:33:46",
507
+ "src": "154:33:47",
508
508
  "nodes": [],
509
509
  "errorSelector": "15e34a48",
510
510
  "name": "World_AlreadyInitialized",
511
- "nameLocation": "160:24:46",
511
+ "nameLocation": "160:24:47",
512
512
  "parameters": {
513
- "id": 33461,
513
+ "id": 33550,
514
514
  "nodeType": "ParameterList",
515
515
  "parameters": [],
516
- "src": "184:2:46"
516
+ "src": "184:2:47"
517
517
  }
518
518
  },
519
519
  {
520
- "id": 33469,
520
+ "id": 33558,
521
521
  "nodeType": "ErrorDefinition",
522
- "src": "190:82:46",
522
+ "src": "190:82:47",
523
523
  "nodes": [],
524
524
  "errorSelector": "0dc28f6a",
525
525
  "name": "World_ResourceAlreadyExists",
526
- "nameLocation": "196:27:46",
526
+ "nameLocation": "196:27:47",
527
527
  "parameters": {
528
- "id": 33468,
528
+ "id": 33557,
529
529
  "nodeType": "ParameterList",
530
530
  "parameters": [
531
531
  {
532
532
  "constant": false,
533
- "id": 33465,
533
+ "id": 33554,
534
534
  "mutability": "mutable",
535
535
  "name": "resourceId",
536
- "nameLocation": "235:10:46",
536
+ "nameLocation": "235:10:47",
537
537
  "nodeType": "VariableDeclaration",
538
- "scope": 33469,
539
- "src": "224:21:46",
538
+ "scope": 33558,
539
+ "src": "224:21:47",
540
540
  "stateVariable": false,
541
541
  "storageLocation": "default",
542
542
  "typeDescriptions": {
@@ -544,20 +544,20 @@
544
544
  "typeString": "ResourceId"
545
545
  },
546
546
  "typeName": {
547
- "id": 33464,
547
+ "id": 33553,
548
548
  "nodeType": "UserDefinedTypeName",
549
549
  "pathNode": {
550
- "id": 33463,
550
+ "id": 33552,
551
551
  "name": "ResourceId",
552
552
  "nameLocations": [
553
- "224:10:46"
553
+ "224:10:47"
554
554
  ],
555
555
  "nodeType": "IdentifierPath",
556
556
  "referencedDeclaration": 36365,
557
- "src": "224:10:46"
557
+ "src": "224:10:47"
558
558
  },
559
559
  "referencedDeclaration": 36365,
560
- "src": "224:10:46",
560
+ "src": "224:10:47",
561
561
  "typeDescriptions": {
562
562
  "typeIdentifier": "t_userDefinedValueType$_ResourceId_$36365",
563
563
  "typeString": "ResourceId"
@@ -567,13 +567,13 @@
567
567
  },
568
568
  {
569
569
  "constant": false,
570
- "id": 33467,
570
+ "id": 33556,
571
571
  "mutability": "mutable",
572
572
  "name": "resourceIdString",
573
- "nameLocation": "254:16:46",
573
+ "nameLocation": "254:16:47",
574
574
  "nodeType": "VariableDeclaration",
575
- "scope": 33469,
576
- "src": "247:23:46",
575
+ "scope": 33558,
576
+ "src": "247:23:47",
577
577
  "stateVariable": false,
578
578
  "storageLocation": "default",
579
579
  "typeDescriptions": {
@@ -581,10 +581,10 @@
581
581
  "typeString": "string"
582
582
  },
583
583
  "typeName": {
584
- "id": 33466,
584
+ "id": 33555,
585
585
  "name": "string",
586
586
  "nodeType": "ElementaryTypeName",
587
- "src": "247:6:46",
587
+ "src": "247:6:47",
588
588
  "typeDescriptions": {
589
589
  "typeIdentifier": "t_string_storage_ptr",
590
590
  "typeString": "string"
@@ -593,30 +593,30 @@
593
593
  "visibility": "internal"
594
594
  }
595
595
  ],
596
- "src": "223:48:46"
596
+ "src": "223:48:47"
597
597
  }
598
598
  },
599
599
  {
600
- "id": 33476,
600
+ "id": 33565,
601
601
  "nodeType": "ErrorDefinition",
602
- "src": "275:77:46",
602
+ "src": "275:77:47",
603
603
  "nodes": [],
604
604
  "errorSelector": "fbf10ce6",
605
605
  "name": "World_ResourceNotFound",
606
- "nameLocation": "281:22:46",
606
+ "nameLocation": "281:22:47",
607
607
  "parameters": {
608
- "id": 33475,
608
+ "id": 33564,
609
609
  "nodeType": "ParameterList",
610
610
  "parameters": [
611
611
  {
612
612
  "constant": false,
613
- "id": 33472,
613
+ "id": 33561,
614
614
  "mutability": "mutable",
615
615
  "name": "resourceId",
616
- "nameLocation": "315:10:46",
616
+ "nameLocation": "315:10:47",
617
617
  "nodeType": "VariableDeclaration",
618
- "scope": 33476,
619
- "src": "304:21:46",
618
+ "scope": 33565,
619
+ "src": "304:21:47",
620
620
  "stateVariable": false,
621
621
  "storageLocation": "default",
622
622
  "typeDescriptions": {
@@ -624,20 +624,20 @@
624
624
  "typeString": "ResourceId"
625
625
  },
626
626
  "typeName": {
627
- "id": 33471,
627
+ "id": 33560,
628
628
  "nodeType": "UserDefinedTypeName",
629
629
  "pathNode": {
630
- "id": 33470,
630
+ "id": 33559,
631
631
  "name": "ResourceId",
632
632
  "nameLocations": [
633
- "304:10:46"
633
+ "304:10:47"
634
634
  ],
635
635
  "nodeType": "IdentifierPath",
636
636
  "referencedDeclaration": 36365,
637
- "src": "304:10:46"
637
+ "src": "304:10:47"
638
638
  },
639
639
  "referencedDeclaration": 36365,
640
- "src": "304:10:46",
640
+ "src": "304:10:47",
641
641
  "typeDescriptions": {
642
642
  "typeIdentifier": "t_userDefinedValueType$_ResourceId_$36365",
643
643
  "typeString": "ResourceId"
@@ -647,13 +647,13 @@
647
647
  },
648
648
  {
649
649
  "constant": false,
650
- "id": 33474,
650
+ "id": 33563,
651
651
  "mutability": "mutable",
652
652
  "name": "resourceIdString",
653
- "nameLocation": "334:16:46",
653
+ "nameLocation": "334:16:47",
654
654
  "nodeType": "VariableDeclaration",
655
- "scope": 33476,
656
- "src": "327:23:46",
655
+ "scope": 33565,
656
+ "src": "327:23:47",
657
657
  "stateVariable": false,
658
658
  "storageLocation": "default",
659
659
  "typeDescriptions": {
@@ -661,10 +661,10 @@
661
661
  "typeString": "string"
662
662
  },
663
663
  "typeName": {
664
- "id": 33473,
664
+ "id": 33562,
665
665
  "name": "string",
666
666
  "nodeType": "ElementaryTypeName",
667
- "src": "327:6:46",
667
+ "src": "327:6:47",
668
668
  "typeDescriptions": {
669
669
  "typeIdentifier": "t_string_storage_ptr",
670
670
  "typeString": "string"
@@ -673,30 +673,30 @@
673
673
  "visibility": "internal"
674
674
  }
675
675
  ],
676
- "src": "303:48:46"
676
+ "src": "303:48:47"
677
677
  }
678
678
  },
679
679
  {
680
- "id": 33482,
680
+ "id": 33571,
681
681
  "nodeType": "ErrorDefinition",
682
- "src": "355:58:46",
682
+ "src": "355:58:47",
683
683
  "nodes": [],
684
684
  "errorSelector": "d787b737",
685
685
  "name": "World_AccessDenied",
686
- "nameLocation": "361:18:46",
686
+ "nameLocation": "361:18:47",
687
687
  "parameters": {
688
- "id": 33481,
688
+ "id": 33570,
689
689
  "nodeType": "ParameterList",
690
690
  "parameters": [
691
691
  {
692
692
  "constant": false,
693
- "id": 33478,
693
+ "id": 33567,
694
694
  "mutability": "mutable",
695
695
  "name": "resource",
696
- "nameLocation": "387:8:46",
696
+ "nameLocation": "387:8:47",
697
697
  "nodeType": "VariableDeclaration",
698
- "scope": 33482,
699
- "src": "380:15:46",
698
+ "scope": 33571,
699
+ "src": "380:15:47",
700
700
  "stateVariable": false,
701
701
  "storageLocation": "default",
702
702
  "typeDescriptions": {
@@ -704,10 +704,10 @@
704
704
  "typeString": "string"
705
705
  },
706
706
  "typeName": {
707
- "id": 33477,
707
+ "id": 33566,
708
708
  "name": "string",
709
709
  "nodeType": "ElementaryTypeName",
710
- "src": "380:6:46",
710
+ "src": "380:6:47",
711
711
  "typeDescriptions": {
712
712
  "typeIdentifier": "t_string_storage_ptr",
713
713
  "typeString": "string"
@@ -717,13 +717,13 @@
717
717
  },
718
718
  {
719
719
  "constant": false,
720
- "id": 33480,
720
+ "id": 33569,
721
721
  "mutability": "mutable",
722
722
  "name": "caller",
723
- "nameLocation": "405:6:46",
723
+ "nameLocation": "405:6:47",
724
724
  "nodeType": "VariableDeclaration",
725
- "scope": 33482,
726
- "src": "397:14:46",
725
+ "scope": 33571,
726
+ "src": "397:14:47",
727
727
  "stateVariable": false,
728
728
  "storageLocation": "default",
729
729
  "typeDescriptions": {
@@ -731,10 +731,10 @@
731
731
  "typeString": "address"
732
732
  },
733
733
  "typeName": {
734
- "id": 33479,
734
+ "id": 33568,
735
735
  "name": "address",
736
736
  "nodeType": "ElementaryTypeName",
737
- "src": "397:7:46",
737
+ "src": "397:7:47",
738
738
  "stateMutability": "nonpayable",
739
739
  "typeDescriptions": {
740
740
  "typeIdentifier": "t_address",
@@ -744,30 +744,30 @@
744
744
  "visibility": "internal"
745
745
  }
746
746
  ],
747
- "src": "379:33:46"
747
+ "src": "379:33:47"
748
748
  }
749
749
  },
750
750
  {
751
- "id": 33489,
751
+ "id": 33578,
752
752
  "nodeType": "ErrorDefinition",
753
- "src": "416:78:46",
753
+ "src": "416:78:47",
754
754
  "nodes": [],
755
755
  "errorSelector": "e4ac069e",
756
756
  "name": "World_InvalidResourceId",
757
- "nameLocation": "422:23:46",
757
+ "nameLocation": "422:23:47",
758
758
  "parameters": {
759
- "id": 33488,
759
+ "id": 33577,
760
760
  "nodeType": "ParameterList",
761
761
  "parameters": [
762
762
  {
763
763
  "constant": false,
764
- "id": 33485,
764
+ "id": 33574,
765
765
  "mutability": "mutable",
766
766
  "name": "resourceId",
767
- "nameLocation": "457:10:46",
767
+ "nameLocation": "457:10:47",
768
768
  "nodeType": "VariableDeclaration",
769
- "scope": 33489,
770
- "src": "446:21:46",
769
+ "scope": 33578,
770
+ "src": "446:21:47",
771
771
  "stateVariable": false,
772
772
  "storageLocation": "default",
773
773
  "typeDescriptions": {
@@ -775,20 +775,20 @@
775
775
  "typeString": "ResourceId"
776
776
  },
777
777
  "typeName": {
778
- "id": 33484,
778
+ "id": 33573,
779
779
  "nodeType": "UserDefinedTypeName",
780
780
  "pathNode": {
781
- "id": 33483,
781
+ "id": 33572,
782
782
  "name": "ResourceId",
783
783
  "nameLocations": [
784
- "446:10:46"
784
+ "446:10:47"
785
785
  ],
786
786
  "nodeType": "IdentifierPath",
787
787
  "referencedDeclaration": 36365,
788
- "src": "446:10:46"
788
+ "src": "446:10:47"
789
789
  },
790
790
  "referencedDeclaration": 36365,
791
- "src": "446:10:46",
791
+ "src": "446:10:47",
792
792
  "typeDescriptions": {
793
793
  "typeIdentifier": "t_userDefinedValueType$_ResourceId_$36365",
794
794
  "typeString": "ResourceId"
@@ -798,13 +798,13 @@
798
798
  },
799
799
  {
800
800
  "constant": false,
801
- "id": 33487,
801
+ "id": 33576,
802
802
  "mutability": "mutable",
803
803
  "name": "resourceIdString",
804
- "nameLocation": "476:16:46",
804
+ "nameLocation": "476:16:47",
805
805
  "nodeType": "VariableDeclaration",
806
- "scope": 33489,
807
- "src": "469:23:46",
806
+ "scope": 33578,
807
+ "src": "469:23:47",
808
808
  "stateVariable": false,
809
809
  "storageLocation": "default",
810
810
  "typeDescriptions": {
@@ -812,10 +812,10 @@
812
812
  "typeString": "string"
813
813
  },
814
814
  "typeName": {
815
- "id": 33486,
815
+ "id": 33575,
816
816
  "name": "string",
817
817
  "nodeType": "ElementaryTypeName",
818
- "src": "469:6:46",
818
+ "src": "469:6:47",
819
819
  "typeDescriptions": {
820
820
  "typeIdentifier": "t_string_storage_ptr",
821
821
  "typeString": "string"
@@ -824,30 +824,30 @@
824
824
  "visibility": "internal"
825
825
  }
826
826
  ],
827
- "src": "445:48:46"
827
+ "src": "445:48:47"
828
828
  }
829
829
  },
830
830
  {
831
- "id": 33493,
831
+ "id": 33582,
832
832
  "nodeType": "ErrorDefinition",
833
- "src": "497:48:46",
833
+ "src": "497:48:47",
834
834
  "nodes": [],
835
835
  "errorSelector": "c0b70741",
836
836
  "name": "World_SystemAlreadyExists",
837
- "nameLocation": "503:25:46",
837
+ "nameLocation": "503:25:47",
838
838
  "parameters": {
839
- "id": 33492,
839
+ "id": 33581,
840
840
  "nodeType": "ParameterList",
841
841
  "parameters": [
842
842
  {
843
843
  "constant": false,
844
- "id": 33491,
844
+ "id": 33580,
845
845
  "mutability": "mutable",
846
846
  "name": "system",
847
- "nameLocation": "537:6:46",
847
+ "nameLocation": "537:6:47",
848
848
  "nodeType": "VariableDeclaration",
849
- "scope": 33493,
850
- "src": "529:14:46",
849
+ "scope": 33582,
850
+ "src": "529:14:47",
851
851
  "stateVariable": false,
852
852
  "storageLocation": "default",
853
853
  "typeDescriptions": {
@@ -855,10 +855,10 @@
855
855
  "typeString": "address"
856
856
  },
857
857
  "typeName": {
858
- "id": 33490,
858
+ "id": 33579,
859
859
  "name": "address",
860
860
  "nodeType": "ElementaryTypeName",
861
- "src": "529:7:46",
861
+ "src": "529:7:47",
862
862
  "stateMutability": "nonpayable",
863
863
  "typeDescriptions": {
864
864
  "typeIdentifier": "t_address",
@@ -868,30 +868,30 @@
868
868
  "visibility": "internal"
869
869
  }
870
870
  ],
871
- "src": "528:16:46"
871
+ "src": "528:16:47"
872
872
  }
873
873
  },
874
874
  {
875
- "id": 33497,
875
+ "id": 33586,
876
876
  "nodeType": "ErrorDefinition",
877
- "src": "548:67:46",
877
+ "src": "548:67:47",
878
878
  "nodes": [],
879
879
  "errorSelector": "3d1d1ae2",
880
880
  "name": "World_FunctionSelectorAlreadyExists",
881
- "nameLocation": "554:35:46",
881
+ "nameLocation": "554:35:47",
882
882
  "parameters": {
883
- "id": 33496,
883
+ "id": 33585,
884
884
  "nodeType": "ParameterList",
885
885
  "parameters": [
886
886
  {
887
887
  "constant": false,
888
- "id": 33495,
888
+ "id": 33584,
889
889
  "mutability": "mutable",
890
890
  "name": "functionSelector",
891
- "nameLocation": "597:16:46",
891
+ "nameLocation": "597:16:47",
892
892
  "nodeType": "VariableDeclaration",
893
- "scope": 33497,
894
- "src": "590:23:46",
893
+ "scope": 33586,
894
+ "src": "590:23:47",
895
895
  "stateVariable": false,
896
896
  "storageLocation": "default",
897
897
  "typeDescriptions": {
@@ -899,10 +899,10 @@
899
899
  "typeString": "bytes4"
900
900
  },
901
901
  "typeName": {
902
- "id": 33494,
902
+ "id": 33583,
903
903
  "name": "bytes4",
904
904
  "nodeType": "ElementaryTypeName",
905
- "src": "590:6:46",
905
+ "src": "590:6:47",
906
906
  "typeDescriptions": {
907
907
  "typeIdentifier": "t_bytes4",
908
908
  "typeString": "bytes4"
@@ -911,30 +911,30 @@
911
911
  "visibility": "internal"
912
912
  }
913
913
  ],
914
- "src": "589:25:46"
914
+ "src": "589:25:47"
915
915
  }
916
916
  },
917
917
  {
918
- "id": 33501,
918
+ "id": 33590,
919
919
  "nodeType": "ErrorDefinition",
920
- "src": "618:62:46",
920
+ "src": "618:62:47",
921
921
  "nodes": [],
922
922
  "errorSelector": "fdde54e2",
923
923
  "name": "World_FunctionSelectorNotFound",
924
- "nameLocation": "624:30:46",
924
+ "nameLocation": "624:30:47",
925
925
  "parameters": {
926
- "id": 33500,
926
+ "id": 33589,
927
927
  "nodeType": "ParameterList",
928
928
  "parameters": [
929
929
  {
930
930
  "constant": false,
931
- "id": 33499,
931
+ "id": 33588,
932
932
  "mutability": "mutable",
933
933
  "name": "functionSelector",
934
- "nameLocation": "662:16:46",
934
+ "nameLocation": "662:16:47",
935
935
  "nodeType": "VariableDeclaration",
936
- "scope": 33501,
937
- "src": "655:23:46",
936
+ "scope": 33590,
937
+ "src": "655:23:47",
938
938
  "stateVariable": false,
939
939
  "storageLocation": "default",
940
940
  "typeDescriptions": {
@@ -942,10 +942,10 @@
942
942
  "typeString": "bytes4"
943
943
  },
944
944
  "typeName": {
945
- "id": 33498,
945
+ "id": 33587,
946
946
  "name": "bytes4",
947
947
  "nodeType": "ElementaryTypeName",
948
- "src": "655:6:46",
948
+ "src": "655:6:47",
949
949
  "typeDescriptions": {
950
950
  "typeIdentifier": "t_bytes4",
951
951
  "typeString": "bytes4"
@@ -954,30 +954,30 @@
954
954
  "visibility": "internal"
955
955
  }
956
956
  ],
957
- "src": "654:25:46"
957
+ "src": "654:25:47"
958
958
  }
959
959
  },
960
960
  {
961
- "id": 33507,
961
+ "id": 33596,
962
962
  "nodeType": "ErrorDefinition",
963
- "src": "683:69:46",
963
+ "src": "683:69:47",
964
964
  "nodes": [],
965
965
  "errorSelector": "c86745f9",
966
966
  "name": "World_DelegationNotFound",
967
- "nameLocation": "689:24:46",
967
+ "nameLocation": "689:24:47",
968
968
  "parameters": {
969
- "id": 33506,
969
+ "id": 33595,
970
970
  "nodeType": "ParameterList",
971
971
  "parameters": [
972
972
  {
973
973
  "constant": false,
974
- "id": 33503,
974
+ "id": 33592,
975
975
  "mutability": "mutable",
976
976
  "name": "delegator",
977
- "nameLocation": "722:9:46",
977
+ "nameLocation": "722:9:47",
978
978
  "nodeType": "VariableDeclaration",
979
- "scope": 33507,
980
- "src": "714:17:46",
979
+ "scope": 33596,
980
+ "src": "714:17:47",
981
981
  "stateVariable": false,
982
982
  "storageLocation": "default",
983
983
  "typeDescriptions": {
@@ -985,10 +985,10 @@
985
985
  "typeString": "address"
986
986
  },
987
987
  "typeName": {
988
- "id": 33502,
988
+ "id": 33591,
989
989
  "name": "address",
990
990
  "nodeType": "ElementaryTypeName",
991
- "src": "714:7:46",
991
+ "src": "714:7:47",
992
992
  "stateMutability": "nonpayable",
993
993
  "typeDescriptions": {
994
994
  "typeIdentifier": "t_address",
@@ -999,13 +999,13 @@
999
999
  },
1000
1000
  {
1001
1001
  "constant": false,
1002
- "id": 33505,
1002
+ "id": 33594,
1003
1003
  "mutability": "mutable",
1004
1004
  "name": "delegatee",
1005
- "nameLocation": "741:9:46",
1005
+ "nameLocation": "741:9:47",
1006
1006
  "nodeType": "VariableDeclaration",
1007
- "scope": 33507,
1008
- "src": "733:17:46",
1007
+ "scope": 33596,
1008
+ "src": "733:17:47",
1009
1009
  "stateVariable": false,
1010
1010
  "storageLocation": "default",
1011
1011
  "typeDescriptions": {
@@ -1013,10 +1013,10 @@
1013
1013
  "typeString": "address"
1014
1014
  },
1015
1015
  "typeName": {
1016
- "id": 33504,
1016
+ "id": 33593,
1017
1017
  "name": "address",
1018
1018
  "nodeType": "ElementaryTypeName",
1019
- "src": "733:7:46",
1019
+ "src": "733:7:47",
1020
1020
  "stateMutability": "nonpayable",
1021
1021
  "typeDescriptions": {
1022
1022
  "typeIdentifier": "t_address",
@@ -1026,45 +1026,45 @@
1026
1026
  "visibility": "internal"
1027
1027
  }
1028
1028
  ],
1029
- "src": "713:38:46"
1029
+ "src": "713:38:47"
1030
1030
  }
1031
1031
  },
1032
1032
  {
1033
- "id": 33509,
1033
+ "id": 33598,
1034
1034
  "nodeType": "ErrorDefinition",
1035
- "src": "755:44:46",
1035
+ "src": "755:44:47",
1036
1036
  "nodes": [],
1037
1037
  "errorSelector": "71ee9e81",
1038
1038
  "name": "World_UnlimitedDelegationNotAllowed",
1039
- "nameLocation": "761:35:46",
1039
+ "nameLocation": "761:35:47",
1040
1040
  "parameters": {
1041
- "id": 33508,
1041
+ "id": 33597,
1042
1042
  "nodeType": "ParameterList",
1043
1043
  "parameters": [],
1044
- "src": "796:2:46"
1044
+ "src": "796:2:47"
1045
1045
  }
1046
1046
  },
1047
1047
  {
1048
- "id": 33515,
1048
+ "id": 33604,
1049
1049
  "nodeType": "ErrorDefinition",
1050
- "src": "802:65:46",
1050
+ "src": "802:65:47",
1051
1051
  "nodes": [],
1052
1052
  "errorSelector": "0e0e2d4d",
1053
1053
  "name": "World_InsufficientBalance",
1054
- "nameLocation": "808:25:46",
1054
+ "nameLocation": "808:25:47",
1055
1055
  "parameters": {
1056
- "id": 33514,
1056
+ "id": 33603,
1057
1057
  "nodeType": "ParameterList",
1058
1058
  "parameters": [
1059
1059
  {
1060
1060
  "constant": false,
1061
- "id": 33511,
1061
+ "id": 33600,
1062
1062
  "mutability": "mutable",
1063
1063
  "name": "balance",
1064
- "nameLocation": "842:7:46",
1064
+ "nameLocation": "842:7:47",
1065
1065
  "nodeType": "VariableDeclaration",
1066
- "scope": 33515,
1067
- "src": "834:15:46",
1066
+ "scope": 33604,
1067
+ "src": "834:15:47",
1068
1068
  "stateVariable": false,
1069
1069
  "storageLocation": "default",
1070
1070
  "typeDescriptions": {
@@ -1072,10 +1072,10 @@
1072
1072
  "typeString": "uint256"
1073
1073
  },
1074
1074
  "typeName": {
1075
- "id": 33510,
1075
+ "id": 33599,
1076
1076
  "name": "uint256",
1077
1077
  "nodeType": "ElementaryTypeName",
1078
- "src": "834:7:46",
1078
+ "src": "834:7:47",
1079
1079
  "typeDescriptions": {
1080
1080
  "typeIdentifier": "t_uint256",
1081
1081
  "typeString": "uint256"
@@ -1085,13 +1085,13 @@
1085
1085
  },
1086
1086
  {
1087
1087
  "constant": false,
1088
- "id": 33513,
1088
+ "id": 33602,
1089
1089
  "mutability": "mutable",
1090
1090
  "name": "amount",
1091
- "nameLocation": "859:6:46",
1091
+ "nameLocation": "859:6:47",
1092
1092
  "nodeType": "VariableDeclaration",
1093
- "scope": 33515,
1094
- "src": "851:14:46",
1093
+ "scope": 33604,
1094
+ "src": "851:14:47",
1095
1095
  "stateVariable": false,
1096
1096
  "storageLocation": "default",
1097
1097
  "typeDescriptions": {
@@ -1099,10 +1099,10 @@
1099
1099
  "typeString": "uint256"
1100
1100
  },
1101
1101
  "typeName": {
1102
- "id": 33512,
1102
+ "id": 33601,
1103
1103
  "name": "uint256",
1104
1104
  "nodeType": "ElementaryTypeName",
1105
- "src": "851:7:46",
1105
+ "src": "851:7:47",
1106
1106
  "typeDescriptions": {
1107
1107
  "typeIdentifier": "t_uint256",
1108
1108
  "typeString": "uint256"
@@ -1111,30 +1111,30 @@
1111
1111
  "visibility": "internal"
1112
1112
  }
1113
1113
  ],
1114
- "src": "833:33:46"
1114
+ "src": "833:33:47"
1115
1115
  }
1116
1116
  },
1117
1117
  {
1118
- "id": 33521,
1118
+ "id": 33610,
1119
1119
  "nodeType": "ErrorDefinition",
1120
- "src": "870:79:46",
1120
+ "src": "870:79:47",
1121
1121
  "nodes": [],
1122
1122
  "errorSelector": "74b5e6ff",
1123
1123
  "name": "World_InterfaceNotSupported",
1124
- "nameLocation": "876:27:46",
1124
+ "nameLocation": "876:27:47",
1125
1125
  "parameters": {
1126
- "id": 33520,
1126
+ "id": 33609,
1127
1127
  "nodeType": "ParameterList",
1128
1128
  "parameters": [
1129
1129
  {
1130
1130
  "constant": false,
1131
- "id": 33517,
1131
+ "id": 33606,
1132
1132
  "mutability": "mutable",
1133
1133
  "name": "contractAddress",
1134
- "nameLocation": "912:15:46",
1134
+ "nameLocation": "912:15:47",
1135
1135
  "nodeType": "VariableDeclaration",
1136
- "scope": 33521,
1137
- "src": "904:23:46",
1136
+ "scope": 33610,
1137
+ "src": "904:23:47",
1138
1138
  "stateVariable": false,
1139
1139
  "storageLocation": "default",
1140
1140
  "typeDescriptions": {
@@ -1142,10 +1142,10 @@
1142
1142
  "typeString": "address"
1143
1143
  },
1144
1144
  "typeName": {
1145
- "id": 33516,
1145
+ "id": 33605,
1146
1146
  "name": "address",
1147
1147
  "nodeType": "ElementaryTypeName",
1148
- "src": "904:7:46",
1148
+ "src": "904:7:47",
1149
1149
  "stateMutability": "nonpayable",
1150
1150
  "typeDescriptions": {
1151
1151
  "typeIdentifier": "t_address",
@@ -1156,13 +1156,13 @@
1156
1156
  },
1157
1157
  {
1158
1158
  "constant": false,
1159
- "id": 33519,
1159
+ "id": 33608,
1160
1160
  "mutability": "mutable",
1161
1161
  "name": "interfaceId",
1162
- "nameLocation": "936:11:46",
1162
+ "nameLocation": "936:11:47",
1163
1163
  "nodeType": "VariableDeclaration",
1164
- "scope": 33521,
1165
- "src": "929:18:46",
1164
+ "scope": 33610,
1165
+ "src": "929:18:47",
1166
1166
  "stateVariable": false,
1167
1167
  "storageLocation": "default",
1168
1168
  "typeDescriptions": {
@@ -1170,10 +1170,10 @@
1170
1170
  "typeString": "bytes4"
1171
1171
  },
1172
1172
  "typeName": {
1173
- "id": 33518,
1173
+ "id": 33607,
1174
1174
  "name": "bytes4",
1175
1175
  "nodeType": "ElementaryTypeName",
1176
- "src": "929:6:46",
1176
+ "src": "929:6:47",
1177
1177
  "typeDescriptions": {
1178
1178
  "typeIdentifier": "t_bytes4",
1179
1179
  "typeString": "bytes4"
@@ -1182,30 +1182,30 @@
1182
1182
  "visibility": "internal"
1183
1183
  }
1184
1184
  ],
1185
- "src": "903:45:46"
1185
+ "src": "903:45:47"
1186
1186
  }
1187
1187
  },
1188
1188
  {
1189
- "id": 33530,
1189
+ "id": 33619,
1190
1190
  "nodeType": "ErrorDefinition",
1191
- "src": "952:97:46",
1191
+ "src": "952:97:47",
1192
1192
  "nodes": [],
1193
1193
  "errorSelector": "5c30fb6f",
1194
1194
  "name": "World_InvalidResourceType",
1195
- "nameLocation": "958:25:46",
1195
+ "nameLocation": "958:25:47",
1196
1196
  "parameters": {
1197
- "id": 33529,
1197
+ "id": 33618,
1198
1198
  "nodeType": "ParameterList",
1199
1199
  "parameters": [
1200
1200
  {
1201
1201
  "constant": false,
1202
- "id": 33523,
1202
+ "id": 33612,
1203
1203
  "mutability": "mutable",
1204
1204
  "name": "expected",
1205
- "nameLocation": "991:8:46",
1205
+ "nameLocation": "991:8:47",
1206
1206
  "nodeType": "VariableDeclaration",
1207
- "scope": 33530,
1208
- "src": "984:15:46",
1207
+ "scope": 33619,
1208
+ "src": "984:15:47",
1209
1209
  "stateVariable": false,
1210
1210
  "storageLocation": "default",
1211
1211
  "typeDescriptions": {
@@ -1213,10 +1213,10 @@
1213
1213
  "typeString": "bytes2"
1214
1214
  },
1215
1215
  "typeName": {
1216
- "id": 33522,
1216
+ "id": 33611,
1217
1217
  "name": "bytes2",
1218
1218
  "nodeType": "ElementaryTypeName",
1219
- "src": "984:6:46",
1219
+ "src": "984:6:47",
1220
1220
  "typeDescriptions": {
1221
1221
  "typeIdentifier": "t_bytes2",
1222
1222
  "typeString": "bytes2"
@@ -1226,13 +1226,13 @@
1226
1226
  },
1227
1227
  {
1228
1228
  "constant": false,
1229
- "id": 33526,
1229
+ "id": 33615,
1230
1230
  "mutability": "mutable",
1231
1231
  "name": "resourceId",
1232
- "nameLocation": "1012:10:46",
1232
+ "nameLocation": "1012:10:47",
1233
1233
  "nodeType": "VariableDeclaration",
1234
- "scope": 33530,
1235
- "src": "1001:21:46",
1234
+ "scope": 33619,
1235
+ "src": "1001:21:47",
1236
1236
  "stateVariable": false,
1237
1237
  "storageLocation": "default",
1238
1238
  "typeDescriptions": {
@@ -1240,20 +1240,20 @@
1240
1240
  "typeString": "ResourceId"
1241
1241
  },
1242
1242
  "typeName": {
1243
- "id": 33525,
1243
+ "id": 33614,
1244
1244
  "nodeType": "UserDefinedTypeName",
1245
1245
  "pathNode": {
1246
- "id": 33524,
1246
+ "id": 33613,
1247
1247
  "name": "ResourceId",
1248
1248
  "nameLocations": [
1249
- "1001:10:46"
1249
+ "1001:10:47"
1250
1250
  ],
1251
1251
  "nodeType": "IdentifierPath",
1252
1252
  "referencedDeclaration": 36365,
1253
- "src": "1001:10:46"
1253
+ "src": "1001:10:47"
1254
1254
  },
1255
1255
  "referencedDeclaration": 36365,
1256
- "src": "1001:10:46",
1256
+ "src": "1001:10:47",
1257
1257
  "typeDescriptions": {
1258
1258
  "typeIdentifier": "t_userDefinedValueType$_ResourceId_$36365",
1259
1259
  "typeString": "ResourceId"
@@ -1263,13 +1263,13 @@
1263
1263
  },
1264
1264
  {
1265
1265
  "constant": false,
1266
- "id": 33528,
1266
+ "id": 33617,
1267
1267
  "mutability": "mutable",
1268
1268
  "name": "resourceIdString",
1269
- "nameLocation": "1031:16:46",
1269
+ "nameLocation": "1031:16:47",
1270
1270
  "nodeType": "VariableDeclaration",
1271
- "scope": 33530,
1272
- "src": "1024:23:46",
1271
+ "scope": 33619,
1272
+ "src": "1024:23:47",
1273
1273
  "stateVariable": false,
1274
1274
  "storageLocation": "default",
1275
1275
  "typeDescriptions": {
@@ -1277,10 +1277,10 @@
1277
1277
  "typeString": "string"
1278
1278
  },
1279
1279
  "typeName": {
1280
- "id": 33527,
1280
+ "id": 33616,
1281
1281
  "name": "string",
1282
1282
  "nodeType": "ElementaryTypeName",
1283
- "src": "1024:6:46",
1283
+ "src": "1024:6:47",
1284
1284
  "typeDescriptions": {
1285
1285
  "typeIdentifier": "t_string_storage_ptr",
1286
1286
  "typeString": "string"
@@ -1289,30 +1289,30 @@
1289
1289
  "visibility": "internal"
1290
1290
  }
1291
1291
  ],
1292
- "src": "983:65:46"
1292
+ "src": "983:65:47"
1293
1293
  }
1294
1294
  },
1295
1295
  {
1296
- "id": 33534,
1296
+ "id": 33623,
1297
1297
  "nodeType": "ErrorDefinition",
1298
- "src": "1052:56:46",
1298
+ "src": "1052:56:47",
1299
1299
  "nodes": [],
1300
1300
  "errorSelector": "9e85182c",
1301
1301
  "name": "World_CallbackNotAllowed",
1302
- "nameLocation": "1058:24:46",
1302
+ "nameLocation": "1058:24:47",
1303
1303
  "parameters": {
1304
- "id": 33533,
1304
+ "id": 33622,
1305
1305
  "nodeType": "ParameterList",
1306
1306
  "parameters": [
1307
1307
  {
1308
1308
  "constant": false,
1309
- "id": 33532,
1309
+ "id": 33621,
1310
1310
  "mutability": "mutable",
1311
1311
  "name": "functionSelector",
1312
- "nameLocation": "1090:16:46",
1312
+ "nameLocation": "1090:16:47",
1313
1313
  "nodeType": "VariableDeclaration",
1314
- "scope": 33534,
1315
- "src": "1083:23:46",
1314
+ "scope": 33623,
1315
+ "src": "1083:23:47",
1316
1316
  "stateVariable": false,
1317
1317
  "storageLocation": "default",
1318
1318
  "typeDescriptions": {
@@ -1320,10 +1320,10 @@
1320
1320
  "typeString": "bytes4"
1321
1321
  },
1322
1322
  "typeName": {
1323
- "id": 33531,
1323
+ "id": 33620,
1324
1324
  "name": "bytes4",
1325
1325
  "nodeType": "ElementaryTypeName",
1326
- "src": "1083:6:46",
1326
+ "src": "1083:6:47",
1327
1327
  "typeDescriptions": {
1328
1328
  "typeIdentifier": "t_bytes4",
1329
1329
  "typeString": "bytes4"
@@ -1332,7 +1332,7 @@
1332
1332
  "visibility": "internal"
1333
1333
  }
1334
1334
  ],
1335
- "src": "1082:25:46"
1335
+ "src": "1082:25:47"
1336
1336
  }
1337
1337
  }
1338
1338
  ],
@@ -1343,31 +1343,31 @@
1343
1343
  "contractKind": "interface",
1344
1344
  "fullyImplemented": true,
1345
1345
  "linearizedBaseContracts": [
1346
- 33535
1346
+ 33624
1347
1347
  ],
1348
1348
  "name": "IWorldErrors",
1349
- "nameLocation": "137:12:46",
1350
- "scope": 33536,
1349
+ "nameLocation": "137:12:47",
1350
+ "scope": 33625,
1351
1351
  "usedErrors": [
1352
- 33462,
1353
- 33469,
1354
- 33476,
1355
- 33482,
1356
- 33489,
1357
- 33493,
1358
- 33497,
1359
- 33501,
1360
- 33507,
1361
- 33509,
1362
- 33515,
1363
- 33521,
1364
- 33530,
1365
- 33534
1352
+ 33551,
1353
+ 33558,
1354
+ 33565,
1355
+ 33571,
1356
+ 33578,
1357
+ 33582,
1358
+ 33586,
1359
+ 33590,
1360
+ 33596,
1361
+ 33598,
1362
+ 33604,
1363
+ 33610,
1364
+ 33619,
1365
+ 33623
1366
1366
  ],
1367
1367
  "usedEvents": []
1368
1368
  }
1369
1369
  ],
1370
1370
  "license": "MIT"
1371
1371
  },
1372
- "id": 46
1372
+ "id": 47
1373
1373
  }