CREATE2 callback validation; init code storage contracts
This commit is contained in:
@@ -10,10 +10,17 @@ import {StdCheatsSafe} from "../lib/forge-std/src/StdCheats.sol";
|
||||
import {StdUtils} from "../lib/forge-std/src/StdUtils.sol";
|
||||
import {IERC20} from "../lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
|
||||
import {IERC20Metadata} from "../lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol";
|
||||
import {PartyPlanner} from "../src/PartyPlanner.sol";
|
||||
import {IPartyInfo} from "../src/IPartyInfo.sol";
|
||||
import {IPartyPlanner} from "../src/IPartyPlanner.sol";
|
||||
import {NativeWrapper} from "../src/NativeWrapper.sol";
|
||||
import {PartyInfo} from "../src/PartyInfo.sol";
|
||||
import {PartyPlanner} from "../src/PartyPlanner.sol";
|
||||
import {PartyPoolInitCode, PartyPoolBalancedPairInitCode} from "../src/PartyPoolDeployer.sol";
|
||||
import {PartyPoolMintImpl} from "../src/PartyPoolMintImpl.sol";
|
||||
import {PartyPoolSwapImpl} from "../src/PartyPoolSwapImpl.sol";
|
||||
import {Deploy} from "../test/Deploy.sol";
|
||||
import {MockERC20} from "../test/MockERC20.sol";
|
||||
import {WETH9} from "../test/WETH9.sol";
|
||||
|
||||
contract DeployMock is Script {
|
||||
|
||||
@@ -34,7 +41,19 @@ contract DeployMock is Script {
|
||||
wteth = new MockERC20('Wrapped TETH', 'WTETH', 18);
|
||||
|
||||
// deploy a PartyPlanner factory and create the pool via factory
|
||||
PartyPlanner planner = Deploy.newPartyPlanner();
|
||||
NativeWrapper wrapper = new WETH9();
|
||||
PartyPoolSwapImpl swapImpl = new PartyPoolSwapImpl(wrapper);
|
||||
PartyPoolMintImpl mintImpl = new PartyPoolMintImpl(wrapper);
|
||||
IPartyPlanner planner = new PartyPlanner(
|
||||
msg.sender,
|
||||
wrapper,
|
||||
swapImpl,
|
||||
new PartyPoolMintImpl(wrapper),
|
||||
new PartyPoolInitCode(),
|
||||
new PartyPoolBalancedPairInitCode(),
|
||||
Deploy.PROTOCOL_FEE_PPM,
|
||||
Deploy.PROTOCOL_FEE_RECEIVER
|
||||
);
|
||||
|
||||
//
|
||||
// Deploy 3-asset pool
|
||||
@@ -163,7 +182,7 @@ contract DeployMock is Script {
|
||||
0
|
||||
);
|
||||
|
||||
PartyInfo info = Deploy.newInfo();
|
||||
IPartyInfo info = new PartyInfo(swapImpl, mintImpl);
|
||||
|
||||
// give _tokens to dev7 for later use
|
||||
mintAll(DEV_ACCOUNT_7, 1_000_000);
|
||||
|
||||
Reference in New Issue
Block a user