-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swaps: Deployment Script and Init (#141)
* feat: add specific payloads * chore: remove allowed tokens * feat: finish updating aave swaps * feat: update addresses * chore: update readme * chore: index events * chore: update README * chore: add deployment script * chore: fix deployment via proxy
- Loading branch information
1 parent
9ca17b6
commit 521cb08
Showing
2 changed files
with
27 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity 0.8.19; | ||
|
||
import {Script} from 'forge-std/Script.sol'; | ||
import {AaveMisc} from 'aave-address-book/AaveMisc.sol'; | ||
import {TransparentProxyFactory} from 'solidity-utils/contracts/transparent-proxy/TransparentProxyFactory.sol'; | ||
|
||
import {AaveSwapper} from './AaveSwapper.sol'; | ||
|
||
contract DeplyAaveSwapper is Script { | ||
function run() external { | ||
vm.startBroadcast(); | ||
|
||
address aaveSwapper = address(new AaveSwapper()); | ||
TransparentProxyFactory(AaveMisc.TRANSPARENT_PROXY_FACTORY_ETHEREUM).create( | ||
aaveSwapper, | ||
AaveMisc.PROXY_ADMIN_ETHEREUM, | ||
abi.encodeWithSelector(AaveSwapper.initialize.selector) | ||
); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
521cb08
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Foundry report
Build log
Test success 🌈