Skip to content

Commit

Permalink
feat: add the subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawBit committed Aug 12, 2024
1 parent c39ad6c commit a88bbaf
Show file tree
Hide file tree
Showing 9 changed files with 30,925 additions and 0 deletions.
2,541 changes: 2,541 additions & 0 deletions .graphclient/index.ts

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .graphclient/persisted_operations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"f0d6847057618f9e38246a2f42820a61d528abb6d095b9d8cd7ad971d2ca5f7e": "fragment PoolToken on Token {\n id\n name\n symbol\n decimals\n}\n\nquery Pair($addr: Bytes) {\n pairs(first: 1, where: {id: $addr}) {\n id\n token0 {\n ...PoolToken\n }\n token1 {\n ...PoolToken\n }\n pairDayData {\n reserveUSD\n dailyVolumeUSD\n }\n reserveUSD\n reserve0\n reserve1\n totalSupply\n }\n}\n\nquery Pools($id: Bytes) {\n pairs(orderBy: reserveUSD, orderDirection: desc, first: 50) {\n id\n token0 {\n ...PoolToken\n }\n token1 {\n ...PoolToken\n }\n reserve0\n reserve1\n volumeUSD\n reserveUSD\n pairDayData {\n reserveUSD\n dailyVolumeUSD\n }\n }\n}\n\nquery LiquidityPositions($user: String, $pair: String) {\n liquidityPositions(\n where: {user: $user, pair: $pair, liquidityTokenBalance_gt: \"0\"}\n first: 30\n orderBy: liquidityTokenBalance\n orderDirection: desc\n ) {\n pair {\n id\n token0 {\n ...PoolToken\n }\n token1 {\n ...PoolToken\n }\n totalSupply\n reserve0\n reserve1\n reserveUSD\n volumeUSD\n pairDayData {\n reserveUSD\n dailyVolumeUSD\n }\n }\n user {\n id\n }\n liquidityTokenBalance\n }\n}",
"dbfdf5b2d8b989a5f718100566b4336b8d6fe9d0c24bc2b9e4bb7f1bd7a1237e": "query RethPosition($account: Bytes) {\n stakeORETHs(\n orderBy: deadline\n orderDirection: desc\n where: {account: $account, status: 1}\n ) {\n positionId\n account\n amountInORETH\n amountInOSETH\n amountInREY\n blockNumber\n blockTimestamp\n transactionHash\n deadline\n status\n }\n}\n\nquery RusdPosition($account: Bytes) {\n stakeORUSDs(\n orderBy: deadline\n orderDirection: desc\n where: {account: $account, status: 1}\n ) {\n positionId\n account\n status\n amountInORUSD\n amountInOSUSD\n amountInRUY\n deadline\n }\n}"
}
Loading

0 comments on commit a88bbaf

Please sign in to comment.