-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(deploy): deploy v1.0.1 on Goerli * chore(deploy): deploy v1.0.1 to mainnet * doc(RELEASE): update RELEASE.md * doc(CHANGELOG): add v1.0.1 section to changelog * chore(deploy): uncomment block
- Loading branch information
Showing
15 changed files
with
11,127 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { DeployFunction } from "hardhat-deploy/dist/types"; | ||
import { HardhatRuntimeEnvironment } from "hardhat/types"; | ||
import { isDeployed, logStep, logStepEnd } from "../../ts-utils/helpers/index"; | ||
|
||
const func: DeployFunction = async function ({ deployments, network, getNamedAccounts }: HardhatRuntimeEnvironment) { | ||
if (!["goerli", "hardhat"].includes(network.name)) { | ||
throw new Error("Invalid network for devGoerli deployment"); | ||
} | ||
|
||
const { deployer } = await getNamedAccounts(); | ||
|
||
await deployments.deploy("RiverV1_Implementation_1_0_1", { | ||
contract: "RiverV1", | ||
from: deployer, | ||
log: true, | ||
}); | ||
|
||
await deployments.deploy("OperatorsRegistryV1_Implementation_1_0_1", { | ||
contract: "OperatorsRegistryV1", | ||
from: deployer, | ||
log: true, | ||
}); | ||
|
||
// migration and upgrade steps | ||
// 1. upgradeTo OperatorsRegistry | ||
// 2. upgradeToAndCall RiverContract + RiverContract.initRiverV1_2() | ||
logStepEnd(__filename); | ||
}; | ||
|
||
func.skip = async function ({ deployments, ethers }: HardhatRuntimeEnvironment): Promise<boolean> { | ||
logStep(__filename); | ||
const shouldSkip = | ||
(await isDeployed("OperatorsRegistryV1_Implementation_1_0_1", deployments, __filename)) && | ||
(await isDeployed("RiverV1_Implementation_1_0_1", deployments, __filename)) | ||
if (shouldSkip) { | ||
console.log("Skipped"); | ||
logStepEnd(__filename); | ||
} | ||
return shouldSkip; | ||
}; | ||
|
||
export default func; |
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,42 @@ | ||
import { DeployFunction } from "hardhat-deploy/dist/types"; | ||
import { HardhatRuntimeEnvironment } from "hardhat/types"; | ||
import { isDeployed, logStep, logStepEnd } from "../../ts-utils/helpers/index"; | ||
|
||
const func: DeployFunction = async function ({ deployments, network, getNamedAccounts }: HardhatRuntimeEnvironment) { | ||
if (!["mainnet", "hardhat"].includes(network.name)) { | ||
throw new Error("Invalid network for mainnet deployment"); | ||
} | ||
|
||
const { deployer } = await getNamedAccounts(); | ||
|
||
await deployments.deploy("RiverV1_Implementation_1_0_1", { | ||
contract: "RiverV1", | ||
from: deployer, | ||
log: true, | ||
}); | ||
|
||
await deployments.deploy("OperatorsRegistryV1_Implementation_1_0_1", { | ||
contract: "OperatorsRegistryV1", | ||
from: deployer, | ||
log: true, | ||
}); | ||
|
||
// migration and upgrade steps | ||
// 1. upgradeTo OperatorsRegistry | ||
// 2. upgradeToAndCall RiverContract + RiverContract.initRiverV1_2() | ||
logStepEnd(__filename); | ||
}; | ||
|
||
func.skip = async function ({ deployments, ethers }: HardhatRuntimeEnvironment): Promise<boolean> { | ||
logStep(__filename); | ||
const shouldSkip = | ||
(await isDeployed("OperatorsRegistryV1_Implementation_1_0_1", deployments, __filename)) && | ||
(await isDeployed("RiverV1_Implementation_1_0_1", deployments, __filename)) | ||
if (shouldSkip) { | ||
console.log("Skipped"); | ||
logStepEnd(__filename); | ||
} | ||
return shouldSkip; | ||
}; | ||
|
||
export default func; |
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.