Giter Club home page Giter Club logo

custom-fractal-proposal's Introduction

Custom Fractal Proposal

This codebase implements a script which crafts and submits a custom proposal to a Fractal Safe.

Installation

  1. Use correct Node version: nvm use
  2. Install packages: npm install
  3. Set up config: cp .env.example .env
    1. Edit your .env appropriately
    2. Create a file for the proposal's description (markdown supported) at src/proposal-assets/proposal-description.md (or wherever you specify in the .env's PROPOSAL_DESCRIPTION_FILE parameter)

Usage

IMPORTANT! Configure your environment using the .env file before running the script.

Run the script with npx ts-node src

Intention

This script will create and post a proposal to a Fractal Safe. The proposal includes a few transactions which do the following things:

  • Adds a text record to the parent Safe's ENS name, with a key of daorequirements and a value of ipfs://[hash].
  • Deploys and configures a new instance of the FractalModule, which enables parent Safes to clawback funds from child Safes.
  • Deploys and configures a new instance of the RealityModuleETH, which enables Snapshot voting consensus and human-based governance arbitration.
  • Deploys a new child Safe, which has multisig signers.
  • Enables the new Safe modules on this newly deployed child Safe.
  • Creates the on-chain relationship between the Parent and Child Safes, for visual representation in Fractal's UI.
  • Transfers assets from the parent DAO to the new child Safe.

Testing

First and foremost, study the .env.example and make sure you understand what each variable is for.

Then, create a Fractal Safe on Sepolia and prepare it for testing:

  • It needs "ERC20 Token Voting" governance.
  • You should make sure to delegate your voting tokens to yourself, so you can vote on the submitted proposal.
  • Transfer a "Name wrapped" ENS record to this testing Fractal Safe.
    • The proposal will be setting a text record on this ENS name.
  • Transfer some ERC20 assets to the testing Fractal Safe.
    • The proposal will be transferring some of these assets to the new child Safe.

Finally, create an .env file, copy the contents from .env.example into it, and adjust all of the variables appropriately as per how you set up your testing Fractal Safe.

custom-fractal-proposal's People

Contributors

adamgall avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.