From 78e3e1336841c643f395b869792ccb1d2f17899f Mon Sep 17 00:00:00 2001 From: Tanay Pant Date: Thu, 13 Jun 2024 08:41:20 +0200 Subject: [PATCH 1/4] improvement: refactor the safe modules page --- pages/advanced/smart-account-modules.mdx | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/pages/advanced/smart-account-modules.mdx b/pages/advanced/smart-account-modules.mdx index ac014c96..a15986b7 100644 --- a/pages/advanced/smart-account-modules.mdx +++ b/pages/advanced/smart-account-modules.mdx @@ -8,22 +8,26 @@ Safe Modules add custom features to Safe contracts. They are smart contracts tha Safe Modules can include daily spending allowances, amounts that can be spent without the approval of other owners, recurring transactions modules, and standing orders performed on a recurring date. For example, paying your rent or social recovery modules may allow you to recover a Safe if you lose access to owner accounts. + + Safe Modules can be a security risk since they can execute arbitrary + transactions. Only add trusted and audited modules to a Safe. A malicious + module can take over a Safe. + + ![diagram-safe-modules](../../assets/diagram-safe-modules.png) +## Official Safe Modules + +These are audited Safe Modules built and maintained by the Safe team. The [safe-modules](https://github.com/safe-global/safe-modules) repository contains the collection of the Official Safe Modules. + +For example, the 4337 module, the allowance module, and the passkeys module. + ## How to create a Safe Module A great way to understand how Safe Modules work is by creating one. An excellent place to start is [Safe Modding 101: Create your own Safe Module](https://www.youTube.com/watch?v=nmDYc9PlAic). -## Examples - -1. [Safe Modules](https://github.com/safe-global/safe-modules) -2. [Zodiac-compliant modules](https://zodiac.wiki/index.php%3Ftitle=Introduction:_Zodiac_Protocol.html#Modules) -3. [Pimlico](https://docs.pimlico.io/permissionless/how-to/accounts/use-safe-account) +## Other examples - - Safe Modules can be a security risk since they can execute arbitrary - transactions. Only add trusted and audited modules to a Safe. A malicious - module can take over a Safe. - +1. [Zodiac-compliant modules](https://zodiac.wiki/index.php%3Ftitle=Introduction:_Zodiac_Protocol.html#Modules) From 45d6a6ed823bd959fcae0d54d78572283e4c722a Mon Sep 17 00:00:00 2001 From: Tanay Pant Date: Thu, 13 Jun 2024 09:07:18 +0200 Subject: [PATCH 2/4] fix: minor edit --- pages/advanced/smart-account-modules.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/advanced/smart-account-modules.mdx b/pages/advanced/smart-account-modules.mdx index a15986b7..58127043 100644 --- a/pages/advanced/smart-account-modules.mdx +++ b/pages/advanced/smart-account-modules.mdx @@ -22,12 +22,12 @@ These are audited Safe Modules built and maintained by the Safe team. The [safe- For example, the 4337 module, the allowance module, and the passkeys module. +## Community Safe Modules + +1. [Zodiac-compliant modules](https://zodiac.wiki/index.php%3Ftitle=Introduction:_Zodiac_Protocol.html#Modules) + ## How to create a Safe Module A great way to understand how Safe Modules work is by creating one. An excellent place to start is [Safe Modding 101: Create your own Safe Module](https://www.youTube.com/watch?v=nmDYc9PlAic). - -## Other examples - -1. [Zodiac-compliant modules](https://zodiac.wiki/index.php%3Ftitle=Introduction:_Zodiac_Protocol.html#Modules) From ae2df18b1ead3e961a30cf5e6dbe8fa7f5d7cdf0 Mon Sep 17 00:00:00 2001 From: Tanay Pant Date: Thu, 13 Jun 2024 09:50:36 +0200 Subject: [PATCH 3/4] fix: minor edit --- pages/advanced/smart-account-modules.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/advanced/smart-account-modules.mdx b/pages/advanced/smart-account-modules.mdx index 58127043..0e9191c5 100644 --- a/pages/advanced/smart-account-modules.mdx +++ b/pages/advanced/smart-account-modules.mdx @@ -16,13 +16,15 @@ Safe Modules can include daily spending allowances, amounts that can be spent wi ![diagram-safe-modules](../../assets/diagram-safe-modules.png) -## Official Safe Modules +## Examples + +### Official Safe Modules These are audited Safe Modules built and maintained by the Safe team. The [safe-modules](https://github.com/safe-global/safe-modules) repository contains the collection of the Official Safe Modules. For example, the 4337 module, the allowance module, and the passkeys module. -## Community Safe Modules +### Community Safe Modules 1. [Zodiac-compliant modules](https://zodiac.wiki/index.php%3Ftitle=Introduction:_Zodiac_Protocol.html#Modules) From eb4a5e0f15ba98f6a86cdfdbd38f60030cd229c5 Mon Sep 17 00:00:00 2001 From: Tanay Pant Date: Thu, 13 Jun 2024 10:48:49 +0200 Subject: [PATCH 4/4] fix: updates from feedback --- pages/advanced/smart-account-modules.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/advanced/smart-account-modules.mdx b/pages/advanced/smart-account-modules.mdx index 0e9191c5..e96b5345 100644 --- a/pages/advanced/smart-account-modules.mdx +++ b/pages/advanced/smart-account-modules.mdx @@ -20,9 +20,10 @@ Safe Modules can include daily spending allowances, amounts that can be spent wi ### Official Safe Modules -These are audited Safe Modules built and maintained by the Safe team. The [safe-modules](https://github.com/safe-global/safe-modules) repository contains the collection of the Official Safe Modules. - -For example, the 4337 module, the allowance module, and the passkeys module. +These are audited Safe Modules built and maintained by the Safe team. The [safe-modules](https://github.com/safe-global/safe-modules) repository contains the collection of the Official Safe Modules. Currently, there are three official Safe Modules: +- 4337 module +- Allowance module +- Passkeys module ### Community Safe Modules