Skip to content

Commit

Permalink
rmv unused file
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Dec 17, 2024
1 parent 820f5d9 commit 5e67221
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 91 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"test": "tsx ./src/adapters/test.ts",
"test-txs": "tsx ./src/utils/testAdapterHistorical.ts",
"ts": "tsc --noEmit",
"adapter": "export $(cat .env.test | xargs) && tsx ./src/utils/runAdapterHistorical.ts",
"aggregate": "export $(cat .env.test | xargs) && tsx ./src/utils/testaggregate.ts",
"daily-volume": "export $(cat .env.test | xargs) && tsx ./src/utils/testDailyVolume.ts",
"adapter": "export $(cat .env | xargs) && tsx ./src/utils/runAdapterHistorical.ts",
"aggregate": "export $(cat .env | xargs) && tsx ./src/utils/testaggregate.ts",
"daily-volume": "export $(cat .env | xargs) && tsx ./src/utils/testDailyVolume.ts",
"dev": "vite",
"build": "vite build",
"start": "node ./dist/index.js",
Expand Down
7 changes: 2 additions & 5 deletions src/utils/insertRecordedBlocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const insertRecordedBlocks = async (adapterName: string, startTimestamp: number,
const blockPromises = Promise.all(
Object.keys(adapter).map(async (chain) => {
const chainContractsAreOn = bridgeNetwork.chainMapping?.[chain as Chain]
? bridgeNetwork.chainMapping?.[chain as Chain]
: chain;
? bridgeNetwork.chainMapping?.[chain as Chain]
: chain;
if (recordedBlocks[`${adapterName}:${chain}`]) {
console.info(`Adapter ${adapterName} has recorded blocks entry on chain ${chain}, skipping.`);
} else {
Expand All @@ -36,9 +36,6 @@ const insertRecordedBlocks = async (adapterName: string, startTimestamp: number,
})
);
await blockPromises;
FileSystem.writeFile("recordedBlocks.json", JSON.stringify(recordedBlocks), (error: any) => {
if (error) throw error;
});
};

insertRecordedBlocks("polynetwork", 1661904000, 1668618000);
83 changes: 0 additions & 83 deletions src/utils/recordedBlocks.json

This file was deleted.

0 comments on commit 5e67221

Please sign in to comment.