Skip to content

Commit

Permalink
Merge pull request #16 from OlympusDAO/cooler-loans-update
Browse files Browse the repository at this point in the history
cooler-loans subgraph update
  • Loading branch information
0xJem authored Nov 29, 2024
2 parents 5561275 + c365c44 commit 04d0fb1
Show file tree
Hide file tree
Showing 56 changed files with 47,208 additions and 577 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
function/dist/
function/node_modules/
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
function/dist/
function/node_modules/
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"__typename": {
"type": "string",
"const": "ClaimDefaultedLoanEvent"
},
"id": {
"type": "string",
"description": "Record ID.\n\nIn the format of `cooler-loanId`."
},
"date": {
"type": "string",
"description": "Event date in YYYY-MM-DD format."
},
"blockNumber": {
"type": "string",
"description": "Block number at the time of the event."
},
"blockTimestamp": {
"type": "string",
"description": "Block timestamp at the time of the event."
},
"transactionHash": {
"type": "string",
"description": "Transaction hash of the event."
},
"collateralQuantityClaimed": {
"type": "string",
"description": "Collateral quantity claimed."
},
"collateralPrice": {
"type": "string",
"description": "Price of the collateral token at the time of the event."
},
"collateralValueClaimed": {
"type": "string",
"description": "Value of the collateral claimed."
},
"loan": {
"type": "object",
"properties": {
"__typename": {
"type": "string"
},
"id": {
"type": "string"
}
}
},
"secondsSinceExpiry": {
"type": "string",
"description": "Seconds since the loan expired."
},
"clearinghouseSnapshot": {
"type": "object",
"properties": {
"__typename": {
"type": "string"
},
"id": {
"type": "string"
}
}
}
},
"additionalProperties": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
[
{
"name": "__typename",
"type": "STRING",
"mode": "NULLABLE"
},
{
"name": "id",
"type": "STRING",
"mode": "NULLABLE",
"description": "Record ID.\n\nIn the format of `cooler-loanId`."
},
{
"name": "date",
"type": "STRING",
"mode": "NULLABLE",
"description": "Event date in YYYY-MM-DD format."
},
{
"name": "blockNumber",
"type": "STRING",
"mode": "NULLABLE",
"description": "Block number at the time of the event."
},
{
"name": "blockTimestamp",
"type": "STRING",
"mode": "NULLABLE",
"description": "Block timestamp at the time of the event."
},
{
"name": "transactionHash",
"type": "STRING",
"mode": "NULLABLE",
"description": "Transaction hash of the event."
},
{
"name": "collateralQuantityClaimed",
"type": "STRING",
"mode": "NULLABLE",
"description": "Collateral quantity claimed."
},
{
"name": "collateralPrice",
"type": "STRING",
"mode": "NULLABLE",
"description": "Price of the collateral token at the time of the event."
},
{
"name": "collateralValueClaimed",
"type": "STRING",
"mode": "NULLABLE",
"description": "Value of the collateral claimed."
},
{
"name": "loan",
"type": "RECORD",
"mode": "NULLABLE",
"fields": [
{
"name": "__typename",
"type": "STRING",
"mode": "NULLABLE"
},
{
"name": "id",
"type": "STRING",
"mode": "NULLABLE"
}
]
},
{
"name": "secondsSinceExpiry",
"type": "STRING",
"mode": "NULLABLE",
"description": "Seconds since the loan expired."
},
{
"name": "clearinghouseSnapshot",
"type": "RECORD",
"mode": "NULLABLE",
"fields": [
{
"name": "__typename",
"type": "STRING",
"mode": "NULLABLE"
},
{
"name": "id",
"type": "STRING",
"mode": "NULLABLE"
}
]
}
]
Loading

0 comments on commit 04d0fb1

Please sign in to comment.