-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/scan-vuln-deps-workflow
- Loading branch information
Showing
57 changed files
with
2,044 additions
and
5,847 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
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 @@ | ||
module.exports = { | ||
istanbulReporter: ['html', 'lcov'], | ||
istanbulReporter: ['html', 'lcov', 'text'], | ||
providerOptions: { | ||
privateKey: process.env.PRIVATE_KEY, | ||
}, | ||
skipFiles: ['test'], | ||
skipFiles: ['mocks'], | ||
}; |
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,54 @@ | ||
import { | ||
AragonOSxAsciiArt, | ||
getProductionNetworkName, | ||
isLocal, | ||
} from '../../utils/helpers'; | ||
import {getNetworkByNameOrAlias} from '@aragon/osx-commons-configs'; | ||
import {DeployFunction} from 'hardhat-deploy/types'; | ||
import {HardhatRuntimeEnvironment} from 'hardhat/types'; | ||
import path from 'path'; | ||
|
||
/** | ||
* Prints information about the used/forked network and initial deployer wallet balance. | ||
* @param {HardhatRuntimeEnvironment} hre | ||
*/ | ||
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
console.log(AragonOSxAsciiArt); | ||
console.log(`${'-'.repeat(60)}`); | ||
console.log(`\n✨ ${path.basename(__filename)}:`); | ||
|
||
const [deployer] = await hre.ethers.getSigners(); | ||
if (isLocal(hre)) { | ||
const productionNetworkName: string = getProductionNetworkName(hre); | ||
|
||
console.log( | ||
`Simulated deployment on local network '${hre.network.name}'. Forking production network '${productionNetworkName}'...` | ||
); | ||
|
||
// Fork the network provided in the `.env` file | ||
const networkConfig = getNetworkByNameOrAlias(productionNetworkName)!; | ||
await hre.network.provider.request({ | ||
method: 'hardhat_reset', | ||
params: [ | ||
{ | ||
forking: { | ||
jsonRpcUrl: networkConfig.url, | ||
}, | ||
}, | ||
], | ||
}); | ||
} else { | ||
console.log(`Production deployment on network '${hre.network.name}'.`); | ||
} | ||
|
||
console.log( | ||
`Using account '${ | ||
deployer.address | ||
}' with a balance of ${hre.ethers.utils.formatEther( | ||
await deployer.getBalance() | ||
)} native tokens.` | ||
); | ||
}; | ||
|
||
export default func; | ||
func.tags = ['Info', 'CreateRepo', 'NewVersion', 'UpgradeRepo']; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.