first commit

This commit is contained in:
mingda
2020-06-26 00:31:25 +08:00
commit c72bcae8e9
59 changed files with 21076 additions and 0 deletions

27
migrations/2_deploy.js Normal file
View File

@@ -0,0 +1,27 @@
const DecimalMath = artifacts.require("DecimalMath");
const SafeERC20 = artifacts.require("SafeERC20");
const DODOMath = artifacts.require("DODOMath");
const DODO = artifacts.require("DODO");
const DODOZoo = artifacts.require("DODOZoo");
module.exports = async (deployer, network) => {
const deployDODO = async () => {
await deployer.deploy(DecimalMath);
await deployer.deploy(SafeERC20);
await deployer.deploy(DODOMath);
await deployer.link(SafeERC20, DODO);
await deployer.link(DecimalMath, DODO);
await deployer.link(DODOMath, DODO);
await deployer.deploy(DODO);
await deployer.deploy(DODOZoo);
};
if (network == "production") {
} else if (network == "kovan") {
} else {
// for development & test
await deployDODO();
}
};