Skip to content

Commit

Permalink
480/base/replace block time (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
yayay927 authored Nov 4, 2021
1 parent a186101 commit bb0dd03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit bb0dd03

Please sign in to comment.