-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
127 changed files
with
74,319 additions
and
61,399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
skipFiles: [ | ||
'openZeppelin/Token.sol', | ||
'openZeppelin/IERC20.sol', | ||
'Factory.sol', | ||
'test/Testable.sol', | ||
'test/Timer.sol', | ||
'test/TestExecutable.sol', | ||
'interfaces/IBooth.sol', | ||
'interfaces/ICoord.sol', | ||
'interfaces/ICore.sol', | ||
'interfaces/IExe.sol', | ||
'interfaces/IProp.sol', | ||
'interfaces/IWeight.sol', | ||
'votingTypes/IVoteType.sol', | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.7; | ||
|
||
// import "./test/Timer.sol"; | ||
// import "./openZeppelin/Token.sol"; | ||
import "./Core.sol"; | ||
import "./Coordinator.sol"; | ||
import "./Executables.sol"; | ||
import "./Proposals.sol"; | ||
import "./VotingBooth.sol"; | ||
import "./VoteWeight.sol"; | ||
import "./votingTypes/SimpleMajority.sol"; | ||
|
||
contract Factory { | ||
|
||
struct Dao { | ||
address core; | ||
address coord; | ||
address exe; | ||
address prop; | ||
address booth; | ||
address weight; | ||
address simpleMaj; | ||
} | ||
|
||
Dao public dao; | ||
|
||
function deployBasicDao(address _timer) external { | ||
// address timer = address(new Timer()); | ||
// dao.govToken = address(new Token("Gov", "GOV")); | ||
// dao.repToken = address(new Token("Rep", "REP")); | ||
dao.core = address(new Core()); | ||
dao.coord = address(new Coordinator(dao.core, _timer)); | ||
dao.exe = address(new Executables(dao.core, _timer)); | ||
dao.prop = address(new Proposals(dao.core, _timer)); | ||
dao.booth = address(new VotingBooth(dao.core, _timer)); | ||
dao.weight = address(new VoteWeight(dao.core, _timer)); | ||
dao.simpleMaj = address(new SimpleMajority(dao.core, _timer)); | ||
} | ||
|
||
function initDao(address _gov, address _rep) external { | ||
Core(dao.core).initialise( | ||
dao.coord, | ||
dao.exe, | ||
dao.prop, | ||
dao.weight, | ||
dao.booth | ||
); | ||
|
||
VotingBooth(dao.booth).initialise( | ||
dao.simpleMaj, | ||
keccak256("VOTE_TYPE_SIMPLE_MAJORITY"), | ||
"bool" | ||
); | ||
|
||
VoteWeight(dao.weight).initialise( | ||
_gov, | ||
_rep | ||
); | ||
|
||
Proposals(dao.prop).initialise( | ||
15, | ||
86400, | ||
604800 | ||
); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
...@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
76,904 changes: 17,819 additions & 59,085 deletions
76,904
...nfo/1eee706ee39bb2600d5e7983337e2031.json → ...nfo/b23bf359bf282000089318300ee55fcb.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/contracts/openZeppelin/Initializable.sol/Initializable.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../build-info/1eee706ee39bb2600d5e7983337e2031.json" | ||
"buildInfo": "../../../build-info/b23bf359bf282000089318300ee55fcb.json" | ||
} |
Oops, something went wrong.