@latticexyz/world-modules 2.0.0-main-071aadb9 → 2.0.0-main-7987c94d

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 (112) hide show
  1. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  2. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +215 -215
  3. package/out/CallboundDelegations.sol/CallboundDelegations.json +2599 -2599
  4. package/out/DecodeSlice.sol/DecodeSlice.json +3250 -3250
  5. package/out/DelegationControl.sol/DelegationControl.json +94 -94
  6. package/out/EncodeArray.sol/EncodeArray.json +3345 -3345
  7. package/out/FieldLayout.sol/FieldLayoutInstance.json +47 -47
  8. package/out/FieldLayout.sol/FieldLayoutLib.json +47 -47
  9. package/out/Hook.sol/HookInstance.json +13 -13
  10. package/out/Hook.sol/HookLib.json +13 -13
  11. package/out/Hooks.sol/Hooks.json +3393 -3393
  12. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +58 -58
  13. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +54 -54
  14. package/out/IBaseWorld.sol/IBaseWorld.json +64 -64
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +52 -52
  16. package/out/ICoreSystem.sol/ICoreSystem.json +7 -7
  17. package/out/IDelegationControl.sol/IDelegationControl.json +62 -62
  18. package/out/IModule.sol/IModule.json +78 -78
  19. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +28 -28
  20. package/out/ISystemHook.sol/ISystemHook.json +86 -86
  21. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  22. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +71 -71
  23. package/out/IWorldErrors.sol/IWorldErrors.json +152 -152
  24. package/out/IWorldKernel.sol/IWorldCall.json +154 -154
  25. package/out/IWorldKernel.sol/IWorldKernel.json +154 -154
  26. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +154 -154
  27. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +190 -190
  28. package/out/KeysInTable.sol/KeysInTable.json +10672 -10672
  29. package/out/KeysInTableHook.sol/KeysInTableHook.json +867 -867
  30. package/out/KeysInTableModule.sol/KeysInTableModule.json +538 -538
  31. package/out/KeysWithValue.sol/KeysWithValue.json +3832 -3832
  32. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +993 -993
  33. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +426 -426
  34. package/out/Memory.sol/Memory.json +4 -4
  35. package/out/Module.sol/Module.json +84 -84
  36. package/out/ResourceIds.sol/ResourceIds.json +1363 -1363
  37. package/out/Schema.sol/SchemaInstance.json +72 -72
  38. package/out/Schema.sol/SchemaLib.json +72 -72
  39. package/out/SchemaType.sol/SchemaType.json +276 -276
  40. package/out/Slice.sol/SliceInstance.json +4 -4
  41. package/out/Slice.sol/SliceLib.json +4 -4
  42. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +303 -303
  43. package/out/Storage.sol/Storage.json +7 -7
  44. package/out/StoreCore.sol/StoreCore.json +708 -737
  45. package/out/StoreCore.sol/StoreCoreInternal.json +710 -739
  46. package/out/StoreHook.sol/StoreHook.json +368 -368
  47. package/out/StoreHooks.sol/StoreHooks.json +3232 -3232
  48. package/out/StoreSwitch.sol/StoreSwitch.json +1885 -1885
  49. package/out/System.sol/System.json +31 -31
  50. package/out/Tables.sol/Tables.json +5585 -5585
  51. package/out/TightCoder.sol/TightCoder.json +124 -124
  52. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +119 -119
  53. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1990 -1990
  54. package/out/UniqueEntity.sol/UniqueEntity.json +1406 -1406
  55. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +327 -327
  56. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +93 -93
  57. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2727 -2727
  58. package/out/WorldContext.sol/WorldContextConsumer.json +1380 -988
  59. package/out/WorldContext.sol/{WorldContextProvider.json → WorldContextConsumerLib.json} +1381 -989
  60. package/out/WorldContext.sol/WorldContextProviderLib.json +3910 -0
  61. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +476 -476
  62. package/out/WorldResourceId.sol/WorldResourceIdLib.json +476 -476
  63. package/out/constants.sol/LayoutOffsets.json +79 -79
  64. package/out/constants.sol/constants.json +115 -115
  65. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  66. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  67. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  68. package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  69. package/out/hasKey.sol/hasKey.json +130 -130
  70. package/out/index.sol/index.json +53 -53
  71. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +131 -131
  72. package/out/leftMask.sol/leftMask.json +31 -31
  73. package/out/query.sol/query.json +1154 -1154
  74. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  75. package/out/src/Bytes.sol/Bytes.json +1338 -1338
  76. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +698 -698
  77. package/out/src/FieldLayout.sol/FieldLayoutLib.json +698 -698
  78. package/out/src/IStore.sol/IStore.json +53 -53
  79. package/out/src/IWorldKernel.sol/IWorldCall.json +153 -153
  80. package/out/src/IWorldKernel.sol/IWorldKernel.json +153 -153
  81. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +153 -153
  82. package/out/src/Memory.sol/Memory.json +91 -91
  83. package/out/src/PackedCounter.sol/PackedCounterInstance.json +929 -929
  84. package/out/src/PackedCounter.sol/PackedCounterLib.json +929 -929
  85. package/out/src/ResourceId.sol/ResourceIdInstance.json +116 -116
  86. package/out/src/ResourceId.sol/ResourceIdLib.json +116 -116
  87. package/out/src/Schema.sol/SchemaInstance.json +790 -790
  88. package/out/src/Schema.sol/SchemaLib.json +790 -790
  89. package/out/src/Slice.sol/SliceInstance.json +430 -430
  90. package/out/src/Slice.sol/SliceLib.json +430 -430
  91. package/out/src/StoreCore.sol/StoreCore.json +4695 -4724
  92. package/out/src/StoreCore.sol/StoreCoreInternal.json +4697 -4726
  93. package/out/src/StoreSwitch.sol/StoreSwitch.json +2487 -2487
  94. package/out/src/WorldContext.sol/WorldContextConsumer.json +1291 -899
  95. package/out/src/WorldContext.sol/WorldContextConsumerLib.abi.json +1 -0
  96. package/out/src/WorldContext.sol/{WorldContextProvider.json → WorldContextConsumerLib.json} +1292 -900
  97. package/out/src/WorldContext.sol/WorldContextProviderLib.abi.json +1 -0
  98. package/out/src/WorldContext.sol/WorldContextProviderLib.json +3910 -0
  99. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +476 -476
  100. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +476 -476
  101. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  102. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  103. package/out/tables/ResourceIds.sol/ResourceIds.json +1751 -1751
  104. package/out/tables/Tables.sol/Tables.json +7292 -7292
  105. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3345 -3345
  106. package/out/types.sol/types.json +41 -41
  107. package/out/version.sol/version.json +7 -7
  108. package/out/world/src/IERC165.sol/IERC165.json +28 -28
  109. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  110. package/package.json +8 -8
  111. /package/out/WorldContext.sol/{WorldContextProvider.abi.json → WorldContextConsumerLib.abi.json} +0 -0
  112. /package/out/{src/WorldContext.sol/WorldContextProvider.abi.json → WorldContext.sol/WorldContextProviderLib.abi.json} +0 -0
@@ -346,29 +346,29 @@
346
346
  },
347
347
  "ast": {
348
348
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/IDelegationControl.sol",
349
- "id": 23227,
349
+ "id": 23225,
350
350
  "exportedSymbols": {
351
351
  "DELEGATION_CONTROL_INTERFACE_ID": [
352
- 23210
352
+ 23208
353
353
  ],
354
354
  "IDelegationControl": [
355
- 23226
355
+ 23224
356
356
  ],
357
357
  "IWorldContextConsumer": [
358
- 23380
358
+ 23378
359
359
  ],
360
360
  "ResourceId": [
361
- 26573
361
+ 26605
362
362
  ],
363
363
  "WORLD_CONTEXT_CONSUMER_INTERFACE_ID": [
364
- 23358
364
+ 23356
365
365
  ]
366
366
  },
367
367
  "nodeType": "SourceUnit",
368
368
  "src": "32:847:33",
369
369
  "nodes": [
370
370
  {
371
- "id": 23197,
371
+ "id": 23195,
372
372
  "nodeType": "PragmaDirective",
373
373
  "src": "32:25:33",
374
374
  "nodes": [],
@@ -380,23 +380,23 @@
380
380
  ]
381
381
  },
382
382
  {
383
- "id": 23200,
383
+ "id": 23198,
384
384
  "nodeType": "ImportDirective",
385
385
  "src": "59:105:33",
386
386
  "nodes": [],
387
387
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/IWorldContextConsumer.sol",
388
388
  "file": "./IWorldContextConsumer.sol",
389
389
  "nameLocation": "-1:-1:-1",
390
- "scope": 23227,
391
- "sourceUnit": 23381,
390
+ "scope": 23225,
391
+ "sourceUnit": 23379,
392
392
  "symbolAliases": [
393
393
  {
394
394
  "foreign": {
395
- "id": 23198,
395
+ "id": 23196,
396
396
  "name": "IWorldContextConsumer",
397
397
  "nodeType": "Identifier",
398
398
  "overloadedDeclarations": [],
399
- "referencedDeclaration": 23380,
399
+ "referencedDeclaration": 23378,
400
400
  "src": "68:21:33",
401
401
  "typeDescriptions": {}
402
402
  },
@@ -404,11 +404,11 @@
404
404
  },
405
405
  {
406
406
  "foreign": {
407
- "id": 23199,
407
+ "id": 23197,
408
408
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
409
409
  "nodeType": "Identifier",
410
410
  "overloadedDeclarations": [],
411
- "referencedDeclaration": 23358,
411
+ "referencedDeclaration": 23356,
412
412
  "src": "91:35:33",
413
413
  "typeDescriptions": {}
414
414
  },
@@ -418,23 +418,23 @@
418
418
  "unitAlias": ""
419
419
  },
420
420
  {
421
- "id": 23202,
421
+ "id": 23200,
422
422
  "nodeType": "ImportDirective",
423
423
  "src": "165:51:33",
424
424
  "nodes": [],
425
425
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/WorldResourceId.sol",
426
426
  "file": "./WorldResourceId.sol",
427
427
  "nameLocation": "-1:-1:-1",
428
- "scope": 23227,
429
- "sourceUnit": 24066,
428
+ "scope": 23225,
429
+ "sourceUnit": 24098,
430
430
  "symbolAliases": [
431
431
  {
432
432
  "foreign": {
433
- "id": 23201,
433
+ "id": 23199,
434
434
  "name": "ResourceId",
435
435
  "nodeType": "Identifier",
436
436
  "overloadedDeclarations": [],
437
- "referencedDeclaration": 26573,
437
+ "referencedDeclaration": 26605,
438
438
  "src": "174:10:33",
439
439
  "typeDescriptions": {}
440
440
  },
@@ -444,7 +444,7 @@
444
444
  "unitAlias": ""
445
445
  },
446
446
  {
447
- "id": 23210,
447
+ "id": 23208,
448
448
  "nodeType": "VariableDeclaration",
449
449
  "src": "407:124:33",
450
450
  "nodes": [],
@@ -452,7 +452,7 @@
452
452
  "mutability": "constant",
453
453
  "name": "DELEGATION_CONTROL_INTERFACE_ID",
454
454
  "nameLocation": "423:31:33",
455
- "scope": 23227,
455
+ "scope": 23225,
456
456
  "stateVariable": false,
457
457
  "storageLocation": "default",
458
458
  "typeDescriptions": {
@@ -460,7 +460,7 @@
460
460
  "typeString": "bytes4"
461
461
  },
462
462
  "typeName": {
463
- "id": 23204,
463
+ "id": 23202,
464
464
  "name": "bytes4",
465
465
  "nodeType": "ElementaryTypeName",
466
466
  "src": "407:6:33",
@@ -474,7 +474,7 @@
474
474
  "typeIdentifier": "t_bytes4",
475
475
  "typeString": "bytes4"
476
476
  },
477
- "id": 23209,
477
+ "id": 23207,
478
478
  "isConstant": false,
479
479
  "isLValue": false,
480
480
  "isPure": true,
@@ -482,18 +482,18 @@
482
482
  "leftExpression": {
483
483
  "expression": {
484
484
  "expression": {
485
- "id": 23205,
485
+ "id": 23203,
486
486
  "name": "IDelegationControl",
487
487
  "nodeType": "Identifier",
488
488
  "overloadedDeclarations": [],
489
- "referencedDeclaration": 23226,
489
+ "referencedDeclaration": 23224,
490
490
  "src": "457:18:33",
491
491
  "typeDescriptions": {
492
- "typeIdentifier": "t_type$_t_contract$_IDelegationControl_$23226_$",
492
+ "typeIdentifier": "t_type$_t_contract$_IDelegationControl_$23224_$",
493
493
  "typeString": "type(contract IDelegationControl)"
494
494
  }
495
495
  },
496
- "id": 23206,
496
+ "id": 23204,
497
497
  "isConstant": false,
498
498
  "isLValue": false,
499
499
  "isPure": true,
@@ -501,14 +501,14 @@
501
501
  "memberLocation": "476:6:33",
502
502
  "memberName": "verify",
503
503
  "nodeType": "MemberAccess",
504
- "referencedDeclaration": 23225,
504
+ "referencedDeclaration": 23223,
505
505
  "src": "457:25:33",
506
506
  "typeDescriptions": {
507
- "typeIdentifier": "t_function_declaration_nonpayable$_t_address_$_t_userDefinedValueType$_ResourceId_$26573_$_t_bytes_memory_ptr_$returns$_t_bool_$",
507
+ "typeIdentifier": "t_function_declaration_nonpayable$_t_address_$_t_userDefinedValueType$_ResourceId_$26605_$_t_bytes_memory_ptr_$returns$_t_bool_$",
508
508
  "typeString": "function IDelegationControl.verify(address,ResourceId,bytes memory) returns (bool)"
509
509
  }
510
510
  },
511
- "id": 23207,
511
+ "id": 23205,
512
512
  "isConstant": false,
513
513
  "isLValue": false,
514
514
  "isPure": true,
@@ -525,11 +525,11 @@
525
525
  "nodeType": "BinaryOperation",
526
526
  "operator": "^",
527
527
  "rightExpression": {
528
- "id": 23208,
528
+ "id": 23206,
529
529
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
530
530
  "nodeType": "Identifier",
531
531
  "overloadedDeclarations": [],
532
- "referencedDeclaration": 23358,
532
+ "referencedDeclaration": 23356,
533
533
  "src": "496:35:33",
534
534
  "typeDescriptions": {
535
535
  "typeIdentifier": "t_bytes4",
@@ -545,12 +545,12 @@
545
545
  "visibility": "internal"
546
546
  },
547
547
  {
548
- "id": 23226,
548
+ "id": 23224,
549
549
  "nodeType": "ContractDefinition",
550
550
  "src": "715:163:33",
551
551
  "nodes": [
552
552
  {
553
- "id": 23225,
553
+ "id": 23223,
554
554
  "nodeType": "FunctionDefinition",
555
555
  "src": "773:103:33",
556
556
  "nodes": [],
@@ -561,17 +561,17 @@
561
561
  "name": "verify",
562
562
  "nameLocation": "782:6:33",
563
563
  "parameters": {
564
- "id": 23221,
564
+ "id": 23219,
565
565
  "nodeType": "ParameterList",
566
566
  "parameters": [
567
567
  {
568
568
  "constant": false,
569
- "id": 23215,
569
+ "id": 23213,
570
570
  "mutability": "mutable",
571
571
  "name": "delegator",
572
572
  "nameLocation": "797:9:33",
573
573
  "nodeType": "VariableDeclaration",
574
- "scope": 23225,
574
+ "scope": 23223,
575
575
  "src": "789:17:33",
576
576
  "stateVariable": false,
577
577
  "storageLocation": "default",
@@ -580,7 +580,7 @@
580
580
  "typeString": "address"
581
581
  },
582
582
  "typeName": {
583
- "id": 23214,
583
+ "id": 23212,
584
584
  "name": "address",
585
585
  "nodeType": "ElementaryTypeName",
586
586
  "src": "789:7:33",
@@ -594,36 +594,36 @@
594
594
  },
595
595
  {
596
596
  "constant": false,
597
- "id": 23218,
597
+ "id": 23216,
598
598
  "mutability": "mutable",
599
599
  "name": "systemId",
600
600
  "nameLocation": "819:8:33",
601
601
  "nodeType": "VariableDeclaration",
602
- "scope": 23225,
602
+ "scope": 23223,
603
603
  "src": "808:19:33",
604
604
  "stateVariable": false,
605
605
  "storageLocation": "default",
606
606
  "typeDescriptions": {
607
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26573",
607
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
608
608
  "typeString": "ResourceId"
609
609
  },
610
610
  "typeName": {
611
- "id": 23217,
611
+ "id": 23215,
612
612
  "nodeType": "UserDefinedTypeName",
613
613
  "pathNode": {
614
- "id": 23216,
614
+ "id": 23214,
615
615
  "name": "ResourceId",
616
616
  "nameLocations": [
617
617
  "808:10:33"
618
618
  ],
619
619
  "nodeType": "IdentifierPath",
620
- "referencedDeclaration": 26573,
620
+ "referencedDeclaration": 26605,
621
621
  "src": "808:10:33"
622
622
  },
623
- "referencedDeclaration": 26573,
623
+ "referencedDeclaration": 26605,
624
624
  "src": "808:10:33",
625
625
  "typeDescriptions": {
626
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26573",
626
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
627
627
  "typeString": "ResourceId"
628
628
  }
629
629
  },
@@ -631,12 +631,12 @@
631
631
  },
632
632
  {
633
633
  "constant": false,
634
- "id": 23220,
634
+ "id": 23218,
635
635
  "mutability": "mutable",
636
636
  "name": "callData",
637
637
  "nameLocation": "842:8:33",
638
638
  "nodeType": "VariableDeclaration",
639
- "scope": 23225,
639
+ "scope": 23223,
640
640
  "src": "829:21:33",
641
641
  "stateVariable": false,
642
642
  "storageLocation": "memory",
@@ -645,7 +645,7 @@
645
645
  "typeString": "bytes"
646
646
  },
647
647
  "typeName": {
648
- "id": 23219,
648
+ "id": 23217,
649
649
  "name": "bytes",
650
650
  "nodeType": "ElementaryTypeName",
651
651
  "src": "829:5:33",
@@ -660,17 +660,17 @@
660
660
  "src": "788:63:33"
661
661
  },
662
662
  "returnParameters": {
663
- "id": 23224,
663
+ "id": 23222,
664
664
  "nodeType": "ParameterList",
665
665
  "parameters": [
666
666
  {
667
667
  "constant": false,
668
- "id": 23223,
668
+ "id": 23221,
669
669
  "mutability": "mutable",
670
670
  "name": "",
671
671
  "nameLocation": "-1:-1:-1",
672
672
  "nodeType": "VariableDeclaration",
673
- "scope": 23225,
673
+ "scope": 23223,
674
674
  "src": "870:4:33",
675
675
  "stateVariable": false,
676
676
  "storageLocation": "default",
@@ -679,7 +679,7 @@
679
679
  "typeString": "bool"
680
680
  },
681
681
  "typeName": {
682
- "id": 23222,
682
+ "id": 23220,
683
683
  "name": "bool",
684
684
  "nodeType": "ElementaryTypeName",
685
685
  "src": "870:4:33",
@@ -693,7 +693,7 @@
693
693
  ],
694
694
  "src": "869:6:33"
695
695
  },
696
- "scope": 23226,
696
+ "scope": 23224,
697
697
  "stateMutability": "nonpayable",
698
698
  "virtual": false,
699
699
  "visibility": "external"
@@ -703,16 +703,16 @@
703
703
  "baseContracts": [
704
704
  {
705
705
  "baseName": {
706
- "id": 23212,
706
+ "id": 23210,
707
707
  "name": "IWorldContextConsumer",
708
708
  "nameLocations": [
709
709
  "747:21:33"
710
710
  ],
711
711
  "nodeType": "IdentifierPath",
712
- "referencedDeclaration": 23380,
712
+ "referencedDeclaration": 23378,
713
713
  "src": "747:21:33"
714
714
  },
715
- "id": 23213,
715
+ "id": 23211,
716
716
  "nodeType": "InheritanceSpecifier",
717
717
  "src": "747:21:33"
718
718
  }
@@ -721,20 +721,20 @@
721
721
  "contractDependencies": [],
722
722
  "contractKind": "interface",
723
723
  "documentation": {
724
- "id": 23211,
724
+ "id": 23209,
725
725
  "nodeType": "StructuredDocumentation",
726
726
  "src": "534:180:33",
727
727
  "text": " @title IDelegationControl\n @dev Interface for managing and verifying delegations within the context of a world.\n Inherits functionalities from IWorldContextConsumer."
728
728
  },
729
729
  "fullyImplemented": false,
730
730
  "linearizedBaseContracts": [
731
- 23226,
732
- 23380,
733
- 23244
731
+ 23224,
732
+ 23378,
733
+ 23242
734
734
  ],
735
735
  "name": "IDelegationControl",
736
736
  "nameLocation": "725:18:33",
737
- "scope": 23227,
737
+ "scope": 23225,
738
738
  "usedErrors": [],
739
739
  "usedEvents": []
740
740
  }