@latticexyz/world 2.2.19 → 2.2.20-06e48e0239a5c7994ce73b4d2752860743fec4b0

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 (236) hide show
  1. package/dist/{System.abi-ENBBMWQJ.js → System.abi-QE5PR27M.js} +2 -2
  2. package/dist/{System.abi-ENBBMWQJ.js.map → System.abi-QE5PR27M.js.map} +1 -1
  3. package/dist/{chunk-SGZK356L.js → chunk-PZKG3J66.js} +40 -21
  4. package/dist/chunk-PZKG3J66.js.map +1 -0
  5. package/dist/internal.js +1 -1
  6. package/dist/mud.config.d.ts +242 -131
  7. package/dist/mud.config.js +7 -5
  8. package/dist/node.js +21 -19
  9. package/dist/node.js.map +1 -1
  10. package/out/AccessControl.t.sol/AccessControlTest.json +1 -1
  11. package/out/AccessManagementSystem.sol/AccessManagementSystem.abi.json +1 -1
  12. package/out/AccessManagementSystem.sol/AccessManagementSystem.abi.json.d.ts +1 -1
  13. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  14. package/out/AccessManagementSystemLib.sol/AccessManagementSystemLib.abi.json +7 -0
  15. package/out/AccessManagementSystemLib.sol/AccessManagementSystemLib.abi.json.d.ts +9 -0
  16. package/out/AccessManagementSystemLib.sol/AccessManagementSystemLib.json +1 -0
  17. package/out/AccessManagementSystemLib.sol/_grantAccess_ResourceId_address.abi.json +20 -0
  18. package/out/AccessManagementSystemLib.sol/_grantAccess_ResourceId_address.abi.json.d.ts +22 -0
  19. package/out/AccessManagementSystemLib.sol/_grantAccess_ResourceId_address.json +1 -0
  20. package/out/AccessManagementSystemLib.sol/_renounceOwnership_ResourceId.abi.json +15 -0
  21. package/out/AccessManagementSystemLib.sol/_renounceOwnership_ResourceId.abi.json.d.ts +17 -0
  22. package/out/AccessManagementSystemLib.sol/_renounceOwnership_ResourceId.json +1 -0
  23. package/out/AccessManagementSystemLib.sol/_revokeAccess_ResourceId_address.abi.json +20 -0
  24. package/out/AccessManagementSystemLib.sol/_revokeAccess_ResourceId_address.abi.json.d.ts +22 -0
  25. package/out/AccessManagementSystemLib.sol/_revokeAccess_ResourceId_address.json +1 -0
  26. package/out/AccessManagementSystemLib.sol/_transferOwnership_ResourceId_address.abi.json +20 -0
  27. package/out/AccessManagementSystemLib.sol/_transferOwnership_ResourceId_address.abi.json.d.ts +22 -0
  28. package/out/AccessManagementSystemLib.sol/_transferOwnership_ResourceId_address.json +1 -0
  29. package/out/AddressArray.sol/AddressArray.json +1 -1
  30. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.abi.json +1 -1
  31. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.abi.json.d.ts +1 -1
  32. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  33. package/out/BalanceTransferSystemLib.sol/BalanceTransferSystemLib.abi.json +7 -0
  34. package/out/BalanceTransferSystemLib.sol/BalanceTransferSystemLib.abi.json.d.ts +9 -0
  35. package/out/BalanceTransferSystemLib.sol/BalanceTransferSystemLib.json +1 -0
  36. package/out/BalanceTransferSystemLib.sol/_transferBalanceToAddress_ResourceId_address_uint256.abi.json +25 -0
  37. package/out/BalanceTransferSystemLib.sol/_transferBalanceToAddress_ResourceId_address_uint256.abi.json.d.ts +27 -0
  38. package/out/BalanceTransferSystemLib.sol/_transferBalanceToAddress_ResourceId_address_uint256.json +1 -0
  39. package/out/BalanceTransferSystemLib.sol/_transferBalanceToNamespace_ResourceId_ResourceId_uint256.abi.json +25 -0
  40. package/out/BalanceTransferSystemLib.sol/_transferBalanceToNamespace_ResourceId_ResourceId_uint256.abi.json.d.ts +27 -0
  41. package/out/BalanceTransferSystemLib.sol/_transferBalanceToNamespace_ResourceId_ResourceId_uint256.json +1 -0
  42. package/out/Balances.sol/Balances.json +1 -1
  43. package/out/BatchCall.t.sol/BatchCallTest.json +1 -1
  44. package/out/BatchCall.t.sol/TestSystem.abi.json +1 -1
  45. package/out/BatchCall.t.sol/TestSystem.abi.json.d.ts +1 -1
  46. package/out/BatchCall.t.sol/TestSystem.json +1 -1
  47. package/out/BatchCallSystem.sol/BatchCallSystem.abi.json +1 -1
  48. package/out/BatchCallSystem.sol/BatchCallSystem.abi.json.d.ts +1 -1
  49. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  50. package/out/BatchCallSystemLib.sol/BatchCallSystemLib.abi.json +7 -0
  51. package/out/BatchCallSystemLib.sol/BatchCallSystemLib.abi.json.d.ts +9 -0
  52. package/out/BatchCallSystemLib.sol/BatchCallSystemLib.json +1 -0
  53. package/out/BatchCallSystemLib.sol/_batchCallFrom_SystemCallFromDataArray.abi.json +32 -0
  54. package/out/BatchCallSystemLib.sol/_batchCallFrom_SystemCallFromDataArray.abi.json.d.ts +34 -0
  55. package/out/BatchCallSystemLib.sol/_batchCallFrom_SystemCallFromDataArray.json +1 -0
  56. package/out/BatchCallSystemLib.sol/_batchCall_SystemCallDataArray.abi.json +27 -0
  57. package/out/BatchCallSystemLib.sol/_batchCall_SystemCallDataArray.abi.json.d.ts +29 -0
  58. package/out/BatchCallSystemLib.sol/_batchCall_SystemCallDataArray.json +1 -0
  59. package/out/Bool.sol/Bool.json +1 -1
  60. package/out/Create2Factory.sol/Create2Factory.json +1 -1
  61. package/out/Delegation.sol/Delegation.json +1 -1
  62. package/out/DelegationControl.sol/DelegationControl.abi.json +1 -1
  63. package/out/DelegationControl.sol/DelegationControl.abi.json.d.ts +1 -1
  64. package/out/DelegationControl.sol/DelegationControl.json +1 -1
  65. package/out/DelegationControlMock.sol/DelegationControlMock.abi.json +1 -1
  66. package/out/DelegationControlMock.sol/DelegationControlMock.abi.json.d.ts +1 -1
  67. package/out/DelegationControlMock.sol/DelegationControlMock.json +1 -1
  68. package/out/EchoSubscriber.sol/EchoSubscriber.json +1 -1
  69. package/out/Factories.t.sol/FactoriesTest.json +1 -1
  70. package/out/FunctionSelectors.sol/FunctionSelectors.json +1 -1
  71. package/out/FunctionSignatures.sol/FunctionSignatures.json +1 -1
  72. package/out/GasReporter.sol/GasReporter.json +1 -1
  73. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +1 -1
  74. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +1 -1
  75. package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
  76. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +1 -1
  77. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +1 -1
  78. package/out/IRegistrationSystem.sol/IRegistrationSystem.json +1 -1
  79. package/out/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.abi.json +81 -0
  80. package/out/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.abi.json.d.ts +83 -0
  81. package/out/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.json +1 -0
  82. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +1 -1
  83. package/out/InitModule.sol/InitModule.abi.json +3 -3
  84. package/out/InitModule.sol/InitModule.abi.json.d.ts +3 -3
  85. package/out/InitModule.sol/InitModule.json +1 -1
  86. package/out/InitModule.t.sol/InitModuleTest.json +1 -1
  87. package/out/InitModule.t.sol/WorldMock.json +1 -1
  88. package/out/InitModuleAddress.sol/InitModuleAddress.json +1 -1
  89. package/out/InitSystems.t.sol/LimitedCallContextTest.json +1 -1
  90. package/out/InstalledModules.sol/InstalledModules.json +1 -1
  91. package/out/LimitedCallContext.sol/LimitedCallContext.json +1 -1
  92. package/out/Module.sol/Module.abi.json +1 -1
  93. package/out/Module.sol/Module.abi.json.d.ts +1 -1
  94. package/out/Module.sol/Module.json +1 -1
  95. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json +1 -1
  96. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json.d.ts +1 -1
  97. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
  98. package/out/ModuleInstallationSystemLib.sol/ModuleInstallationSystemLib.abi.json +7 -0
  99. package/out/ModuleInstallationSystemLib.sol/ModuleInstallationSystemLib.abi.json.d.ts +9 -0
  100. package/out/ModuleInstallationSystemLib.sol/ModuleInstallationSystemLib.json +1 -0
  101. package/out/ModuleInstallationSystemLib.sol/_installModule_IModule_bytes.abi.json +20 -0
  102. package/out/ModuleInstallationSystemLib.sol/_installModule_IModule_bytes.abi.json.d.ts +22 -0
  103. package/out/ModuleInstallationSystemLib.sol/_installModule_IModule_bytes.json +1 -0
  104. package/out/MudTest.t.sol/MudTest.json +1 -1
  105. package/out/NamespaceDelegationControl.sol/NamespaceDelegationControl.json +1 -1
  106. package/out/NamespaceOwner.sol/NamespaceOwner.json +1 -1
  107. package/out/RegistrationSystem.sol/RegistrationSystem.abi.json +1 -1
  108. package/out/RegistrationSystem.sol/RegistrationSystem.abi.json.d.ts +1 -1
  109. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  110. package/out/RegistrationSystemLib.sol/RegistrationSystemLib.abi.json +7 -0
  111. package/out/RegistrationSystemLib.sol/RegistrationSystemLib.abi.json.d.ts +9 -0
  112. package/out/RegistrationSystemLib.sol/RegistrationSystemLib.json +1 -0
  113. package/out/ResourceAccess.sol/ResourceAccess.json +1 -1
  114. package/out/RevertSubscriber.sol/RevertSubscriber.json +1 -1
  115. package/out/RevertWithBytes.t.sol/RevertWithBytesTest.json +1 -1
  116. package/out/StdError.sol/stdError.json +1 -1
  117. package/out/StoreMock.sol/StoreMock.json +1 -1
  118. package/out/StoreRead.sol/StoreRead.json +1 -1
  119. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json +1 -1
  120. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json.d.ts +1 -1
  121. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
  122. package/out/StoreRegistrationSystemLib.sol/StoreRegistrationSystemLib.abi.json +7 -0
  123. package/out/StoreRegistrationSystemLib.sol/StoreRegistrationSystemLib.abi.json.d.ts +9 -0
  124. package/out/StoreRegistrationSystemLib.sol/StoreRegistrationSystemLib.json +1 -0
  125. package/out/StoreRegistrationSystemLib.sol/_registerStoreHook_ResourceId_IStoreHook_uint8.abi.json +25 -0
  126. package/out/StoreRegistrationSystemLib.sol/_registerStoreHook_ResourceId_IStoreHook_uint8.abi.json.d.ts +27 -0
  127. package/out/StoreRegistrationSystemLib.sol/_registerStoreHook_ResourceId_IStoreHook_uint8.json +1 -0
  128. package/out/StoreRegistrationSystemLib.sol/_registerTable_ResourceId_FieldLayout_Schema_Schema_stringArray_stringArray.abi.json +40 -0
  129. package/out/StoreRegistrationSystemLib.sol/_registerTable_ResourceId_FieldLayout_Schema_Schema_stringArray_stringArray.abi.json.d.ts +42 -0
  130. package/out/StoreRegistrationSystemLib.sol/_registerTable_ResourceId_FieldLayout_Schema_Schema_stringArray_stringArray.json +1 -0
  131. package/out/StoreRegistrationSystemLib.sol/_unregisterStoreHook_ResourceId_IStoreHook.abi.json +20 -0
  132. package/out/StoreRegistrationSystemLib.sol/_unregisterStoreHook_ResourceId_IStoreHook.abi.json.d.ts +22 -0
  133. package/out/StoreRegistrationSystemLib.sol/_unregisterStoreHook_ResourceId_IStoreHook.json +1 -0
  134. package/out/System.sol/System.abi.json +1 -1
  135. package/out/System.sol/System.abi.json.d.ts +1 -1
  136. package/out/System.sol/System.json +1 -1
  137. package/out/System.t.sol/SystemTest.json +1 -1
  138. package/out/System.t.sol/TestSystem.abi.json +1 -1
  139. package/out/System.t.sol/TestSystem.abi.json.d.ts +1 -1
  140. package/out/System.t.sol/TestSystem.json +1 -1
  141. package/out/SystemCall.sol/SystemCall.json +1 -1
  142. package/out/SystemHook.t.sol/SystemHookTest.json +1 -1
  143. package/out/SystemHooks.sol/SystemHooks.json +1 -1
  144. package/out/SystemRegistry.sol/SystemRegistry.json +1 -1
  145. package/out/Systems.sol/Systems.json +1 -1
  146. package/out/TwoFields.sol/TwoFields.json +1 -1
  147. package/out/UserDelegationControl.sol/UserDelegationControl.json +1 -1
  148. package/out/Utils.t.sol/UtilsTest.json +1 -1
  149. package/out/Utils.t.sol/UtilsTestSystem.abi.json +1 -1
  150. package/out/Utils.t.sol/UtilsTestSystem.abi.json.d.ts +1 -1
  151. package/out/Utils.t.sol/UtilsTestSystem.json +1 -1
  152. package/out/World.sol/World.json +1 -1
  153. package/out/World.t.sol/EchoSystemHook.json +1 -1
  154. package/out/World.t.sol/IWorldTestSystem.json +1 -1
  155. package/out/World.t.sol/PayableFallbackSystem.abi.json +1 -1
  156. package/out/World.t.sol/PayableFallbackSystem.abi.json.d.ts +1 -1
  157. package/out/World.t.sol/PayableFallbackSystem.json +1 -1
  158. package/out/World.t.sol/RevertSystemHook.json +1 -1
  159. package/out/World.t.sol/WorldTest.json +1 -1
  160. package/out/World.t.sol/WorldTestSystem.abi.json +1 -1
  161. package/out/World.t.sol/WorldTestSystem.abi.json.d.ts +1 -1
  162. package/out/World.t.sol/WorldTestSystem.json +1 -1
  163. package/out/WorldBalance.t.sol/WorldBalanceTest.json +1 -1
  164. package/out/WorldBalance.t.sol/WorldBalanceTestSystem.abi.json +1 -1
  165. package/out/WorldBalance.t.sol/WorldBalanceTestSystem.abi.json.d.ts +1 -1
  166. package/out/WorldBalance.t.sol/WorldBalanceTestSystem.json +1 -1
  167. package/out/WorldContext.sol/WorldContextConsumer.abi.json +1 -1
  168. package/out/WorldContext.sol/WorldContextConsumer.abi.json.d.ts +1 -1
  169. package/out/WorldContext.sol/WorldContextConsumer.json +1 -1
  170. package/out/WorldContext.sol/WorldContextConsumerLib.json +1 -1
  171. package/out/WorldContext.sol/WorldContextProviderLib.json +1 -1
  172. package/out/WorldContext.t.sol/TestContextConsumer.abi.json +1 -1
  173. package/out/WorldContext.t.sol/TestContextConsumer.abi.json.d.ts +1 -1
  174. package/out/WorldContext.t.sol/TestContextConsumer.json +1 -1
  175. package/out/WorldContext.t.sol/WorldContextTest.json +1 -1
  176. package/out/WorldDynamicUpdate.t.sol/UpdateInDynamicFieldTest.json +1 -1
  177. package/out/WorldFactory.sol/WorldFactory.json +1 -1
  178. package/out/WorldProxy.sol/WorldProxy.json +1 -1
  179. package/out/WorldProxy.t.sol/WorldProxyTest.json +1 -1
  180. package/out/WorldProxyFactory.sol/WorldProxyFactory.json +1 -1
  181. package/out/WorldProxyFactory.t.sol/WorldProxyFactoryTest.json +1 -1
  182. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json +1 -1
  183. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json.d.ts +1 -1
  184. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
  185. package/out/WorldRegistrationSystemLib.sol/WorldRegistrationSystemLib.abi.json +7 -0
  186. package/out/WorldRegistrationSystemLib.sol/WorldRegistrationSystemLib.abi.json.d.ts +9 -0
  187. package/out/WorldRegistrationSystemLib.sol/WorldRegistrationSystemLib.json +1 -0
  188. package/out/WorldRegistrationSystemLib.sol/_registerDelegation_address_ResourceId_bytes.abi.json +25 -0
  189. package/out/WorldRegistrationSystemLib.sol/_registerDelegation_address_ResourceId_bytes.abi.json.d.ts +27 -0
  190. package/out/WorldRegistrationSystemLib.sol/_registerDelegation_address_ResourceId_bytes.json +1 -0
  191. package/out/WorldRegistrationSystemLib.sol/_registerFunctionSelector_ResourceId_string.abi.json +20 -0
  192. package/out/WorldRegistrationSystemLib.sol/_registerFunctionSelector_ResourceId_string.abi.json.d.ts +22 -0
  193. package/out/WorldRegistrationSystemLib.sol/_registerFunctionSelector_ResourceId_string.json +1 -0
  194. package/out/WorldRegistrationSystemLib.sol/_registerNamespaceDelegation_ResourceId_ResourceId_bytes.abi.json +25 -0
  195. package/out/WorldRegistrationSystemLib.sol/_registerNamespaceDelegation_ResourceId_ResourceId_bytes.abi.json.d.ts +27 -0
  196. package/out/WorldRegistrationSystemLib.sol/_registerNamespaceDelegation_ResourceId_ResourceId_bytes.json +1 -0
  197. package/out/WorldRegistrationSystemLib.sol/_registerNamespace_ResourceId.abi.json +15 -0
  198. package/out/WorldRegistrationSystemLib.sol/_registerNamespace_ResourceId.abi.json.d.ts +17 -0
  199. package/out/WorldRegistrationSystemLib.sol/_registerNamespace_ResourceId.json +1 -0
  200. package/out/WorldRegistrationSystemLib.sol/_registerRootFunctionSelector_ResourceId_string_string.abi.json +25 -0
  201. package/out/WorldRegistrationSystemLib.sol/_registerRootFunctionSelector_ResourceId_string_string.abi.json.d.ts +27 -0
  202. package/out/WorldRegistrationSystemLib.sol/_registerRootFunctionSelector_ResourceId_string_string.json +1 -0
  203. package/out/WorldRegistrationSystemLib.sol/_registerSystemHook_ResourceId_ISystemHook_uint8.abi.json +25 -0
  204. package/out/WorldRegistrationSystemLib.sol/_registerSystemHook_ResourceId_ISystemHook_uint8.abi.json.d.ts +27 -0
  205. package/out/WorldRegistrationSystemLib.sol/_registerSystemHook_ResourceId_ISystemHook_uint8.json +1 -0
  206. package/out/WorldRegistrationSystemLib.sol/_registerSystem_ResourceId_System_bool.abi.json +25 -0
  207. package/out/WorldRegistrationSystemLib.sol/_registerSystem_ResourceId_System_bool.abi.json.d.ts +27 -0
  208. package/out/WorldRegistrationSystemLib.sol/_registerSystem_ResourceId_System_bool.json +1 -0
  209. package/out/WorldRegistrationSystemLib.sol/_unregisterDelegation_address.abi.json +15 -0
  210. package/out/WorldRegistrationSystemLib.sol/_unregisterDelegation_address.abi.json.d.ts +17 -0
  211. package/out/WorldRegistrationSystemLib.sol/_unregisterDelegation_address.json +1 -0
  212. package/out/WorldRegistrationSystemLib.sol/_unregisterNamespaceDelegation_ResourceId.abi.json +15 -0
  213. package/out/WorldRegistrationSystemLib.sol/_unregisterNamespaceDelegation_ResourceId.abi.json.d.ts +17 -0
  214. package/out/WorldRegistrationSystemLib.sol/_unregisterNamespaceDelegation_ResourceId.json +1 -0
  215. package/out/WorldRegistrationSystemLib.sol/_unregisterSystemHook_ResourceId_ISystemHook.abi.json +20 -0
  216. package/out/WorldRegistrationSystemLib.sol/_unregisterSystemHook_ResourceId_ISystemHook.abi.json.d.ts +22 -0
  217. package/out/WorldRegistrationSystemLib.sol/_unregisterSystemHook_ResourceId_ISystemHook.json +1 -0
  218. package/out/WorldResourceId.t.sol/WorldResourceIdTest.json +1 -1
  219. package/out/build-info/{27bef2dac23cc424daa40171c98ac387.json → 6366a746548e984842b93ef762b76b99.json} +1 -1
  220. package/out/test.sol/DSTest.json +1 -1
  221. package/package.json +9 -9
  222. package/src/Module.sol +21 -0
  223. package/src/WorldContext.sol +1 -1
  224. package/src/codegen/experimental/systems/AccessManagementSystemLib.sol +182 -0
  225. package/src/codegen/experimental/systems/BalanceTransferSystemLib.sol +169 -0
  226. package/src/codegen/experimental/systems/BatchCallSystemLib.sol +153 -0
  227. package/src/codegen/experimental/systems/ModuleInstallationSystemLib.sol +107 -0
  228. package/src/codegen/experimental/systems/RegistrationSystemLib.sol +71 -0
  229. package/src/codegen/experimental/systems/StoreRegistrationSystemLib.sol +228 -0
  230. package/src/codegen/experimental/systems/WorldRegistrationSystemLib.sol +471 -0
  231. package/src/codegen/interfaces/IStoreRegistrationSystem.sol +29 -0
  232. package/src/modules/init/InitModule.sol +0 -8
  233. package/src/modules/init/implementations/ModuleInstallationSystem.sol +1 -1
  234. package/src/modules/init/implementations/StoreRegistrationSystem.sol +2 -1
  235. package/src/modules/init/implementations/WorldRegistrationSystem.sol +1 -1
  236. package/dist/chunk-SGZK356L.js.map +0 -1
@@ -26,7 +26,7 @@ var System_abi_default = [
26
26
  internalType: "uint256"
27
27
  }
28
28
  ],
29
- stateMutability: "pure"
29
+ stateMutability: "view"
30
30
  },
31
31
  {
32
32
  type: "function",
@@ -64,4 +64,4 @@ var System_abi_default = [
64
64
  export {
65
65
  System_abi_default as default
66
66
  };
67
- //# sourceMappingURL=System.abi-ENBBMWQJ.js.map
67
+ //# sourceMappingURL=System.abi-QE5PR27M.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../out/System.sol/System.abi.json"],"sourcesContent":["[\n {\n \"type\": \"function\",\n \"name\": \"_msgSender\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"sender\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"stateMutability\": \"view\"\n },\n {\n \"type\": \"function\",\n \"name\": \"_msgValue\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"value\",\n \"type\": \"uint256\",\n \"internalType\": \"uint256\"\n }\n ],\n \"stateMutability\": \"pure\"\n },\n {\n \"type\": \"function\",\n \"name\": \"_world\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"stateMutability\": \"view\"\n },\n {\n \"type\": \"function\",\n \"name\": \"supportsInterface\",\n \"inputs\": [\n {\n \"name\": \"interfaceId\",\n \"type\": \"bytes4\",\n \"internalType\": \"bytes4\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"\",\n \"type\": \"bool\",\n \"internalType\": \"bool\"\n }\n ],\n \"stateMutability\": \"pure\"\n }\n]"],"mappings":";;;AAAA;AAAA,EACE;AAAA,IACE,MAAQ;AAAA,IACR,MAAQ;AAAA,IACR,QAAU,CAAC;AAAA,IACX,SAAW;AAAA,MACT;AAAA,QACE,MAAQ;AAAA,QACR,MAAQ;AAAA,QACR,cAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,iBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAQ;AAAA,IACR,MAAQ;AAAA,IACR,QAAU,CAAC;AAAA,IACX,SAAW;AAAA,MACT;AAAA,QACE,MAAQ;AAAA,QACR,MAAQ;AAAA,QACR,cAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,iBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAQ;AAAA,IACR,MAAQ;AAAA,IACR,QAAU,CAAC;AAAA,IACX,SAAW;AAAA,MACT;AAAA,QACE,MAAQ;AAAA,QACR,MAAQ;AAAA,QACR,cAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,iBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAQ;AAAA,IACR,MAAQ;AAAA,IACR,QAAU;AAAA,MACR;AAAA,QACE,MAAQ;AAAA,QACR,MAAQ;AAAA,QACR,cAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,SAAW;AAAA,MACT;AAAA,QACE,MAAQ;AAAA,QACR,MAAQ;AAAA,QACR,cAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,iBAAmB;AAAA,EACrB;AACF;","names":[]}
1
+ {"version":3,"sources":["../out/System.sol/System.abi.json"],"sourcesContent":["[\n {\n \"type\": \"function\",\n \"name\": \"_msgSender\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"sender\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"stateMutability\": \"view\"\n },\n {\n \"type\": \"function\",\n \"name\": \"_msgValue\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"value\",\n \"type\": \"uint256\",\n \"internalType\": \"uint256\"\n }\n ],\n \"stateMutability\": \"view\"\n },\n {\n \"type\": \"function\",\n \"name\": \"_world\",\n \"inputs\": [],\n \"outputs\": [\n {\n \"name\": \"\",\n \"type\": \"address\",\n \"internalType\": \"address\"\n }\n ],\n \"stateMutability\": \"view\"\n },\n {\n \"type\": \"function\",\n \"name\": \"supportsInterface\",\n \"inputs\": [\n {\n \"name\": \"interfaceId\",\n \"type\": \"bytes4\",\n \"internalType\": \"bytes4\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"\",\n \"type\": \"bool\",\n \"internalType\": \"bool\"\n }\n ],\n \"stateMutability\": \"pure\"\n }\n]"],"mappings":";;;AAAA;AAAA,EACE;AAAA,IACE,MAAQ;AAAA,IACR,MAAQ;AAAA,IACR,QAAU,CAAC;AAAA,IACX,SAAW;AAAA,MACT;AAAA,QACE,MAAQ;AAAA,QACR,MAAQ;AAAA,QACR,cAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,iBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAQ;AAAA,IACR,MAAQ;AAAA,IACR,QAAU,CAAC;AAAA,IACX,SAAW;AAAA,MACT;AAAA,QACE,MAAQ;AAAA,QACR,MAAQ;AAAA,QACR,cAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,iBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAQ;AAAA,IACR,MAAQ;AAAA,IACR,QAAU,CAAC;AAAA,IACX,SAAW;AAAA,MACT;AAAA,QACE,MAAQ;AAAA,QACR,MAAQ;AAAA,QACR,cAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,iBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAQ;AAAA,IACR,MAAQ;AAAA,IACR,QAAU;AAAA,MACR;AAAA,QACE,MAAQ;AAAA,QACR,MAAQ;AAAA,QACR,cAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,SAAW;AAAA,MACT;AAAA,QACE,MAAQ;AAAA,QACR,MAAQ;AAAA,QACR,cAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,iBAAmB;AAAA,EACrB;AACF;","names":[]}
@@ -3,14 +3,8 @@ import {
3
3
  } from "./chunk-2W4TKC47.js";
4
4
 
5
5
  // mud.config.ts
6
- var configInput = {
6
+ var tablesConfig = defineWorld({
7
7
  namespace: "world",
8
- // NOTE: this namespace is only used for tables, the core system is deployed in the root namespace.
9
- codegen: {
10
- worldImportPath: "./src",
11
- worldgenDirectory: "interfaces",
12
- worldInterfaceName: "IBaseWorld"
13
- },
14
8
  userTypes: {
15
9
  ResourceId: { filePath: "@latticexyz/store/src/ResourceId.sol", type: "bytes32" }
16
10
  },
@@ -111,22 +105,47 @@ var configInput = {
111
105
  },
112
106
  key: []
113
107
  }
108
+ }
109
+ });
110
+ var systemsConfig = defineWorld({
111
+ namespace: "",
112
+ codegen: {
113
+ worldImportPath: "./src",
114
+ worldgenDirectory: "interfaces",
115
+ worldInterfaceName: "IBaseWorld",
116
+ generateSystemLibraries: true,
117
+ systemLibrariesDirectory: "experimental/systems"
114
118
  },
115
- excludeSystems: [
116
- // Worldgen currently does not support systems inheriting logic
117
- // from other contracts, so all parts of RegistrationSystem are named
118
- // System too to be included in the IBaseWorld interface.
119
- // However, IStoreRegistrationSystem overlaps with IStore if
120
- // included in IBaseWorld, so it needs to be excluded from worldgen.
121
- // TODO: add support for inheritance to worldgen
122
- // (see: https://github.com/latticexyz/mud/issues/631)
123
- "StoreRegistrationSystem"
124
- ]
125
- };
126
- var mud_config_default = defineWorld(configInput);
119
+ systems: {
120
+ AccessManagementSystem: {
121
+ name: "AccessManagement"
122
+ },
123
+ BalanceTransferSystem: {
124
+ name: "BalanceTransfer"
125
+ },
126
+ BatchCallSystem: {
127
+ name: "BatchCall"
128
+ },
129
+ RegistrationSystem: {
130
+ name: "Registration"
131
+ },
132
+ // abstract systems that are deployed as part of RegistrationSystem
133
+ ModuleInstallationSystem: {
134
+ name: "Registration"
135
+ },
136
+ StoreRegistrationSystem: {
137
+ name: "Registration"
138
+ },
139
+ WorldRegistrationSystem: {
140
+ name: "Registration"
141
+ }
142
+ }
143
+ });
144
+ var mud_config_default = tablesConfig;
127
145
 
128
146
  export {
129
- configInput,
147
+ tablesConfig,
148
+ systemsConfig,
130
149
  mud_config_default
131
150
  };
132
- //# sourceMappingURL=chunk-SGZK356L.js.map
151
+ //# sourceMappingURL=chunk-PZKG3J66.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { defineWorld } from \"./ts/config/v2/world\";\n\n// Ideally we'd use a single multi-namespace config here, but we don't want\n// to break imports from this package because the source location changed.\n//\n// Once we have more nuanced control over source paths and codegen for each\n// namespace, then we could probably migrate to multi-namespace config.\n//\n// Or some way to deeply merge multiple configs while retaining strong types.\n\n/** @internal */\nexport const tablesConfig = defineWorld({\n namespace: \"world\",\n userTypes: {\n ResourceId: { filePath: \"@latticexyz/store/src/ResourceId.sol\", type: \"bytes32\" },\n },\n tables: {\n NamespaceOwner: {\n schema: {\n namespaceId: \"ResourceId\",\n owner: \"address\",\n },\n key: [\"namespaceId\"],\n },\n ResourceAccess: {\n schema: {\n resourceId: \"ResourceId\",\n caller: \"address\",\n access: \"bool\",\n },\n key: [\"resourceId\", \"caller\"],\n },\n InstalledModules: {\n schema: {\n moduleAddress: \"address\",\n argumentsHash: \"bytes32\", // Hash of the params passed to the `install` function\n isInstalled: \"bool\",\n },\n key: [\"moduleAddress\", \"argumentsHash\"],\n },\n UserDelegationControl: {\n schema: {\n delegator: \"address\",\n delegatee: \"address\",\n delegationControlId: \"ResourceId\",\n },\n key: [\"delegator\", \"delegatee\"],\n },\n NamespaceDelegationControl: {\n schema: {\n namespaceId: \"ResourceId\",\n delegationControlId: \"ResourceId\",\n },\n key: [\"namespaceId\"],\n },\n Balances: {\n schema: {\n namespaceId: \"ResourceId\",\n balance: \"uint256\",\n },\n key: [\"namespaceId\"],\n },\n Systems: {\n schema: {\n systemId: \"ResourceId\",\n system: \"address\",\n publicAccess: \"bool\",\n },\n key: [\"systemId\"],\n codegen: {\n dataStruct: false,\n },\n },\n SystemRegistry: {\n schema: {\n system: \"address\",\n systemId: \"ResourceId\",\n },\n key: [\"system\"],\n },\n SystemHooks: {\n schema: {\n systemId: \"ResourceId\",\n value: \"bytes21[]\",\n },\n key: [\"systemId\"],\n },\n FunctionSelectors: {\n schema: {\n worldFunctionSelector: \"bytes4\",\n systemId: \"ResourceId\",\n systemFunctionSelector: \"bytes4\",\n },\n key: [\"worldFunctionSelector\"],\n codegen: {\n dataStruct: false,\n },\n },\n FunctionSignatures: {\n type: \"offchainTable\",\n schema: {\n functionSelector: \"bytes4\",\n functionSignature: \"string\",\n },\n key: [\"functionSelector\"],\n },\n InitModuleAddress: {\n schema: {\n value: \"address\",\n },\n key: [],\n },\n },\n});\n\n/** @internal */\nexport const systemsConfig = defineWorld({\n namespace: \"\",\n codegen: {\n worldImportPath: \"./src\",\n worldgenDirectory: \"interfaces\",\n worldInterfaceName: \"IBaseWorld\",\n generateSystemLibraries: true,\n systemLibrariesDirectory: \"experimental/systems\",\n },\n systems: {\n AccessManagementSystem: {\n name: \"AccessManagement\",\n },\n BalanceTransferSystem: {\n name: \"BalanceTransfer\",\n },\n BatchCallSystem: {\n name: \"BatchCall\",\n },\n RegistrationSystem: {\n name: \"Registration\",\n },\n // abstract systems that are deployed as part of RegistrationSystem\n ModuleInstallationSystem: {\n name: \"Registration\",\n },\n StoreRegistrationSystem: {\n name: \"Registration\",\n },\n WorldRegistrationSystem: {\n name: \"Registration\",\n },\n },\n});\n\nexport default tablesConfig;\n"],"mappings":"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","names":[]}
package/dist/internal.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mud_config_default
3
- } from "./chunk-SGZK356L.js";
3
+ } from "./chunk-PZKG3J66.js";
4
4
  import {
5
5
  defineNamespaces,
6
6
  defineWorld,
@@ -1,140 +1,17 @@
1
- /**
2
- * @internal
3
- */
4
- declare const configInput: {
5
- readonly namespace: "world";
6
- readonly codegen: {
7
- readonly worldImportPath: "./src";
8
- readonly worldgenDirectory: "interfaces";
9
- readonly worldInterfaceName: "IBaseWorld";
10
- };
11
- readonly userTypes: {
12
- readonly ResourceId: {
13
- readonly filePath: "@latticexyz/store/src/ResourceId.sol";
14
- readonly type: "bytes32";
15
- };
16
- };
17
- readonly tables: {
18
- readonly NamespaceOwner: {
19
- readonly schema: {
20
- readonly namespaceId: "ResourceId";
21
- readonly owner: "address";
22
- };
23
- readonly key: readonly ["namespaceId"];
24
- };
25
- readonly ResourceAccess: {
26
- readonly schema: {
27
- readonly resourceId: "ResourceId";
28
- readonly caller: "address";
29
- readonly access: "bool";
30
- };
31
- readonly key: readonly ["resourceId", "caller"];
32
- };
33
- readonly InstalledModules: {
34
- readonly schema: {
35
- readonly moduleAddress: "address";
36
- readonly argumentsHash: "bytes32";
37
- readonly isInstalled: "bool";
38
- };
39
- readonly key: readonly ["moduleAddress", "argumentsHash"];
40
- };
41
- readonly UserDelegationControl: {
42
- readonly schema: {
43
- readonly delegator: "address";
44
- readonly delegatee: "address";
45
- readonly delegationControlId: "ResourceId";
46
- };
47
- readonly key: readonly ["delegator", "delegatee"];
48
- };
49
- readonly NamespaceDelegationControl: {
50
- readonly schema: {
51
- readonly namespaceId: "ResourceId";
52
- readonly delegationControlId: "ResourceId";
53
- };
54
- readonly key: readonly ["namespaceId"];
55
- };
56
- readonly Balances: {
57
- readonly schema: {
58
- readonly namespaceId: "ResourceId";
59
- readonly balance: "uint256";
60
- };
61
- readonly key: readonly ["namespaceId"];
62
- };
63
- readonly Systems: {
64
- readonly schema: {
65
- readonly systemId: "ResourceId";
66
- readonly system: "address";
67
- readonly publicAccess: "bool";
68
- };
69
- readonly key: readonly ["systemId"];
70
- readonly codegen: {
71
- readonly dataStruct: false;
72
- };
73
- };
74
- readonly SystemRegistry: {
75
- readonly schema: {
76
- readonly system: "address";
77
- readonly systemId: "ResourceId";
78
- };
79
- readonly key: readonly ["system"];
80
- };
81
- readonly SystemHooks: {
82
- readonly schema: {
83
- readonly systemId: "ResourceId";
84
- readonly value: "bytes21[]";
85
- };
86
- readonly key: readonly ["systemId"];
87
- };
88
- readonly FunctionSelectors: {
89
- readonly schema: {
90
- readonly worldFunctionSelector: "bytes4";
91
- readonly systemId: "ResourceId";
92
- readonly systemFunctionSelector: "bytes4";
93
- };
94
- readonly key: readonly ["worldFunctionSelector"];
95
- readonly codegen: {
96
- readonly dataStruct: false;
97
- };
98
- };
99
- readonly FunctionSignatures: {
100
- readonly type: "offchainTable";
101
- readonly schema: {
102
- readonly functionSelector: "bytes4";
103
- readonly functionSignature: "string";
104
- };
105
- readonly key: readonly ["functionSelector"];
106
- };
107
- readonly InitModuleAddress: {
108
- readonly schema: {
109
- readonly value: "address";
110
- };
111
- readonly key: readonly [];
112
- };
113
- };
114
- readonly excludeSystems: readonly ["StoreRegistrationSystem"];
115
- };
116
- declare const _default: {
1
+ /** @internal */
2
+ declare const tablesConfig: {
117
3
  readonly namespace: string;
118
4
  readonly codegen: {
5
+ readonly outputDirectory: "codegen";
119
6
  readonly storeImportPath: "@latticexyz/store/src";
120
7
  readonly userTypesFilename: "common.sol";
121
- readonly outputDirectory: "codegen";
122
8
  readonly indexFilename: "index.sol";
123
- readonly worldInterfaceName: "IBaseWorld";
124
- readonly worldgenDirectory: "interfaces";
125
- readonly worldImportPath: "./src";
126
9
  } & {
127
- readonly worldInterfaceName: "IBaseWorld";
128
- readonly worldgenDirectory: "interfaces";
10
+ readonly worldInterfaceName: "IWorld";
11
+ readonly worldgenDirectory: "world";
129
12
  readonly systemLibrariesDirectory: "systems";
130
13
  readonly generateSystemLibraries: false;
131
- readonly worldImportPath: "./src";
132
- };
133
- readonly userTypes: {
134
- readonly ResourceId: {
135
- readonly filePath: "@latticexyz/store/src/ResourceId.sol";
136
- readonly type: "bytes32";
137
- };
14
+ readonly worldImportPath: "@latticexyz/world/src";
138
15
  };
139
16
  readonly tables: {
140
17
  readonly world__NamespaceOwner: {
@@ -491,6 +368,12 @@ declare const _default: {
491
368
  };
492
369
  };
493
370
  readonly sourceDirectory: "src";
371
+ readonly userTypes: {
372
+ readonly ResourceId: {
373
+ readonly filePath: "@latticexyz/store/src/ResourceId.sol";
374
+ readonly type: "bytes32";
375
+ };
376
+ };
494
377
  readonly enums: {};
495
378
  readonly multipleNamespaces: false;
496
379
  readonly enumValues: {};
@@ -856,7 +739,235 @@ declare const _default: {
856
739
  };
857
740
  };
858
741
  readonly systems: {};
859
- readonly excludeSystems: readonly ["StoreRegistrationSystem"];
742
+ readonly excludeSystems: readonly [];
743
+ readonly modules: readonly [];
744
+ readonly deploy: {
745
+ readonly postDeployScript: "PostDeploy";
746
+ readonly deploysDirectory: "./deploys";
747
+ readonly worldsFile: "./worlds.json";
748
+ readonly upgradeableWorldImplementation: false;
749
+ };
750
+ };
751
+ /** @internal */
752
+ declare const systemsConfig: {
753
+ readonly namespace: string;
754
+ readonly codegen: {
755
+ readonly outputDirectory: "codegen";
756
+ readonly storeImportPath: "@latticexyz/store/src";
757
+ readonly userTypesFilename: "common.sol";
758
+ readonly indexFilename: "index.sol";
759
+ readonly worldInterfaceName: "IBaseWorld";
760
+ readonly worldgenDirectory: "interfaces";
761
+ readonly systemLibrariesDirectory: "experimental/systems";
762
+ readonly generateSystemLibraries: true;
763
+ readonly worldImportPath: "./src";
764
+ } & {
765
+ readonly worldInterfaceName: "IBaseWorld";
766
+ readonly worldgenDirectory: "interfaces";
767
+ readonly systemLibrariesDirectory: "experimental/systems";
768
+ readonly generateSystemLibraries: true;
769
+ readonly worldImportPath: "./src";
770
+ };
771
+ readonly tables: {};
772
+ readonly sourceDirectory: "src";
773
+ readonly userTypes: {};
774
+ readonly enums: {};
775
+ readonly multipleNamespaces: false;
776
+ readonly enumValues: {};
777
+ readonly namespaces: {
778
+ readonly "": {
779
+ readonly label: "";
780
+ readonly namespace: string;
781
+ readonly tables: {};
782
+ readonly systems: {
783
+ readonly AccessManagementSystem: {
784
+ readonly label: "AccessManagementSystem";
785
+ readonly namespaceLabel: "";
786
+ readonly namespace: string;
787
+ readonly name: string;
788
+ readonly systemId: `0x${string}`;
789
+ readonly openAccess: true;
790
+ readonly accessList: readonly [];
791
+ readonly deploy: {
792
+ readonly disabled: false;
793
+ readonly registerWorldFunctions: true;
794
+ };
795
+ };
796
+ readonly BalanceTransferSystem: {
797
+ readonly label: "BalanceTransferSystem";
798
+ readonly namespaceLabel: "";
799
+ readonly namespace: string;
800
+ readonly name: string;
801
+ readonly systemId: `0x${string}`;
802
+ readonly openAccess: true;
803
+ readonly accessList: readonly [];
804
+ readonly deploy: {
805
+ readonly disabled: false;
806
+ readonly registerWorldFunctions: true;
807
+ };
808
+ };
809
+ readonly BatchCallSystem: {
810
+ readonly label: "BatchCallSystem";
811
+ readonly namespaceLabel: "";
812
+ readonly namespace: string;
813
+ readonly name: string;
814
+ readonly systemId: `0x${string}`;
815
+ readonly openAccess: true;
816
+ readonly accessList: readonly [];
817
+ readonly deploy: {
818
+ readonly disabled: false;
819
+ readonly registerWorldFunctions: true;
820
+ };
821
+ };
822
+ readonly RegistrationSystem: {
823
+ readonly label: "RegistrationSystem";
824
+ readonly namespaceLabel: "";
825
+ readonly namespace: string;
826
+ readonly name: string;
827
+ readonly systemId: `0x${string}`;
828
+ readonly openAccess: true;
829
+ readonly accessList: readonly [];
830
+ readonly deploy: {
831
+ readonly disabled: false;
832
+ readonly registerWorldFunctions: true;
833
+ };
834
+ };
835
+ readonly ModuleInstallationSystem: {
836
+ readonly label: "ModuleInstallationSystem";
837
+ readonly namespaceLabel: "";
838
+ readonly namespace: string;
839
+ readonly name: string;
840
+ readonly systemId: `0x${string}`;
841
+ readonly openAccess: true;
842
+ readonly accessList: readonly [];
843
+ readonly deploy: {
844
+ readonly disabled: false;
845
+ readonly registerWorldFunctions: true;
846
+ };
847
+ };
848
+ readonly StoreRegistrationSystem: {
849
+ readonly label: "StoreRegistrationSystem";
850
+ readonly namespaceLabel: "";
851
+ readonly namespace: string;
852
+ readonly name: string;
853
+ readonly systemId: `0x${string}`;
854
+ readonly openAccess: true;
855
+ readonly accessList: readonly [];
856
+ readonly deploy: {
857
+ readonly disabled: false;
858
+ readonly registerWorldFunctions: true;
859
+ };
860
+ };
861
+ readonly WorldRegistrationSystem: {
862
+ readonly label: "WorldRegistrationSystem";
863
+ readonly namespaceLabel: "";
864
+ readonly namespace: string;
865
+ readonly name: string;
866
+ readonly systemId: `0x${string}`;
867
+ readonly openAccess: true;
868
+ readonly accessList: readonly [];
869
+ readonly deploy: {
870
+ readonly disabled: false;
871
+ readonly registerWorldFunctions: true;
872
+ };
873
+ };
874
+ };
875
+ };
876
+ };
877
+ readonly systems: {
878
+ readonly AccessManagementSystem: {
879
+ readonly label: "AccessManagementSystem";
880
+ readonly namespaceLabel: string;
881
+ readonly namespace: string;
882
+ readonly name: string;
883
+ readonly systemId: `0x${string}`;
884
+ readonly openAccess: true;
885
+ readonly accessList: readonly [];
886
+ readonly deploy: {
887
+ readonly disabled: false;
888
+ readonly registerWorldFunctions: true;
889
+ };
890
+ };
891
+ readonly BalanceTransferSystem: {
892
+ readonly label: "BalanceTransferSystem";
893
+ readonly namespaceLabel: string;
894
+ readonly namespace: string;
895
+ readonly name: string;
896
+ readonly systemId: `0x${string}`;
897
+ readonly openAccess: true;
898
+ readonly accessList: readonly [];
899
+ readonly deploy: {
900
+ readonly disabled: false;
901
+ readonly registerWorldFunctions: true;
902
+ };
903
+ };
904
+ readonly BatchCallSystem: {
905
+ readonly label: "BatchCallSystem";
906
+ readonly namespaceLabel: string;
907
+ readonly namespace: string;
908
+ readonly name: string;
909
+ readonly systemId: `0x${string}`;
910
+ readonly openAccess: true;
911
+ readonly accessList: readonly [];
912
+ readonly deploy: {
913
+ readonly disabled: false;
914
+ readonly registerWorldFunctions: true;
915
+ };
916
+ };
917
+ readonly RegistrationSystem: {
918
+ readonly label: "RegistrationSystem";
919
+ readonly namespaceLabel: string;
920
+ readonly namespace: string;
921
+ readonly name: string;
922
+ readonly systemId: `0x${string}`;
923
+ readonly openAccess: true;
924
+ readonly accessList: readonly [];
925
+ readonly deploy: {
926
+ readonly disabled: false;
927
+ readonly registerWorldFunctions: true;
928
+ };
929
+ };
930
+ readonly ModuleInstallationSystem: {
931
+ readonly label: "ModuleInstallationSystem";
932
+ readonly namespaceLabel: string;
933
+ readonly namespace: string;
934
+ readonly name: string;
935
+ readonly systemId: `0x${string}`;
936
+ readonly openAccess: true;
937
+ readonly accessList: readonly [];
938
+ readonly deploy: {
939
+ readonly disabled: false;
940
+ readonly registerWorldFunctions: true;
941
+ };
942
+ };
943
+ readonly StoreRegistrationSystem: {
944
+ readonly label: "StoreRegistrationSystem";
945
+ readonly namespaceLabel: string;
946
+ readonly namespace: string;
947
+ readonly name: string;
948
+ readonly systemId: `0x${string}`;
949
+ readonly openAccess: true;
950
+ readonly accessList: readonly [];
951
+ readonly deploy: {
952
+ readonly disabled: false;
953
+ readonly registerWorldFunctions: true;
954
+ };
955
+ };
956
+ readonly WorldRegistrationSystem: {
957
+ readonly label: "WorldRegistrationSystem";
958
+ readonly namespaceLabel: string;
959
+ readonly namespace: string;
960
+ readonly name: string;
961
+ readonly systemId: `0x${string}`;
962
+ readonly openAccess: true;
963
+ readonly accessList: readonly [];
964
+ readonly deploy: {
965
+ readonly disabled: false;
966
+ readonly registerWorldFunctions: true;
967
+ };
968
+ };
969
+ };
970
+ readonly excludeSystems: readonly [];
860
971
  readonly modules: readonly [];
861
972
  readonly deploy: {
862
973
  readonly postDeployScript: "PostDeploy";
@@ -866,4 +977,4 @@ declare const _default: {
866
977
  };
867
978
  };
868
979
 
869
- export { configInput, _default as default };
980
+ export { tablesConfig as default, systemsConfig, tablesConfig };
@@ -1,12 +1,14 @@
1
1
  import {
2
- configInput,
3
- mud_config_default
4
- } from "./chunk-SGZK356L.js";
2
+ mud_config_default,
3
+ systemsConfig,
4
+ tablesConfig
5
+ } from "./chunk-PZKG3J66.js";
5
6
  import "./chunk-2W4TKC47.js";
6
7
  import "./chunk-XSBK355I.js";
7
8
  import "./chunk-5WRI5ZAA.js";
8
9
  export {
9
- configInput,
10
- mud_config_default as default
10
+ mud_config_default as default,
11
+ systemsConfig,
12
+ tablesConfig
11
13
  };
12
14
  //# sourceMappingURL=mud.config.js.map
package/dist/node.js CHANGED
@@ -390,10 +390,10 @@ function renderErrors(errors) {
390
390
  }
391
391
  function renderUserTypeFunction(contractFunction, userTypeName) {
392
392
  const { name, parameters, stateMutability, returnParameters } = contractFunction;
393
- const allParameters = [`${userTypeName} self`, ...parameters];
393
+ const args = [`${userTypeName} self`, ...parameters].map((arg) => arg.replace(/ calldata /, " memory "));
394
394
  const functionSignature = `
395
395
  function ${name}(
396
- ${renderArguments2(allParameters)}
396
+ ${renderArguments2(args)}
397
397
  ) internal
398
398
  ${stateMutability === "pure" ? "view" : stateMutability}
399
399
  ${renderReturnParameters2(returnParameters)}
@@ -407,10 +407,10 @@ function renderUserTypeFunction(contractFunction, userTypeName) {
407
407
  }
408
408
  function renderCallWrapperFunction(contractFunction, callingFromRootSystemErrorName) {
409
409
  const { name, parameters, stateMutability, returnParameters } = contractFunction;
410
- const functionArguments = [`CallWrapper memory self`, ...parameters];
410
+ const args = [`CallWrapper memory self`, ...parameters].map((arg) => arg.replace(/ calldata /, " memory "));
411
411
  const functionSignature = `
412
412
  function ${name}(
413
- ${renderArguments2(functionArguments)}
413
+ ${renderArguments2(args)}
414
414
  ) internal
415
415
  ${stateMutability === "pure" ? "view" : stateMutability}
416
416
  ${renderReturnParameters2(returnParameters)}
@@ -451,10 +451,10 @@ function renderRootCallWrapperFunction(contractFunction, namespace) {
451
451
  if (namespace === "" && stateMutability != "") {
452
452
  return "";
453
453
  }
454
- const functionArguments = ["RootCallWrapper memory self", ...parameters];
454
+ const args = ["RootCallWrapper memory self", ...parameters].map((arg) => arg.replace(/ calldata /, " memory "));
455
455
  const functionSignature = `
456
456
  function ${name}(
457
- ${renderArguments2(functionArguments)}
457
+ ${renderArguments2(args)}
458
458
  ) internal
459
459
  ${stateMutability === "pure" ? "view" : stateMutability}
460
460
  ${renderReturnParameters2(returnParameters)}
@@ -481,10 +481,11 @@ function renderRootCallWrapperFunction(contractFunction, namespace) {
481
481
  }
482
482
  function renderFunctionInterface(contractFunction) {
483
483
  const { name, parameters } = contractFunction;
484
+ const args = parameters.map((arg) => arg.replace(/ calldata /, " memory "));
484
485
  return `
485
486
  interface ${functionInterfaceName(contractFunction)} {
486
487
  function ${name}(
487
- ${renderArguments2(parameters)}
488
+ ${renderArguments2(args)}
488
489
  ) external;
489
490
  }
490
491
  `;
@@ -520,16 +521,17 @@ function renderWorldInterface({
520
521
  worldImportPath,
521
522
  imports: initialImports
522
523
  }) {
523
- const imports = [
524
- ...interfaceName === "IBaseWorld" ? [
525
- { symbol: "IStore", path: `${storeImportPath}/IStore.sol` },
526
- { symbol: "IWorldKernel", path: `${worldImportPath}/IWorldKernel.sol` }
527
- ] : [
528
- {
529
- symbol: "IBaseWorld",
530
- path: `${worldImportPath}/codegen/interfaces/IBaseWorld.sol`
531
- }
532
- ],
524
+ const imports = interfaceName === "IBaseWorld" ? [
525
+ { symbol: "IStore", path: `${storeImportPath}/IStore.sol` },
526
+ { symbol: "IWorldKernel", path: `${worldImportPath}/IWorldKernel.sol` },
527
+ // filter out IStoreRegistrationSystem as it's already included as part of IStore
528
+ // and having both causes compiler conflicts because of overlapping functions
529
+ ...initialImports.filter(({ symbol }) => symbol !== "IStoreRegistrationSystem")
530
+ ] : [
531
+ {
532
+ symbol: "IBaseWorld",
533
+ path: `${worldImportPath}/codegen/interfaces/IBaseWorld.sol`
534
+ },
533
535
  ...initialImports
534
536
  ];
535
537
  const importSymbols = imports.map(({ symbol }) => symbol);
@@ -7108,7 +7110,7 @@ async function worldgen({
7108
7110
  errors,
7109
7111
  imports: [systemImport, ...libraryImports],
7110
7112
  storeImportPath,
7111
- worldImportPath
7113
+ worldImportPath: config.codegen.worldImportPath.startsWith(".") ? "./" + path4.relative(path4.dirname(system.libraryPath), path4.join(rootDir, config.codegen.worldImportPath)) : config.codegen.worldImportPath
7112
7114
  });
7113
7115
  await formatAndWriteSolidity(systemLibrary, system.libraryPath, "Generated system library");
7114
7116
  }
@@ -7268,7 +7270,7 @@ var SystemsManifest = type3({
7268
7270
  });
7269
7271
  async function buildSystemsManifest(opts) {
7270
7272
  const { default: IBaseWorldAbi } = await import("./IBaseWorld.abi-L4NKVDJN.js");
7271
- const { default: SystemAbi } = await import("./System.abi-ENBBMWQJ.js");
7273
+ const { default: SystemAbi } = await import("./System.abi-QE5PR27M.js");
7272
7274
  const excludedAbi = formatAbi([
7273
7275
  ...IBaseWorldAbi.filter((item) => item.type === "event" || item.type === "error"),
7274
7276
  ...SystemAbi