-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from bgd-labs/feat/zksync
feat: add deploy script for zksync gelato keeper
- Loading branch information
Showing
7 changed files
with
58 additions
and
14 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
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,6 +1,7 @@ | ||
# build and cache | ||
cache/ | ||
out/ | ||
zkout/ | ||
|
||
# general | ||
.env | ||
|
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
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
Submodule aave-address-book
updated
501 files
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,9 @@ | ||
chainlink/=lib/chainlink/contracts/ | ||
openzeppelin-contracts/=lib/aave-governance-v3/lib/openzeppelin-contracts/ | ||
aave-governance-v3/=lib/aave-governance-v3/ | ||
aave-address-book/=lib/aave-address-book/src/ | ||
aave-delivery-infrastructure/=lib/aave-governance-v3/lib/aave-delivery-infrastructure/src/ | ||
solidity-utils/=lib/solidity-utils/src/ | ||
aave-token-v3/=lib/aave-governance-v3/lib/aave-token-v3/src/ | ||
aave-helpers/=lib/aave-helpers/src/ | ||
aave-v3-origin/=lib/aave-address-book/lib/aave-v3-origin/src |
21 changes: 21 additions & 0 deletions
21
zksync/scripts/GelatoGasCappedExecutionChainRobotKeeper.s.sol
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,21 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.0; | ||
|
||
import {Script} from 'forge-std/Script.sol'; | ||
import {console} from 'forge-std/console.sol'; | ||
import {GelatoGasCappedExecutionChainRobotKeeper} from '../../src/contracts/gelato/GelatoGasCappedExecutionChainRobotKeeper.sol'; | ||
import {GovernanceV3ZkSync} from 'aave-address-book/GovernanceV3ZkSync.sol'; | ||
|
||
contract DeployZkSync is Script { | ||
GelatoGasCappedExecutionChainRobotKeeper public keeper; | ||
|
||
function run() external { | ||
vm.startBroadcast(); | ||
keeper = new GelatoGasCappedExecutionChainRobotKeeper(address(GovernanceV3ZkSync.PAYLOADS_CONTROLLER)); // payloads controller | ||
keeper.setMaxGasPrice(50 gwei); | ||
keeper.transferOwnership(0xe3FD707583932a99513a5c65c8463De769f5DAdF); | ||
|
||
console.log('Gelato Gas Capped Execution chain zkSync keeper address', address(keeper)); | ||
vm.stopBroadcast(); | ||
} | ||
} |