Skip to content

Commit

Permalink
feat: fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
sogipec committed Jan 14, 2025
1 parent 430e054 commit 8da1686
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions scripts/deploySonicFragment.s.sol
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));
}
}

0 comments on commit 8da1686

Please sign in to comment.