@latticexyz/world-module-erc20 2.2.20-b7901812d4035faa3ec9bb75f31ffe7af398bdf2 → 2.2.21-041031d271b62a7f41f7c6dc0098c1c0ae222bd5

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 (278) hide show
  1. package/README.md +11 -39
  2. package/out/AccessControl.sol/AccessControl.json +1 -1
  3. package/out/AccessManagementSystem.sol/AccessManagementSystem.abi.json +1 -1
  4. package/out/AccessManagementSystem.sol/AccessManagementSystem.abi.json.d.ts +1 -1
  5. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  6. package/out/Allowances.sol/Allowances.json +1 -1
  7. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.abi.json +1 -1
  8. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.abi.json.d.ts +1 -1
  9. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  10. package/out/Balances.sol/Balances.json +1 -1
  11. package/out/Base.sol/CommonBase.json +1 -1
  12. package/out/Base.sol/ScriptBase.json +1 -1
  13. package/out/Base.sol/TestBase.json +1 -1
  14. package/out/BatchCallSystem.sol/BatchCallSystem.abi.json +1 -1
  15. package/out/BatchCallSystem.sol/BatchCallSystem.abi.json.d.ts +1 -1
  16. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  17. package/out/Bytes.sol/Bytes.json +1 -1
  18. package/out/Constants.sol/ERC20TableNames.json +1 -1
  19. package/out/Constants.sol/ModuleConstants.json +1 -1
  20. package/out/Constants.sol/PausableTableNames.json +1 -1
  21. package/out/DecodeSlice.sol/DecodeSlice.json +1 -1
  22. package/out/Delegation.sol/Delegation.json +1 -1
  23. package/out/ERC165Checker.sol/ERC165Checker.json +1 -1
  24. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json +331 -0
  25. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json.d.ts +331 -0
  26. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
  27. package/out/{ERC20Burnable.t.sol/ERC20BurnableWithWorldTest.abi.json → ERC20BaseTest.t.sol/ERC20Test.abi.json} +324 -7
  28. package/out/{ERC20Burnable.t.sol/ERC20BurnableWithWorldTest.abi.json.d.ts → ERC20BaseTest.t.sol/ERC20Test.abi.json.d.ts} +324 -7
  29. package/out/ERC20BaseTest.t.sol/ERC20Test.json +1 -0
  30. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +93 -198
  31. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +93 -198
  32. package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
  33. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +75 -235
  34. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +75 -235
  35. package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
  36. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json +331 -0
  37. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json.d.ts +331 -0
  38. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
  39. package/out/{ERC20BaseTest.t.sol/MockERC20WithInternalStore.abi.json → ERC20Burnable.t.sol/MockERC20Burnable.abi.json} +124 -198
  40. package/out/{ERC20BaseTest.t.sol/MockERC20WithInternalStore.abi.json.d.ts → ERC20Burnable.t.sol/MockERC20Burnable.abi.json.d.ts} +124 -198
  41. package/out/ERC20Burnable.t.sol/MockERC20Burnable.json +1 -0
  42. package/out/ERC20Metadata.sol/ERC20Metadata.json +1 -1
  43. package/out/ERC20Module.sol/ERC20Module.abi.json +3 -3
  44. package/out/ERC20Module.sol/ERC20Module.abi.json.d.ts +3 -3
  45. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  46. package/out/ERC20Module.sol/ERC20ModuleLib.json +1 -0
  47. package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
  48. package/out/ERC20Module.t.sol/TestConstants.json +1 -1
  49. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json +76 -236
  50. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +76 -236
  51. package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
  52. package/out/ERC20Pausable.t.sol/{ERC20PausableWithWorldTest.abi.json → ERC20PausableTest.abi.json} +324 -0
  53. package/out/ERC20Pausable.t.sol/{ERC20PausableWithWorldTest.abi.json.d.ts → ERC20PausableTest.abi.json.d.ts} +324 -0
  54. package/out/ERC20Pausable.t.sol/ERC20PausableTest.json +1 -0
  55. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +130 -199
  56. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +130 -199
  57. package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
  58. package/out/{ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.abi.json → ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json} +163 -209
  59. package/out/{ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.abi.json.d.ts → ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json.d.ts} +163 -209
  60. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.json +1 -0
  61. package/out/ERC20Registry.sol/ERC20Registry.json +1 -1
  62. package/out/EncodeArray.sol/EncodeArray.json +1 -1
  63. package/out/EncodedLengths.sol/EncodedLengthsInstance.json +1 -1
  64. package/out/EncodedLengths.sol/EncodedLengthsLib.json +1 -1
  65. package/out/FieldLayout.sol/FieldLayoutInstance.json +1 -1
  66. package/out/FieldLayout.sol/FieldLayoutLib.json +1 -1
  67. package/out/FunctionSelectors.sol/FunctionSelectors.json +1 -1
  68. package/out/FunctionSignatures.sol/FunctionSignatures.json +1 -1
  69. package/out/GasReporter.sol/GasReporter.json +1 -1
  70. package/out/Hook.sol/HookInstance.json +1 -1
  71. package/out/Hook.sol/HookLib.json +1 -1
  72. package/out/Hooks.sol/Hooks.json +1 -1
  73. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +1 -1
  74. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +1 -1
  75. package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
  76. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +1 -1
  77. package/out/IDelegationControl.sol/IDelegationControl.json +1 -1
  78. package/out/IERC165.sol/IERC165.json +1 -1
  79. package/out/IERC20.sol/IERC20.json +1 -1
  80. package/out/IERC20Errors.sol/IERC20Errors.json +1 -1
  81. package/out/IERC20Events.sol/IERC20Events.json +1 -1
  82. package/out/IERC20Metadata.sol/IERC20Metadata.json +1 -1
  83. package/out/IEncodedLengthsErrors.sol/IEncodedLengthsErrors.json +1 -1
  84. package/out/IFieldLayoutErrors.sol/IFieldLayoutErrors.json +1 -1
  85. package/out/IModule.sol/IModule.json +1 -1
  86. package/out/IModuleErrors.sol/IModuleErrors.json +1 -1
  87. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +1 -1
  88. package/out/IMulticall3.sol/IMulticall3.json +1 -1
  89. package/out/IRegistrationSystem.sol/IRegistrationSystem.json +1 -1
  90. package/out/ISchemaErrors.sol/ISchemaErrors.json +1 -1
  91. package/out/ISliceErrors.sol/ISliceErrors.json +1 -1
  92. package/out/IStore.sol/IStore.json +1 -1
  93. package/out/IStoreErrors.sol/IStoreErrors.json +1 -1
  94. package/out/IStoreEvents.sol/IStoreEvents.json +1 -1
  95. package/out/IStoreHook.sol/IStoreHook.json +1 -1
  96. package/out/IStoreKernel.sol/IStoreKernel.json +1 -1
  97. package/out/IStoreRead.sol/IStoreRead.json +1 -1
  98. package/out/IStoreRegistration.sol/IStoreRegistration.json +1 -1
  99. package/out/IStoreWrite.sol/IStoreWrite.json +1 -1
  100. package/out/ISystemHook.sol/ISystemHook.json +1 -1
  101. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +1 -1
  102. package/out/IWorldErrors.sol/IWorldErrors.json +1 -1
  103. package/out/IWorldEvents.sol/IWorldEvents.json +1 -1
  104. package/out/IWorldKernel.sol/IWorldCall.json +1 -1
  105. package/out/IWorldKernel.sol/IWorldKernel.json +1 -1
  106. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +1 -1
  107. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +1 -1
  108. package/out/InitModule.sol/InitModule.abi.json +3 -3
  109. package/out/InitModule.sol/InitModule.abi.json.d.ts +3 -3
  110. package/out/InitModule.sol/InitModule.json +1 -1
  111. package/out/InitModuleAddress.sol/InitModuleAddress.json +1 -1
  112. package/out/InstalledModules.sol/InstalledModules.json +1 -1
  113. package/out/LimitedCallContext.sol/LimitedCallContext.json +1 -1
  114. package/out/MUDERC20.sol/MUDERC20.abi.json +75 -235
  115. package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +75 -235
  116. package/out/MUDERC20.sol/MUDERC20.json +1 -1
  117. package/out/Memory.sol/Memory.json +1 -1
  118. package/out/Module.sol/Module.abi.json +1 -1
  119. package/out/Module.sol/Module.abi.json.d.ts +1 -1
  120. package/out/Module.sol/Module.json +1 -1
  121. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json +1 -1
  122. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json.d.ts +1 -1
  123. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
  124. package/out/NamespaceDelegationControl.sol/NamespaceDelegationControl.json +1 -1
  125. package/out/NamespaceOwner.sol/NamespaceOwner.json +1 -1
  126. package/out/Owner.sol/Owner.json +1 -1
  127. package/out/Pausable.sol/Pausable.abi.json +64 -276
  128. package/out/Pausable.sol/Pausable.abi.json.d.ts +64 -276
  129. package/out/Pausable.sol/Pausable.json +1 -1
  130. package/out/Paused.sol/Paused.json +1 -1
  131. package/out/RegistrationSystem.sol/RegistrationSystem.abi.json +1 -1
  132. package/out/RegistrationSystem.sol/RegistrationSystem.abi.json.d.ts +1 -1
  133. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  134. package/out/ResourceAccess.sol/ResourceAccess.json +1 -1
  135. package/out/ResourceId.sol/ResourceIdInstance.json +1 -1
  136. package/out/ResourceId.sol/ResourceIdLib.json +1 -1
  137. package/out/ResourceIds.sol/ResourceIds.json +1 -1
  138. package/out/Schema.sol/SchemaInstance.json +1 -1
  139. package/out/Schema.sol/SchemaLib.json +1 -1
  140. package/out/Slice.sol/SliceInstance.json +1 -1
  141. package/out/Slice.sol/SliceLib.json +1 -1
  142. package/out/StdAssertions.sol/StdAssertions.json +1 -1
  143. package/out/StdChains.sol/StdChains.json +1 -1
  144. package/out/StdCheats.sol/StdCheats.json +1 -1
  145. package/out/StdCheats.sol/StdCheatsSafe.json +1 -1
  146. package/out/StdError.sol/stdError.json +1 -1
  147. package/out/StdInvariant.sol/StdInvariant.json +1 -1
  148. package/out/StdJson.sol/stdJson.json +1 -1
  149. package/out/StdMath.sol/stdMath.json +1 -1
  150. package/out/StdStorage.sol/stdStorage.json +1 -1
  151. package/out/StdStorage.sol/stdStorageSafe.json +1 -1
  152. package/out/StdStyle.sol/StdStyle.json +1 -1
  153. package/out/StdUtils.sol/StdUtils.json +1 -1
  154. package/out/Storage.sol/Storage.json +1 -1
  155. package/out/StoreCore.sol/StoreCore.json +1 -1
  156. package/out/StoreCore.sol/StoreCoreInternal.json +1 -1
  157. package/out/StoreHooks.sol/StoreHooks.json +1 -1
  158. package/out/StoreKernel.sol/StoreKernel.json +1 -1
  159. package/out/StoreRead.sol/StoreRead.json +1 -1
  160. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json +1 -1
  161. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json.d.ts +1 -1
  162. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
  163. package/out/StoreSwitch.sol/StoreSwitch.json +1 -1
  164. package/out/System.sol/System.abi.json +1 -1
  165. package/out/System.sol/System.abi.json.d.ts +1 -1
  166. package/out/System.sol/System.json +1 -1
  167. package/out/SystemCall.sol/SystemCall.json +1 -1
  168. package/out/SystemHooks.sol/SystemHooks.json +1 -1
  169. package/out/SystemRegistry.sol/SystemRegistry.json +1 -1
  170. package/out/Systems.sol/Systems.json +1 -1
  171. package/out/Tables.sol/Tables.json +1 -1
  172. package/out/Test.sol/Test.json +1 -1
  173. package/out/TightCoder.sol/TightCoder.json +1 -1
  174. package/out/TotalSupply.sol/TotalSupply.json +1 -1
  175. package/out/UserDelegationControl.sol/UserDelegationControl.json +1 -1
  176. package/out/Vm.sol/Vm.json +1 -1
  177. package/out/Vm.sol/VmSafe.json +1 -1
  178. package/out/World.sol/World.json +1 -1
  179. package/out/WorldConsumer.sol/WorldConsumer.abi.json +140 -0
  180. package/out/WorldConsumer.sol/WorldConsumer.abi.json.d.ts +142 -0
  181. package/out/WorldConsumer.sol/WorldConsumer.json +1 -0
  182. package/out/WorldContext.sol/WorldContextConsumer.abi.json +1 -1
  183. package/out/WorldContext.sol/WorldContextConsumer.abi.json.d.ts +1 -1
  184. package/out/WorldContext.sol/WorldContextConsumer.json +1 -1
  185. package/out/WorldContext.sol/WorldContextConsumerLib.json +1 -1
  186. package/out/WorldContext.sol/WorldContextProviderLib.json +1 -1
  187. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json +1 -1
  188. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json.d.ts +1 -1
  189. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
  190. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +1 -1
  191. package/out/WorldResourceId.sol/WorldResourceIdLib.json +1 -1
  192. package/out/build-info/5dec426f2d87057b9b49f18296a28057.json +1 -0
  193. package/out/console.sol/console.json +1 -1
  194. package/out/console2.sol/console2.json +1 -1
  195. package/out/constants.sol/LayoutOffsets.json +1 -1
  196. package/out/safeconsole.sol/safeconsole.json +1 -1
  197. package/out/src/IERC165.sol/IERC165.json +1 -1
  198. package/out/tables/Balances.sol/Balances.json +1 -1
  199. package/out/test.sol/DSTest.json +1 -1
  200. package/package.json +8 -8
  201. package/src/examples/ERC20PausableBurnable.sol +55 -0
  202. package/src/experimental/Constants.sol +0 -4
  203. package/src/experimental/ERC20Module.sol +47 -14
  204. package/src/experimental/ERC20Pausable.sol +3 -0
  205. package/src/experimental/MUDERC20.sol +28 -32
  206. package/src/experimental/Pausable.sol +18 -17
  207. package/out/Constants.sol/OwnableTableNames.abi.json +0 -1
  208. package/out/Constants.sol/OwnableTableNames.json +0 -1
  209. package/out/Context.sol/Context.abi.json +0 -15
  210. package/out/Context.sol/Context.abi.json.d.ts +0 -17
  211. package/out/Context.sol/Context.json +0 -1
  212. package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreBehaviorTest.abi.json +0 -949
  213. package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreBehaviorTest.abi.json.d.ts +0 -951
  214. package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreBehaviorTest.json +0 -1
  215. package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreTest.abi.json +0 -949
  216. package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreTest.abi.json.d.ts +0 -951
  217. package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreTest.json +0 -1
  218. package/out/ERC20BaseTest.t.sol/ERC20WithWorldBehaviorTest.abi.json +0 -956
  219. package/out/ERC20BaseTest.t.sol/ERC20WithWorldBehaviorTest.abi.json.d.ts +0 -958
  220. package/out/ERC20BaseTest.t.sol/ERC20WithWorldBehaviorTest.json +0 -1
  221. package/out/ERC20BaseTest.t.sol/ERC20WithWorldTest.abi.json +0 -956
  222. package/out/ERC20BaseTest.t.sol/ERC20WithWorldTest.abi.json.d.ts +0 -958
  223. package/out/ERC20BaseTest.t.sol/ERC20WithWorldTest.json +0 -1
  224. package/out/ERC20BaseTest.t.sol/MockERC20WithInternalStore.json +0 -1
  225. package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.abi.json +0 -839
  226. package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.abi.json.d.ts +0 -841
  227. package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.json +0 -1
  228. package/out/ERC20BaseTest.t.sol/TestConstants.abi.json +0 -1
  229. package/out/ERC20BaseTest.t.sol/TestConstants.json +0 -1
  230. package/out/ERC20Burnable.t.sol/ERC20BurnableWithInternalStoreTest.abi.json +0 -956
  231. package/out/ERC20Burnable.t.sol/ERC20BurnableWithInternalStoreTest.abi.json.d.ts +0 -958
  232. package/out/ERC20Burnable.t.sol/ERC20BurnableWithInternalStoreTest.json +0 -1
  233. package/out/ERC20Burnable.t.sol/ERC20BurnableWithWorldTest.json +0 -1
  234. package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.abi.json +0 -727
  235. package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.abi.json.d.ts +0 -729
  236. package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.json +0 -1
  237. package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.abi.json +0 -865
  238. package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.abi.json.d.ts +0 -867
  239. package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.json +0 -1
  240. package/out/ERC20Module.sol/ERC20RegistryLib.json +0 -1
  241. package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.abi.json +0 -956
  242. package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.abi.json.d.ts +0 -958
  243. package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +0 -1
  244. package/out/ERC20Pausable.t.sol/ERC20PausableWithInternalStoreTest.abi.json +0 -956
  245. package/out/ERC20Pausable.t.sol/ERC20PausableWithInternalStoreTest.abi.json.d.ts +0 -958
  246. package/out/ERC20Pausable.t.sol/ERC20PausableWithInternalStoreTest.json +0 -1
  247. package/out/ERC20Pausable.t.sol/ERC20PausableWithWorldTest.json +0 -1
  248. package/out/ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.json +0 -1
  249. package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.abi.json +0 -897
  250. package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.abi.json.d.ts +0 -899
  251. package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.json +0 -1
  252. package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.abi.json +0 -851
  253. package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.abi.json.d.ts +0 -853
  254. package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.json +0 -1
  255. package/out/ERC20WithWorld.sol/ERC20WithWorld.abi.json +0 -936
  256. package/out/ERC20WithWorld.sol/ERC20WithWorld.abi.json.d.ts +0 -938
  257. package/out/ERC20WithWorld.sol/ERC20WithWorld.json +0 -1
  258. package/out/Ownable.sol/Ownable.abi.json +0 -426
  259. package/out/Ownable.sol/Ownable.abi.json.d.ts +0 -428
  260. package/out/Ownable.sol/Ownable.json +0 -1
  261. package/out/Store.sol/Store.abi.json +0 -1261
  262. package/out/Store.sol/Store.abi.json.d.ts +0 -1263
  263. package/out/Store.sol/Store.json +0 -1
  264. package/out/StoreConsumer.sol/StoreConsumer.abi.json +0 -15
  265. package/out/StoreConsumer.sol/StoreConsumer.abi.json.d.ts +0 -17
  266. package/out/StoreConsumer.sol/StoreConsumer.json +0 -1
  267. package/out/WithStore.sol/WithStore.abi.json +0 -352
  268. package/out/WithStore.sol/WithStore.abi.json.d.ts +0 -354
  269. package/out/WithStore.sol/WithStore.json +0 -1
  270. package/out/WithWorld.sol/WithWorld.abi.json +0 -490
  271. package/out/WithWorld.sol/WithWorld.abi.json.d.ts +0 -492
  272. package/out/WithWorld.sol/WithWorld.json +0 -1
  273. package/out/build-info/60c60a9593fdb00b3264c36836a28f39.json +0 -1
  274. package/src/examples/ERC20WithInternalStore.sol +0 -32
  275. package/src/examples/ERC20WithWorld.sol +0 -47
  276. package/src/experimental/Ownable.sol +0 -110
  277. /package/out/ERC20Module.sol/{ERC20RegistryLib.abi.json → ERC20ModuleLib.abi.json} +0 -0
  278. /package/out/ERC20Module.sol/{ERC20RegistryLib.abi.json.d.ts → ERC20ModuleLib.abi.json.d.ts} +0 -0
@@ -1,936 +0,0 @@
1
- [
2
- {
3
- "type": "constructor",
4
- "inputs": [
5
- {
6
- "name": "world",
7
- "type": "address",
8
- "internalType": "contract IBaseWorld"
9
- },
10
- {
11
- "name": "namespace",
12
- "type": "bytes14",
13
- "internalType": "bytes14"
14
- },
15
- {
16
- "name": "name",
17
- "type": "string",
18
- "internalType": "string"
19
- },
20
- {
21
- "name": "symbol",
22
- "type": "string",
23
- "internalType": "string"
24
- }
25
- ],
26
- "stateMutability": "nonpayable"
27
- },
28
- {
29
- "type": "function",
30
- "name": "_msgSender",
31
- "inputs": [],
32
- "outputs": [
33
- {
34
- "name": "sender",
35
- "type": "address",
36
- "internalType": "address"
37
- }
38
- ],
39
- "stateMutability": "view"
40
- },
41
- {
42
- "type": "function",
43
- "name": "_msgValue",
44
- "inputs": [],
45
- "outputs": [
46
- {
47
- "name": "value",
48
- "type": "uint256",
49
- "internalType": "uint256"
50
- }
51
- ],
52
- "stateMutability": "pure"
53
- },
54
- {
55
- "type": "function",
56
- "name": "_world",
57
- "inputs": [],
58
- "outputs": [
59
- {
60
- "name": "",
61
- "type": "address",
62
- "internalType": "address"
63
- }
64
- ],
65
- "stateMutability": "view"
66
- },
67
- {
68
- "type": "function",
69
- "name": "allowance",
70
- "inputs": [
71
- {
72
- "name": "owner",
73
- "type": "address",
74
- "internalType": "address"
75
- },
76
- {
77
- "name": "spender",
78
- "type": "address",
79
- "internalType": "address"
80
- }
81
- ],
82
- "outputs": [
83
- {
84
- "name": "",
85
- "type": "uint256",
86
- "internalType": "uint256"
87
- }
88
- ],
89
- "stateMutability": "view"
90
- },
91
- {
92
- "type": "function",
93
- "name": "approve",
94
- "inputs": [
95
- {
96
- "name": "spender",
97
- "type": "address",
98
- "internalType": "address"
99
- },
100
- {
101
- "name": "value",
102
- "type": "uint256",
103
- "internalType": "uint256"
104
- }
105
- ],
106
- "outputs": [
107
- {
108
- "name": "",
109
- "type": "bool",
110
- "internalType": "bool"
111
- }
112
- ],
113
- "stateMutability": "nonpayable"
114
- },
115
- {
116
- "type": "function",
117
- "name": "balanceOf",
118
- "inputs": [
119
- {
120
- "name": "account",
121
- "type": "address",
122
- "internalType": "address"
123
- }
124
- ],
125
- "outputs": [
126
- {
127
- "name": "",
128
- "type": "uint256",
129
- "internalType": "uint256"
130
- }
131
- ],
132
- "stateMutability": "view"
133
- },
134
- {
135
- "type": "function",
136
- "name": "burn",
137
- "inputs": [
138
- {
139
- "name": "value",
140
- "type": "uint256",
141
- "internalType": "uint256"
142
- }
143
- ],
144
- "outputs": [],
145
- "stateMutability": "nonpayable"
146
- },
147
- {
148
- "type": "function",
149
- "name": "burnFrom",
150
- "inputs": [
151
- {
152
- "name": "account",
153
- "type": "address",
154
- "internalType": "address"
155
- },
156
- {
157
- "name": "value",
158
- "type": "uint256",
159
- "internalType": "uint256"
160
- }
161
- ],
162
- "outputs": [],
163
- "stateMutability": "nonpayable"
164
- },
165
- {
166
- "type": "function",
167
- "name": "decimals",
168
- "inputs": [],
169
- "outputs": [
170
- {
171
- "name": "",
172
- "type": "uint8",
173
- "internalType": "uint8"
174
- }
175
- ],
176
- "stateMutability": "view"
177
- },
178
- {
179
- "type": "function",
180
- "name": "getNamespaceId",
181
- "inputs": [],
182
- "outputs": [
183
- {
184
- "name": "",
185
- "type": "bytes32",
186
- "internalType": "ResourceId"
187
- }
188
- ],
189
- "stateMutability": "view"
190
- },
191
- {
192
- "type": "function",
193
- "name": "getStore",
194
- "inputs": [],
195
- "outputs": [
196
- {
197
- "name": "",
198
- "type": "address",
199
- "internalType": "address"
200
- }
201
- ],
202
- "stateMutability": "view"
203
- },
204
- {
205
- "type": "function",
206
- "name": "getWorld",
207
- "inputs": [],
208
- "outputs": [
209
- {
210
- "name": "",
211
- "type": "address",
212
- "internalType": "contract IBaseWorld"
213
- }
214
- ],
215
- "stateMutability": "view"
216
- },
217
- {
218
- "type": "function",
219
- "name": "mint",
220
- "inputs": [
221
- {
222
- "name": "to",
223
- "type": "address",
224
- "internalType": "address"
225
- },
226
- {
227
- "name": "value",
228
- "type": "uint256",
229
- "internalType": "uint256"
230
- }
231
- ],
232
- "outputs": [],
233
- "stateMutability": "nonpayable"
234
- },
235
- {
236
- "type": "function",
237
- "name": "name",
238
- "inputs": [],
239
- "outputs": [
240
- {
241
- "name": "",
242
- "type": "string",
243
- "internalType": "string"
244
- }
245
- ],
246
- "stateMutability": "view"
247
- },
248
- {
249
- "type": "function",
250
- "name": "namespace",
251
- "inputs": [],
252
- "outputs": [
253
- {
254
- "name": "",
255
- "type": "bytes14",
256
- "internalType": "bytes14"
257
- }
258
- ],
259
- "stateMutability": "view"
260
- },
261
- {
262
- "type": "function",
263
- "name": "pause",
264
- "inputs": [],
265
- "outputs": [],
266
- "stateMutability": "nonpayable"
267
- },
268
- {
269
- "type": "function",
270
- "name": "paused",
271
- "inputs": [],
272
- "outputs": [
273
- {
274
- "name": "",
275
- "type": "bool",
276
- "internalType": "bool"
277
- }
278
- ],
279
- "stateMutability": "view"
280
- },
281
- {
282
- "type": "function",
283
- "name": "supportsInterface",
284
- "inputs": [
285
- {
286
- "name": "interfaceId",
287
- "type": "bytes4",
288
- "internalType": "bytes4"
289
- }
290
- ],
291
- "outputs": [
292
- {
293
- "name": "",
294
- "type": "bool",
295
- "internalType": "bool"
296
- }
297
- ],
298
- "stateMutability": "pure"
299
- },
300
- {
301
- "type": "function",
302
- "name": "symbol",
303
- "inputs": [],
304
- "outputs": [
305
- {
306
- "name": "",
307
- "type": "string",
308
- "internalType": "string"
309
- }
310
- ],
311
- "stateMutability": "view"
312
- },
313
- {
314
- "type": "function",
315
- "name": "totalSupply",
316
- "inputs": [],
317
- "outputs": [
318
- {
319
- "name": "",
320
- "type": "uint256",
321
- "internalType": "uint256"
322
- }
323
- ],
324
- "stateMutability": "view"
325
- },
326
- {
327
- "type": "function",
328
- "name": "transfer",
329
- "inputs": [
330
- {
331
- "name": "to",
332
- "type": "address",
333
- "internalType": "address"
334
- },
335
- {
336
- "name": "value",
337
- "type": "uint256",
338
- "internalType": "uint256"
339
- }
340
- ],
341
- "outputs": [
342
- {
343
- "name": "",
344
- "type": "bool",
345
- "internalType": "bool"
346
- }
347
- ],
348
- "stateMutability": "nonpayable"
349
- },
350
- {
351
- "type": "function",
352
- "name": "transferFrom",
353
- "inputs": [
354
- {
355
- "name": "from",
356
- "type": "address",
357
- "internalType": "address"
358
- },
359
- {
360
- "name": "to",
361
- "type": "address",
362
- "internalType": "address"
363
- },
364
- {
365
- "name": "value",
366
- "type": "uint256",
367
- "internalType": "uint256"
368
- }
369
- ],
370
- "outputs": [
371
- {
372
- "name": "",
373
- "type": "bool",
374
- "internalType": "bool"
375
- }
376
- ],
377
- "stateMutability": "nonpayable"
378
- },
379
- {
380
- "type": "function",
381
- "name": "unpause",
382
- "inputs": [],
383
- "outputs": [],
384
- "stateMutability": "nonpayable"
385
- },
386
- {
387
- "type": "event",
388
- "name": "Approval",
389
- "inputs": [
390
- {
391
- "name": "owner",
392
- "type": "address",
393
- "indexed": true,
394
- "internalType": "address"
395
- },
396
- {
397
- "name": "spender",
398
- "type": "address",
399
- "indexed": true,
400
- "internalType": "address"
401
- },
402
- {
403
- "name": "value",
404
- "type": "uint256",
405
- "indexed": false,
406
- "internalType": "uint256"
407
- }
408
- ],
409
- "anonymous": false
410
- },
411
- {
412
- "type": "event",
413
- "name": "Paused",
414
- "inputs": [
415
- {
416
- "name": "account",
417
- "type": "address",
418
- "indexed": false,
419
- "internalType": "address"
420
- }
421
- ],
422
- "anonymous": false
423
- },
424
- {
425
- "type": "event",
426
- "name": "Store_SetRecord",
427
- "inputs": [
428
- {
429
- "name": "tableId",
430
- "type": "bytes32",
431
- "indexed": true,
432
- "internalType": "ResourceId"
433
- },
434
- {
435
- "name": "keyTuple",
436
- "type": "bytes32[]",
437
- "indexed": false,
438
- "internalType": "bytes32[]"
439
- },
440
- {
441
- "name": "staticData",
442
- "type": "bytes",
443
- "indexed": false,
444
- "internalType": "bytes"
445
- },
446
- {
447
- "name": "encodedLengths",
448
- "type": "bytes32",
449
- "indexed": false,
450
- "internalType": "EncodedLengths"
451
- },
452
- {
453
- "name": "dynamicData",
454
- "type": "bytes",
455
- "indexed": false,
456
- "internalType": "bytes"
457
- }
458
- ],
459
- "anonymous": false
460
- },
461
- {
462
- "type": "event",
463
- "name": "Store_SpliceStaticData",
464
- "inputs": [
465
- {
466
- "name": "tableId",
467
- "type": "bytes32",
468
- "indexed": true,
469
- "internalType": "ResourceId"
470
- },
471
- {
472
- "name": "keyTuple",
473
- "type": "bytes32[]",
474
- "indexed": false,
475
- "internalType": "bytes32[]"
476
- },
477
- {
478
- "name": "start",
479
- "type": "uint48",
480
- "indexed": false,
481
- "internalType": "uint48"
482
- },
483
- {
484
- "name": "data",
485
- "type": "bytes",
486
- "indexed": false,
487
- "internalType": "bytes"
488
- }
489
- ],
490
- "anonymous": false
491
- },
492
- {
493
- "type": "event",
494
- "name": "Transfer",
495
- "inputs": [
496
- {
497
- "name": "from",
498
- "type": "address",
499
- "indexed": true,
500
- "internalType": "address"
501
- },
502
- {
503
- "name": "to",
504
- "type": "address",
505
- "indexed": true,
506
- "internalType": "address"
507
- },
508
- {
509
- "name": "value",
510
- "type": "uint256",
511
- "indexed": false,
512
- "internalType": "uint256"
513
- }
514
- ],
515
- "anonymous": false
516
- },
517
- {
518
- "type": "event",
519
- "name": "Unpaused",
520
- "inputs": [
521
- {
522
- "name": "account",
523
- "type": "address",
524
- "indexed": false,
525
- "internalType": "address"
526
- }
527
- ],
528
- "anonymous": false
529
- },
530
- {
531
- "type": "error",
532
- "name": "ERC20InsufficientAllowance",
533
- "inputs": [
534
- {
535
- "name": "spender",
536
- "type": "address",
537
- "internalType": "address"
538
- },
539
- {
540
- "name": "allowance",
541
- "type": "uint256",
542
- "internalType": "uint256"
543
- },
544
- {
545
- "name": "needed",
546
- "type": "uint256",
547
- "internalType": "uint256"
548
- }
549
- ]
550
- },
551
- {
552
- "type": "error",
553
- "name": "ERC20InsufficientBalance",
554
- "inputs": [
555
- {
556
- "name": "sender",
557
- "type": "address",
558
- "internalType": "address"
559
- },
560
- {
561
- "name": "balance",
562
- "type": "uint256",
563
- "internalType": "uint256"
564
- },
565
- {
566
- "name": "needed",
567
- "type": "uint256",
568
- "internalType": "uint256"
569
- }
570
- ]
571
- },
572
- {
573
- "type": "error",
574
- "name": "ERC20InvalidApprover",
575
- "inputs": [
576
- {
577
- "name": "approver",
578
- "type": "address",
579
- "internalType": "address"
580
- }
581
- ]
582
- },
583
- {
584
- "type": "error",
585
- "name": "ERC20InvalidReceiver",
586
- "inputs": [
587
- {
588
- "name": "receiver",
589
- "type": "address",
590
- "internalType": "address"
591
- }
592
- ]
593
- },
594
- {
595
- "type": "error",
596
- "name": "ERC20InvalidSender",
597
- "inputs": [
598
- {
599
- "name": "sender",
600
- "type": "address",
601
- "internalType": "address"
602
- }
603
- ]
604
- },
605
- {
606
- "type": "error",
607
- "name": "ERC20InvalidSpender",
608
- "inputs": [
609
- {
610
- "name": "spender",
611
- "type": "address",
612
- "internalType": "address"
613
- }
614
- ]
615
- },
616
- {
617
- "type": "error",
618
- "name": "EnforcedPause",
619
- "inputs": []
620
- },
621
- {
622
- "type": "error",
623
- "name": "ExpectedPause",
624
- "inputs": []
625
- },
626
- {
627
- "type": "error",
628
- "name": "FieldLayout_Empty",
629
- "inputs": []
630
- },
631
- {
632
- "type": "error",
633
- "name": "FieldLayout_InvalidStaticDataLength",
634
- "inputs": [
635
- {
636
- "name": "staticDataLength",
637
- "type": "uint256",
638
- "internalType": "uint256"
639
- },
640
- {
641
- "name": "computedStaticDataLength",
642
- "type": "uint256",
643
- "internalType": "uint256"
644
- }
645
- ]
646
- },
647
- {
648
- "type": "error",
649
- "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
650
- "inputs": [
651
- {
652
- "name": "index",
653
- "type": "uint256",
654
- "internalType": "uint256"
655
- }
656
- ]
657
- },
658
- {
659
- "type": "error",
660
- "name": "FieldLayout_StaticLengthIsNotZero",
661
- "inputs": [
662
- {
663
- "name": "index",
664
- "type": "uint256",
665
- "internalType": "uint256"
666
- }
667
- ]
668
- },
669
- {
670
- "type": "error",
671
- "name": "FieldLayout_StaticLengthIsZero",
672
- "inputs": [
673
- {
674
- "name": "index",
675
- "type": "uint256",
676
- "internalType": "uint256"
677
- }
678
- ]
679
- },
680
- {
681
- "type": "error",
682
- "name": "FieldLayout_TooManyDynamicFields",
683
- "inputs": [
684
- {
685
- "name": "numFields",
686
- "type": "uint256",
687
- "internalType": "uint256"
688
- },
689
- {
690
- "name": "maxFields",
691
- "type": "uint256",
692
- "internalType": "uint256"
693
- }
694
- ]
695
- },
696
- {
697
- "type": "error",
698
- "name": "FieldLayout_TooManyFields",
699
- "inputs": [
700
- {
701
- "name": "numFields",
702
- "type": "uint256",
703
- "internalType": "uint256"
704
- },
705
- {
706
- "name": "maxFields",
707
- "type": "uint256",
708
- "internalType": "uint256"
709
- }
710
- ]
711
- },
712
- {
713
- "type": "error",
714
- "name": "Schema_InvalidLength",
715
- "inputs": [
716
- {
717
- "name": "length",
718
- "type": "uint256",
719
- "internalType": "uint256"
720
- }
721
- ]
722
- },
723
- {
724
- "type": "error",
725
- "name": "Schema_StaticTypeAfterDynamicType",
726
- "inputs": []
727
- },
728
- {
729
- "type": "error",
730
- "name": "Slice_OutOfBounds",
731
- "inputs": [
732
- {
733
- "name": "data",
734
- "type": "bytes",
735
- "internalType": "bytes"
736
- },
737
- {
738
- "name": "start",
739
- "type": "uint256",
740
- "internalType": "uint256"
741
- },
742
- {
743
- "name": "end",
744
- "type": "uint256",
745
- "internalType": "uint256"
746
- }
747
- ]
748
- },
749
- {
750
- "type": "error",
751
- "name": "Store_InvalidFieldNamesLength",
752
- "inputs": [
753
- {
754
- "name": "expected",
755
- "type": "uint256",
756
- "internalType": "uint256"
757
- },
758
- {
759
- "name": "received",
760
- "type": "uint256",
761
- "internalType": "uint256"
762
- }
763
- ]
764
- },
765
- {
766
- "type": "error",
767
- "name": "Store_InvalidKeyNamesLength",
768
- "inputs": [
769
- {
770
- "name": "expected",
771
- "type": "uint256",
772
- "internalType": "uint256"
773
- },
774
- {
775
- "name": "received",
776
- "type": "uint256",
777
- "internalType": "uint256"
778
- }
779
- ]
780
- },
781
- {
782
- "type": "error",
783
- "name": "Store_InvalidResourceType",
784
- "inputs": [
785
- {
786
- "name": "expected",
787
- "type": "bytes2",
788
- "internalType": "bytes2"
789
- },
790
- {
791
- "name": "resourceId",
792
- "type": "bytes32",
793
- "internalType": "ResourceId"
794
- },
795
- {
796
- "name": "resourceIdString",
797
- "type": "string",
798
- "internalType": "string"
799
- }
800
- ]
801
- },
802
- {
803
- "type": "error",
804
- "name": "Store_InvalidStaticDataLength",
805
- "inputs": [
806
- {
807
- "name": "expected",
808
- "type": "uint256",
809
- "internalType": "uint256"
810
- },
811
- {
812
- "name": "received",
813
- "type": "uint256",
814
- "internalType": "uint256"
815
- }
816
- ]
817
- },
818
- {
819
- "type": "error",
820
- "name": "Store_InvalidValueSchemaDynamicLength",
821
- "inputs": [
822
- {
823
- "name": "expected",
824
- "type": "uint256",
825
- "internalType": "uint256"
826
- },
827
- {
828
- "name": "received",
829
- "type": "uint256",
830
- "internalType": "uint256"
831
- }
832
- ]
833
- },
834
- {
835
- "type": "error",
836
- "name": "Store_InvalidValueSchemaLength",
837
- "inputs": [
838
- {
839
- "name": "expected",
840
- "type": "uint256",
841
- "internalType": "uint256"
842
- },
843
- {
844
- "name": "received",
845
- "type": "uint256",
846
- "internalType": "uint256"
847
- }
848
- ]
849
- },
850
- {
851
- "type": "error",
852
- "name": "Store_InvalidValueSchemaStaticLength",
853
- "inputs": [
854
- {
855
- "name": "expected",
856
- "type": "uint256",
857
- "internalType": "uint256"
858
- },
859
- {
860
- "name": "received",
861
- "type": "uint256",
862
- "internalType": "uint256"
863
- }
864
- ]
865
- },
866
- {
867
- "type": "error",
868
- "name": "Store_TableAlreadyExists",
869
- "inputs": [
870
- {
871
- "name": "tableId",
872
- "type": "bytes32",
873
- "internalType": "ResourceId"
874
- },
875
- {
876
- "name": "tableIdString",
877
- "type": "string",
878
- "internalType": "string"
879
- }
880
- ]
881
- },
882
- {
883
- "type": "error",
884
- "name": "WithWorld_CallerHasNoNamespaceAccess",
885
- "inputs": [
886
- {
887
- "name": "namespace",
888
- "type": "bytes14",
889
- "internalType": "bytes14"
890
- },
891
- {
892
- "name": "caller",
893
- "type": "address",
894
- "internalType": "address"
895
- }
896
- ]
897
- },
898
- {
899
- "type": "error",
900
- "name": "WithWorld_CallerIsNotWorld",
901
- "inputs": [
902
- {
903
- "name": "caller",
904
- "type": "address",
905
- "internalType": "address"
906
- }
907
- ]
908
- },
909
- {
910
- "type": "error",
911
- "name": "WithWorld_NamespaceAlreadyExists",
912
- "inputs": [
913
- {
914
- "name": "namespace",
915
- "type": "bytes14",
916
- "internalType": "bytes14"
917
- }
918
- ]
919
- },
920
- {
921
- "type": "error",
922
- "name": "WithWorld_NamespaceDoesNotExists",
923
- "inputs": [
924
- {
925
- "name": "namespace",
926
- "type": "bytes14",
927
- "internalType": "bytes14"
928
- }
929
- ]
930
- },
931
- {
932
- "type": "error",
933
- "name": "WithWorld_RootNamespaceNotAllowed",
934
- "inputs": []
935
- }
936
- ]