@latticexyz/world-modules 2.0.0-next.10 → 2.0.0-next.11

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 (115) hide show
  1. package/out/AccessControl.sol/AccessControl.abi.json +1 -0
  2. package/out/AccessControl.sol/AccessControl.json +1651 -0
  3. package/out/ArrayLib.sol/ArrayLib.json +477 -477
  4. package/out/Balances.sol/Balances.abi.json +1 -0
  5. package/out/Balances.sol/Balances.json +13002 -0
  6. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +354 -354
  7. package/out/CallboundDelegations.sol/CallboundDelegations.json +4497 -4497
  8. package/out/DelegationControl.sol/DelegationControl.json +139 -139
  9. package/out/FunctionSelectors.sol/FunctionSelectors.abi.json +1 -0
  10. package/out/FunctionSelectors.sol/FunctionSelectors.json +17874 -0
  11. package/out/Hooks.sol/Hooks.json +45 -45
  12. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +18 -18
  13. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
  14. package/out/IBaseWorld.sol/IBaseWorld.json +85 -85
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
  16. package/out/IDelegationControl.sol/IDelegationControl.json +11 -11
  17. package/out/ISystemHook.sol/ISystemHook.json +16 -16
  18. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +25 -25
  19. package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
  20. package/out/IWorldKernel.sol/IWorldCall.json +14 -14
  21. package/out/IWorldKernel.sol/IWorldKernel.json +14 -14
  22. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +14 -14
  23. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +43 -43
  24. package/out/KeysInTable.sol/KeysInTable.json +18190 -18190
  25. package/out/KeysInTableHook.sol/KeysInTableHook.json +1407 -1407
  26. package/out/KeysInTableModule.sol/KeysInTableModule.json +842 -842
  27. package/out/KeysWithValue.sol/KeysWithValue.json +6631 -6631
  28. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1561 -1561
  29. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +654 -654
  30. package/out/Module.sol/Module.json +119 -119
  31. package/out/NamespaceOwner.sol/NamespaceOwner.abi.json +1 -0
  32. package/out/NamespaceOwner.sol/NamespaceOwner.json +13016 -0
  33. package/out/ResourceAccess.sol/ResourceAccess.abi.json +1 -0
  34. package/out/ResourceAccess.sol/ResourceAccess.json +17296 -0
  35. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  36. package/out/Schema.sol/SchemaInstance.json +30 -30
  37. package/out/Schema.sol/SchemaLib.json +30 -30
  38. package/out/SchemaType.sol/SchemaType.json +729 -729
  39. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +452 -452
  40. package/out/StoreHook.sol/StoreHook.json +639 -639
  41. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  42. package/out/System.sol/System.json +32 -32
  43. package/out/SystemHooks.sol/SystemHooks.abi.json +1 -0
  44. package/out/SystemHooks.sol/SystemHooks.json +32460 -0
  45. package/out/SystemSwitch.sol/SystemSwitch.abi.json +1 -0
  46. package/out/SystemSwitch.sol/SystemSwitch.json +2879 -0
  47. package/out/Systems.sol/Systems.abi.json +1 -0
  48. package/out/Systems.sol/Systems.json +18508 -0
  49. package/out/Tables.sol/Tables.json +73 -73
  50. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +187 -187
  51. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3474 -3474
  52. package/out/UniqueEntity.sol/UniqueEntity.json +2345 -2345
  53. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +486 -486
  54. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +132 -132
  55. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4590 -4590
  56. package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
  57. package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
  58. package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
  59. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +107 -107
  60. package/out/WorldResourceId.sol/WorldResourceIdLib.json +107 -107
  61. package/out/constants.sol/constants.json +477 -194
  62. package/out/getKeysInTable.sol/getKeysInTable.json +918 -918
  63. package/out/getKeysWithValue.sol/getKeysWithValue.json +431 -431
  64. package/out/getTargetTableId.sol/getTargetTableId.json +272 -272
  65. package/out/getUniqueEntity.sol/getUniqueEntity.json +389 -240
  66. package/out/hasKey.sol/hasKey.json +215 -215
  67. package/out/index.sol/index.json +73 -73
  68. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +175 -175
  69. package/out/query.sol/query.json +1892 -1892
  70. package/out/revertWithBytes.sol/revertWithBytes.json +52 -52
  71. package/out/src/Bytes.sol/Bytes.json +3766 -3766
  72. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +1204 -1204
  73. package/out/src/FieldLayout.sol/FieldLayoutLib.json +1204 -1204
  74. package/out/src/Hook.sol/HookInstance.abi.json +1 -0
  75. package/out/src/Hook.sol/HookInstance.json +2823 -0
  76. package/out/src/Hook.sol/HookLib.abi.json +1 -0
  77. package/out/src/Hook.sol/HookLib.json +2823 -0
  78. package/out/src/IStore.sol/IStore.json +73 -73
  79. package/out/src/ISystemHook.sol/ISystemHook.abi.json +67 -0
  80. package/out/src/ISystemHook.sol/ISystemHook.abi.json.d.ts +68 -0
  81. package/out/src/ISystemHook.sol/ISystemHook.json +852 -0
  82. package/out/src/IWorldErrors.sol/IWorldErrors.abi.json +189 -0
  83. package/out/src/IWorldErrors.sol/IWorldErrors.abi.json.d.ts +190 -0
  84. package/out/src/IWorldErrors.sol/IWorldErrors.json +1463 -0
  85. package/out/src/IWorldKernel.sol/IWorldCall.json +262 -262
  86. package/out/src/IWorldKernel.sol/IWorldKernel.json +262 -262
  87. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +262 -262
  88. package/out/src/Memory.sol/Memory.json +242 -242
  89. package/out/src/PackedCounter.sol/PackedCounterInstance.json +1633 -1633
  90. package/out/src/PackedCounter.sol/PackedCounterLib.json +1633 -1633
  91. package/out/src/ResourceId.sol/ResourceIdInstance.json +206 -206
  92. package/out/src/ResourceId.sol/ResourceIdLib.json +206 -206
  93. package/out/src/Schema.sol/SchemaInstance.json +1351 -1351
  94. package/out/src/Schema.sol/SchemaLib.json +1351 -1351
  95. package/out/src/Slice.sol/SliceInstance.json +802 -802
  96. package/out/src/Slice.sol/SliceLib.json +802 -802
  97. package/out/src/StoreCore.sol/StoreCore.json +7412 -7412
  98. package/out/src/StoreCore.sol/StoreCoreInternal.json +7412 -7412
  99. package/out/src/StoreSwitch.sol/StoreSwitch.json +4064 -4064
  100. package/out/src/WorldContext.sol/WorldContextConsumer.json +805 -805
  101. package/out/src/WorldContext.sol/WorldContextConsumerLib.json +807 -807
  102. package/out/src/WorldContext.sol/WorldContextProviderLib.json +807 -807
  103. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +813 -813
  104. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +813 -813
  105. package/out/storeHookTypes.sol/storeHookTypes.json +204 -204
  106. package/out/storeResourceTypes.sol/storeResourceTypes.json +23 -23
  107. package/out/systemHookTypes.sol/systemHookTypes.json +270 -0
  108. package/out/tables/ResourceIds.sol/ResourceIds.json +2922 -2922
  109. package/out/tables/Tables.sol/Tables.json +12189 -12189
  110. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +6883 -6883
  111. package/out/types.sol/types.json +71 -71
  112. package/out/worldResourceTypes.sol/worldResourceTypes.json +92 -92
  113. package/package.json +8 -8
  114. package/src/modules/uniqueentity/getUniqueEntity.sol +5 -3
  115. package/src/utils/SystemSwitch.sol +82 -0
@@ -2373,28 +2373,28 @@
2373
2373
  },
2374
2374
  "ast": {
2375
2375
  "absolutePath": "node_modules/@latticexyz/store/src/IStore.sol",
2376
- "id": 25917,
2376
+ "id": 28451,
2377
2377
  "exportedSymbols": {
2378
2378
  "IStore": [
2379
- 25916
2379
+ 28450
2380
2380
  ],
2381
2381
  "IStoreData": [
2382
- 58096
2382
+ 70107
2383
2383
  ],
2384
2384
  "IStoreErrors": [
2385
- 58162
2385
+ 70173
2386
2386
  ],
2387
2387
  "IStoreRegistration": [
2388
- 58215
2388
+ 70226
2389
2389
  ]
2390
2390
  },
2391
2391
  "nodeType": "SourceUnit",
2392
- "src": "32:257:57",
2392
+ "src": "32:257:59",
2393
2393
  "nodes": [
2394
2394
  {
2395
- "id": 25903,
2395
+ "id": 28437,
2396
2396
  "nodeType": "PragmaDirective",
2397
- "src": "32:25:57",
2397
+ "src": "32:25:59",
2398
2398
  "nodes": [],
2399
2399
  "literals": [
2400
2400
  "solidity",
@@ -2404,24 +2404,24 @@
2404
2404
  ]
2405
2405
  },
2406
2406
  {
2407
- "id": 25905,
2407
+ "id": 28439,
2408
2408
  "nodeType": "ImportDirective",
2409
- "src": "59:50:57",
2409
+ "src": "59:50:59",
2410
2410
  "nodes": [],
2411
2411
  "absolutePath": "node_modules/@latticexyz/store/src/IStoreErrors.sol",
2412
2412
  "file": "./IStoreErrors.sol",
2413
2413
  "nameLocation": "-1:-1:-1",
2414
- "scope": 25917,
2415
- "sourceUnit": 58163,
2414
+ "scope": 28451,
2415
+ "sourceUnit": 70174,
2416
2416
  "symbolAliases": [
2417
2417
  {
2418
2418
  "foreign": {
2419
- "id": 25904,
2419
+ "id": 28438,
2420
2420
  "name": "IStoreErrors",
2421
2421
  "nodeType": "Identifier",
2422
2422
  "overloadedDeclarations": [],
2423
- "referencedDeclaration": 58162,
2424
- "src": "68:12:57",
2423
+ "referencedDeclaration": 70173,
2424
+ "src": "68:12:59",
2425
2425
  "typeDescriptions": {}
2426
2426
  },
2427
2427
  "nameLocation": "-1:-1:-1"
@@ -2430,24 +2430,24 @@
2430
2430
  "unitAlias": ""
2431
2431
  },
2432
2432
  {
2433
- "id": 25907,
2433
+ "id": 28441,
2434
2434
  "nodeType": "ImportDirective",
2435
- "src": "110:46:57",
2435
+ "src": "110:46:59",
2436
2436
  "nodes": [],
2437
2437
  "absolutePath": "node_modules/@latticexyz/store/src/IStoreData.sol",
2438
2438
  "file": "./IStoreData.sol",
2439
2439
  "nameLocation": "-1:-1:-1",
2440
- "scope": 25917,
2441
- "sourceUnit": 58097,
2440
+ "scope": 28451,
2441
+ "sourceUnit": 70108,
2442
2442
  "symbolAliases": [
2443
2443
  {
2444
2444
  "foreign": {
2445
- "id": 25906,
2445
+ "id": 28440,
2446
2446
  "name": "IStoreData",
2447
2447
  "nodeType": "Identifier",
2448
2448
  "overloadedDeclarations": [],
2449
- "referencedDeclaration": 58096,
2450
- "src": "119:10:57",
2449
+ "referencedDeclaration": 70107,
2450
+ "src": "119:10:59",
2451
2451
  "typeDescriptions": {}
2452
2452
  },
2453
2453
  "nameLocation": "-1:-1:-1"
@@ -2456,24 +2456,24 @@
2456
2456
  "unitAlias": ""
2457
2457
  },
2458
2458
  {
2459
- "id": 25909,
2459
+ "id": 28443,
2460
2460
  "nodeType": "ImportDirective",
2461
- "src": "157:62:57",
2461
+ "src": "157:62:59",
2462
2462
  "nodes": [],
2463
2463
  "absolutePath": "node_modules/@latticexyz/store/src/IStoreRegistration.sol",
2464
2464
  "file": "./IStoreRegistration.sol",
2465
2465
  "nameLocation": "-1:-1:-1",
2466
- "scope": 25917,
2467
- "sourceUnit": 58216,
2466
+ "scope": 28451,
2467
+ "sourceUnit": 70227,
2468
2468
  "symbolAliases": [
2469
2469
  {
2470
2470
  "foreign": {
2471
- "id": 25908,
2471
+ "id": 28442,
2472
2472
  "name": "IStoreRegistration",
2473
2473
  "nodeType": "Identifier",
2474
2474
  "overloadedDeclarations": [],
2475
- "referencedDeclaration": 58215,
2476
- "src": "166:18:57",
2475
+ "referencedDeclaration": 70226,
2476
+ "src": "166:18:59",
2477
2477
  "typeDescriptions": {}
2478
2478
  },
2479
2479
  "nameLocation": "-1:-1:-1"
@@ -2482,56 +2482,56 @@
2482
2482
  "unitAlias": ""
2483
2483
  },
2484
2484
  {
2485
- "id": 25916,
2485
+ "id": 28450,
2486
2486
  "nodeType": "ContractDefinition",
2487
- "src": "221:67:57",
2487
+ "src": "221:67:59",
2488
2488
  "nodes": [],
2489
2489
  "abstract": false,
2490
2490
  "baseContracts": [
2491
2491
  {
2492
2492
  "baseName": {
2493
- "id": 25910,
2493
+ "id": 28444,
2494
2494
  "name": "IStoreData",
2495
2495
  "nameLocations": [
2496
- "241:10:57"
2496
+ "241:10:59"
2497
2497
  ],
2498
2498
  "nodeType": "IdentifierPath",
2499
- "referencedDeclaration": 58096,
2500
- "src": "241:10:57"
2499
+ "referencedDeclaration": 70107,
2500
+ "src": "241:10:59"
2501
2501
  },
2502
- "id": 25911,
2502
+ "id": 28445,
2503
2503
  "nodeType": "InheritanceSpecifier",
2504
- "src": "241:10:57"
2504
+ "src": "241:10:59"
2505
2505
  },
2506
2506
  {
2507
2507
  "baseName": {
2508
- "id": 25912,
2508
+ "id": 28446,
2509
2509
  "name": "IStoreRegistration",
2510
2510
  "nameLocations": [
2511
- "253:18:57"
2511
+ "253:18:59"
2512
2512
  ],
2513
2513
  "nodeType": "IdentifierPath",
2514
- "referencedDeclaration": 58215,
2515
- "src": "253:18:57"
2514
+ "referencedDeclaration": 70226,
2515
+ "src": "253:18:59"
2516
2516
  },
2517
- "id": 25913,
2517
+ "id": 28447,
2518
2518
  "nodeType": "InheritanceSpecifier",
2519
- "src": "253:18:57"
2519
+ "src": "253:18:59"
2520
2520
  },
2521
2521
  {
2522
2522
  "baseName": {
2523
- "id": 25914,
2523
+ "id": 28448,
2524
2524
  "name": "IStoreErrors",
2525
2525
  "nameLocations": [
2526
- "273:12:57"
2526
+ "273:12:59"
2527
2527
  ],
2528
2528
  "nodeType": "IdentifierPath",
2529
- "referencedDeclaration": 58162,
2530
- "src": "273:12:57"
2529
+ "referencedDeclaration": 70173,
2530
+ "src": "273:12:59"
2531
2531
  },
2532
- "id": 25915,
2532
+ "id": 28449,
2533
2533
  "nodeType": "InheritanceSpecifier",
2534
- "src": "273:12:57"
2534
+ "src": "273:12:59"
2535
2535
  }
2536
2536
  ],
2537
2537
  "canonicalName": "IStore",
@@ -2539,38 +2539,38 @@
2539
2539
  "contractKind": "interface",
2540
2540
  "fullyImplemented": false,
2541
2541
  "linearizedBaseContracts": [
2542
- 25916,
2543
- 58162,
2544
- 58215,
2545
- 58096,
2546
- 62229,
2547
- 67543,
2548
- 62077
2542
+ 28450,
2543
+ 70173,
2544
+ 70226,
2545
+ 70107,
2546
+ 76268,
2547
+ 78887,
2548
+ 76116
2549
2549
  ],
2550
2550
  "name": "IStore",
2551
- "nameLocation": "231:6:57",
2552
- "scope": 25917,
2551
+ "nameLocation": "231:6:59",
2552
+ "scope": 28451,
2553
2553
  "usedErrors": [
2554
- 58107,
2555
- 58114,
2556
- 58123,
2557
- 58129,
2558
- 58135,
2559
- 58141,
2560
- 58147,
2561
- 58153,
2562
- 58161
2554
+ 70118,
2555
+ 70125,
2556
+ 70134,
2557
+ 70140,
2558
+ 70146,
2559
+ 70152,
2560
+ 70158,
2561
+ 70164,
2562
+ 70172
2563
2563
  ],
2564
2564
  "usedEvents": [
2565
- 58089,
2566
- 67502,
2567
- 67515,
2568
- 67533,
2569
- 67542
2565
+ 70100,
2566
+ 78846,
2567
+ 78859,
2568
+ 78877,
2569
+ 78886
2570
2570
  ]
2571
2571
  }
2572
2572
  ],
2573
2573
  "license": "MIT"
2574
2574
  },
2575
- "id": 57
2575
+ "id": 59
2576
2576
  }
@@ -0,0 +1,67 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "msgSender",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "ResourceId",
11
+ "name": "systemId",
12
+ "type": "bytes32"
13
+ },
14
+ {
15
+ "internalType": "bytes",
16
+ "name": "callData",
17
+ "type": "bytes"
18
+ }
19
+ ],
20
+ "name": "onAfterCallSystem",
21
+ "outputs": [],
22
+ "stateMutability": "nonpayable",
23
+ "type": "function"
24
+ },
25
+ {
26
+ "inputs": [
27
+ {
28
+ "internalType": "address",
29
+ "name": "msgSender",
30
+ "type": "address"
31
+ },
32
+ {
33
+ "internalType": "ResourceId",
34
+ "name": "systemId",
35
+ "type": "bytes32"
36
+ },
37
+ {
38
+ "internalType": "bytes",
39
+ "name": "callData",
40
+ "type": "bytes"
41
+ }
42
+ ],
43
+ "name": "onBeforeCallSystem",
44
+ "outputs": [],
45
+ "stateMutability": "nonpayable",
46
+ "type": "function"
47
+ },
48
+ {
49
+ "inputs": [
50
+ {
51
+ "internalType": "bytes4",
52
+ "name": "interfaceID",
53
+ "type": "bytes4"
54
+ }
55
+ ],
56
+ "name": "supportsInterface",
57
+ "outputs": [
58
+ {
59
+ "internalType": "bool",
60
+ "name": "",
61
+ "type": "bool"
62
+ }
63
+ ],
64
+ "stateMutability": "view",
65
+ "type": "function"
66
+ }
67
+ ]
@@ -0,0 +1,68 @@
1
+ declare const abi: [
2
+ {
3
+ inputs: [
4
+ {
5
+ internalType: "address";
6
+ name: "msgSender";
7
+ type: "address";
8
+ },
9
+ {
10
+ internalType: "ResourceId";
11
+ name: "systemId";
12
+ type: "bytes32";
13
+ },
14
+ {
15
+ internalType: "bytes";
16
+ name: "callData";
17
+ type: "bytes";
18
+ }
19
+ ];
20
+ name: "onAfterCallSystem";
21
+ outputs: [];
22
+ stateMutability: "nonpayable";
23
+ type: "function";
24
+ },
25
+ {
26
+ inputs: [
27
+ {
28
+ internalType: "address";
29
+ name: "msgSender";
30
+ type: "address";
31
+ },
32
+ {
33
+ internalType: "ResourceId";
34
+ name: "systemId";
35
+ type: "bytes32";
36
+ },
37
+ {
38
+ internalType: "bytes";
39
+ name: "callData";
40
+ type: "bytes";
41
+ }
42
+ ];
43
+ name: "onBeforeCallSystem";
44
+ outputs: [];
45
+ stateMutability: "nonpayable";
46
+ type: "function";
47
+ },
48
+ {
49
+ inputs: [
50
+ {
51
+ internalType: "bytes4";
52
+ name: "interfaceID";
53
+ type: "bytes4";
54
+ }
55
+ ];
56
+ name: "supportsInterface";
57
+ outputs: [
58
+ {
59
+ internalType: "bool";
60
+ name: "";
61
+ type: "bool";
62
+ }
63
+ ];
64
+ stateMutability: "view";
65
+ type: "function";
66
+ }
67
+ ];
68
+ export default abi;