Skip to content

Commit

Permalink
Merge pull request #47 from yoanslvy/fix/rhinestoneContracts
Browse files Browse the repository at this point in the history
feat: update 7579 doc
  • Loading branch information
plusminushalf authored Nov 6, 2024
2 parents 2eab525 + 9ac635d commit d11ff50
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 4 additions & 2 deletions docs/snippets/erc7579/erc7579.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
6 changes: 4 additions & 2 deletions docs/snippets/v0_1/erc7579/accountId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions docs/snippets/v0_1/erc7579/erc7579.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
6 changes: 4 additions & 2 deletions docs/snippets/v0_1/erc7579/installModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions docs/snippets/v0_1/erc7579/isModuleInstalled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions docs/snippets/v0_1/erc7579/supportsExecutionMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions docs/snippets/v0_1/erc7579/supportsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions docs/snippets/v0_1/erc7579/uninstallModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d11ff50

Please sign in to comment.