Git Product home page Git Product logo

osx-viem-create-dao's Introduction

Create DAO script

This script allows to create a DAO in any supported network. The script is controlled via .env file. Bare in mind that this is a simple script and it is not intended to be used in production.

The created DAOs should be visible in aragon subgraphs with the following query:

{
  dao {
    id
    subdomain
  }
}

The subgraph is available at the following URL, remember to replace the network in the URL with the desired network.

https://subgraph.satsuma-prod.com/aragon/osx-{YOUR-NETWORK}/playground

To install dependencies:

bun install

To run the script:

bun create-dao

Environment variables are in .env.example file. Copy it to .env and fill in the values.

# Please delete all the unused variables
NETWORK= # Check SupportedNetwoks
PROTOCOL_VERSION= # Default: v1.0.0 or v1.3.0
PRIVATE_KEY= # Private key of the deployer, mandatory
PINATA_API_KEY= # Pinata API key, mandatory
DAO_SUBDOMAIN= # Subdomain of the DAO, mandatory, must be unique
DAO_URI= # URI of the DAO, optional, Default: ""
DAO_TRUSTED_FORWARDER= # Trusted forwarder, optional, Default: address(0)
##### METADATA #####
DAO_NAME= # DAO name, optional, Default: "Test DAO #{Random Number}"
DAO_DESCRIPTION= # DAO description, optional, Default: "Test DAO description"
DAO_AVATAR= # DAO avatar, optional, Default: ""

##### PLUGINS #####
# One of them must be true
INSTALL_MULTISIG=
INSTALL_TOKEN_VOTING=


##### MULTISIG #####
MULTISIG_ADDRESSES= # Multisig addresses, comma separated, mandatory
MULTISIG_MIN_APPROVALS= # Minimum approvals, optional, Default: ceil(Addresses.length)
MULTISIG_ONLY_LISTED= # Only listed addresses can approve, optional, Default: false


##### TOKEN VOTING #####
# Standard = 0
# EarlyExecution = 1
# VoteReplacement = 2
VOTING_MODE=0 # Default: 0
# 0 => 0%
# 500000 => 50%
# 1000000 => 100%
SUPPORT_THRESHOLD= # between 0 and 1000000
MIN_PARTICIPATION= # Minimim token held to be able to vote
MIN_DURATION= # in seconds, minimum is 3600, default is 3600
MIN_PROPOSER_VOTING_POWER= # Minimum voting power to create a proposal
TOKEN_ADDRESS= # Token address, zero address for new token
TOKEN_NAME= # Token name of the new token if it is created or wrapped
TOKEN_SYMBOL= # Token symbol if the token is created or wrapped
TOKEN_RECEIVERS= # Token receivers comma separated, address1,address2,address3
TOKEN_AMOUNTS= # Token amounts comma separated, amount1,amount2,amount3

osx-viem-create-dao's People

Contributors

josemarinas avatar

Watchers

 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.