@latticexyz/world-module-erc20 2.2.15-main-09536b0614a03478fa0f53ec8beefef80455387d → 2.2.15-main-d17a9be933cf4dbf869e26e6f9ee070444048312

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 (205) hide show
  1. package/README.md +4 -8
  2. package/out/AccessControl.sol/AccessControl.json +1 -1
  3. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  4. package/out/Allowances.sol/Allowances.json +1 -1
  5. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  6. package/out/Balances.sol/Balances.json +1 -1
  7. package/out/Base.sol/CommonBase.json +1 -1
  8. package/out/Base.sol/ScriptBase.json +1 -1
  9. package/out/Base.sol/TestBase.json +1 -1
  10. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  11. package/out/Bytes.sol/Bytes.json +1 -1
  12. package/out/Constants.sol/ERC20TableNames.json +1 -1
  13. package/out/Constants.sol/ModuleConstants.json +1 -1
  14. package/out/Constants.sol/OwnableTableNames.json +1 -1
  15. package/out/Constants.sol/PausableTableNames.json +1 -1
  16. package/out/Context.sol/Context.json +1 -1
  17. package/out/DecodeSlice.sol/DecodeSlice.json +1 -1
  18. package/out/Delegation.sol/Delegation.json +1 -1
  19. package/out/ERC165Checker.sol/ERC165Checker.json +1 -1
  20. package/out/ERC20BaseTest.sol/ERC20BehaviorTest.json +1 -1
  21. package/out/ERC20BaseTest.sol/ERC20WithInternalStoreBehaviorTest.json +1 -1
  22. package/out/ERC20BaseTest.sol/ERC20WithInternalStoreTest.json +1 -1
  23. package/out/ERC20BaseTest.sol/ERC20WithWorldBehaviorTest.json +1 -1
  24. package/out/ERC20BaseTest.sol/ERC20WithWorldTest.json +1 -1
  25. package/out/ERC20BaseTest.sol/MockERC20Base.json +1 -1
  26. package/out/ERC20BaseTest.sol/MockERC20WithInternalStore.json +1 -1
  27. package/out/ERC20BaseTest.sol/MockERC20WithWorld.abi.json +28 -0
  28. package/out/ERC20BaseTest.sol/MockERC20WithWorld.abi.json.d.ts +28 -0
  29. package/out/ERC20BaseTest.sol/MockERC20WithWorld.json +1 -1
  30. package/out/ERC20BaseTest.sol/TestConstants.json +1 -1
  31. package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
  32. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
  33. package/out/ERC20Burnable.t.sol/ERC20BurnableWithInternalStoreTest.json +1 -1
  34. package/out/ERC20Burnable.t.sol/ERC20BurnableWithWorldTest.json +1 -1
  35. package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.json +1 -1
  36. package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.abi.json +28 -0
  37. package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.abi.json.d.ts +28 -0
  38. package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.json +1 -1
  39. package/out/ERC20Metadata.sol/ERC20Metadata.json +1 -1
  40. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  41. package/out/ERC20Module.sol/ERC20RegistryLib.json +1 -1
  42. package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
  43. package/out/ERC20Module.t.sol/TestConstants.json +1 -1
  44. package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
  45. package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +1 -1
  46. package/out/ERC20Pausable.t.sol/ERC20PausableWithInternalStoreTest.json +1 -1
  47. package/out/ERC20Pausable.t.sol/ERC20PausableWithWorldTest.json +1 -1
  48. package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
  49. package/out/ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.json +1 -1
  50. package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.abi.json +28 -0
  51. package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.abi.json.d.ts +28 -0
  52. package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.json +1 -1
  53. package/out/ERC20Registry.sol/ERC20Registry.json +1 -1
  54. package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.json +1 -1
  55. package/out/ERC20WithWorld.sol/ERC20WithWorld.abi.json +28 -0
  56. package/out/ERC20WithWorld.sol/ERC20WithWorld.abi.json.d.ts +28 -0
  57. package/out/ERC20WithWorld.sol/ERC20WithWorld.json +1 -1
  58. package/out/EncodeArray.sol/EncodeArray.json +1 -1
  59. package/out/EncodedLengths.sol/EncodedLengthsInstance.json +1 -1
  60. package/out/EncodedLengths.sol/EncodedLengthsLib.json +1 -1
  61. package/out/FieldLayout.sol/FieldLayoutInstance.json +1 -1
  62. package/out/FieldLayout.sol/FieldLayoutLib.json +1 -1
  63. package/out/FunctionSelectors.sol/FunctionSelectors.json +1 -1
  64. package/out/FunctionSignatures.sol/FunctionSignatures.json +1 -1
  65. package/out/GasReporter.sol/GasReporter.json +1 -1
  66. package/out/Hook.sol/HookInstance.json +1 -1
  67. package/out/Hook.sol/HookLib.json +1 -1
  68. package/out/Hooks.sol/Hooks.json +1 -1
  69. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +1 -1
  70. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +1 -1
  71. package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
  72. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +1 -1
  73. package/out/IDelegationControl.sol/IDelegationControl.json +1 -1
  74. package/out/IERC165.sol/IERC165.json +1 -1
  75. package/out/IEncodedLengthsErrors.sol/IEncodedLengthsErrors.json +1 -1
  76. package/out/IFieldLayoutErrors.sol/IFieldLayoutErrors.json +1 -1
  77. package/out/IModule.sol/IModule.json +1 -1
  78. package/out/IModuleErrors.sol/IModuleErrors.json +1 -1
  79. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +1 -1
  80. package/out/IMulticall3.sol/IMulticall3.json +1 -1
  81. package/out/IRegistrationSystem.sol/IRegistrationSystem.json +1 -1
  82. package/out/ISchemaErrors.sol/ISchemaErrors.json +1 -1
  83. package/out/ISliceErrors.sol/ISliceErrors.json +1 -1
  84. package/out/IStore.sol/IStore.json +1 -1
  85. package/out/IStoreErrors.sol/IStoreErrors.json +1 -1
  86. package/out/IStoreEvents.sol/IStoreEvents.json +1 -1
  87. package/out/IStoreHook.sol/IStoreHook.json +1 -1
  88. package/out/IStoreKernel.sol/IStoreKernel.json +1 -1
  89. package/out/IStoreRead.sol/IStoreRead.json +1 -1
  90. package/out/IStoreRegistration.sol/IStoreRegistration.json +1 -1
  91. package/out/IStoreWrite.sol/IStoreWrite.json +1 -1
  92. package/out/ISystemHook.sol/ISystemHook.json +1 -1
  93. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +1 -1
  94. package/out/IWorldErrors.sol/IWorldErrors.json +1 -1
  95. package/out/IWorldEvents.sol/IWorldEvents.json +1 -1
  96. package/out/IWorldKernel.sol/IWorldCall.json +1 -1
  97. package/out/IWorldKernel.sol/IWorldKernel.json +1 -1
  98. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +1 -1
  99. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +1 -1
  100. package/out/InitModule.sol/InitModule.json +1 -1
  101. package/out/InitModuleAddress.sol/InitModuleAddress.json +1 -1
  102. package/out/InstalledModules.sol/InstalledModules.json +1 -1
  103. package/out/LimitedCallContext.sol/LimitedCallContext.json +1 -1
  104. package/out/MUDERC20.sol/MUDERC20.json +1 -1
  105. package/out/Memory.sol/Memory.json +1 -1
  106. package/out/Module.sol/Module.json +1 -1
  107. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
  108. package/out/NamespaceDelegationControl.sol/NamespaceDelegationControl.json +1 -1
  109. package/out/NamespaceOwner.sol/NamespaceOwner.json +1 -1
  110. package/out/Ownable.sol/Ownable.json +1 -1
  111. package/out/Owner.sol/Owner.json +1 -1
  112. package/out/Pausable.sol/Pausable.json +1 -1
  113. package/out/Paused.sol/Paused.json +1 -1
  114. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  115. package/out/ResourceAccess.sol/ResourceAccess.json +1 -1
  116. package/out/ResourceId.sol/ResourceIdInstance.json +1 -1
  117. package/out/ResourceId.sol/ResourceIdLib.json +1 -1
  118. package/out/ResourceIds.sol/ResourceIds.json +1 -1
  119. package/out/Schema.sol/SchemaInstance.json +1 -1
  120. package/out/Schema.sol/SchemaLib.json +1 -1
  121. package/out/Slice.sol/SliceInstance.json +1 -1
  122. package/out/Slice.sol/SliceLib.json +1 -1
  123. package/out/StdAssertions.sol/StdAssertions.json +1 -1
  124. package/out/StdChains.sol/StdChains.json +1 -1
  125. package/out/StdCheats.sol/StdCheats.json +1 -1
  126. package/out/StdCheats.sol/StdCheatsSafe.json +1 -1
  127. package/out/StdError.sol/stdError.json +1 -1
  128. package/out/StdInvariant.sol/StdInvariant.json +1 -1
  129. package/out/StdJson.sol/stdJson.json +1 -1
  130. package/out/StdMath.sol/stdMath.json +1 -1
  131. package/out/StdStorage.sol/stdStorage.json +1 -1
  132. package/out/StdStorage.sol/stdStorageSafe.json +1 -1
  133. package/out/StdStyle.sol/StdStyle.json +1 -1
  134. package/out/StdUtils.sol/StdUtils.json +1 -1
  135. package/out/Storage.sol/Storage.json +1 -1
  136. package/out/Store.sol/Store.json +1 -1
  137. package/out/StoreConsumer.sol/StoreConsumer.json +1 -1
  138. package/out/StoreCore.sol/StoreCore.json +1 -1
  139. package/out/StoreCore.sol/StoreCoreInternal.json +1 -1
  140. package/out/StoreHooks.sol/StoreHooks.json +1 -1
  141. package/out/StoreKernel.sol/StoreKernel.json +1 -1
  142. package/out/StoreRead.sol/StoreRead.json +1 -1
  143. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
  144. package/out/StoreSwitch.sol/StoreSwitch.json +1 -1
  145. package/out/System.sol/System.json +1 -1
  146. package/out/SystemCall.sol/SystemCall.json +1 -1
  147. package/out/SystemHooks.sol/SystemHooks.json +1 -1
  148. package/out/SystemRegistry.sol/SystemRegistry.json +1 -1
  149. package/out/Systems.sol/Systems.json +1 -1
  150. package/out/Tables.sol/Tables.json +1 -1
  151. package/out/Test.sol/Test.json +1 -1
  152. package/out/TightCoder.sol/TightCoder.json +1 -1
  153. package/out/TotalSupply.sol/TotalSupply.json +1 -1
  154. package/out/UserDelegationControl.sol/UserDelegationControl.json +1 -1
  155. package/out/Vm.sol/Vm.json +1 -1
  156. package/out/Vm.sol/VmSafe.json +1 -1
  157. package/out/WithStore.sol/WithStore.json +1 -1
  158. package/out/WithWorld.sol/WithWorld.abi.json +28 -0
  159. package/out/WithWorld.sol/WithWorld.abi.json.d.ts +28 -0
  160. package/out/WithWorld.sol/WithWorld.json +1 -1
  161. package/out/World.sol/World.json +1 -1
  162. package/out/WorldContext.sol/WorldContextConsumer.json +1 -1
  163. package/out/WorldContext.sol/WorldContextConsumerLib.json +1 -1
  164. package/out/WorldContext.sol/WorldContextProviderLib.json +1 -1
  165. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
  166. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +1 -1
  167. package/out/WorldResourceId.sol/WorldResourceIdLib.json +1 -1
  168. package/out/build-info/0225f5bab1d1e5998034e9a265e135de.json +1 -0
  169. package/out/console.sol/console.json +1 -1
  170. package/out/console2.sol/console2.json +1 -1
  171. package/out/constants.sol/LayoutOffsets.json +1 -1
  172. package/out/safeconsole.sol/safeconsole.json +1 -1
  173. package/out/src/IERC165.sol/IERC165.json +1 -1
  174. package/out/tables/Balances.sol/Balances.json +1 -1
  175. package/out/test.sol/DSTest.json +1 -1
  176. package/package.json +8 -7
  177. package/src/examples/ERC20WithInternalStore.sol +5 -5
  178. package/src/examples/ERC20WithWorld.sol +7 -5
  179. package/src/{ERC20Module.sol → experimental/ERC20Module.sol} +2 -2
  180. package/src/{MUDERC20.sol → experimental/MUDERC20.sol} +9 -10
  181. package/src/{Ownable.sol → experimental/Ownable.sol} +3 -3
  182. package/src/{Pausable.sol → experimental/Pausable.sol} +3 -3
  183. package/out/StoreConsumer.t.sol/MockStoreConsumer.abi.json +0 -52
  184. package/out/StoreConsumer.t.sol/MockStoreConsumer.abi.json.d.ts +0 -54
  185. package/out/StoreConsumer.t.sol/MockStoreConsumer.json +0 -1
  186. package/out/StoreConsumer.t.sol/MockWithInternalStore.abi.json +0 -376
  187. package/out/StoreConsumer.t.sol/MockWithInternalStore.abi.json.d.ts +0 -378
  188. package/out/StoreConsumer.t.sol/MockWithInternalStore.json +0 -1
  189. package/out/StoreConsumer.t.sol/MockWithStore.abi.json +0 -387
  190. package/out/StoreConsumer.t.sol/MockWithStore.abi.json.d.ts +0 -389
  191. package/out/StoreConsumer.t.sol/MockWithStore.json +0 -1
  192. package/out/StoreConsumer.t.sol/MockWithWorld.abi.json +0 -430
  193. package/out/StoreConsumer.t.sol/MockWithWorld.abi.json.d.ts +0 -432
  194. package/out/StoreConsumer.t.sol/MockWithWorld.json +0 -1
  195. package/out/StoreConsumer.t.sol/StoreConsumerTest.abi.json +0 -548
  196. package/out/StoreConsumer.t.sol/StoreConsumerTest.abi.json.d.ts +0 -550
  197. package/out/StoreConsumer.t.sol/StoreConsumerTest.json +0 -1
  198. package/out/build-info/2c01de4cb5e6ddbaa0c248a15ba67933.json +0 -1
  199. package/src/Context.sol +0 -10
  200. package/src/StoreConsumer.sol +0 -24
  201. package/src/WithStore.sol +0 -22
  202. package/src/WithWorld.sol +0 -40
  203. /package/src/{Constants.sol → experimental/Constants.sol} +0 -0
  204. /package/src/{ERC20Burnable.sol → experimental/ERC20Burnable.sol} +0 -0
  205. /package/src/{ERC20Pausable.sol → experimental/ERC20Pausable.sol} +0 -0
@@ -172,6 +172,19 @@
172
172
  ],
173
173
  "stateMutability": "view"
174
174
  },
175
+ {
176
+ "type": "function",
177
+ "name": "getWorld",
178
+ "inputs": [],
179
+ "outputs": [
180
+ {
181
+ "name": "",
182
+ "type": "address",
183
+ "internalType": "contract IBaseWorld"
184
+ }
185
+ ],
186
+ "stateMutability": "view"
187
+ },
175
188
  {
176
189
  "type": "function",
177
190
  "name": "name",
@@ -741,5 +754,20 @@
741
754
  "type": "error",
742
755
  "name": "WithWorld_CallerHasNoNamespaceAccess",
743
756
  "inputs": []
757
+ },
758
+ {
759
+ "type": "error",
760
+ "name": "WithWorld_NamespaceAlreadyExists",
761
+ "inputs": []
762
+ },
763
+ {
764
+ "type": "error",
765
+ "name": "WithWorld_NamespaceDoesNotExists",
766
+ "inputs": []
767
+ },
768
+ {
769
+ "type": "error",
770
+ "name": "WithWorld_RootNamespaceNotAllowed",
771
+ "inputs": []
744
772
  }
745
773
  ]
@@ -172,6 +172,19 @@ declare const abi: [
172
172
  ],
173
173
  "stateMutability": "view"
174
174
  },
175
+ {
176
+ "type": "function",
177
+ "name": "getWorld",
178
+ "inputs": [],
179
+ "outputs": [
180
+ {
181
+ "name": "",
182
+ "type": "address",
183
+ "internalType": "contract IBaseWorld"
184
+ }
185
+ ],
186
+ "stateMutability": "view"
187
+ },
175
188
  {
176
189
  "type": "function",
177
190
  "name": "name",
@@ -741,6 +754,21 @@ declare const abi: [
741
754
  "type": "error",
742
755
  "name": "WithWorld_CallerHasNoNamespaceAccess",
743
756
  "inputs": []
757
+ },
758
+ {
759
+ "type": "error",
760
+ "name": "WithWorld_NamespaceAlreadyExists",
761
+ "inputs": []
762
+ },
763
+ {
764
+ "type": "error",
765
+ "name": "WithWorld_NamespaceDoesNotExists",
766
+ "inputs": []
767
+ },
768
+ {
769
+ "type": "error",
770
+ "name": "WithWorld_RootNamespaceNotAllowed",
771
+ "inputs": []
744
772
  }
745
773
  ];
746
774