@latticexyz/world 2.0.0-main-e0193e57 → 2.0.0-main-4c7fd3eb

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 (110) hide show
  1. package/dist/mud.config.js +1 -1
  2. package/dist/mud.config.js.map +1 -1
  3. package/out/AccessControl.sol/AccessControl.json +24 -24
  4. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +172 -172
  5. package/out/AddressArray.sol/AddressArray.json +1287 -1287
  6. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  7. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +237 -237
  8. package/out/Balances.sol/Balances.json +672 -672
  9. package/out/Bool.sol/Bool.json +580 -580
  10. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +168 -168
  11. package/out/CallboundDelegations.sol/CallboundDelegations.json +1053 -1053
  12. package/out/CoreModule.sol/CoreModule.json +583 -583
  13. package/out/CoreSystem.sol/CoreSystem.json +104 -104
  14. package/out/Create2.sol/Create2.json +27 -27
  15. package/out/Create2Factory.sol/Create2Factory.json +56 -56
  16. package/out/Delegation.sol/DelegationInstance.json +10 -10
  17. package/out/DelegationControl.sol/DelegationControl.json +29 -29
  18. package/out/Delegations.sol/Delegations.json +863 -863
  19. package/out/EphemeralRecordSystem.sol/EphemeralRecordSystem.json +82 -82
  20. package/out/FunctionSelectors.sol/FunctionSelectors.json +1214 -1214
  21. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +36 -36
  22. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +32 -32
  23. package/out/IBaseWorld.sol/IBaseWorld.json +96 -96
  24. package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
  25. package/out/IDelegationControl.sol/IDelegationControl.json +49 -49
  26. package/out/IModule.sol/IModule.json +82 -82
  27. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +27 -27
  28. package/out/ISystemHook.sol/ISystemHook.json +65 -65
  29. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  30. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +67 -67
  31. package/out/IWorldErrors.sol/IWorldErrors.json +81 -81
  32. package/out/IWorldFactory.sol/IWorldFactory.json +22 -22
  33. package/out/IWorldKernel.sol/IWorldCall.json +120 -120
  34. package/out/IWorldKernel.sol/IWorldKernel.json +120 -120
  35. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +120 -120
  36. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +121 -121
  37. package/out/InstalledModules.sol/InstalledModules.json +1392 -4897
  38. package/out/KeysInTable.sol/KeysInTable.json +5238 -5238
  39. package/out/KeysInTableHook.sol/KeysInTableHook.json +710 -710
  40. package/out/KeysInTableModule.sol/KeysInTableModule.json +454 -454
  41. package/out/KeysWithValue.sol/KeysWithValue.json +1281 -1281
  42. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +465 -465
  43. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +253 -253
  44. package/out/Module.sol/Module.json +28 -28
  45. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json +11 -0
  46. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json.d.ts +11 -0
  47. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +166 -143
  48. package/out/NamespaceOwner.sol/NamespaceOwner.json +672 -672
  49. package/out/ResourceAccess.sol/ResourceAccess.json +827 -827
  50. package/out/ResourceSelector.sol/ResourceSelector.json +7 -7
  51. package/out/ResourceType.sol/ResourceType.json +700 -700
  52. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +278 -278
  53. package/out/StoreRead.sol/StoreRead.json +2 -2
  54. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +407 -407
  55. package/out/System.sol/System.json +7 -7
  56. package/out/SystemCall.sol/SystemCall.json +60 -60
  57. package/out/SystemHook.sol/SystemHook.json +20 -20
  58. package/out/SystemHook.sol/SystemHookLib.json +20 -20
  59. package/out/SystemHooks.sol/SystemHooks.json +1251 -1251
  60. package/out/SystemRegistry.sol/SystemRegistry.json +708 -708
  61. package/out/Systems.sol/Systems.json +1211 -1211
  62. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +90 -90
  63. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +869 -869
  64. package/out/Types.sol/Types.json +8 -8
  65. package/out/UniqueEntity.sol/UniqueEntity.json +559 -559
  66. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +189 -189
  67. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +87 -87
  68. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +1391 -1391
  69. package/out/Utils.sol/Utils.json +74 -74
  70. package/out/World.sol/World.json +1465 -1465
  71. package/out/WorldContext.sol/WorldContextConsumer.json +347 -347
  72. package/out/WorldContext.sol/WorldContextProvider.json +347 -347
  73. package/out/WorldFactory.sol/WorldFactory.json +172 -172
  74. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +936 -936
  75. package/out/constants.sol/constants.json +34 -34
  76. package/out/getKeysInTable.sol/getKeysInTable.json +460 -460
  77. package/out/getKeysWithValue.sol/getKeysWithValue.json +119 -119
  78. package/out/getTargetTableSelector.sol/getTargetTableSelector.json +69 -69
  79. package/out/getUniqueEntity.sol/getUniqueEntity.json +82 -82
  80. package/out/hasKey.sol/hasKey.json +99 -99
  81. package/out/interfaces/IERC165.sol/IERC165.json +27 -27
  82. package/out/query.sol/query.json +980 -980
  83. package/out/requireInterface.sol/requireInterface.json +75 -75
  84. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  85. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +47 -47
  86. package/out/src/FieldLayout.sol/FieldLayoutLib.json +47 -47
  87. package/out/src/Hook.sol/HookInstance.json +9 -9
  88. package/out/src/Hook.sol/HookLib.json +9 -9
  89. package/out/src/IStore.sol/IStore.json +14 -14
  90. package/out/src/IStore.sol/IStoreData.json +14 -14
  91. package/out/src/IStore.sol/IStoreEphemeral.json +14 -14
  92. package/out/src/IStore.sol/IStoreRead.json +14 -14
  93. package/out/src/IStore.sol/IStoreRegistration.json +14 -14
  94. package/out/src/IStore.sol/IStoreWrite.json +14 -14
  95. package/out/src/IStoreHook.sol/IStoreHook.json +8 -8
  96. package/out/src/Memory.sol/Memory.json +4 -4
  97. package/out/src/Schema.sol/SchemaInstance.json +42 -42
  98. package/out/src/Schema.sol/SchemaLib.json +42 -42
  99. package/out/src/Slice.sol/SliceInstance.json +4 -4
  100. package/out/src/Slice.sol/SliceLib.json +4 -4
  101. package/out/src/StoreCore.sol/StoreCore.json +158 -158
  102. package/out/src/StoreCore.sol/StoreCoreInternal.json +158 -158
  103. package/out/src/StoreHook.sol/StoreHook.json +6 -6
  104. package/out/src/StoreHook.sol/StoreHookLib.json +6 -6
  105. package/out/src/Tables.sol/Tables.json +191 -206
  106. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +297 -297
  107. package/package.json +7 -7
  108. package/src/Tables.sol +1 -1
  109. package/src/World.sol +1 -1
  110. package/src/tables/InstalledModules.sol +4 -73
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-24XAL2ND.js";import"./chunk-OWSPJIEF.js";import"./chunk-JOQBBVRS.js";var t=e({worldImportPath:"../",worldgenDirectory:"interfaces",worldInterfaceName:"IBaseWorld",codegenDirectory:"",tables:{NamespaceOwner:{keySchema:{namespace:"bytes16"},valueSchema:{owner:"address"}},ResourceAccess:{keySchema:{resourceSelector:"bytes32",caller:"address"},valueSchema:{access:"bool"}},InstalledModules:{keySchema:{moduleName:"bytes16",argumentsHash:"bytes32"},valueSchema:{moduleAddress:"address"},dataStruct:!0},Delegations:{keySchema:{delegator:"address",delegatee:"address"},valueSchema:{delegationControlId:"bytes32"}},Balances:{directory:"modules/core/tables",keySchema:{namespace:"bytes16"},valueSchema:{balance:"uint256"}},Systems:{directory:"modules/core/tables",keySchema:{resourceSelector:"bytes32"},valueSchema:{system:"address",publicAccess:"bool"},dataStruct:!1},SystemRegistry:{directory:"modules/core/tables",keySchema:{system:"address"},valueSchema:{resourceSelector:"bytes32"}},SystemHooks:{directory:"modules/core/tables",keySchema:{resourceSelector:"bytes32"},valueSchema:"bytes21[]"},ResourceType:{directory:"modules/core/tables",keySchema:{resourceSelector:"bytes32"},valueSchema:{resourceType:"Resource"}},FunctionSelectors:{directory:"modules/core/tables",keySchema:{functionSelector:"bytes4"},valueSchema:{resourceSelector:"bytes32",systemFunctionSelector:"bytes4"},dataStruct:!1},KeysWithValue:{directory:"modules/keyswithvalue/tables",keySchema:{valueHash:"bytes32"},valueSchema:{keysWithValue:"bytes32[]"},tableIdArgument:!0},KeysInTable:{directory:"modules/keysintable/tables",keySchema:{sourceTable:"bytes32"},valueSchema:{keys0:"bytes32[]",keys1:"bytes32[]",keys2:"bytes32[]",keys3:"bytes32[]",keys4:"bytes32[]"}},UsedKeysIndex:{directory:"modules/keysintable/tables",keySchema:{sourceTable:"bytes32",keysHash:"bytes32"},valueSchema:{has:"bool",index:"uint40"},dataStruct:!1},UniqueEntity:{directory:"modules/uniqueentity/tables",keySchema:{},valueSchema:"uint256",tableIdArgument:!0,storeArgument:!0},CallboundDelegations:{directory:"modules/std-delegations/tables",keySchema:{delegator:"address",delegatee:"address",resourceSelector:"bytes32",funcSelectorAndArgsHash:"bytes32"},valueSchema:{availableCalls:"uint256"}},TimeboundDelegations:{directory:"modules/std-delegations/tables",keySchema:{delegator:"address",delegatee:"address"},valueSchema:{maxTimestamp:"uint256"}},Bool:{directory:"../test/tables",keySchema:{},valueSchema:{value:"bool"},tableIdArgument:!0},AddressArray:{directory:"../test/tables",valueSchema:"address[]",tableIdArgument:!0}},enums:{Resource:["NONE","NAMESPACE","TABLE","SYSTEM"]},excludeSystems:["UniqueEntitySystem","StoreRegistrationSystem","EphemeralRecordSystem"]});export{t as default};
1
+ import{a as e}from"./chunk-24XAL2ND.js";import"./chunk-OWSPJIEF.js";import"./chunk-JOQBBVRS.js";var t=e({worldImportPath:"../",worldgenDirectory:"interfaces",worldInterfaceName:"IBaseWorld",codegenDirectory:"",tables:{NamespaceOwner:{keySchema:{namespace:"bytes16"},valueSchema:{owner:"address"}},ResourceAccess:{keySchema:{resourceSelector:"bytes32",caller:"address"},valueSchema:{access:"bool"}},InstalledModules:{keySchema:{moduleName:"bytes16",argumentsHash:"bytes32"},valueSchema:{moduleAddress:"address"}},Delegations:{keySchema:{delegator:"address",delegatee:"address"},valueSchema:{delegationControlId:"bytes32"}},Balances:{directory:"modules/core/tables",keySchema:{namespace:"bytes16"},valueSchema:{balance:"uint256"}},Systems:{directory:"modules/core/tables",keySchema:{resourceSelector:"bytes32"},valueSchema:{system:"address",publicAccess:"bool"},dataStruct:!1},SystemRegistry:{directory:"modules/core/tables",keySchema:{system:"address"},valueSchema:{resourceSelector:"bytes32"}},SystemHooks:{directory:"modules/core/tables",keySchema:{resourceSelector:"bytes32"},valueSchema:"bytes21[]"},ResourceType:{directory:"modules/core/tables",keySchema:{resourceSelector:"bytes32"},valueSchema:{resourceType:"Resource"}},FunctionSelectors:{directory:"modules/core/tables",keySchema:{functionSelector:"bytes4"},valueSchema:{resourceSelector:"bytes32",systemFunctionSelector:"bytes4"},dataStruct:!1},KeysWithValue:{directory:"modules/keyswithvalue/tables",keySchema:{valueHash:"bytes32"},valueSchema:{keysWithValue:"bytes32[]"},tableIdArgument:!0},KeysInTable:{directory:"modules/keysintable/tables",keySchema:{sourceTable:"bytes32"},valueSchema:{keys0:"bytes32[]",keys1:"bytes32[]",keys2:"bytes32[]",keys3:"bytes32[]",keys4:"bytes32[]"}},UsedKeysIndex:{directory:"modules/keysintable/tables",keySchema:{sourceTable:"bytes32",keysHash:"bytes32"},valueSchema:{has:"bool",index:"uint40"},dataStruct:!1},UniqueEntity:{directory:"modules/uniqueentity/tables",keySchema:{},valueSchema:"uint256",tableIdArgument:!0,storeArgument:!0},CallboundDelegations:{directory:"modules/std-delegations/tables",keySchema:{delegator:"address",delegatee:"address",resourceSelector:"bytes32",funcSelectorAndArgsHash:"bytes32"},valueSchema:{availableCalls:"uint256"}},TimeboundDelegations:{directory:"modules/std-delegations/tables",keySchema:{delegator:"address",delegatee:"address"},valueSchema:{maxTimestamp:"uint256"}},Bool:{directory:"../test/tables",keySchema:{},valueSchema:{value:"bool"},tableIdArgument:!0},AddressArray:{directory:"../test/tables",valueSchema:"address[]",tableIdArgument:!0}},enums:{Resource:["NONE","NAMESPACE","TABLE","SYSTEM"]},excludeSystems:["UniqueEntitySystem","StoreRegistrationSystem","EphemeralRecordSystem"]});export{t as default};
2
2
  //# sourceMappingURL=mud.config.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { mudConfig } from \"./ts/register\";\n\nexport default mudConfig({\n worldImportPath: \"../\",\n worldgenDirectory: \"interfaces\",\n worldInterfaceName: \"IBaseWorld\",\n codegenDirectory: \"\",\n tables: {\n /************************************************************************\n *\n * CORE TABLES\n *\n ************************************************************************/\n NamespaceOwner: {\n keySchema: {\n namespace: \"bytes16\",\n },\n valueSchema: {\n owner: \"address\",\n },\n },\n ResourceAccess: {\n keySchema: {\n resourceSelector: \"bytes32\",\n caller: \"address\",\n },\n valueSchema: {\n access: \"bool\",\n },\n },\n InstalledModules: {\n keySchema: {\n moduleName: \"bytes16\",\n argumentsHash: \"bytes32\", // Hash of the params passed to the `install` function\n },\n valueSchema: {\n moduleAddress: \"address\",\n },\n // TODO: this is a workaround to use `getRecord` instead of `getField` in the autogen library,\n // to allow using the table before it is registered. This is because `getRecord` passes the valueSchema\n // to store, while `getField` loads it from storage. Remove this once we have support for passing the\n // valueSchema in `getField` too. (See https://github.com/latticexyz/mud/issues/444)\n dataStruct: true,\n },\n Delegations: {\n keySchema: {\n delegator: \"address\",\n delegatee: \"address\",\n },\n valueSchema: {\n delegationControlId: \"bytes32\",\n },\n },\n /************************************************************************\n *\n * MODULE TABLES\n *\n ************************************************************************/\n Balances: {\n directory: \"modules/core/tables\",\n keySchema: {\n namespace: \"bytes16\",\n },\n valueSchema: {\n balance: \"uint256\",\n },\n },\n Systems: {\n directory: \"modules/core/tables\",\n keySchema: {\n resourceSelector: \"bytes32\",\n },\n valueSchema: {\n system: \"address\",\n publicAccess: \"bool\",\n },\n dataStruct: false,\n },\n SystemRegistry: {\n directory: \"modules/core/tables\",\n keySchema: {\n system: \"address\",\n },\n valueSchema: {\n resourceSelector: \"bytes32\",\n },\n },\n SystemHooks: {\n directory: \"modules/core/tables\",\n keySchema: {\n resourceSelector: \"bytes32\",\n },\n valueSchema: \"bytes21[]\",\n },\n ResourceType: {\n directory: \"modules/core/tables\",\n keySchema: {\n resourceSelector: \"bytes32\",\n },\n valueSchema: {\n resourceType: \"Resource\",\n },\n },\n FunctionSelectors: {\n directory: \"modules/core/tables\",\n keySchema: {\n functionSelector: \"bytes4\",\n },\n valueSchema: {\n resourceSelector: \"bytes32\",\n systemFunctionSelector: \"bytes4\",\n },\n dataStruct: false,\n },\n KeysWithValue: {\n directory: \"modules/keyswithvalue/tables\",\n keySchema: {\n valueHash: \"bytes32\",\n },\n valueSchema: {\n keysWithValue: \"bytes32[]\", // For now only supports 1 key per value\n },\n tableIdArgument: true,\n },\n KeysInTable: {\n directory: \"modules/keysintable/tables\",\n keySchema: { sourceTable: \"bytes32\" },\n valueSchema: {\n keys0: \"bytes32[]\",\n keys1: \"bytes32[]\",\n keys2: \"bytes32[]\",\n keys3: \"bytes32[]\",\n keys4: \"bytes32[]\",\n },\n },\n UsedKeysIndex: {\n directory: \"modules/keysintable/tables\",\n keySchema: {\n sourceTable: \"bytes32\",\n keysHash: \"bytes32\",\n },\n valueSchema: { has: \"bool\", index: \"uint40\" },\n dataStruct: false,\n },\n UniqueEntity: {\n directory: \"modules/uniqueentity/tables\",\n keySchema: {},\n valueSchema: \"uint256\",\n tableIdArgument: true,\n storeArgument: true,\n },\n CallboundDelegations: {\n directory: \"modules/std-delegations/tables\",\n keySchema: {\n delegator: \"address\",\n delegatee: \"address\",\n resourceSelector: \"bytes32\",\n funcSelectorAndArgsHash: \"bytes32\",\n },\n valueSchema: {\n availableCalls: \"uint256\",\n },\n },\n TimeboundDelegations: {\n directory: \"modules/std-delegations/tables\",\n keySchema: {\n delegator: \"address\",\n delegatee: \"address\",\n },\n valueSchema: {\n maxTimestamp: \"uint256\",\n },\n },\n /************************************************************************\n *\n * TEST TABLES\n *\n ************************************************************************/\n Bool: {\n directory: \"../test/tables\",\n keySchema: {},\n valueSchema: {\n value: \"bool\",\n },\n tableIdArgument: true,\n },\n AddressArray: {\n directory: \"../test/tables\",\n valueSchema: \"address[]\",\n tableIdArgument: true,\n },\n },\n enums: {\n Resource: [\"NONE\", \"NAMESPACE\", \"TABLE\", \"SYSTEM\"],\n },\n\n excludeSystems: [\n // IUniqueEntitySystem is not part of the root namespace and\n // installed separately by UniqueEntityModule.\n // TODO: Move optional modules into a separate package\n // (see https://github.com/latticexyz/mud/pull/584)\n \"UniqueEntitySystem\",\n\n // Worldgen currently does not support systems inheriting logic\n // from other contracts, so all parts of CoreSystem are named\n // System too to be included in the IBaseWorld interface.\n // However, IStoreRegistrationSystem overlaps with IStore if\n // included in IBaseWorld, so it needs to be excluded from worldgen.\n // TODO: add support for inheritance to worldgen\n // (see: https://github.com/latticexyz/mud/issues/631)\n \"StoreRegistrationSystem\",\n // Similar overlap occurs for IEphemeralRecordSystem. IWorldEphemeral is included instead.\n \"EphemeralRecordSystem\",\n ],\n});\n"],"mappings":"gGAEA,IAAOA,EAAQC,EAAU,CACvB,gBAAiB,MACjB,kBAAmB,aACnB,mBAAoB,aACpB,iBAAkB,GAClB,OAAQ,CAMN,eAAgB,CACd,UAAW,CACT,UAAW,SACb,EACA,YAAa,CACX,MAAO,SACT,CACF,EACA,eAAgB,CACd,UAAW,CACT,iBAAkB,UAClB,OAAQ,SACV,EACA,YAAa,CACX,OAAQ,MACV,CACF,EACA,iBAAkB,CAChB,UAAW,CACT,WAAY,UACZ,cAAe,SACjB,EACA,YAAa,CACX,cAAe,SACjB,EAKA,WAAY,EACd,EACA,YAAa,CACX,UAAW,CACT,UAAW,UACX,UAAW,SACb,EACA,YAAa,CACX,oBAAqB,SACvB,CACF,EAMA,SAAU,CACR,UAAW,sBACX,UAAW,CACT,UAAW,SACb,EACA,YAAa,CACX,QAAS,SACX,CACF,EACA,QAAS,CACP,UAAW,sBACX,UAAW,CACT,iBAAkB,SACpB,EACA,YAAa,CACX,OAAQ,UACR,aAAc,MAChB,EACA,WAAY,EACd,EACA,eAAgB,CACd,UAAW,sBACX,UAAW,CACT,OAAQ,SACV,EACA,YAAa,CACX,iBAAkB,SACpB,CACF,EACA,YAAa,CACX,UAAW,sBACX,UAAW,CACT,iBAAkB,SACpB,EACA,YAAa,WACf,EACA,aAAc,CACZ,UAAW,sBACX,UAAW,CACT,iBAAkB,SACpB,EACA,YAAa,CACX,aAAc,UAChB,CACF,EACA,kBAAmB,CACjB,UAAW,sBACX,UAAW,CACT,iBAAkB,QACpB,EACA,YAAa,CACX,iBAAkB,UAClB,uBAAwB,QAC1B,EACA,WAAY,EACd,EACA,cAAe,CACb,UAAW,+BACX,UAAW,CACT,UAAW,SACb,EACA,YAAa,CACX,cAAe,WACjB,EACA,gBAAiB,EACnB,EACA,YAAa,CACX,UAAW,6BACX,UAAW,CAAE,YAAa,SAAU,EACpC,YAAa,CACX,MAAO,YACP,MAAO,YACP,MAAO,YACP,MAAO,YACP,MAAO,WACT,CACF,EACA,cAAe,CACb,UAAW,6BACX,UAAW,CACT,YAAa,UACb,SAAU,SACZ,EACA,YAAa,CAAE,IAAK,OAAQ,MAAO,QAAS,EAC5C,WAAY,EACd,EACA,aAAc,CACZ,UAAW,8BACX,UAAW,CAAC,EACZ,YAAa,UACb,gBAAiB,GACjB,cAAe,EACjB,EACA,qBAAsB,CACpB,UAAW,iCACX,UAAW,CACT,UAAW,UACX,UAAW,UACX,iBAAkB,UAClB,wBAAyB,SAC3B,EACA,YAAa,CACX,eAAgB,SAClB,CACF,EACA,qBAAsB,CACpB,UAAW,iCACX,UAAW,CACT,UAAW,UACX,UAAW,SACb,EACA,YAAa,CACX,aAAc,SAChB,CACF,EAMA,KAAM,CACJ,UAAW,iBACX,UAAW,CAAC,EACZ,YAAa,CACX,MAAO,MACT,EACA,gBAAiB,EACnB,EACA,aAAc,CACZ,UAAW,iBACX,YAAa,YACb,gBAAiB,EACnB,CACF,EACA,MAAO,CACL,SAAU,CAAC,OAAQ,YAAa,QAAS,QAAQ,CACnD,EAEA,eAAgB,CAKd,qBASA,0BAEA,uBACF,CACF,CAAC","names":["mud_config_default","mudConfig"]}
1
+ {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { mudConfig } from \"./ts/register\";\n\nexport default mudConfig({\n worldImportPath: \"../\",\n worldgenDirectory: \"interfaces\",\n worldInterfaceName: \"IBaseWorld\",\n codegenDirectory: \"\",\n tables: {\n /************************************************************************\n *\n * CORE TABLES\n *\n ************************************************************************/\n NamespaceOwner: {\n keySchema: {\n namespace: \"bytes16\",\n },\n valueSchema: {\n owner: \"address\",\n },\n },\n ResourceAccess: {\n keySchema: {\n resourceSelector: \"bytes32\",\n caller: \"address\",\n },\n valueSchema: {\n access: \"bool\",\n },\n },\n InstalledModules: {\n keySchema: {\n moduleName: \"bytes16\",\n argumentsHash: \"bytes32\", // Hash of the params passed to the `install` function\n },\n valueSchema: {\n moduleAddress: \"address\",\n },\n },\n Delegations: {\n keySchema: {\n delegator: \"address\",\n delegatee: \"address\",\n },\n valueSchema: {\n delegationControlId: \"bytes32\",\n },\n },\n /************************************************************************\n *\n * MODULE TABLES\n *\n ************************************************************************/\n Balances: {\n directory: \"modules/core/tables\",\n keySchema: {\n namespace: \"bytes16\",\n },\n valueSchema: {\n balance: \"uint256\",\n },\n },\n Systems: {\n directory: \"modules/core/tables\",\n keySchema: {\n resourceSelector: \"bytes32\",\n },\n valueSchema: {\n system: \"address\",\n publicAccess: \"bool\",\n },\n dataStruct: false,\n },\n SystemRegistry: {\n directory: \"modules/core/tables\",\n keySchema: {\n system: \"address\",\n },\n valueSchema: {\n resourceSelector: \"bytes32\",\n },\n },\n SystemHooks: {\n directory: \"modules/core/tables\",\n keySchema: {\n resourceSelector: \"bytes32\",\n },\n valueSchema: \"bytes21[]\",\n },\n ResourceType: {\n directory: \"modules/core/tables\",\n keySchema: {\n resourceSelector: \"bytes32\",\n },\n valueSchema: {\n resourceType: \"Resource\",\n },\n },\n FunctionSelectors: {\n directory: \"modules/core/tables\",\n keySchema: {\n functionSelector: \"bytes4\",\n },\n valueSchema: {\n resourceSelector: \"bytes32\",\n systemFunctionSelector: \"bytes4\",\n },\n dataStruct: false,\n },\n KeysWithValue: {\n directory: \"modules/keyswithvalue/tables\",\n keySchema: {\n valueHash: \"bytes32\",\n },\n valueSchema: {\n keysWithValue: \"bytes32[]\", // For now only supports 1 key per value\n },\n tableIdArgument: true,\n },\n KeysInTable: {\n directory: \"modules/keysintable/tables\",\n keySchema: { sourceTable: \"bytes32\" },\n valueSchema: {\n keys0: \"bytes32[]\",\n keys1: \"bytes32[]\",\n keys2: \"bytes32[]\",\n keys3: \"bytes32[]\",\n keys4: \"bytes32[]\",\n },\n },\n UsedKeysIndex: {\n directory: \"modules/keysintable/tables\",\n keySchema: {\n sourceTable: \"bytes32\",\n keysHash: \"bytes32\",\n },\n valueSchema: { has: \"bool\", index: \"uint40\" },\n dataStruct: false,\n },\n UniqueEntity: {\n directory: \"modules/uniqueentity/tables\",\n keySchema: {},\n valueSchema: \"uint256\",\n tableIdArgument: true,\n storeArgument: true,\n },\n CallboundDelegations: {\n directory: \"modules/std-delegations/tables\",\n keySchema: {\n delegator: \"address\",\n delegatee: \"address\",\n resourceSelector: \"bytes32\",\n funcSelectorAndArgsHash: \"bytes32\",\n },\n valueSchema: {\n availableCalls: \"uint256\",\n },\n },\n TimeboundDelegations: {\n directory: \"modules/std-delegations/tables\",\n keySchema: {\n delegator: \"address\",\n delegatee: \"address\",\n },\n valueSchema: {\n maxTimestamp: \"uint256\",\n },\n },\n /************************************************************************\n *\n * TEST TABLES\n *\n ************************************************************************/\n Bool: {\n directory: \"../test/tables\",\n keySchema: {},\n valueSchema: {\n value: \"bool\",\n },\n tableIdArgument: true,\n },\n AddressArray: {\n directory: \"../test/tables\",\n valueSchema: \"address[]\",\n tableIdArgument: true,\n },\n },\n enums: {\n Resource: [\"NONE\", \"NAMESPACE\", \"TABLE\", \"SYSTEM\"],\n },\n\n excludeSystems: [\n // IUniqueEntitySystem is not part of the root namespace and\n // installed separately by UniqueEntityModule.\n // TODO: Move optional modules into a separate package\n // (see https://github.com/latticexyz/mud/pull/584)\n \"UniqueEntitySystem\",\n\n // Worldgen currently does not support systems inheriting logic\n // from other contracts, so all parts of CoreSystem are named\n // System too to be included in the IBaseWorld interface.\n // However, IStoreRegistrationSystem overlaps with IStore if\n // included in IBaseWorld, so it needs to be excluded from worldgen.\n // TODO: add support for inheritance to worldgen\n // (see: https://github.com/latticexyz/mud/issues/631)\n \"StoreRegistrationSystem\",\n // Similar overlap occurs for IEphemeralRecordSystem. IWorldEphemeral is included instead.\n \"EphemeralRecordSystem\",\n ],\n});\n"],"mappings":"gGAEA,IAAOA,EAAQC,EAAU,CACvB,gBAAiB,MACjB,kBAAmB,aACnB,mBAAoB,aACpB,iBAAkB,GAClB,OAAQ,CAMN,eAAgB,CACd,UAAW,CACT,UAAW,SACb,EACA,YAAa,CACX,MAAO,SACT,CACF,EACA,eAAgB,CACd,UAAW,CACT,iBAAkB,UAClB,OAAQ,SACV,EACA,YAAa,CACX,OAAQ,MACV,CACF,EACA,iBAAkB,CAChB,UAAW,CACT,WAAY,UACZ,cAAe,SACjB,EACA,YAAa,CACX,cAAe,SACjB,CACF,EACA,YAAa,CACX,UAAW,CACT,UAAW,UACX,UAAW,SACb,EACA,YAAa,CACX,oBAAqB,SACvB,CACF,EAMA,SAAU,CACR,UAAW,sBACX,UAAW,CACT,UAAW,SACb,EACA,YAAa,CACX,QAAS,SACX,CACF,EACA,QAAS,CACP,UAAW,sBACX,UAAW,CACT,iBAAkB,SACpB,EACA,YAAa,CACX,OAAQ,UACR,aAAc,MAChB,EACA,WAAY,EACd,EACA,eAAgB,CACd,UAAW,sBACX,UAAW,CACT,OAAQ,SACV,EACA,YAAa,CACX,iBAAkB,SACpB,CACF,EACA,YAAa,CACX,UAAW,sBACX,UAAW,CACT,iBAAkB,SACpB,EACA,YAAa,WACf,EACA,aAAc,CACZ,UAAW,sBACX,UAAW,CACT,iBAAkB,SACpB,EACA,YAAa,CACX,aAAc,UAChB,CACF,EACA,kBAAmB,CACjB,UAAW,sBACX,UAAW,CACT,iBAAkB,QACpB,EACA,YAAa,CACX,iBAAkB,UAClB,uBAAwB,QAC1B,EACA,WAAY,EACd,EACA,cAAe,CACb,UAAW,+BACX,UAAW,CACT,UAAW,SACb,EACA,YAAa,CACX,cAAe,WACjB,EACA,gBAAiB,EACnB,EACA,YAAa,CACX,UAAW,6BACX,UAAW,CAAE,YAAa,SAAU,EACpC,YAAa,CACX,MAAO,YACP,MAAO,YACP,MAAO,YACP,MAAO,YACP,MAAO,WACT,CACF,EACA,cAAe,CACb,UAAW,6BACX,UAAW,CACT,YAAa,UACb,SAAU,SACZ,EACA,YAAa,CAAE,IAAK,OAAQ,MAAO,QAAS,EAC5C,WAAY,EACd,EACA,aAAc,CACZ,UAAW,8BACX,UAAW,CAAC,EACZ,YAAa,UACb,gBAAiB,GACjB,cAAe,EACjB,EACA,qBAAsB,CACpB,UAAW,iCACX,UAAW,CACT,UAAW,UACX,UAAW,UACX,iBAAkB,UAClB,wBAAyB,SAC3B,EACA,YAAa,CACX,eAAgB,SAClB,CACF,EACA,qBAAsB,CACpB,UAAW,iCACX,UAAW,CACT,UAAW,UACX,UAAW,SACb,EACA,YAAa,CACX,aAAc,SAChB,CACF,EAMA,KAAM,CACJ,UAAW,iBACX,UAAW,CAAC,EACZ,YAAa,CACX,MAAO,MACT,EACA,gBAAiB,EACnB,EACA,aAAc,CACZ,UAAW,iBACX,YAAa,YACb,gBAAiB,EACnB,CACF,EACA,MAAO,CACL,SAAU,CAAC,OAAQ,YAAa,QAAS,QAAQ,CACnD,EAEA,eAAgB,CAKd,qBASA,0BAEA,uBACF,CACF,CAAC","names":["mud_config_default","mudConfig"]}
@@ -349,13 +349,13 @@
349
349
  31737
350
350
  ],
351
351
  "IWorldErrors": [
352
- 33936
352
+ 33935
353
353
  ],
354
354
  "NamespaceOwner": [
355
- 53674
355
+ 53388
356
356
  ],
357
357
  "ResourceAccess": [
358
- 54333
358
+ 54047
359
359
  ],
360
360
  "ResourceSelector": [
361
361
  32119
@@ -411,7 +411,7 @@
411
411
  "file": "./interfaces/IWorldErrors.sol",
412
412
  "nameLocation": "-1:-1:-1",
413
413
  "scope": 31738,
414
- "sourceUnit": 33937,
414
+ "sourceUnit": 33936,
415
415
  "symbolAliases": [
416
416
  {
417
417
  "foreign": {
@@ -419,7 +419,7 @@
419
419
  "name": "IWorldErrors",
420
420
  "nodeType": "Identifier",
421
421
  "overloadedDeclarations": [],
422
- "referencedDeclaration": 33936,
422
+ "referencedDeclaration": 33935,
423
423
  "src": "126:12:60",
424
424
  "typeDescriptions": {}
425
425
  },
@@ -437,7 +437,7 @@
437
437
  "file": "./tables/ResourceAccess.sol",
438
438
  "nameLocation": "-1:-1:-1",
439
439
  "scope": 31738,
440
- "sourceUnit": 54343,
440
+ "sourceUnit": 54057,
441
441
  "symbolAliases": [
442
442
  {
443
443
  "foreign": {
@@ -445,7 +445,7 @@
445
445
  "name": "ResourceAccess",
446
446
  "nodeType": "Identifier",
447
447
  "overloadedDeclarations": [],
448
- "referencedDeclaration": 54333,
448
+ "referencedDeclaration": 54047,
449
449
  "src": "189:14:60",
450
450
  "typeDescriptions": {}
451
451
  },
@@ -463,7 +463,7 @@
463
463
  "file": "./tables/NamespaceOwner.sol",
464
464
  "nameLocation": "-1:-1:-1",
465
465
  "scope": 31738,
466
- "sourceUnit": 53675,
466
+ "sourceUnit": 53389,
467
467
  "symbolAliases": [
468
468
  {
469
469
  "foreign": {
@@ -471,7 +471,7 @@
471
471
  "name": "NamespaceOwner",
472
472
  "nodeType": "Identifier",
473
473
  "overloadedDeclarations": [],
474
- "referencedDeclaration": 53674,
474
+ "referencedDeclaration": 53388,
475
475
  "src": "251:14:60",
476
476
  "typeDescriptions": {}
477
477
  },
@@ -705,10 +705,10 @@
705
705
  "name": "ResourceAccess",
706
706
  "nodeType": "Identifier",
707
707
  "overloadedDeclarations": [],
708
- "referencedDeclaration": 54333,
708
+ "referencedDeclaration": 54047,
709
709
  "src": "656:14:60",
710
710
  "typeDescriptions": {
711
- "typeIdentifier": "t_type$_t_contract$_ResourceAccess_$54333_$",
711
+ "typeIdentifier": "t_type$_t_contract$_ResourceAccess_$54047_$",
712
712
  "typeString": "type(library ResourceAccess)"
713
713
  }
714
714
  },
@@ -719,7 +719,7 @@
719
719
  "lValueRequested": false,
720
720
  "memberName": "get",
721
721
  "nodeType": "MemberAccess",
722
- "referencedDeclaration": 53983,
722
+ "referencedDeclaration": 53697,
723
723
  "src": "656:18:60",
724
724
  "typeDescriptions": {
725
725
  "typeIdentifier": "t_function_internal_view$_t_bytes32_$_t_address_$returns$_t_bool_$",
@@ -792,10 +792,10 @@
792
792
  "name": "ResourceAccess",
793
793
  "nodeType": "Identifier",
794
794
  "overloadedDeclarations": [],
795
- "referencedDeclaration": 54333,
795
+ "referencedDeclaration": 54047,
796
796
  "src": "769:14:60",
797
797
  "typeDescriptions": {
798
- "typeIdentifier": "t_type$_t_contract$_ResourceAccess_$54333_$",
798
+ "typeIdentifier": "t_type$_t_contract$_ResourceAccess_$54047_$",
799
799
  "typeString": "type(library ResourceAccess)"
800
800
  }
801
801
  },
@@ -806,7 +806,7 @@
806
806
  "lValueRequested": false,
807
807
  "memberName": "get",
808
808
  "nodeType": "MemberAccess",
809
- "referencedDeclaration": 53983,
809
+ "referencedDeclaration": 53697,
810
810
  "src": "769:18:60",
811
811
  "typeDescriptions": {
812
812
  "typeIdentifier": "t_function_internal_view$_t_bytes32_$_t_address_$returns$_t_bool_$",
@@ -1129,10 +1129,10 @@
1129
1129
  "name": "IWorldErrors",
1130
1130
  "nodeType": "Identifier",
1131
1131
  "overloadedDeclarations": [],
1132
- "referencedDeclaration": 33936,
1132
+ "referencedDeclaration": 33935,
1133
1133
  "src": "1228:12:60",
1134
1134
  "typeDescriptions": {
1135
- "typeIdentifier": "t_type$_t_contract$_IWorldErrors_$33936_$",
1135
+ "typeIdentifier": "t_type$_t_contract$_IWorldErrors_$33935_$",
1136
1136
  "typeString": "type(contract IWorldErrors)"
1137
1137
  }
1138
1138
  },
@@ -1143,7 +1143,7 @@
1143
1143
  "lValueRequested": false,
1144
1144
  "memberName": "AccessDenied",
1145
1145
  "nodeType": "MemberAccess",
1146
- "referencedDeclaration": 33901,
1146
+ "referencedDeclaration": 33900,
1147
1147
  "src": "1228:25:60",
1148
1148
  "typeDescriptions": {
1149
1149
  "typeIdentifier": "t_function_error_pure$_t_string_memory_ptr_$_t_address_$returns$__$",
@@ -1340,10 +1340,10 @@
1340
1340
  "name": "NamespaceOwner",
1341
1341
  "nodeType": "Identifier",
1342
1342
  "overloadedDeclarations": [],
1343
- "referencedDeclaration": 53674,
1343
+ "referencedDeclaration": 53388,
1344
1344
  "src": "1530:14:60",
1345
1345
  "typeDescriptions": {
1346
- "typeIdentifier": "t_type$_t_contract$_NamespaceOwner_$53674_$",
1346
+ "typeIdentifier": "t_type$_t_contract$_NamespaceOwner_$53388_$",
1347
1347
  "typeString": "type(library NamespaceOwner)"
1348
1348
  }
1349
1349
  },
@@ -1354,7 +1354,7 @@
1354
1354
  "lValueRequested": false,
1355
1355
  "memberName": "get",
1356
1356
  "nodeType": "MemberAccess",
1357
- "referencedDeclaration": 53410,
1357
+ "referencedDeclaration": 53124,
1358
1358
  "src": "1530:18:60",
1359
1359
  "typeDescriptions": {
1360
1360
  "typeIdentifier": "t_function_internal_view$_t_bytes16_$returns$_t_address_$",
@@ -1481,10 +1481,10 @@
1481
1481
  "name": "IWorldErrors",
1482
1482
  "nodeType": "Identifier",
1483
1483
  "overloadedDeclarations": [],
1484
- "referencedDeclaration": 33936,
1484
+ "referencedDeclaration": 33935,
1485
1485
  "src": "1608:12:60",
1486
1486
  "typeDescriptions": {
1487
- "typeIdentifier": "t_type$_t_contract$_IWorldErrors_$33936_$",
1487
+ "typeIdentifier": "t_type$_t_contract$_IWorldErrors_$33935_$",
1488
1488
  "typeString": "type(contract IWorldErrors)"
1489
1489
  }
1490
1490
  },
@@ -1495,7 +1495,7 @@
1495
1495
  "lValueRequested": false,
1496
1496
  "memberName": "AccessDenied",
1497
1497
  "nodeType": "MemberAccess",
1498
- "referencedDeclaration": 33901,
1498
+ "referencedDeclaration": 33900,
1499
1499
  "src": "1608:25:60",
1500
1500
  "typeDescriptions": {
1501
1501
  "typeIdentifier": "t_function_error_pure$_t_string_memory_ptr_$_t_address_$returns$__$",