/dao2dao

DAO2DAO prototype code

Primary LanguageJavaScript

🤖 PrimeDAO D2D Smart Contracts

License: GPL v3

This repo contains the smart contracts for the DAO2DAO research project prototype, the mission of which is to facilitate trustless, on-chain collaborations between DAOs. A technical writeup of the prototype can be found here.

/contracts/ is organized as follows:

  • /contracts/schemes/CtfTreasury: contract for DAOs and non-ERC1155Reciever contracts to interface with the Gnosis Conditional Tokens Framework. Contract also holds Conditional Tokens for these contracts.
  • /contracts/Oracle: automated Oracle contract for registering and checking conditions created via the CtfTreasury.

Development

To install node modules

npm i

To compile contracts

truffle compile

To run tests

npm run test

To run coverage

npm run coverage