Skip to content

Commit

Permalink
[NES-186] make AggregateToken.sol (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
eyqs authored Sep 13, 2024
1 parent 0cfc50c commit b20b189
Show file tree
Hide file tree
Showing 3 changed files with 401 additions and 1 deletion.
23 changes: 22 additions & 1 deletion nest/script/DeployNestContracts.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "forge-std/Script.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { Upgrades } from "openzeppelin-foundry-upgrades/Upgrades.sol";

import { AggregateToken } from "../src/AggregateToken.sol";
import { FakeComponentToken } from "../src/FakeComponentToken.sol";

contract DeployNestContracts is Script {
Expand All @@ -18,10 +19,30 @@ contract DeployNestContracts is Script {

address fakeComponentTokenProxy = Upgrades.deployUUPSProxy(
"FakeComponentToken.sol",
abi.encodeCall(FakeComponentToken.initialize, (msg.sender, "Banana", "BAN", IERC20(USDC_ADDRESS), 18))
abi.encodeCall(
FakeComponentToken.initialize, (ARC_ADMIN_ADDRESS, "Banana", "BAN", IERC20(USDC_ADDRESS), 18)
)
);
console.log("FakeComponentToken deployed to:", fakeComponentTokenProxy);

address aggregateTokenProxy = Upgrades.deployUUPSProxy(
"AggregateToken.sol",
abi.encodeCall(
AggregateToken.initialize,
(
ARC_ADMIN_ADDRESS,
"Apple",
"AAPL",
IERC20(USDC_ADDRESS),
18,
15e17,
12e17,
"https://assets.plumenetwork.xyz/metadata/mineral-vault.json"
)
)
);
console.log("AggregateToken deployed to:", aggregateTokenProxy);

vm.stopBroadcast();
}

Expand Down
Loading

0 comments on commit b20b189

Please sign in to comment.