Skip to content

owl11/safe-lockdown-module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safe{Core} lockdown modeule

winner of second place prize in ETHGLobal 2023

This template is meant for testnet & quick experimentation only. You should write and audit your own deployment and testing scripts in production

Shipped by Panda Account Abstraction Initiative as part of 100.builders Program.

Pre-requisites

  • Install Foundry curl -L https://foundry.paradigm.xyz | bash
  • clone this repo git clone git@github.com:WillSchiller/safe-plugin-foundry-template.git
  • Run foundryup to update Foundry installation

Usage

Writing plugin

The plugin contract can be found in src/plugin.sol. It inherits from src.base.sol which provides the basic functionality to set metadata but the plugin logic itself is not implemented.

Testing plugin

The test file provides a setUp function which deploys a Safe, a Manager and a Register. It then enables manager module on the safe and adds the plugin on the Manager and Register so you can start testing your plugin logic without worrying about the deployment & enabling. run the tests with forge test -vvvv.

Deploying the plugin

The deployment script can be found in script/Deploy.s.sol. The functionality is the same as the test setUp only it will deploy the contracts to the network you specify in the .env file. Run the script with source .env && forge script script/Deploy.s.sol:Deploy -vvvv --fork-url $GOERLI_RPC_URL --broadcast.

About

safe-lockdown-module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%