Skip to content

Commit 642876e

Browse files
feat: Filecoin deploy (#232)
* first batch of test done * update final hash of vaultManager implementation * feat: deploy filecoin proxyAdmin and core contracts on filecoin * feat: coredao and thundercore deployments --------- Co-authored-by: gs8nrv <[email protected]>
1 parent 21fe959 commit 642876e

28 files changed

+7909
-8
lines changed

deploy/0_proxyAdmin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// To be used in other chains than mainnet to deploy proxy admin for our upgradeable contracts
2-
import { ChainId, CONTRACTS_ADDRESSES } from '@angleprotocol/sdk';
32
import { DeployFunction } from 'hardhat-deploy/types';
43
// import { DeployFunction } from '@matterlabs/hardhat-zksync-deploy';
54
import yargs from 'yargs';

deploy/1_coreBorrow.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { ChainId, CONTRACTS_ADDRESSES } from '@angleprotocol/sdk';
22
import { DeployFunction } from 'hardhat-deploy/types';
33
import yargs from 'yargs';
44

5-
import { expect } from '../test/hardhat/utils/chai-setup';
65
import { CoreBorrow__factory } from '../typechain';
76
const argv = yargs.env('').boolean('ci').parseSync();
87

@@ -33,13 +32,11 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => {
3332
name = 'CoreMerkl';
3433
proxyAdmin = (await deployments.get('ProxyAdminGuardian')).address;
3534

35+
// TODO: comment if implementation has already been deployed
36+
/*
3637
console.log('Let us get started with deployment');
37-
3838
console.log('Now deploying CoreBorrow');
3939
console.log('Starting with the implementation');
40-
41-
// TODO: comment if implementation has already been deployed
42-
/*
4340
await deploy('CoreBorrow_Implementation', {
4441
contract: 'CoreBorrow',
4542
from: deployer.address,
@@ -48,7 +45,6 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => {
4845
*/
4946

5047
const coreBorrowImplementation = (await ethers.getContract('CoreBorrow_Implementation')).address;
51-
5248
console.log(`Successfully deployed the implementation for CoreBorrow at ${coreBorrowImplementation}`);
5349
console.log('');
5450

@@ -78,4 +74,5 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => {
7874
};
7975

8076
func.tags = ['coreBorrow'];
77+
func.dependencies = ['proxyAdmin'];
8178
export default func;

deploy/networks/coredao.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"angleLabs": "0x916685b590233bA10C0B52b3FAE6B0e75e9Ab477",
3+
"governor": "0x16A8cE873349B88F4b6BF7561e298f4a6ea8CcE1",
4+
"guardian": "0xdfF6B950FCD12130a1184De38FD31060C7d1ac6A"
5+
}

deploy/networks/filecoin.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"angleLabs": "0x916685b590233bA10C0B52b3FAE6B0e75e9Ab477",
3+
"governor": "0x16A8cE873349B88F4b6BF7561e298f4a6ea8CcE1",
4+
"guardian": "0xdfF6B950FCD12130a1184De38FD31060C7d1ac6A"
5+
}

deploy/networks/thundercore.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"angleLabs": "0x916685b590233bA10C0B52b3FAE6B0e75e9Ab477",
3+
"governor": "0x16A8cE873349B88F4b6BF7561e298f4a6ea8CcE1",
4+
"guardian": "0xdfF6B950FCD12130a1184De38FD31060C7d1ac6A"
5+
}

deployments/coredao/.chainId

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1116

deployments/coredao/CoreBorrow.json

Lines changed: 337 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)