@latticexyz/world-modules 2.0.0-main-e20633d4 → 2.0.0-main-071aadb9

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 (113) hide show
  1. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  2. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +220 -220
  3. package/out/CallboundDelegations.sol/CallboundDelegations.json +4463 -4463
  4. package/out/DecodeSlice.sol/DecodeSlice.json +3250 -3250
  5. package/out/DelegationControl.sol/DelegationControl.json +98 -98
  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 +3186 -3186
  12. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +106 -100
  13. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +98 -92
  14. package/out/IBaseWorld.sol/IBaseWorld.json +79 -79
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +92 -86
  16. package/out/ICoreSystem.sol/ICoreSystem.json +19 -13
  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 +52 -46
  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 +329 -323
  28. package/out/KeysInTable.sol/KeysInTable.json +18239 -18239
  29. package/out/KeysInTableHook.sol/KeysInTableHook.json +882 -882
  30. package/out/KeysInTableModule.sol/KeysInTableModule.json +564 -564
  31. package/out/KeysWithValue.sol/KeysWithValue.json +6661 -6661
  32. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1023 -1023
  33. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +450 -450
  34. package/out/Memory.sol/Memory.json +4 -4
  35. package/out/Module.sol/Module.json +88 -88
  36. package/out/ResourceIds.sol/ResourceIds.json +1237 -1231
  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 +330 -330
  43. package/out/Storage.sol/Storage.json +7 -7
  44. package/out/StoreCore.sol/StoreCore.json +101 -101
  45. package/out/StoreCore.sol/StoreCoreInternal.json +101 -101
  46. package/out/StoreHook.sol/StoreHook.json +368 -368
  47. package/out/StoreHooks.sol/StoreHooks.json +6042 -6042
  48. package/out/StoreSwitch.sol/StoreSwitch.json +13 -13
  49. package/out/System.sol/System.json +32 -32
  50. package/out/Tables.sol/Tables.json +10401 -10401
  51. package/out/TightCoder.sol/TightCoder.json +124 -124
  52. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +124 -124
  53. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3442 -3442
  54. package/out/UniqueEntity.sol/UniqueEntity.json +2344 -2344
  55. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +351 -351
  56. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +98 -98
  57. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4568 -4562
  58. package/out/WorldContext.sol/WorldContextConsumer.json +376 -376
  59. package/out/WorldContext.sol/WorldContextProvider.json +376 -376
  60. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +476 -476
  61. package/out/WorldResourceId.sol/WorldResourceIdLib.json +476 -476
  62. package/out/constants.sol/LayoutOffsets.json +79 -79
  63. package/out/constants.sol/constants.json +115 -115
  64. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  65. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  66. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  67. package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  68. package/out/hasKey.sol/hasKey.json +130 -130
  69. package/out/index.sol/index.json +53 -53
  70. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +186 -186
  71. package/out/leftMask.sol/leftMask.json +31 -31
  72. package/out/query.sol/query.json +1154 -1154
  73. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  74. package/out/src/Bytes.sol/Bytes.json +1338 -1338
  75. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +698 -698
  76. package/out/src/FieldLayout.sol/FieldLayoutLib.json +698 -698
  77. package/out/src/IStore.sol/IStore.json +52 -52
  78. package/out/src/IWorldKernel.sol/IWorldCall.json +154 -154
  79. package/out/src/IWorldKernel.sol/IWorldKernel.json +154 -154
  80. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +154 -154
  81. package/out/src/Memory.sol/Memory.json +91 -91
  82. package/out/src/PackedCounter.sol/PackedCounterInstance.json +929 -929
  83. package/out/src/PackedCounter.sol/PackedCounterLib.json +929 -929
  84. package/out/src/ResourceId.sol/ResourceIdInstance.json +116 -116
  85. package/out/src/ResourceId.sol/ResourceIdLib.json +116 -116
  86. package/out/src/Schema.sol/SchemaInstance.json +790 -790
  87. package/out/src/Schema.sol/SchemaLib.json +790 -790
  88. package/out/src/Slice.sol/SliceInstance.json +430 -430
  89. package/out/src/Slice.sol/SliceLib.json +430 -430
  90. package/out/src/StoreCore.sol/StoreCore.json +4473 -4473
  91. package/out/src/StoreCore.sol/StoreCoreInternal.json +4473 -4473
  92. package/out/src/StoreSwitch.sol/StoreSwitch.json +2496 -2496
  93. package/out/src/WorldContext.sol/WorldContextConsumer.json +376 -376
  94. package/out/src/WorldContext.sol/WorldContextProvider.json +376 -376
  95. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +476 -476
  96. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +476 -476
  97. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  98. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  99. package/out/tables/ResourceIds.sol/ResourceIds.json +2889 -2883
  100. package/out/tables/Tables.sol/Tables.json +12187 -12187
  101. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3345 -3345
  102. package/out/types.sol/types.json +41 -41
  103. package/out/version.sol/version.json +7 -7
  104. package/out/world/src/IERC165.sol/IERC165.json +28 -28
  105. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  106. package/package.json +8 -8
  107. package/src/interfaces/IBaseWorld.sol +4 -2
  108. package/src/modules/keysintable/tables/KeysInTable.sol +357 -163
  109. package/src/modules/keysintable/tables/UsedKeysIndex.sol +116 -36
  110. package/src/modules/keyswithvalue/tables/KeysWithValue.sol +163 -69
  111. package/src/modules/std-delegations/tables/CallboundDelegations.sol +87 -26
  112. package/src/modules/std-delegations/tables/TimeboundDelegations.sol +87 -26
  113. package/src/modules/uniqueentity/tables/UniqueEntity.sol +87 -26
@@ -346,29 +346,29 @@
346
346
  },
347
347
  "ast": {
348
348
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/IDelegationControl.sol",
349
- "id": 23226,
349
+ "id": 23227,
350
350
  "exportedSymbols": {
351
351
  "DELEGATION_CONTROL_INTERFACE_ID": [
352
- 23209
352
+ 23210
353
353
  ],
354
354
  "IDelegationControl": [
355
- 23225
355
+ 23226
356
356
  ],
357
357
  "IWorldContextConsumer": [
358
- 23379
358
+ 23380
359
359
  ],
360
360
  "ResourceId": [
361
- 26566
361
+ 26573
362
362
  ],
363
363
  "WORLD_CONTEXT_CONSUMER_INTERFACE_ID": [
364
- 23357
364
+ 23358
365
365
  ]
366
366
  },
367
367
  "nodeType": "SourceUnit",
368
368
  "src": "32:847:33",
369
369
  "nodes": [
370
370
  {
371
- "id": 23196,
371
+ "id": 23197,
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": 23199,
383
+ "id": 23200,
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": 23226,
391
- "sourceUnit": 23380,
390
+ "scope": 23227,
391
+ "sourceUnit": 23381,
392
392
  "symbolAliases": [
393
393
  {
394
394
  "foreign": {
395
- "id": 23197,
395
+ "id": 23198,
396
396
  "name": "IWorldContextConsumer",
397
397
  "nodeType": "Identifier",
398
398
  "overloadedDeclarations": [],
399
- "referencedDeclaration": 23379,
399
+ "referencedDeclaration": 23380,
400
400
  "src": "68:21:33",
401
401
  "typeDescriptions": {}
402
402
  },
@@ -404,11 +404,11 @@
404
404
  },
405
405
  {
406
406
  "foreign": {
407
- "id": 23198,
407
+ "id": 23199,
408
408
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
409
409
  "nodeType": "Identifier",
410
410
  "overloadedDeclarations": [],
411
- "referencedDeclaration": 23357,
411
+ "referencedDeclaration": 23358,
412
412
  "src": "91:35:33",
413
413
  "typeDescriptions": {}
414
414
  },
@@ -418,23 +418,23 @@
418
418
  "unitAlias": ""
419
419
  },
420
420
  {
421
- "id": 23201,
421
+ "id": 23202,
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": 23226,
429
- "sourceUnit": 24065,
428
+ "scope": 23227,
429
+ "sourceUnit": 24066,
430
430
  "symbolAliases": [
431
431
  {
432
432
  "foreign": {
433
- "id": 23200,
433
+ "id": 23201,
434
434
  "name": "ResourceId",
435
435
  "nodeType": "Identifier",
436
436
  "overloadedDeclarations": [],
437
- "referencedDeclaration": 26566,
437
+ "referencedDeclaration": 26573,
438
438
  "src": "174:10:33",
439
439
  "typeDescriptions": {}
440
440
  },
@@ -444,7 +444,7 @@
444
444
  "unitAlias": ""
445
445
  },
446
446
  {
447
- "id": 23209,
447
+ "id": 23210,
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": 23226,
455
+ "scope": 23227,
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": 23203,
463
+ "id": 23204,
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": 23208,
477
+ "id": 23209,
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": 23204,
485
+ "id": 23205,
486
486
  "name": "IDelegationControl",
487
487
  "nodeType": "Identifier",
488
488
  "overloadedDeclarations": [],
489
- "referencedDeclaration": 23225,
489
+ "referencedDeclaration": 23226,
490
490
  "src": "457:18:33",
491
491
  "typeDescriptions": {
492
- "typeIdentifier": "t_type$_t_contract$_IDelegationControl_$23225_$",
492
+ "typeIdentifier": "t_type$_t_contract$_IDelegationControl_$23226_$",
493
493
  "typeString": "type(contract IDelegationControl)"
494
494
  }
495
495
  },
496
- "id": 23205,
496
+ "id": 23206,
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": 23224,
504
+ "referencedDeclaration": 23225,
505
505
  "src": "457:25:33",
506
506
  "typeDescriptions": {
507
- "typeIdentifier": "t_function_declaration_nonpayable$_t_address_$_t_userDefinedValueType$_ResourceId_$26566_$_t_bytes_memory_ptr_$returns$_t_bool_$",
507
+ "typeIdentifier": "t_function_declaration_nonpayable$_t_address_$_t_userDefinedValueType$_ResourceId_$26573_$_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": 23206,
511
+ "id": 23207,
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": 23207,
528
+ "id": 23208,
529
529
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
530
530
  "nodeType": "Identifier",
531
531
  "overloadedDeclarations": [],
532
- "referencedDeclaration": 23357,
532
+ "referencedDeclaration": 23358,
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": 23225,
548
+ "id": 23226,
549
549
  "nodeType": "ContractDefinition",
550
550
  "src": "715:163:33",
551
551
  "nodes": [
552
552
  {
553
- "id": 23224,
553
+ "id": 23225,
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": 23220,
564
+ "id": 23221,
565
565
  "nodeType": "ParameterList",
566
566
  "parameters": [
567
567
  {
568
568
  "constant": false,
569
- "id": 23214,
569
+ "id": 23215,
570
570
  "mutability": "mutable",
571
571
  "name": "delegator",
572
572
  "nameLocation": "797:9:33",
573
573
  "nodeType": "VariableDeclaration",
574
- "scope": 23224,
574
+ "scope": 23225,
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": 23213,
583
+ "id": 23214,
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": 23217,
597
+ "id": 23218,
598
598
  "mutability": "mutable",
599
599
  "name": "systemId",
600
600
  "nameLocation": "819:8:33",
601
601
  "nodeType": "VariableDeclaration",
602
- "scope": 23224,
602
+ "scope": 23225,
603
603
  "src": "808:19:33",
604
604
  "stateVariable": false,
605
605
  "storageLocation": "default",
606
606
  "typeDescriptions": {
607
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26566",
607
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26573",
608
608
  "typeString": "ResourceId"
609
609
  },
610
610
  "typeName": {
611
- "id": 23216,
611
+ "id": 23217,
612
612
  "nodeType": "UserDefinedTypeName",
613
613
  "pathNode": {
614
- "id": 23215,
614
+ "id": 23216,
615
615
  "name": "ResourceId",
616
616
  "nameLocations": [
617
617
  "808:10:33"
618
618
  ],
619
619
  "nodeType": "IdentifierPath",
620
- "referencedDeclaration": 26566,
620
+ "referencedDeclaration": 26573,
621
621
  "src": "808:10:33"
622
622
  },
623
- "referencedDeclaration": 26566,
623
+ "referencedDeclaration": 26573,
624
624
  "src": "808:10:33",
625
625
  "typeDescriptions": {
626
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26566",
626
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26573",
627
627
  "typeString": "ResourceId"
628
628
  }
629
629
  },
@@ -631,12 +631,12 @@
631
631
  },
632
632
  {
633
633
  "constant": false,
634
- "id": 23219,
634
+ "id": 23220,
635
635
  "mutability": "mutable",
636
636
  "name": "callData",
637
637
  "nameLocation": "842:8:33",
638
638
  "nodeType": "VariableDeclaration",
639
- "scope": 23224,
639
+ "scope": 23225,
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": 23218,
648
+ "id": 23219,
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": 23223,
663
+ "id": 23224,
664
664
  "nodeType": "ParameterList",
665
665
  "parameters": [
666
666
  {
667
667
  "constant": false,
668
- "id": 23222,
668
+ "id": 23223,
669
669
  "mutability": "mutable",
670
670
  "name": "",
671
671
  "nameLocation": "-1:-1:-1",
672
672
  "nodeType": "VariableDeclaration",
673
- "scope": 23224,
673
+ "scope": 23225,
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": 23221,
682
+ "id": 23222,
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": 23225,
696
+ "scope": 23226,
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": 23211,
706
+ "id": 23212,
707
707
  "name": "IWorldContextConsumer",
708
708
  "nameLocations": [
709
709
  "747:21:33"
710
710
  ],
711
711
  "nodeType": "IdentifierPath",
712
- "referencedDeclaration": 23379,
712
+ "referencedDeclaration": 23380,
713
713
  "src": "747:21:33"
714
714
  },
715
- "id": 23212,
715
+ "id": 23213,
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": 23210,
724
+ "id": 23211,
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
- 23225,
732
- 23379,
733
- 23243
731
+ 23226,
732
+ 23380,
733
+ 23244
734
734
  ],
735
735
  "name": "IDelegationControl",
736
736
  "nameLocation": "725:18:33",
737
- "scope": 23226,
737
+ "scope": 23227,
738
738
  "usedErrors": [],
739
739
  "usedEvents": []
740
740
  }