Skip to content

Commit

Permalink
Merge branch 'main' of github.com:lifinance/contracts into deploy-sym…
Browse files Browse the repository at this point in the history
…biosis-to-sonic-and-abstract
  • Loading branch information
0xDEnYO committed Feb 5, 2025
2 parents 482e5e5 + 303dd23 commit 8bcd587
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/protectSecurityRelevantCode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pullNumber,
per_page: 100, // makes sure that only the LATEST 100 items are fetched (without this flag it gets all, starting with the first items)
});
// make sure that reviews are available
Expand Down
2 changes: 1 addition & 1 deletion deployments/abstract.diamond.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@
"TokenWrapper": "0x527868EDbF533C3Ac540f4457405f701D9d4c7c1"
}
}
}
}
2 changes: 1 addition & 1 deletion deployments/abstract.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"GasZipPeriphery": "0x2A3e04627E554b57163C078fd1d6698A655aeA12",
"EmergencyPauseFacet": "0xDD5ae29dfA6634b186C8f842064A12a09bE9d2F8",
"SymbiosisFacet": "0xe4db6A19c9F53fB946D31772a48002e1f9cB8763"
}
}
9 changes: 4 additions & 5 deletions script/deploy/zksync/DeployLiFiDEXAggregator.zksync.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ contract DeployScript is DeployScriptBase {

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

address[] memory priviledgedUsers = new address[](1);
priviledgedUsers[0] = _getConfigContractAddress(path, ".pauserWallet");

// the original RouteProcessor4.sol is also deployed with address(0) for _bentoBox
address withdrawWalletAddress = _getConfigContractAddress(
path,
".withdrawWallet"
);
return abi.encode(address(0), priviledgedUsers, withdrawWalletAddress);
address refundWalletAddress = json.readAddress(".refundWallet");

return abi.encode(address(0), priviledgedUsers, refundWalletAddress);
}
}
5 changes: 5 additions & 0 deletions script/helperFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1426,15 +1426,18 @@ function verifyContract() {
if [ "$ARGS" = "0x" ]; then
# only show output if DEBUG flag is activated
if [[ "$DEBUG" == *"true"* ]]; then
if [[ $NETWORK == "zksync" || $NETWORK == "abstract" ]]; then
if [[ $NETWORK == "zksync" || $NETWORK == "abstract" ]]; then
# Verify using foundry-zksync
FOUNDRY_PROFILE=zksync ./foundry-zksync/forge verify-contract --zksync --watch --chain "$CHAIN_ID" "$ADDRESS" "$FULL_PATH" --skip-is-verified-check -e "${!API_KEY}"
FOUNDRY_PROFILE=zksync ./foundry-zksync/forge verify-contract --zksync --watch --chain "$CHAIN_ID" "$ADDRESS" "$FULL_PATH" --skip-is-verified-check -e "${!API_KEY}"
else
forge verify-contract --watch --chain "$CHAIN_ID" "$ADDRESS" "$FULL_PATH" --skip-is-verified-check -e "${!API_KEY}"
fi

# TODO: add code that automatically identifies blockscout verification
else
if [[ $NETWORK == "zksync" || $NETWORK == "abstract" ]]; then
if [[ $NETWORK == "zksync" || $NETWORK == "abstract" ]]; then
# Verify using foundry-zksync
FOUNDRY_PROFILE=zksync ./foundry-zksync/forge verify-contract --zksync --watch --chain "$CHAIN_ID" "$ADDRESS" "$FULL_PATH" --skip-is-verified-check -e "${!API_KEY}" >/dev/null 2>&1
Expand All @@ -1445,13 +1448,15 @@ function verifyContract() {
else
# only show output if DEBUG flag is activated
if [[ "$DEBUG" == *"true"* ]]; then
if [[ $NETWORK == "zksync" || $NETWORK == "abstract" ]]; then
if [[ $NETWORK == "zksync" || $NETWORK == "abstract" ]]; then
# Verify using foundry-zksync
FOUNDRY_PROFILE=zksync ./foundry-zksync/forge verify-contract --zksync --watch --chain "$CHAIN_ID" "$ADDRESS" "$FULL_PATH" --constructor-args $ARGS --skip-is-verified-check -e "${!API_KEY}"
else
forge verify-contract --watch --chain "$CHAIN_ID" "$ADDRESS" "$FULL_PATH" --constructor-args $ARGS --skip-is-verified-check -e "${!API_KEY}"
fi
else
if [[ $NETWORK == "zksync" || $NETWORK == "abstract" ]]; then
if [[ $NETWORK == "zksync" || $NETWORK == "abstract" ]]; then
# Verify using foundry-zksync
FOUNDRY_PROFILE=zksync ./foundry-zksync/forge verify-contract --zksync --watch --chain "$CHAIN_ID" "$ADDRESS" "$FULL_PATH" --constructor-args $ARGS --skip-is-verified-check -e "${!API_KEY}" >/dev/null 2>&1
Expand Down

0 comments on commit 8bcd587

Please sign in to comment.