@latticexyz/world-module-erc20 2.2.20-306707570ec5fd27877d674502aa381d7fd89662 → 2.2.20-31870811b975d44f4b5d14ae69fd623914237584

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