Skip to content

Commit

Permalink
Merge pull request #72 from keyko-io/feat/pool_volume
Browse files Browse the repository at this point in the history
volume entity
  • Loading branch information
ialberquilla committed Apr 13, 2022
2 parents 132fd0a + ce5b626 commit c3bb904
Show file tree
Hide file tree
Showing 20 changed files with 863 additions and 172 deletions.
2 changes: 1 addition & 1 deletion deficrawler/config/compound-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": 2,
"chain": "Ethereum",
"endpoint": {
"ethereum": "https://api.thegraph.com/subgraphs/name/cavanmflynn/compound-v2"
"ethereum": "https://api.thegraph.com/subgraphs/name/graphprotocol/compound-v2"
}
},
"entities": {
Expand Down
44 changes: 44 additions & 0 deletions deficrawler/config/dodoex-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,50 @@
}
},
"transformations": {}
},
"pool_volume_hourly": {
"attributes": {
"id": [
"pairAddress"
],
"token0": [
"baseToken",
"id"
],
"token1": [
"quoteToken",
"id"
],
"liquidity": [
"volumeUSD"
],
"hourlyVolumeUSD": [
"volumeUSD"
],
"hourlyVolumeToken0": [
"volumeBase"
],
"hourlyVolumeToken1": [
"volumeQuote"
],
"hourlyTxns": [
"txns"
],
"hourStartUnix": [
"hour"
]
},
"query": {
"name": "pairHourDatas",
"extra_fields": {},
"params": {
"orderBy": "hour",
"pool": "pairAddress"
}
},
"transformations": {
"hourlyVolumeUSD": "na"
}
}
}
}
44 changes: 43 additions & 1 deletion deficrawler/config/pancakeswap-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": 2,
"chain": "Bsc",
"endpoint": {
"bsc": "https://api.thegraph.com/subgraphs/name/vmatskiv/pancakeswap-v2"
"bsc": "https://api.thegraph.com/subgraphs/name/henry0717/pancakeswapv2"
}
},
"entities": {
Expand Down Expand Up @@ -201,6 +201,48 @@
}
},
"transformations": {}
},
"pool_volume_hourly": {
"attributes": {
"id": [
"pair",
"id"
],
"token0":[
"reserve0"
],
"token1":[
"reserve1"
],
"liquidity":[
"reserveUSD"
],
"hourlyVolumeUSD":[
"hourlyVolumeUSD"
],
"hourlyVolumeToken0":[
"hourlyVolumeToken0"
],
"hourlyVolumeToken1":[
"hourlyVolumeToken1"
],
"hourlyTxns":[
"hourlyTxns"
],
"hourStartUnix": [
"hourStartUnix"
]
},
"query": {
"name": "pairHourDatas",
"extra_fields": {},
"params": {
"orderBy": "hourStartUnix",
"pool": "pair"
}
},
"transformations": {
}
}
}
}
41 changes: 41 additions & 0 deletions deficrawler/config/pangolin-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,47 @@
}
},
"transformations": {}
},
"pool_volume_hourly": {
"attributes": {
"id": [
"pair",
"id"
],
"token0": [
"reserve0"
],
"token1": [
"reserve1"
],
"liquidity": [
"reserveUSD"
],
"hourlyVolumeUSD": [
"hourlyVolumeUSD"
],
"hourlyVolumeToken0": [
"hourlyVolumeToken0"
],
"hourlyVolumeToken1": [
"hourlyVolumeToken1"
],
"hourlyTxns": [
"hourlyTxns"
],
"hourStartUnix": [
"hourStartUnix"
]
},
"query": {
"name": "pairHourDatas",
"extra_fields": {},
"params": {
"orderBy": "hourStartUnix",
"pool": "pair"
}
},
"transformations": {}
}
}
}
42 changes: 42 additions & 0 deletions deficrawler/config/quickswap-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,48 @@
}
},
"transformations": {}
},
"pool_volume_hourly": {
"attributes": {
"id": [
"pair",
"id"
],
"token0":[
"reserve0"
],
"token1":[
"reserve1"
],
"liquidity":[
"reserveUSD"
],
"hourlyVolumeUSD":[
"hourlyVolumeUSD"
],
"hourlyVolumeToken0":[
"hourlyVolumeToken0"
],
"hourlyVolumeToken1":[
"hourlyVolumeToken1"
],
"hourlyTxns":[
"hourlyTxns"
],
"hourStartUnix": [
"hourStartUnix"
]
},
"query": {
"name": "pairHourDatas",
"extra_fields": {},
"params": {
"orderBy": "hourStartUnix",
"pool": "pair"
}
},
"transformations": {
}
}
}
}

0 comments on commit c3bb904

Please sign in to comment.