-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add LatestGasPrice component (#470)
* feat: add LatestGasPrice component * feat: Add Blob gas price to ExplorerDetails component * feat: Update ExplorerDetails component to display Blob gas price with EtherUnitDisplay * chore: update changeset
- Loading branch information
1 parent
f1484d7
commit 4bc7884
Showing
6 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@blobscan/api": minor | ||
--- | ||
|
||
Added procedure to get the latest block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@blobscan/web": minor | ||
--- | ||
|
||
Added blob gas price to the ExplorerDetails component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { prisma } from "@blobscan/db"; | ||
|
||
import { publicProcedure } from "../../procedures"; | ||
|
||
export const getLatestBlock = publicProcedure.query(async () => { | ||
return await prisma.block.findLatest(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import { t } from "../../trpc-client"; | ||
import { getAll } from "./getAll"; | ||
import { getByBlockId } from "./getByBlockId"; | ||
import { getLatestBlock } from "./getGasPrice"; | ||
|
||
export const blockRouter = t.router({ | ||
getAll, | ||
getByBlockId, | ||
getLatestBlock, | ||
}); |