@@ -3,6 +3,7 @@ import { writeFile } from "node:fs/promises";
33import { pino } from "pino" ;
44
55import { AccountsCounterPlugin } from "../src/plugins/accounts-counter/index.js" ;
6+ import { AdaptersPlugin } from "../src/plugins/adapters/AdaptersPlugin.js" ;
67import { BotsPlugin } from "../src/plugins/bots/index.js" ;
78import { DegenDistributorsPlugin } from "../src/plugins/degen-distributors/index.js" ;
89import { Pools7DAgoPlugin } from "../src/plugins/pools-history/index.js" ;
@@ -30,14 +31,15 @@ async function example(): Promise<void> {
3031 const sdk = await GearboxSDK . attach ( {
3132 rpcURLs : [ RPC ] ,
3233 timeout : 480_000 ,
33- // blockNumber: 22118452, // 21977000, // 22118452
34+ blockNumber : 23928400 ,
3435 // redstoneHistoricTimestamp: true,
3536 // addressProvider: ADDRESS_PROVIDER,
3637 // marketConfigurators: [],
3738 logger,
3839 // ignoreUpdateablePrices: true,
3940 strictContractTypes : true ,
4041 plugins : {
42+ adapters : new AdaptersPlugin ( true ) ,
4143 zappers : new ZappersPlugin ( [ ] , true ) ,
4244 bots : new BotsPlugin ( true ) ,
4345 degen : new DegenDistributorsPlugin ( true ) ,
@@ -47,9 +49,11 @@ async function example(): Promise<void> {
4749 } ,
4850 redstone : {
4951 ignoreMissingFeeds : true ,
52+ historicTimestamp : true ,
5053 } ,
5154 pyth : {
5255 ignoreMissingFeeds : true ,
56+ historicTimestamp : true ,
5357 } ,
5458 } ) ;
5559 // kind = "hydrated";
@@ -79,11 +83,11 @@ async function example(): Promise<void> {
7983 const prefix = RPC . includes ( "127.0.0.1" ) ? "anvil_" : "" ;
8084 const net = sdk . networkType ;
8185 await writeFile (
82- `tmp/state_ ${ kind } _human_${ net } _${ prefix } ${ sdk . currentBlock } .json` ,
86+ `tmp/state_next_ ${ kind } _human_${ net } _${ prefix } ${ sdk . currentBlock } .json` ,
8387 json_stringify ( sdk . stateHuman ( ) ) ,
8488 ) ;
8589 await writeFile (
86- `tmp/state_ ${ kind } _${ net } _${ prefix } ${ sdk . currentBlock } .json` ,
90+ `tmp/state_next_ ${ kind } _${ net } _${ prefix } ${ sdk . currentBlock } .json` ,
8791 json_stringify ( sdk . state ) ,
8892 ) ;
8993
0 commit comments