Skip to content

Commit

Permalink
updated the deployment config for polygon mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgo0018 committed Dec 7, 2023
1 parent d439457 commit b77b481
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import { viem } from "hardhat";

const chainlinkFunctionsRouter = "0x6E2dc0F9DB014aE19888F539E59285D2Ea04244C";
const uniswapV2RouterAddress = "0x";
const stableTokenAddress = "0x";
const chainlinkFunctionsRouter = "0xdc2AAF042Aeff2E68B3e8E33F19e4B9fA7C73F10";
const uniswapV2RouterAddress = "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff";
const stableTokenAddress = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";

const donId =
"0x66756e2d706f6c79676f6e2d6d61696e6e65742d310000000000000000000000";
const donHostedSecretsVersion = 0n;
const donHostedSecretsSlotID = 0;

async function main() {
const fundManager = await viem.deployContract("FundManager", [
Expand All @@ -18,6 +23,12 @@ async function main() {
]);

console.log(`Vault Contract is deployed to ${vault.address}`);

await fundManager.write.setDONConfig([
donHostedSecretsSlotID,
donHostedSecretsVersion,
donId,
]);
}

// We recommend this pattern to be able to use async/await everywhere
Expand Down

0 comments on commit b77b481

Please sign in to comment.