@latticexyz/world 2.0.0-main-d66e2bc4 → 2.0.0-main-95f64c85
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.
- package/dist/mud.config.d.ts +1 -1
- package/dist/mud.config.js +1 -1
- package/dist/mud.config.js.map +1 -1
- package/mud.config.ts +1 -1
- package/out/AccessControl.t.sol/AccessControlTest.json +1 -1
- package/out/BatchCall.t.sol/BatchCallTest.json +1 -1
- package/out/BatchCall.t.sol/TestSystem.json +1 -1
- package/out/Factories.t.sol/FactoriesTest.json +1 -1
- package/out/FunctionSelectors.sol/FunctionSelectors.json +1 -1
- package/out/InitModule.sol/InitModule.json +1 -1
- package/out/InitModule.t.sol/InitModuleTest.json +1 -1
- package/out/InitModule.t.sol/WorldMock.json +1 -1
- package/out/InitSystems.t.sol/LimitedCallContextTest.json +1 -1
- package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
- package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
- package/out/System.t.sol/SystemTest.json +1 -1
- package/out/System.t.sol/TestSystem.json +1 -1
- package/out/Utils.t.sol/UtilsTest.json +1 -1
- package/out/Utils.t.sol/UtilsTestSystem.json +1 -1
- package/out/World.sol/World.json +1 -1
- package/out/World.t.sol/EchoSystemHook.json +1 -1
- package/out/World.t.sol/IWorldTestSystem.json +1 -1
- package/out/World.t.sol/PayableFallbackSystem.json +1 -1
- package/out/World.t.sol/RevertSystemHook.json +1 -1
- package/out/World.t.sol/WorldTest.json +1 -1
- package/out/World.t.sol/WorldTestSystem.json +1 -1
- package/out/WorldBalance.t.sol/WorldBalanceTest.json +1 -1
- package/out/WorldBalance.t.sol/WorldBalanceTestSystem.json +1 -1
- package/out/WorldDynamicUpdate.t.sol/UpdateInDynamicFieldTest.json +1 -1
- package/out/WorldFactory.sol/WorldFactory.json +1 -1
- package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
- package/package.json +7 -7
- package/src/codegen/tables/FunctionSelectors.sol +39 -31
package/dist/mud.config.d.ts
CHANGED
package/dist/mud.config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-YIYNKIWV.js";import"./chunk-62QOYDQ2.js";var a=e({worldImportPath:"../../",worldgenDirectory:"interfaces",worldInterfaceName:"IBaseWorld",namespace:"world",userTypes:{ResourceId:{filePath:"@latticexyz/store/src/ResourceId.sol",internalType:"bytes32"}},tables:{NamespaceOwner:{keySchema:{namespaceId:"ResourceId"},valueSchema:{owner:"address"}},ResourceAccess:{keySchema:{resourceId:"ResourceId",caller:"address"},valueSchema:{access:"bool"}},InstalledModules:{keySchema:{moduleAddress:"address",argumentsHash:"bytes32"},valueSchema:{isInstalled:"bool"}},UserDelegationControl:{keySchema:{delegator:"address",delegatee:"address"},valueSchema:{delegationControlId:"ResourceId"}},NamespaceDelegationControl:{keySchema:{namespaceId:"ResourceId"},valueSchema:{delegationControlId:"ResourceId"}},Balances:{keySchema:{namespaceId:"ResourceId"},valueSchema:{balance:"uint256"}},Systems:{keySchema:{systemId:"ResourceId"},valueSchema:{system:"address",publicAccess:"bool"},dataStruct:!1},SystemRegistry:{keySchema:{system:"address"},valueSchema:{systemId:"ResourceId"}},SystemHooks:{keySchema:{systemId:"ResourceId"},valueSchema:"bytes21[]"},FunctionSelectors:{keySchema:{
|
|
1
|
+
import{a as e}from"./chunk-YIYNKIWV.js";import"./chunk-62QOYDQ2.js";var a=e({worldImportPath:"../../",worldgenDirectory:"interfaces",worldInterfaceName:"IBaseWorld",namespace:"world",userTypes:{ResourceId:{filePath:"@latticexyz/store/src/ResourceId.sol",internalType:"bytes32"}},tables:{NamespaceOwner:{keySchema:{namespaceId:"ResourceId"},valueSchema:{owner:"address"}},ResourceAccess:{keySchema:{resourceId:"ResourceId",caller:"address"},valueSchema:{access:"bool"}},InstalledModules:{keySchema:{moduleAddress:"address",argumentsHash:"bytes32"},valueSchema:{isInstalled:"bool"}},UserDelegationControl:{keySchema:{delegator:"address",delegatee:"address"},valueSchema:{delegationControlId:"ResourceId"}},NamespaceDelegationControl:{keySchema:{namespaceId:"ResourceId"},valueSchema:{delegationControlId:"ResourceId"}},Balances:{keySchema:{namespaceId:"ResourceId"},valueSchema:{balance:"uint256"}},Systems:{keySchema:{systemId:"ResourceId"},valueSchema:{system:"address",publicAccess:"bool"},dataStruct:!1},SystemRegistry:{keySchema:{system:"address"},valueSchema:{systemId:"ResourceId"}},SystemHooks:{keySchema:{systemId:"ResourceId"},valueSchema:"bytes21[]"},FunctionSelectors:{keySchema:{worldFunctionSelector:"bytes4"},valueSchema:{systemId:"ResourceId",systemFunctionSelector:"bytes4"},dataStruct:!1},FunctionSignatures:{keySchema:{functionSelector:"bytes4"},valueSchema:{functionSignature:"string"},offchainOnly:!0},InitModuleAddress:{keySchema:{},valueSchema:"address"}},excludeSystems:["StoreRegistrationSystem"]});export{a as default};
|
|
2
2
|
//# sourceMappingURL=mud.config.js.map
|
package/dist/mud.config.js.map
CHANGED
|
@@ -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 namespace: \"world\" as const, // NOTE: this namespace is only used for tables, the core system is deployed in the root namespace.\n userTypes: {\n ResourceId: { filePath: \"@latticexyz/store/src/ResourceId.sol\", internalType: \"bytes32\" },\n },\n tables: {\n NamespaceOwner: {\n keySchema: {\n namespaceId: \"ResourceId\",\n },\n valueSchema: {\n owner: \"address\",\n },\n },\n ResourceAccess: {\n keySchema: {\n resourceId: \"ResourceId\",\n caller: \"address\",\n },\n valueSchema: {\n access: \"bool\",\n },\n },\n InstalledModules: {\n keySchema: {\n moduleAddress: \"address\",\n argumentsHash: \"bytes32\", // Hash of the params passed to the `install` function\n },\n valueSchema: {\n isInstalled: \"bool\",\n },\n },\n UserDelegationControl: {\n keySchema: {\n delegator: \"address\",\n delegatee: \"address\",\n },\n valueSchema: {\n delegationControlId: \"ResourceId\",\n },\n },\n NamespaceDelegationControl: {\n keySchema: {\n namespaceId: \"ResourceId\",\n },\n valueSchema: {\n delegationControlId: \"ResourceId\",\n },\n },\n Balances: {\n keySchema: {\n namespaceId: \"ResourceId\",\n },\n valueSchema: {\n balance: \"uint256\",\n },\n },\n Systems: {\n keySchema: {\n systemId: \"ResourceId\",\n },\n valueSchema: {\n system: \"address\",\n publicAccess: \"bool\",\n },\n dataStruct: false,\n },\n SystemRegistry: {\n keySchema: {\n system: \"address\",\n },\n valueSchema: {\n systemId: \"ResourceId\",\n },\n },\n SystemHooks: {\n keySchema: {\n systemId: \"ResourceId\",\n },\n valueSchema: \"bytes21[]\",\n },\n FunctionSelectors: {\n keySchema: {\n
|
|
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 namespace: \"world\" as const, // NOTE: this namespace is only used for tables, the core system is deployed in the root namespace.\n userTypes: {\n ResourceId: { filePath: \"@latticexyz/store/src/ResourceId.sol\", internalType: \"bytes32\" },\n },\n tables: {\n NamespaceOwner: {\n keySchema: {\n namespaceId: \"ResourceId\",\n },\n valueSchema: {\n owner: \"address\",\n },\n },\n ResourceAccess: {\n keySchema: {\n resourceId: \"ResourceId\",\n caller: \"address\",\n },\n valueSchema: {\n access: \"bool\",\n },\n },\n InstalledModules: {\n keySchema: {\n moduleAddress: \"address\",\n argumentsHash: \"bytes32\", // Hash of the params passed to the `install` function\n },\n valueSchema: {\n isInstalled: \"bool\",\n },\n },\n UserDelegationControl: {\n keySchema: {\n delegator: \"address\",\n delegatee: \"address\",\n },\n valueSchema: {\n delegationControlId: \"ResourceId\",\n },\n },\n NamespaceDelegationControl: {\n keySchema: {\n namespaceId: \"ResourceId\",\n },\n valueSchema: {\n delegationControlId: \"ResourceId\",\n },\n },\n Balances: {\n keySchema: {\n namespaceId: \"ResourceId\",\n },\n valueSchema: {\n balance: \"uint256\",\n },\n },\n Systems: {\n keySchema: {\n systemId: \"ResourceId\",\n },\n valueSchema: {\n system: \"address\",\n publicAccess: \"bool\",\n },\n dataStruct: false,\n },\n SystemRegistry: {\n keySchema: {\n system: \"address\",\n },\n valueSchema: {\n systemId: \"ResourceId\",\n },\n },\n SystemHooks: {\n keySchema: {\n systemId: \"ResourceId\",\n },\n valueSchema: \"bytes21[]\",\n },\n FunctionSelectors: {\n keySchema: {\n worldFunctionSelector: \"bytes4\",\n },\n valueSchema: {\n systemId: \"ResourceId\",\n systemFunctionSelector: \"bytes4\",\n },\n dataStruct: false,\n },\n FunctionSignatures: {\n keySchema: {\n functionSelector: \"bytes4\",\n },\n valueSchema: {\n functionSignature: \"string\",\n },\n offchainOnly: true,\n },\n InitModuleAddress: {\n keySchema: {},\n valueSchema: \"address\",\n },\n },\n excludeSystems: [\n // Worldgen currently does not support systems inheriting logic\n // from other contracts, so all parts of RegistrationSystem 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 ],\n});\n"],"mappings":"oEAEA,IAAOA,EAAQC,EAAU,CACvB,gBAAiB,SACjB,kBAAmB,aACnB,mBAAoB,aACpB,UAAW,QACX,UAAW,CACT,WAAY,CAAE,SAAU,uCAAwC,aAAc,SAAU,CAC1F,EACA,OAAQ,CACN,eAAgB,CACd,UAAW,CACT,YAAa,YACf,EACA,YAAa,CACX,MAAO,SACT,CACF,EACA,eAAgB,CACd,UAAW,CACT,WAAY,aACZ,OAAQ,SACV,EACA,YAAa,CACX,OAAQ,MACV,CACF,EACA,iBAAkB,CAChB,UAAW,CACT,cAAe,UACf,cAAe,SACjB,EACA,YAAa,CACX,YAAa,MACf,CACF,EACA,sBAAuB,CACrB,UAAW,CACT,UAAW,UACX,UAAW,SACb,EACA,YAAa,CACX,oBAAqB,YACvB,CACF,EACA,2BAA4B,CAC1B,UAAW,CACT,YAAa,YACf,EACA,YAAa,CACX,oBAAqB,YACvB,CACF,EACA,SAAU,CACR,UAAW,CACT,YAAa,YACf,EACA,YAAa,CACX,QAAS,SACX,CACF,EACA,QAAS,CACP,UAAW,CACT,SAAU,YACZ,EACA,YAAa,CACX,OAAQ,UACR,aAAc,MAChB,EACA,WAAY,EACd,EACA,eAAgB,CACd,UAAW,CACT,OAAQ,SACV,EACA,YAAa,CACX,SAAU,YACZ,CACF,EACA,YAAa,CACX,UAAW,CACT,SAAU,YACZ,EACA,YAAa,WACf,EACA,kBAAmB,CACjB,UAAW,CACT,sBAAuB,QACzB,EACA,YAAa,CACX,SAAU,aACV,uBAAwB,QAC1B,EACA,WAAY,EACd,EACA,mBAAoB,CAClB,UAAW,CACT,iBAAkB,QACpB,EACA,YAAa,CACX,kBAAmB,QACrB,EACA,aAAc,EAChB,EACA,kBAAmB,CACjB,UAAW,CAAC,EACZ,YAAa,SACf,CACF,EACA,eAAgB,CAQd,yBACF,CACF,CAAC","names":["mud_config_default","mudConfig"]}
|