-
Notifications
You must be signed in to change notification settings - Fork 100
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
1 parent
19fae5f
commit 66c4fab
Showing
8 changed files
with
112 additions
and
39 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,8 @@ | ||
contract DSAuthFactory { | ||
function buildDSBasicAuthorityFactory() returns (DSBasicAuthority) { | ||
var c = new DSBasicAuthority(); | ||
c.updateAuthority(msg.sender, false); | ||
return c; | ||
|
||
} | ||
} |
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,21 @@ | ||
import 'data/balance_db.sol'; | ||
import 'data/approval_db.sol'; | ||
import 'data/map.sol'; | ||
|
||
contract DSDataFactory { | ||
function buildDSBalanceDB() returns (DSBalanceDB) { | ||
var c = new DSBalanceDB(); | ||
c.updateAuthority(msg.sender, false); | ||
return c; | ||
} | ||
function buildDSApprovalDB() returns (DSApprovalDB) { | ||
var c = new DSApprovalDB(); | ||
c.updateAuthority(msg.sender, false); | ||
return c; | ||
} | ||
function buildDSMap() returns (DSMap) { | ||
var c = new DSMap(); | ||
c.updateAuthority(msg.sender, false); | ||
return c; | ||
} | ||
} |
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 was deleted.
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,12 +1,11 @@ | ||
import 'factory/factory.sol'; | ||
import 'dapple/test.sol'; | ||
|
||
contract Factory1Test is Test { | ||
contract FactoryTest is Test { | ||
DSFactory f; | ||
function setUp() { | ||
f = new DSFactory1(); | ||
} | ||
function testCreateCostMain() logs_gas() { | ||
f = new DSFactory1(); | ||
f = (new DSFactoryTestFactory()).buildFactory(); | ||
} | ||
} |
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,10 @@ | ||
import 'gov/easy_multisig.sol'; | ||
|
||
contract DSMultisigFactory { | ||
function buildDSEasyMultisig( uint n, uint m, uint expiration ) returns (DSEasyMultisig) | ||
{ | ||
var c = new DSEasyMultisig( n, m, expiration ); | ||
c.updateAuthority(msg.sender, false); | ||
return c; | ||
} | ||
} |
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,14 @@ | ||
contract DSTokenFactory { | ||
function buildDSTokenController( DSBalanceDB bal_db, DSApprovalDB appr_db ) | ||
returns (DSTokenController) | ||
{ | ||
var c = new DSTokenController( bal_db, appr_db ); | ||
c.updateAuthority(msg.sender, false); | ||
return c; | ||
} | ||
function buildDSTokenFrontend( DSTokenController cont ) returns (DSTokenFrontend) { | ||
var c = new DSTokenFrontend( cont ); | ||
c.updateAuthority(msg.sender, false); | ||
return c; | ||
} | ||
} |
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