Merge branch 'main' into remove-ekubo-balance-of-checks

This commit is contained in:
Tamara
2025-04-03 12:08:26 +02:00
committed by GitHub
13 changed files with 80 additions and 6 deletions

View File

@@ -35,6 +35,11 @@ module.exports = {
url: process.env.RPC_URL,
accounts: [process.env.PRIVATE_KEY],
chainId: 8453
},
unichain: {
url: process.env.RPC_URL,
accounts: [process.env.PRIVATE_KEY],
chainId: 130
}
},
@@ -45,6 +50,20 @@ module.exports = {
},
etherscan: {
apiKey: process.env.BLOCKCHAIN_EXPLORER_API_KEY,
apiKey: {
unichain: process.env.BLOCKCHAIN_EXPLORER_API_KEY,
base: process.env.BLOCKCHAIN_EXPLORER_API_KEY,
ethereum: process.env.BLOCKCHAIN_EXPLORER_API_KEY,
},
customChains: [
{
network: "unichain",
chainId: 130,
urls: {
apiURL: "https://api.uniscan.xyz/api",
browserURL: "https://www.uniscan.xyz/"
}
}
]
}
};

View File

@@ -36,6 +36,7 @@ const executors_to_deploy = {
// Args: Ekubo core contract
{exchange: "EkuboExecutor", args: [
"0xe0e0e08A6A4b9Dc7bD67BCB7aadE5cF48157d444"
]}
],
"base":[
// Args: Factory, Pool Init Code Hash
@@ -67,6 +68,20 @@ const executors_to_deploy = {
{exchange: "UniswapV4Executor", args: ["0x498581ff718922c3f8e6a244956af099b2652b2b"]},
{exchange: "BalancerV2Executor", args: []},
],
"unichain":[
// Args: Factory, Pool Init Code Hash
{exchange: "UniswapV2Executor", args: [
"0x1f98400000000000000000000000000000000002",
"0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f"
]},
// USV3 - Args: Factory, Pool Init Code Hash
{exchange: "UniswapV3Executor", args: [
"0x1f98400000000000000000000000000000000003",
"0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54"
]},
// Args: Pool manager
{exchange: "UniswapV4Executor", args: ["0x1f98400000000000000000000000000000000004"]},
],
}
async function main() {

View File

@@ -13,6 +13,10 @@ async function main() {
// permit2 address is the same as on ethereum
permit2 = "0x000000000022D473030F116dDEE9F6B43aC78BA3";
weth = "0x4200000000000000000000000000000000000006";
} else if (network === "unichain") {
// permit2 address is the same as on ethereum
permit2 = "0x000000000022D473030F116dDEE9F6B43aC78BA3";
weth = "0x4200000000000000000000000000000000000006";
} else {
throw new Error(`Unsupported network: ${network}`);
}

View File

@@ -58,5 +58,20 @@
"FUND_RESCUER_ROLE": [
"0xb0A77f867Fcec1e9b271Ee17354bC6bBC0dD5662"
]
},
"unichain": {
"EXECUTOR_SETTER_ROLE": [
"0x810A00Fa9287700871ba0f870Cd89D7Eac08D48C"
],
"FEE_SETTER_ROLE": [],
"PAUSER_ROLE": [
"0x810A00Fa9287700871ba0f870Cd89D7Eac08D48C"
],
"UNPAUSER_ROLE": [
"0x810A00Fa9287700871ba0f870Cd89D7Eac08D48C"
],
"FUND_RESCUER_ROLE": [
"0x810A00Fa9287700871ba0f870Cd89D7Eac08D48C"
]
}
}