Skip to content

Commit

Permalink
feat(api-cardano-db-hasura): add Epoch.fees
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyslbw committed Sep 16, 2020
1 parent 208e54b commit 4482338
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,13 @@
- role: cardano-graphql
permission:
columns:
- output
- blocksCount
- fees
- lastBlockTime
- number
- transactionsCount
- output
- startedAt
- lastBlockTime
- blocksCount
- transactionsCount
filter: {}
limit: 100
allow_aggregations: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ LEFT OUTER JOIN pool_hash

CREATE VIEW "Epoch" AS
SELECT
epoch.fees AS "fees",
epoch.out_sum AS "output",
epoch.no AS "number",
epoch.tx_count AS "transactionsCount",
Expand Down
6 changes: 6 additions & 0 deletions packages/api-cardano-db-hasura/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ type Epoch {
where: Block_bool_exp
): Block_aggregate!
blocksCount: String!
fees: BigInt!
output: String!
number: Int!
transactionsCount: String!
Expand All @@ -677,13 +678,15 @@ input Epoch_bool_exp {
_or: [Epoch_bool_exp]
blocks: Block_bool_exp
blocksCount: text_comparison_exp
fees: BigInt_comparison_exp
number: Int_comparison_exp
output: text_comparison_exp
transactionsCount: text_comparison_exp
}

input Epoch_order_by {
blocksCount: order_by
fees: order_by
number: order_by
output: order_by
transactionsCount: order_by
Expand All @@ -702,19 +705,22 @@ type Epoch_aggregate_fields {

type Epoch_max_fields {
blocksCount: String!
fees: String!
number: Int!
output: String!
transactionsCount: String!
}

type Epoch_min_fields {
blocksCount: String!
fees: String!
output: String!
transactionsCount: String!
}

type Epoch_sum_fields {
blocksCount: String!
fees: String!
output: String!
transactionsCount: String!
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ query aggregatedDataWithinEpoch (
}
}
}
fees
number
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ query epochDetailsByNumber (
){
epochs( where: { number: { _eq: $number }}) {
blocksCount
fees
output
number
transactionsCount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ query epochDetailsInRange (
) {
epochs( where: { number: { _in: $numbers }}) {
blocksCount
fees
output
number
transactionsCount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ query numberOfBlocksProducedByLeaderInEpoch (
count
}
}
fees
number
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Object {
},
},
},
"fees": 1033002678,
"number": 1,
},
],
Expand All @@ -64,6 +65,7 @@ Object {
"count": "3123",
},
},
"fees": 1033002678,
"number": 1,
},
],
Expand All @@ -75,6 +77,7 @@ Object {
"epochs": Array [
Object {
"blocksCount": "21590",
"fees": 1033002678,
"lastBlockTime": "2017-10-03T21:44:31Z",
"number": 1,
"output": "101402912214214220",
Expand All @@ -90,6 +93,7 @@ Object {
"epochs": Array [
Object {
"blocksCount": "21590",
"fees": 1033002678,
"lastBlockTime": "2017-10-03T21:44:31Z",
"number": 1,
"output": "101402912214214220",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export const epoch1 = {
basic: {
startedAt: '2017-09-28T21:44:51Z',
blocksCount: '21590',
fees: 1033002678,
lastBlockTime: '2017-10-03T21:44:31Z',
output: '101402912214214220',
number: 1,
Expand Down Expand Up @@ -30,6 +31,7 @@ export const epoch1 = {
}
}
},
fees: 1033002678,
number: 1
}
}

0 comments on commit 4482338

Please sign in to comment.