Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Görli contracts deployment #214

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Deploy contracts
env:
CHAIN_API_URL: ${{ secrets.KEEP_TEST_ETH_HOSTNAME_HTTP }}
CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.KEEP_TEST_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
ACCOUNTS_PRIVATE_KEYS: ${{ secrets.KEEP_TEST_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
run: yarn deploy --network ${{ github.event.inputs.environment }}

- name: Bump up package version
Expand Down
1 change: 1 addition & 0 deletions deploy/03_resolve_uniswap_v2_router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
contract: "UniswapV2RouterStub",
from: deployer,
log: true,
waitConfirmations: 1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity - why don't we add the same for deployments in the earlier scripts?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use stubs on the hardhat network for unit tests and it works stable there.

})
}
}
Expand Down
1 change: 1 addition & 0 deletions deploy/04_deploy_underwriter_token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
from: deployer,
args: ["covKEEP underwriter token", "covKEEP"],
log: true,
waitConfirmations: 1,
})

if (hre.network.tags.tenderly) {
Expand Down
1 change: 1 addition & 0 deletions deploy/05_deploy_asset_pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
from: deployer,
args: [KeepToken.address, UnderwriterToken.address, rewardManager],
log: true,
waitConfirmations: 1,
})

if (hre.network.tags.tenderly) {
Expand Down
1 change: 1 addition & 0 deletions deploy/06_deploy_coverage_pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
from: deployer,
args: [AssetPool.address],
log: true,
waitConfirmations: 1,
})

if (hre.network.tags.tenderly) {
Expand Down
1 change: 1 addition & 0 deletions deploy/07_deploy_auction_bidder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
from: deployer,
args: [CoveragePool.address],
log: true,
waitConfirmations: 1,
})

if (hre.network.tags.tenderly) {
Expand Down
1 change: 1 addition & 0 deletions deploy/08_deploy_signer_bonds_manual_swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
{
from: deployer,
log: true,
waitConfirmations: 1,
}
)

Expand Down
1 change: 1 addition & 0 deletions deploy/09_deploy_signer_bonds_uniswap_v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
from: deployer,
args: [UniswapV2Router.address, CoveragePool.address],
log: true,
waitConfirmations: 1,
}
)

Expand Down
1 change: 1 addition & 0 deletions deploy/10_deploy_master_auction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
contract: "Auction",
from: deployer,
log: true,
waitConfirmations: 1,
})

if (hre.network.tags.tenderly) {
Expand Down
1 change: 1 addition & 0 deletions deploy/11_deploy_risk_manager_v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
bondAuctionThreshold,
],
log: true,
waitConfirmations: 1,
})

if (hre.network.tags.tenderly) {
Expand Down
1 change: 1 addition & 0 deletions deploy/12_deploy_coverage_pool_beneficiary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
from: deployer,
args: [KeepToken.address, RewardsPoolAddress],
log: true,
waitConfirmations: 1,
}
)

Expand Down
Loading