Skip to content

parseb/contracts

 
 

Repository files navigation

Āut Labs - Smart Contracts

Āut is an expandable protocol for Role-based Membership in Web3 Communities & DAOs.

DAOs can be much more than Smart Treasuries, Āut introduces native Roles & Interactions directly at contract level, to power the 2nd generation of DAOs. The DAO 2.0s, or a Coordination Renaissance.

To read more about Āut, visit our Docs. Below, you'll find a simple walkthrough to get started using Āut's Smart Contracts.

Setup

  1. Create .env file and put your testing private key there

    PRIVATE_KEY='your_private_key'
    
  2. Install dependencies npm install

  3. Compile the smart contracts npm run compile

  4. In a separate terminal (optional) npx hardhat node

  5. Run tests (optional) npm run test

You're ready to go! 🚀🚀🚀

Recommendation: If you're building on top of the Aut Labs Contracts, we strongly recommend running them locally and testing on Hardhat Network/Ganache Network before moving forward with a testnet deployment.


Resources: 🍫 🍫 🍫 Ganachere sources: https://trufflesuite.com/docs/ganache/ 🎩 🎩 🎩 Hardhat sources: https://hardhat.org/tutorial

Deployments (locally or not)

  1. Select your desired network in hardhat.config.json under default network
  2. Run npm run deployAll and store the output addresses
  3. If you need to install the Plugin Definitions, copy the PluginRegistry address and put it in ./scripts/addPluginDefinitions.js script
  4. Run npm run addPluginDefinitions

Tip: If you're expanding the DAO Types that the product supports, for testing purposes, you can add it to /scripts/deployDAOTypes.js

  const YourMembershipChecker = await hre.ethers.getContractFactory("YourMembershipChecker");
  const yourMembershipChecker = await YourMembershipChecker.deploy();
  await yourMembershipChecker.deployed();
  
  await (await daoTypes.addNewMembershipChecker(yourMembershipChecker.address)).wait();

Happy hacking on āut contracts 🤓 🤓 🤓 !!

Useful commands

npm run compile
npm run test
npx hardhat clean
npx hardhat accounts
npx hardhat compile
npx hardhat node
npx hardhat help

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 50.6%
  • Solidity 49.4%