Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

480/base/replace block time #498

Merged
merged 5 commits into from
Nov 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Changes

- Fix account details denom display ([\#478](https://github.com/forbole/big-dipper-2.0-cosmos/issues/478))
- Replace average block time with average since last hour ([\#480](https://github.com/forbole/big-dipper-2.0-cosmos/issues/480))

# base-v1.6.0 - 2021-11-01

Expand Down
3 changes: 1 addition & 2 deletions src/graphql/block_time.graphql
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
query AverageBlockTime {
averageBlockTime: average_block_time_from_genesis(limit: 1, order_by: {height: desc}) {
averageBlockTime: average_block_time_per_hour(limit: 1, order_by: {height: desc}) {
averageTime: average_time
}
}


query LatestBlockTimestamp($offset: Int = 0) {
block: block(order_by: {height: desc}, limit: 1, offset: $offset) {
timestamp
Expand Down
6 changes: 3 additions & 3 deletions src/graphql/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18622,8 +18622,8 @@ export type AverageBlockTimeQueryVariables = Exact<{ [key: string]: never; }>;


export type AverageBlockTimeQuery = { averageBlockTime: Array<(
{ __typename?: 'average_block_time_from_genesis' }
& { averageTime: Average_Block_Time_From_Genesis['average_time'] }
{ __typename?: 'average_block_time_per_hour' }
& { averageTime: Average_Block_Time_Per_Hour['average_time'] }
)> };

export type LatestBlockTimestampQueryVariables = Exact<{
Expand Down Expand Up @@ -19318,7 +19318,7 @@ export type LatestBlockHeightListenerSubscriptionHookResult = ReturnType<typeof
export type LatestBlockHeightListenerSubscriptionResult = Apollo.SubscriptionResult<LatestBlockHeightListenerSubscription>;
export const AverageBlockTimeDocument = gql`
query AverageBlockTime {
averageBlockTime: average_block_time_from_genesis(
averageBlockTime: average_block_time_per_hour(
limit: 1
order_by: {height: desc}
) {
Expand Down