Skip to content

Commit

Permalink
Merge pull request #160 from OasisDEX/kk/historical-blocks
Browse files Browse the repository at this point in the history
FEAT - Add historic blocks to graphql api
  • Loading branch information
halaprix authored Oct 27, 2022
2 parents ae68a9d + 6827c31 commit 0b90ce1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/borrow/migrations/044-historic-blocks.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CREATE VIEW api.historic_block AS
SELECT b.number,
b.hash,
b.timestamp
FROM vulcan2x.block b
ORDER BY b.timestamp desc;

0 comments on commit 0b90ce1

Please sign in to comment.