@latticexyz/world-modules 2.0.0-main-251170e1 → 2.0.0-main-5741d53d

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 (121) hide show
  1. package/dist/mud.config.js +1 -1
  2. package/dist/mud.config.js.map +1 -1
  3. package/out/ArrayLib.sol/ArrayLib.json +477 -477
  4. package/out/Callbacks.sol/Callbacks.json +45 -45
  5. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +350 -350
  6. package/out/CallboundDelegations.sol/CallboundDelegations.json +4497 -4497
  7. package/out/DelegationControl.sol/DelegationControl.json +83 -83
  8. package/out/Hooks.sol/Hooks.json +45 -45
  9. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +111 -111
  10. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +96 -96
  11. package/out/IBaseWorld.sol/IBaseWorld.abi.json +0 -13
  12. package/out/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +0 -13
  13. package/out/IBaseWorld.sol/IBaseWorld.json +81 -161
  14. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json +69 -0
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json.d.ts +70 -0
  16. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +534 -0
  17. package/out/ICoreSystem.sol/ICoreSystem.json +15 -15
  18. package/out/IDelegationControl.sol/IDelegationControl.json +100 -100
  19. package/out/IModule.sol/IModule.json +139 -139
  20. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +58 -58
  21. package/out/ISystemHook.sol/ISystemHook.json +141 -141
  22. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +2 -2
  23. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json.d.ts +2 -2
  24. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +37 -37
  25. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +118 -118
  26. package/out/IWorldErrors.sol/IWorldErrors.json +257 -257
  27. package/out/IWorldKernel.sol/IWorldCall.json +251 -251
  28. package/out/IWorldKernel.sol/IWorldKernel.json +251 -251
  29. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +251 -251
  30. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +321 -321
  31. package/out/KeyEncoding.sol/KeyEncoding.json +80 -80
  32. package/out/KeysInTable.sol/KeysInTable.json +18190 -18190
  33. package/out/KeysInTableHook.sol/KeysInTableHook.json +1407 -1407
  34. package/out/KeysInTableModule.sol/KeysInTableModule.json +885 -885
  35. package/out/KeysWithValue.sol/KeysWithValue.json +6631 -6631
  36. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1604 -1604
  37. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +700 -700
  38. package/out/Mixed.sol/Mixed.json +66 -66
  39. package/out/Module.sol/Module.json +73 -73
  40. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  41. package/out/Schema.sol/SchemaInstance.json +30 -30
  42. package/out/Schema.sol/SchemaLib.json +30 -30
  43. package/out/SchemaType.sol/SchemaType.json +276 -276
  44. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +495 -495
  45. package/out/StoreHook.sol/StoreHook.json +358 -358
  46. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  47. package/out/System.sol/System.json +19 -19
  48. package/out/Tables.sol/Tables.json +73 -73
  49. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +183 -183
  50. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3474 -3474
  51. package/out/UniqueEntity.sol/UniqueEntity.json +2345 -2345
  52. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +529 -529
  53. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +128 -128
  54. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4588 -4588
  55. package/out/Vector2.sol/Vector2.json +52 -52
  56. package/out/WorldContext.sol/WorldContextConsumer.json +28 -28
  57. package/out/WorldContext.sol/WorldContextProvider.json +28 -28
  58. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +103 -103
  59. package/out/WorldResourceId.sol/WorldResourceIdLib.json +103 -103
  60. package/out/constants.sol/constants.json +142 -142
  61. package/out/getKeysInTable.sol/getKeysInTable.json +918 -918
  62. package/out/getKeysWithValue.sol/getKeysWithValue.json +431 -431
  63. package/out/getTargetTableId.sol/getTargetTableId.json +272 -272
  64. package/out/getUniqueEntity.sol/getUniqueEntity.json +149 -149
  65. package/out/hasKey.sol/hasKey.json +215 -215
  66. package/out/index.sol/index.json +73 -73
  67. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json +51 -15
  68. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +51 -15
  69. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +326 -253
  70. package/out/interfaces/IERC165.sol/IERC165.json +50 -50
  71. package/out/interfaces/IWorldKernel.sol/IWorldCall.json +149 -149
  72. package/out/interfaces/IWorldKernel.sol/IWorldKernel.json +149 -149
  73. package/out/interfaces/IWorldKernel.sol/IWorldModuleInstallation.json +149 -149
  74. package/out/query.sol/query.json +1892 -1892
  75. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  76. package/out/src/Bytes.sol/Bytes.json +1332 -1332
  77. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +697 -697
  78. package/out/src/FieldLayout.sol/FieldLayoutLib.json +697 -697
  79. package/out/src/IStore.sol/IStore.json +885 -885
  80. package/out/src/IStore.sol/IStoreData.json +885 -885
  81. package/out/src/IStore.sol/IStoreRead.json +885 -885
  82. package/out/src/IStore.sol/IStoreRegistration.json +885 -885
  83. package/out/src/IStore.sol/IStoreWrite.json +885 -885
  84. package/out/src/Memory.sol/Memory.json +89 -89
  85. package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
  86. package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
  87. package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
  88. package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
  89. package/out/src/Schema.sol/SchemaInstance.json +787 -787
  90. package/out/src/Schema.sol/SchemaLib.json +787 -787
  91. package/out/src/Slice.sol/SliceInstance.json +429 -429
  92. package/out/src/Slice.sol/SliceLib.json +429 -429
  93. package/out/src/StoreCore.sol/StoreCore.json +4461 -4461
  94. package/out/src/StoreCore.sol/StoreCoreInternal.json +4461 -4461
  95. package/out/src/StoreSwitch.sol/StoreSwitch.json +2454 -2454
  96. package/out/src/WorldContext.sol/WorldContextConsumer.json +353 -353
  97. package/out/src/WorldContext.sol/WorldContextProvider.json +353 -353
  98. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +474 -474
  99. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +474 -474
  100. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  101. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  102. package/out/tables/ResourceIds.sol/ResourceIds.json +1746 -1746
  103. package/out/tables/Tables.sol/Tables.json +7288 -7288
  104. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3246 -3246
  105. package/out/types.sol/types.json +131 -23
  106. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  107. package/package.json +8 -8
  108. package/src/interfaces/IBaseWorld.sol +1 -3
  109. package/src/interfaces/IUniqueEntitySystem.sol +2 -3
  110. package/src/modules/keysintable/KeysInTableModule.sol +1 -1
  111. package/src/modules/keyswithvalue/KeysWithValueHook.sol +1 -1
  112. package/src/modules/keyswithvalue/KeysWithValueModule.sol +1 -1
  113. package/src/modules/std-delegations/StandardDelegationsModule.sol +1 -1
  114. package/src/modules/uniqueentity/UniqueEntityModule.sol +1 -1
  115. package/src/modules/uniqueentity/getUniqueEntity.sol +2 -2
  116. package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json +0 -33
  117. package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json.d.ts +0 -34
  118. package/out/ICallBatchSystem.sol/ICallBatchSystem.json +0 -334
  119. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +0 -15
  120. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json.d.ts +0 -16
  121. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +0 -197
@@ -1,2 +1,2 @@
1
- import{mudConfig as e}from"@latticexyz/world/register";var t=e({worldgenDirectory:"interfaces",worldInterfaceName:"IBaseWorld",codegenDirectory:".",userTypes:{ResourceId:{filePath:"@latticexyz/store/src/ResourceId.sol",internalType:"bytes32"}},tables:{KeysWithValue:{directory:"modules/keyswithvalue/tables",keySchema:{valueHash:"bytes32"},valueSchema:{keysWithValue:"bytes32[]"},tableIdArgument:!0},KeysInTable:{directory:"modules/keysintable/tables",keySchema:{sourceTableId:"ResourceId"},valueSchema:{keys0:"bytes32[]",keys1:"bytes32[]",keys2:"bytes32[]",keys3:"bytes32[]",keys4:"bytes32[]"}},UsedKeysIndex:{directory:"modules/keysintable/tables",keySchema:{sourceTableId:"ResourceId",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",systemId:"ResourceId",callDataHash:"bytes32"},valueSchema:{availableCalls:"uint256"}},TimeboundDelegations:{directory:"modules/std-delegations/tables",keySchema:{delegator:"address",delegatee:"address"},valueSchema:{maxTimestamp:"uint256"}}},excludeSystems:[]});export{t as default};
1
+ import{mudConfig as e}from"@latticexyz/world/register";var t=e({worldgenDirectory:"interfaces",worldInterfaceName:"IBaseWorld",codegenDirectory:".",userTypes:{ResourceId:{filePath:"@latticexyz/store/src/ResourceId.sol",internalType:"bytes32"}},tables:{KeysWithValue:{directory:"modules/keyswithvalue/tables",keySchema:{valueHash:"bytes32"},valueSchema:{keysWithValue:"bytes32[]"},tableIdArgument:!0},KeysInTable:{directory:"modules/keysintable/tables",keySchema:{sourceTableId:"ResourceId"},valueSchema:{keys0:"bytes32[]",keys1:"bytes32[]",keys2:"bytes32[]",keys3:"bytes32[]",keys4:"bytes32[]"}},UsedKeysIndex:{directory:"modules/keysintable/tables",keySchema:{sourceTableId:"ResourceId",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",systemId:"ResourceId",callDataHash:"bytes32"},valueSchema:{availableCalls:"uint256"}},TimeboundDelegations:{directory:"modules/std-delegations/tables",keySchema:{delegator:"address",delegatee:"address"},valueSchema:{maxTimestamp:"uint256"}}},excludeSystems:["UniqueEntitySystem"]});export{t as default};
2
2
  //# sourceMappingURL=mud.config.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { mudConfig } from \"@latticexyz/world/register\";\n\nexport default mudConfig({\n worldgenDirectory: \"interfaces\",\n worldInterfaceName: \"IBaseWorld\",\n codegenDirectory: \".\",\n userTypes: {\n ResourceId: { filePath: \"@latticexyz/store/src/ResourceId.sol\", internalType: \"bytes32\" },\n },\n tables: {\n /************************************************************************\n *\n * MODULE TABLES\n *\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: { sourceTableId: \"ResourceId\" },\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 sourceTableId: \"ResourceId\",\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 systemId: \"ResourceId\",\n callDataHash: \"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 excludeSystems: [],\n});\n"],"mappings":"AAAA,OAAS,aAAAA,MAAiB,6BAE1B,IAAOC,EAAQD,EAAU,CACvB,kBAAmB,aACnB,mBAAoB,aACpB,iBAAkB,IAClB,UAAW,CACT,WAAY,CAAE,SAAU,uCAAwC,aAAc,SAAU,CAC1F,EACA,OAAQ,CAMN,cAAe,CACb,UAAW,+BACX,UAAW,CACT,UAAW,SACb,EACA,YAAa,CACX,cAAe,WACjB,EACA,gBAAiB,EACnB,EACA,YAAa,CACX,UAAW,6BACX,UAAW,CAAE,cAAe,YAAa,EACzC,YAAa,CACX,MAAO,YACP,MAAO,YACP,MAAO,YACP,MAAO,YACP,MAAO,WACT,CACF,EACA,cAAe,CACb,UAAW,6BACX,UAAW,CACT,cAAe,aACf,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,SAAU,aACV,aAAc,SAChB,EACA,YAAa,CACX,eAAgB,SAClB,CACF,EACA,qBAAsB,CACpB,UAAW,iCACX,UAAW,CACT,UAAW,UACX,UAAW,SACb,EACA,YAAa,CACX,aAAc,SAChB,CACF,CACF,EACA,eAAgB,CAAC,CACnB,CAAC","names":["mudConfig","mud_config_default"]}
1
+ {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { mudConfig } from \"@latticexyz/world/register\";\n\nexport default mudConfig({\n worldgenDirectory: \"interfaces\",\n worldInterfaceName: \"IBaseWorld\",\n codegenDirectory: \".\",\n userTypes: {\n ResourceId: { filePath: \"@latticexyz/store/src/ResourceId.sol\", internalType: \"bytes32\" },\n },\n tables: {\n /************************************************************************\n *\n * MODULE TABLES\n *\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: { sourceTableId: \"ResourceId\" },\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 sourceTableId: \"ResourceId\",\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 systemId: \"ResourceId\",\n callDataHash: \"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 excludeSystems: [\"UniqueEntitySystem\"],\n});\n"],"mappings":"AAAA,OAAS,aAAAA,MAAiB,6BAE1B,IAAOC,EAAQD,EAAU,CACvB,kBAAmB,aACnB,mBAAoB,aACpB,iBAAkB,IAClB,UAAW,CACT,WAAY,CAAE,SAAU,uCAAwC,aAAc,SAAU,CAC1F,EACA,OAAQ,CAMN,cAAe,CACb,UAAW,+BACX,UAAW,CACT,UAAW,SACb,EACA,YAAa,CACX,cAAe,WACjB,EACA,gBAAiB,EACnB,EACA,YAAa,CACX,UAAW,6BACX,UAAW,CAAE,cAAe,YAAa,EACzC,YAAa,CACX,MAAO,YACP,MAAO,YACP,MAAO,YACP,MAAO,YACP,MAAO,WACT,CACF,EACA,cAAe,CACb,UAAW,6BACX,UAAW,CACT,cAAe,aACf,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,SAAU,aACV,aAAc,SAChB,EACA,YAAa,CACX,eAAgB,SAClB,CACF,EACA,qBAAsB,CACpB,UAAW,iCACX,UAAW,CACT,UAAW,UACX,UAAW,SACb,EACA,YAAa,CACX,aAAc,SAChB,CACF,CACF,EACA,eAAgB,CAAC,oBAAoB,CACvC,CAAC","names":["mudConfig","mud_config_default"]}