Skip to content

Commit

Permalink
build cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wslyvh committed Aug 5, 2024
1 parent 0ef59bf commit 4598163
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 39 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
"twitter:random": "ts-node src/tools/twitter-random",
"twitter:tip": "ts-node src/tools/twitter-tip",
"twitter:top": "ts-node src/tools/twitter-top",
"gas:fetch": "ts-node src/tools/gas-fetch",
"gas:index": "ts-node src/tools/gas-indexer",
"newsletter": "ts-node src/tools/newsletter",
"reddit": "ts-node src/tools/reddit",
"awesome": "ts-node src/tools/awesome"
Expand Down
15 changes: 0 additions & 15 deletions src/pages/api/indexer.tsx

This file was deleted.

8 changes: 2 additions & 6 deletions src/services/indexer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { GasFee } from 'types/gas'

const defaultBlockLimit = 10

export type NETWORKS = 'mainnet' | 'polygon' | 'optimism' | 'arbitrum' | 'base'

export async function GetGasData(network: NETWORKS = 'mainnet') {
Expand All @@ -17,8 +15,7 @@ export async function GetGasData(network: NETWORKS = 'mainnet') {
lastHour: Math.round(average * 100) / 100,
fees: body.data.blocks,
}
}
catch (error) {
} catch (error) {
console.error('Error:', error)
}

Expand All @@ -35,8 +32,7 @@ export async function GetAverage(period: 'hour' | 'day', limit: number = 24, net
const res = await fetch(`https://www.ethgastracker.com/api/gas/average/${network}`)
const body = await res.json()
return body.data.data
}
catch (error) {
} catch (error) {
console.error('Error:', error)
}
}
16 changes: 0 additions & 16 deletions src/tools/gas-indexer.ts

This file was deleted.

0 comments on commit 4598163

Please sign in to comment.