-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: include bsc testnet * ci: forge fmt * feat: include sepolia address
- Loading branch information
Showing
3 changed files
with
73 additions
and
19 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,46 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.24; | ||
|
||
import "forge-std/Script.sol"; | ||
import {BaseScript} from "./BaseScript.sol"; | ||
import {IBinQuoter} from "../src/pool-bin/interfaces/IBinQuoter.sol"; | ||
import {ICLQuoter} from "../src/pool-cl/interfaces/ICLQuoter.sol"; | ||
import {MixedQuoter} from "../src/MixedQuoter.sol"; | ||
|
||
/** | ||
* forge script script/07_DeployMixedQuoter.s.sol:DeployMixedQuoterScript -vvv \ | ||
* --rpc-url $RPC_URL \ | ||
* --broadcast \ | ||
* --slow \ | ||
* --verify | ||
*/ | ||
contract DeployMixedQuoterScript is BaseScript { | ||
function run() public { | ||
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); | ||
vm.startBroadcast(deployerPrivateKey); | ||
|
||
address factoryV3 = getAddressFromConfig("factoryV3"); | ||
emit log_named_address("factoryV3", factoryV3); | ||
|
||
address factoryV2 = getAddressFromConfig("factoryV2"); | ||
emit log_named_address("factoryV2", factoryV2); | ||
|
||
address factoryStable = getAddressFromConfig("factoryStable"); | ||
emit log_named_address("factoryStable", factoryStable); | ||
|
||
address weth = getAddressFromConfig("weth"); | ||
emit log_named_address("WETH", weth); | ||
|
||
address clQuoter = getAddressFromConfig("clQuoter"); | ||
emit log_named_address("clQuoter", clQuoter); | ||
|
||
address binQuoter = getAddressFromConfig("binQuoter"); | ||
emit log_named_address("binQuoter", binQuoter); | ||
|
||
MixedQuoter mixedQuoter = | ||
new MixedQuoter(factoryV3, factoryV2, factoryStable, weth, ICLQuoter(clQuoter), IBinQuoter(binQuoter)); | ||
emit log_named_address("mixedQuoter", address(mixedQuoter)); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
{ | ||
"permit2": "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768", | ||
"weth": "0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd", | ||
"vault": "0x79D5A618c43eCAda2BaaC65A9979cF120128f6Fa", | ||
"clPoolManager": "0x40a081A39E9638fa6e2463B92A4eff4Bdf877179", | ||
"binPoolManager": "0xc51DE4C65d6e3fb612050E383495e9457840d2c9", | ||
"clPositionManager": "0xF254D17B9Ccae6BC3a40c8caDF3B8Ef563362C2D", | ||
"binPositionManager": "0x45caADA89A3E257EA17fA3B56c3E09b63CD241B1", | ||
"clQuoter:": "0x1E51cB768587C7A22AEBdCe787fb68A0953ec113", | ||
"binQuoter": "0x76A1DFf6c0c64CE0906269228e89256b20A1fa2f", | ||
"clMigrator": "0xF4a2f2A173ef10dF3733bb501d9DFFaD024567FC", | ||
"binMigrator": "0x7a6689073890AFAa6d592B840d2fA73b2D52B820" | ||
"vault": "0x08F012b8E2f3021db8bd2A896A7F422F4041F131", | ||
"clPoolManager": "0x969D90aC74A1a5228b66440f8C8326a8dA47A5F9", | ||
"binPoolManager": "0x437ef7C8C00d20a8535ae1786c5800c88413e7Af", | ||
"clPositionManager": "0x89A7D45D007077485CB5aE2abFB740b1fe4FF574", | ||
"binPositionManager": "0xfB84c0D67f217f078E949d791b8d3081FE91Bca2", | ||
"clQuoter": "0x2BafB051b2cD5a20F6579aeC3F0CF4958CE986a3", | ||
"binQuoter": "0xbE4CEFaA182a41Afd2D0e1f183EB368B3489cc36", | ||
"clMigrator": "0xc872e4425D83141Dc517418FD32e9550f42Ffe34.", | ||
"binMigrator": "0xf342FfB466018938c6251E2CC62Cf6AD8D936cf8", | ||
"factoryV3": "0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865", | ||
"factoryV2": "0x6725F303b657a9451d8BA641348b6761A6CC7a17", | ||
"factoryStable": "0xe6A00f8b819244e8Ab9Ea930e46449C2F20B6609", | ||
"mixedQuoter": "0x91B50D0ac455126ef30A5163A3Aa539eE815115a" | ||
} |
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
{ | ||
"permit2": "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768", | ||
"weth": "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9", | ||
"vault": "0x9ddc29733279C31cAb29616Ebf3EB37E63Cc9157", | ||
"clPoolManager": "0x97e09cD0E079CeeECBb799834959e3dC8e4ec31A", | ||
"binPoolManager": "0x85cD8228f397a6a52402776A8A8B720e85622C18", | ||
"clPositionManager": "0x", | ||
"binPositionManager": "0x", | ||
"clQuoter:": "0x", | ||
"binQuoter": "0x", | ||
"clMigrator": "0x", | ||
"binMigrator": "0x" | ||
"weth": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14", | ||
"vault": "0xA9B361Df352a80BA3213c656b4EfA5436EC80362", | ||
"clPoolManager": "0x6F9302eE8760c764d775B1550C65468Ec4C25Dfc", | ||
"binPoolManager": "0xc0270E12dd2bCF9A22A928af6047e247508E5615", | ||
"clPositionManager": "0x969D90aC74A1a5228b66440f8C8326a8dA47A5F9", | ||
"binPositionManager": "0xda00d92f2977B806E51f221132c722d4b0D53514", | ||
"clQuoter": "0x437ef7C8C00d20a8535ae1786c5800c88413e7Af", | ||
"binQuoter": "0x1541841e05371968CB67038d8b7D4B64605614a4", | ||
"clMigrator": "0x2BafB051b2cD5a20F6579aeC3F0CF4958CE986a3", | ||
"binMigrator": "0xbE4CEFaA182a41Afd2D0e1f183EB368B3489cc36.", | ||
"factoryV3": "0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865", | ||
"factoryV2": "0x1bdc540dEB9Ed1fA29964DeEcCc524A8f5e2198e", | ||
"factoryStable": "0x000000000000000000000000000000000000dEaD", | ||
"mixedQuoter": "0xc872e4425d83141dc517418fd32e9550f42ffe34" | ||
} |