@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
@@ -10,17 +10,17 @@
10
10
  },
11
11
  "ast": {
12
12
  "absolutePath": "/home/runner/work/mud/mud/packages/store/src/leftMask.sol",
13
- "id": 18302,
13
+ "id": 18300,
14
14
  "exportedSymbols": {
15
15
  "leftMask": [
16
- 18301
16
+ 18299
17
17
  ]
18
18
  },
19
19
  "nodeType": "SourceUnit",
20
20
  "src": "32:1059:26",
21
21
  "nodes": [
22
22
  {
23
- "id": 18278,
23
+ "id": 18276,
24
24
  "nodeType": "PragmaDirective",
25
25
  "src": "32:25:26",
26
26
  "nodes": [],
@@ -32,24 +32,24 @@
32
32
  ]
33
33
  },
34
34
  {
35
- "id": 18301,
35
+ "id": 18299,
36
36
  "nodeType": "FunctionDefinition",
37
37
  "src": "950:140:26",
38
38
  "nodes": [],
39
39
  "body": {
40
- "id": 18300,
40
+ "id": 18298,
41
41
  "nodeType": "Block",
42
42
  "src": "1016:74:26",
43
43
  "nodes": [],
44
44
  "statements": [
45
45
  {
46
- "id": 18299,
46
+ "id": 18297,
47
47
  "nodeType": "UncheckedBlock",
48
48
  "src": "1020:68:26",
49
49
  "statements": [
50
50
  {
51
51
  "expression": {
52
- "id": 18297,
52
+ "id": 18295,
53
53
  "isConstant": false,
54
54
  "isLValue": false,
55
55
  "isPure": false,
@@ -65,7 +65,7 @@
65
65
  "typeIdentifier": "t_uint256",
66
66
  "typeString": "uint256"
67
67
  },
68
- "id": 18295,
68
+ "id": 18293,
69
69
  "isConstant": false,
70
70
  "isLValue": false,
71
71
  "isPure": false,
@@ -74,7 +74,7 @@
74
74
  "expression": {
75
75
  "arguments": [
76
76
  {
77
- "id": 18288,
77
+ "id": 18286,
78
78
  "isConstant": false,
79
79
  "isLValue": false,
80
80
  "isPure": true,
@@ -86,7 +86,7 @@
86
86
  "typeString": "type(uint256)"
87
87
  },
88
88
  "typeName": {
89
- "id": 18287,
89
+ "id": 18285,
90
90
  "name": "uint256",
91
91
  "nodeType": "ElementaryTypeName",
92
92
  "src": "1050:7:26",
@@ -101,7 +101,7 @@
101
101
  "typeString": "type(uint256)"
102
102
  }
103
103
  ],
104
- "id": 18286,
104
+ "id": 18284,
105
105
  "name": "type",
106
106
  "nodeType": "Identifier",
107
107
  "overloadedDeclarations": [],
@@ -112,7 +112,7 @@
112
112
  "typeString": "function () pure"
113
113
  }
114
114
  },
115
- "id": 18289,
115
+ "id": 18287,
116
116
  "isConstant": false,
117
117
  "isLValue": false,
118
118
  "isPure": true,
@@ -128,7 +128,7 @@
128
128
  "typeString": "type(uint256)"
129
129
  }
130
130
  },
131
- "id": 18290,
131
+ "id": 18288,
132
132
  "isConstant": false,
133
133
  "isLValue": false,
134
134
  "isPure": true,
@@ -151,17 +151,17 @@
151
151
  "typeIdentifier": "t_uint256",
152
152
  "typeString": "uint256"
153
153
  },
154
- "id": 18293,
154
+ "id": 18291,
155
155
  "isConstant": false,
156
156
  "isLValue": false,
157
157
  "isPure": false,
158
158
  "lValueRequested": false,
159
159
  "leftExpression": {
160
- "id": 18291,
160
+ "id": 18289,
161
161
  "name": "byteLength",
162
162
  "nodeType": "Identifier",
163
163
  "overloadedDeclarations": [],
164
- "referencedDeclaration": 18281,
164
+ "referencedDeclaration": 18279,
165
165
  "src": "1067:10:26",
166
166
  "typeDescriptions": {
167
167
  "typeIdentifier": "t_uint256",
@@ -172,7 +172,7 @@
172
172
  "operator": "*",
173
173
  "rightExpression": {
174
174
  "hexValue": "38",
175
- "id": 18292,
175
+ "id": 18290,
176
176
  "isConstant": false,
177
177
  "isLValue": false,
178
178
  "isPure": true,
@@ -193,7 +193,7 @@
193
193
  }
194
194
  }
195
195
  ],
196
- "id": 18294,
196
+ "id": 18292,
197
197
  "isConstant": false,
198
198
  "isInlineArray": false,
199
199
  "isLValue": false,
@@ -213,7 +213,7 @@
213
213
  }
214
214
  }
215
215
  ],
216
- "id": 18296,
216
+ "id": 18294,
217
217
  "isConstant": false,
218
218
  "isInlineArray": false,
219
219
  "isLValue": false,
@@ -231,8 +231,8 @@
231
231
  "typeString": "uint256"
232
232
  }
233
233
  },
234
- "functionReturnParameters": 18285,
235
- "id": 18298,
234
+ "functionReturnParameters": 18283,
235
+ "id": 18296,
236
236
  "nodeType": "Return",
237
237
  "src": "1036:47:26"
238
238
  }
@@ -241,7 +241,7 @@
241
241
  ]
242
242
  },
243
243
  "documentation": {
244
- "id": 18279,
244
+ "id": 18277,
245
245
  "nodeType": "StructuredDocumentation",
246
246
  "src": "256:693:26",
247
247
  "text": " @notice Computes a left-aligned byte mask based on the provided byte length.\n @dev The mask is used to extract a specified number of leftmost bytes.\n For byte lengths greater than or equal to 32, it returns the max value of type(uint256).\n Examples:\n length 0: 0x000000...000000\n length 1: 0xff0000...000000\n length 2: 0xffff00...000000\n ...\n length 30: 0xffffff...ff0000\n length 31: 0xffffff...ffff00\n length 32+: 0xffffff...ffffff\n @param byteLength The number of leftmost bytes to be masked.\n @return mask A left-aligned byte mask corresponding to the specified byte length."
@@ -252,17 +252,17 @@
252
252
  "name": "leftMask",
253
253
  "nameLocation": "959:8:26",
254
254
  "parameters": {
255
- "id": 18282,
255
+ "id": 18280,
256
256
  "nodeType": "ParameterList",
257
257
  "parameters": [
258
258
  {
259
259
  "constant": false,
260
- "id": 18281,
260
+ "id": 18279,
261
261
  "mutability": "mutable",
262
262
  "name": "byteLength",
263
263
  "nameLocation": "976:10:26",
264
264
  "nodeType": "VariableDeclaration",
265
- "scope": 18301,
265
+ "scope": 18299,
266
266
  "src": "968:18:26",
267
267
  "stateVariable": false,
268
268
  "storageLocation": "default",
@@ -271,7 +271,7 @@
271
271
  "typeString": "uint256"
272
272
  },
273
273
  "typeName": {
274
- "id": 18280,
274
+ "id": 18278,
275
275
  "name": "uint256",
276
276
  "nodeType": "ElementaryTypeName",
277
277
  "src": "968:7:26",
@@ -286,17 +286,17 @@
286
286
  "src": "967:20:26"
287
287
  },
288
288
  "returnParameters": {
289
- "id": 18285,
289
+ "id": 18283,
290
290
  "nodeType": "ParameterList",
291
291
  "parameters": [
292
292
  {
293
293
  "constant": false,
294
- "id": 18284,
294
+ "id": 18282,
295
295
  "mutability": "mutable",
296
296
  "name": "mask",
297
297
  "nameLocation": "1010:4:26",
298
298
  "nodeType": "VariableDeclaration",
299
- "scope": 18301,
299
+ "scope": 18299,
300
300
  "src": "1002:12:26",
301
301
  "stateVariable": false,
302
302
  "storageLocation": "default",
@@ -305,7 +305,7 @@
305
305
  "typeString": "uint256"
306
306
  },
307
307
  "typeName": {
308
- "id": 18283,
308
+ "id": 18281,
309
309
  "name": "uint256",
310
310
  "nodeType": "ElementaryTypeName",
311
311
  "src": "1002:7:26",
@@ -319,7 +319,7 @@
319
319
  ],
320
320
  "src": "1001:14:26"
321
321
  },
322
- "scope": 18302,
322
+ "scope": 18300,
323
323
  "stateMutability": "pure",
324
324
  "virtual": false,
325
325
  "visibility": "internal"