Skip to content

Commit 7c7ef3c

Browse files
committed
fix: bump caches
1 parent 511330c commit 7c7ef3c

File tree

4 files changed

+43
-3
lines changed

4 files changed

+43
-3
lines changed

src/services/OracleServiceV3.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export default class OracleServiceV3 {
130130
this.#loadCachedEvents();
131131
await this.#updateFeeds(block);
132132
this.log.info(`started with ${Object.keys(this.#feeds).length} tokens`);
133+
// await this.#saveEventsCache();
133134

134135
// TODO: TxParser is really old and weird class, until we refactor it it's the best place to have this
135136
TxParser.addTokens(this.config.network);
@@ -265,7 +266,23 @@ export default class OracleServiceV3 {
265266
);
266267
}
267268

269+
// #eventsCache: OracleEvent[] = [];
270+
271+
// async #saveEventsCache(): Promise<void> {
272+
// const data = json_stringify({
273+
// fromBlock: ORACLE_START_BLOCK[this.config.network],
274+
// toBlock: this.#lastBlock,
275+
// logs: this.#eventsCache,
276+
// });
277+
// await writeFile(
278+
// `./oracle-logs-${this.config.network}.json`.toLowerCase(),
279+
// data,
280+
// );
281+
// process.exit(1);
282+
// }
283+
268284
#processEvent(l: OracleEvent): void {
285+
// this.#eventsCache.push(l);
269286
switch (l.eventName) {
270287
case "SetPriceFeed":
271288
this.#setPriceFeed(l);

src/services/data/oracle-logs-arbitrum.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"toBlock": {
77
"__type": "bigint",
8-
"__value": "346360479"
8+
"__value": "365292247"
99
},
1010
"logs": [
1111
{

src/services/data/oracle-logs-mainnet.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"toBlock": {
77
"__type": "bigint",
8-
"__value": "22684011"
8+
"__value": "23076343"
99
},
1010
"logs": [
1111
{
@@ -7200,6 +7200,29 @@
72007200
],
72017201
"transactionHash": "0xac7a6c806c9afa3a172a3a9b6590879398825ce9b1963c25229a4cc38b32a2e1",
72027202
"transactionIndex": 205
7203+
},
7204+
{
7205+
"eventName": "SetReservePriceFeedStatus",
7206+
"args": {
7207+
"token": "0x5E362eb2c0706Bd1d134689eC75176018385430B",
7208+
"active": true
7209+
},
7210+
"address": "0x599f585d1042a14aab194ac8031b2048defdfb85",
7211+
"blockHash": "0x2be68267739b407a7b92366a5b2d52535407933f1a747cbf29e7bff45a180763",
7212+
"blockNumber": {
7213+
"__type": "bigint",
7214+
"__value": "22838462"
7215+
},
7216+
"blockTimestamp": "0x68666c27",
7217+
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
7218+
"logIndex": 546,
7219+
"removed": false,
7220+
"topics": [
7221+
"0x8065e881e49e3c3c04dadba3c10e1abdd738d4aa4a7807b49dc5d4600ec62885",
7222+
"0x0000000000000000000000005e362eb2c0706bd1d134689ec75176018385430b"
7223+
],
7224+
"transactionHash": "0xa3102556d716b63e1384d7e5dc57ef29ec7348093eb41769752cf930f24f1bb1",
7225+
"transactionIndex": 168
72037226
}
72047227
]
72057228
}

src/services/data/oracle-logs-optimism.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"toBlock": {
77
"__type": "bigint",
8-
"__value": "137039785"
8+
"__value": "139408029"
99
},
1010
"logs": [
1111
{

0 commit comments

Comments
 (0)