@safe-global/protocol-kit 5.2.1-alpha.0 → 5.2.2

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 (356) hide show
  1. package/dist/src/Safe.d.ts +0 -1
  2. package/dist/src/Safe.js +1409 -0
  3. package/dist/src/Safe.js.map +1 -0
  4. package/dist/src/SafeProvider.d.ts +0 -1
  5. package/dist/src/SafeProvider.js +265 -0
  6. package/dist/src/SafeProvider.js.map +1 -0
  7. package/dist/src/contracts/BaseContract.d.ts +0 -1
  8. package/dist/src/contracts/BaseContract.js +163 -0
  9. package/dist/src/contracts/BaseContract.js.map +1 -0
  10. package/dist/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.d.ts +0 -1
  11. package/dist/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.js +40 -0
  12. package/dist/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.js.map +1 -0
  13. package/dist/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.d.ts +0 -1
  14. package/dist/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.js +33 -0
  15. package/dist/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.js.map +1 -0
  16. package/dist/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.d.ts +0 -1
  17. package/dist/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.js +33 -0
  18. package/dist/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.js.map +1 -0
  19. package/dist/src/contracts/CreateCall/CreateCallBaseContract.d.ts +0 -1
  20. package/dist/src/contracts/CreateCall/CreateCallBaseContract.js +40 -0
  21. package/dist/src/contracts/CreateCall/CreateCallBaseContract.js.map +1 -0
  22. package/dist/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.d.ts +0 -1
  23. package/dist/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.js +56 -0
  24. package/dist/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.js.map +1 -0
  25. package/dist/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.d.ts +0 -1
  26. package/dist/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.js +56 -0
  27. package/dist/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.js.map +1 -0
  28. package/dist/src/contracts/MultiSend/MultiSendBaseContract.d.ts +0 -1
  29. package/dist/src/contracts/MultiSend/MultiSendBaseContract.js +40 -0
  30. package/dist/src/contracts/MultiSend/MultiSendBaseContract.js.map +1 -0
  31. package/dist/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.d.ts +0 -1
  32. package/dist/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.js +40 -0
  33. package/dist/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.js.map +1 -0
  34. package/dist/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.d.ts +0 -1
  35. package/dist/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.js +33 -0
  36. package/dist/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.js.map +1 -0
  37. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.d.ts +0 -1
  38. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.js +33 -0
  39. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.js.map +1 -0
  40. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.d.ts +0 -1
  41. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.js +33 -0
  42. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.js.map +1 -0
  43. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.d.ts +0 -1
  44. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.js +33 -0
  45. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.js.map +1 -0
  46. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.d.ts +0 -1
  47. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.js +33 -0
  48. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.js.map +1 -0
  49. package/dist/src/contracts/Safe/SafeBaseContract.d.ts +0 -1
  50. package/dist/src/contracts/Safe/SafeBaseContract.js +47 -0
  51. package/dist/src/contracts/Safe/SafeBaseContract.js.map +1 -0
  52. package/dist/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.d.ts +0 -1
  53. package/dist/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.js +276 -0
  54. package/dist/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.js.map +1 -0
  55. package/dist/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.d.ts +0 -1
  56. package/dist/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.js +248 -0
  57. package/dist/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.js.map +1 -0
  58. package/dist/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.d.ts +0 -1
  59. package/dist/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.js +253 -0
  60. package/dist/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.js.map +1 -0
  61. package/dist/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.d.ts +0 -1
  62. package/dist/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.js +267 -0
  63. package/dist/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.js.map +1 -0
  64. package/dist/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.d.ts +0 -1
  65. package/dist/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.js +267 -0
  66. package/dist/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.js.map +1 -0
  67. package/dist/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.d.ts +0 -1
  68. package/dist/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.js +43 -0
  69. package/dist/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.js.map +1 -0
  70. package/dist/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.d.ts +0 -1
  71. package/dist/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.js +63 -0
  72. package/dist/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.js.map +1 -0
  73. package/dist/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.d.ts +0 -1
  74. package/dist/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.js +79 -0
  75. package/dist/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.js.map +1 -0
  76. package/dist/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.d.ts +0 -1
  77. package/dist/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.js +79 -0
  78. package/dist/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.js.map +1 -0
  79. package/dist/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.d.ts +0 -1
  80. package/dist/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.js +72 -0
  81. package/dist/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.js.map +1 -0
  82. package/dist/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.d.ts +0 -1
  83. package/dist/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.js +39 -0
  84. package/dist/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.js.map +1 -0
  85. package/dist/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.d.ts +0 -1
  86. package/dist/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.js +59 -0
  87. package/dist/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.js.map +1 -0
  88. package/dist/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.d.ts +0 -1
  89. package/dist/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.js +39 -0
  90. package/dist/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.js.map +1 -0
  91. package/dist/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.d.ts +0 -1
  92. package/dist/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.js +52 -0
  93. package/dist/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.js.map +1 -0
  94. package/dist/src/contracts/SignMessageLib/SignMessageLibBaseContract.d.ts +0 -1
  95. package/dist/src/contracts/SignMessageLib/SignMessageLibBaseContract.js +40 -0
  96. package/dist/src/contracts/SignMessageLib/SignMessageLibBaseContract.js.map +1 -0
  97. package/dist/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.d.ts +0 -1
  98. package/dist/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.js +49 -0
  99. package/dist/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.js.map +1 -0
  100. package/dist/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.d.ts +0 -1
  101. package/dist/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.js +49 -0
  102. package/dist/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.js.map +1 -0
  103. package/dist/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.d.ts +0 -1
  104. package/dist/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.js +40 -0
  105. package/dist/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.js.map +1 -0
  106. package/dist/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.d.ts +0 -1
  107. package/dist/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.js +42 -0
  108. package/dist/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.js.map +1 -0
  109. package/dist/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.d.ts +0 -1
  110. package/dist/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.js +42 -0
  111. package/dist/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.js.map +1 -0
  112. package/dist/src/contracts/config.d.ts +0 -1
  113. package/dist/src/contracts/config.js +130 -0
  114. package/dist/src/contracts/config.js.map +1 -0
  115. package/dist/src/contracts/constants.d.ts +0 -1
  116. package/dist/src/contracts/constants.js +8 -0
  117. package/dist/src/contracts/constants.js.map +1 -0
  118. package/dist/src/contracts/contractInstances.d.ts +0 -1
  119. package/dist/src/contracts/contractInstances.js +222 -0
  120. package/dist/src/contracts/contractInstances.js.map +1 -0
  121. package/dist/src/contracts/index.d.ts +0 -1
  122. package/dist/src/contracts/index.js +19 -0
  123. package/dist/src/contracts/index.js.map +1 -0
  124. package/dist/src/contracts/safeDeploymentContracts.d.ts +0 -1
  125. package/dist/src/contracts/safeDeploymentContracts.js +95 -0
  126. package/dist/src/contracts/safeDeploymentContracts.js.map +1 -0
  127. package/dist/src/contracts/utils.d.ts +0 -1
  128. package/dist/src/contracts/utils.js +324 -0
  129. package/dist/src/contracts/utils.js.map +1 -0
  130. package/dist/src/index.d.ts +0 -1
  131. package/dist/src/index.js +93 -0
  132. package/dist/src/index.js.map +1 -0
  133. package/dist/src/managers/contractManager.d.ts +0 -1
  134. package/dist/src/managers/contractManager.js +90 -0
  135. package/dist/src/managers/contractManager.js.map +1 -0
  136. package/dist/src/managers/fallbackHandlerManager.d.ts +0 -1
  137. package/dist/src/managers/fallbackHandlerManager.js +73 -0
  138. package/dist/src/managers/fallbackHandlerManager.js.map +1 -0
  139. package/dist/src/managers/guardManager.d.ts +0 -1
  140. package/dist/src/managers/guardManager.js +73 -0
  141. package/dist/src/managers/guardManager.js.map +1 -0
  142. package/dist/src/managers/moduleManager.d.ts +0 -1
  143. package/dist/src/managers/moduleManager.js +88 -0
  144. package/dist/src/managers/moduleManager.js.map +1 -0
  145. package/dist/src/managers/ownerManager.d.ts +0 -1
  146. package/dist/src/managers/ownerManager.js +124 -0
  147. package/dist/src/managers/ownerManager.js.map +1 -0
  148. package/dist/src/types/contracts.d.ts +0 -1
  149. package/dist/src/types/contracts.js +3 -0
  150. package/dist/src/types/contracts.js.map +1 -0
  151. package/dist/src/types/index.d.ts +0 -1
  152. package/dist/src/types/index.js +23 -0
  153. package/dist/src/types/index.js.map +1 -0
  154. package/dist/src/types/passkeys.d.ts +0 -1
  155. package/dist/src/types/passkeys.js +3 -0
  156. package/dist/src/types/passkeys.js.map +1 -0
  157. package/dist/src/types/safeConfig.d.ts +0 -1
  158. package/dist/src/types/safeConfig.js +3 -0
  159. package/dist/src/types/safeConfig.js.map +1 -0
  160. package/dist/src/types/safeProvider.d.ts +0 -1
  161. package/dist/src/types/safeProvider.js +3 -0
  162. package/dist/src/types/safeProvider.js.map +1 -0
  163. package/dist/src/types/signing.d.ts +0 -1
  164. package/dist/src/types/signing.js +12 -0
  165. package/dist/src/types/signing.js.map +1 -0
  166. package/dist/src/types/transactions.d.ts +0 -1
  167. package/dist/src/types/transactions.js +3 -0
  168. package/dist/src/types/transactions.js.map +1 -0
  169. package/dist/src/utils/address.d.ts +0 -1
  170. package/dist/src/utils/address.js +21 -0
  171. package/dist/src/utils/address.js.map +1 -0
  172. package/dist/src/utils/block.d.ts +0 -1
  173. package/dist/src/utils/block.js +14 -0
  174. package/dist/src/utils/block.js.map +1 -0
  175. package/dist/src/utils/constants.d.ts +0 -1
  176. package/dist/src/utils/constants.js +8 -0
  177. package/dist/src/utils/constants.js.map +1 -0
  178. package/dist/src/utils/eip-3770/config.d.ts +0 -1
  179. package/dist/src/utils/eip-3770/config.js +376 -0
  180. package/dist/src/utils/eip-3770/config.js.map +1 -0
  181. package/dist/src/utils/eip-3770/index.d.ts +0 -1
  182. package/dist/src/utils/eip-3770/index.js +47 -0
  183. package/dist/src/utils/eip-3770/index.js.map +1 -0
  184. package/dist/src/utils/eip-712/encode.d.ts +0 -1
  185. package/dist/src/utils/eip-712/encode.js +127 -0
  186. package/dist/src/utils/eip-712/encode.js.map +1 -0
  187. package/dist/src/utils/eip-712/index.d.ts +0 -1
  188. package/dist/src/utils/eip-712/index.js +105 -0
  189. package/dist/src/utils/eip-712/index.js.map +1 -0
  190. package/dist/src/utils/erc-20/index.d.ts +0 -1
  191. package/dist/src/utils/erc-20/index.js +84 -0
  192. package/dist/src/utils/erc-20/index.js.map +1 -0
  193. package/dist/src/utils/getProtocolKitVersion.d.ts +0 -1
  194. package/dist/src/utils/getProtocolKitVersion.js +6 -0
  195. package/dist/src/utils/getProtocolKitVersion.js.map +1 -0
  196. package/dist/src/utils/index.d.ts +0 -1
  197. package/dist/src/utils/index.js +24 -0
  198. package/dist/src/utils/index.js.map +1 -0
  199. package/dist/src/utils/memoized.d.ts +0 -1
  200. package/dist/src/utils/memoized.js +41 -0
  201. package/dist/src/utils/memoized.js.map +1 -0
  202. package/dist/src/utils/messages/SafeMessage.d.ts +0 -1
  203. package/dist/src/utils/messages/SafeMessage.js +20 -0
  204. package/dist/src/utils/messages/SafeMessage.js.map +1 -0
  205. package/dist/src/utils/on-chain-tracking/generateOnChainIdentifier.d.ts +0 -1
  206. package/dist/src/utils/on-chain-tracking/generateOnChainIdentifier.js +46 -0
  207. package/dist/src/utils/on-chain-tracking/generateOnChainIdentifier.js.map +1 -0
  208. package/dist/src/utils/passkeys/PasskeyClient.d.ts +0 -1
  209. package/dist/src/utils/passkeys/PasskeyClient.js +171 -0
  210. package/dist/src/utils/passkeys/PasskeyClient.js.map +1 -0
  211. package/dist/src/utils/passkeys/createPasskeyDeploymentTransaction.d.ts +0 -1
  212. package/dist/src/utils/passkeys/createPasskeyDeploymentTransaction.js +35 -0
  213. package/dist/src/utils/passkeys/createPasskeyDeploymentTransaction.js.map +1 -0
  214. package/dist/src/utils/passkeys/extractPasskeyData.d.ts +0 -1
  215. package/dist/src/utils/passkeys/extractPasskeyData.js +232 -0
  216. package/dist/src/utils/passkeys/extractPasskeyData.js.map +1 -0
  217. package/dist/src/utils/passkeys/getPasskeyOwnerAddress.d.ts +0 -1
  218. package/dist/src/utils/passkeys/getPasskeyOwnerAddress.js +31 -0
  219. package/dist/src/utils/passkeys/getPasskeyOwnerAddress.js.map +1 -0
  220. package/dist/src/utils/passkeys/index.d.ts +0 -1
  221. package/dist/src/utils/passkeys/index.js +20 -0
  222. package/dist/src/utils/passkeys/index.js.map +1 -0
  223. package/dist/src/utils/passkeys/isSharedSigner.d.ts +0 -1
  224. package/dist/src/utils/passkeys/isSharedSigner.js +26 -0
  225. package/dist/src/utils/passkeys/isSharedSigner.js.map +1 -0
  226. package/dist/src/utils/provider.d.ts +0 -1
  227. package/dist/src/utils/provider.js +12 -0
  228. package/dist/src/utils/provider.js.map +1 -0
  229. package/dist/src/utils/safeVersions.d.ts +0 -1
  230. package/dist/src/utils/safeVersions.js +54 -0
  231. package/dist/src/utils/safeVersions.js.map +1 -0
  232. package/dist/src/utils/signatures/SafeSignature.d.ts +0 -1
  233. package/dist/src/utils/signatures/SafeSignature.js +42 -0
  234. package/dist/src/utils/signatures/SafeSignature.js.map +1 -0
  235. package/dist/src/utils/signatures/index.d.ts +0 -1
  236. package/dist/src/utils/signatures/index.js +19 -0
  237. package/dist/src/utils/signatures/index.js.map +1 -0
  238. package/dist/src/utils/signatures/utils.d.ts +0 -1
  239. package/dist/src/utils/signatures/utils.js +174 -0
  240. package/dist/src/utils/signatures/utils.js.map +1 -0
  241. package/dist/src/utils/transactions/SafeTransaction.d.ts +0 -1
  242. package/dist/src/utils/transactions/SafeTransaction.js +20 -0
  243. package/dist/src/utils/transactions/SafeTransaction.js.map +1 -0
  244. package/dist/src/utils/transactions/gas.d.ts +0 -1
  245. package/dist/src/utils/transactions/gas.js +398 -0
  246. package/dist/src/utils/transactions/gas.js.map +1 -0
  247. package/dist/src/utils/transactions/index.d.ts +0 -1
  248. package/dist/src/utils/transactions/index.js +21 -0
  249. package/dist/src/utils/transactions/index.js.map +1 -0
  250. package/dist/src/utils/transactions/types.d.ts +0 -1
  251. package/dist/src/utils/transactions/types.js +3 -0
  252. package/dist/src/utils/transactions/types.js.map +1 -0
  253. package/dist/src/utils/transactions/utils.d.ts +0 -1
  254. package/dist/src/utils/transactions/utils.js +217 -0
  255. package/dist/src/utils/transactions/utils.js.map +1 -0
  256. package/dist/src/utils/types.d.ts +0 -1
  257. package/dist/src/utils/types.js +66 -0
  258. package/dist/src/utils/types.js.map +1 -0
  259. package/dist/tsconfig.build.tsbuildinfo +1 -1
  260. package/package.json +16 -31
  261. package/dist/cjs/src/index.cjs +0 -7526
  262. package/dist/cjs/test-utils/index.cjs +0 -4097
  263. package/dist/esm/src/index.mjs +0 -7628
  264. package/dist/esm/test-utils/index.mjs +0 -4194
  265. package/dist/src/Safe.d.ts.map +0 -1
  266. package/dist/src/SafeProvider.d.ts.map +0 -1
  267. package/dist/src/contracts/BaseContract.d.ts.map +0 -1
  268. package/dist/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.d.ts.map +0 -1
  269. package/dist/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.d.ts.map +0 -1
  270. package/dist/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.d.ts.map +0 -1
  271. package/dist/src/contracts/CreateCall/CreateCallBaseContract.d.ts.map +0 -1
  272. package/dist/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.d.ts.map +0 -1
  273. package/dist/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.d.ts.map +0 -1
  274. package/dist/src/contracts/MultiSend/MultiSendBaseContract.d.ts.map +0 -1
  275. package/dist/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.d.ts.map +0 -1
  276. package/dist/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.d.ts.map +0 -1
  277. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.d.ts.map +0 -1
  278. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.d.ts.map +0 -1
  279. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.d.ts.map +0 -1
  280. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.d.ts.map +0 -1
  281. package/dist/src/contracts/Safe/SafeBaseContract.d.ts.map +0 -1
  282. package/dist/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.d.ts.map +0 -1
  283. package/dist/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.d.ts.map +0 -1
  284. package/dist/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.d.ts.map +0 -1
  285. package/dist/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.d.ts.map +0 -1
  286. package/dist/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.d.ts.map +0 -1
  287. package/dist/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.d.ts.map +0 -1
  288. package/dist/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.d.ts.map +0 -1
  289. package/dist/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.d.ts.map +0 -1
  290. package/dist/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.d.ts.map +0 -1
  291. package/dist/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.d.ts.map +0 -1
  292. package/dist/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.d.ts.map +0 -1
  293. package/dist/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.d.ts.map +0 -1
  294. package/dist/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.d.ts.map +0 -1
  295. package/dist/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.d.ts.map +0 -1
  296. package/dist/src/contracts/SignMessageLib/SignMessageLibBaseContract.d.ts.map +0 -1
  297. package/dist/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.d.ts.map +0 -1
  298. package/dist/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.d.ts.map +0 -1
  299. package/dist/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.d.ts.map +0 -1
  300. package/dist/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.d.ts.map +0 -1
  301. package/dist/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.d.ts.map +0 -1
  302. package/dist/src/contracts/config.d.ts.map +0 -1
  303. package/dist/src/contracts/constants.d.ts.map +0 -1
  304. package/dist/src/contracts/contractInstances.d.ts.map +0 -1
  305. package/dist/src/contracts/index.d.ts.map +0 -1
  306. package/dist/src/contracts/safeDeploymentContracts.d.ts.map +0 -1
  307. package/dist/src/contracts/utils.d.ts.map +0 -1
  308. package/dist/src/index.d.ts.map +0 -1
  309. package/dist/src/managers/contractManager.d.ts.map +0 -1
  310. package/dist/src/managers/fallbackHandlerManager.d.ts.map +0 -1
  311. package/dist/src/managers/guardManager.d.ts.map +0 -1
  312. package/dist/src/managers/moduleManager.d.ts.map +0 -1
  313. package/dist/src/managers/ownerManager.d.ts.map +0 -1
  314. package/dist/src/types/contracts.d.ts.map +0 -1
  315. package/dist/src/types/index.d.ts.map +0 -1
  316. package/dist/src/types/passkeys.d.ts.map +0 -1
  317. package/dist/src/types/safeConfig.d.ts.map +0 -1
  318. package/dist/src/types/safeProvider.d.ts.map +0 -1
  319. package/dist/src/types/signing.d.ts.map +0 -1
  320. package/dist/src/types/transactions.d.ts.map +0 -1
  321. package/dist/src/utils/address.d.ts.map +0 -1
  322. package/dist/src/utils/block.d.ts.map +0 -1
  323. package/dist/src/utils/constants.d.ts.map +0 -1
  324. package/dist/src/utils/eip-3770/config.d.ts.map +0 -1
  325. package/dist/src/utils/eip-3770/index.d.ts.map +0 -1
  326. package/dist/src/utils/eip-712/encode.d.ts.map +0 -1
  327. package/dist/src/utils/eip-712/index.d.ts.map +0 -1
  328. package/dist/src/utils/erc-20/index.d.ts.map +0 -1
  329. package/dist/src/utils/getProtocolKitVersion.d.ts.map +0 -1
  330. package/dist/src/utils/index.d.ts.map +0 -1
  331. package/dist/src/utils/memoized.d.ts.map +0 -1
  332. package/dist/src/utils/messages/SafeMessage.d.ts.map +0 -1
  333. package/dist/src/utils/on-chain-tracking/generateOnChainIdentifier.d.ts.map +0 -1
  334. package/dist/src/utils/passkeys/PasskeyClient.d.ts.map +0 -1
  335. package/dist/src/utils/passkeys/createPasskeyDeploymentTransaction.d.ts.map +0 -1
  336. package/dist/src/utils/passkeys/extractPasskeyData.d.ts.map +0 -1
  337. package/dist/src/utils/passkeys/getPasskeyOwnerAddress.d.ts.map +0 -1
  338. package/dist/src/utils/passkeys/index.d.ts.map +0 -1
  339. package/dist/src/utils/passkeys/isSharedSigner.d.ts.map +0 -1
  340. package/dist/src/utils/provider.d.ts.map +0 -1
  341. package/dist/src/utils/safeVersions.d.ts.map +0 -1
  342. package/dist/src/utils/signatures/SafeSignature.d.ts.map +0 -1
  343. package/dist/src/utils/signatures/index.d.ts.map +0 -1
  344. package/dist/src/utils/signatures/utils.d.ts.map +0 -1
  345. package/dist/src/utils/transactions/SafeTransaction.d.ts.map +0 -1
  346. package/dist/src/utils/transactions/gas.d.ts.map +0 -1
  347. package/dist/src/utils/transactions/index.d.ts.map +0 -1
  348. package/dist/src/utils/transactions/types.d.ts.map +0 -1
  349. package/dist/src/utils/transactions/utils.d.ts.map +0 -1
  350. package/dist/src/utils/types.d.ts.map +0 -1
  351. package/dist/test-utils/index.d.ts +0 -3
  352. package/dist/test-utils/index.d.ts.map +0 -1
  353. package/dist/test-utils/passkeys.d.ts +0 -25
  354. package/dist/test-utils/passkeys.d.ts.map +0 -1
  355. package/dist/test-utils/webauthnShim.d.ts +0 -150
  356. package/dist/test-utils/webauthnShim.d.ts.map +0 -1
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const SafeProxyFactoryBaseContract_1 = __importDefault(require("../../../contracts/SafeProxyFactory/SafeProxyFactoryBaseContract"));
7
+ const types_kit_1 = require("@safe-global/types-kit");
8
+ /**
9
+ * SafeProxyFactoryContract_v1_4_1 is the implementation specific to the Safe Proxy Factory contract version 1.4.1.
10
+ *
11
+ * This class specializes in handling interactions with the Safe Proxy Factory contract version 1.4.1 using Ethers.js v6.
12
+ *
13
+ * @extends SafeProxyFactoryBaseContract<SafeProxyFactoryContract_v1_4_1_Abi> - Inherits from SafeProxyFactoryBaseContract with ABI specific to Safe Proxy Factory contract version 1.4.1.
14
+ * @implements SafeProxyFactoryContract_v1_4_1_Contract - Implements the interface specific to Safe Proxy Factory contract version 1.4.1.
15
+ */
16
+ class SafeProxyFactoryContract_v1_4_1 extends SafeProxyFactoryBaseContract_1.default {
17
+ /**
18
+ * Constructs an instance of SafeProxyFactoryContract_v1_4_1
19
+ *
20
+ * @param chainId - The chain ID where the contract resides.
21
+ * @param safeProvider - An instance of SafeProvider.
22
+ * @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the Safe deployments based on the chainId and safeVersion.
23
+ * @param customContractAbi - Optional custom ABI for the contract. If not provided, the default ABI for version 1.4.1 is used.
24
+ * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
25
+ */
26
+ constructor(chainId, safeProvider, customContractAddress, customContractAbi, deploymentType) {
27
+ const safeVersion = '1.4.1';
28
+ const defaultAbi = types_kit_1.safeProxyFactory_1_4_1_ContractArtifacts.abi;
29
+ super(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
30
+ /**
31
+ * Returns the ID of the chain the contract is currently deployed on.
32
+ * @returns Array[chainId]
33
+ */
34
+ this.getChainId = async () => {
35
+ return [await this.read('getChainId')];
36
+ };
37
+ /**
38
+ * Allows to retrieve the creation code used for the Proxy deployment. With this it is easily possible to calculate predicted address.
39
+ * @returns Array[creationCode]
40
+ */
41
+ this.proxyCreationCode = async () => {
42
+ return [await this.read('proxyCreationCode')];
43
+ };
44
+ /**
45
+ * Deploys a new chain-specific proxy with singleton and salt. Optionally executes an initializer call to a new proxy.
46
+ * @param args - Array[singleton, initializer, saltNonce]
47
+ * @returns Array[proxy]
48
+ */
49
+ this.createChainSpecificProxyWithNonce = async (args) => {
50
+ return [await this.write('createChainSpecificProxyWithNonce', args)];
51
+ };
52
+ /**
53
+ * Deploy a new proxy with singleton and salt.
54
+ * Optionally executes an initializer call to a new proxy and calls a specified callback address.
55
+ * @param args - Array[singleton, initializer, saltNonce, callback]
56
+ * @returns Array[proxy]
57
+ */
58
+ this.createProxyWithCallback = async (args) => {
59
+ return [await this.write('createProxyWithCallback', args)];
60
+ };
61
+ /**
62
+ * Deploys a new proxy with singleton and salt. Optionally executes an initializer call to a new proxy.
63
+ * @param args - Array[singleton, initializer, saltNonce]
64
+ * @returns Array[proxy]
65
+ */
66
+ this.createProxyWithNonce = async (args) => {
67
+ return [await this.write('createProxyWithNonce', args)];
68
+ };
69
+ }
70
+ }
71
+ exports.default = SafeProxyFactoryContract_v1_4_1;
72
+ //# sourceMappingURL=SafeProxyFactoryContract_v1_4_1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SafeProxyFactoryContract_v1_4_1.js","sourceRoot":"","sources":["../../../../../src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.ts"],"names":[],"mappings":";;;;;AAAA,qJAA4H;AAE5H,sDAK+B;AAG/B;;;;;;;GAOG;AACH,MAAM,+BACJ,SAAQ,sCAAiE;IAGzE;;;;;;;;OAQG;IACH,YACE,OAAe,EACf,YAA0B,EAC1B,qBAA8B,EAC9B,iBAAuD,EACvD,cAA+B;QAE/B,MAAM,WAAW,GAAG,OAAO,CAAA;QAC3B,MAAM,UAAU,GAAG,oDAAwC,CAAC,GAAG,CAAA;QAE/D,KAAK,CACH,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,CACf,CAAA;QAGH;;;WAGG;QACH,eAAU,GAA2D,KAAK,IAAI,EAAE;YAC9E,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAA;QACxC,CAAC,CAAA;QAED;;;WAGG;QACH,sBAAiB,GAAkE,KAAK,IAAI,EAAE;YAC5F,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAA;QAC/C,CAAC,CAAA;QAED;;;;WAIG;QACH,sCAAiC,GAC/B,KAAK,EAAE,IAAI,EAAE,EAAE;YACb,OAAO,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,mCAAmC,EAAE,IAAI,CAAC,CAAC,CAAA;QACtE,CAAC,CAAA;QAEH;;;;;WAKG;QACH,4BAAuB,GACrB,KAAK,EAAE,IAAI,EAAE,EAAE;YACb,OAAO,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAC,CAAA;QAC5D,CAAC,CAAA;QAEH;;;;WAIG;QACH,yBAAoB,GAAqE,KAAK,EAC5F,IAAI,EACJ,EAAE;YACF,OAAO,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC,CAAA;QACzD,CAAC,CAAA;IAhDD,CAAC;CAiDF;AAED,kBAAe,+BAA+B,CAAA"}
@@ -33,4 +33,3 @@ declare abstract class SafeWebAuthnSharedSignerBaseContract<SafeWebAuthnSharedSi
33
33
  constructor(chainId: bigint, safeProvider: SafeProvider, defaultAbi: SafeWebAuthnSharedSignerContractAbiType, safeVersion: SafeVersion, customContractAddress?: string, customContractAbi?: SafeWebAuthnSharedSignerContractAbiType, deploymentType?: DeploymentType);
34
34
  }
35
35
  export default SafeWebAuthnSharedSignerBaseContract;
36
- //# sourceMappingURL=SafeWebAuthnSharedSignerBaseContract.d.ts.map
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const BaseContract_1 = __importDefault(require("../../contracts/BaseContract"));
7
+ /**
8
+ * Abstract class SafeWebAuthnSharedSignerBaseContract extends BaseContract to specifically integrate with the SafeWebAuthnSharedSigner contract.
9
+ * It is designed to be instantiated for different versions of the Safe contract.
10
+ *
11
+ * Subclasses of SafeWebAuthnSharedSignerBaseContract are expected to represent specific versions of the contract.
12
+ *
13
+ * @template SafeWebAuthnSharedSignerContractAbiType - The ABI type specific to the version of the Safe WebAuthn Shared Signer contract, extending InterfaceAbi from Ethers.
14
+ * @extends BaseContract<SafeWebAuthnSharedSignerContractAbiType> - Extends the generic BaseContract.
15
+ *
16
+ * Example subclasses:
17
+ * - SafeWebAuthnSharedSignerContract_v0_2_1 extends SafeWebAuthnSharedSignerBaseContract<SafeWebAuthnSharedSignerContract_v0_2_1_Abi>
18
+ */
19
+ class SafeWebAuthnSharedSignerBaseContract extends BaseContract_1.default {
20
+ /**
21
+ * @constructor
22
+ * Constructs an instance of SafeWebAuthnSharedSignerBaseContract.
23
+ *
24
+ * @param chainId - The chain ID of the contract.
25
+ * @param safeProvider - An instance of SafeProvider.
26
+ * @param defaultAbi - The default ABI for the Safe contract. It should be compatible with the specific version of the contract.
27
+ * @param safeVersion - The version of the Safe contract.
28
+ * @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the Safe deployments based on the chainId and safeVersion.
29
+ * @param customContractAbi - Optional custom ABI for the contract. If not provided, the ABI is derived from the Safe deployments or the defaultAbi is used.
30
+ * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
31
+ */
32
+ constructor(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType) {
33
+ const contractName = 'safeWebAuthnSharedSignerVersion';
34
+ super(contractName, chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
35
+ this.contractName = contractName;
36
+ }
37
+ }
38
+ exports.default = SafeWebAuthnSharedSignerBaseContract;
39
+ //# sourceMappingURL=SafeWebAuthnSharedSignerBaseContract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SafeWebAuthnSharedSignerBaseContract.js","sourceRoot":"","sources":["../../../../src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.ts"],"names":[],"mappings":";;;;;AAGA,oGAA2E;AAI3E;;;;;;;;;;;GAWG;AACH,MAAe,oCAEb,SAAQ,sBAAqD;IAG7D;;;;;;;;;;;OAWG;IACH,YACE,OAAe,EACf,YAA0B,EAC1B,UAAmD,EACnD,WAAwB,EACxB,qBAA8B,EAC9B,iBAA2D,EAC3D,cAA+B;QAE/B,MAAM,YAAY,GAAG,iCAAiC,CAAA;QAEtD,KAAK,CACH,YAAY,EACZ,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,CACf,CAAA;QAED,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CACF;AAED,kBAAe,oCAAoC,CAAA"}
@@ -41,4 +41,3 @@ declare class SafeWebAuthnSharedSignerContract_v0_2_1 extends SafeWebAuthnShared
41
41
  SIGNER_SLOT: SafeWebAuthnSharedSignerContract_v0_2_1_Function<'SIGNER_SLOT'>;
42
42
  }
43
43
  export default SafeWebAuthnSharedSignerContract_v0_2_1;
44
- //# sourceMappingURL=SafeWebAuthnSharedSignerContract_v0_2_1.d.ts.map
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const SafeWebAuthnSharedSignerBaseContract_1 = __importDefault(require("../../../contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract"));
7
+ const types_kit_1 = require("@safe-global/types-kit");
8
+ /**
9
+ * SafeWebAuthnSharedSignerContract_v0_2_1 is the implementation specific to the SafeWebAuthnSharedSigner contract version 0.2.1.
10
+ *
11
+ * This class specializes in handling interactions with the SafeWebAuthnSharedSigner contract version 0.2.1 using Ethers.js v6.
12
+ *
13
+ * @extends SafeWebAuthnSharedSignerBaseContract<SafeWebAuthnSharedSignerContract_v0_2_1_Abi> - Inherits from SafeWebAuthnSharedSignerBaseContract with ABI specific to SafeWebAuthnSigner Factory contract version 0.2.1.
14
+ * @implements SafeWebAuthnSharedSignerContract_v0_2_1_Contract - Implements the interface specific to SafeWebAuthnSharedSigner contract version 0.2.1.
15
+ */
16
+ class SafeWebAuthnSharedSignerContract_v0_2_1 extends SafeWebAuthnSharedSignerBaseContract_1.default {
17
+ /**
18
+ * Constructs an instance of SafeWebAuthnSharedSignerContract_v0_2_1
19
+ *
20
+ * @param chainId - The chain ID where the contract resides.
21
+ * @param safeProvider - An instance of SafeProvider.
22
+ * @param safeVersion - The version of the Safe contract.
23
+ * @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the Safe deployments based on the chainId and safeVersion.
24
+ * @param customContractAbi - Optional custom ABI for the contract. If not provided, the default ABI for version 0.2.1 is used.
25
+ * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
26
+ */
27
+ constructor(chainId, safeProvider, safeVersion, customContractAddress, customContractAbi, deploymentType) {
28
+ const defaultAbi = types_kit_1.SafeWebAuthnSharedSigner_0_2_1_ContractArtifacts.abi;
29
+ super(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
30
+ /**
31
+ * Return the signer configuration for the specified account.
32
+ * @param args - Array[address]
33
+ * @returns Array[signer]
34
+ */
35
+ this.getConfiguration = async (args) => {
36
+ return [await this.read('getConfiguration', args)];
37
+ };
38
+ /**
39
+ * Sets the signer configuration for the calling account.
40
+ * @param args - Array[signer]
41
+ * @returns Array[]
42
+ */
43
+ this.configure = async (args) => {
44
+ await this.write('configure', args);
45
+ return [];
46
+ };
47
+ this.isValidSignature = async (args) => {
48
+ return [await this.read('isValidSignature', args)];
49
+ };
50
+ /**
51
+ * @returns The starting storage slot on the account containing the signer data.
52
+ */
53
+ this.SIGNER_SLOT = async () => {
54
+ return [await this.read('SIGNER_SLOT')];
55
+ };
56
+ }
57
+ }
58
+ exports.default = SafeWebAuthnSharedSignerContract_v0_2_1;
59
+ //# sourceMappingURL=SafeWebAuthnSharedSignerContract_v0_2_1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SafeWebAuthnSharedSignerContract_v0_2_1.js","sourceRoot":"","sources":["../../../../../src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.ts"],"names":[],"mappings":";;;;;AAAA,6KAAoJ;AACpJ,sDAM+B;AAI/B;;;;;;;GAOG;AACH,MAAM,uCACJ,SAAQ,8CAAiF;IAGzF;;;;;;;;;OASG;IACH,YACE,OAAe,EACf,YAA0B,EAC1B,WAAwB,EACxB,qBAA8B,EAC9B,iBAA+D,EAC/D,cAA+B;QAE/B,MAAM,UAAU,GAAG,4DAAgD,CAAC,GAAG,CAAA;QAEvE,KAAK,CACH,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,CACf,CAAA;QAGH;;;;WAIG;QACH,qBAAgB,GAAyE,KAAK,EAC5F,IAAI,EACJ,EAAE;YACF,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC,CAAA;QACpD,CAAC,CAAA;QAED;;;;WAIG;QACH,cAAS,GAAkE,KAAK,EAAE,IAAI,EAAE,EAAE;YACxF,MAAM,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;YAEnC,OAAO,EAAE,CAAA;QACX,CAAC,CAAA;QAED,qBAAgB,GAAyE,KAAK,EAC5F,IAAI,EACJ,EAAE;YACF,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC,CAAA;QACpD,CAAC,CAAA;QAED;;WAEG;QACH,gBAAW,GAAoE,KAAK,IAAI,EAAE;YACxF,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAA;QACzC,CAAC,CAAA;IAnCD,CAAC;CAoCF;AAED,kBAAe,uCAAuC,CAAA"}
@@ -33,4 +33,3 @@ declare abstract class SafeWebAuthnSignerFactoryBaseContract<SafeWebAuthnSignerF
33
33
  constructor(chainId: bigint, safeProvider: SafeProvider, defaultAbi: SafeWebAuthnSignerFactoryContractAbiType, safeVersion: SafeVersion, customContractAddress?: string, customContractAbi?: SafeWebAuthnSignerFactoryContractAbiType, deploymentType?: DeploymentType);
34
34
  }
35
35
  export default SafeWebAuthnSignerFactoryBaseContract;
36
- //# sourceMappingURL=SafeWebAuthnSignerFactoryBaseContract.d.ts.map
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const BaseContract_1 = __importDefault(require("../../contracts/BaseContract"));
7
+ /**
8
+ * Abstract class SafeWebAuthnSignerFactoryBaseContract extends BaseContract to specifically integrate with the SafeWebAuthnSignerFactory contract.
9
+ * It is designed to be instantiated for different versions of the Safe contract.
10
+ *
11
+ * Subclasses of SafeWebAuthnSignerFactoryBaseContract are expected to represent specific versions of the contract.
12
+ *
13
+ * @template SafeWebAuthnSignerFactoryContractAbiType - The ABI type specific to the version of the Safe WebAuthn Signer Factory contract, extending InterfaceAbi from Ethers.
14
+ * @extends BaseContract<SafeWebAuthnSignerFactoryContractAbiType> - Extends the generic BaseContract.
15
+ *
16
+ * Example subclasses:
17
+ * - SafeWebAuthnSignerFactoryContract_v0_2_1 extends SafeWebAuthnSignerFactoryBaseContract<SafeWebAuthnSignerFactoryContract_v0_2_1_Abi>
18
+ */
19
+ class SafeWebAuthnSignerFactoryBaseContract extends BaseContract_1.default {
20
+ /**
21
+ * @constructor
22
+ * Constructs an instance of SafeWebAuthnSignerFactoryBaseContract.
23
+ *
24
+ * @param chainId - The chain ID of the contract.
25
+ * @param safeProvider - An instance of SafeProvider.
26
+ * @param defaultAbi - The default ABI for the Safe contract. It should be compatible with the specific version of the contract.
27
+ * @param safeVersion - The version of the Safe contract.
28
+ * @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the Safe deployments based on the chainId and safeVersion.
29
+ * @param customContractAbi - Optional custom ABI for the contract. If not provided, the ABI is derived from the Safe deployments or the defaultAbi is used.
30
+ * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
31
+ */
32
+ constructor(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType) {
33
+ const contractName = 'safeWebAuthnSignerFactoryVersion';
34
+ super(contractName, chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
35
+ this.contractName = contractName;
36
+ }
37
+ }
38
+ exports.default = SafeWebAuthnSignerFactoryBaseContract;
39
+ //# sourceMappingURL=SafeWebAuthnSignerFactoryBaseContract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SafeWebAuthnSignerFactoryBaseContract.js","sourceRoot":"","sources":["../../../../src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.ts"],"names":[],"mappings":";;;;;AAGA,oGAA2E;AAI3E;;;;;;;;;;;GAWG;AACH,MAAe,qCAEb,SAAQ,sBAAsD;IAG9D;;;;;;;;;;;OAWG;IACH,YACE,OAAe,EACf,YAA0B,EAC1B,UAAoD,EACpD,WAAwB,EACxB,qBAA8B,EAC9B,iBAA4D,EAC5D,cAA+B;QAE/B,MAAM,YAAY,GAAG,kCAAkC,CAAA;QAEvD,KAAK,CACH,YAAY,EACZ,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,CACf,CAAA;QAED,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CACF;AAED,kBAAe,qCAAqC,CAAA"}
@@ -37,4 +37,3 @@ declare class SafeWebAuthnSignerFactoryContract_v0_2_1 extends SafeWebAuthnSigne
37
37
  isValidSignatureForSigner: SafeWebAuthnSignerFactoryContract_v0_2_1_Function<'isValidSignatureForSigner'>;
38
38
  }
39
39
  export default SafeWebAuthnSignerFactoryContract_v0_2_1;
40
- //# sourceMappingURL=SafeWebAuthnSignerFactoryContract_v0_2_1.d.ts.map
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const SafeWebAuthnSignerFactoryBaseContract_1 = __importDefault(require("../../../contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract"));
7
+ const types_kit_1 = require("@safe-global/types-kit");
8
+ /**
9
+ * SafeWebAuthnSignerFactoryContract_v0_2_1 is the implementation specific to the SafeWebAuthnSigner Factory contract version 0.2.1.
10
+ *
11
+ * This class specializes in handling interactions with the SafeWebAuthnSigner Factory contract version 0.2.1 using Ethers.js v6.
12
+ *
13
+ * @extends SafeWebAuthnSignerFactoryBaseContract<SafeWebAuthnSignerFactoryContract_v0_2_1_Abi> - Inherits from SafeWebAuthnSignerFactoryBaseContract with ABI specific to SafeWebAuthnSigner Factory contract version 0.2.1.
14
+ * @implements SafeWebAuthnSignerFactoryContract_v0_2_1_Contract - Implements the interface specific to SafeWebAuthnSigner Factory contract version 0.2.1.
15
+ */
16
+ class SafeWebAuthnSignerFactoryContract_v0_2_1 extends SafeWebAuthnSignerFactoryBaseContract_1.default {
17
+ /**
18
+ * Constructs an instance of SafeWebAuthnSignerFactoryContract_v0_2_1
19
+ *
20
+ * @param chainId - The chain ID where the contract resides.
21
+ * @param safeProvider - An instance of SafeProvider.
22
+ * @param safeVersion - The version of the Safe contract.
23
+ * @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the Safe deployments based on the chainId and safeVersion.
24
+ * @param customContractAbi - Optional custom ABI for the contract. If not provided, the default ABI for version 0.2.1 is used.
25
+ * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
26
+ */
27
+ constructor(chainId, safeProvider, safeVersion, customContractAddress, customContractAbi, deploymentType) {
28
+ const defaultAbi = types_kit_1.SafeWebAuthnSignerFactory_0_2_1_ContractArtifacts.abi;
29
+ super(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
30
+ /**
31
+ * Returns the address of the Signer.
32
+ * @param args - Array[x, y, verifiers]
33
+ * @returns Array[signer]
34
+ */
35
+ this.getSigner = async (args) => {
36
+ return [await this.read('getSigner', args)];
37
+ };
38
+ /**
39
+ * Returns the address of the Signer and deploy the signer contract if its not deployed yet.
40
+ * @param args - Array[x, y, verifiers]
41
+ * @returns Array[signer]
42
+ */
43
+ this.createSigner = async (args) => {
44
+ return [await this.write('createSigner', args)];
45
+ };
46
+ this.isValidSignatureForSigner = async (args) => {
47
+ return [await this.read('isValidSignatureForSigner', args)];
48
+ };
49
+ }
50
+ }
51
+ exports.default = SafeWebAuthnSignerFactoryContract_v0_2_1;
52
+ //# sourceMappingURL=SafeWebAuthnSignerFactoryContract_v0_2_1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SafeWebAuthnSignerFactoryContract_v0_2_1.js","sourceRoot":"","sources":["../../../../../src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.ts"],"names":[],"mappings":";;;;;AAAA,gLAAuJ;AACvJ,sDAM+B;AAI/B;;;;;;;GAOG;AACH,MAAM,wCACJ,SAAQ,+CAAmF;IAG3F;;;;;;;;;OASG;IACH,YACE,OAAe,EACf,YAA0B,EAC1B,WAAwB,EACxB,qBAA8B,EAC9B,iBAAgE,EAChE,cAA+B;QAE/B,MAAM,UAAU,GAAG,6DAAiD,CAAC,GAAG,CAAA;QAExE,KAAK,CACH,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,CACf,CAAA;QAGH;;;;WAIG;QACH,cAAS,GAAmE,KAAK,EAAE,IAAI,EAAE,EAAE;YACzF,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAA;QAC7C,CAAC,CAAA;QAED;;;;WAIG;QACH,iBAAY,GAAsE,KAAK,EACrF,IAAI,EACJ,EAAE;YACF,OAAO,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC,CAAA;QACjD,CAAC,CAAA;QAED,8BAAyB,GACvB,KAAK,EAAE,IAAI,EAAE,EAAE;YACb,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE,IAAI,CAAC,CAAC,CAAA;QAC7D,CAAC,CAAA;IAzBH,CAAC;CA0BF;AAED,kBAAe,wCAAwC,CAAA"}
@@ -34,4 +34,3 @@ declare abstract class SignMessageLibBaseContract<SignMessageLibContractAbiType
34
34
  constructor(chainId: bigint, safeProvider: SafeProvider, defaultAbi: SignMessageLibContractAbiType, safeVersion: SafeVersion, customContractAddress?: string, customContractAbi?: SignMessageLibContractAbiType, deploymentType?: DeploymentType);
35
35
  }
36
36
  export default SignMessageLibBaseContract;
37
- //# sourceMappingURL=SignMessageLibBaseContract.d.ts.map
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const BaseContract_1 = __importDefault(require("../../contracts/BaseContract"));
7
+ /**
8
+ * Abstract class SignMessageLibBaseContract extends BaseContract to specifically integrate with the SignMessageLib contract.
9
+ * It is designed to be instantiated for different versions of the SignMessageLib contract.
10
+ *
11
+ * Subclasses of SignMessageLibBaseContract are expected to represent specific versions of the SignMessageLib contract.
12
+ *
13
+ * @template SignMessageLibContractAbiType - The ABI type specific to the version of the SignMessageLib contract, extending InterfaceAbi from Ethers.
14
+ * @extends BaseContract<SignMessageLibContractAbiType> - Extends the generic BaseContract.
15
+ *
16
+ * Example subclasses:
17
+ * - SignMessageLibContract_v1_4_1 extends SignMessageLibBaseContract<SignMessageLibContract_v1_4_1_Abi>
18
+ * - SignMessageLibContract_v1_3_0 extends SignMessageLibBaseContract<SignMessageLibContract_v1_3_0_Abi>
19
+ */
20
+ class SignMessageLibBaseContract extends BaseContract_1.default {
21
+ /**
22
+ * @constructor
23
+ * Constructs an instance of SignMessageLibBaseContract.
24
+ *
25
+ * @param chainId - The chain ID of the contract.
26
+ * @param safeProvider - An instance of SafeProvider.
27
+ * @param defaultAbi - The default ABI for the SignMessageLib contract. It should be compatible with the specific version of the SignMessageLib contract.
28
+ * @param safeVersion - The version of the SignMessageLib contract.
29
+ * @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the SignMessageLib deployments based on the chainId and safeVersion.
30
+ * @param customContractAbi - Optional custom ABI for the contract. If not provided, the ABI is derived from the SignMessageLib deployments or the defaultAbi is used.
31
+ * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
32
+ */
33
+ constructor(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType) {
34
+ const contractName = 'signMessageLibVersion';
35
+ super(contractName, chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
36
+ this.contractName = contractName;
37
+ }
38
+ }
39
+ exports.default = SignMessageLibBaseContract;
40
+ //# sourceMappingURL=SignMessageLibBaseContract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignMessageLibBaseContract.js","sourceRoot":"","sources":["../../../../src/contracts/SignMessageLib/SignMessageLibBaseContract.ts"],"names":[],"mappings":";;;;;AAKA,oGAA2E;AAG3E;;;;;;;;;;;;GAYG;AACH,MAAe,0BAEb,SAAQ,sBAA2C;IAGnD;;;;;;;;;;;OAWG;IACH,YACE,OAAe,EACf,YAA0B,EAC1B,UAAyC,EACzC,WAAwB,EACxB,qBAA8B,EAC9B,iBAAiD,EACjD,cAA+B;QAE/B,MAAM,YAAY,GAAG,uBAAuB,CAAA;QAE5C,KAAK,CACH,YAAY,EACZ,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,CACf,CAAA;QAED,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CACF;AAED,kBAAe,0BAA0B,CAAA"}
@@ -31,4 +31,3 @@ declare class SignMessageLibContract_v1_3_0 extends SignMessageLibBaseContract<S
31
31
  signMessage: SafeContractFunction<SignMessageLibContract_v1_3_0_Abi, 'signMessage'>;
32
32
  }
33
33
  export default SignMessageLibContract_v1_3_0;
34
- //# sourceMappingURL=SignMessageLibContract_v1_3_0.d.ts.map
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const utils_1 = require("../../../contracts/utils");
7
+ const SignMessageLibBaseContract_1 = __importDefault(require("../../../contracts/SignMessageLib/SignMessageLibBaseContract"));
8
+ const types_kit_1 = require("@safe-global/types-kit");
9
+ /**
10
+ * SignMessageLibContract_v1_3_0 is the implementation specific to the SignMessageLib contract version 1.3.0.
11
+ *
12
+ * This class specializes in handling interactions with the SignMessageLib contract version 1.3.0 using Ethers.js v6.
13
+ *
14
+ * @extends SignMessageLibBaseContract<SignMessageLibContract_v1_3_0_Abi> - Inherits from SignMessageLibBaseContract with ABI specific to SignMessageLib contract version 1.3.0.
15
+ * @implements SignMessageLibContract_v1_3_0_Contract - Implements the interface specific to SignMessageLib contract version 1.3.0.
16
+ */
17
+ class SignMessageLibContract_v1_3_0 extends SignMessageLibBaseContract_1.default {
18
+ /**
19
+ * Constructs an instance of SignMessageLibContract_v1_3_0
20
+ *
21
+ * @param chainId - The chain ID where the contract resides.
22
+ * @param safeProvider - An instance of SafeProvider.
23
+ * @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the SignMessageLib deployments based on the chainId and safeVersion.
24
+ * @param customContractAbi - Optional custom ABI for the contract. If not provided, the default ABI for version 1.3.0 is used.
25
+ * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
26
+ */
27
+ constructor(chainId, safeProvider, customContractAddress, customContractAbi, deploymentType) {
28
+ const safeVersion = '1.3.0';
29
+ const defaultAbi = types_kit_1.signMessageLib_1_3_0_ContractArtifacts.abi;
30
+ super(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
31
+ /**
32
+ * @param args - Array[message]
33
+ */
34
+ this.getMessageHash = async (args) => {
35
+ return [await this.read('getMessageHash', args)];
36
+ };
37
+ /**
38
+ * @param args - Array[data]
39
+ */
40
+ this.signMessage = async (data, options) => {
41
+ if (options && !options.gasLimit) {
42
+ options.gasLimit = Number(await this.estimateGas('signMessage', data, { ...options }));
43
+ }
44
+ return (0, utils_1.toTxResult)(this.runner, await this.write('signMessage', data, options), options);
45
+ };
46
+ }
47
+ }
48
+ exports.default = SignMessageLibContract_v1_3_0;
49
+ //# sourceMappingURL=SignMessageLibContract_v1_3_0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignMessageLibContract_v1_3_0.js","sourceRoot":"","sources":["../../../../../src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.ts"],"names":[],"mappings":";;;;;AAAA,qEAAsE;AACtE,+IAAsH;AAGtH,sDAM+B;AAE/B;;;;;;;GAOG;AACH,MAAM,6BACJ,SAAQ,oCAA6D;IAGrE;;;;;;;;OAQG;IACH,YACE,OAAe,EACf,YAA0B,EAC1B,qBAA8B,EAC9B,iBAAqD,EACrD,cAA+B;QAE/B,MAAM,WAAW,GAAG,OAAO,CAAA;QAC3B,MAAM,UAAU,GAAG,kDAAsC,CAAC,GAAG,CAAA;QAE7D,KAAK,CACH,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,CACf,CAAA;QAEH;;WAEG;QACH,mBAAc,GAA6D,KAAK,EAAE,IAAI,EAAE,EAAE;YACxF,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC,CAAA;QAClD,CAAC,CAAA;QAED;;WAEG;QACH,gBAAW,GAA2E,KAAK,EACzF,IAAI,EACJ,OAAO,EACP,EAAE;YACF,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACjC,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,IAAI,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAA;YACxF,CAAC;YAED,OAAO,IAAA,kBAAU,EAAC,IAAI,CAAC,MAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAA;QAC1F,CAAC,CAAA;IApBD,CAAC;CAqBF;AAED,kBAAe,6BAA6B,CAAA"}
@@ -31,4 +31,3 @@ declare class SignMessageLibContract_v1_4_1 extends SignMessageLibBaseContract<S
31
31
  signMessage: SafeContractFunction<SignMessageLibContract_v1_4_1_Abi, 'signMessage'>;
32
32
  }
33
33
  export default SignMessageLibContract_v1_4_1;
34
- //# sourceMappingURL=SignMessageLibContract_v1_4_1.d.ts.map
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const utils_1 = require("../../../contracts/utils");
7
+ const SignMessageLibBaseContract_1 = __importDefault(require("../../../contracts/SignMessageLib/SignMessageLibBaseContract"));
8
+ const types_kit_1 = require("@safe-global/types-kit");
9
+ /**
10
+ * SignMessageLibContract_v1_4_1 is the implementation specific to the SignMessageLib contract version 1.4.1.
11
+ *
12
+ * This class specializes in handling interactions with the SignMessageLib contract version 1.4.1 using Ethers.js v6.
13
+ *
14
+ * @extends SignMessageLibBaseContract<SignMessageLibContract_v1_4_1_Abi> - Inherits from SignMessageLibBaseContract with ABI specific to SignMessageLib contract version 1.4.1.
15
+ * @implements SignMessageLibContract_v1_4_1_Contract - Implements the interface specific to SignMessageLib contract version 1.4.1.
16
+ */
17
+ class SignMessageLibContract_v1_4_1 extends SignMessageLibBaseContract_1.default {
18
+ /**
19
+ * Constructs an instance of SignMessageLibContract_v1_4_1
20
+ *
21
+ * @param chainId - The chain ID where the contract resides.
22
+ * @param safeProvider - An instance of SafeProvider.
23
+ * @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the SignMessageLib deployments based on the chainId and safeVersion.
24
+ * @param customContractAbi - Optional custom ABI for the contract. If not provided, the default ABI for version 1.4.1 is used.
25
+ * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
26
+ */
27
+ constructor(chainId, safeProvider, customContractAddress, customContractAbi, deploymentType) {
28
+ const safeVersion = '1.4.1';
29
+ const defaultAbi = types_kit_1.signMessageLib_1_4_1_ContractArtifacts.abi;
30
+ super(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
31
+ /**
32
+ * @param args - Array[message]
33
+ */
34
+ this.getMessageHash = async (args) => {
35
+ return [await this.read('getMessageHash', args)];
36
+ };
37
+ /**
38
+ * @param args - Array[data]
39
+ */
40
+ this.signMessage = async (data, options) => {
41
+ if (options && !options.gasLimit) {
42
+ options.gasLimit = Number(await this.estimateGas('signMessage', data, { ...options }));
43
+ }
44
+ return (0, utils_1.toTxResult)(this.runner, await this.write('signMessage', data, options), options);
45
+ };
46
+ }
47
+ }
48
+ exports.default = SignMessageLibContract_v1_4_1;
49
+ //# sourceMappingURL=SignMessageLibContract_v1_4_1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignMessageLibContract_v1_4_1.js","sourceRoot":"","sources":["../../../../../src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.ts"],"names":[],"mappings":";;;;;AAAA,qEAAsE;AACtE,+IAAsH;AAGtH,sDAM+B;AAE/B;;;;;;;GAOG;AACH,MAAM,6BACJ,SAAQ,oCAA6D;IAGrE;;;;;;;;OAQG;IACH,YACE,OAAe,EACf,YAA0B,EAC1B,qBAA8B,EAC9B,iBAAqD,EACrD,cAA+B;QAE/B,MAAM,WAAW,GAAG,OAAO,CAAA;QAC3B,MAAM,UAAU,GAAG,kDAAsC,CAAC,GAAG,CAAA;QAE7D,KAAK,CACH,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,CACf,CAAA;QAGH;;WAEG;QACH,mBAAc,GAA6D,KAAK,EAAE,IAAI,EAAE,EAAE;YACxF,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC,CAAA;QAClD,CAAC,CAAA;QAED;;WAEG;QACH,gBAAW,GAA2E,KAAK,EACzF,IAAI,EACJ,OAAO,EACP,EAAE;YACF,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACjC,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,IAAI,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAA;YACxF,CAAC;YAED,OAAO,IAAA,kBAAU,EAAC,IAAI,CAAC,MAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAA;QAC1F,CAAC,CAAA;IArBD,CAAC;CAsBF;AAED,kBAAe,6BAA6B,CAAA"}
@@ -34,4 +34,3 @@ declare abstract class SimulateTxAccessorBaseContract<SimulateTxAccessorContract
34
34
  constructor(chainId: bigint, safeProvider: SafeProvider, defaultAbi: SimulateTxAccessorContractAbiType, safeVersion: SafeVersion, customContractAddress?: string, customContractAbi?: SimulateTxAccessorContractAbiType, deploymentType?: DeploymentType);
35
35
  }
36
36
  export default SimulateTxAccessorBaseContract;
37
- //# sourceMappingURL=SimulateTxAccessorBaseContract.d.ts.map
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const BaseContract_1 = __importDefault(require("../../contracts/BaseContract"));
7
+ /**
8
+ * Abstract class SimulateTxAccessorBaseContract extends BaseContract to specifically integrate with the SimulateTxAccessor contract.
9
+ * It is designed to be instantiated for different versions of the Safe contract.
10
+ *
11
+ * Subclasses of SimulateTxAccessorBaseContract are expected to represent specific versions of the contract.
12
+ *
13
+ * @template SimulateTxAccessorContractAbiType - The ABI type specific to the version of the SimulateTxAccessor contract, extending InterfaceAbi from Ethers.
14
+ * @extends BaseContract<SimulateTxAccessorContractAbiType> - Extends the generic BaseContract.
15
+ *
16
+ * Example subclasses:
17
+ * - SimulateTxAccessorContract_v1_4_1 extends SimulateTxAccessorBaseContract<SimulateTxAccessorContract_v1_4_1_Abi>
18
+ * - SimulateTxAccessorContract_v1_3_0 extends SimulateTxAccessorBaseContract<SimulateTxAccessorContract_v1_3_0_Abi>
19
+ */
20
+ class SimulateTxAccessorBaseContract extends BaseContract_1.default {
21
+ /**
22
+ * @constructor
23
+ * Constructs an instance of SimulateTxAccessorBaseContract.
24
+ *
25
+ * @param chainId - The chain ID of the contract.
26
+ * @param safeProvider - An instance of SafeProvider.
27
+ * @param defaultAbi - The default ABI for the SimulateTxAccessor contract. It should be compatible with the specific version of the contract.
28
+ * @param safeVersion - The version of the Safe contract.
29
+ * @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the Safe deployments based on the chainId and safeVersion.
30
+ * @param customContractAbi - Optional custom ABI for the contract. If not provided, the ABI is derived from the Safe deployments or the defaultAbi is used.
31
+ * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
32
+ */
33
+ constructor(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType) {
34
+ const contractName = 'simulateTxAccessorVersion';
35
+ super(contractName, chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
36
+ this.contractName = contractName;
37
+ }
38
+ }
39
+ exports.default = SimulateTxAccessorBaseContract;
40
+ //# sourceMappingURL=SimulateTxAccessorBaseContract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimulateTxAccessorBaseContract.js","sourceRoot":"","sources":["../../../../src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.ts"],"names":[],"mappings":";;;;;AAEA,oGAA2E;AAM3E;;;;;;;;;;;;GAYG;AACH,MAAe,8BAEb,SAAQ,sBAA+C;IAGvD;;;;;;;;;;;OAWG;IACH,YACE,OAAe,EACf,YAA0B,EAC1B,UAA6C,EAC7C,WAAwB,EACxB,qBAA8B,EAC9B,iBAAqD,EACrD,cAA+B;QAE/B,MAAM,YAAY,GAAG,2BAA2B,CAAA;QAEhD,KAAK,CACH,YAAY,EACZ,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,CACf,CAAA;QAED,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;CACF;AAED,kBAAe,8BAA8B,CAAA"}
@@ -28,4 +28,3 @@ declare class SimulateTxAccessorContract_v1_3_0 extends SimulateTxAccessorBaseCo
28
28
  simulate: SimulateTxAccessorContract_v1_3_0_Function<'simulate'>;
29
29
  }
30
30
  export default SimulateTxAccessorContract_v1_3_0;
31
- //# sourceMappingURL=SimulateTxAccessorContract_v1_3_0.d.ts.map
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const SimulateTxAccessorBaseContract_1 = __importDefault(require("../../../contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract"));
7
+ const types_kit_1 = require("@safe-global/types-kit");
8
+ const types_1 = require("../../../utils/types");
9
+ /**
10
+ * SimulateTxAccessorContract_v1_3_0 is the implementation specific to the SimulateTxAccessor contract version 1.3.0.
11
+ *
12
+ * This class specializes in handling interactions with the SimulateTxAccessor contract version 1.3.0 using Ethers.js v6.
13
+ *
14
+ * @extends SimulateTxAccessorBaseContract<SimulateTxAccessorContract_v1_3_0_Abi> - Inherits from SimulateTxAccessorBaseContract with ABI specific to SimulateTxAccessor contract version 1.3.0.
15
+ * @implements SimulateTxAccessorContract_v1_3_0_Contract - Implements the interface specific to SimulateTxAccessor contract version 1.3.0.
16
+ */
17
+ class SimulateTxAccessorContract_v1_3_0 extends SimulateTxAccessorBaseContract_1.default {
18
+ /**
19
+ * Constructs an instance of SimulateTxAccessorContract_v1_3_0
20
+ *
21
+ * @param chainId - The chain ID where the contract resides.
22
+ * @param safeProvider - An instance of SafeProvider.
23
+ * @param customContractAddress - Optional custom address for the contract. If not provided, the address is derived from the SimulateTxAccessor deployments based on the chainId and safeVersion.
24
+ * @param customContractAbi - Optional custom ABI for the contract. If not provided, the default ABI for version 1.3.0 is used.
25
+ * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
26
+ */
27
+ constructor(chainId, safeProvider, customContractAddress, customContractAbi, deploymentType) {
28
+ const safeVersion = '1.3.0';
29
+ const defaultAbi = types_kit_1.simulateTxAccessor_1_3_0_ContractArtifacts.abi;
30
+ super(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
31
+ /**
32
+ * @param args - Array[to, value, data, operation]
33
+ * @returns Array[estimate, success, returnData]
34
+ */
35
+ this.simulate = async (args) => {
36
+ const [estimate, success, returnData] = await this.write('simulate', args);
37
+ return [BigInt(estimate), !!success, (0, types_1.asHex)(returnData)];
38
+ };
39
+ }
40
+ }
41
+ exports.default = SimulateTxAccessorContract_v1_3_0;
42
+ //# sourceMappingURL=SimulateTxAccessorContract_v1_3_0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimulateTxAccessorContract_v1_3_0.js","sourceRoot":"","sources":["../../../../../src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.ts"],"names":[],"mappings":";;;;;AAAA,2JAAkI;AAGlI,sDAK+B;AAE/B,iEAA6D;AAE7D;;;;;;;GAOG;AACH,MAAM,iCACJ,SAAQ,wCAAqE;IAG7E;;;;;;;;OAQG;IACH,YACE,OAAe,EACf,YAA0B,EAC1B,qBAA8B,EAC9B,iBAAyD,EACzD,cAA+B;QAE/B,MAAM,WAAW,GAAG,OAAO,CAAA;QAC3B,MAAM,UAAU,GAAG,sDAA0C,CAAC,GAAG,CAAA;QAEjE,KAAK,CACH,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,CACf,CAAA;QAGH;;;WAGG;QACH,aAAQ,GAA2D,KAAK,EAAE,IAAI,EAAE,EAAE;YAChF,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;YAC1E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,IAAA,aAAK,EAAC,UAAU,CAAC,CAAC,CAAA;QACzD,CAAC,CAAA;IATD,CAAC;CAUF;AAED,kBAAe,iCAAiC,CAAA"}
@@ -28,4 +28,3 @@ declare class SimulateTxAccessorContract_v1_4_1 extends SimulateTxAccessorBaseCo
28
28
  simulate: SimulateTxAccessorContract_v1_4_1_Function<'simulate'>;
29
29
  }
30
30
  export default SimulateTxAccessorContract_v1_4_1;
31
- //# sourceMappingURL=SimulateTxAccessorContract_v1_4_1.d.ts.map