-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'FuelLabs:main' into feat/all-blocks-UI
- Loading branch information
Showing
17 changed files
with
758 additions
and
5,638 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
packages/app-explorer/src/systems/Home/components/Hero/actions/get-blocks-dashboard.ts
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,6 @@ | ||
import { sdk } from '~/systems/Core/utils/sdk'; | ||
|
||
export const getBlocksDashboard = async () => { | ||
const { data } = await sdk.getBlocksDashboard(); | ||
return data; | ||
}; |
6 changes: 6 additions & 0 deletions
6
packages/app-explorer/src/systems/Home/components/Hero/actions/get-tps.ts
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,6 @@ | ||
import { sdk } from '~/systems/Core/utils/sdk'; | ||
|
||
export const getTPS = async () => { | ||
const { data } = await sdk.tps(); | ||
return data; | ||
}; |
10 changes: 10 additions & 0 deletions
10
packages/graphql/src/graphql/generated/fuelcore/queries/getBlocksDashboard.graphql
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,10 @@ | ||
query getBlocksDashboard{ | ||
getBlocksDashboard{ | ||
nodes{ | ||
timestamp | ||
gasUsed | ||
blockNo | ||
producer | ||
} | ||
} | ||
} |
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
10 changes: 10 additions & 0 deletions
10
packages/graphql/src/graphql/generated/fuelcore/queries/tps.graphql
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,10 @@ | ||
query tps{ | ||
tps{ | ||
nodes{ | ||
start | ||
end | ||
txCount | ||
totalGas | ||
} | ||
} | ||
} |
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
Oops, something went wrong.