From 9ac635d794f3aaa0df0abe2419dcdaffdc9d6767 Mon Sep 17 00:00:00 2001 From: yoanslvy <97676023+yoanslvy@users.noreply.github.com> Date: Tue, 29 Oct 2024 10:29:15 +0100 Subject: [PATCH] feat: update 7579 doc --- .../v0_1/how-to/accounts/use-erc7579-account.mdx | 6 ------ docs/snippets/erc7579/erc7579.ts | 6 ++++-- docs/snippets/v0_1/erc7579/accountId.ts | 6 ++++-- docs/snippets/v0_1/erc7579/erc7579.ts | 6 ++++-- docs/snippets/v0_1/erc7579/installModule.ts | 6 ++++-- docs/snippets/v0_1/erc7579/isModuleInstalled.ts | 6 ++++-- docs/snippets/v0_1/erc7579/supportsExecutionMode.ts | 6 ++++-- docs/snippets/v0_1/erc7579/supportsModule.ts | 6 ++++-- docs/snippets/v0_1/erc7579/uninstallModule.ts | 6 ++++-- 9 files changed, 32 insertions(+), 22 deletions(-) diff --git a/docs/pages/permissionless/v0_1/how-to/accounts/use-erc7579-account.mdx b/docs/pages/permissionless/v0_1/how-to/accounts/use-erc7579-account.mdx index 002f610d..5f283771 100644 --- a/docs/pages/permissionless/v0_1/how-to/accounts/use-erc7579-account.mdx +++ b/docs/pages/permissionless/v0_1/how-to/accounts/use-erc7579-account.mdx @@ -45,12 +45,6 @@ You can also pass an `address` to use an already created SafeAccount. :::warning The Safe account requires a new `safe4337ModuleAddress` & `erc7579LaunchpadAddress` for it to be 7579 compatible. ::: -:::warning -Addresses on Sepolia are `0x3Fdb5BC686e861480ef99A6E3FaAe03c0b9F32e2` and `0xEBe001b3D534B9B6E2500FB78E67a1A137f561CE` respectively. -::: -:::warning -These contracts are not audited and are not meant to be used in production. Use at your own risk. Keep an eye on the Safe & Rhinestone team for updates. -::: ### Create the smart account client and extend it with the ERC7579 actions diff --git a/docs/snippets/erc7579/erc7579.ts b/docs/snippets/erc7579/erc7579.ts index 5ca6648d..9ed35239 100644 --- a/docs/snippets/erc7579/erc7579.ts +++ b/docs/snippets/erc7579/erc7579.ts @@ -36,8 +36,10 @@ const safeAccount = await toSafeSmartAccount({ address: entryPoint07Address, version: "0.7", }, - safe4337ModuleAddress: "0x3Fdb5BC686e861480ef99A6E3FaAe03c0b9F32e2", // These are not meant to be used in production as of now. - erc7579LaunchpadAddress: "0xEBe001b3D534B9B6E2500FB78E67a1A137f561CE", // These are not meant to be used in production as of now. + safe4337ModuleAddress: "0x7579EE8307284F293B1927136486880611F20002", + erc7579LaunchpadAddress: "0x7579011aB74c46090561ea277Ba79D510c6C00ff", + attesters: ["0x000000333034E9f539ce08819E12c1b8Cb29084d"], + attestersThreshold: 1 }) // [!endregion smartAccount] diff --git a/docs/snippets/v0_1/erc7579/accountId.ts b/docs/snippets/v0_1/erc7579/accountId.ts index 3ac042a3..f1458772 100644 --- a/docs/snippets/v0_1/erc7579/accountId.ts +++ b/docs/snippets/v0_1/erc7579/accountId.ts @@ -22,8 +22,10 @@ const safeAccount = await signerToSafeSmartAccount(publicClient, { signer, safeVersion: "1.4.1", entryPoint: ENTRYPOINT_ADDRESS_V07, - safe4337ModuleAddress: "0x3Fdb5BC686e861480ef99A6E3FaAe03c0b9F32e2", // These are not meant to be used in production as of now. - erc7579LaunchpadAddress: "0xEBe001b3D534B9B6E2500FB78E67a1A137f561CE", // These are not meant to be used in production as of now. + safe4337ModuleAddress: "0x7579EE8307284F293B1927136486880611F20002", + erc7579LaunchpadAddress: "0x7579011aB74c46090561ea277Ba79D510c6C00ff", + attesters: ["0x000000333034E9f539ce08819E12c1b8Cb29084d"], + attestersThreshold: 1 }) // Extend the client with the ERC7579 actions diff --git a/docs/snippets/v0_1/erc7579/erc7579.ts b/docs/snippets/v0_1/erc7579/erc7579.ts index 91b2137e..c5bd0b3a 100644 --- a/docs/snippets/v0_1/erc7579/erc7579.ts +++ b/docs/snippets/v0_1/erc7579/erc7579.ts @@ -29,8 +29,10 @@ const safeAccount = await signerToSafeSmartAccount(publicClient, { signer, safeVersion: "1.4.1", entryPoint: ENTRYPOINT_ADDRESS_V07, - safe4337ModuleAddress: "0x3Fdb5BC686e861480ef99A6E3FaAe03c0b9F32e2", // These are not meant to be used in production as of now. - erc7579LaunchpadAddress: "0xEBe001b3D534B9B6E2500FB78E67a1A137f561CE", // These are not meant to be used in production as of now. + safe4337ModuleAddress: "0x7579EE8307284F293B1927136486880611F20002", + erc7579LaunchpadAddress: "0x7579011aB74c46090561ea277Ba79D510c6C00ff", + attesters: ["0x000000333034E9f539ce08819E12c1b8Cb29084d"], + attestersThreshold: 1 }) // [!endregion smartAccount] diff --git a/docs/snippets/v0_1/erc7579/installModule.ts b/docs/snippets/v0_1/erc7579/installModule.ts index 9b81d38c..f8d2a0fe 100644 --- a/docs/snippets/v0_1/erc7579/installModule.ts +++ b/docs/snippets/v0_1/erc7579/installModule.ts @@ -22,8 +22,10 @@ const safeAccount = await signerToSafeSmartAccount(publicClient, { signer, safeVersion: "1.4.1", entryPoint: ENTRYPOINT_ADDRESS_V07, - safe4337ModuleAddress: "0x3Fdb5BC686e861480ef99A6E3FaAe03c0b9F32e2", // These are not meant to be used in production as of now. - erc7579LaunchpadAddress: "0xEBe001b3D534B9B6E2500FB78E67a1A137f561CE", // These are not meant to be used in production as of now. + safe4337ModuleAddress: "0x7579EE8307284F293B1927136486880611F20002", + erc7579LaunchpadAddress: "0x7579011aB74c46090561ea277Ba79D510c6C00ff", + attesters: ["0x000000333034E9f539ce08819E12c1b8Cb29084d"], + attestersThreshold: 1 }) // Extend the client with the ERC7579 actions diff --git a/docs/snippets/v0_1/erc7579/isModuleInstalled.ts b/docs/snippets/v0_1/erc7579/isModuleInstalled.ts index 61f44f03..7a67ac5b 100644 --- a/docs/snippets/v0_1/erc7579/isModuleInstalled.ts +++ b/docs/snippets/v0_1/erc7579/isModuleInstalled.ts @@ -22,8 +22,10 @@ const safeAccount = await signerToSafeSmartAccount(publicClient, { signer, safeVersion: "1.4.1", entryPoint: ENTRYPOINT_ADDRESS_V07, - safe4337ModuleAddress: "0x3Fdb5BC686e861480ef99A6E3FaAe03c0b9F32e2", // These are not meant to be used in production as of now. - erc7579LaunchpadAddress: "0xEBe001b3D534B9B6E2500FB78E67a1A137f561CE", // These are not meant to be used in production as of now. + safe4337ModuleAddress: "0x7579EE8307284F293B1927136486880611F20002", + erc7579LaunchpadAddress: "0x7579011aB74c46090561ea277Ba79D510c6C00ff", + attesters: ["0x000000333034E9f539ce08819E12c1b8Cb29084d"], + attestersThreshold: 1 }) // Extend the client with the ERC7579 actions diff --git a/docs/snippets/v0_1/erc7579/supportsExecutionMode.ts b/docs/snippets/v0_1/erc7579/supportsExecutionMode.ts index aab9fddc..80b73b06 100644 --- a/docs/snippets/v0_1/erc7579/supportsExecutionMode.ts +++ b/docs/snippets/v0_1/erc7579/supportsExecutionMode.ts @@ -22,8 +22,10 @@ const safeAccount = await signerToSafeSmartAccount(publicClient, { signer, safeVersion: "1.4.1", entryPoint: ENTRYPOINT_ADDRESS_V07, - safe4337ModuleAddress: "0x3Fdb5BC686e861480ef99A6E3FaAe03c0b9F32e2", // These are not meant to be used in production as of now. - erc7579LaunchpadAddress: "0xEBe001b3D534B9B6E2500FB78E67a1A137f561CE", // These are not meant to be used in production as of now. + safe4337ModuleAddress: "0x7579EE8307284F293B1927136486880611F20002", + erc7579LaunchpadAddress: "0x7579011aB74c46090561ea277Ba79D510c6C00ff", + attesters: ["0x000000333034E9f539ce08819E12c1b8Cb29084d"], + attestersThreshold: 1 }) // Extend the client with the ERC7579 actions diff --git a/docs/snippets/v0_1/erc7579/supportsModule.ts b/docs/snippets/v0_1/erc7579/supportsModule.ts index df81533f..7c2b2100 100644 --- a/docs/snippets/v0_1/erc7579/supportsModule.ts +++ b/docs/snippets/v0_1/erc7579/supportsModule.ts @@ -22,8 +22,10 @@ const safeAccount = await signerToSafeSmartAccount(publicClient, { signer, safeVersion: "1.4.1", entryPoint: ENTRYPOINT_ADDRESS_V07, - safe4337ModuleAddress: "0x3Fdb5BC686e861480ef99A6E3FaAe03c0b9F32e2", // These are not meant to be used in production as of now. - erc7579LaunchpadAddress: "0xEBe001b3D534B9B6E2500FB78E67a1A137f561CE", // These are not meant to be used in production as of now. + safe4337ModuleAddress: "0x7579EE8307284F293B1927136486880611F20002", + erc7579LaunchpadAddress: "0x7579011aB74c46090561ea277Ba79D510c6C00ff", + attesters: ["0x000000333034E9f539ce08819E12c1b8Cb29084d"], + attestersThreshold: 1 }) // Extend the client with the ERC7579 actions diff --git a/docs/snippets/v0_1/erc7579/uninstallModule.ts b/docs/snippets/v0_1/erc7579/uninstallModule.ts index e1f8ade4..8a5c2d7a 100644 --- a/docs/snippets/v0_1/erc7579/uninstallModule.ts +++ b/docs/snippets/v0_1/erc7579/uninstallModule.ts @@ -22,8 +22,10 @@ const safeAccount = await signerToSafeSmartAccount(publicClient, { signer, safeVersion: "1.4.1", entryPoint: ENTRYPOINT_ADDRESS_V07, - safe4337ModuleAddress: "0x3Fdb5BC686e861480ef99A6E3FaAe03c0b9F32e2", // These are not meant to be used in production as of now. - erc7579LaunchpadAddress: "0xEBe001b3D534B9B6E2500FB78E67a1A137f561CE", // These are not meant to be used in production as of now. + safe4337ModuleAddress: "0x7579EE8307284F293B1927136486880611F20002", + erc7579LaunchpadAddress: "0x7579011aB74c46090561ea277Ba79D510c6C00ff", + attesters: ["0x000000333034E9f539ce08819E12c1b8Cb29084d"], + attestersThreshold: 1 }) // Extend the client with the ERC7579 actions