Skip to content

Commit

Permalink
feat: deploy Merkl contracts on Filecoin (#43)
Browse files Browse the repository at this point in the history
* feat: deploy Merkl contracts on Filecoin

* feat: coredao and thundercore deployments

* refactor: small modifs (#45)

---------

Co-authored-by: Thibaud <[email protected]>
Co-authored-by: Picodes <[email protected]>
  • Loading branch information
3 people authored Jan 10, 2024
1 parent e6bfa90 commit a060f9d
Show file tree
Hide file tree
Showing 38 changed files with 20,364 additions and 33 deletions.
3 changes: 2 additions & 1 deletion deploy/0_distributor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => {
const { deployer } = await ethers.getNamedSigners();

let core: string;
core = '0xFD0DFC837Fe7ED19B23df589b6F6Da5a775F99E0';
// TODO: change the coreMerkl address to that of the desired chain
core = '0x3E399AE5B4D8bc0021e53b51c8BCdD66DD62c03b';
/*
if (!network.live) {
// If we're in mainnet fork, we're using the `CoreBorrow` address from mainnet
Expand Down
8 changes: 5 additions & 3 deletions deploy/1_distributionCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => {
const { deployer } = await ethers.getNamedSigners();

let core: string;
// TODO: change the coreMerkl address to that of the desired chain
core = '0x3E399AE5B4D8bc0021e53b51c8BCdD66DD62c03b';
/*
if (!network.live) {
// If we're in mainnet fork, we're using the `CoreBorrow` address from mainnet
core = registry(ChainId.MAINNET)?.Merkl?.CoreMerkl!;
} else {
// Otherwise, we're using the proxy admin address from the desired network
core = registry(network.config.chainId as ChainId)?.Merkl?.CoreMerkl!;
}
core = '0xFD0DFC837Fe7ED19B23df589b6F6Da5a775F99E0';

*/
console.log(deployer.address);

console.log('Now deploying DistributionCreator');
console.log('Starting with the implementation');
console.log('deployer ', await deployer.getBalance());
Expand Down
1 change: 1 addition & 0 deletions deployments/coredao/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1116
132 changes: 132 additions & 0 deletions deployments/coredao/DistributionCreator.json

Large diffs are not rendered by default.

Loading

0 comments on commit a060f9d

Please sign in to comment.