This repository has been deprecated.
Please use this repository for the currently supported Fractal smart contracts:
https://github.com/decent-dao/fractal-contracts
The Gnosis Wrapper Module utilizes serves as a link between the Fractal ecosystem and a Gnosis Safe. This contract inherits from ModuleBase so that the Fractal Access Control scheme can be used if necessary.
The Gnosis Wrapper Factory Contract contains the methods needed to deploy a proxy that is pointed to an implementation on chain. This contract inherits from the ModuleBaseFactory interface so that is compatible with the metaFactory contract in the MVD.
Clone the repository:
git clone ...Lookup the recommended Node version to use in the .nvmrc file and install and use the correct version:
nvm install
nvm useInstall necessary dependencies:
npm installAdd .env values replacing the private key and provider values for desired networks
cp .env.example .envCompile contracts to create typechain files:
npm run compileRun the tests
npm run testnpx hardhat deploy --network <network>To deploy the base Fractal contracts open a terminal and run:
npx hardhat nodeThis will deploy the following contracts and log the addresses they were deployed to:
- GnosisWrapperFactory
- GnosisWrapper Implementation