Skip to content

Commit 5b10256

Browse files
committed
fix: bytecode generation after adding gho
1 parent f110565 commit 5b10256

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

generate-bytecode.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import AaveFLTaker from "./forge-out/AaveFLTaker.sol/AaveFLTaker.json" assert { type: "json" };
22
import BatchLiquidator from "./forge-out/BatchLiquidator.sol/BatchLiquidator.json" assert { type: "json" };
3-
import Liquidator from "./forge-out/Liquidator.sol/Liquidator.json" assert { type: "json" };
3+
import AaveLiquidator from "./forge-out/AaveLiquidator.sol/AaveLiquidator.json" assert { type: "json" };
44
import PriceHelper from "./forge-out/PriceHelper.sol/PriceHelper.json" assert { type: "json" };
5+
import GhoFMTaker from "./forge-out/GhoFMTaker.sol/GhoFMTaker.json" assert { type: "json" };
6+
import GhoLiquidator from "./forge-out/GhoLiquidator.sol/GhoLiquidator.json" assert { type: "json" };
57
import { writeFileSync } from "node:fs";
68

79
const address = "`0x${string}`";
810

911
const bytecode = `export const AaveFLTaker_bytecode: ${address} = "${AaveFLTaker.bytecode.object}";
12+
export const AaveLiquidator_bytecode: ${address} = "${AaveLiquidator.bytecode.object}";
1013
export const BatchLiquidator_bytecode: ${address} = "${BatchLiquidator.bytecode.object}";
11-
export const Liquidator_bytecode: ${address} = "${Liquidator.bytecode.object}";
14+
export const GhoFMTaker_bytecode: ${address} = "${GhoFMTaker.bytecode.object}";
15+
export const GhoLiquidator_bytecode: ${address} = "${GhoLiquidator.bytecode.object}";
1216
export const PriceHelper_bytecode: ${address} = "${PriceHelper.bytecode.object}";
1317
`;
1418

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"dist"
5151
],
5252
"scripts": {
53-
"clean": "forge clean && rm -rf types dist",
53+
"clean": "forge clean && rm -rf types ./dist ./src/types/generated ./src/**/*.generated.ts",
5454
"build": "forge build && yarn types && yarn abis && yarn bytecode && tsup",
5555
"types": "typechain --target ethers-v6 --out-dir ./src/types/generated ./forge-out/*.sol/*.json",
5656
"forge-build": "forge clean && forge build",

0 commit comments

Comments
 (0)