-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
7f0f722
commit 7119aec
Showing
1 changed file
with
29 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,29 @@ | ||
import {BatchScript} from "forge-safe/src/BatchScript.sol"; | ||
import {LibString} from "solady/utils/LibString.sol"; | ||
|
||
import {PointTokenVault} from "../PointTokenVault.sol"; | ||
|
||
import {console} from "forge-std/Test.sol"; | ||
|
||
contract DeployPToken is BatchScript { | ||
|
||
address constant POINT_TOKEN_VAULT_ADDRESS = 0x1EeEBa76f211C4Dce994b9c5A74BDF25DB649Fa1; | ||
|
||
string constant PTOKEN_NAME = "Rumpel kPoint: Ethena S2"; | ||
string constant PTOKEN_SYMBOL = "pkSATS"; | ||
|
||
function run() public { | ||
uint256 deployerPrivateKey = vm.envUint("DEPLOYER_PRIVATE_KEY"); | ||
|
||
PointTokenVault pointTokenVault = PointTokenVault(payable(POINT_TOKEN_VAULT_ADDRESS)); | ||
|
||
bytes32 pointsId = LibString.packTwo(PTOKEN_NAME, PTOKEN_SYMBOL); | ||
|
||
vm.startBroadcast(deployerPrivateKey); | ||
pointTokenVault.deployPToken(pointsId); | ||
vm.stopBroadcast(); | ||
|
||
console.log("P TOKEN ADDRESS:"); | ||
console.log(address(pointTokenVault.pTokens(pointsId))); | ||
} | ||
} |