-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* strategy draft * updates * add tests fmt * update strategy name * add deploy script * update bun * deploy on sepolia * add docs * remove unused var --------- Co-authored-by: Aditya Anand M C <[email protected]>
- Loading branch information
1 parent
4eaa558
commit cf37467
Showing
11 changed files
with
1,572 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
734 changes: 734 additions & 0 deletions
734
contracts/strategies/_poc/easy-rf/EasyRetroFundingStrategy.sol
Large diffs are not rendered by default.
Oops, something went wrong.
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
Empty file.
31 changes: 31 additions & 0 deletions
31
...logs/strategies/deployEasyRetrofunding/sepolia/20250107_150313/deploy-20250107_150313.log
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,31 @@ | ||
|
||
//////////////////////////////////////////////////// | ||
Deploys EasyRetroFundingStrategy.sol on sepolia | ||
//////////////////////////////////////////////////// | ||
|
||
┌─────────────────┬──────────────────────────────────────────────┐ | ||
│ (index) │ Values │ | ||
├─────────────────┼──────────────────────────────────────────────┤ | ||
│ contract │ 'EasyRetroFundingStrategy.sol' │ | ||
│ chainId │ 11155111 │ | ||
│ network │ 'sepolia' │ | ||
│ deployerAddress │ '0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C' │ | ||
│ balance │ '5.654046747032034805' │ | ||
└─────────────────┴──────────────────────────────────────────────┘ | ||
Deploying EasyRetroFundingStrategy.sol | ||
[35mContract EasyRetroFundingStrategy deployed at address: 0x26B583bF90adAFBf5973B03728ba9a3120D8747D[0m | ||
|
||
Verifying contract... | ||
Successfully submitted source code for contract | ||
contracts/strategies/_poc/easy-rf/EasyRetroFundingStrategy.sol:EasyRetroFundingStrategy at 0x26B583bF90adAFBf5973B03728ba9a3120D8747D | ||
for verification on the block explorer. Waiting for verification result... | ||
|
||
Successfully verified contract EasyRetroFundingStrategy on the block explorer. | ||
https://sepolia.etherscan.io/address/0x26B583bF90adAFBf5973B03728ba9a3120D8747D#code | ||
[90m | ||
Validating getAllo() == 0x1133eA7Af70876e64665ecD07C0A0476d09465a1[0m | ||
[32m ✅ PASSED with Result: 0x1133eA7Af70876e64665ecD07C0A0476d09465a1[0m | ||
[90m | ||
Validating getStrategyId() == 0x060ffd6c79f918819a622248c6823443412aedea610cc19c89d28dadcdef7fba[0m | ||
[32m ✅ PASSED with Result: 0x060ffd6c79f918819a622248c6823443412aedea610cc19c89d28dadcdef7fba[0m | ||
Adding EasyRetroFundingStrategy v1.0 to cloneable strategies... |
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
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 @@ | ||
{ | ||
"11155111": { | ||
"id": "0x060ffd6c79f918819a622248c6823443412aedea610cc19c89d28dadcdef7fba", | ||
"name": "EasyRetroFundingStrategy", | ||
"version": "v1.0", | ||
"address": "0x26B583bF90adAFBf5973B03728ba9a3120D8747D", | ||
"deployerAddress": "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C" | ||
} | ||
} |
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,43 @@ | ||
import { ethers } from "hardhat"; | ||
import { commonConfig } from "../config/common.config"; | ||
import { strategyConfig } from "../config/strategies.config"; | ||
import { Validator } from "../utils/Validator"; | ||
import { deployStrategies, deployStrategyDirectly } from "./deployStrategies"; | ||
|
||
export const deployEasyRetroFunding = async () => { | ||
const network = await ethers.provider.getNetwork(); | ||
const chainId = Number(network.chainId); | ||
|
||
const strategyParams = strategyConfig[chainId]["easy-retro-funding"]; | ||
|
||
const address = await deployStrategies( | ||
strategyParams.name, | ||
strategyParams.version, | ||
true | ||
); | ||
|
||
console.log("==> address", address); | ||
|
||
// const validator = await new Validator( | ||
// strategyParams.name, | ||
// address, | ||
// ); | ||
|
||
// await validator.validate("PERMIT2", [], commonConfig[chainId].permit2Address); | ||
|
||
// await deployStrategyDirectly( | ||
// strategyParams.name, | ||
// strategyParams.version, | ||
// [commonConfig[chainId].permit2Address], | ||
// true, | ||
// ); | ||
|
||
}; | ||
|
||
// Check if this script is the main module (being run directly) | ||
if (require.main === module) { | ||
deployEasyRetroFunding().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); | ||
} |
Oops, something went wrong.