Skip to content

Commit 9ea5f57

Browse files
committed
fix: add unwinders
1 parent 722f799 commit 9ea5f57

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

contracts/index.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ import {ISiloFlashLoan} from "@gearbox-router/router-v3/contracts/liquidation/IS
1515
import {SiloFLTaker} from "@gearbox-router/router-v3/contracts/liquidation/SiloFLTaker.sol";
1616
import {SiloLiquidator} from "@gearbox-router/router-v3/contracts/liquidation/SiloLiquidator.sol";
1717
import {IGearboxRouter} from "@gearbox-router/router-v3/contracts/interfaces/IGearboxRouter.sol";
18+
import {IUnwinder} from "@gearbox-router/router-v3/contracts/liquidation/IUnwinder.sol";
19+
import {AaveUnwinder} from "@gearbox-router/router-v3/contracts/liquidation/AaveUnwinder.sol";
20+
import {GhoUnwinder} from "@gearbox-router/router-v3/contracts/liquidation/GhoUnwinder.sol";
21+
import {SiloUnwinder} from "@gearbox-router/router-v3/contracts/liquidation/SiloUnwinder.sol";

generate-bytecode.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,24 @@ import GhoFMTaker from "./forge-out/GhoFMTaker.sol/GhoFMTaker.json" assert { typ
66
import GhoLiquidator from "./forge-out/GhoLiquidator.sol/GhoLiquidator.json" assert { type: "json" };
77
import SiloFLTaker from "./forge-out/SiloFLTaker.sol/SiloFLTaker.json" assert { type: "json" };
88
import SiloLiquidator from "./forge-out/SiloLiquidator.sol/SiloLiquidator.json" assert { type: "json" };
9+
import AaveUnwinder from "./forge-out/AaveUnwinder.sol/AaveUnwinder.json" assert { type: "json" };
10+
import GhoUnwinder from "./forge-out/GhoUnwinder.sol/GhoUnwinder.json" assert { type: "json" };
11+
import SiloUnwinder from "./forge-out/SiloUnwinder.sol/SiloUnwinder.json" assert { type: "json" };
912
import { writeFileSync } from "node:fs";
1013

1114
const address = "`0x${string}`";
1215

1316
const bytecode = `export const AaveFLTaker_bytecode: ${address} = "${AaveFLTaker.bytecode.object}";
1417
export const AaveLiquidator_bytecode: ${address} = "${AaveLiquidator.bytecode.object}";
18+
export const AaveUnwinder_bytecode: ${address} = "${AaveUnwinder.bytecode.object}";
1519
export const BatchLiquidator_bytecode: ${address} = "${BatchLiquidator.bytecode.object}";
1620
export const GhoFMTaker_bytecode: ${address} = "${GhoFMTaker.bytecode.object}";
1721
export const GhoLiquidator_bytecode: ${address} = "${GhoLiquidator.bytecode.object}";
22+
export const GhoUnwinder_bytecode: ${address} = "${GhoUnwinder.bytecode.object}";
1823
export const PriceHelper_bytecode: ${address} = "${PriceHelper.bytecode.object}";
1924
export const SiloFLTaker_bytecode: ${address} = "${SiloFLTaker.bytecode.object}";
2025
export const SiloLiquidator_bytecode: ${address} = "${SiloLiquidator.bytecode.object}";
26+
export const SiloUnwinder_bytecode: ${address} = "${SiloUnwinder.bytecode.object}";
2127
`;
2228

2329
writeFileSync("./src/bytecode/bytecode.generated.ts", bytecode, "utf-8");

wagmi.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ export default defineConfig({
2121
"ISiloFlashLoan.sol/ISiloFlashLoan.json",
2222
"SiloFLTaker.sol/SiloFLTaker.json",
2323
"SiloLiquidator.sol/SiloLiquidator.json",
24+
"AaveUnwinder.sol/AaveUnwinder.json",
25+
"GhoUnwinder.sol/GhoUnwinder.json",
26+
"SiloUnwinder.sol/SiloUnwinder.json",
27+
"IUnwinder.sol/IUnwinder.json",
2428
],
2529
forge: {
2630
clean: false,

0 commit comments

Comments
 (0)