Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy symbiosis to sonic and abstract #963

Merged
merged 38 commits into from
Feb 5, 2025
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
aba775b
begin configuring abstract
ezynda3 Jan 13, 2025
1dbde10
deploy core facets to abstract
ezynda3 Jan 14, 2025
5d56ea3
more deployments
ezynda3 Jan 14, 2025
0388431
more deployments and log updpates
ezynda3 Jan 14, 2025
b8f24d6
update diamondPause workflow
ezynda3 Jan 14, 2025
676a887
more deployments update logs
ezynda3 Jan 14, 2025
f3607a1
gaszip updates
ezynda3 Jan 16, 2025
f26dff6
replaced ts-node with tsx
0xDEnYO Jan 28, 2025
162d469
fix imports and add pre-selected action (=sign) when running with SAF…
0xDEnYO Jan 28, 2025
5a7a603
redeploy ReceiverStargateV2
ezynda3 Jan 28, 2025
8325e78
Merge branch 'main' of github.com:lifinance/contracts into LF-11057-d…
ezynda3 Jan 28, 2025
82493f8
update viem
ezynda3 Jan 28, 2025
0f43fa7
Merge branch 'fix-safe-scripts' of github.com:lifinance/contracts int…
ezynda3 Jan 28, 2025
2166acc
deployment and update
ezynda3 Jan 28, 2025
f2e7b24
Merge branch 'main' of github.com:lifinance/contracts into LF-11057-d…
ezynda3 Jan 28, 2025
b7be7fc
update logs
ezynda3 Jan 28, 2025
121ded7
Apply suggestions from code review
ezynda3 Jan 28, 2025
4d1d21a
update .env.example
ezynda3 Jan 28, 2025
755441f
Merge branch 'LF-11057-deploy-to-abstract' of github.com:lifinance/co…
ezynda3 Jan 28, 2025
64c0d97
Update script/deploy/zksync/DeployLiFiDEXAggregator.s.sol
ezynda3 Jan 28, 2025
6deb02c
remove unused files
ezynda3 Jan 29, 2025
636e112
Merge branch 'LF-11057-deploy-to-abstract' of github.com:lifinance/co…
ezynda3 Jan 29, 2025
a787ff8
udpate to use config helper
ezynda3 Jan 29, 2025
b584e86
update config
0xDEnYO Jan 30, 2025
46088a9
Merge remote-tracking branch 'origin/LF-11057-deploy-to-abstract' int…
0xDEnYO Jan 30, 2025
21ce908
deploy to sonic and abstract (verified)
0xDEnYO Jan 30, 2025
ee573b8
improved getChainId helper function to read from networks.json
0xDEnYO Jan 30, 2025
6a607e3
script fixes
0xDEnYO Jan 30, 2025
de91009
rename zksync deploy script in anticipation of other PR
0xDEnYO Jan 30, 2025
2ec39b5
diamond logs updated
0xDEnYO Jan 30, 2025
bb37611
Merge branch 'main' of github.com:lifinance/contracts into deploy-sym…
0xDEnYO Jan 30, 2025
80bec1b
Merge branch 'main' into deploy-symbiosis-to-sonic-and-abstract
0xDEnYO Feb 4, 2025
eed7f21
Merge branch 'main' into deploy-symbiosis-to-sonic-and-abstract
0xDEnYO Feb 4, 2025
b9eb99d
Merge branch 'deploy-symbiosis-to-sonic-and-abstract' of github.com:l…
0xDEnYO Feb 4, 2025
482e5e5
Merge branch 'main' of github.com:lifinance/contracts into deploy-sym…
0xDEnYO Feb 5, 2025
8bcd587
Merge branch 'main' of github.com:lifinance/contracts into deploy-sym…
0xDEnYO Feb 5, 2025
0be521e
fix merge issues
0xDEnYO Feb 5, 2025
a8fb855
fix deploy log
0xDEnYO Feb 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deploy to sonic and abstract (verified)
0xDEnYO committed Jan 30, 2025
commit 21ce9088a71ba15448a2b289d1dfd86a43736f61
30 changes: 29 additions & 1 deletion deployments/_deployments_log_file.json
Original file line number Diff line number Diff line change
@@ -22649,6 +22649,34 @@
}
]
}
},
"abstract": {
"production": {
"1.0.0": [
{
"ADDRESS": "0xe4db6A19c9F53fB946D31772a48002e1f9cB8763",
"OPTIMIZER_RUNS": "1000000",
"TIMESTAMP": "2025-01-30 08:23:59",
"CONSTRUCTOR_ARGS": "0x0000000000000000000000002e818e50b913457015e1277b43e469b63ac5d3d7000000000000000000000000664376638fe57642342009f49e1ca4caf74b26d3",
"SALT": "",
"VERIFIED": "true"
}
]
}
},
"sonic": {
"production": {
"1.0.0": [
{
"ADDRESS": "0xC8C286F373c5b4a4c6a2D6369003477D76584D7F",
"OPTIMIZER_RUNS": "1000000",
"TIMESTAMP": "2025-01-30 08:38:20",
"CONSTRUCTOR_ARGS": "0x000000000000000000000000da8057acb94905eb6025120cb2c38415fd81bfeb000000000000000000000000b7af032a0c8d350705ed7e4e3802377731a0ca07",
"SALT": "",
"VERIFIED": "false"
}
]
}
}
},
"MayanBridgeFacet": {
@@ -28143,4 +28171,4 @@
}
}
}
}
}
5 changes: 3 additions & 2 deletions deployments/abstract.json
Original file line number Diff line number Diff line change
@@ -22,5 +22,6 @@
"LiFiDEXAggregator": "0xFC863E1418C0C5935e7Bd9C8f3129Aa0442153DF",
"GasZipFacet": "0x79ae44B0C33FDC804EB0A6e4A1c1434565264cfE",
"GasZipPeriphery": "0x2A3e04627E554b57163C078fd1d6698A655aeA12",
"EmergencyPauseFacet": "0xDD5ae29dfA6634b186C8f842064A12a09bE9d2F8"
}
"EmergencyPauseFacet": "0xDD5ae29dfA6634b186C8f842064A12a09bE9d2F8",
"SymbiosisFacet": "0xe4db6A19c9F53fB946D31772a48002e1f9cB8763"
}
47 changes: 24 additions & 23 deletions deployments/sonic.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
{
"DiamondCutFacet": "0x7052D07D749Cb8446E32098B7ba64ad12Cf638be",
"DiamondLoupeFacet": "0xEB014fd2fd6e6f9C79d31f7fE4AF2B8B5694A03f",
"OwnershipFacet": "0x1AA34e2BcA10BfA3ab770E680409090458Aa550A",
"DexManagerFacet": "0x8158CB90bd860ff75a8FA152611bff0Db3b28360",
"AccessManagerFacet": "0xF72c17d1e3b047Ff8f7e9617c6b7E4c9c335eD08",
"WithdrawFacet": "0xdcf9bef6B1197979876cEfbAA4507F68A50Ce8Ad",
"PeripheryRegistryFacet": "0x2Db2A9Df6f42eeA36f4f9003be8C0cCd2d439bd0",
"GenericSwapFacet": "0x2e640bB8452aA810ED8c259054661E9BE3f2704B",
"LIFuelFacet": "0x1172FAF198C05121e858a9e504EF68f2bAe38833",
"CalldataVerificationFacet": "0x70A18260Be23D9E154cad53e049A55B95221EA82",
"StandardizedCallFacet": "0x6408794f2752e0e8a389813D47cFc5452A4133Aa",
"LiFiDiamond": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
"GenericSwapFacetV3": "0xf24c9914D3a89F16aD9C87fa549FF24359a31715",
"EmergencyPauseFacet": "0x92a0479cc9D087874faEBA3402891BEafFfB9d8e",
"GasZipFacet": "0xe5CDC4f90B30dA151f7257A02988102c339Db1cA",
"ERC20Proxy": "0x55A5cE71307Ec425F0E533400A0bcEb136e6E800",
"Executor": "0x1B874Aae59d738079Fe3E4F7D90B5793D3a51481",
"FeeCollector": "0xaFb8cC8fCd71cd768Ce117C11eB723119FCDb1f8",
"Receiver": "0xbE539601FDf7736A4Dd730008082Bf2C16e6f728",
"LiFuelFeeCollector": "0xbA01f8b54F8F6B3789Bc9E1Bbd7206bE4e6830e5",
"TokenWrapper": "0x51f5A9675A0663C3EC2b46121eB1504687922911",
"LiFiDEXAggregator": "0xAdf8d87723Ec7f011Ae56DDD6dC10FA8b2C3863A",
"GasZipPeriphery": "0x3925eFbD0C1d9c119eC771649052eed7587094AA"
"DiamondCutFacet": "0x7052D07D749Cb8446E32098B7ba64ad12Cf638be",
"DiamondLoupeFacet": "0xEB014fd2fd6e6f9C79d31f7fE4AF2B8B5694A03f",
"OwnershipFacet": "0x1AA34e2BcA10BfA3ab770E680409090458Aa550A",
"DexManagerFacet": "0x8158CB90bd860ff75a8FA152611bff0Db3b28360",
"AccessManagerFacet": "0xF72c17d1e3b047Ff8f7e9617c6b7E4c9c335eD08",
"WithdrawFacet": "0xdcf9bef6B1197979876cEfbAA4507F68A50Ce8Ad",
"PeripheryRegistryFacet": "0x2Db2A9Df6f42eeA36f4f9003be8C0cCd2d439bd0",
"GenericSwapFacet": "0x2e640bB8452aA810ED8c259054661E9BE3f2704B",
"LIFuelFacet": "0x1172FAF198C05121e858a9e504EF68f2bAe38833",
"CalldataVerificationFacet": "0x70A18260Be23D9E154cad53e049A55B95221EA82",
"StandardizedCallFacet": "0x6408794f2752e0e8a389813D47cFc5452A4133Aa",
"LiFiDiamond": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
"GenericSwapFacetV3": "0xf24c9914D3a89F16aD9C87fa549FF24359a31715",
"EmergencyPauseFacet": "0x92a0479cc9D087874faEBA3402891BEafFfB9d8e",
"GasZipFacet": "0xe5CDC4f90B30dA151f7257A02988102c339Db1cA",
"ERC20Proxy": "0x55A5cE71307Ec425F0E533400A0bcEb136e6E800",
"Executor": "0x1B874Aae59d738079Fe3E4F7D90B5793D3a51481",
"FeeCollector": "0xaFb8cC8fCd71cd768Ce117C11eB723119FCDb1f8",
"Receiver": "0xbE539601FDf7736A4Dd730008082Bf2C16e6f728",
"LiFuelFeeCollector": "0xbA01f8b54F8F6B3789Bc9E1Bbd7206bE4e6830e5",
"TokenWrapper": "0x51f5A9675A0663C3EC2b46121eB1504687922911",
"LiFiDEXAggregator": "0xAdf8d87723Ec7f011Ae56DDD6dC10FA8b2C3863A",
"GasZipPeriphery": "0x3925eFbD0C1d9c119eC771649052eed7587094AA",
"SymbiosisFacet": "0xC8C286F373c5b4a4c6a2D6369003477D76584D7F"
}
35 changes: 35 additions & 0 deletions script/deploy/zksync/DeploySymbiosisFacet.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import { DeployScriptBase } from "./utils/DeployScriptBase.sol";
import { stdJson } from "forge-std/Script.sol";
import { SymbiosisFacet } from "lifi/Facets/SymbiosisFacet.sol";

contract DeployScript is DeployScriptBase {
using stdJson for string;

constructor() DeployScriptBase("SymbiosisFacet") {}

function run()
public
returns (SymbiosisFacet deployed, bytes memory constructorArgs)
{
constructorArgs = getConstructorArgs();
deployed = SymbiosisFacet(deploy(type(SymbiosisFacet).creationCode));
}

function getConstructorArgs() internal override returns (bytes memory) {
string memory path = string.concat(root, "/config/symbiosis.json");

address metaRouter = _getConfigContractAddress(
path,
string.concat(".", network, ".metaRouter")
);
address gateway = _getConfigContractAddress(
path,
string.concat(".", network, ".gateway")
);

return abi.encode(metaRouter, gateway);
}
}