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

[NES-186] make AggregateToken.sol #1

Merged
merged 21 commits into from
Sep 13, 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
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