-
Notifications
You must be signed in to change notification settings - Fork 49
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
27 changed files
with
240 additions
and
806 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
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,7 +1,7 @@ | ||
node_modules | ||
yarn-error.log | ||
|
||
#Buidler files | ||
# Hardhat files | ||
abi | ||
artifacts | ||
cache | ||
|
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,28 @@ | ||
import { HardhatUserConfig } from 'hardhat/config' | ||
|
||
import '@nomiclabs/hardhat-ethers' | ||
import '@nomiclabs/hardhat-waffle' | ||
import 'hardhat-abi-exporter' | ||
import 'hardhat-typechain' | ||
import 'solidity-coverage' | ||
|
||
const ETH_KEY = process.env.ETH_KEY | ||
const accounts = ETH_KEY ? ETH_KEY.split(',') : [] | ||
|
||
const config: HardhatUserConfig = { | ||
solidity: { | ||
version: '0.6.8', | ||
}, | ||
networks: { | ||
coverage: { | ||
url: 'http://localhost:8555', | ||
allowUnlimitedContractSize: true, | ||
}, | ||
rinkeby: { | ||
url: 'https://rinkeby.eth.aragon.network', | ||
accounts, | ||
}, | ||
}, | ||
} | ||
|
||
export default config |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { ethers } from '@nomiclabs/buidler' | ||
import { Erc3000ExecutorMock, Erc3000ExecutorMockFactory } from '../typechain' | ||
import { ethers } from 'hardhat' | ||
import { ERC3000ExecutorMock, ERC3000ExecutorMock__factory } from '../typechain' | ||
|
||
describe('ERC3000 Executor', function () { | ||
let erc3kExec: Erc3000ExecutorMock | ||
let erc3kExec: ERC3000ExecutorMock | ||
|
||
beforeEach(async () => { | ||
const ERC3000Executor = (await ethers.getContractFactory( | ||
'ERC3000ExecutorMock' | ||
)) as Erc3000ExecutorMockFactory | ||
)) as ERC3000ExecutorMock__factory | ||
erc3kExec = await ERC3000Executor.deploy() | ||
}) | ||
}) |
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,13 +1,13 @@ | ||
import { ethers } from '@nomiclabs/buidler' | ||
import { Erc3000Mock, Erc3000MockFactory } from '../typechain' | ||
import { ethers } from 'hardhat' | ||
import { ERC3000Mock, ERC3000Mock__factory } from '../typechain' | ||
|
||
describe('ERC3000', function () { | ||
let erc3k: Erc3000Mock | ||
let erc3k: ERC3000Mock | ||
|
||
beforeEach(async () => { | ||
const ERC3000 = (await ethers.getContractFactory( | ||
'ERC3000Mock' | ||
)) as Erc3000MockFactory | ||
)) as ERC3000Mock__factory | ||
erc3k = await ERC3000.deploy() | ||
}) | ||
}) |
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 |
---|---|---|
|
@@ -5,3 +5,7 @@ yarn-error.log | |
cache | ||
artifacts | ||
typechain | ||
|
||
|
||
coverage/ | ||
coverage.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,21 +1,19 @@ | ||
import { HardhatUserConfig, task } from 'hardhat/config' | ||
import { HardhatUserConfig } from 'hardhat/config' | ||
|
||
import '@nomiclabs/hardhat-ethers' | ||
import '@nomiclabs/hardhat-waffle' | ||
import 'hardhat-typechain' | ||
|
||
task('accounts', 'Prints the list of accounts', async (_, { ethers }) => { | ||
const accounts = await ethers.getSigners() | ||
|
||
for (const account of accounts) { | ||
console.log(await account.getAddress()) | ||
} | ||
}) | ||
import 'solidity-coverage' | ||
|
||
const config: HardhatUserConfig = { | ||
solidity: { | ||
version: '0.6.8', | ||
}, | ||
networks: { | ||
coverage: { | ||
url: 'http://localhost:8555', | ||
}, | ||
}, | ||
} | ||
|
||
export default config |
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
Oops, something went wrong.