@safe-global/protocol-kit 5.2.2 → 6.0.0-alpha.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 (355) hide show
  1. package/dist/cjs/src/index.cjs +7534 -0
  2. package/dist/cjs/test-utils/index.cjs +4118 -0
  3. package/dist/esm/src/index.mjs +7639 -0
  4. package/dist/esm/test-utils/index.mjs +4217 -0
  5. package/dist/src/Safe.d.ts +3 -2
  6. package/dist/src/Safe.d.ts.map +1 -0
  7. package/dist/src/SafeProvider.d.ts +1 -0
  8. package/dist/src/SafeProvider.d.ts.map +1 -0
  9. package/dist/src/contracts/BaseContract.d.ts +1 -0
  10. package/dist/src/contracts/BaseContract.d.ts.map +1 -0
  11. package/dist/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.d.ts +1 -0
  12. package/dist/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.d.ts.map +1 -0
  13. package/dist/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.d.ts +1 -0
  14. package/dist/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.d.ts.map +1 -0
  15. package/dist/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.d.ts +1 -0
  16. package/dist/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.d.ts.map +1 -0
  17. package/dist/src/contracts/CreateCall/CreateCallBaseContract.d.ts +1 -0
  18. package/dist/src/contracts/CreateCall/CreateCallBaseContract.d.ts.map +1 -0
  19. package/dist/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.d.ts +1 -0
  20. package/dist/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.d.ts.map +1 -0
  21. package/dist/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.d.ts +1 -0
  22. package/dist/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.d.ts.map +1 -0
  23. package/dist/src/contracts/MultiSend/MultiSendBaseContract.d.ts +1 -0
  24. package/dist/src/contracts/MultiSend/MultiSendBaseContract.d.ts.map +1 -0
  25. package/dist/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.d.ts +1 -0
  26. package/dist/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.d.ts.map +1 -0
  27. package/dist/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.d.ts +1 -0
  28. package/dist/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.d.ts.map +1 -0
  29. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.d.ts +1 -0
  30. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.d.ts.map +1 -0
  31. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.d.ts +1 -0
  32. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.d.ts.map +1 -0
  33. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.d.ts +1 -0
  34. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.d.ts.map +1 -0
  35. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.d.ts +1 -0
  36. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.d.ts.map +1 -0
  37. package/dist/src/contracts/Safe/SafeBaseContract.d.ts +1 -0
  38. package/dist/src/contracts/Safe/SafeBaseContract.d.ts.map +1 -0
  39. package/dist/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.d.ts +1 -0
  40. package/dist/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.d.ts.map +1 -0
  41. package/dist/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.d.ts +1 -0
  42. package/dist/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.d.ts.map +1 -0
  43. package/dist/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.d.ts +1 -0
  44. package/dist/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.d.ts.map +1 -0
  45. package/dist/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.d.ts +1 -0
  46. package/dist/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.d.ts.map +1 -0
  47. package/dist/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.d.ts +1 -0
  48. package/dist/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.d.ts.map +1 -0
  49. package/dist/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.d.ts +1 -0
  50. package/dist/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.d.ts.map +1 -0
  51. package/dist/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.d.ts +1 -0
  52. package/dist/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.d.ts.map +1 -0
  53. package/dist/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.d.ts +1 -0
  54. package/dist/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.d.ts.map +1 -0
  55. package/dist/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.d.ts +1 -0
  56. package/dist/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.d.ts.map +1 -0
  57. package/dist/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.d.ts +1 -0
  58. package/dist/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.d.ts.map +1 -0
  59. package/dist/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.d.ts +1 -0
  60. package/dist/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.d.ts.map +1 -0
  61. package/dist/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.d.ts +1 -0
  62. package/dist/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.d.ts.map +1 -0
  63. package/dist/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.d.ts +1 -0
  64. package/dist/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.d.ts.map +1 -0
  65. package/dist/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.d.ts +1 -0
  66. package/dist/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.d.ts.map +1 -0
  67. package/dist/src/contracts/SignMessageLib/SignMessageLibBaseContract.d.ts +1 -0
  68. package/dist/src/contracts/SignMessageLib/SignMessageLibBaseContract.d.ts.map +1 -0
  69. package/dist/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.d.ts +1 -0
  70. package/dist/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.d.ts.map +1 -0
  71. package/dist/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.d.ts +1 -0
  72. package/dist/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.d.ts.map +1 -0
  73. package/dist/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.d.ts +1 -0
  74. package/dist/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.d.ts.map +1 -0
  75. package/dist/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.d.ts +1 -0
  76. package/dist/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.d.ts.map +1 -0
  77. package/dist/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.d.ts +1 -0
  78. package/dist/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.d.ts.map +1 -0
  79. package/dist/src/contracts/config.d.ts +1 -0
  80. package/dist/src/contracts/config.d.ts.map +1 -0
  81. package/dist/src/contracts/constants.d.ts +1 -0
  82. package/dist/src/contracts/constants.d.ts.map +1 -0
  83. package/dist/src/contracts/contractInstances.d.ts +1 -0
  84. package/dist/src/contracts/contractInstances.d.ts.map +1 -0
  85. package/dist/src/contracts/index.d.ts +1 -0
  86. package/dist/src/contracts/index.d.ts.map +1 -0
  87. package/dist/src/contracts/safeDeploymentContracts.d.ts +1 -0
  88. package/dist/src/contracts/safeDeploymentContracts.d.ts.map +1 -0
  89. package/dist/src/contracts/utils.d.ts +1 -0
  90. package/dist/src/contracts/utils.d.ts.map +1 -0
  91. package/dist/src/index.d.ts +1 -0
  92. package/dist/src/index.d.ts.map +1 -0
  93. package/dist/src/managers/contractManager.d.ts +1 -0
  94. package/dist/src/managers/contractManager.d.ts.map +1 -0
  95. package/dist/src/managers/fallbackHandlerManager.d.ts +1 -0
  96. package/dist/src/managers/fallbackHandlerManager.d.ts.map +1 -0
  97. package/dist/src/managers/guardManager.d.ts +1 -0
  98. package/dist/src/managers/guardManager.d.ts.map +1 -0
  99. package/dist/src/managers/moduleManager.d.ts +1 -0
  100. package/dist/src/managers/moduleManager.d.ts.map +1 -0
  101. package/dist/src/managers/ownerManager.d.ts +1 -0
  102. package/dist/src/managers/ownerManager.d.ts.map +1 -0
  103. package/dist/src/types/contracts.d.ts +1 -0
  104. package/dist/src/types/contracts.d.ts.map +1 -0
  105. package/dist/src/types/index.d.ts +1 -1
  106. package/dist/src/types/index.d.ts.map +1 -0
  107. package/dist/src/types/passkeys.d.ts +1 -0
  108. package/dist/src/types/passkeys.d.ts.map +1 -0
  109. package/dist/src/types/safeConfig.d.ts +1 -0
  110. package/dist/src/types/safeConfig.d.ts.map +1 -0
  111. package/dist/src/types/safeProvider.d.ts +1 -0
  112. package/dist/src/types/safeProvider.d.ts.map +1 -0
  113. package/dist/src/types/transactions.d.ts +1 -0
  114. package/dist/src/types/transactions.d.ts.map +1 -0
  115. package/dist/src/utils/address.d.ts +1 -0
  116. package/dist/src/utils/address.d.ts.map +1 -0
  117. package/dist/src/utils/block.d.ts +1 -0
  118. package/dist/src/utils/block.d.ts.map +1 -0
  119. package/dist/src/utils/constants.d.ts +1 -0
  120. package/dist/src/utils/constants.d.ts.map +1 -0
  121. package/dist/src/utils/eip-3770/config.d.ts +1 -0
  122. package/dist/src/utils/eip-3770/config.d.ts.map +1 -0
  123. package/dist/src/utils/eip-3770/index.d.ts +1 -0
  124. package/dist/src/utils/eip-3770/index.d.ts.map +1 -0
  125. package/dist/src/utils/eip-712/encode.d.ts +1 -0
  126. package/dist/src/utils/eip-712/encode.d.ts.map +1 -0
  127. package/dist/src/utils/eip-712/index.d.ts +1 -0
  128. package/dist/src/utils/eip-712/index.d.ts.map +1 -0
  129. package/dist/src/utils/erc-20/index.d.ts +1 -0
  130. package/dist/src/utils/erc-20/index.d.ts.map +1 -0
  131. package/dist/src/utils/getProtocolKitVersion.d.ts +1 -0
  132. package/dist/src/utils/getProtocolKitVersion.d.ts.map +1 -0
  133. package/dist/src/utils/index.d.ts +1 -0
  134. package/dist/src/utils/index.d.ts.map +1 -0
  135. package/dist/src/utils/memoized.d.ts +1 -0
  136. package/dist/src/utils/memoized.d.ts.map +1 -0
  137. package/dist/src/utils/messages/SafeMessage.d.ts +1 -0
  138. package/dist/src/utils/messages/SafeMessage.d.ts.map +1 -0
  139. package/dist/src/utils/on-chain-tracking/generateOnChainIdentifier.d.ts +1 -0
  140. package/dist/src/utils/on-chain-tracking/generateOnChainIdentifier.d.ts.map +1 -0
  141. package/dist/src/utils/passkeys/PasskeyClient.d.ts +1 -0
  142. package/dist/src/utils/passkeys/PasskeyClient.d.ts.map +1 -0
  143. package/dist/src/utils/passkeys/createPasskeyDeploymentTransaction.d.ts +1 -0
  144. package/dist/src/utils/passkeys/createPasskeyDeploymentTransaction.d.ts.map +1 -0
  145. package/dist/src/utils/passkeys/extractPasskeyData.d.ts +1 -0
  146. package/dist/src/utils/passkeys/extractPasskeyData.d.ts.map +1 -0
  147. package/dist/src/utils/passkeys/getPasskeyOwnerAddress.d.ts +1 -0
  148. package/dist/src/utils/passkeys/getPasskeyOwnerAddress.d.ts.map +1 -0
  149. package/dist/src/utils/passkeys/index.d.ts +1 -0
  150. package/dist/src/utils/passkeys/index.d.ts.map +1 -0
  151. package/dist/src/utils/passkeys/isSharedSigner.d.ts +1 -0
  152. package/dist/src/utils/passkeys/isSharedSigner.d.ts.map +1 -0
  153. package/dist/src/utils/provider.d.ts +1 -0
  154. package/dist/src/utils/provider.d.ts.map +1 -0
  155. package/dist/src/utils/safeVersions.d.ts +1 -0
  156. package/dist/src/utils/safeVersions.d.ts.map +1 -0
  157. package/dist/src/utils/signatures/SafeSignature.d.ts +1 -0
  158. package/dist/src/utils/signatures/SafeSignature.d.ts.map +1 -0
  159. package/dist/src/utils/signatures/index.d.ts +1 -0
  160. package/dist/src/utils/signatures/index.d.ts.map +1 -0
  161. package/dist/src/utils/signatures/utils.d.ts +2 -2
  162. package/dist/src/utils/signatures/utils.d.ts.map +1 -0
  163. package/dist/src/utils/transactions/SafeTransaction.d.ts +1 -0
  164. package/dist/src/utils/transactions/SafeTransaction.d.ts.map +1 -0
  165. package/dist/src/utils/transactions/gas.d.ts +1 -0
  166. package/dist/src/utils/transactions/gas.d.ts.map +1 -0
  167. package/dist/src/utils/transactions/index.d.ts +1 -0
  168. package/dist/src/utils/transactions/index.d.ts.map +1 -0
  169. package/dist/src/utils/transactions/types.d.ts +1 -0
  170. package/dist/src/utils/transactions/types.d.ts.map +1 -0
  171. package/dist/src/utils/transactions/utils.d.ts +1 -0
  172. package/dist/src/utils/transactions/utils.d.ts.map +1 -0
  173. package/dist/src/utils/types.d.ts +1 -0
  174. package/dist/src/utils/types.d.ts.map +1 -0
  175. package/dist/test-utils/index.d.ts +3 -0
  176. package/dist/test-utils/index.d.ts.map +1 -0
  177. package/dist/test-utils/passkeys.d.ts +25 -0
  178. package/dist/test-utils/passkeys.d.ts.map +1 -0
  179. package/dist/test-utils/webauthnShim.d.ts +150 -0
  180. package/dist/test-utils/webauthnShim.d.ts.map +1 -0
  181. package/dist/tsconfig.build.tsbuildinfo +1 -1
  182. package/package.json +21 -5
  183. package/dist/src/Safe.js +0 -1409
  184. package/dist/src/Safe.js.map +0 -1
  185. package/dist/src/SafeProvider.js +0 -265
  186. package/dist/src/SafeProvider.js.map +0 -1
  187. package/dist/src/contracts/BaseContract.js +0 -163
  188. package/dist/src/contracts/BaseContract.js.map +0 -1
  189. package/dist/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.js +0 -40
  190. package/dist/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.js.map +0 -1
  191. package/dist/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.js +0 -33
  192. package/dist/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.js.map +0 -1
  193. package/dist/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.js +0 -33
  194. package/dist/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.js.map +0 -1
  195. package/dist/src/contracts/CreateCall/CreateCallBaseContract.js +0 -40
  196. package/dist/src/contracts/CreateCall/CreateCallBaseContract.js.map +0 -1
  197. package/dist/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.js +0 -56
  198. package/dist/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.js.map +0 -1
  199. package/dist/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.js +0 -56
  200. package/dist/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.js.map +0 -1
  201. package/dist/src/contracts/MultiSend/MultiSendBaseContract.js +0 -40
  202. package/dist/src/contracts/MultiSend/MultiSendBaseContract.js.map +0 -1
  203. package/dist/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.js +0 -40
  204. package/dist/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.js.map +0 -1
  205. package/dist/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.js +0 -33
  206. package/dist/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.js.map +0 -1
  207. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.js +0 -33
  208. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.js.map +0 -1
  209. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.js +0 -33
  210. package/dist/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.js.map +0 -1
  211. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.js +0 -33
  212. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.js.map +0 -1
  213. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.js +0 -33
  214. package/dist/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.js.map +0 -1
  215. package/dist/src/contracts/Safe/SafeBaseContract.js +0 -47
  216. package/dist/src/contracts/Safe/SafeBaseContract.js.map +0 -1
  217. package/dist/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.js +0 -276
  218. package/dist/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.js.map +0 -1
  219. package/dist/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.js +0 -248
  220. package/dist/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.js.map +0 -1
  221. package/dist/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.js +0 -253
  222. package/dist/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.js.map +0 -1
  223. package/dist/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.js +0 -267
  224. package/dist/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.js.map +0 -1
  225. package/dist/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.js +0 -267
  226. package/dist/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.js.map +0 -1
  227. package/dist/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.js +0 -43
  228. package/dist/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.js.map +0 -1
  229. package/dist/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.js +0 -63
  230. package/dist/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.js.map +0 -1
  231. package/dist/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.js +0 -79
  232. package/dist/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.js.map +0 -1
  233. package/dist/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.js +0 -79
  234. package/dist/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.js.map +0 -1
  235. package/dist/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.js +0 -72
  236. package/dist/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.js.map +0 -1
  237. package/dist/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.js +0 -39
  238. package/dist/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.js.map +0 -1
  239. package/dist/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.js +0 -59
  240. package/dist/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.js.map +0 -1
  241. package/dist/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.js +0 -39
  242. package/dist/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.js.map +0 -1
  243. package/dist/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.js +0 -52
  244. package/dist/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.js.map +0 -1
  245. package/dist/src/contracts/SignMessageLib/SignMessageLibBaseContract.js +0 -40
  246. package/dist/src/contracts/SignMessageLib/SignMessageLibBaseContract.js.map +0 -1
  247. package/dist/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.js +0 -49
  248. package/dist/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.js.map +0 -1
  249. package/dist/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.js +0 -49
  250. package/dist/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.js.map +0 -1
  251. package/dist/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.js +0 -40
  252. package/dist/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.js.map +0 -1
  253. package/dist/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.js +0 -42
  254. package/dist/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.js.map +0 -1
  255. package/dist/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.js +0 -42
  256. package/dist/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.js.map +0 -1
  257. package/dist/src/contracts/config.js +0 -130
  258. package/dist/src/contracts/config.js.map +0 -1
  259. package/dist/src/contracts/constants.js +0 -8
  260. package/dist/src/contracts/constants.js.map +0 -1
  261. package/dist/src/contracts/contractInstances.js +0 -222
  262. package/dist/src/contracts/contractInstances.js.map +0 -1
  263. package/dist/src/contracts/index.js +0 -19
  264. package/dist/src/contracts/index.js.map +0 -1
  265. package/dist/src/contracts/safeDeploymentContracts.js +0 -95
  266. package/dist/src/contracts/safeDeploymentContracts.js.map +0 -1
  267. package/dist/src/contracts/utils.js +0 -324
  268. package/dist/src/contracts/utils.js.map +0 -1
  269. package/dist/src/index.js +0 -93
  270. package/dist/src/index.js.map +0 -1
  271. package/dist/src/managers/contractManager.js +0 -90
  272. package/dist/src/managers/contractManager.js.map +0 -1
  273. package/dist/src/managers/fallbackHandlerManager.js +0 -73
  274. package/dist/src/managers/fallbackHandlerManager.js.map +0 -1
  275. package/dist/src/managers/guardManager.js +0 -73
  276. package/dist/src/managers/guardManager.js.map +0 -1
  277. package/dist/src/managers/moduleManager.js +0 -88
  278. package/dist/src/managers/moduleManager.js.map +0 -1
  279. package/dist/src/managers/ownerManager.js +0 -124
  280. package/dist/src/managers/ownerManager.js.map +0 -1
  281. package/dist/src/types/contracts.js +0 -3
  282. package/dist/src/types/contracts.js.map +0 -1
  283. package/dist/src/types/index.js +0 -23
  284. package/dist/src/types/index.js.map +0 -1
  285. package/dist/src/types/passkeys.js +0 -3
  286. package/dist/src/types/passkeys.js.map +0 -1
  287. package/dist/src/types/safeConfig.js +0 -3
  288. package/dist/src/types/safeConfig.js.map +0 -1
  289. package/dist/src/types/safeProvider.js +0 -3
  290. package/dist/src/types/safeProvider.js.map +0 -1
  291. package/dist/src/types/signing.d.ts +0 -8
  292. package/dist/src/types/signing.js +0 -12
  293. package/dist/src/types/signing.js.map +0 -1
  294. package/dist/src/types/transactions.js +0 -3
  295. package/dist/src/types/transactions.js.map +0 -1
  296. package/dist/src/utils/address.js +0 -21
  297. package/dist/src/utils/address.js.map +0 -1
  298. package/dist/src/utils/block.js +0 -14
  299. package/dist/src/utils/block.js.map +0 -1
  300. package/dist/src/utils/constants.js +0 -8
  301. package/dist/src/utils/constants.js.map +0 -1
  302. package/dist/src/utils/eip-3770/config.js +0 -376
  303. package/dist/src/utils/eip-3770/config.js.map +0 -1
  304. package/dist/src/utils/eip-3770/index.js +0 -47
  305. package/dist/src/utils/eip-3770/index.js.map +0 -1
  306. package/dist/src/utils/eip-712/encode.js +0 -127
  307. package/dist/src/utils/eip-712/encode.js.map +0 -1
  308. package/dist/src/utils/eip-712/index.js +0 -105
  309. package/dist/src/utils/eip-712/index.js.map +0 -1
  310. package/dist/src/utils/erc-20/index.js +0 -84
  311. package/dist/src/utils/erc-20/index.js.map +0 -1
  312. package/dist/src/utils/getProtocolKitVersion.js +0 -6
  313. package/dist/src/utils/getProtocolKitVersion.js.map +0 -1
  314. package/dist/src/utils/index.js +0 -24
  315. package/dist/src/utils/index.js.map +0 -1
  316. package/dist/src/utils/memoized.js +0 -41
  317. package/dist/src/utils/memoized.js.map +0 -1
  318. package/dist/src/utils/messages/SafeMessage.js +0 -20
  319. package/dist/src/utils/messages/SafeMessage.js.map +0 -1
  320. package/dist/src/utils/on-chain-tracking/generateOnChainIdentifier.js +0 -46
  321. package/dist/src/utils/on-chain-tracking/generateOnChainIdentifier.js.map +0 -1
  322. package/dist/src/utils/passkeys/PasskeyClient.js +0 -171
  323. package/dist/src/utils/passkeys/PasskeyClient.js.map +0 -1
  324. package/dist/src/utils/passkeys/createPasskeyDeploymentTransaction.js +0 -35
  325. package/dist/src/utils/passkeys/createPasskeyDeploymentTransaction.js.map +0 -1
  326. package/dist/src/utils/passkeys/extractPasskeyData.js +0 -232
  327. package/dist/src/utils/passkeys/extractPasskeyData.js.map +0 -1
  328. package/dist/src/utils/passkeys/getPasskeyOwnerAddress.js +0 -31
  329. package/dist/src/utils/passkeys/getPasskeyOwnerAddress.js.map +0 -1
  330. package/dist/src/utils/passkeys/index.js +0 -20
  331. package/dist/src/utils/passkeys/index.js.map +0 -1
  332. package/dist/src/utils/passkeys/isSharedSigner.js +0 -26
  333. package/dist/src/utils/passkeys/isSharedSigner.js.map +0 -1
  334. package/dist/src/utils/provider.js +0 -12
  335. package/dist/src/utils/provider.js.map +0 -1
  336. package/dist/src/utils/safeVersions.js +0 -54
  337. package/dist/src/utils/safeVersions.js.map +0 -1
  338. package/dist/src/utils/signatures/SafeSignature.js +0 -42
  339. package/dist/src/utils/signatures/SafeSignature.js.map +0 -1
  340. package/dist/src/utils/signatures/index.js +0 -19
  341. package/dist/src/utils/signatures/index.js.map +0 -1
  342. package/dist/src/utils/signatures/utils.js +0 -174
  343. package/dist/src/utils/signatures/utils.js.map +0 -1
  344. package/dist/src/utils/transactions/SafeTransaction.js +0 -20
  345. package/dist/src/utils/transactions/SafeTransaction.js.map +0 -1
  346. package/dist/src/utils/transactions/gas.js +0 -398
  347. package/dist/src/utils/transactions/gas.js.map +0 -1
  348. package/dist/src/utils/transactions/index.js +0 -21
  349. package/dist/src/utils/transactions/index.js.map +0 -1
  350. package/dist/src/utils/transactions/types.js +0 -3
  351. package/dist/src/utils/transactions/types.js.map +0 -1
  352. package/dist/src/utils/transactions/utils.js +0 -217
  353. package/dist/src/utils/transactions/utils.js.map +0 -1
  354. package/dist/src/utils/types.js +0 -66
  355. package/dist/src/utils/types.js.map +0 -1
@@ -1,39 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,59 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,39 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,52 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,40 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,49 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,49 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,40 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,42 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,42 +0,0 @@
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_4_1 is the implementation specific to the SimulateTxAccessor contract version 1.4.1.
11
- *
12
- * This class specializes in handling interactions with the SimulateTxAccessor contract version 1.4.1 using Ethers.js v6.
13
- *
14
- * @extends SimulateTxAccessorBaseContract<SimulateTxAccessorContract_v1_4_1_Abi> - Inherits from SimulateTxAccessorBaseContract with ABI specific to SimulateTxAccessor contract version 1.4.1.
15
- * @implements SimulateTxAccessorContract_v1_4_1_Contract - Implements the interface specific to SimulateTxAccessor contract version 1.4.1.
16
- */
17
- class SimulateTxAccessorContract_v1_4_1 extends SimulateTxAccessorBaseContract_1.default {
18
- /**
19
- * Constructs an instance of SimulateTxAccessorContract_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 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.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.simulateTxAccessor_1_4_1_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_4_1;
42
- //# sourceMappingURL=SimulateTxAccessorContract_v1_4_1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimulateTxAccessorContract_v1_4_1.js","sourceRoot":"","sources":["../../../../../src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.ts"],"names":[],"mappings":";;;;;AAAA,2JAAkI;AAGlI,sDAK+B;AAC/B,iEAA6D;AAC7D;;;;;;;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"}