-
Notifications
You must be signed in to change notification settings - Fork 0
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
13 changed files
with
93 additions
and
96 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 |
---|---|---|
|
@@ -9,3 +9,4 @@ typechain-types | |
cache | ||
artifacts | ||
|
||
deployments/ |
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
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
File renamed without changes.
File renamed without changes.
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,2 +1,2 @@ | ||
1. `nvm use 18.10.0` | ||
2. First run local node with `npx hardhat node` then deploy with `npx hardhat run scripts/deploy-dao-factory.ts --network local` | ||
2. First run local node with `npx hardhat node` then deploy with `npx hardhat run scripts/deploy-dao-factories.ts --network local` |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { ethers, network } from 'hardhat'; | ||
import * as fs from 'fs'; | ||
|
||
async function main() { | ||
const currentNetwork = network.name; | ||
|
||
const erc20DaoFactory = await ethers.deployContract('ERC20DaoFactory', []); | ||
await erc20DaoFactory.deployed(); | ||
const erc20DaoFactoryAddress = erc20DaoFactory.address; | ||
|
||
const nftDaoFactory = await ethers.deployContract('NFTDaoFactory', []); | ||
await nftDaoFactory.deployed(); | ||
const nftDaoFactoryAddress = nftDaoFactory.address; | ||
|
||
if (!fs.existsSync('deployments')) { | ||
fs.mkdirSync('deployments'); | ||
} | ||
fs.writeFileSync( | ||
`deployments/dao-factories-${currentNetwork}.json`, | ||
JSON.stringify({ | ||
erc20DaoFactoryAddress: erc20DaoFactoryAddress, | ||
nftDaoFactoryAddress: nftDaoFactoryAddress, | ||
}, null, 2)); | ||
} | ||
|
||
main().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { ethers, network } from 'hardhat'; | ||
import * as fs from 'fs'; | ||
import { parseUnits } from 'ethers/lib/utils'; | ||
import { BigNumber } from 'ethers'; | ||
|
||
async function main() { | ||
const currentNetwork = network.name; | ||
|
||
const erc20Development = await ethers.deployContract('ERC20Development', [ | ||
"My token","TOK", parseUnits("10000", 21), | ||
]); | ||
await erc20Development.deployed(); | ||
|
||
const erc721Development = await ethers.deployContract('ERC721Development', []); | ||
|
||
if (!fs.existsSync('deployments')) { | ||
fs.mkdirSync('deployments'); | ||
} | ||
await erc721Development.deployed(); | ||
fs.writeFileSync( | ||
`deployments/dev-tokens-${currentNetwork}.json`, | ||
JSON.stringify({ | ||
erc20Address: erc20Development.address, | ||
nftAddress: erc721Development.address, | ||
}, null, 2)); | ||
} | ||
main().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); |
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