@latticexyz/world-module-callwithsignature 2.2.17-03eae1330cef5cae129841958fb75541ef13fb43

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 (384) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/internal.d.ts +20 -0
  4. package/dist/internal.js +2 -0
  5. package/dist/internal.js.map +1 -0
  6. package/dist/mud.config.d.ts +103 -0
  7. package/dist/mud.config.js +2 -0
  8. package/dist/mud.config.js.map +1 -0
  9. package/out/AccessControl.sol/AccessControl.abi.json +1 -0
  10. package/out/AccessControl.sol/AccessControl.json +1 -0
  11. package/out/AccessManagementSystem.sol/AccessManagementSystem.abi.json +256 -0
  12. package/out/AccessManagementSystem.sol/AccessManagementSystem.abi.json.d.ts +258 -0
  13. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -0
  14. package/out/AddressArray.sol/AddressArray.abi.json +1 -0
  15. package/out/AddressArray.sol/AddressArray.json +1 -0
  16. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.abi.json +361 -0
  17. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.abi.json.d.ts +363 -0
  18. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -0
  19. package/out/Balances.sol/Balances.abi.json +1 -0
  20. package/out/Balances.sol/Balances.json +1 -0
  21. package/out/Base.sol/CommonBase.abi.json +1 -0
  22. package/out/Base.sol/CommonBase.json +1 -0
  23. package/out/Base.sol/ScriptBase.abi.json +1 -0
  24. package/out/Base.sol/ScriptBase.json +1 -0
  25. package/out/Base.sol/TestBase.abi.json +1 -0
  26. package/out/Base.sol/TestBase.json +1 -0
  27. package/out/BatchCallSystem.sol/BatchCallSystem.abi.json +132 -0
  28. package/out/BatchCallSystem.sol/BatchCallSystem.abi.json.d.ts +134 -0
  29. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -0
  30. package/out/Bool.sol/Bool.abi.json +1 -0
  31. package/out/Bool.sol/Bool.json +1 -0
  32. package/out/Bytes.sol/Bytes.abi.json +1 -0
  33. package/out/Bytes.sol/Bytes.json +1 -0
  34. package/out/CallWithSignatureModule.sol/CallWithSignatureModule.abi.json +436 -0
  35. package/out/CallWithSignatureModule.sol/CallWithSignatureModule.abi.json.d.ts +438 -0
  36. package/out/CallWithSignatureModule.sol/CallWithSignatureModule.json +1 -0
  37. package/out/CallWithSignatureModule.t.sol/CallWithSignatureModuleTest.abi.json +541 -0
  38. package/out/CallWithSignatureModule.t.sol/CallWithSignatureModuleTest.abi.json.d.ts +543 -0
  39. package/out/CallWithSignatureModule.t.sol/CallWithSignatureModuleTest.json +1 -0
  40. package/out/CallWithSignatureNonces.sol/CallWithSignatureNonces.abi.json +1 -0
  41. package/out/CallWithSignatureNonces.sol/CallWithSignatureNonces.json +1 -0
  42. package/out/CallWithSignatureSystem.sol/CallWithSignatureSystem.abi.json +183 -0
  43. package/out/CallWithSignatureSystem.sol/CallWithSignatureSystem.abi.json.d.ts +185 -0
  44. package/out/CallWithSignatureSystem.sol/CallWithSignatureSystem.json +1 -0
  45. package/out/DecodeSlice.sol/DecodeSlice.abi.json +1 -0
  46. package/out/DecodeSlice.sol/DecodeSlice.json +1 -0
  47. package/out/Delegation.sol/Delegation.abi.json +1 -0
  48. package/out/Delegation.sol/Delegation.json +1 -0
  49. package/out/DelegationControl.sol/DelegationControl.abi.json +89 -0
  50. package/out/DelegationControl.sol/DelegationControl.abi.json.d.ts +91 -0
  51. package/out/DelegationControl.sol/DelegationControl.json +1 -0
  52. package/out/DelegationControlMock.sol/DelegationControlMock.abi.json +126 -0
  53. package/out/DelegationControlMock.sol/DelegationControlMock.abi.json.d.ts +128 -0
  54. package/out/DelegationControlMock.sol/DelegationControlMock.json +1 -0
  55. package/out/ECDSA.sol/ECDSA.abi.json +29 -0
  56. package/out/ECDSA.sol/ECDSA.abi.json.d.ts +31 -0
  57. package/out/ECDSA.sol/ECDSA.json +1 -0
  58. package/out/ERC165Checker.sol/ERC165Checker.abi.json +1 -0
  59. package/out/ERC165Checker.sol/ERC165Checker.json +1 -0
  60. package/out/EchoSubscriber.sol/EchoSubscriber.abi.json +303 -0
  61. package/out/EchoSubscriber.sol/EchoSubscriber.abi.json.d.ts +305 -0
  62. package/out/EchoSubscriber.sol/EchoSubscriber.json +1 -0
  63. package/out/EncodeArray.sol/EncodeArray.abi.json +1 -0
  64. package/out/EncodeArray.sol/EncodeArray.json +1 -0
  65. package/out/EncodedLengths.sol/EncodedLengthsInstance.abi.json +1 -0
  66. package/out/EncodedLengths.sol/EncodedLengthsInstance.json +1 -0
  67. package/out/EncodedLengths.sol/EncodedLengthsLib.abi.json +1 -0
  68. package/out/EncodedLengths.sol/EncodedLengthsLib.json +1 -0
  69. package/out/FieldLayout.sol/FieldLayoutInstance.abi.json +1 -0
  70. package/out/FieldLayout.sol/FieldLayoutInstance.json +1 -0
  71. package/out/FieldLayout.sol/FieldLayoutLib.abi.json +1 -0
  72. package/out/FieldLayout.sol/FieldLayoutLib.json +1 -0
  73. package/out/FieldLayoutEncodeHelper.sol/FieldLayoutEncodeHelper.abi.json +1 -0
  74. package/out/FieldLayoutEncodeHelper.sol/FieldLayoutEncodeHelper.json +1 -0
  75. package/out/FunctionSelectors.sol/FunctionSelectors.abi.json +1 -0
  76. package/out/FunctionSelectors.sol/FunctionSelectors.json +1 -0
  77. package/out/FunctionSignatures.sol/FunctionSignatures.abi.json +1 -0
  78. package/out/FunctionSignatures.sol/FunctionSignatures.json +1 -0
  79. package/out/GasReporter.sol/GasReporter.abi.json +520 -0
  80. package/out/GasReporter.sol/GasReporter.abi.json.d.ts +522 -0
  81. package/out/GasReporter.sol/GasReporter.json +1 -0
  82. package/out/Hook.sol/HookInstance.abi.json +1 -0
  83. package/out/Hook.sol/HookInstance.json +1 -0
  84. package/out/Hook.sol/HookLib.abi.json +1 -0
  85. package/out/Hook.sol/HookLib.json +1 -0
  86. package/out/Hooks.sol/Hooks.abi.json +1 -0
  87. package/out/Hooks.sol/Hooks.json +1 -0
  88. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.abi.json +69 -0
  89. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.abi.json.d.ts +71 -0
  90. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +1 -0
  91. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.abi.json +48 -0
  92. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.abi.json.d.ts +50 -0
  93. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +1 -0
  94. package/out/IBaseWorld.sol/IBaseWorld.abi.json +2008 -0
  95. package/out/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +2010 -0
  96. package/out/IBaseWorld.sol/IBaseWorld.json +1 -0
  97. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json +69 -0
  98. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json.d.ts +71 -0
  99. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +1 -0
  100. package/out/ICallWithSignatureErrors.sol/ICallWithSignatureErrors.abi.json +7 -0
  101. package/out/ICallWithSignatureErrors.sol/ICallWithSignatureErrors.abi.json.d.ts +9 -0
  102. package/out/ICallWithSignatureErrors.sol/ICallWithSignatureErrors.json +1 -0
  103. package/out/ICallWithSignatureSystem.sol/ICallWithSignatureSystem.abi.json +36 -0
  104. package/out/ICallWithSignatureSystem.sol/ICallWithSignatureSystem.abi.json.d.ts +38 -0
  105. package/out/ICallWithSignatureSystem.sol/ICallWithSignatureSystem.json +1 -0
  106. package/out/IDelegationControl.sol/IDelegationControl.abi.json +89 -0
  107. package/out/IDelegationControl.sol/IDelegationControl.abi.json.d.ts +91 -0
  108. package/out/IDelegationControl.sol/IDelegationControl.json +1 -0
  109. package/out/IERC1271.sol/IERC1271.abi.json +26 -0
  110. package/out/IERC1271.sol/IERC1271.abi.json.d.ts +28 -0
  111. package/out/IERC1271.sol/IERC1271.json +1 -0
  112. package/out/IERC165.sol/IERC165.abi.json +21 -0
  113. package/out/IERC165.sol/IERC165.abi.json.d.ts +23 -0
  114. package/out/IERC165.sol/IERC165.json +1 -0
  115. package/out/IEncodedLengthsErrors.sol/IEncodedLengthsErrors.abi.json +13 -0
  116. package/out/IEncodedLengthsErrors.sol/IEncodedLengthsErrors.abi.json.d.ts +15 -0
  117. package/out/IEncodedLengthsErrors.sol/IEncodedLengthsErrors.json +1 -0
  118. package/out/IFieldLayoutErrors.sol/IFieldLayoutErrors.abi.json +88 -0
  119. package/out/IFieldLayoutErrors.sol/IFieldLayoutErrors.abi.json.d.ts +90 -0
  120. package/out/IFieldLayoutErrors.sol/IFieldLayoutErrors.json +1 -0
  121. package/out/IModule.sol/IModule.abi.json +73 -0
  122. package/out/IModule.sol/IModule.abi.json.d.ts +75 -0
  123. package/out/IModule.sol/IModule.json +1 -0
  124. package/out/IModuleErrors.sol/IModuleErrors.abi.json +28 -0
  125. package/out/IModuleErrors.sol/IModuleErrors.abi.json.d.ts +30 -0
  126. package/out/IModuleErrors.sol/IModuleErrors.json +1 -0
  127. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.abi.json +20 -0
  128. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.abi.json.d.ts +22 -0
  129. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +1 -0
  130. package/out/IMulticall3.sol/IMulticall3.abi.json +440 -0
  131. package/out/IMulticall3.sol/IMulticall3.abi.json.d.ts +442 -0
  132. package/out/IMulticall3.sol/IMulticall3.json +1 -0
  133. package/out/IRegistrationSystem.sol/IRegistrationSystem.abi.json +1 -0
  134. package/out/IRegistrationSystem.sol/IRegistrationSystem.json +1 -0
  135. package/out/ISchemaErrors.sol/ISchemaErrors.abi.json +18 -0
  136. package/out/ISchemaErrors.sol/ISchemaErrors.abi.json.d.ts +20 -0
  137. package/out/ISchemaErrors.sol/ISchemaErrors.json +1 -0
  138. package/out/ISliceErrors.sol/ISliceErrors.abi.json +23 -0
  139. package/out/ISliceErrors.sol/ISliceErrors.abi.json.d.ts +25 -0
  140. package/out/ISliceErrors.sol/ISliceErrors.json +1 -0
  141. package/out/IStore.sol/IStore.abi.json +1261 -0
  142. package/out/IStore.sol/IStore.abi.json.d.ts +1263 -0
  143. package/out/IStore.sol/IStore.json +1 -0
  144. package/out/IStoreErrors.sol/IStoreErrors.abi.json +204 -0
  145. package/out/IStoreErrors.sol/IStoreErrors.abi.json.d.ts +206 -0
  146. package/out/IStoreErrors.sol/IStoreErrors.json +1 -0
  147. package/out/IStoreEvents.sol/IStoreEvents.abi.json +151 -0
  148. package/out/IStoreEvents.sol/IStoreEvents.abi.json.d.ts +153 -0
  149. package/out/IStoreEvents.sol/IStoreEvents.json +1 -0
  150. package/out/IStoreHook.sol/IStoreHook.abi.json +290 -0
  151. package/out/IStoreHook.sol/IStoreHook.abi.json.d.ts +292 -0
  152. package/out/IStoreHook.sol/IStoreHook.json +1 -0
  153. package/out/IStoreKernel.sol/IStoreKernel.abi.json +1182 -0
  154. package/out/IStoreKernel.sol/IStoreKernel.abi.json.d.ts +1184 -0
  155. package/out/IStoreKernel.sol/IStoreKernel.json +1 -0
  156. package/out/IStoreRead.sol/IStoreRead.abi.json +389 -0
  157. package/out/IStoreRead.sol/IStoreRead.abi.json.d.ts +391 -0
  158. package/out/IStoreRead.sol/IStoreRead.json +1 -0
  159. package/out/IStoreRegistration.sol/IStoreRegistration.abi.json +81 -0
  160. package/out/IStoreRegistration.sol/IStoreRegistration.abi.json.d.ts +83 -0
  161. package/out/IStoreRegistration.sol/IStoreRegistration.json +1 -0
  162. package/out/IStoreWrite.sol/IStoreWrite.abi.json +446 -0
  163. package/out/IStoreWrite.sol/IStoreWrite.abi.json.d.ts +448 -0
  164. package/out/IStoreWrite.sol/IStoreWrite.json +1 -0
  165. package/out/ISystemHook.sol/ISystemHook.abi.json +67 -0
  166. package/out/ISystemHook.sol/ISystemHook.abi.json.d.ts +69 -0
  167. package/out/ISystemHook.sol/ISystemHook.json +1 -0
  168. package/out/IWorld.sol/IWorld.abi.json +2042 -0
  169. package/out/IWorld.sol/IWorld.abi.json.d.ts +2044 -0
  170. package/out/IWorld.sol/IWorld.json +1 -0
  171. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.abi.json +60 -0
  172. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.abi.json.d.ts +62 -0
  173. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +1 -0
  174. package/out/IWorldErrors.sol/IWorldErrors.abi.json +200 -0
  175. package/out/IWorldErrors.sol/IWorldErrors.abi.json.d.ts +202 -0
  176. package/out/IWorldErrors.sol/IWorldErrors.json +1 -0
  177. package/out/IWorldEvents.sol/IWorldEvents.abi.json +15 -0
  178. package/out/IWorldEvents.sol/IWorldEvents.abi.json.d.ts +17 -0
  179. package/out/IWorldEvents.sol/IWorldEvents.json +1 -0
  180. package/out/IWorldKernel.sol/IWorldCall.abi.json +55 -0
  181. package/out/IWorldKernel.sol/IWorldCall.abi.json.d.ts +57 -0
  182. package/out/IWorldKernel.sol/IWorldCall.json +1 -0
  183. package/out/IWorldKernel.sol/IWorldKernel.abi.json +349 -0
  184. package/out/IWorldKernel.sol/IWorldKernel.abi.json.d.ts +351 -0
  185. package/out/IWorldKernel.sol/IWorldKernel.json +1 -0
  186. package/out/IWorldKernel.sol/IWorldModuleInstallation.abi.json +20 -0
  187. package/out/IWorldKernel.sol/IWorldModuleInstallation.abi.json.d.ts +22 -0
  188. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +1 -0
  189. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.abi.json +204 -0
  190. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.abi.json.d.ts +206 -0
  191. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +1 -0
  192. package/out/InitModule.sol/InitModule.abi.json +462 -0
  193. package/out/InitModule.sol/InitModule.abi.json.d.ts +464 -0
  194. package/out/InitModule.sol/InitModule.json +1 -0
  195. package/out/InitModuleAddress.sol/InitModuleAddress.abi.json +1 -0
  196. package/out/InitModuleAddress.sol/InitModuleAddress.json +1 -0
  197. package/out/InstalledModules.sol/InstalledModules.abi.json +1 -0
  198. package/out/InstalledModules.sol/InstalledModules.json +1 -0
  199. package/out/LimitedCallContext.sol/LimitedCallContext.abi.json +7 -0
  200. package/out/LimitedCallContext.sol/LimitedCallContext.abi.json.d.ts +9 -0
  201. package/out/LimitedCallContext.sol/LimitedCallContext.json +1 -0
  202. package/out/Memory.sol/Memory.abi.json +1 -0
  203. package/out/Memory.sol/Memory.json +1 -0
  204. package/out/Module.sol/Module.abi.json +112 -0
  205. package/out/Module.sol/Module.abi.json.d.ts +114 -0
  206. package/out/Module.sol/Module.json +1 -0
  207. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json +151 -0
  208. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json.d.ts +153 -0
  209. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -0
  210. package/out/NamespaceDelegationControl.sol/NamespaceDelegationControl.abi.json +1 -0
  211. package/out/NamespaceDelegationControl.sol/NamespaceDelegationControl.json +1 -0
  212. package/out/NamespaceOwner.sol/NamespaceOwner.abi.json +1 -0
  213. package/out/NamespaceOwner.sol/NamespaceOwner.json +1 -0
  214. package/out/RegistrationSystem.sol/RegistrationSystem.abi.json +1018 -0
  215. package/out/RegistrationSystem.sol/RegistrationSystem.abi.json.d.ts +1020 -0
  216. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -0
  217. package/out/ResourceAccess.sol/ResourceAccess.abi.json +1 -0
  218. package/out/ResourceAccess.sol/ResourceAccess.json +1 -0
  219. package/out/ResourceId.sol/ResourceIdInstance.abi.json +1 -0
  220. package/out/ResourceId.sol/ResourceIdInstance.json +1 -0
  221. package/out/ResourceId.sol/ResourceIdLib.abi.json +1 -0
  222. package/out/ResourceId.sol/ResourceIdLib.json +1 -0
  223. package/out/ResourceIds.sol/ResourceIds.abi.json +1 -0
  224. package/out/ResourceIds.sol/ResourceIds.json +1 -0
  225. package/out/RevertSubscriber.sol/RevertSubscriber.abi.json +290 -0
  226. package/out/RevertSubscriber.sol/RevertSubscriber.abi.json.d.ts +292 -0
  227. package/out/RevertSubscriber.sol/RevertSubscriber.json +1 -0
  228. package/out/Schema.sol/SchemaInstance.abi.json +1 -0
  229. package/out/Schema.sol/SchemaInstance.json +1 -0
  230. package/out/Schema.sol/SchemaLib.abi.json +1 -0
  231. package/out/Schema.sol/SchemaLib.json +1 -0
  232. package/out/SchemaEncodeHelper.sol/SchemaEncodeHelper.abi.json +1 -0
  233. package/out/SchemaEncodeHelper.sol/SchemaEncodeHelper.json +1 -0
  234. package/out/SignatureChecker.sol/SignatureChecker.abi.json +1 -0
  235. package/out/SignatureChecker.sol/SignatureChecker.json +1 -0
  236. package/out/Slice.sol/SliceInstance.abi.json +1 -0
  237. package/out/Slice.sol/SliceInstance.json +1 -0
  238. package/out/Slice.sol/SliceLib.abi.json +1 -0
  239. package/out/Slice.sol/SliceLib.json +1 -0
  240. package/out/StdAssertions.sol/StdAssertions.abi.json +392 -0
  241. package/out/StdAssertions.sol/StdAssertions.abi.json.d.ts +394 -0
  242. package/out/StdAssertions.sol/StdAssertions.json +1 -0
  243. package/out/StdChains.sol/StdChains.abi.json +1 -0
  244. package/out/StdChains.sol/StdChains.json +1 -0
  245. package/out/StdCheats.sol/StdCheats.abi.json +1 -0
  246. package/out/StdCheats.sol/StdCheats.json +1 -0
  247. package/out/StdCheats.sol/StdCheatsSafe.abi.json +1 -0
  248. package/out/StdCheats.sol/StdCheatsSafe.json +1 -0
  249. package/out/StdError.sol/stdError.abi.json +119 -0
  250. package/out/StdError.sol/stdError.abi.json.d.ts +121 -0
  251. package/out/StdError.sol/stdError.json +1 -0
  252. package/out/StdInvariant.sol/StdInvariant.abi.json +130 -0
  253. package/out/StdInvariant.sol/StdInvariant.abi.json.d.ts +132 -0
  254. package/out/StdInvariant.sol/StdInvariant.json +1 -0
  255. package/out/StdJson.sol/stdJson.abi.json +1 -0
  256. package/out/StdJson.sol/stdJson.json +1 -0
  257. package/out/StdMath.sol/stdMath.abi.json +1 -0
  258. package/out/StdMath.sol/stdMath.json +1 -0
  259. package/out/StdStorage.sol/stdStorage.abi.json +1 -0
  260. package/out/StdStorage.sol/stdStorage.json +1 -0
  261. package/out/StdStorage.sol/stdStorageSafe.abi.json +52 -0
  262. package/out/StdStorage.sol/stdStorageSafe.abi.json.d.ts +54 -0
  263. package/out/StdStorage.sol/stdStorageSafe.json +1 -0
  264. package/out/StdStyle.sol/StdStyle.abi.json +1 -0
  265. package/out/StdStyle.sol/StdStyle.json +1 -0
  266. package/out/StdUtils.sol/StdUtils.abi.json +1 -0
  267. package/out/StdUtils.sol/StdUtils.json +1 -0
  268. package/out/Storage.sol/Storage.abi.json +1 -0
  269. package/out/Storage.sol/Storage.json +1 -0
  270. package/out/StoreCore.sol/StoreCore.abi.json +1 -0
  271. package/out/StoreCore.sol/StoreCore.json +1 -0
  272. package/out/StoreCore.sol/StoreCoreInternal.abi.json +1 -0
  273. package/out/StoreCore.sol/StoreCoreInternal.json +1 -0
  274. package/out/StoreHook.sol/StoreHook.abi.json +290 -0
  275. package/out/StoreHook.sol/StoreHook.abi.json.d.ts +292 -0
  276. package/out/StoreHook.sol/StoreHook.json +1 -0
  277. package/out/StoreHooks.sol/StoreHooks.abi.json +1 -0
  278. package/out/StoreHooks.sol/StoreHooks.json +1 -0
  279. package/out/StoreKernel.sol/StoreKernel.abi.json +1182 -0
  280. package/out/StoreKernel.sol/StoreKernel.abi.json.d.ts +1184 -0
  281. package/out/StoreKernel.sol/StoreKernel.json +1 -0
  282. package/out/StoreRead.sol/StoreRead.abi.json +437 -0
  283. package/out/StoreRead.sol/StoreRead.abi.json.d.ts +439 -0
  284. package/out/StoreRead.sol/StoreRead.json +1 -0
  285. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json +779 -0
  286. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json.d.ts +781 -0
  287. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -0
  288. package/out/StoreSwitch.sol/StoreSwitch.abi.json +1 -0
  289. package/out/StoreSwitch.sol/StoreSwitch.json +1 -0
  290. package/out/System.sol/System.abi.json +60 -0
  291. package/out/System.sol/System.abi.json.d.ts +62 -0
  292. package/out/System.sol/System.json +1 -0
  293. package/out/SystemCall.sol/SystemCall.abi.json +1 -0
  294. package/out/SystemCall.sol/SystemCall.json +1 -0
  295. package/out/SystemHook.sol/SystemHook.abi.json +67 -0
  296. package/out/SystemHook.sol/SystemHook.abi.json.d.ts +69 -0
  297. package/out/SystemHook.sol/SystemHook.json +1 -0
  298. package/out/SystemHooks.sol/SystemHooks.abi.json +1 -0
  299. package/out/SystemHooks.sol/SystemHooks.json +1 -0
  300. package/out/SystemRegistry.sol/SystemRegistry.abi.json +1 -0
  301. package/out/SystemRegistry.sol/SystemRegistry.json +1 -0
  302. package/out/Systems.sol/Systems.abi.json +1 -0
  303. package/out/Systems.sol/Systems.json +1 -0
  304. package/out/Tables.sol/Tables.abi.json +1 -0
  305. package/out/Tables.sol/Tables.json +1 -0
  306. package/out/Test.sol/Test.abi.json +520 -0
  307. package/out/Test.sol/Test.abi.json.d.ts +522 -0
  308. package/out/Test.sol/Test.json +1 -0
  309. package/out/TightCoder.sol/TightCoder.abi.json +1 -0
  310. package/out/TightCoder.sol/TightCoder.json +1 -0
  311. package/out/TwoFields.sol/TwoFields.abi.json +1 -0
  312. package/out/TwoFields.sol/TwoFields.json +1 -0
  313. package/out/UserDelegationControl.sol/UserDelegationControl.abi.json +1 -0
  314. package/out/UserDelegationControl.sol/UserDelegationControl.json +1 -0
  315. package/out/Vm.sol/Vm.abi.json +3878 -0
  316. package/out/Vm.sol/Vm.abi.json.d.ts +3880 -0
  317. package/out/Vm.sol/Vm.json +1 -0
  318. package/out/Vm.sol/VmSafe.abi.json +2678 -0
  319. package/out/Vm.sol/VmSafe.abi.json.d.ts +2680 -0
  320. package/out/Vm.sol/VmSafe.json +1 -0
  321. package/out/World.sol/World.abi.json +1542 -0
  322. package/out/World.sol/World.abi.json.d.ts +1544 -0
  323. package/out/World.sol/World.json +1 -0
  324. package/out/World.t.sol/EchoSystemHook.abi.json +80 -0
  325. package/out/World.t.sol/EchoSystemHook.abi.json.d.ts +82 -0
  326. package/out/World.t.sol/EchoSystemHook.json +1 -0
  327. package/out/World.t.sol/IWorldTestSystem.abi.json +15 -0
  328. package/out/World.t.sol/IWorldTestSystem.abi.json.d.ts +17 -0
  329. package/out/World.t.sol/IWorldTestSystem.json +1 -0
  330. package/out/World.t.sol/PayableFallbackSystem.abi.json +64 -0
  331. package/out/World.t.sol/PayableFallbackSystem.abi.json.d.ts +66 -0
  332. package/out/World.t.sol/PayableFallbackSystem.json +1 -0
  333. package/out/World.t.sol/RevertSystemHook.abi.json +80 -0
  334. package/out/World.t.sol/RevertSystemHook.abi.json.d.ts +82 -0
  335. package/out/World.t.sol/RevertSystemHook.json +1 -0
  336. package/out/World.t.sol/WorldTest.abi.json +1029 -0
  337. package/out/World.t.sol/WorldTest.abi.json.d.ts +1031 -0
  338. package/out/World.t.sol/WorldTest.json +1 -0
  339. package/out/World.t.sol/WorldTestSystem.abi.json +277 -0
  340. package/out/World.t.sol/WorldTestSystem.abi.json.d.ts +279 -0
  341. package/out/World.t.sol/WorldTestSystem.json +1 -0
  342. package/out/WorldContext.sol/WorldContextConsumer.abi.json +60 -0
  343. package/out/WorldContext.sol/WorldContextConsumer.abi.json.d.ts +62 -0
  344. package/out/WorldContext.sol/WorldContextConsumer.json +1 -0
  345. package/out/WorldContext.sol/WorldContextConsumerLib.abi.json +1 -0
  346. package/out/WorldContext.sol/WorldContextConsumerLib.json +1 -0
  347. package/out/WorldContext.sol/WorldContextProviderLib.abi.json +1 -0
  348. package/out/WorldContext.sol/WorldContextProviderLib.json +1 -0
  349. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json +691 -0
  350. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json.d.ts +693 -0
  351. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -0
  352. package/out/WorldResourceId.sol/WorldResourceIdInstance.abi.json +1 -0
  353. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +1 -0
  354. package/out/WorldResourceId.sol/WorldResourceIdLib.abi.json +1 -0
  355. package/out/WorldResourceId.sol/WorldResourceIdLib.json +1 -0
  356. package/out/build-info/306c60bc5d3442ad78ed6293bddbefdd.json +1 -0
  357. package/out/console.sol/console.abi.json +1 -0
  358. package/out/console.sol/console.json +1 -0
  359. package/out/console2.sol/console2.abi.json +1 -0
  360. package/out/console2.sol/console2.json +1 -0
  361. package/out/constants.sol/LayoutOffsets.abi.json +1 -0
  362. package/out/constants.sol/LayoutOffsets.json +1 -0
  363. package/out/safeconsole.sol/safeconsole.abi.json +1 -0
  364. package/out/safeconsole.sol/safeconsole.json +1 -0
  365. package/out/src/IERC165.sol/IERC165.abi.json +21 -0
  366. package/out/src/IERC165.sol/IERC165.abi.json.d.ts +23 -0
  367. package/out/src/IERC165.sol/IERC165.json +1 -0
  368. package/out/test.sol/DSTest.abi.json +296 -0
  369. package/out/test.sol/DSTest.abi.json.d.ts +298 -0
  370. package/out/test.sol/DSTest.json +1 -0
  371. package/package.json +64 -0
  372. package/src/CallWithSignatureModule.sol +48 -0
  373. package/src/CallWithSignatureSystem.sol +36 -0
  374. package/src/ECDSA.sol +174 -0
  375. package/src/ICallWithSignatureErrors.sol +9 -0
  376. package/src/IERC1271.sol +17 -0
  377. package/src/SignatureChecker.sol +50 -0
  378. package/src/codegen/index.sol +6 -0
  379. package/src/codegen/tables/CallWithSignatureNonces.sol +199 -0
  380. package/src/codegen/world/ICallWithSignatureSystem.sol +20 -0
  381. package/src/codegen/world/IWorld.sol +16 -0
  382. package/src/constants.sol +10 -0
  383. package/src/getSignedMessageHash.sol +54 -0
  384. package/src/validateCallWithSignature.sol +31 -0
@@ -0,0 +1,298 @@
1
+ declare const abi: [
2
+ {
3
+ "type": "function",
4
+ "name": "IS_TEST",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "bool",
10
+ "internalType": "bool"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "failed",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "bool",
23
+ "internalType": "bool"
24
+ }
25
+ ],
26
+ "stateMutability": "nonpayable"
27
+ },
28
+ {
29
+ "type": "event",
30
+ "name": "log",
31
+ "inputs": [
32
+ {
33
+ "name": "",
34
+ "type": "string",
35
+ "indexed": false,
36
+ "internalType": "string"
37
+ }
38
+ ],
39
+ "anonymous": false
40
+ },
41
+ {
42
+ "type": "event",
43
+ "name": "log_address",
44
+ "inputs": [
45
+ {
46
+ "name": "",
47
+ "type": "address",
48
+ "indexed": false,
49
+ "internalType": "address"
50
+ }
51
+ ],
52
+ "anonymous": false
53
+ },
54
+ {
55
+ "type": "event",
56
+ "name": "log_bytes",
57
+ "inputs": [
58
+ {
59
+ "name": "",
60
+ "type": "bytes",
61
+ "indexed": false,
62
+ "internalType": "bytes"
63
+ }
64
+ ],
65
+ "anonymous": false
66
+ },
67
+ {
68
+ "type": "event",
69
+ "name": "log_bytes32",
70
+ "inputs": [
71
+ {
72
+ "name": "",
73
+ "type": "bytes32",
74
+ "indexed": false,
75
+ "internalType": "bytes32"
76
+ }
77
+ ],
78
+ "anonymous": false
79
+ },
80
+ {
81
+ "type": "event",
82
+ "name": "log_int",
83
+ "inputs": [
84
+ {
85
+ "name": "",
86
+ "type": "int256",
87
+ "indexed": false,
88
+ "internalType": "int256"
89
+ }
90
+ ],
91
+ "anonymous": false
92
+ },
93
+ {
94
+ "type": "event",
95
+ "name": "log_named_address",
96
+ "inputs": [
97
+ {
98
+ "name": "key",
99
+ "type": "string",
100
+ "indexed": false,
101
+ "internalType": "string"
102
+ },
103
+ {
104
+ "name": "val",
105
+ "type": "address",
106
+ "indexed": false,
107
+ "internalType": "address"
108
+ }
109
+ ],
110
+ "anonymous": false
111
+ },
112
+ {
113
+ "type": "event",
114
+ "name": "log_named_bytes",
115
+ "inputs": [
116
+ {
117
+ "name": "key",
118
+ "type": "string",
119
+ "indexed": false,
120
+ "internalType": "string"
121
+ },
122
+ {
123
+ "name": "val",
124
+ "type": "bytes",
125
+ "indexed": false,
126
+ "internalType": "bytes"
127
+ }
128
+ ],
129
+ "anonymous": false
130
+ },
131
+ {
132
+ "type": "event",
133
+ "name": "log_named_bytes32",
134
+ "inputs": [
135
+ {
136
+ "name": "key",
137
+ "type": "string",
138
+ "indexed": false,
139
+ "internalType": "string"
140
+ },
141
+ {
142
+ "name": "val",
143
+ "type": "bytes32",
144
+ "indexed": false,
145
+ "internalType": "bytes32"
146
+ }
147
+ ],
148
+ "anonymous": false
149
+ },
150
+ {
151
+ "type": "event",
152
+ "name": "log_named_decimal_int",
153
+ "inputs": [
154
+ {
155
+ "name": "key",
156
+ "type": "string",
157
+ "indexed": false,
158
+ "internalType": "string"
159
+ },
160
+ {
161
+ "name": "val",
162
+ "type": "int256",
163
+ "indexed": false,
164
+ "internalType": "int256"
165
+ },
166
+ {
167
+ "name": "decimals",
168
+ "type": "uint256",
169
+ "indexed": false,
170
+ "internalType": "uint256"
171
+ }
172
+ ],
173
+ "anonymous": false
174
+ },
175
+ {
176
+ "type": "event",
177
+ "name": "log_named_decimal_uint",
178
+ "inputs": [
179
+ {
180
+ "name": "key",
181
+ "type": "string",
182
+ "indexed": false,
183
+ "internalType": "string"
184
+ },
185
+ {
186
+ "name": "val",
187
+ "type": "uint256",
188
+ "indexed": false,
189
+ "internalType": "uint256"
190
+ },
191
+ {
192
+ "name": "decimals",
193
+ "type": "uint256",
194
+ "indexed": false,
195
+ "internalType": "uint256"
196
+ }
197
+ ],
198
+ "anonymous": false
199
+ },
200
+ {
201
+ "type": "event",
202
+ "name": "log_named_int",
203
+ "inputs": [
204
+ {
205
+ "name": "key",
206
+ "type": "string",
207
+ "indexed": false,
208
+ "internalType": "string"
209
+ },
210
+ {
211
+ "name": "val",
212
+ "type": "int256",
213
+ "indexed": false,
214
+ "internalType": "int256"
215
+ }
216
+ ],
217
+ "anonymous": false
218
+ },
219
+ {
220
+ "type": "event",
221
+ "name": "log_named_string",
222
+ "inputs": [
223
+ {
224
+ "name": "key",
225
+ "type": "string",
226
+ "indexed": false,
227
+ "internalType": "string"
228
+ },
229
+ {
230
+ "name": "val",
231
+ "type": "string",
232
+ "indexed": false,
233
+ "internalType": "string"
234
+ }
235
+ ],
236
+ "anonymous": false
237
+ },
238
+ {
239
+ "type": "event",
240
+ "name": "log_named_uint",
241
+ "inputs": [
242
+ {
243
+ "name": "key",
244
+ "type": "string",
245
+ "indexed": false,
246
+ "internalType": "string"
247
+ },
248
+ {
249
+ "name": "val",
250
+ "type": "uint256",
251
+ "indexed": false,
252
+ "internalType": "uint256"
253
+ }
254
+ ],
255
+ "anonymous": false
256
+ },
257
+ {
258
+ "type": "event",
259
+ "name": "log_string",
260
+ "inputs": [
261
+ {
262
+ "name": "",
263
+ "type": "string",
264
+ "indexed": false,
265
+ "internalType": "string"
266
+ }
267
+ ],
268
+ "anonymous": false
269
+ },
270
+ {
271
+ "type": "event",
272
+ "name": "log_uint",
273
+ "inputs": [
274
+ {
275
+ "name": "",
276
+ "type": "uint256",
277
+ "indexed": false,
278
+ "internalType": "uint256"
279
+ }
280
+ ],
281
+ "anonymous": false
282
+ },
283
+ {
284
+ "type": "event",
285
+ "name": "logs",
286
+ "inputs": [
287
+ {
288
+ "name": "",
289
+ "type": "bytes",
290
+ "indexed": false,
291
+ "internalType": "bytes"
292
+ }
293
+ ],
294
+ "anonymous": false
295
+ }
296
+ ];
297
+
298
+ export default abi;
@@ -0,0 +1 @@
1
+ {"abi":[{"type":"function","name":"IS_TEST","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"failed","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"},{"type":"event","name":"log","inputs":[{"name":"","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"log_address","inputs":[{"name":"","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"log_bytes","inputs":[{"name":"","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"type":"event","name":"log_bytes32","inputs":[{"name":"","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"log_int","inputs":[{"name":"","type":"int256","indexed":false,"internalType":"int256"}],"anonymous":false},{"type":"event","name":"log_named_address","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"log_named_bytes","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"type":"event","name":"log_named_bytes32","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"log_named_decimal_int","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"int256","indexed":false,"internalType":"int256"},{"name":"decimals","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"log_named_decimal_uint","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"decimals","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"log_named_int","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"int256","indexed":false,"internalType":"int256"}],"anonymous":false},{"type":"event","name":"log_named_string","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"log_named_uint","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"log_string","inputs":[{"name":"","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"log_uint","inputs":[{"name":"","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"logs","inputs":[{"name":"","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false}],"bytecode":{"object":"0x60806040525f805460ff1916600117905534801561001b575f80fd5b5061025e806100295f395ff3fe608060405234801561000f575f80fd5b5060043610610034575f3560e01c8063ba414fa614610038578063fa7626d414610054575b5f80fd5b610040610060565b604051901515815260200160405180910390f35b5f546100409060ff1681565b5f8054610100900460ff161561007e57505f54610100900460ff1690565b5f737109709ecfa91a80626ff3989d68f67f5b1dd12d3b156101b35760408051737109709ecfa91a80626ff3989d68f67f5b1dd12d602082018190527f6661696c6564000000000000000000000000000000000000000000000000000082840152825180830384018152606083019093525f929091610121917f667f9d70ca411d70ead50d8d5c22070dafc36ad75f3dcf5e7237b22ade9aecc4916080016101e5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261015991610220565b5f604051808303815f865af19150503d805f8114610192576040519150601f19603f3d011682016040523d82523d5f602084013e610197565b606091505b50915050808060200190518101906101af9190610232565b9150505b919050565b5f81515f5b818110156101d757602081850181015186830152016101bd565b505f93019283525090919050565b7fffffffff00000000000000000000000000000000000000000000000000000000831681525f61021860048301846101b8565b949350505050565b5f61022b82846101b8565b9392505050565b5f60208284031215610242575f80fd5b8151801515811461022b575f80fdfea164736f6c6343000818000a","sourceMap":"715:19781:113:-:0;;;1572:26;;;-1:-1:-1;;1572:26:113;1594:4;1572:26;;;715:19781;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x608060405234801561000f575f80fd5b5060043610610034575f3560e01c8063ba414fa614610038578063fa7626d414610054575b5f80fd5b610040610060565b604051901515815260200160405180910390f35b5f546100409060ff1681565b5f8054610100900460ff161561007e57505f54610100900460ff1690565b5f737109709ecfa91a80626ff3989d68f67f5b1dd12d3b156101b35760408051737109709ecfa91a80626ff3989d68f67f5b1dd12d602082018190527f6661696c6564000000000000000000000000000000000000000000000000000082840152825180830384018152606083019093525f929091610121917f667f9d70ca411d70ead50d8d5c22070dafc36ad75f3dcf5e7237b22ade9aecc4916080016101e5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261015991610220565b5f604051808303815f865af19150503d805f8114610192576040519150601f19603f3d011682016040523d82523d5f602084013e610197565b606091505b50915050808060200190518101906101af9190610232565b9150505b919050565b5f81515f5b818110156101d757602081850181015186830152016101bd565b505f93019283525090919050565b7fffffffff00000000000000000000000000000000000000000000000000000000831681525f61021860048301846101b8565b949350505050565b5f61022b82846101b8565b9392505050565b5f60208284031215610242575f80fd5b8151801515811461022b575f80fdfea164736f6c6343000818000a","sourceMap":"715:19781:113:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1819:584;;;:::i;:::-;;;179:14:145;;172:22;154:41;;142:2;127:18;1819:584:113;;;;;;;1572:26;;;;;;;;;1819:584;1853:4;1873:7;;;;;;;1869:528;;;-1:-1:-1;1903:7:113;;;;;;;;1819:584::o;1869:528::-;1941:17;2997:42;2985:55;3066:16;1980:374;;2196:43;;;1671:64;2196:43;;;380:74:145;;;2221:17:113;470:18:145;;;463:34;2196:43:113;;;;;;;;;353:18:145;;;2196:43:113;;;-1:-1:-1;;1671:64:113;;2086:175;;2135:34;;2086:175;;;:::i;:::-;;;;;;;;;;;;;;;2047:232;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2020:259;;;2323:7;2312:27;;;;;;;;;;;;:::i;:::-;2297:42;;2002:352;1980:374;2374:12;1819:584;-1:-1:-1;1819:584:113:o;508:322:145:-;549:3;587:5;581:12;611:1;621:128;635:6;632:1;629:13;621:128;;;732:4;717:13;;;713:24;;707:31;694:11;;;687:52;650:12;621:128;;;-1:-1:-1;804:1:145;768:16;;793:13;;;-1:-1:-1;768:16:145;;508:322;-1:-1:-1;508:322:145:o;835:324::-;1032:66;1024:6;1020:79;1015:3;1008:92;990:3;1116:37;1150:1;1145:3;1141:11;1133:6;1116:37;:::i;:::-;1109:44;835:324;-1:-1:-1;;;;835:324:145:o;1164:189::-;1293:3;1318:29;1343:3;1335:6;1318:29;:::i;:::-;1311:36;1164:189;-1:-1:-1;;;1164:189:145:o;1358:277::-;1425:6;1478:2;1466:9;1457:7;1453:23;1449:32;1446:52;;;1494:1;1491;1484:12;1446:52;1526:9;1520:16;1579:5;1572:13;1565:21;1558:5;1555:32;1545:60;;1601:1;1598;1591:12","linkReferences":{}},"methodIdentifiers":{"IS_TEST()":"fa7626d4","failed()":"ba414fa6"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"log\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"log_address\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"log_bytes\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"log_bytes32\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"name\":\"log_int\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"val\",\"type\":\"address\"}],\"name\":\"log_named_address\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"val\",\"type\":\"bytes\"}],\"name\":\"log_named_bytes\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"val\",\"type\":\"bytes32\"}],\"name\":\"log_named_bytes32\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"val\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"decimals\",\"type\":\"uint256\"}],\"name\":\"log_named_decimal_int\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"decimals\",\"type\":\"uint256\"}],\"name\":\"log_named_decimal_uint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"val\",\"type\":\"int256\"}],\"name\":\"log_named_int\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"val\",\"type\":\"string\"}],\"name\":\"log_named_string\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"}],\"name\":\"log_named_uint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"log_string\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"log_uint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"logs\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"IS_TEST\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"failed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"node_modules/ds-test/src/test.sol\":\"DSTest\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":3000},\"remappings\":[\":@latticexyz/=node_modules/@latticexyz/\",\":ds-test/=node_modules/ds-test/src/\",\":forge-std/=node_modules/forge-std/src/\"]},\"sources\":{\"node_modules/ds-test/src/test.sol\":{\"keccak256\":\"0x8758531bbac3972efcf1fa46383dbe1d276406fe527bc7abb2f236486278e83b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1f64264d61506847acf8761e84aff690cebe830958eac00bac7924d8be569240\",\"dweb:/ipfs/QmSekDJvJ82MZAmr63n7YvfLzQ7gS4NLSHPmHL3GN3rw8k\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"string","name":"","type":"string","indexed":false}],"type":"event","name":"log","anonymous":false},{"inputs":[{"internalType":"address","name":"","type":"address","indexed":false}],"type":"event","name":"log_address","anonymous":false},{"inputs":[{"internalType":"bytes","name":"","type":"bytes","indexed":false}],"type":"event","name":"log_bytes","anonymous":false},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32","indexed":false}],"type":"event","name":"log_bytes32","anonymous":false},{"inputs":[{"internalType":"int256","name":"","type":"int256","indexed":false}],"type":"event","name":"log_int","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"address","name":"val","type":"address","indexed":false}],"type":"event","name":"log_named_address","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"bytes","name":"val","type":"bytes","indexed":false}],"type":"event","name":"log_named_bytes","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"bytes32","name":"val","type":"bytes32","indexed":false}],"type":"event","name":"log_named_bytes32","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"int256","name":"val","type":"int256","indexed":false},{"internalType":"uint256","name":"decimals","type":"uint256","indexed":false}],"type":"event","name":"log_named_decimal_int","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"uint256","name":"val","type":"uint256","indexed":false},{"internalType":"uint256","name":"decimals","type":"uint256","indexed":false}],"type":"event","name":"log_named_decimal_uint","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"int256","name":"val","type":"int256","indexed":false}],"type":"event","name":"log_named_int","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"string","name":"val","type":"string","indexed":false}],"type":"event","name":"log_named_string","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"uint256","name":"val","type":"uint256","indexed":false}],"type":"event","name":"log_named_uint","anonymous":false},{"inputs":[{"internalType":"string","name":"","type":"string","indexed":false}],"type":"event","name":"log_string","anonymous":false},{"inputs":[{"internalType":"uint256","name":"","type":"uint256","indexed":false}],"type":"event","name":"log_uint","anonymous":false},{"inputs":[{"internalType":"bytes","name":"","type":"bytes","indexed":false}],"type":"event","name":"logs","anonymous":false},{"inputs":[],"stateMutability":"view","type":"function","name":"IS_TEST","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[],"stateMutability":"nonpayable","type":"function","name":"failed","outputs":[{"internalType":"bool","name":"","type":"bool"}]}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@latticexyz/=node_modules/@latticexyz/","ds-test/=node_modules/ds-test/src/","forge-std/=node_modules/forge-std/src/"],"optimizer":{"enabled":true,"runs":3000},"metadata":{"bytecodeHash":"none"},"compilationTarget":{"node_modules/ds-test/src/test.sol":"DSTest"},"evmVersion":"cancun","libraries":{}},"sources":{"node_modules/ds-test/src/test.sol":{"keccak256":"0x8758531bbac3972efcf1fa46383dbe1d276406fe527bc7abb2f236486278e83b","urls":["bzz-raw://1f64264d61506847acf8761e84aff690cebe830958eac00bac7924d8be569240","dweb:/ipfs/QmSekDJvJ82MZAmr63n7YvfLzQ7gS4NLSHPmHL3GN3rw8k"],"license":"GPL-3.0-or-later"}},"version":1},"id":113}
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@latticexyz/world-module-callwithsignature",
3
+ "version": "2.2.17-03eae1330cef5cae129841958fb75541ef13fb43",
4
+ "description": "CallWithSignature world module",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/latticexyz/mud.git",
8
+ "directory": "packages/world-module-callwithsignature"
9
+ },
10
+ "license": "MIT",
11
+ "type": "module",
12
+ "exports": {
13
+ "./internal": "./dist/internal.js",
14
+ "./mud.config": "./dist/mud.config.js",
15
+ "./out/*": "./out/*"
16
+ },
17
+ "typesVersions": {
18
+ "*": {
19
+ "internal": [
20
+ "./dist/internal.d.ts"
21
+ ],
22
+ "mud.config": [
23
+ "./dist/mud.config.d.ts"
24
+ ]
25
+ }
26
+ },
27
+ "files": [
28
+ "dist",
29
+ "out",
30
+ "src"
31
+ ],
32
+ "dependencies": {
33
+ "@latticexyz/schema-type": "2.2.17-03eae1330cef5cae129841958fb75541ef13fb43",
34
+ "@latticexyz/store": "2.2.17-03eae1330cef5cae129841958fb75541ef13fb43",
35
+ "@latticexyz/world": "2.2.17-03eae1330cef5cae129841958fb75541ef13fb43"
36
+ },
37
+ "devDependencies": {
38
+ "ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
39
+ "forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
40
+ "solhint": "^3.3.7",
41
+ "vitest": "0.34.6",
42
+ "@latticexyz/abi-ts": "2.2.17-03eae1330cef5cae129841958fb75541ef13fb43",
43
+ "@latticexyz/gas-report": "2.2.17-03eae1330cef5cae129841958fb75541ef13fb43"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "scripts": {
49
+ "build": "pnpm run build:mud && pnpm run build:abi && pnpm run build:abi-ts && pnpm run build:js",
50
+ "build:abi": "forge build",
51
+ "build:abi-ts": "abi-ts",
52
+ "build:js": "tsup",
53
+ "build:mud": "tsx ./ts/build.ts",
54
+ "clean": "pnpm run clean:abi && pnpm run clean:js && pnpm run clean:mud",
55
+ "clean:abi": "forge clean",
56
+ "clean:js": "shx rm -rf dist",
57
+ "clean:mud": "shx rm -rf src/**/codegen",
58
+ "dev": "tsup --watch",
59
+ "gas-report": "gas-report --save gas-report.json",
60
+ "lint": "solhint --config ./.solhint.json 'src/**/*.sol'",
61
+ "test": "forge test",
62
+ "test:ci": "pnpm run test"
63
+ }
64
+ }
@@ -0,0 +1,48 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity >=0.8.24;
3
+
4
+ import { IBaseWorld } from "@latticexyz/world/src/codegen/interfaces/IBaseWorld.sol";
5
+
6
+ import { Module } from "@latticexyz/world/src/Module.sol";
7
+ import { revertWithBytes } from "@latticexyz/world/src/revertWithBytes.sol";
8
+
9
+ import { CallWithSignatureNonces } from "./codegen/tables/CallWithSignatureNonces.sol";
10
+ import { CallWithSignatureSystem } from "./CallWithSignatureSystem.sol";
11
+
12
+ import { DELEGATION_SYSTEM_ID } from "./constants.sol";
13
+
14
+ contract CallWithSignatureModule is Module {
15
+ CallWithSignatureSystem private immutable callWithSignatureSystem = new CallWithSignatureSystem();
16
+
17
+ function installRoot(bytes memory encodedArgs) public {
18
+ requireNotInstalled(__self, encodedArgs);
19
+
20
+ IBaseWorld world = IBaseWorld(_world());
21
+
22
+ // Register table
23
+ CallWithSignatureNonces._register();
24
+
25
+ // Register system
26
+ (bool success, bytes memory data) = address(world).delegatecall(
27
+ abi.encodeCall(world.registerSystem, (DELEGATION_SYSTEM_ID, callWithSignatureSystem, true))
28
+ );
29
+ if (!success) revertWithBytes(data);
30
+
31
+ // Register system's functions
32
+ (success, data) = address(world).delegatecall(
33
+ abi.encodeCall(
34
+ world.registerRootFunctionSelector,
35
+ (
36
+ DELEGATION_SYSTEM_ID,
37
+ "callWithSignature(address,bytes32,bytes,bytes)",
38
+ "callWithSignature(address,bytes32,bytes,bytes)"
39
+ )
40
+ )
41
+ );
42
+ if (!success) revertWithBytes(data);
43
+ }
44
+
45
+ function install(bytes memory) public pure {
46
+ revert Module_NonRootInstallNotSupported();
47
+ }
48
+ }
@@ -0,0 +1,36 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity >=0.8.24;
3
+
4
+ import { ResourceId } from "@latticexyz/store/src/ResourceId.sol";
5
+ import { System } from "@latticexyz/world/src/System.sol";
6
+ import { SystemCall } from "@latticexyz/world/src/SystemCall.sol";
7
+ import { createDelegation } from "@latticexyz/world/src/modules/init/implementations/createDelegation.sol";
8
+
9
+ import { CallWithSignatureNonces } from "./codegen/tables/CallWithSignatureNonces.sol";
10
+ import { getSignedMessageHash } from "./getSignedMessageHash.sol";
11
+ import { ECDSA } from "./ECDSA.sol";
12
+ import { validateCallWithSignature } from "./validateCallWithSignature.sol";
13
+ import { ICallWithSignatureErrors } from "./ICallWithSignatureErrors.sol";
14
+
15
+ contract CallWithSignatureSystem is System, ICallWithSignatureErrors {
16
+ /**
17
+ * @notice Calls a system with a given system ID using the given signature.
18
+ * @param signer The address on whose behalf the system is called.
19
+ * @param systemId The ID of the system to be called.
20
+ * @param callData The ABI data for the system call.
21
+ * @param signature The EIP712 signature.
22
+ * @return Return data from the system call.
23
+ */
24
+ function callWithSignature(
25
+ address signer,
26
+ ResourceId systemId,
27
+ bytes memory callData,
28
+ bytes memory signature
29
+ ) external payable returns (bytes memory) {
30
+ validateCallWithSignature(signer, systemId, callData, signature);
31
+
32
+ CallWithSignatureNonces._set(signer, CallWithSignatureNonces._get(signer) + 1);
33
+
34
+ return SystemCall.callWithHooksOrRevert(signer, systemId, callData, _msgValue());
35
+ }
36
+ }
package/src/ECDSA.sol ADDED
@@ -0,0 +1,174 @@
1
+ // SPDX-License-Identifier: MIT
2
+ // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)
3
+
4
+ pragma solidity >=0.8.24;
5
+
6
+ /**
7
+ * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
8
+ *
9
+ * These functions can be used to verify that a message was signed by the holder
10
+ * of the private keys of a given address.
11
+ */
12
+ library ECDSA {
13
+ enum RecoverError {
14
+ NoError,
15
+ InvalidSignature,
16
+ InvalidSignatureLength,
17
+ InvalidSignatureS
18
+ }
19
+
20
+ /**
21
+ * @dev The signature derives the `address(0)`.
22
+ */
23
+ error ECDSAInvalidSignature();
24
+
25
+ /**
26
+ * @dev The signature has an invalid length.
27
+ */
28
+ error ECDSAInvalidSignatureLength(uint256 length);
29
+
30
+ /**
31
+ * @dev The signature has an S value that is in the upper half order.
32
+ */
33
+ error ECDSAInvalidSignatureS(bytes32 s);
34
+
35
+ /**
36
+ * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
37
+ * return address(0) without also returning an error description. Errors are documented using an enum (error type)
38
+ * and a bytes32 providing additional information about the error.
39
+ *
40
+ * If no error is returned, then the address can be used for verification purposes.
41
+ *
42
+ * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
43
+ * this function rejects them by requiring the `s` value to be in the lower
44
+ * half order, and the `v` value to be either 27 or 28.
45
+ *
46
+ * IMPORTANT: `hash` _must_ be the result of a hash operation for the
47
+ * verification to be secure: it is possible to craft signatures that
48
+ * recover to arbitrary addresses for non-hashed data. A safe way to ensure
49
+ * this is by receiving a hash of the original message (which may otherwise
50
+ * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
51
+ *
52
+ * Documentation for signature generation:
53
+ * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
54
+ * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
55
+ */
56
+ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {
57
+ if (signature.length == 65) {
58
+ bytes32 r;
59
+ bytes32 s;
60
+ uint8 v;
61
+ // ecrecover takes the signature parameters, and the only way to get them
62
+ // currently is to use assembly.
63
+ /// @solidity memory-safe-assembly
64
+ assembly {
65
+ r := mload(add(signature, 0x20))
66
+ s := mload(add(signature, 0x40))
67
+ v := byte(0, mload(add(signature, 0x60)))
68
+ }
69
+ return tryRecover(hash, v, r, s);
70
+ } else {
71
+ return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));
72
+ }
73
+ }
74
+
75
+ /**
76
+ * @dev Returns the address that signed a hashed message (`hash`) with
77
+ * `signature`. This address can then be used for verification purposes.
78
+ *
79
+ * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
80
+ * this function rejects them by requiring the `s` value to be in the lower
81
+ * half order, and the `v` value to be either 27 or 28.
82
+ *
83
+ * IMPORTANT: `hash` _must_ be the result of a hash operation for the
84
+ * verification to be secure: it is possible to craft signatures that
85
+ * recover to arbitrary addresses for non-hashed data. A safe way to ensure
86
+ * this is by receiving a hash of the original message (which may otherwise
87
+ * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
88
+ */
89
+ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
90
+ (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
91
+ _throwError(error, errorArg);
92
+ return recovered;
93
+ }
94
+
95
+ /**
96
+ * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
97
+ *
98
+ * See https://eips.ethereum.org/EIPS/eip-2098[ERC-2098 short signatures]
99
+ */
100
+ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
101
+ unchecked {
102
+ bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
103
+ // We do not check for an overflow here since the shift operation results in 0 or 1.
104
+ uint8 v = uint8((uint256(vs) >> 255) + 27);
105
+ return tryRecover(hash, v, r, s);
106
+ }
107
+ }
108
+
109
+ /**
110
+ * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
111
+ */
112
+ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
113
+ (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
114
+ _throwError(error, errorArg);
115
+ return recovered;
116
+ }
117
+
118
+ /**
119
+ * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
120
+ * `r` and `s` signature fields separately.
121
+ */
122
+ function tryRecover(
123
+ bytes32 hash,
124
+ uint8 v,
125
+ bytes32 r,
126
+ bytes32 s
127
+ ) internal pure returns (address, RecoverError, bytes32) {
128
+ // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
129
+ // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
130
+ // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
131
+ // signatures from current libraries generate a unique signature with an s-value in the lower half order.
132
+ //
133
+ // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
134
+ // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
135
+ // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
136
+ // these malleable signatures as well.
137
+ if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
138
+ return (address(0), RecoverError.InvalidSignatureS, s);
139
+ }
140
+
141
+ // If the signature is valid (and not malleable), return the signer address
142
+ address signer = ecrecover(hash, v, r, s);
143
+ if (signer == address(0)) {
144
+ return (address(0), RecoverError.InvalidSignature, bytes32(0));
145
+ }
146
+
147
+ return (signer, RecoverError.NoError, bytes32(0));
148
+ }
149
+
150
+ /**
151
+ * @dev Overload of {ECDSA-recover} that receives the `v`,
152
+ * `r` and `s` signature fields separately.
153
+ */
154
+ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
155
+ (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);
156
+ _throwError(error, errorArg);
157
+ return recovered;
158
+ }
159
+
160
+ /**
161
+ * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
162
+ */
163
+ function _throwError(RecoverError error, bytes32 errorArg) private pure {
164
+ if (error == RecoverError.NoError) {
165
+ return; // no error: do nothing
166
+ } else if (error == RecoverError.InvalidSignature) {
167
+ revert ECDSAInvalidSignature();
168
+ } else if (error == RecoverError.InvalidSignatureLength) {
169
+ revert ECDSAInvalidSignatureLength(uint256(errorArg));
170
+ } else if (error == RecoverError.InvalidSignatureS) {
171
+ revert ECDSAInvalidSignatureS(errorArg);
172
+ }
173
+ }
174
+ }