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