Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
0xApotheosis committed Apr 17, 2024
1 parent 505426d commit d5fc38a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions scripts/rewards-distribution/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1. `yarn install` to install dependencies
1. `yarn wagmi generate` to generate typings from the compiled Foundry contracts
1. `npx ts-node scripts/rewards-distribution/index.ts` to run
2 changes: 1 addition & 1 deletion scripts/rewards-distribution/simulateStaking.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Address, formatUnits, parseUnits } from "viem";
import { Hex } from "viem";

import MockFOXToken from "../../foundry/out/MockFOXToken.sol/MockFOXToken.json";
import MockFOXToken from "../../foundry/out/MockFOXToken.sol/MockFOXToken.json" with { type: "json" };
import { foxStakingV1Abi } from "./src/generated.ts";
import FoxStaking from "../../foundry/out/FoxStakingV1.sol/FOXStakingV1.json";
import { localPublicClient, localWalletClient } from "./constants.ts";
Expand Down
7 changes: 5 additions & 2 deletions scripts/rewards-distribution/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
"_version": "18.2.0",
"compilerOptions": {
"lib": ["es2023"],
"module": "node16",
"module": "NodeNext",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "node16",
"moduleResolution": "NodeNext",
"resolveJsonModule": true,
"noEmit": true,
"allowImportingTsExtensions": true
},
"ts-node": {
"esm": true
}
}

0 comments on commit d5fc38a

Please sign in to comment.