-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.ts
50 lines (44 loc) · 1.19 KB
/
manifest.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { Manifest } from "./deps.ts";
import { aToken } from "./ABI/aToken.ts";
import { AccountCollateral, AccountDebt, BorrowStats } from "./entities.ts";
import {
collateralMintHandler,
sDebtMintHandler,
vDebtMintHandler,
} from "./handlers/mintHandler.ts";
import {
collateralBurnHandler,
sDebtBurnHandler,
vDebtBurnHandler,
} from "./handlers/burnHandler.ts";
import {
aTokenSources,
sDebtTokenSources,
vDebtTokenSources,
} from "./sources.ts";
import { vDebtToken } from "./ABI/vDebtToken.ts";
import { sDebtToken } from "./ABI/sDebtToken.ts";
const manifest = new Manifest("GHO");
const sepolia = manifest
.chain("sepolia", { blockRange: 1000n });
sepolia.contract(aToken)
.addSources(aTokenSources)
.addEventHandlers({
Mint: collateralMintHandler,
Burn: collateralBurnHandler,
});
sepolia.contract(vDebtToken)
.addSources(vDebtTokenSources)
.addEventHandlers({
Mint: vDebtMintHandler,
Burn: vDebtBurnHandler,
});
sepolia.contract(sDebtToken)
.addSources(sDebtTokenSources)
.addEventHandlers({
Mint: sDebtMintHandler,
Burn: sDebtBurnHandler,
});
export default manifest
.addEntities([AccountCollateral, AccountDebt, BorrowStats])
.build();