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

App: fetch loans from the subgraph #420

Merged
merged 25 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
14dbd7b
DeployLiquity2 demo mode: add stETH + more troves
bpierre Aug 27, 2024
c84e538
Contracts deploy script: fix debug mode output
bpierre Aug 27, 2024
9280f1f
Merge branch 'deployment-demo-troves' into subgraph
bpierre Aug 27, 2024
1a9d086
Merge branch 'contracts-deploy-script-verbose-fix' into subgraph
bpierre Aug 27, 2024
10b04c1
Subgraph
bpierre Aug 27, 2024
6c0d4b1
Remove comment
bpierre Aug 27, 2024
c1c4803
Merge branch 'main' into subgraph
bpierre Aug 30, 2024
3d01fca
Docker compose: move to volumes (+ add a cleanup script)
bpierre Sep 2, 2024
c829da4
DeployLiquity2: fix incorrect trove index
bpierre Sep 2, 2024
0715364
Subgraph: various updates
bpierre Sep 2, 2024
c4aad58
Update README + add a codegen script
bpierre Sep 2, 2024
5522079
Instantiate TroveManager from BoldToken
bpierre Sep 4, 2024
308e622
DeployLiquity2: set interest rate from the demo troves
bpierre Sep 4, 2024
043d610
Subgraph: preserve the magnitude when flooring the rates
bpierre Sep 4, 2024
b6770bc
Update default BoldToken address
bpierre Sep 4, 2024
0079e1e
Merge branch 'main' into subgraph
bpierre Sep 4, 2024
35c5b06
Merge branch 'main' into subgraph
bpierre Sep 4, 2024
4352c72
Subgraph: update scripts
bpierre Sep 10, 2024
6d00b9c
Collateral: add totalDeposited, totalDebt, minCollRatio
bpierre Sep 12, 2024
50b21f4
Syntax
bpierre Sep 12, 2024
ea5c78c
dprint: add graphql
bpierre Sep 12, 2024
c6224ee
App: fetch loans from the subgraph
bpierre Sep 12, 2024
c00e9ed
Merge branch 'main' into subgraph
bpierre Sep 12, 2024
c9bdfbd
Merge branch 'subgraph' into app-subgraph
bpierre Sep 12, 2024
71012d5
Merge branch 'main' into app-subgraph
bpierre Sep 24, 2024
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,370 changes: 1,370 additions & 0 deletions frontend/app/.graphclient/index.ts

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions frontend/app/.graphclient/persisted_operations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"45745732d955f1e9e56be85453b7766bb2b5d776bad265e1e6734958fbc111c8": "query TrovesByAccount($account: Bytes!) {\n troves(where: {borrower: $account}) {\n id\n borrower\n debt\n deposit\n stake\n interestRate\n createdAt\n closedAt\n collateral {\n id\n token {\n symbol\n name\n }\n minCollRatio\n }\n }\n}\n\nquery TroveById($id: ID!) {\n trove(id: $id) {\n id\n borrower\n debt\n deposit\n stake\n interestRate\n createdAt\n closedAt\n collateral {\n id\n token {\n symbol\n name\n }\n minCollRatio\n }\n }\n}"
}
Loading