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

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 +371 -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,267 @@
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 actions_1 = require("viem/actions");
7
+ const SafeBaseContract_1 = __importDefault(require("../../../contracts/Safe/SafeBaseContract"));
8
+ const utils_1 = require("../../../contracts/utils");
9
+ const constants_1 = require("../../../utils/constants");
10
+ const types_kit_1 = require("@safe-global/types-kit");
11
+ const types_1 = require("../../../utils/types");
12
+ /**
13
+ * SafeContract_v1_4_1 is the implementation specific to the Safe contract version 1.4.1.
14
+ *
15
+ * This class specializes in handling interactions with the Safe contract version 1.4.1 using Ethers.js v6.
16
+ *
17
+ * @extends SafeBaseContract<SafeContract_v1_4_1_Abi> - Inherits from SafeBaseContract with ABI specific to Safe contract version 1.4.1.
18
+ * @implements SafeContract_v1_4_1_Contract - Implements the interface specific to Safe contract version 1.4.1.
19
+ */
20
+ class SafeContract_v1_4_1 extends SafeBaseContract_1.default {
21
+ /**
22
+ * Constructs an instance of SafeContract_v1_4_1
23
+ *
24
+ * @param chainId - The chain ID where the contract resides.
25
+ * @param safeProvider - An instance of SafeProvider.
26
+ * @param isL1SafeSingleton - A flag indicating if the contract is a L1 Safe Singleton.
27
+ * @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.
28
+ * @param customContractAbi - Optional custom ABI for the contract. If not provided, the default ABI for version 1.4.1 is used.
29
+ * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
30
+ */
31
+ constructor(chainId, safeProvider, isL1SafeSingleton, customContractAddress, customContractAbi, deploymentType) {
32
+ const safeVersion = '1.4.1';
33
+ const defaultAbi = types_kit_1.safe_1_4_1_ContractArtifacts.abi;
34
+ super(chainId, safeProvider, defaultAbi, safeVersion, isL1SafeSingleton, customContractAddress, customContractAbi, deploymentType);
35
+ /**
36
+ * @returns Array[safeContractVersion]
37
+ */
38
+ this.VERSION = async () => {
39
+ return [await this.read('VERSION')];
40
+ };
41
+ /**
42
+ * @param args - Array[owner, txHash]
43
+ * @returns Array[approvedHashes]
44
+ */
45
+ this.approvedHashes = async (args) => {
46
+ return [await this.read('approvedHashes', args)];
47
+ };
48
+ /**
49
+ * Checks whether the signature provided is valid for the provided data, hash and number of required signatures.
50
+ * Will revert otherwise.
51
+ * @param args - Array[dataHash, data, signatures, requiredSignatures]
52
+ * @returns Empty array
53
+ */
54
+ this.checkNSignatures = async (args) => {
55
+ await this.read('checkNSignatures', args);
56
+ return [];
57
+ };
58
+ /**
59
+ * Checks whether the signature provided is valid for the provided data and hash. Will revert otherwise.
60
+ * @param args - Array[dataHash, data, signatures]
61
+ * @returns Empty array
62
+ */
63
+ this.checkSignatures = async (args) => {
64
+ await this.read('checkSignatures', args);
65
+ return [];
66
+ };
67
+ /**
68
+ * @returns Array[domainSeparator]
69
+ */
70
+ this.domainSeparator = async () => {
71
+ return [await this.read('domainSeparator')];
72
+ };
73
+ /**
74
+ * Encodes the data for a transaction to the Safe contract.
75
+ * @param args - Array[to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce]
76
+ * @returns Array[encodedData]
77
+ */
78
+ this.encodeTransactionData = async (args) => {
79
+ return [await this.read('encodeTransactionData', args)];
80
+ };
81
+ /**
82
+ * Returns array of modules.
83
+ * @param args - Array[start, pageSize]
84
+ * @returns Array[Array[modules], next]
85
+ */
86
+ this.getModulesPaginated = async (args) => {
87
+ const [array, next] = await this.read('getModulesPaginated', args);
88
+ return [array, next];
89
+ };
90
+ /**
91
+ * Returns the list of Safe owner accounts.
92
+ * @returns Array[Array[owners]]
93
+ */
94
+ this.getOwners = async () => {
95
+ return [await this.read('getOwners')];
96
+ };
97
+ /**
98
+ * Reads `length` bytes of storage in the currents contract
99
+ * @param args - Array[offset, length]
100
+ * @returns Array[storage]
101
+ */
102
+ this.getStorageAt = async (args) => {
103
+ return [await this.read('getStorageAt', args)];
104
+ };
105
+ /**
106
+ * Returns the Safe threshold.
107
+ * @returns Array[threshold]
108
+ */
109
+ this.getThreshold = async () => {
110
+ return [await this.read('getThreshold')];
111
+ };
112
+ /**
113
+ * Returns hash to be signed by owners.
114
+ * @param args - Array[to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce]
115
+ * @returns Array[transactionHash]
116
+ */
117
+ this.getTransactionHash = async (args) => {
118
+ return [await this.read('getTransactionHash', args)];
119
+ };
120
+ /**
121
+ * Checks if a specific Safe module is enabled for the current Safe.
122
+ * @param args - Array[moduleAddress]
123
+ * @returns Array[isEnabled]
124
+ */
125
+ this.isModuleEnabled = async (args) => {
126
+ return [await this.read('isModuleEnabled', args)];
127
+ };
128
+ /**
129
+ * Checks if a specific address is an owner of the current Safe.
130
+ * @param args - Array[address]
131
+ * @returns Array[isOwner]
132
+ */
133
+ this.isOwner = async (args) => {
134
+ return [await this.read('isOwner', args)];
135
+ };
136
+ /**
137
+ * Returns the Safe nonce.
138
+ * @returns Array[nonce]
139
+ */
140
+ this.nonce = async () => {
141
+ return [await this.read('nonce')];
142
+ };
143
+ /**
144
+ * @param args - Array[messageHash]
145
+ * @returns Array[signedMessages]
146
+ */
147
+ this.signedMessages = async (args) => {
148
+ return [await this.read('signedMessages', args)];
149
+ };
150
+ }
151
+ /**
152
+ * Checks whether a given Safe transaction can be executed successfully with no errors.
153
+ * @param safeTransaction - The Safe transaction to check.
154
+ * @param options - Optional transaction options.
155
+ * @returns True, if the given transactions is valid.
156
+ */
157
+ async isValidTransaction(safeTransaction, options = {}) {
158
+ try {
159
+ const gasLimit = options?.gasLimit ||
160
+ (await this.estimateGas('execTransaction', [
161
+ safeTransaction.data.to,
162
+ BigInt(safeTransaction.data.value),
163
+ (0, types_1.asHex)(safeTransaction.data.data),
164
+ safeTransaction.data.operation,
165
+ BigInt(safeTransaction.data.safeTxGas),
166
+ BigInt(safeTransaction.data.baseGas),
167
+ BigInt(safeTransaction.data.gasPrice),
168
+ safeTransaction.data.gasToken,
169
+ safeTransaction.data.refundReceiver,
170
+ (0, types_1.asHex)(safeTransaction.encodedSignatures())
171
+ ], options));
172
+ const converted = this.convertOptions({ ...options, gasLimit });
173
+ const txResult = await (0, actions_1.simulateContract)(this.runner, {
174
+ address: this.contractAddress,
175
+ functionName: 'execTransaction',
176
+ abi: this.contractAbi,
177
+ args: [
178
+ safeTransaction.data.to,
179
+ BigInt(safeTransaction.data.value),
180
+ (0, types_1.asHex)(safeTransaction.data.data),
181
+ safeTransaction.data.operation,
182
+ BigInt(safeTransaction.data.safeTxGas),
183
+ BigInt(safeTransaction.data.baseGas),
184
+ BigInt(safeTransaction.data.gasPrice),
185
+ safeTransaction.data.gasToken,
186
+ safeTransaction.data.refundReceiver,
187
+ (0, types_1.asHex)(safeTransaction.encodedSignatures())
188
+ ],
189
+ ...converted
190
+ });
191
+ return txResult.result;
192
+ }
193
+ catch (error) {
194
+ return false;
195
+ }
196
+ }
197
+ /**
198
+ * Executes a transaction.
199
+ * @param safeTransaction - The Safe transaction to execute.
200
+ * @param options - Transaction options.
201
+ * @returns Transaction result.
202
+ */
203
+ async execTransaction(safeTransaction, options) {
204
+ const gasLimit = options?.gasLimit ||
205
+ (await this.estimateGas('execTransaction', [
206
+ safeTransaction.data.to,
207
+ BigInt(safeTransaction.data.value),
208
+ (0, types_1.asHex)(safeTransaction.data.data),
209
+ safeTransaction.data.operation,
210
+ BigInt(safeTransaction.data.safeTxGas),
211
+ BigInt(safeTransaction.data.baseGas),
212
+ BigInt(safeTransaction.data.gasPrice),
213
+ safeTransaction.data.gasToken,
214
+ safeTransaction.data.refundReceiver,
215
+ (0, types_1.asHex)(safeTransaction.encodedSignatures())
216
+ ], options));
217
+ const args = [
218
+ safeTransaction.data.to,
219
+ BigInt(safeTransaction.data.value),
220
+ (0, types_1.asHex)(safeTransaction.data.data),
221
+ safeTransaction.data.operation,
222
+ BigInt(safeTransaction.data.safeTxGas),
223
+ BigInt(safeTransaction.data.baseGas),
224
+ BigInt(safeTransaction.data.gasPrice),
225
+ safeTransaction.data.gasToken,
226
+ safeTransaction.data.refundReceiver,
227
+ (0, types_1.asHex)(safeTransaction.encodedSignatures())
228
+ ];
229
+ return (0, utils_1.toTxResult)(this.runner, await this.write('execTransaction', args, { ...options, gasLimit }), options);
230
+ }
231
+ /**
232
+ * Returns array of first 10 modules.
233
+ * @returns Array[modules]
234
+ */
235
+ async getModules() {
236
+ const [modules] = await this.getModulesPaginated([constants_1.SENTINEL_ADDRESS, BigInt(10)]);
237
+ return [modules.map((module) => module)];
238
+ }
239
+ /**
240
+ * Marks a hash as approved. This can be used to validate a hash that is used by a signature.
241
+ * @param hash - The hash that should be marked as approved for signatures that are verified by this contract.
242
+ * @param options - Optional transaction options.
243
+ * @returns Transaction result.
244
+ */
245
+ async approveHash(hash, options) {
246
+ const gasLimit = options?.gasLimit || (await this.estimateGas('approveHash', [(0, types_1.asHash)(hash)], options));
247
+ return (0, utils_1.toTxResult)(this.runner, await this.write('approveHash', [(0, types_1.asHash)(hash)], { ...options, gasLimit }), options);
248
+ }
249
+ /**
250
+ * Returns the chain id of the Safe contract. (Custom method - not defined in the Safe Contract)
251
+ * @returns Array[chainId]
252
+ */
253
+ async getChainId() {
254
+ return [await Promise.resolve(this.chainId)];
255
+ }
256
+ /**
257
+ * returns the nonce of the Safe contract.
258
+ *
259
+ * @returns {Promise<bigint>} A promise that resolves to the nonce of the Safe contract.
260
+ */
261
+ async getNonce() {
262
+ const [nonce] = await this.nonce();
263
+ return nonce;
264
+ }
265
+ }
266
+ exports.default = SafeContract_v1_4_1;
267
+ //# sourceMappingURL=SafeContract_v1_4_1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SafeContract_v1_4_1.js","sourceRoot":"","sources":["../../../../../src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts"],"names":[],"mappings":";;;;;AAAA,0CAA+C;AAC/C,iHAAwF;AAExF,qEAAsE;AACtE,yEAA4E;AAE5E,sDAQ+B;AAC/B,iEAAqE;AAGrE;;;;;;;GAOG;AACH,MAAM,mBACJ,SAAQ,0BAAyC;IAGjD;;;;;;;;;OASG;IACH,YACE,OAAe,EACf,YAA0B,EAC1B,iBAA2B,EAC3B,qBAA8B,EAC9B,iBAA2C,EAC3C,cAA+B;QAE/B,MAAM,WAAW,GAAG,OAAO,CAAA;QAC3B,MAAM,UAAU,GAAG,wCAA4B,CAAC,GAAG,CAAA;QAEnD,KAAK,CACH,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,CACf,CAAA;QAGH;;WAEG;QACH,YAAO,GAA4C,KAAK,IAAI,EAAE;YA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AI,CAAC,CAAC,EAAE,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,CAAC,EACzE,OAAO,CACR,CAAA;IACH,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,UAAU;QACd,OAAO,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;IAC9C,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,QAAQ;QACZ,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,IAAI,CAAC,KAAK,EAAE,CAAA;QAClC,OAAO,KAAK,CAAA;IACd,CAAC;CACF;AAED,kBAAe,mBAAmB,CAAA"}
@@ -37,4 +37,3 @@ declare abstract class SafeProxyFactoryBaseContract<SafeProxyFactoryContractAbiT
37
37
  constructor(chainId: bigint, safeProvider: SafeProvider, defaultAbi: SafeProxyFactoryContractAbiType, safeVersion: SafeVersion, customContractAddress?: string, customContractAbi?: SafeProxyFactoryContractAbiType, deploymentType?: DeploymentType);
38
38
  }
39
39
  export default SafeProxyFactoryBaseContract;
40
- //# sourceMappingURL=SafeProxyFactoryBaseContract.d.ts.map
@@ -0,0 +1,43 @@
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 SafeProxyFactoryBaseContract extends BaseContract to specifically integrate with the SafeProxyFactory contract.
9
+ * It is designed to be instantiated for different versions of the Safe contract.
10
+ *
11
+ * Subclasses of SafeProxyFactoryBaseContract are expected to represent specific versions of the contract.
12
+ *
13
+ * @template SafeProxyFactoryContractAbiType - The ABI type specific to the version of the Safe Proxy Factory contract, extending InterfaceAbi from Ethers.
14
+ * @extends BaseContract<SafeProxyFactoryContractAbiType> - Extends the generic BaseContract.
15
+ *
16
+ * Example subclasses:
17
+ * - SafeProxyFactoryContract_v1_4_1 extends SafeProxyFactoryBaseContract<SafeProxyFactoryContract_v1_4_1_Abi>
18
+ * - SafeProxyFactoryContract_v1_3_0 extends SafeProxyFactoryBaseContract<SafeProxyFactoryContract_v1_3_0_Abi>
19
+ * - SafeProxyFactoryContract_v1_2_0 extends SafeProxyFactoryBaseContract<SafeProxyFactoryContract_v1_2_0_Abi>
20
+ * - SafeProxyFactoryContract_v1_1_1 extends SafeProxyFactoryBaseContract<SafeProxyFactoryContract_v1_1_1_Abi>
21
+ * - SafeProxyFactoryContract_v1_0_0 extends SafeProxyFactoryBaseContract<SafeProxyFactoryContract_v1_0_0_Abi>
22
+ */
23
+ class SafeProxyFactoryBaseContract extends BaseContract_1.default {
24
+ /**
25
+ * @constructor
26
+ * Constructs an instance of SafeProxyFactoryBaseContract.
27
+ *
28
+ * @param chainId - The chain ID of the contract.
29
+ * @param safeProvider - An instance of SafeProvider.
30
+ * @param defaultAbi - The default ABI for the Safe contract. It should be compatible with the specific version of the contract.
31
+ * @param safeVersion - The version of the Safe contract.
32
+ * @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.
33
+ * @param customContractAbi - Optional custom ABI for the contract. If not provided, the ABI is derived from the Safe deployments or the defaultAbi is used.
34
+ * @param deploymentType - Optional deployment type for the contract. If not provided, the first deployment retrieved from the safe-deployments array will be used.
35
+ */
36
+ constructor(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType) {
37
+ const contractName = 'safeProxyFactoryVersion';
38
+ super(contractName, chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
39
+ this.contractName = contractName;
40
+ }
41
+ }
42
+ exports.default = SafeProxyFactoryBaseContract;
43
+ //# sourceMappingURL=SafeProxyFactoryBaseContract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SafeProxyFactoryBaseContract.js","sourceRoot":"","sources":["../../../../src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.ts"],"names":[],"mappings":";;;;;AAEA,oGAA2E;AAK3E;;;;;;;;;;;;;;;GAeG;AACH,MAAe,4BAEb,SAAQ,sBAA6C;IAGrD;;;;;;;;;;;OAWG;IACH,YACE,OAAe,EACf,YAA0B,EAC1B,UAA2C,EAC3C,WAAwB,EACxB,qBAA8B,EAC9B,iBAAmD,EACnD,cAA+B;QAE/B,MAAM,YAAY,GAAG,yBAAyB,CAAA;QAE9C,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,4BAA4B,CAAA"}
@@ -45,4 +45,3 @@ declare class SafeProxyFactoryContract_v1_0_0 extends SafeProxyFactoryBaseContra
45
45
  createProxyWithNonce: SafeProxyFactoryContract_v1_0_0_Function<'createProxyWithNonce'>;
46
46
  }
47
47
  export default SafeProxyFactoryContract_v1_0_0;
48
- //# sourceMappingURL=SafeProxyFactoryContract_v1_0_0.d.ts.map
@@ -0,0 +1,63 @@
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_0_0 is the implementation specific to the Safe Proxy Factory contract version 1.0.0.
10
+ *
11
+ * This class specializes in handling interactions with the Safe Proxy Factory contract version 1.0.0 using Ethers.js v6.
12
+ *
13
+ * @extends SafeProxyFactoryBaseContract<SafeProxyFactoryContract_v1_0_0_Abi> - Inherits from SafeProxyFactoryBaseContract with ABI specific to Safe Proxy Factory contract version 1.0.0.
14
+ * @implements SafeProxyFactoryContract_v1_0_0_Contract - Implements the interface specific to Safe Proxy Factory contract version 1.0.0.
15
+ */
16
+ class SafeProxyFactoryContract_v1_0_0 extends SafeProxyFactoryBaseContract_1.default {
17
+ /**
18
+ * Constructs an instance of SafeProxyFactoryContract_v1_0_0
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.0.0 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.0.0';
28
+ const defaultAbi = types_kit_1.safeProxyFactory_1_0_0_ContractArtifacts.abi;
29
+ super(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
30
+ /**
31
+ * Allows to retrieve the creation code used for the Proxy deployment. With this it is easily possible to calculate predicted address.
32
+ * @returns Array[creationCode]
33
+ */
34
+ this.proxyCreationCode = async () => {
35
+ return [await this.read('proxyCreationCode')];
36
+ };
37
+ /**
38
+ * Allows to retrieve the runtime code of a deployed Proxy. This can be used to check that the expected Proxy was deployed.
39
+ * @returns Array[runtimeCode]
40
+ */
41
+ this.proxyRuntimeCode = async () => {
42
+ return [await this.read('proxyRuntimeCode')];
43
+ };
44
+ /**
45
+ * Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
46
+ * @param args - Array[masterCopy, data]
47
+ * @returns Array[proxyAddress]
48
+ */
49
+ this.createProxy = async (args) => {
50
+ return [await this.write('createProxy', args)];
51
+ };
52
+ /**
53
+ * Allows to create new proxy contract and execute a message call to the new proxy within one transaction.
54
+ * @param args - Array[masterCopy, initializer, saltNonce]
55
+ * @returns Array[proxyAddress]
56
+ */
57
+ this.createProxyWithNonce = async (args) => {
58
+ return [await this.write('createProxyWithNonce', args)];
59
+ };
60
+ }
61
+ }
62
+ exports.default = SafeProxyFactoryContract_v1_0_0;
63
+ //# sourceMappingURL=SafeProxyFactoryContract_v1_0_0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SafeProxyFactoryContract_v1_0_0.js","sourceRoot":"","sources":["../../../../../src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.ts"],"names":[],"mappings":";;;;;AAAA,qJAA4H;AAG5H,sDAK+B;AAE/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,sBAAiB,GAAkE,KAAK,IAAI,EAAE;YAC5F,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAA;QAC/C,CAAC,CAAA;QAED;;;WAGG;QACH,qBAAgB,GAAiE,KAAK,IAAI,EAAE;YAC1F,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAA;QAC9C,CAAC,CAAA;QAED;;;;WAIG;QACH,gBAAW,GAA4D,KAAK,EAAE,IAAI,EAAE,EAAE;YACpF,OAAO,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,CAAA;QAChD,CAAC,CAAA;QAED;;;;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;IApCD,CAAC;CAqCF;AAED,kBAAe,+BAA+B,CAAA"}
@@ -57,4 +57,3 @@ declare class SafeProxyFactoryContract_v1_1_1 extends SafeProxyFactoryBaseContra
57
57
  createProxyWithNonce: SafeProxyFactoryContract_v1_1_1_Function<'createProxyWithNonce'>;
58
58
  }
59
59
  export default SafeProxyFactoryContract_v1_1_1;
60
- //# sourceMappingURL=SafeProxyFactoryContract_v1_1_1.d.ts.map
@@ -0,0 +1,79 @@
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_1_1 is the implementation specific to the Safe Proxy Factory contract version 1.1.1.
10
+ *
11
+ * This class specializes in handling interactions with the Safe Proxy Factory contract version 1.1.1 using Ethers.js v6.
12
+ *
13
+ * @extends SafeProxyFactoryBaseContract<SafeProxyFactoryContract_v1_1_1_Abi> - Inherits from SafeProxyFactoryBaseContract with ABI specific to Safe Proxy Factory contract version 1.1.1.
14
+ * @implements SafeProxyFactoryContract_v1_1_1_Contract - Implements the interface specific to Safe Proxy Factory contract version 1.1.1.
15
+ */
16
+ class SafeProxyFactoryContract_v1_1_1 extends SafeProxyFactoryBaseContract_1.default {
17
+ /**
18
+ * Constructs an instance of SafeProxyFactoryContract_v1_1_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.1.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.1.1';
28
+ const defaultAbi = types_kit_1.safeProxyFactory_1_1_1_ContractArtifacts.abi;
29
+ super(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
30
+ /**
31
+ * Allows to retrieve the creation code used for the Proxy deployment. With this it is easily possible to calculate predicted address.
32
+ * @returns Array[creationCode]
33
+ */
34
+ this.proxyCreationCode = async () => {
35
+ return [await this.read('proxyCreationCode')];
36
+ };
37
+ /**
38
+ * Allows to retrieve the runtime code of a deployed Proxy. This can be used to check that the expected Proxy was deployed.
39
+ * @returns Array[runtimeCode]
40
+ */
41
+ this.proxyRuntimeCode = async () => {
42
+ return [await this.read('proxyRuntimeCode')];
43
+ };
44
+ /**
45
+ * Allows to get the address for a new proxy contact created via `createProxyWithNonce`.
46
+ * @param args - Array[masterCopy, initializer, saltNonceBigInt]
47
+ * @returns Array[proxyAddress]
48
+ */
49
+ this.calculateCreateProxyWithNonceAddress = async (args) => {
50
+ return [await this.write('calculateCreateProxyWithNonceAddress', args)];
51
+ };
52
+ /**
53
+ * Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
54
+ * @param args - Array[masterCopy, data]
55
+ * @returns Array[proxyAddress]
56
+ */
57
+ this.createProxy = async (args) => {
58
+ return [await this.write('createProxy', args)];
59
+ };
60
+ /**
61
+ * Allows to create new proxy contract, execute a message call to the new proxy and call a specified callback within one transaction.
62
+ * @param args - Array[masterCopy, initializer, saltNonce, callback]
63
+ * @returns Array[proxyAddress]
64
+ */
65
+ this.createProxyWithCallback = async (args) => {
66
+ return [await this.write('createProxyWithCallback', args)];
67
+ };
68
+ /**
69
+ * Allows to create new proxy contract and execute a message call to the new proxy within one transaction.
70
+ * @param args - Array[masterCopy, initializer, saltNonce]
71
+ * @returns Array[proxyAddress]
72
+ */
73
+ this.createProxyWithNonce = async (args) => {
74
+ return [await this.write('createProxyWithNonce', args)];
75
+ };
76
+ }
77
+ }
78
+ exports.default = SafeProxyFactoryContract_v1_1_1;
79
+ //# sourceMappingURL=SafeProxyFactoryContract_v1_1_1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SafeProxyFactoryContract_v1_1_1.js","sourceRoot":"","sources":["../../../../../src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.ts"],"names":[],"mappings":";;;;;AAAA,qJAA4H;AAG5H,sDAK+B;AAE/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,sBAAiB,GAAkE,KAAK,IAAI,EAAE;YAC5F,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAA;QAC/C,CAAC,CAAA;QAED;;;WAGG;QACH,qBAAgB,GAAiE,KAAK,IAAI,EAAE;YAC1F,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAA;QAC9C,CAAC,CAAA;QAED;;;;WAIG;QACH,yCAAoC,GAClC,KAAK,EAAE,IAAI,EAAE,EAAE;YACb,OAAO,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,sCAAsC,EAAE,IAAI,CAAC,CAAC,CAAA;QACzE,CAAC,CAAA;QAEH;;;;WAIG;QACH,gBAAW,GAA4D,KAAK,EAAE,IAAI,EAAE,EAAE;YACpF,OAAO,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,CAAA;QAChD,CAAC,CAAA;QAED;;;;WAIG;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;IAxDD,CAAC;CAyDF;AAED,kBAAe,+BAA+B,CAAA"}
@@ -57,4 +57,3 @@ declare class SafeProxyFactoryContract_v1_3_0 extends SafeProxyFactoryBaseContra
57
57
  createProxyWithNonce: SafeProxyFactoryContract_v1_3_0_Function<'createProxyWithNonce'>;
58
58
  }
59
59
  export default SafeProxyFactoryContract_v1_3_0;
60
- //# sourceMappingURL=SafeProxyFactoryContract_v1_3_0.d.ts.map
@@ -0,0 +1,79 @@
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_3_0 is the implementation specific to the Safe Proxy Factory contract version 1.3.0.
10
+ *
11
+ * This class specializes in handling interactions with the Safe Proxy Factory contract version 1.3.0 using Ethers.js v6.
12
+ *
13
+ * @extends SafeProxyFactoryBaseContract<SafeProxyFactoryContract_v1_3_0_Abi> - Inherits from SafeProxyFactoryBaseContract with ABI specific to Safe Proxy Factory contract version 1.3.0.
14
+ * @implements SafeProxyFactoryContract_v1_3_0_Contract - Implements the interface specific to Safe Proxy Factory contract version 1.3.0.
15
+ */
16
+ class SafeProxyFactoryContract_v1_3_0 extends SafeProxyFactoryBaseContract_1.default {
17
+ /**
18
+ * Constructs an instance of SafeProxyFactoryContract_v1_3_0
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.3.0 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.3.0';
28
+ const defaultAbi = types_kit_1.safeProxyFactory_1_3_0_ContractArtifacts.abi;
29
+ super(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi, deploymentType);
30
+ /**
31
+ * Allows to retrieve the creation code used for the Proxy deployment. With this it is easily possible to calculate predicted address.
32
+ * @returns Array[creationCode]
33
+ */
34
+ this.proxyCreationCode = async () => {
35
+ return [await this.read('proxyCreationCode')];
36
+ };
37
+ /**
38
+ * Allows to retrieve the runtime code of a deployed Proxy. This can be used to check that the expected Proxy was deployed.
39
+ * @returns Array[runtimeCode]
40
+ */
41
+ this.proxyRuntimeCode = async () => {
42
+ return [await this.read('proxyRuntimeCode')];
43
+ };
44
+ /**
45
+ * Allows to get the address for a new proxy contact created via `createProxyWithNonce`.
46
+ * @param args - Array[singleton, initializer, saltNonce]
47
+ * @returns Array[proxyAddress]
48
+ */
49
+ this.calculateCreateProxyWithNonceAddress = async (args) => {
50
+ return [await this.write('calculateCreateProxyWithNonceAddress', args)];
51
+ };
52
+ /**
53
+ * Allows to create new proxy contact and execute a message call to the new proxy within one transaction.
54
+ * @param args - Array[singleton, data]
55
+ * @returns Array[proxyAddress]
56
+ */
57
+ this.createProxy = async (args) => {
58
+ return [await this.write('createProxy', args)];
59
+ };
60
+ /**
61
+ * Allows to create new proxy contract, execute a message call to the new proxy and call a specified callback within one transaction.
62
+ * @param args - Array[singleton, initializer, saltNonce, callback]
63
+ * @returns Array[proxyAddress]
64
+ */
65
+ this.createProxyWithCallback = async (args) => {
66
+ return [await this.write('createProxyWithCallback', args)];
67
+ };
68
+ /**
69
+ * Allows to create new proxy contract and execute a message call to the new proxy within one transaction.
70
+ * @param args - Array[singleton, initializer, saltNonce]
71
+ * @returns Array[proxyAddress]
72
+ */
73
+ this.createProxyWithNonce = async (args) => {
74
+ return [await this.write('createProxyWithNonce', args)];
75
+ };
76
+ }
77
+ }
78
+ exports.default = SafeProxyFactoryContract_v1_3_0;
79
+ //# sourceMappingURL=SafeProxyFactoryContract_v1_3_0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SafeProxyFactoryContract_v1_3_0.js","sourceRoot":"","sources":["../../../../../src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.ts"],"names":[],"mappings":";;;;;AAAA,qJAA4H;AAG5H,sDAK+B;AAE/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,sBAAiB,GAAkE,KAAK,IAAI,EAAE;YAC5F,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAA;QAC/C,CAAC,CAAA;QAED;;;WAGG;QACH,qBAAgB,GAAiE,KAAK,IAAI,EAAE;YAC1F,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAA;QAC9C,CAAC,CAAA;QAED;;;;WAIG;QACH,yCAAoC,GAClC,KAAK,EAAE,IAAI,EAAE,EAAE;YACb,OAAO,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,sCAAsC,EAAE,IAAI,CAAC,CAAC,CAAA;QACzE,CAAC,CAAA;QAEH;;;;WAIG;QACH,gBAAW,GAA4D,KAAK,EAAE,IAAI,EAAE,EAAE;YACpF,OAAO,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,CAAA;QAChD,CAAC,CAAA;QAED;;;;WAIG;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;IAxDD,CAAC;CAyDF;AAED,kBAAe,+BAA+B,CAAA"}
@@ -52,4 +52,3 @@ declare class SafeProxyFactoryContract_v1_4_1 extends SafeProxyFactoryBaseContra
52
52
  createProxyWithNonce: SafeProxyFactoryContract_v1_4_1_Function<'createProxyWithNonce'>;
53
53
  }
54
54
  export default SafeProxyFactoryContract_v1_4_1;
55
- //# sourceMappingURL=SafeProxyFactoryContract_v1_4_1.d.ts.map