@latticexyz/world-modules 2.0.0-main-c07fa021 → 2.0.0-main-c4f49240

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 (104) hide show
  1. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  2. package/out/Callbacks.sol/Callbacks.json +45 -45
  3. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +203 -203
  4. package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
  5. package/out/DelegationControl.sol/DelegationControl.json +83 -83
  6. package/out/Hooks.sol/Hooks.json +45 -45
  7. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +14 -14
  8. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
  9. package/out/IBaseWorld.sol/IBaseWorld.json +64 -64
  10. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json +69 -0
  11. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json.d.ts +70 -0
  12. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +534 -0
  13. package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
  14. package/out/IDelegationControl.sol/IDelegationControl.json +60 -60
  15. package/out/IModule.sol/IModule.json +76 -76
  16. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +27 -27
  17. package/out/ISystemHook.sol/ISystemHook.json +82 -82
  18. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  19. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +67 -67
  20. package/out/IWorldErrors.sol/IWorldErrors.json +136 -136
  21. package/out/IWorldKernel.sol/IWorldCall.json +149 -149
  22. package/out/IWorldKernel.sol/IWorldKernel.json +149 -149
  23. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +149 -149
  24. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +175 -175
  25. package/out/KeyEncoding.sol/KeyEncoding.json +80 -80
  26. package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
  27. package/out/KeysInTableHook.sol/KeysInTableHook.json +862 -862
  28. package/out/KeysInTableModule.sol/KeysInTableModule.json +534 -534
  29. package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
  30. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +996 -996
  31. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +423 -423
  32. package/out/Mixed.sol/Mixed.json +66 -66
  33. package/out/Module.sol/Module.json +73 -73
  34. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  35. package/out/Schema.sol/SchemaInstance.json +30 -30
  36. package/out/Schema.sol/SchemaLib.json +30 -30
  37. package/out/SchemaType.sol/SchemaType.json +276 -276
  38. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +300 -300
  39. package/out/StoreHook.sol/StoreHook.json +358 -358
  40. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  41. package/out/System.sol/System.json +18 -18
  42. package/out/Tables.sol/Tables.json +73 -73
  43. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +107 -107
  44. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
  45. package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
  46. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +324 -324
  47. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +81 -81
  48. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2722 -2722
  49. package/out/Vector2.sol/Vector2.json +52 -52
  50. package/out/WorldContext.sol/WorldContextConsumer.json +28 -28
  51. package/out/WorldContext.sol/WorldContextProvider.json +28 -28
  52. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +103 -103
  53. package/out/WorldResourceId.sol/WorldResourceIdLib.json +103 -103
  54. package/out/constants.sol/constants.json +85 -85
  55. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  56. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  57. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  58. package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  59. package/out/hasKey.sol/hasKey.json +130 -130
  60. package/out/index.sol/index.json +53 -53
  61. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json +51 -15
  62. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +51 -15
  63. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +244 -171
  64. package/out/interfaces/IERC165.sol/IERC165.json +27 -27
  65. package/out/interfaces/IWorldKernel.sol/IWorldCall.json +151 -151
  66. package/out/interfaces/IWorldKernel.sol/IWorldKernel.json +151 -151
  67. package/out/interfaces/IWorldKernel.sol/IWorldModuleInstallation.json +151 -151
  68. package/out/query.sol/query.json +1154 -1154
  69. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  70. package/out/src/Bytes.sol/Bytes.json +1332 -1332
  71. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +697 -697
  72. package/out/src/FieldLayout.sol/FieldLayoutLib.json +697 -697
  73. package/out/src/IStore.sol/IStore.json +886 -886
  74. package/out/src/IStore.sol/IStoreData.json +886 -886
  75. package/out/src/IStore.sol/IStoreRead.json +886 -886
  76. package/out/src/IStore.sol/IStoreRegistration.json +886 -886
  77. package/out/src/IStore.sol/IStoreWrite.json +886 -886
  78. package/out/src/Memory.sol/Memory.json +89 -89
  79. package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
  80. package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
  81. package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
  82. package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
  83. package/out/src/Schema.sol/SchemaInstance.json +787 -787
  84. package/out/src/Schema.sol/SchemaLib.json +787 -787
  85. package/out/src/Slice.sol/SliceInstance.json +429 -429
  86. package/out/src/Slice.sol/SliceLib.json +429 -429
  87. package/out/src/StoreCore.sol/StoreCore.json +4461 -4461
  88. package/out/src/StoreCore.sol/StoreCoreInternal.json +4461 -4461
  89. package/out/src/StoreSwitch.sol/StoreSwitch.json +2454 -2454
  90. package/out/src/WorldContext.sol/WorldContextConsumer.json +353 -353
  91. package/out/src/WorldContext.sol/WorldContextProvider.json +353 -353
  92. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +474 -474
  93. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +474 -474
  94. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  95. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  96. package/out/tables/ResourceIds.sol/ResourceIds.json +1746 -1746
  97. package/out/tables/Tables.sol/Tables.json +7288 -7288
  98. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3246 -3246
  99. package/out/types.sol/types.json +131 -23
  100. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  101. package/package.json +8 -8
  102. package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json +0 -33
  103. package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json.d.ts +0 -34
  104. package/out/ICallBatchSystem.sol/ICallBatchSystem.json +0 -334
@@ -322,29 +322,29 @@
322
322
  },
323
323
  "ast": {
324
324
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/interfaces/IDelegationControl.sol",
325
- "id": 33406,
325
+ "id": 33417,
326
326
  "exportedSymbols": {
327
327
  "DELEGATION_CONTROL_INTERFACE_ID": [
328
- 33390
328
+ 33401
329
329
  ],
330
330
  "IDelegationControl": [
331
- 33405
331
+ 33416
332
332
  ],
333
333
  "IWorldContextConsumer": [
334
- 33545
334
+ 33556
335
335
  ],
336
336
  "ResourceId": [
337
- 36365
337
+ 36384
338
338
  ],
339
339
  "WORLD_CONTEXT_CONSUMER_INTERFACE_ID": [
340
- 33527
340
+ 33538
341
341
  ]
342
342
  },
343
343
  "nodeType": "SourceUnit",
344
344
  "src": "32:547:42",
345
345
  "nodes": [
346
346
  {
347
- "id": 33378,
347
+ "id": 33389,
348
348
  "nodeType": "PragmaDirective",
349
349
  "src": "32:25:42",
350
350
  "nodes": [],
@@ -356,23 +356,23 @@
356
356
  ]
357
357
  },
358
358
  {
359
- "id": 33381,
359
+ "id": 33392,
360
360
  "nodeType": "ImportDirective",
361
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": 33406,
367
- "sourceUnit": 33546,
366
+ "scope": 33417,
367
+ "sourceUnit": 33557,
368
368
  "symbolAliases": [
369
369
  {
370
370
  "foreign": {
371
- "id": 33379,
371
+ "id": 33390,
372
372
  "name": "IWorldContextConsumer",
373
373
  "nodeType": "Identifier",
374
374
  "overloadedDeclarations": [],
375
- "referencedDeclaration": 33545,
375
+ "referencedDeclaration": 33556,
376
376
  "src": "68:21:42",
377
377
  "typeDescriptions": {}
378
378
  },
@@ -380,11 +380,11 @@
380
380
  },
381
381
  {
382
382
  "foreign": {
383
- "id": 33380,
383
+ "id": 33391,
384
384
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
385
385
  "nodeType": "Identifier",
386
386
  "overloadedDeclarations": [],
387
- "referencedDeclaration": 33527,
387
+ "referencedDeclaration": 33538,
388
388
  "src": "91:35:42",
389
389
  "typeDescriptions": {}
390
390
  },
@@ -394,23 +394,23 @@
394
394
  "unitAlias": ""
395
395
  },
396
396
  {
397
- "id": 33383,
397
+ "id": 33394,
398
398
  "nodeType": "ImportDirective",
399
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": 33406,
404
+ "scope": 33417,
405
405
  "sourceUnit": 33156,
406
406
  "symbolAliases": [
407
407
  {
408
408
  "foreign": {
409
- "id": 33382,
409
+ "id": 33393,
410
410
  "name": "ResourceId",
411
411
  "nodeType": "Identifier",
412
412
  "overloadedDeclarations": [],
413
- "referencedDeclaration": 36365,
413
+ "referencedDeclaration": 36384,
414
414
  "src": "174:10:42",
415
415
  "typeDescriptions": {}
416
416
  },
@@ -420,7 +420,7 @@
420
420
  "unitAlias": ""
421
421
  },
422
422
  {
423
- "id": 33390,
423
+ "id": 33401,
424
424
  "nodeType": "VariableDeclaration",
425
425
  "src": "288:124:42",
426
426
  "nodes": [],
@@ -428,7 +428,7 @@
428
428
  "mutability": "constant",
429
429
  "name": "DELEGATION_CONTROL_INTERFACE_ID",
430
430
  "nameLocation": "304:31:42",
431
- "scope": 33406,
431
+ "scope": 33417,
432
432
  "stateVariable": false,
433
433
  "storageLocation": "default",
434
434
  "typeDescriptions": {
@@ -436,7 +436,7 @@
436
436
  "typeString": "bytes4"
437
437
  },
438
438
  "typeName": {
439
- "id": 33384,
439
+ "id": 33395,
440
440
  "name": "bytes4",
441
441
  "nodeType": "ElementaryTypeName",
442
442
  "src": "288:6:42",
@@ -450,7 +450,7 @@
450
450
  "typeIdentifier": "t_bytes4",
451
451
  "typeString": "bytes4"
452
452
  },
453
- "id": 33389,
453
+ "id": 33400,
454
454
  "isConstant": false,
455
455
  "isLValue": false,
456
456
  "isPure": true,
@@ -458,18 +458,18 @@
458
458
  "leftExpression": {
459
459
  "expression": {
460
460
  "expression": {
461
- "id": 33385,
461
+ "id": 33396,
462
462
  "name": "IDelegationControl",
463
463
  "nodeType": "Identifier",
464
464
  "overloadedDeclarations": [],
465
- "referencedDeclaration": 33405,
465
+ "referencedDeclaration": 33416,
466
466
  "src": "338:18:42",
467
467
  "typeDescriptions": {
468
- "typeIdentifier": "t_type$_t_contract$_IDelegationControl_$33405_$",
468
+ "typeIdentifier": "t_type$_t_contract$_IDelegationControl_$33416_$",
469
469
  "typeString": "type(contract IDelegationControl)"
470
470
  }
471
471
  },
472
- "id": 33386,
472
+ "id": 33397,
473
473
  "isConstant": false,
474
474
  "isLValue": false,
475
475
  "isPure": true,
@@ -477,14 +477,14 @@
477
477
  "memberLocation": "357:6:42",
478
478
  "memberName": "verify",
479
479
  "nodeType": "MemberAccess",
480
- "referencedDeclaration": 33404,
480
+ "referencedDeclaration": 33415,
481
481
  "src": "338:25:42",
482
482
  "typeDescriptions": {
483
- "typeIdentifier": "t_function_declaration_nonpayable$_t_address_$_t_userDefinedValueType$_ResourceId_$36365_$_t_bytes_memory_ptr_$returns$_t_bool_$",
483
+ "typeIdentifier": "t_function_declaration_nonpayable$_t_address_$_t_userDefinedValueType$_ResourceId_$36384_$_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": 33387,
487
+ "id": 33398,
488
488
  "isConstant": false,
489
489
  "isLValue": false,
490
490
  "isPure": true,
@@ -501,11 +501,11 @@
501
501
  "nodeType": "BinaryOperation",
502
502
  "operator": "^",
503
503
  "rightExpression": {
504
- "id": 33388,
504
+ "id": 33399,
505
505
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
506
506
  "nodeType": "Identifier",
507
507
  "overloadedDeclarations": [],
508
- "referencedDeclaration": 33527,
508
+ "referencedDeclaration": 33538,
509
509
  "src": "377:35:42",
510
510
  "typeDescriptions": {
511
511
  "typeIdentifier": "t_bytes4",
@@ -521,12 +521,12 @@
521
521
  "visibility": "internal"
522
522
  },
523
523
  {
524
- "id": 33405,
524
+ "id": 33416,
525
525
  "nodeType": "ContractDefinition",
526
526
  "src": "415:163:42",
527
527
  "nodes": [
528
528
  {
529
- "id": 33404,
529
+ "id": 33415,
530
530
  "nodeType": "FunctionDefinition",
531
531
  "src": "473:103:42",
532
532
  "nodes": [],
@@ -537,17 +537,17 @@
537
537
  "name": "verify",
538
538
  "nameLocation": "482:6:42",
539
539
  "parameters": {
540
- "id": 33400,
540
+ "id": 33411,
541
541
  "nodeType": "ParameterList",
542
542
  "parameters": [
543
543
  {
544
544
  "constant": false,
545
- "id": 33394,
545
+ "id": 33405,
546
546
  "mutability": "mutable",
547
547
  "name": "delegator",
548
548
  "nameLocation": "497:9:42",
549
549
  "nodeType": "VariableDeclaration",
550
- "scope": 33404,
550
+ "scope": 33415,
551
551
  "src": "489:17:42",
552
552
  "stateVariable": false,
553
553
  "storageLocation": "default",
@@ -556,7 +556,7 @@
556
556
  "typeString": "address"
557
557
  },
558
558
  "typeName": {
559
- "id": 33393,
559
+ "id": 33404,
560
560
  "name": "address",
561
561
  "nodeType": "ElementaryTypeName",
562
562
  "src": "489:7:42",
@@ -570,36 +570,36 @@
570
570
  },
571
571
  {
572
572
  "constant": false,
573
- "id": 33397,
573
+ "id": 33408,
574
574
  "mutability": "mutable",
575
575
  "name": "systemId",
576
576
  "nameLocation": "519:8:42",
577
577
  "nodeType": "VariableDeclaration",
578
- "scope": 33404,
578
+ "scope": 33415,
579
579
  "src": "508:19:42",
580
580
  "stateVariable": false,
581
581
  "storageLocation": "default",
582
582
  "typeDescriptions": {
583
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$36365",
583
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$36384",
584
584
  "typeString": "ResourceId"
585
585
  },
586
586
  "typeName": {
587
- "id": 33396,
587
+ "id": 33407,
588
588
  "nodeType": "UserDefinedTypeName",
589
589
  "pathNode": {
590
- "id": 33395,
590
+ "id": 33406,
591
591
  "name": "ResourceId",
592
592
  "nameLocations": [
593
593
  "508:10:42"
594
594
  ],
595
595
  "nodeType": "IdentifierPath",
596
- "referencedDeclaration": 36365,
596
+ "referencedDeclaration": 36384,
597
597
  "src": "508:10:42"
598
598
  },
599
- "referencedDeclaration": 36365,
599
+ "referencedDeclaration": 36384,
600
600
  "src": "508:10:42",
601
601
  "typeDescriptions": {
602
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$36365",
602
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$36384",
603
603
  "typeString": "ResourceId"
604
604
  }
605
605
  },
@@ -607,12 +607,12 @@
607
607
  },
608
608
  {
609
609
  "constant": false,
610
- "id": 33399,
610
+ "id": 33410,
611
611
  "mutability": "mutable",
612
612
  "name": "callData",
613
613
  "nameLocation": "542:8:42",
614
614
  "nodeType": "VariableDeclaration",
615
- "scope": 33404,
615
+ "scope": 33415,
616
616
  "src": "529:21:42",
617
617
  "stateVariable": false,
618
618
  "storageLocation": "memory",
@@ -621,7 +621,7 @@
621
621
  "typeString": "bytes"
622
622
  },
623
623
  "typeName": {
624
- "id": 33398,
624
+ "id": 33409,
625
625
  "name": "bytes",
626
626
  "nodeType": "ElementaryTypeName",
627
627
  "src": "529:5:42",
@@ -636,17 +636,17 @@
636
636
  "src": "488:63:42"
637
637
  },
638
638
  "returnParameters": {
639
- "id": 33403,
639
+ "id": 33414,
640
640
  "nodeType": "ParameterList",
641
641
  "parameters": [
642
642
  {
643
643
  "constant": false,
644
- "id": 33402,
644
+ "id": 33413,
645
645
  "mutability": "mutable",
646
646
  "name": "",
647
647
  "nameLocation": "-1:-1:-1",
648
648
  "nodeType": "VariableDeclaration",
649
- "scope": 33404,
649
+ "scope": 33415,
650
650
  "src": "570:4:42",
651
651
  "stateVariable": false,
652
652
  "storageLocation": "default",
@@ -655,7 +655,7 @@
655
655
  "typeString": "bool"
656
656
  },
657
657
  "typeName": {
658
- "id": 33401,
658
+ "id": 33412,
659
659
  "name": "bool",
660
660
  "nodeType": "ElementaryTypeName",
661
661
  "src": "570:4:42",
@@ -669,7 +669,7 @@
669
669
  ],
670
670
  "src": "569:6:42"
671
671
  },
672
- "scope": 33405,
672
+ "scope": 33416,
673
673
  "stateMutability": "nonpayable",
674
674
  "virtual": false,
675
675
  "visibility": "external"
@@ -679,16 +679,16 @@
679
679
  "baseContracts": [
680
680
  {
681
681
  "baseName": {
682
- "id": 33391,
682
+ "id": 33402,
683
683
  "name": "IWorldContextConsumer",
684
684
  "nameLocations": [
685
685
  "447:21:42"
686
686
  ],
687
687
  "nodeType": "IdentifierPath",
688
- "referencedDeclaration": 33545,
688
+ "referencedDeclaration": 33556,
689
689
  "src": "447:21:42"
690
690
  },
691
- "id": 33392,
691
+ "id": 33403,
692
692
  "nodeType": "InheritanceSpecifier",
693
693
  "src": "447:21:42"
694
694
  }
@@ -698,13 +698,13 @@
698
698
  "contractKind": "interface",
699
699
  "fullyImplemented": false,
700
700
  "linearizedBaseContracts": [
701
- 33405,
702
- 33545,
703
- 33421
701
+ 33416,
702
+ 33556,
703
+ 33432
704
704
  ],
705
705
  "name": "IDelegationControl",
706
706
  "nameLocation": "425:18:42",
707
- "scope": 33406,
707
+ "scope": 33417,
708
708
  "usedErrors": [],
709
709
  "usedEvents": []
710
710
  }