@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
@@ -322,31 +322,31 @@
322
322
  },
323
323
  "ast": {
324
324
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/interfaces/IDelegationControl.sol",
325
- "id": 33304,
325
+ "id": 33406,
326
326
  "exportedSymbols": {
327
327
  "DELEGATION_CONTROL_INTERFACE_ID": [
328
- 33288
328
+ 33390
329
329
  ],
330
330
  "IDelegationControl": [
331
- 33303
331
+ 33405
332
332
  ],
333
333
  "IWorldContextConsumer": [
334
- 33456
334
+ 33545
335
335
  ],
336
336
  "ResourceId": [
337
337
  36365
338
338
  ],
339
339
  "WORLD_CONTEXT_CONSUMER_INTERFACE_ID": [
340
- 33438
340
+ 33527
341
341
  ]
342
342
  },
343
343
  "nodeType": "SourceUnit",
344
- "src": "32:547:40",
344
+ "src": "32:547:42",
345
345
  "nodes": [
346
346
  {
347
- "id": 33276,
347
+ "id": 33378,
348
348
  "nodeType": "PragmaDirective",
349
- "src": "32:25:40",
349
+ "src": "32:25:42",
350
350
  "nodes": [],
351
351
  "literals": [
352
352
  "solidity",
@@ -356,36 +356,36 @@
356
356
  ]
357
357
  },
358
358
  {
359
- "id": 33279,
359
+ "id": 33381,
360
360
  "nodeType": "ImportDirective",
361
- "src": "59:105:40",
361
+ "src": "59:105:42",
362
362
  "nodes": [],
363
363
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/interfaces/IWorldContextConsumer.sol",
364
364
  "file": "./IWorldContextConsumer.sol",
365
365
  "nameLocation": "-1:-1:-1",
366
- "scope": 33304,
367
- "sourceUnit": 33457,
366
+ "scope": 33406,
367
+ "sourceUnit": 33546,
368
368
  "symbolAliases": [
369
369
  {
370
370
  "foreign": {
371
- "id": 33277,
371
+ "id": 33379,
372
372
  "name": "IWorldContextConsumer",
373
373
  "nodeType": "Identifier",
374
374
  "overloadedDeclarations": [],
375
- "referencedDeclaration": 33456,
376
- "src": "68:21:40",
375
+ "referencedDeclaration": 33545,
376
+ "src": "68:21:42",
377
377
  "typeDescriptions": {}
378
378
  },
379
379
  "nameLocation": "-1:-1:-1"
380
380
  },
381
381
  {
382
382
  "foreign": {
383
- "id": 33278,
383
+ "id": 33380,
384
384
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
385
385
  "nodeType": "Identifier",
386
386
  "overloadedDeclarations": [],
387
- "referencedDeclaration": 33438,
388
- "src": "91:35:40",
387
+ "referencedDeclaration": 33527,
388
+ "src": "91:35:42",
389
389
  "typeDescriptions": {}
390
390
  },
391
391
  "nameLocation": "-1:-1:-1"
@@ -394,24 +394,24 @@
394
394
  "unitAlias": ""
395
395
  },
396
396
  {
397
- "id": 33281,
397
+ "id": 33383,
398
398
  "nodeType": "ImportDirective",
399
- "src": "165:52:40",
399
+ "src": "165:52:42",
400
400
  "nodes": [],
401
401
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/WorldResourceId.sol",
402
402
  "file": "../WorldResourceId.sol",
403
403
  "nameLocation": "-1:-1:-1",
404
- "scope": 33304,
404
+ "scope": 33406,
405
405
  "sourceUnit": 33156,
406
406
  "symbolAliases": [
407
407
  {
408
408
  "foreign": {
409
- "id": 33280,
409
+ "id": 33382,
410
410
  "name": "ResourceId",
411
411
  "nodeType": "Identifier",
412
412
  "overloadedDeclarations": [],
413
413
  "referencedDeclaration": 36365,
414
- "src": "174:10:40",
414
+ "src": "174:10:42",
415
415
  "typeDescriptions": {}
416
416
  },
417
417
  "nameLocation": "-1:-1:-1"
@@ -420,15 +420,15 @@
420
420
  "unitAlias": ""
421
421
  },
422
422
  {
423
- "id": 33288,
423
+ "id": 33390,
424
424
  "nodeType": "VariableDeclaration",
425
- "src": "288:124:40",
425
+ "src": "288:124:42",
426
426
  "nodes": [],
427
427
  "constant": true,
428
428
  "mutability": "constant",
429
429
  "name": "DELEGATION_CONTROL_INTERFACE_ID",
430
- "nameLocation": "304:31:40",
431
- "scope": 33304,
430
+ "nameLocation": "304:31:42",
431
+ "scope": 33406,
432
432
  "stateVariable": false,
433
433
  "storageLocation": "default",
434
434
  "typeDescriptions": {
@@ -436,10 +436,10 @@
436
436
  "typeString": "bytes4"
437
437
  },
438
438
  "typeName": {
439
- "id": 33282,
439
+ "id": 33384,
440
440
  "name": "bytes4",
441
441
  "nodeType": "ElementaryTypeName",
442
- "src": "288:6:40",
442
+ "src": "288:6:42",
443
443
  "typeDescriptions": {
444
444
  "typeIdentifier": "t_bytes4",
445
445
  "typeString": "bytes4"
@@ -450,7 +450,7 @@
450
450
  "typeIdentifier": "t_bytes4",
451
451
  "typeString": "bytes4"
452
452
  },
453
- "id": 33287,
453
+ "id": 33389,
454
454
  "isConstant": false,
455
455
  "isLValue": false,
456
456
  "isPure": true,
@@ -458,41 +458,41 @@
458
458
  "leftExpression": {
459
459
  "expression": {
460
460
  "expression": {
461
- "id": 33283,
461
+ "id": 33385,
462
462
  "name": "IDelegationControl",
463
463
  "nodeType": "Identifier",
464
464
  "overloadedDeclarations": [],
465
- "referencedDeclaration": 33303,
466
- "src": "338:18:40",
465
+ "referencedDeclaration": 33405,
466
+ "src": "338:18:42",
467
467
  "typeDescriptions": {
468
- "typeIdentifier": "t_type$_t_contract$_IDelegationControl_$33303_$",
468
+ "typeIdentifier": "t_type$_t_contract$_IDelegationControl_$33405_$",
469
469
  "typeString": "type(contract IDelegationControl)"
470
470
  }
471
471
  },
472
- "id": 33284,
472
+ "id": 33386,
473
473
  "isConstant": false,
474
474
  "isLValue": false,
475
475
  "isPure": true,
476
476
  "lValueRequested": false,
477
- "memberLocation": "357:6:40",
477
+ "memberLocation": "357:6:42",
478
478
  "memberName": "verify",
479
479
  "nodeType": "MemberAccess",
480
- "referencedDeclaration": 33302,
481
- "src": "338:25:40",
480
+ "referencedDeclaration": 33404,
481
+ "src": "338:25:42",
482
482
  "typeDescriptions": {
483
483
  "typeIdentifier": "t_function_declaration_nonpayable$_t_address_$_t_userDefinedValueType$_ResourceId_$36365_$_t_bytes_memory_ptr_$returns$_t_bool_$",
484
484
  "typeString": "function IDelegationControl.verify(address,ResourceId,bytes memory) returns (bool)"
485
485
  }
486
486
  },
487
- "id": 33285,
487
+ "id": 33387,
488
488
  "isConstant": false,
489
489
  "isLValue": false,
490
490
  "isPure": true,
491
491
  "lValueRequested": false,
492
- "memberLocation": "364:8:40",
492
+ "memberLocation": "364:8:42",
493
493
  "memberName": "selector",
494
494
  "nodeType": "MemberAccess",
495
- "src": "338:34:40",
495
+ "src": "338:34:42",
496
496
  "typeDescriptions": {
497
497
  "typeIdentifier": "t_bytes4",
498
498
  "typeString": "bytes4"
@@ -501,18 +501,18 @@
501
501
  "nodeType": "BinaryOperation",
502
502
  "operator": "^",
503
503
  "rightExpression": {
504
- "id": 33286,
504
+ "id": 33388,
505
505
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
506
506
  "nodeType": "Identifier",
507
507
  "overloadedDeclarations": [],
508
- "referencedDeclaration": 33438,
509
- "src": "377:35:40",
508
+ "referencedDeclaration": 33527,
509
+ "src": "377:35:42",
510
510
  "typeDescriptions": {
511
511
  "typeIdentifier": "t_bytes4",
512
512
  "typeString": "bytes4"
513
513
  }
514
514
  },
515
- "src": "338:74:40",
515
+ "src": "338:74:42",
516
516
  "typeDescriptions": {
517
517
  "typeIdentifier": "t_bytes4",
518
518
  "typeString": "bytes4"
@@ -521,34 +521,34 @@
521
521
  "visibility": "internal"
522
522
  },
523
523
  {
524
- "id": 33303,
524
+ "id": 33405,
525
525
  "nodeType": "ContractDefinition",
526
- "src": "415:163:40",
526
+ "src": "415:163:42",
527
527
  "nodes": [
528
528
  {
529
- "id": 33302,
529
+ "id": 33404,
530
530
  "nodeType": "FunctionDefinition",
531
- "src": "473:103:40",
531
+ "src": "473:103:42",
532
532
  "nodes": [],
533
533
  "functionSelector": "1a86b550",
534
534
  "implemented": false,
535
535
  "kind": "function",
536
536
  "modifiers": [],
537
537
  "name": "verify",
538
- "nameLocation": "482:6:40",
538
+ "nameLocation": "482:6:42",
539
539
  "parameters": {
540
- "id": 33298,
540
+ "id": 33400,
541
541
  "nodeType": "ParameterList",
542
542
  "parameters": [
543
543
  {
544
544
  "constant": false,
545
- "id": 33292,
545
+ "id": 33394,
546
546
  "mutability": "mutable",
547
547
  "name": "delegator",
548
- "nameLocation": "497:9:40",
548
+ "nameLocation": "497:9:42",
549
549
  "nodeType": "VariableDeclaration",
550
- "scope": 33302,
551
- "src": "489:17:40",
550
+ "scope": 33404,
551
+ "src": "489:17:42",
552
552
  "stateVariable": false,
553
553
  "storageLocation": "default",
554
554
  "typeDescriptions": {
@@ -556,10 +556,10 @@
556
556
  "typeString": "address"
557
557
  },
558
558
  "typeName": {
559
- "id": 33291,
559
+ "id": 33393,
560
560
  "name": "address",
561
561
  "nodeType": "ElementaryTypeName",
562
- "src": "489:7:40",
562
+ "src": "489:7:42",
563
563
  "stateMutability": "nonpayable",
564
564
  "typeDescriptions": {
565
565
  "typeIdentifier": "t_address",
@@ -570,13 +570,13 @@
570
570
  },
571
571
  {
572
572
  "constant": false,
573
- "id": 33295,
573
+ "id": 33397,
574
574
  "mutability": "mutable",
575
575
  "name": "systemId",
576
- "nameLocation": "519:8:40",
576
+ "nameLocation": "519:8:42",
577
577
  "nodeType": "VariableDeclaration",
578
- "scope": 33302,
579
- "src": "508:19:40",
578
+ "scope": 33404,
579
+ "src": "508:19:42",
580
580
  "stateVariable": false,
581
581
  "storageLocation": "default",
582
582
  "typeDescriptions": {
@@ -584,20 +584,20 @@
584
584
  "typeString": "ResourceId"
585
585
  },
586
586
  "typeName": {
587
- "id": 33294,
587
+ "id": 33396,
588
588
  "nodeType": "UserDefinedTypeName",
589
589
  "pathNode": {
590
- "id": 33293,
590
+ "id": 33395,
591
591
  "name": "ResourceId",
592
592
  "nameLocations": [
593
- "508:10:40"
593
+ "508:10:42"
594
594
  ],
595
595
  "nodeType": "IdentifierPath",
596
596
  "referencedDeclaration": 36365,
597
- "src": "508:10:40"
597
+ "src": "508:10:42"
598
598
  },
599
599
  "referencedDeclaration": 36365,
600
- "src": "508:10:40",
600
+ "src": "508:10:42",
601
601
  "typeDescriptions": {
602
602
  "typeIdentifier": "t_userDefinedValueType$_ResourceId_$36365",
603
603
  "typeString": "ResourceId"
@@ -607,13 +607,13 @@
607
607
  },
608
608
  {
609
609
  "constant": false,
610
- "id": 33297,
610
+ "id": 33399,
611
611
  "mutability": "mutable",
612
612
  "name": "callData",
613
- "nameLocation": "542:8:40",
613
+ "nameLocation": "542:8:42",
614
614
  "nodeType": "VariableDeclaration",
615
- "scope": 33302,
616
- "src": "529:21:40",
615
+ "scope": 33404,
616
+ "src": "529:21:42",
617
617
  "stateVariable": false,
618
618
  "storageLocation": "memory",
619
619
  "typeDescriptions": {
@@ -621,10 +621,10 @@
621
621
  "typeString": "bytes"
622
622
  },
623
623
  "typeName": {
624
- "id": 33296,
624
+ "id": 33398,
625
625
  "name": "bytes",
626
626
  "nodeType": "ElementaryTypeName",
627
- "src": "529:5:40",
627
+ "src": "529:5:42",
628
628
  "typeDescriptions": {
629
629
  "typeIdentifier": "t_bytes_storage_ptr",
630
630
  "typeString": "bytes"
@@ -633,21 +633,21 @@
633
633
  "visibility": "internal"
634
634
  }
635
635
  ],
636
- "src": "488:63:40"
636
+ "src": "488:63:42"
637
637
  },
638
638
  "returnParameters": {
639
- "id": 33301,
639
+ "id": 33403,
640
640
  "nodeType": "ParameterList",
641
641
  "parameters": [
642
642
  {
643
643
  "constant": false,
644
- "id": 33300,
644
+ "id": 33402,
645
645
  "mutability": "mutable",
646
646
  "name": "",
647
647
  "nameLocation": "-1:-1:-1",
648
648
  "nodeType": "VariableDeclaration",
649
- "scope": 33302,
650
- "src": "570:4:40",
649
+ "scope": 33404,
650
+ "src": "570:4:42",
651
651
  "stateVariable": false,
652
652
  "storageLocation": "default",
653
653
  "typeDescriptions": {
@@ -655,10 +655,10 @@
655
655
  "typeString": "bool"
656
656
  },
657
657
  "typeName": {
658
- "id": 33299,
658
+ "id": 33401,
659
659
  "name": "bool",
660
660
  "nodeType": "ElementaryTypeName",
661
- "src": "570:4:40",
661
+ "src": "570:4:42",
662
662
  "typeDescriptions": {
663
663
  "typeIdentifier": "t_bool",
664
664
  "typeString": "bool"
@@ -667,9 +667,9 @@
667
667
  "visibility": "internal"
668
668
  }
669
669
  ],
670
- "src": "569:6:40"
670
+ "src": "569:6:42"
671
671
  },
672
- "scope": 33303,
672
+ "scope": 33405,
673
673
  "stateMutability": "nonpayable",
674
674
  "virtual": false,
675
675
  "visibility": "external"
@@ -679,18 +679,18 @@
679
679
  "baseContracts": [
680
680
  {
681
681
  "baseName": {
682
- "id": 33289,
682
+ "id": 33391,
683
683
  "name": "IWorldContextConsumer",
684
684
  "nameLocations": [
685
- "447:21:40"
685
+ "447:21:42"
686
686
  ],
687
687
  "nodeType": "IdentifierPath",
688
- "referencedDeclaration": 33456,
689
- "src": "447:21:40"
688
+ "referencedDeclaration": 33545,
689
+ "src": "447:21:42"
690
690
  },
691
- "id": 33290,
691
+ "id": 33392,
692
692
  "nodeType": "InheritanceSpecifier",
693
- "src": "447:21:40"
693
+ "src": "447:21:42"
694
694
  }
695
695
  ],
696
696
  "canonicalName": "IDelegationControl",
@@ -698,18 +698,18 @@
698
698
  "contractKind": "interface",
699
699
  "fullyImplemented": false,
700
700
  "linearizedBaseContracts": [
701
- 33303,
702
- 33456,
703
- 33319
701
+ 33405,
702
+ 33545,
703
+ 33421
704
704
  ],
705
705
  "name": "IDelegationControl",
706
- "nameLocation": "425:18:40",
707
- "scope": 33304,
706
+ "nameLocation": "425:18:42",
707
+ "scope": 33406,
708
708
  "usedErrors": [],
709
709
  "usedEvents": []
710
710
  }
711
711
  ],
712
712
  "license": "MIT"
713
713
  },
714
- "id": 40
714
+ "id": 42
715
715
  }