@latticexyz/world-modules 2.0.0-main-f99e8898 → 2.0.0-main-94d7f1ee

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 +350 -350
  7. package/out/CallboundDelegations.sol/CallboundDelegations.json +4497 -4497
  8. package/out/DelegationControl.sol/DelegationControl.json +135 -135
  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 +14 -14
  13. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
  14. package/out/IBaseWorld.sol/IBaseWorld.json +81 -81
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
  16. package/out/IDelegationControl.sol/IDelegationControl.json +7 -7
  17. package/out/ISystemHook.sol/ISystemHook.json +12 -12
  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 +10 -10
  21. package/out/IWorldKernel.sol/IWorldKernel.json +10 -10
  22. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +10 -10
  23. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +39 -39
  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 +838 -838
  27. package/out/KeysWithValue.sol/KeysWithValue.json +6631 -6631
  28. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1557 -1557
  29. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +650 -650
  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 +448 -448
  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 +183 -183
  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 +482 -482
  54. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +128 -128
  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 +103 -103
  60. package/out/WorldResourceId.sol/WorldResourceIdLib.json +103 -103
  61. package/out/constants.sol/constants.json +194 -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 +171 -171
  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 +258 -258
  86. package/out/src/IWorldKernel.sol/IWorldKernel.json +258 -258
  87. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +258 -258
  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 +809 -809
  104. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +809 -809
  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
@@ -10,25 +10,25 @@
10
10
  },
11
11
  "ast": {
12
12
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/modules/core/types.sol",
13
- "id": 24379,
13
+ "id": 26698,
14
14
  "exportedSymbols": {
15
15
  "ResourceId": [
16
- 26605
16
+ 29121
17
17
  ],
18
18
  "SystemCallData": [
19
- 24366
19
+ 26685
20
20
  ],
21
21
  "SystemCallFromData": [
22
- 24378
22
+ 26697
23
23
  ]
24
24
  },
25
25
  "nodeType": "SourceUnit",
26
- "src": "32:878:49",
26
+ "src": "32:878:51",
27
27
  "nodes": [
28
28
  {
29
- "id": 24355,
29
+ "id": 26674,
30
30
  "nodeType": "PragmaDirective",
31
- "src": "32:25:49",
31
+ "src": "32:25:51",
32
32
  "nodes": [],
33
33
  "literals": [
34
34
  "solidity",
@@ -38,24 +38,24 @@
38
38
  ]
39
39
  },
40
40
  {
41
- "id": 24357,
41
+ "id": 26676,
42
42
  "nodeType": "ImportDirective",
43
- "src": "59:66:49",
43
+ "src": "59:66:51",
44
44
  "nodes": [],
45
45
  "absolutePath": "node_modules/@latticexyz/store/src/ResourceId.sol",
46
46
  "file": "@latticexyz/store/src/ResourceId.sol",
47
47
  "nameLocation": "-1:-1:-1",
48
- "scope": 24379,
49
- "sourceUnit": 26677,
48
+ "scope": 26698,
49
+ "sourceUnit": 29193,
50
50
  "symbolAliases": [
51
51
  {
52
52
  "foreign": {
53
- "id": 24356,
53
+ "id": 26675,
54
54
  "name": "ResourceId",
55
55
  "nodeType": "Identifier",
56
56
  "overloadedDeclarations": [],
57
- "referencedDeclaration": 26605,
58
- "src": "68:10:49",
57
+ "referencedDeclaration": 29121,
58
+ "src": "68:10:51",
59
59
  "typeDescriptions": {}
60
60
  },
61
61
  "nameLocation": "-1:-1:-1"
@@ -64,50 +64,50 @@
64
64
  "unitAlias": ""
65
65
  },
66
66
  {
67
- "id": 24366,
67
+ "id": 26685,
68
68
  "nodeType": "StructDefinition",
69
- "src": "301:164:49",
69
+ "src": "301:164:51",
70
70
  "nodes": [],
71
71
  "canonicalName": "SystemCallData",
72
72
  "documentation": {
73
- "id": 24358,
73
+ "id": 26677,
74
74
  "nodeType": "StructuredDocumentation",
75
- "src": "127:173:49",
75
+ "src": "127:173:51",
76
76
  "text": " @title System Call Data Structure\n @notice Holds data for making system calls.\n @dev Used to represent a call to a specific system identified by a ResourceId."
77
77
  },
78
78
  "members": [
79
79
  {
80
80
  "constant": false,
81
- "id": 24362,
81
+ "id": 26681,
82
82
  "mutability": "mutable",
83
83
  "name": "systemId",
84
- "nameLocation": "379:8:49",
84
+ "nameLocation": "379:8:51",
85
85
  "nodeType": "VariableDeclaration",
86
- "scope": 24366,
87
- "src": "368:19:49",
86
+ "scope": 26685,
87
+ "src": "368:19:51",
88
88
  "stateVariable": false,
89
89
  "storageLocation": "default",
90
90
  "typeDescriptions": {
91
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
91
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
92
92
  "typeString": "ResourceId"
93
93
  },
94
94
  "typeName": {
95
- "id": 24361,
95
+ "id": 26680,
96
96
  "nodeType": "UserDefinedTypeName",
97
97
  "pathNode": {
98
- "id": 24360,
98
+ "id": 26679,
99
99
  "name": "ResourceId",
100
100
  "nameLocations": [
101
- "368:10:49"
101
+ "368:10:51"
102
102
  ],
103
103
  "nodeType": "IdentifierPath",
104
- "referencedDeclaration": 26605,
105
- "src": "368:10:49"
104
+ "referencedDeclaration": 29121,
105
+ "src": "368:10:51"
106
106
  },
107
- "referencedDeclaration": 26605,
108
- "src": "368:10:49",
107
+ "referencedDeclaration": 29121,
108
+ "src": "368:10:51",
109
109
  "typeDescriptions": {
110
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
110
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
111
111
  "typeString": "ResourceId"
112
112
  }
113
113
  },
@@ -115,13 +115,13 @@
115
115
  },
116
116
  {
117
117
  "constant": false,
118
- "id": 24365,
118
+ "id": 26684,
119
119
  "mutability": "mutable",
120
120
  "name": "callData",
121
- "nameLocation": "454:8:49",
121
+ "nameLocation": "454:8:51",
122
122
  "nodeType": "VariableDeclaration",
123
- "scope": 24366,
124
- "src": "448:14:49",
123
+ "scope": 26685,
124
+ "src": "448:14:51",
125
125
  "stateVariable": false,
126
126
  "storageLocation": "default",
127
127
  "typeDescriptions": {
@@ -129,10 +129,10 @@
129
129
  "typeString": "bytes"
130
130
  },
131
131
  "typeName": {
132
- "id": 24364,
132
+ "id": 26683,
133
133
  "name": "bytes",
134
134
  "nodeType": "ElementaryTypeName",
135
- "src": "448:5:49",
135
+ "src": "448:5:51",
136
136
  "typeDescriptions": {
137
137
  "typeIdentifier": "t_bytes_storage_ptr",
138
138
  "typeString": "bytes"
@@ -142,32 +142,32 @@
142
142
  }
143
143
  ],
144
144
  "name": "SystemCallData",
145
- "nameLocation": "308:14:49",
146
- "scope": 24379,
145
+ "nameLocation": "308:14:51",
146
+ "scope": 26698,
147
147
  "visibility": "public"
148
148
  },
149
149
  {
150
- "id": 24378,
150
+ "id": 26697,
151
151
  "nodeType": "StructDefinition",
152
- "src": "666:243:49",
152
+ "src": "666:243:51",
153
153
  "nodes": [],
154
154
  "canonicalName": "SystemCallFromData",
155
155
  "documentation": {
156
- "id": 24367,
156
+ "id": 26686,
157
157
  "nodeType": "StructuredDocumentation",
158
- "src": "467:198:49",
158
+ "src": "467:198:51",
159
159
  "text": " @title System Call From Data Structure\n @notice Holds data for making system calls with a specific sender.\n @dev Used to represent a call from a specific address to a specific system."
160
160
  },
161
161
  "members": [
162
162
  {
163
163
  "constant": false,
164
- "id": 24370,
164
+ "id": 26689,
165
165
  "mutability": "mutable",
166
166
  "name": "from",
167
- "nameLocation": "763:4:49",
167
+ "nameLocation": "763:4:51",
168
168
  "nodeType": "VariableDeclaration",
169
- "scope": 24378,
170
- "src": "755:12:49",
169
+ "scope": 26697,
170
+ "src": "755:12:51",
171
171
  "stateVariable": false,
172
172
  "storageLocation": "default",
173
173
  "typeDescriptions": {
@@ -175,10 +175,10 @@
175
175
  "typeString": "address"
176
176
  },
177
177
  "typeName": {
178
- "id": 24369,
178
+ "id": 26688,
179
179
  "name": "address",
180
180
  "nodeType": "ElementaryTypeName",
181
- "src": "755:7:49",
181
+ "src": "755:7:51",
182
182
  "stateMutability": "nonpayable",
183
183
  "typeDescriptions": {
184
184
  "typeIdentifier": "t_address",
@@ -189,36 +189,36 @@
189
189
  },
190
190
  {
191
191
  "constant": false,
192
- "id": 24374,
192
+ "id": 26693,
193
193
  "mutability": "mutable",
194
194
  "name": "systemId",
195
- "nameLocation": "823:8:49",
195
+ "nameLocation": "823:8:51",
196
196
  "nodeType": "VariableDeclaration",
197
- "scope": 24378,
198
- "src": "812:19:49",
197
+ "scope": 26697,
198
+ "src": "812:19:51",
199
199
  "stateVariable": false,
200
200
  "storageLocation": "default",
201
201
  "typeDescriptions": {
202
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
202
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
203
203
  "typeString": "ResourceId"
204
204
  },
205
205
  "typeName": {
206
- "id": 24373,
206
+ "id": 26692,
207
207
  "nodeType": "UserDefinedTypeName",
208
208
  "pathNode": {
209
- "id": 24372,
209
+ "id": 26691,
210
210
  "name": "ResourceId",
211
211
  "nameLocations": [
212
- "812:10:49"
212
+ "812:10:51"
213
213
  ],
214
214
  "nodeType": "IdentifierPath",
215
- "referencedDeclaration": 26605,
216
- "src": "812:10:49"
215
+ "referencedDeclaration": 29121,
216
+ "src": "812:10:51"
217
217
  },
218
- "referencedDeclaration": 26605,
219
- "src": "812:10:49",
218
+ "referencedDeclaration": 29121,
219
+ "src": "812:10:51",
220
220
  "typeDescriptions": {
221
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26605",
221
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
222
222
  "typeString": "ResourceId"
223
223
  }
224
224
  },
@@ -226,13 +226,13 @@
226
226
  },
227
227
  {
228
228
  "constant": false,
229
- "id": 24377,
229
+ "id": 26696,
230
230
  "mutability": "mutable",
231
231
  "name": "callData",
232
- "nameLocation": "898:8:49",
232
+ "nameLocation": "898:8:51",
233
233
  "nodeType": "VariableDeclaration",
234
- "scope": 24378,
235
- "src": "892:14:49",
234
+ "scope": 26697,
235
+ "src": "892:14:51",
236
236
  "stateVariable": false,
237
237
  "storageLocation": "default",
238
238
  "typeDescriptions": {
@@ -240,10 +240,10 @@
240
240
  "typeString": "bytes"
241
241
  },
242
242
  "typeName": {
243
- "id": 24376,
243
+ "id": 26695,
244
244
  "name": "bytes",
245
245
  "nodeType": "ElementaryTypeName",
246
- "src": "892:5:49",
246
+ "src": "892:5:51",
247
247
  "typeDescriptions": {
248
248
  "typeIdentifier": "t_bytes_storage_ptr",
249
249
  "typeString": "bytes"
@@ -253,12 +253,12 @@
253
253
  }
254
254
  ],
255
255
  "name": "SystemCallFromData",
256
- "nameLocation": "673:18:49",
257
- "scope": 24379,
256
+ "nameLocation": "673:18:51",
257
+ "scope": 26698,
258
258
  "visibility": "public"
259
259
  }
260
260
  ],
261
261
  "license": "MIT"
262
262
  },
263
- "id": 49
263
+ "id": 51
264
264
  }