generated from AngleProtocol/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 11
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
5 changed files
with
887 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { DeployFunction } from 'hardhat-deploy/types'; | ||
import yargs from 'yargs'; | ||
|
||
const argv = yargs.env('').boolean('ci').parseSync(); | ||
|
||
const func: DeployFunction = async ({ deployments, ethers, network }) => { | ||
const { deploy } = deployments; | ||
const { deployer } = await ethers.getNamedSigners(); | ||
let core: string; | ||
|
||
const implementationName = 'PointToken'; | ||
|
||
console.log(`Now deploying ${implementationName}`); | ||
console.log('Starting with the implementation'); | ||
|
||
await deploy(implementationName, { | ||
contract: implementationName, | ||
from: deployer.address, | ||
args: ["Angle Prots","agProts", "0xA9DdD91249DFdd450E81E1c56Ab60E1A62651701","0xFD0DFC837Fe7ED19B23df589b6F6Da5a775F99E0"], | ||
log: !argv.ci, | ||
}); | ||
|
||
const implementationAddress = (await ethers.getContract(implementationName)).address; | ||
|
||
console.log(`Successfully deployed the contract ${implementationName} at ${implementationAddress}`); | ||
console.log(''); | ||
}; | ||
|
||
func.tags = ['pointToken']; | ||
export default func; |
Oops, something went wrong.