generated from AngleProtocol/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.17; | ||
|
||
import { console } from "forge-std/console.sol"; | ||
|
||
import { BaseScript } from "./utils/Base.s.sol"; | ||
|
||
import { console } from "forge-std/console.sol"; | ||
import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; | ||
import { ITransparentUpgradeableProxy } from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol"; | ||
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
import { JsonReader } from "@utils/JsonReader.sol"; | ||
import { ContractType } from "@utils/Constants.sol"; | ||
|
||
import { SonicFragment } from "../contracts/partners/tokenWrappers/SonicFragment.sol"; | ||
import { DistributionCreator } from "../contracts/DistributionCreator.sol"; | ||
import { IAccessControlManager } from "../contracts/interfaces/IAccessControlManager.sol"; | ||
import { MockToken } from "../contracts/mock/MockToken.sol"; | ||
|
||
contract DeploySonicFragment is BaseScript { | ||
function run() public broadcast { | ||
console.log("DEPLOYER_ADDRESS:", broadcaster); | ||
|
||
// Sonic address - to check | ||
IAccessControlManager manager = IAccessControlManager(0xa25c30044142d2fA243E7Fd3a6a9713117b3c396); | ||
address recipient = address(broadcaster); | ||
// TODO this is the wrapped Sonic address | ||
address sToken = address(0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38); | ||
uint256 totalSupply = 100_000_000 ether; | ||
string memory name = "Fragment xxx"; | ||
string memory symbol = "frgxxx"; | ||
|
||
// Deploy implementation | ||
SonicFragment implementation = new SonicFragment( | ||
address(manager), | ||
recipient, | ||
sToken, | ||
totalSupply, | ||
name, | ||
symbol | ||
); | ||
console.log("SonicFragment deployed at:", address(implementation)); | ||
} | ||
} |