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

feat: deploy Merkl contracts on Filecoin #43

Merged
merged 4 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading