Skip to content

Commit

Permalink
feat: Filecoin deploy (#232)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
sogipec and GuillaumeNervoXS authored Dec 19, 2023
1 parent 21fe959 commit 642876e
Show file tree
Hide file tree
Showing 28 changed files with 7,909 additions and 8 deletions.
1 change: 0 additions & 1 deletion deploy/0_proxyAdmin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// To be used in other chains than mainnet to deploy proxy admin for our upgradeable contracts
import { ChainId, CONTRACTS_ADDRESSES } from '@angleprotocol/sdk';
import { DeployFunction } from 'hardhat-deploy/types';
// import { DeployFunction } from '@matterlabs/hardhat-zksync-deploy';
import yargs from 'yargs';
Expand Down
9 changes: 3 additions & 6 deletions deploy/1_coreBorrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ChainId, CONTRACTS_ADDRESSES } from '@angleprotocol/sdk';
import { DeployFunction } from 'hardhat-deploy/types';
import yargs from 'yargs';

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

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

// TODO: comment if implementation has already been deployed
/*
console.log('Let us get started with deployment');

console.log('Now deploying CoreBorrow');
console.log('Starting with the implementation');

// TODO: comment if implementation has already been deployed
/*
await deploy('CoreBorrow_Implementation', {
contract: 'CoreBorrow',
from: deployer.address,
Expand All @@ -48,7 +45,6 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => {
*/

const coreBorrowImplementation = (await ethers.getContract('CoreBorrow_Implementation')).address;

console.log(`Successfully deployed the implementation for CoreBorrow at ${coreBorrowImplementation}`);
console.log('');

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

func.tags = ['coreBorrow'];
func.dependencies = ['proxyAdmin'];
export default func;
5 changes: 5 additions & 0 deletions deploy/networks/coredao.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"angleLabs": "0x916685b590233bA10C0B52b3FAE6B0e75e9Ab477",
"governor": "0x16A8cE873349B88F4b6BF7561e298f4a6ea8CcE1",
"guardian": "0xdfF6B950FCD12130a1184De38FD31060C7d1ac6A"
}
5 changes: 5 additions & 0 deletions deploy/networks/filecoin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"angleLabs": "0x916685b590233bA10C0B52b3FAE6B0e75e9Ab477",
"governor": "0x16A8cE873349B88F4b6BF7561e298f4a6ea8CcE1",
"guardian": "0xdfF6B950FCD12130a1184De38FD31060C7d1ac6A"
}
5 changes: 5 additions & 0 deletions deploy/networks/thundercore.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"angleLabs": "0x916685b590233bA10C0B52b3FAE6B0e75e9Ab477",
"governor": "0x16A8cE873349B88F4b6BF7561e298f4a6ea8CcE1",
"guardian": "0xdfF6B950FCD12130a1184De38FD31060C7d1ac6A"
}
1 change: 1 addition & 0 deletions deployments/coredao/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1116
337 changes: 337 additions & 0 deletions deployments/coredao/CoreBorrow.json

Large diffs are not rendered by default.

Loading

0 comments on commit 642876e

Please sign in to comment.