@latticexyz/world-modules 2.0.0-transaction-context-324984c5 → 2.0.0

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 (393) hide show
  1. package/dist/mud.config.d.ts +689 -222
  2. package/dist/mud.config.js +1 -1
  3. package/dist/mud.config.js.map +1 -1
  4. package/out/AccessControl.sol/AccessControl.json +1 -1
  5. package/out/AccessControlLib.sol/AccessControlLib.json +1 -1
  6. package/out/AccessManagementSystem.sol/AccessManagementSystem.abi.json +0 -13
  7. package/out/AccessManagementSystem.sol/AccessManagementSystem.abi.json.d.ts +0 -13
  8. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  9. package/out/AddressArray.sol/AddressArray.json +1 -1
  10. package/out/Allowances.sol/Allowances.json +1 -1
  11. package/out/ArrayLib.sol/ArrayLib.json +1 -1
  12. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.abi.json +0 -24
  13. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.abi.json.d.ts +0 -24
  14. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  15. package/out/Balances.sol/Balances.json +1 -1
  16. package/out/Base.sol/CommonBase.json +1 -1
  17. package/out/Base.sol/ScriptBase.json +1 -1
  18. package/out/Base.sol/TestBase.json +1 -1
  19. package/out/BatchCallSystem.sol/BatchCallSystem.abi.json +0 -13
  20. package/out/BatchCallSystem.sol/BatchCallSystem.abi.json.d.ts +0 -13
  21. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  22. package/out/Bool.sol/Bool.json +1 -1
  23. package/out/Bytes.sol/Bytes.json +1 -1
  24. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.abi.json +0 -13
  25. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.abi.json.d.ts +0 -13
  26. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +1 -1
  27. package/out/CallboundDelegations.sol/CallboundDelegations.json +1 -1
  28. package/out/DecodeSlice.sol/DecodeSlice.json +1 -1
  29. package/out/Delegation.sol/Delegation.json +1 -1
  30. package/out/DelegationControl.sol/DelegationControl.abi.json +0 -13
  31. package/out/DelegationControl.sol/DelegationControl.abi.json.d.ts +0 -13
  32. package/out/DelegationControl.sol/DelegationControl.json +1 -1
  33. package/out/DelegationControlMock.sol/DelegationControlMock.abi.json +0 -13
  34. package/out/DelegationControlMock.sol/DelegationControlMock.abi.json.d.ts +0 -13
  35. package/out/DelegationControlMock.sol/DelegationControlMock.json +1 -1
  36. package/out/ERC165Checker.sol/ERC165Checker.json +1 -1
  37. package/out/ERC20.t.sol/ERC20Test.json +1 -1
  38. package/out/ERC20Metadata.sol/ERC20Metadata.json +1 -1
  39. package/out/ERC20Module.sol/ERC20Module.abi.json +10 -23
  40. package/out/ERC20Module.sol/ERC20Module.abi.json.d.ts +10 -23
  41. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  42. package/out/ERC20Module.sol/ERC20ModuleRegistrationLibrary.abi.json +10 -10
  43. package/out/ERC20Module.sol/ERC20ModuleRegistrationLibrary.abi.json.d.ts +10 -10
  44. package/out/ERC20Module.sol/ERC20ModuleRegistrationLibrary.json +1 -1
  45. package/out/ERC20Registry.sol/ERC20Registry.json +1 -1
  46. package/out/ERC20System.sol/ERC20System.abi.json +0 -13
  47. package/out/ERC20System.sol/ERC20System.abi.json.d.ts +0 -13
  48. package/out/ERC20System.sol/ERC20System.json +1 -1
  49. package/out/ERC721.t.sol/ERC721Recipient.json +1 -1
  50. package/out/ERC721.t.sol/ERC721Test.json +1 -1
  51. package/out/ERC721.t.sol/ERC721TokenReceiver.json +1 -1
  52. package/out/ERC721.t.sol/NonERC721Recipient.json +1 -1
  53. package/out/ERC721.t.sol/RevertingERC721Recipient.json +1 -1
  54. package/out/ERC721.t.sol/WrongReturnDataERC721Recipient.json +1 -1
  55. package/out/ERC721Metadata.sol/ERC721Metadata.json +1 -1
  56. package/out/ERC721Module.sol/ERC721Module.abi.json +10 -23
  57. package/out/ERC721Module.sol/ERC721Module.abi.json.d.ts +10 -23
  58. package/out/ERC721Module.sol/ERC721Module.json +1 -1
  59. package/out/ERC721Module.sol/ERC721ModuleRegistrationLibrary.abi.json +10 -10
  60. package/out/ERC721Module.sol/ERC721ModuleRegistrationLibrary.abi.json.d.ts +10 -10
  61. package/out/ERC721Module.sol/ERC721ModuleRegistrationLibrary.json +1 -1
  62. package/out/ERC721Registry.sol/ERC721Registry.json +1 -1
  63. package/out/ERC721System.sol/ERC721System.abi.json +0 -13
  64. package/out/ERC721System.sol/ERC721System.abi.json.d.ts +0 -13
  65. package/out/ERC721System.sol/ERC721System.json +1 -1
  66. package/out/EchoSubscriber.sol/EchoSubscriber.abi.json +4 -4
  67. package/out/EchoSubscriber.sol/EchoSubscriber.abi.json.d.ts +4 -4
  68. package/out/EchoSubscriber.sol/EchoSubscriber.json +1 -1
  69. package/out/EncodeArray.sol/EncodeArray.json +1 -1
  70. package/out/EncodedLengths.sol/EncodedLengthsInstance.json +1 -0
  71. package/out/EncodedLengths.sol/EncodedLengthsLib.json +1 -0
  72. package/out/FieldLayout.sol/FieldLayoutInstance.json +1 -1
  73. package/out/FieldLayout.sol/FieldLayoutLib.abi.json +1 -88
  74. package/out/FieldLayout.sol/FieldLayoutLib.json +1 -1
  75. package/out/FieldLayoutEncodeHelper.sol/FieldLayoutEncodeHelper.json +1 -1
  76. package/out/FunctionSelectors.sol/FunctionSelectors.json +1 -1
  77. package/out/FunctionSignatures.sol/FunctionSignatures.json +1 -1
  78. package/out/GasReporter.sol/GasReporter.json +1 -1
  79. package/out/Hook.sol/HookInstance.json +1 -1
  80. package/out/Hook.sol/HookLib.json +1 -1
  81. package/out/Hooks.sol/Hooks.json +1 -1
  82. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +1 -1
  83. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +1 -1
  84. package/out/IBaseWorld.sol/IBaseWorld.abi.json +171 -16
  85. package/out/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +171 -16
  86. package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
  87. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +1 -1
  88. package/out/IDelegationControl.sol/IDelegationControl.abi.json +0 -13
  89. package/out/IDelegationControl.sol/IDelegationControl.abi.json.d.ts +0 -13
  90. package/out/IDelegationControl.sol/IDelegationControl.json +1 -1
  91. package/out/IERC20.sol/IERC20.json +1 -1
  92. package/out/IERC20Errors.sol/IERC20Errors.json +1 -1
  93. package/out/IERC20Events.sol/IERC20Events.json +1 -1
  94. package/out/IERC20Mintable.sol/IERC20Mintable.json +1 -1
  95. package/out/IERC20System.sol/IERC20System.json +1 -1
  96. package/out/IERC721.sol/IERC721.json +1 -1
  97. package/out/IERC721Errors.sol/IERC721Errors.json +1 -1
  98. package/out/IERC721Events.sol/IERC721Events.json +1 -1
  99. package/out/IERC721Metadata.sol/IERC721Metadata.json +1 -1
  100. package/out/IERC721Mintable.sol/IERC721Mintable.json +1 -1
  101. package/out/IERC721Receiver.sol/IERC721Receiver.json +1 -1
  102. package/out/{PackedCounter.sol/PackedCounterInstance.abi.json → IEncodedLengthsErrors.sol/IEncodedLengthsErrors.abi.json} +1 -1
  103. package/out/{PackedCounter.sol/PackedCounterInstance.abi.json.d.ts → IEncodedLengthsErrors.sol/IEncodedLengthsErrors.abi.json.d.ts} +1 -1
  104. package/out/IEncodedLengthsErrors.sol/IEncodedLengthsErrors.json +1 -0
  105. package/out/IFieldLayoutErrors.sol/IFieldLayoutErrors.abi.json +88 -0
  106. package/out/{FieldLayout.sol/FieldLayoutLib.abi.json.d.ts → IFieldLayoutErrors.sol/IFieldLayoutErrors.abi.json.d.ts} +7 -7
  107. package/out/IFieldLayoutErrors.sol/IFieldLayoutErrors.json +1 -0
  108. package/out/IModule.sol/IModule.json +1 -1
  109. package/out/IModuleErrors.sol/IModuleErrors.abi.json +28 -0
  110. package/out/IModuleErrors.sol/IModuleErrors.abi.json.d.ts +28 -0
  111. package/out/IModuleErrors.sol/IModuleErrors.json +1 -0
  112. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +1 -1
  113. package/out/IMulticall3.sol/IMulticall3.json +1 -1
  114. package/out/IPuppetFactorySystem.sol/IPuppetFactorySystem.json +1 -1
  115. package/out/IRegistrationSystem.sol/IRegistrationSystem.json +1 -1
  116. package/out/ISchemaErrors.sol/ISchemaErrors.abi.json +18 -0
  117. package/out/{Schema.sol/SchemaLib.abi.json.d.ts → ISchemaErrors.sol/ISchemaErrors.abi.json.d.ts} +2 -2
  118. package/out/ISchemaErrors.sol/ISchemaErrors.json +1 -0
  119. package/out/ISliceErrors.sol/ISliceErrors.abi.json +23 -0
  120. package/out/ISliceErrors.sol/ISliceErrors.json +1 -0
  121. package/out/IStore.sol/IStore.abi.json +145 -5
  122. package/out/IStore.sol/IStore.abi.json.d.ts +145 -5
  123. package/out/IStore.sol/IStore.json +1 -1
  124. package/out/IStoreErrors.sol/IStoreErrors.json +1 -1
  125. package/out/IStoreEvents.sol/IStoreEvents.abi.json +21 -2
  126. package/out/IStoreEvents.sol/IStoreEvents.abi.json.d.ts +21 -2
  127. package/out/IStoreEvents.sol/IStoreEvents.json +1 -1
  128. package/out/IStoreHook.sol/IStoreHook.abi.json +4 -4
  129. package/out/IStoreHook.sol/IStoreHook.abi.json.d.ts +4 -4
  130. package/out/IStoreHook.sol/IStoreHook.json +1 -1
  131. package/out/{IStoreData.sol/IStoreData.abi.json → IStoreKernel.sol/IStoreKernel.abi.json} +347 -5
  132. package/out/{IStoreData.sol/IStoreData.abi.json.d.ts → IStoreKernel.sol/IStoreKernel.abi.json.d.ts} +347 -5
  133. package/out/IStoreKernel.sol/IStoreKernel.json +1 -0
  134. package/out/IStoreRead.sol/IStoreRead.abi.json +2 -2
  135. package/out/IStoreRead.sol/IStoreRead.abi.json.d.ts +2 -2
  136. package/out/IStoreRead.sol/IStoreRead.json +1 -1
  137. package/out/IStoreRegistration.sol/IStoreRegistration.json +1 -1
  138. package/out/IStoreWrite.sol/IStoreWrite.abi.json +22 -3
  139. package/out/IStoreWrite.sol/IStoreWrite.abi.json.d.ts +22 -3
  140. package/out/IStoreWrite.sol/IStoreWrite.json +1 -1
  141. package/out/ISystemHook.sol/ISystemHook.json +1 -1
  142. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.abi.json +0 -13
  143. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.abi.json.d.ts +0 -13
  144. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +1 -1
  145. package/out/IWorldErrors.sol/IWorldErrors.abi.json +0 -11
  146. package/out/IWorldErrors.sol/IWorldErrors.abi.json.d.ts +0 -11
  147. package/out/IWorldErrors.sol/IWorldErrors.json +1 -1
  148. package/out/IWorldEvents.sol/IWorldEvents.abi.json +15 -0
  149. package/out/IWorldEvents.sol/IWorldEvents.abi.json.d.ts +15 -0
  150. package/out/IWorldEvents.sol/IWorldEvents.json +1 -0
  151. package/out/IWorldKernel.sol/IWorldCall.json +1 -1
  152. package/out/IWorldKernel.sol/IWorldKernel.abi.json +26 -11
  153. package/out/IWorldKernel.sol/IWorldKernel.abi.json.d.ts +26 -11
  154. package/out/IWorldKernel.sol/IWorldKernel.json +1 -1
  155. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +1 -1
  156. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.abi.json +3 -3
  157. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.abi.json.d.ts +3 -3
  158. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +1 -1
  159. package/out/InitModule.sol/InitModule.abi.json +10 -23
  160. package/out/InitModule.sol/InitModule.abi.json.d.ts +10 -23
  161. package/out/InitModule.sol/InitModule.json +1 -1
  162. package/out/InitModuleAddress.sol/InitModuleAddress.json +1 -1
  163. package/out/InstalledModules.sol/InstalledModules.json +1 -1
  164. package/out/KeysInTable.sol/KeysInTable.json +1 -1
  165. package/out/KeysInTableHook.sol/KeysInTableHook.abi.json +13 -7
  166. package/out/KeysInTableHook.sol/KeysInTableHook.abi.json.d.ts +13 -7
  167. package/out/KeysInTableHook.sol/KeysInTableHook.json +1 -1
  168. package/out/KeysInTableModule.sol/KeysInTableModule.abi.json +0 -29
  169. package/out/KeysInTableModule.sol/KeysInTableModule.abi.json.d.ts +0 -29
  170. package/out/KeysInTableModule.sol/KeysInTableModule.json +1 -1
  171. package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.abi.json +6 -6
  172. package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.abi.json.d.ts +6 -6
  173. package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.json +1 -1
  174. package/out/KeysWithValue.sol/KeysWithValue.json +1 -1
  175. package/out/KeysWithValueHook.sol/KeysWithValueHook.abi.json +12 -6
  176. package/out/KeysWithValueHook.sol/KeysWithValueHook.abi.json.d.ts +12 -6
  177. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1 -1
  178. package/out/KeysWithValueModule.sol/KeysWithValueModule.abi.json +0 -29
  179. package/out/KeysWithValueModule.sol/KeysWithValueModule.abi.json.d.ts +0 -29
  180. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +1 -1
  181. package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.abi.json +6 -6
  182. package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.abi.json.d.ts +6 -6
  183. package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.json +1 -1
  184. package/out/LimitedCallContext.sol/LimitedCallContext.json +1 -1
  185. package/out/Memory.sol/Memory.json +1 -1
  186. package/out/Module.sol/Module.abi.json +0 -13
  187. package/out/Module.sol/Module.abi.json.d.ts +0 -13
  188. package/out/Module.sol/Module.json +1 -1
  189. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json +0 -13
  190. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json.d.ts +0 -13
  191. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
  192. package/out/NamespaceDelegationControl.sol/NamespaceDelegationControl.json +1 -1
  193. package/out/NamespaceOwner.sol/NamespaceOwner.json +1 -1
  194. package/out/OperatorApproval.sol/OperatorApproval.json +1 -1
  195. package/out/Owners.sol/Owners.json +1 -1
  196. package/out/Puppet.sol/Puppet.json +1 -1
  197. package/out/PuppetDelegationControl.sol/PuppetDelegationControl.abi.json +0 -13
  198. package/out/PuppetDelegationControl.sol/PuppetDelegationControl.abi.json.d.ts +0 -13
  199. package/out/PuppetDelegationControl.sol/PuppetDelegationControl.json +1 -1
  200. package/out/PuppetFactorySystem.sol/PuppetFactorySystem.abi.json +0 -13
  201. package/out/PuppetFactorySystem.sol/PuppetFactorySystem.abi.json.d.ts +0 -13
  202. package/out/PuppetFactorySystem.sol/PuppetFactorySystem.json +1 -1
  203. package/out/PuppetMaster.sol/PuppetMaster.json +1 -1
  204. package/out/PuppetModule.sol/PuppetModule.abi.json +10 -23
  205. package/out/PuppetModule.sol/PuppetModule.abi.json.d.ts +10 -23
  206. package/out/PuppetModule.sol/PuppetModule.json +1 -1
  207. package/out/PuppetModule.t.sol/PuppetModuleTest.json +1 -1
  208. package/out/PuppetModule.t.sol/PuppetTestSystem.abi.json +0 -13
  209. package/out/PuppetModule.t.sol/PuppetTestSystem.abi.json.d.ts +0 -13
  210. package/out/PuppetModule.t.sol/PuppetTestSystem.json +1 -1
  211. package/out/PuppetRegistry.sol/PuppetRegistry.json +1 -1
  212. package/out/RegistrationSystem.sol/RegistrationSystem.abi.json +31 -49
  213. package/out/RegistrationSystem.sol/RegistrationSystem.abi.json.d.ts +31 -49
  214. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  215. package/out/ResourceAccess.sol/ResourceAccess.json +1 -1
  216. package/out/ResourceId.sol/ResourceIdInstance.json +1 -1
  217. package/out/ResourceId.sol/ResourceIdLib.json +1 -1
  218. package/out/ResourceIds.sol/ResourceIds.json +1 -1
  219. package/out/RevertSubscriber.sol/RevertSubscriber.abi.json +4 -4
  220. package/out/RevertSubscriber.sol/RevertSubscriber.abi.json.d.ts +4 -4
  221. package/out/RevertSubscriber.sol/RevertSubscriber.json +1 -1
  222. package/out/Schema.sol/SchemaInstance.json +1 -1
  223. package/out/Schema.sol/SchemaLib.abi.json +1 -18
  224. package/out/Schema.sol/SchemaLib.json +1 -1
  225. package/out/SchemaEncodeHelper.sol/SchemaEncodeHelper.json +1 -1
  226. package/out/Slice.sol/SliceInstance.json +1 -1
  227. package/out/Slice.sol/SliceLib.abi.json +1 -23
  228. package/out/Slice.sol/SliceLib.json +1 -1
  229. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.abi.json +10 -23
  230. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.abi.json.d.ts +10 -23
  231. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +1 -1
  232. package/out/StandardDelegationsModule.t.sol/StandardDelegationsModuleTest.json +1 -1
  233. package/out/StdAssertions.sol/StdAssertions.json +1 -1
  234. package/out/StdChains.sol/StdChains.json +1 -1
  235. package/out/StdCheats.sol/StdCheats.json +1 -1
  236. package/out/StdCheats.sol/StdCheatsSafe.json +1 -1
  237. package/out/StdError.sol/stdError.json +1 -1
  238. package/out/StdInvariant.sol/StdInvariant.json +1 -1
  239. package/out/StdJson.sol/stdJson.json +1 -1
  240. package/out/StdMath.sol/stdMath.json +1 -1
  241. package/out/StdStorage.sol/stdStorage.json +1 -1
  242. package/out/StdStorage.sol/stdStorageSafe.json +1 -1
  243. package/out/StdStyle.sol/StdStyle.json +1 -1
  244. package/out/StdUtils.sol/StdUtils.json +1 -1
  245. package/out/Storage.sol/Storage.json +1 -1
  246. package/out/StoreCore.sol/StoreCore.abi.json +1 -132
  247. package/out/StoreCore.sol/StoreCore.json +1 -1
  248. package/out/StoreCore.sol/StoreCoreInternal.json +1 -1
  249. package/out/StoreHook.sol/StoreHook.abi.json +4 -4
  250. package/out/StoreHook.sol/StoreHook.abi.json.d.ts +4 -4
  251. package/out/StoreHook.sol/StoreHook.json +1 -1
  252. package/out/StoreHooks.sol/StoreHooks.json +1 -1
  253. package/out/{StoreData.sol/StoreData.abi.json → StoreKernel.sol/StoreKernel.abi.json} +299 -5
  254. package/out/{StoreData.sol/StoreData.abi.json.d.ts → StoreKernel.sol/StoreKernel.abi.json.d.ts} +299 -5
  255. package/out/StoreKernel.sol/StoreKernel.json +1 -0
  256. package/out/StoreRead.sol/StoreRead.abi.json +2 -2
  257. package/out/StoreRead.sol/StoreRead.abi.json.d.ts +2 -2
  258. package/out/StoreRead.sol/StoreRead.json +1 -1
  259. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json +28 -46
  260. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json.d.ts +28 -46
  261. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
  262. package/out/StoreSwitch.sol/StoreSwitch.json +1 -1
  263. package/out/System.sol/System.abi.json +0 -13
  264. package/out/System.sol/System.abi.json.d.ts +0 -13
  265. package/out/System.sol/System.json +1 -1
  266. package/out/SystemCall.sol/SystemCall.json +1 -1
  267. package/out/SystemHook.sol/SystemHook.json +1 -1
  268. package/out/SystemHooks.sol/SystemHooks.json +1 -1
  269. package/out/SystemRegistry.sol/SystemRegistry.json +1 -1
  270. package/out/SystemSwitch.sol/SystemSwitch.json +1 -1
  271. package/out/SystemSwitch.t.sol/EchoSystem.abi.json +0 -13
  272. package/out/SystemSwitch.t.sol/EchoSystem.abi.json.d.ts +0 -13
  273. package/out/SystemSwitch.t.sol/EchoSystem.json +1 -1
  274. package/out/SystemSwitch.t.sol/SystemSwitchTest.abi.json +0 -16
  275. package/out/SystemSwitch.t.sol/SystemSwitchTest.abi.json.d.ts +0 -16
  276. package/out/SystemSwitch.t.sol/SystemSwitchTest.json +1 -1
  277. package/out/SystemboundDelegationControl.sol/SystemboundDelegationControl.abi.json +0 -13
  278. package/out/SystemboundDelegationControl.sol/SystemboundDelegationControl.abi.json.d.ts +0 -13
  279. package/out/SystemboundDelegationControl.sol/SystemboundDelegationControl.json +1 -1
  280. package/out/SystemboundDelegations.sol/SystemboundDelegations.json +1 -1
  281. package/out/Systems.sol/Systems.json +1 -1
  282. package/out/Tables.sol/Tables.json +1 -1
  283. package/out/Test.sol/Test.json +1 -1
  284. package/out/TightCoder.sol/TightCoder.json +1 -1
  285. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.abi.json +0 -13
  286. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.abi.json.d.ts +0 -13
  287. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +1 -1
  288. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1 -1
  289. package/out/TokenApproval.sol/TokenApproval.json +1 -1
  290. package/out/TokenURI.sol/TokenURI.json +1 -1
  291. package/out/TotalSupply.sol/TotalSupply.json +1 -1
  292. package/out/TwoFields.sol/TwoFields.json +1 -1
  293. package/out/UniqueEntity.sol/UniqueEntity.json +1 -1
  294. package/out/UniqueEntityModule.sol/UniqueEntityModule.abi.json +10 -23
  295. package/out/UniqueEntityModule.sol/UniqueEntityModule.abi.json.d.ts +10 -23
  296. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +1 -1
  297. package/out/UniqueEntityModule.t.sol/UniqueEntityModuleTest.json +1 -1
  298. package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.abi.json +0 -13
  299. package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.abi.json.d.ts +0 -13
  300. package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.json +1 -1
  301. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.abi.json +0 -13
  302. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.abi.json.d.ts +0 -13
  303. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +1 -1
  304. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +1 -1
  305. package/out/UserDelegationControl.sol/UserDelegationControl.json +1 -1
  306. package/out/Vm.sol/Vm.json +1 -1
  307. package/out/Vm.sol/VmSafe.json +1 -1
  308. package/out/World.sol/World.abi.json +232 -127
  309. package/out/World.sol/World.abi.json.d.ts +232 -127
  310. package/out/World.sol/World.json +1 -1
  311. package/out/World.t.sol/EchoSystemHook.json +1 -1
  312. package/out/World.t.sol/IWorldTestSystem.json +1 -1
  313. package/out/World.t.sol/PayableFallbackSystem.abi.json +0 -13
  314. package/out/World.t.sol/PayableFallbackSystem.abi.json.d.ts +0 -13
  315. package/out/World.t.sol/PayableFallbackSystem.json +1 -1
  316. package/out/World.t.sol/RevertSystemHook.json +1 -1
  317. package/out/World.t.sol/WorldTest.abi.json +7 -7
  318. package/out/World.t.sol/WorldTest.abi.json.d.ts +7 -7
  319. package/out/World.t.sol/WorldTest.json +1 -1
  320. package/out/World.t.sol/WorldTestSystem.abi.json +1 -14
  321. package/out/World.t.sol/WorldTestSystem.abi.json.d.ts +1 -14
  322. package/out/World.t.sol/WorldTestSystem.json +1 -1
  323. package/out/WorldContext.sol/WorldContextConsumer.abi.json +0 -13
  324. package/out/WorldContext.sol/WorldContextConsumer.abi.json.d.ts +0 -13
  325. package/out/WorldContext.sol/WorldContextConsumer.json +1 -1
  326. package/out/WorldContext.sol/WorldContextConsumerLib.json +1 -1
  327. package/out/WorldContext.sol/WorldContextProviderLib.json +1 -1
  328. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json +12 -30
  329. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json.d.ts +12 -30
  330. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
  331. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +1 -1
  332. package/out/WorldResourceId.sol/WorldResourceIdLib.json +1 -1
  333. package/out/console.sol/console.json +1 -1
  334. package/out/console2.sol/console2.json +1 -1
  335. package/out/constants.sol/LayoutOffsets.json +1 -1
  336. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json +174 -19
  337. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +174 -19
  338. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +1 -1
  339. package/out/query.t.sol/QueryTest.abi.json +6 -6
  340. package/out/query.t.sol/QueryTest.abi.json.d.ts +6 -6
  341. package/out/query.t.sol/QueryTest.json +1 -1
  342. package/out/safeconsole.sol/safeconsole.json +1 -1
  343. package/out/src/IERC165.sol/IERC165.json +1 -1
  344. package/out/tables/Balances.sol/Balances.json +1 -1
  345. package/out/test.sol/DSTest.json +1 -1
  346. package/out/world/src/IERC165.sol/IERC165.json +1 -1
  347. package/package.json +8 -9
  348. package/src/index.sol +5 -5
  349. package/src/interfaces/IBaseWorld.sol +2 -3
  350. package/src/interfaces/IERC20System.sol +1 -0
  351. package/src/interfaces/IPuppetFactorySystem.sol +1 -0
  352. package/src/modules/erc20-puppet/ERC20Module.sol +1 -3
  353. package/src/modules/erc20-puppet/tables/Allowances.sol +13 -43
  354. package/src/modules/erc20-puppet/tables/ERC20Metadata.sol +24 -54
  355. package/src/modules/erc20-puppet/tables/ERC20Registry.sol +13 -42
  356. package/src/modules/erc20-puppet/tables/TotalSupply.sol +13 -41
  357. package/src/modules/erc721-puppet/ERC721Module.sol +1 -3
  358. package/src/modules/erc721-puppet/IERC721Metadata.sol +1 -0
  359. package/src/modules/erc721-puppet/IERC721Receiver.sol +1 -0
  360. package/src/modules/erc721-puppet/tables/ERC721Metadata.sol +23 -53
  361. package/src/modules/erc721-puppet/tables/ERC721Registry.sol +13 -42
  362. package/src/modules/erc721-puppet/tables/OperatorApproval.sol +13 -43
  363. package/src/modules/erc721-puppet/tables/Owners.sol +13 -42
  364. package/src/modules/erc721-puppet/tables/TokenApproval.sol +13 -42
  365. package/src/modules/erc721-puppet/tables/TokenURI.sol +15 -44
  366. package/src/modules/keysintable/KeysInTableHook.sol +3 -3
  367. package/src/modules/keysintable/KeysInTableModule.sol +13 -13
  368. package/src/modules/keysintable/query.sol +7 -7
  369. package/src/modules/keysintable/tables/KeysInTable.sol +47 -63
  370. package/src/modules/keysintable/tables/UsedKeysIndex.sol +25 -57
  371. package/src/modules/keyswithvalue/KeysWithValueHook.sol +5 -5
  372. package/src/modules/keyswithvalue/KeysWithValueModule.sol +3 -3
  373. package/src/modules/keyswithvalue/getKeysWithValue.sol +3 -3
  374. package/src/modules/keyswithvalue/tables/KeysWithValue.sol +16 -45
  375. package/src/modules/puppet/tables/PuppetRegistry.sol +13 -42
  376. package/src/modules/std-delegations/tables/CallboundDelegations.sol +15 -48
  377. package/src/modules/std-delegations/tables/SystemboundDelegations.sol +15 -47
  378. package/src/modules/std-delegations/tables/TimeboundDelegations.sol +15 -46
  379. package/src/modules/tokens/tables/Balances.sol +13 -42
  380. package/src/modules/uniqueentity/tables/UniqueEntity.sol +14 -42
  381. package/src/utils/AccessControlLib.sol +1 -0
  382. package/src/utils/SystemSwitch.sol +1 -0
  383. package/ts/scripts/tablegen.ts +2 -2
  384. package/ts/scripts/worldgen.ts +6 -5
  385. package/out/IStoreData.sol/IStoreData.json +0 -1
  386. package/out/PackedCounter.sol/PackedCounterInstance.json +0 -1
  387. package/out/PackedCounter.sol/PackedCounterLib.json +0 -1
  388. package/out/StoreCore.sol/StoreCore.abi.json.d.ts +0 -132
  389. package/out/StoreData.sol/StoreData.json +0 -1
  390. package/out/TransactionContext.sol/TransactionContext.json +0 -1
  391. /package/out/{PackedCounter.sol/PackedCounterLib.abi.json → EncodedLengths.sol/EncodedLengthsInstance.abi.json} +0 -0
  392. /package/out/{TransactionContext.sol/TransactionContext.abi.json → EncodedLengths.sol/EncodedLengthsLib.abi.json} +0 -0
  393. /package/out/{Slice.sol/SliceLib.abi.json.d.ts → ISliceErrors.sol/ISliceErrors.abi.json.d.ts} +0 -0
@@ -386,7 +386,7 @@ declare const abi: [
386
386
  {
387
387
  "name": "encodedLengths",
388
388
  "type": "bytes32",
389
- "internalType": "PackedCounter"
389
+ "internalType": "EncodedLengths"
390
390
  },
391
391
  {
392
392
  "name": "dynamicData",
@@ -420,7 +420,7 @@ declare const abi: [
420
420
  {
421
421
  "name": "encodedLengths",
422
422
  "type": "bytes32",
423
- "internalType": "PackedCounter"
423
+ "internalType": "EncodedLengths"
424
424
  },
425
425
  {
426
426
  "name": "dynamicData",
@@ -681,7 +681,7 @@ declare const abi: [
681
681
  {
682
682
  "name": "encodedLengths",
683
683
  "type": "bytes32",
684
- "internalType": "PackedCounter"
684
+ "internalType": "EncodedLengths"
685
685
  },
686
686
  {
687
687
  "name": "dynamicData",
@@ -862,25 +862,6 @@ declare const abi: [
862
862
  ],
863
863
  "anonymous": false
864
864
  },
865
- {
866
- "type": "event",
867
- "name": "Store_DeleteRecord",
868
- "inputs": [
869
- {
870
- "name": "tableId",
871
- "type": "bytes32",
872
- "indexed": true,
873
- "internalType": "ResourceId"
874
- },
875
- {
876
- "name": "keyTuple",
877
- "type": "bytes32[]",
878
- "indexed": false,
879
- "internalType": "bytes32[]"
880
- }
881
- ],
882
- "anonymous": false
883
- },
884
865
  {
885
866
  "type": "event",
886
867
  "name": "Store_SetRecord",
@@ -907,7 +888,7 @@ declare const abi: [
907
888
  "name": "encodedLengths",
908
889
  "type": "bytes32",
909
890
  "indexed": false,
910
- "internalType": "PackedCounter"
891
+ "internalType": "EncodedLengths"
911
892
  },
912
893
  {
913
894
  "name": "dynamicData",
@@ -920,7 +901,7 @@ declare const abi: [
920
901
  },
921
902
  {
922
903
  "type": "event",
923
- "name": "Store_SetRecord",
904
+ "name": "Store_SpliceDynamicData",
924
905
  "inputs": [
925
906
  {
926
907
  "name": "tableId",
@@ -935,41 +916,10 @@ declare const abi: [
935
916
  "internalType": "bytes32[]"
936
917
  },
937
918
  {
938
- "name": "staticData",
939
- "type": "bytes",
940
- "indexed": false,
941
- "internalType": "bytes"
942
- },
943
- {
944
- "name": "encodedLengths",
945
- "type": "bytes32",
946
- "indexed": false,
947
- "internalType": "PackedCounter"
948
- },
949
- {
950
- "name": "dynamicData",
951
- "type": "bytes",
952
- "indexed": false,
953
- "internalType": "bytes"
954
- }
955
- ],
956
- "anonymous": false
957
- },
958
- {
959
- "type": "event",
960
- "name": "Store_SpliceDynamicData",
961
- "inputs": [
962
- {
963
- "name": "tableId",
964
- "type": "bytes32",
965
- "indexed": true,
966
- "internalType": "ResourceId"
967
- },
968
- {
969
- "name": "keyTuple",
970
- "type": "bytes32[]",
919
+ "name": "dynamicFieldIndex",
920
+ "type": "uint8",
971
921
  "indexed": false,
972
- "internalType": "bytes32[]"
922
+ "internalType": "uint8"
973
923
  },
974
924
  {
975
925
  "name": "start",
@@ -987,7 +937,7 @@ declare const abi: [
987
937
  "name": "encodedLengths",
988
938
  "type": "bytes32",
989
939
  "indexed": false,
990
- "internalType": "PackedCounter"
940
+ "internalType": "EncodedLengths"
991
941
  },
992
942
  {
993
943
  "name": "data",
@@ -1000,7 +950,7 @@ declare const abi: [
1000
950
  },
1001
951
  {
1002
952
  "type": "event",
1003
- "name": "Store_SpliceDynamicData",
953
+ "name": "Store_SpliceStaticData",
1004
954
  "inputs": [
1005
955
  {
1006
956
  "name": "tableId",
@@ -1020,18 +970,6 @@ declare const abi: [
1020
970
  "indexed": false,
1021
971
  "internalType": "uint48"
1022
972
  },
1023
- {
1024
- "name": "deleteCount",
1025
- "type": "uint40",
1026
- "indexed": false,
1027
- "internalType": "uint40"
1028
- },
1029
- {
1030
- "name": "encodedLengths",
1031
- "type": "bytes32",
1032
- "indexed": false,
1033
- "internalType": "PackedCounter"
1034
- },
1035
973
  {
1036
974
  "name": "data",
1037
975
  "type": "bytes",
@@ -1042,70 +980,131 @@ declare const abi: [
1042
980
  "anonymous": false
1043
981
  },
1044
982
  {
1045
- "type": "event",
1046
- "name": "Store_SpliceStaticData",
983
+ "type": "error",
984
+ "name": "EncodedLengths_InvalidLength",
1047
985
  "inputs": [
1048
986
  {
1049
- "name": "tableId",
1050
- "type": "bytes32",
1051
- "indexed": true,
1052
- "internalType": "ResourceId"
1053
- },
987
+ "name": "length",
988
+ "type": "uint256",
989
+ "internalType": "uint256"
990
+ }
991
+ ]
992
+ },
993
+ {
994
+ "type": "error",
995
+ "name": "FieldLayout_Empty",
996
+ "inputs": []
997
+ },
998
+ {
999
+ "type": "error",
1000
+ "name": "FieldLayout_InvalidStaticDataLength",
1001
+ "inputs": [
1054
1002
  {
1055
- "name": "keyTuple",
1056
- "type": "bytes32[]",
1057
- "indexed": false,
1058
- "internalType": "bytes32[]"
1003
+ "name": "staticDataLength",
1004
+ "type": "uint256",
1005
+ "internalType": "uint256"
1059
1006
  },
1060
1007
  {
1061
- "name": "start",
1062
- "type": "uint48",
1063
- "indexed": false,
1064
- "internalType": "uint48"
1065
- },
1008
+ "name": "computedStaticDataLength",
1009
+ "type": "uint256",
1010
+ "internalType": "uint256"
1011
+ }
1012
+ ]
1013
+ },
1014
+ {
1015
+ "type": "error",
1016
+ "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
1017
+ "inputs": [
1066
1018
  {
1067
- "name": "data",
1068
- "type": "bytes",
1069
- "indexed": false,
1070
- "internalType": "bytes"
1019
+ "name": "index",
1020
+ "type": "uint256",
1021
+ "internalType": "uint256"
1071
1022
  }
1072
- ],
1073
- "anonymous": false
1023
+ ]
1074
1024
  },
1075
1025
  {
1076
- "type": "event",
1077
- "name": "Store_SpliceStaticData",
1026
+ "type": "error",
1027
+ "name": "FieldLayout_StaticLengthIsNotZero",
1078
1028
  "inputs": [
1079
1029
  {
1080
- "name": "tableId",
1081
- "type": "bytes32",
1082
- "indexed": true,
1083
- "internalType": "ResourceId"
1084
- },
1030
+ "name": "index",
1031
+ "type": "uint256",
1032
+ "internalType": "uint256"
1033
+ }
1034
+ ]
1035
+ },
1036
+ {
1037
+ "type": "error",
1038
+ "name": "FieldLayout_StaticLengthIsZero",
1039
+ "inputs": [
1085
1040
  {
1086
- "name": "keyTuple",
1087
- "type": "bytes32[]",
1088
- "indexed": false,
1089
- "internalType": "bytes32[]"
1041
+ "name": "index",
1042
+ "type": "uint256",
1043
+ "internalType": "uint256"
1044
+ }
1045
+ ]
1046
+ },
1047
+ {
1048
+ "type": "error",
1049
+ "name": "FieldLayout_TooManyDynamicFields",
1050
+ "inputs": [
1051
+ {
1052
+ "name": "numFields",
1053
+ "type": "uint256",
1054
+ "internalType": "uint256"
1090
1055
  },
1091
1056
  {
1092
- "name": "start",
1093
- "type": "uint48",
1094
- "indexed": false,
1095
- "internalType": "uint48"
1057
+ "name": "maxFields",
1058
+ "type": "uint256",
1059
+ "internalType": "uint256"
1060
+ }
1061
+ ]
1062
+ },
1063
+ {
1064
+ "type": "error",
1065
+ "name": "FieldLayout_TooManyFields",
1066
+ "inputs": [
1067
+ {
1068
+ "name": "numFields",
1069
+ "type": "uint256",
1070
+ "internalType": "uint256"
1096
1071
  },
1097
1072
  {
1098
- "name": "data",
1099
- "type": "bytes",
1100
- "indexed": false,
1101
- "internalType": "bytes"
1073
+ "name": "maxFields",
1074
+ "type": "uint256",
1075
+ "internalType": "uint256"
1102
1076
  }
1103
- ],
1104
- "anonymous": false
1077
+ ]
1105
1078
  },
1106
1079
  {
1107
1080
  "type": "error",
1108
- "name": "PackedCounter_InvalidLength",
1081
+ "name": "Module_AlreadyInstalled",
1082
+ "inputs": []
1083
+ },
1084
+ {
1085
+ "type": "error",
1086
+ "name": "Module_MissingDependency",
1087
+ "inputs": [
1088
+ {
1089
+ "name": "dependency",
1090
+ "type": "address",
1091
+ "internalType": "address"
1092
+ }
1093
+ ]
1094
+ },
1095
+ {
1096
+ "type": "error",
1097
+ "name": "Module_NonRootInstallNotSupported",
1098
+ "inputs": []
1099
+ },
1100
+ {
1101
+ "type": "error",
1102
+ "name": "Module_RootInstallNotSupported",
1103
+ "inputs": []
1104
+ },
1105
+ {
1106
+ "type": "error",
1107
+ "name": "Schema_InvalidLength",
1109
1108
  "inputs": [
1110
1109
  {
1111
1110
  "name": "length",
@@ -1114,6 +1113,11 @@ declare const abi: [
1114
1113
  }
1115
1114
  ]
1116
1115
  },
1116
+ {
1117
+ "type": "error",
1118
+ "name": "Schema_StaticTypeAfterDynamicType",
1119
+ "inputs": []
1120
+ },
1117
1121
  {
1118
1122
  "type": "error",
1119
1123
  "name": "Slice_OutOfBounds",
@@ -1167,6 +1171,38 @@ declare const abi: [
1167
1171
  }
1168
1172
  ]
1169
1173
  },
1174
+ {
1175
+ "type": "error",
1176
+ "name": "Store_InvalidFieldNamesLength",
1177
+ "inputs": [
1178
+ {
1179
+ "name": "expected",
1180
+ "type": "uint256",
1181
+ "internalType": "uint256"
1182
+ },
1183
+ {
1184
+ "name": "received",
1185
+ "type": "uint256",
1186
+ "internalType": "uint256"
1187
+ }
1188
+ ]
1189
+ },
1190
+ {
1191
+ "type": "error",
1192
+ "name": "Store_InvalidKeyNamesLength",
1193
+ "inputs": [
1194
+ {
1195
+ "name": "expected",
1196
+ "type": "uint256",
1197
+ "internalType": "uint256"
1198
+ },
1199
+ {
1200
+ "name": "received",
1201
+ "type": "uint256",
1202
+ "internalType": "uint256"
1203
+ }
1204
+ ]
1205
+ },
1170
1206
  {
1171
1207
  "type": "error",
1172
1208
  "name": "Store_InvalidResourceType",
@@ -1209,6 +1245,86 @@ declare const abi: [
1209
1245
  }
1210
1246
  ]
1211
1247
  },
1248
+ {
1249
+ "type": "error",
1250
+ "name": "Store_InvalidStaticDataLength",
1251
+ "inputs": [
1252
+ {
1253
+ "name": "expected",
1254
+ "type": "uint256",
1255
+ "internalType": "uint256"
1256
+ },
1257
+ {
1258
+ "name": "received",
1259
+ "type": "uint256",
1260
+ "internalType": "uint256"
1261
+ }
1262
+ ]
1263
+ },
1264
+ {
1265
+ "type": "error",
1266
+ "name": "Store_InvalidValueSchemaDynamicLength",
1267
+ "inputs": [
1268
+ {
1269
+ "name": "expected",
1270
+ "type": "uint256",
1271
+ "internalType": "uint256"
1272
+ },
1273
+ {
1274
+ "name": "received",
1275
+ "type": "uint256",
1276
+ "internalType": "uint256"
1277
+ }
1278
+ ]
1279
+ },
1280
+ {
1281
+ "type": "error",
1282
+ "name": "Store_InvalidValueSchemaLength",
1283
+ "inputs": [
1284
+ {
1285
+ "name": "expected",
1286
+ "type": "uint256",
1287
+ "internalType": "uint256"
1288
+ },
1289
+ {
1290
+ "name": "received",
1291
+ "type": "uint256",
1292
+ "internalType": "uint256"
1293
+ }
1294
+ ]
1295
+ },
1296
+ {
1297
+ "type": "error",
1298
+ "name": "Store_InvalidValueSchemaStaticLength",
1299
+ "inputs": [
1300
+ {
1301
+ "name": "expected",
1302
+ "type": "uint256",
1303
+ "internalType": "uint256"
1304
+ },
1305
+ {
1306
+ "name": "received",
1307
+ "type": "uint256",
1308
+ "internalType": "uint256"
1309
+ }
1310
+ ]
1311
+ },
1312
+ {
1313
+ "type": "error",
1314
+ "name": "Store_TableAlreadyExists",
1315
+ "inputs": [
1316
+ {
1317
+ "name": "tableId",
1318
+ "type": "bytes32",
1319
+ "internalType": "ResourceId"
1320
+ },
1321
+ {
1322
+ "name": "tableIdString",
1323
+ "type": "string",
1324
+ "internalType": "string"
1325
+ }
1326
+ ]
1327
+ },
1212
1328
  {
1213
1329
  "type": "error",
1214
1330
  "name": "Store_TableNotFound",
@@ -1273,17 +1389,6 @@ declare const abi: [
1273
1389
  }
1274
1390
  ]
1275
1391
  },
1276
- {
1277
- "type": "error",
1278
- "name": "World_DirectCallToSystemForbidden",
1279
- "inputs": [
1280
- {
1281
- "name": "caller",
1282
- "type": "address",
1283
- "internalType": "address"
1284
- }
1285
- ]
1286
- },
1287
1392
  {
1288
1393
  "type": "error",
1289
1394
  "name": "World_FunctionSelectorAlreadyExists",