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

Analyse Uni Chars websites/queries #17

Open
3 tasks
anxolin opened this issue May 3, 2022 · 1 comment
Open
3 tasks

Analyse Uni Chars websites/queries #17

anxolin opened this issue May 3, 2022 · 1 comment
Assignees
Labels
Protofire Subgraph Subgraph related task

Comments

@anxolin
Copy link
Contributor

anxolin commented May 3, 2022

Goal:

Good to haves (or for later)

  • Review what it takes to make our graph, or their UI to be compatible to eachother so we can deploy it
@anxolin anxolin transferred this issue from cowprotocol/cowswap May 3, 2022
@anxolin anxolin added the Subgraph Subgraph related task label May 3, 2022
@ramirotw
Copy link

ramirotw commented May 3, 2022

This is the curl request that they are sending:

curl 'https://api.thegraph.com/subgraphs/name/ianlapham/uniswap-v3-subgraph' \
  -H 'authority: api.thegraph.com' \
  -H 'accept: */*' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'content-type: application/json' \
  -H 'origin: https://info.uniswap.org' \
  -H 'referer: https://info.uniswap.org/' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: cross-site' \
  -H 'sec-gpc: 1' \
  -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36' \
  --data-raw '{"operationName":"tokens","variables":{},"query":"query tokens {\n  tokens(\n    where: {id_in: [\"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2\", \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\", \"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599\", \"0x6b175474e89094c44da98b954eedeac495271d0f\", \"0xdac17f958d2ee523a2206206994597c13d831ec7\", \"0x853d955acef822db058eb8505911ed77f175b99e\", \"0xfe2e637202056d30016725477c5da089ab0a043a\", \"0xbbaec992fc2d637151daf40451f160bf85f3c8c1\", \"0xefa6903aa49cd539c079ac4b0a090db432615822\", \"0x956f47f50a910163d8bf957cf5846d573e7f87ca\", \"0xc581b735a1688071a1746c968e0798d642ede491\", \"0x8e870d67f660d95d5be530380d0ec0bd388289e1\", \"0x4d224452801aced8b2f0aebe155379bb5d594381\", \"0x1a7e4e63778b4f12a199c062f3efdd288afcbce8\", \"0xc669928185dbce49d2230cc9b0979be6dc797957\", \"0x6810e776880c02933d47db1b9fc05908e5386b96\", \"0x2b591e99afe9f32eaa6214f7b7629768c40eeb39\", \"0xf1ca9cb74685755965c7458528a36934df52a3ef\", \"0x4fabb145d64652a948d72533023f6e7a623c7c53\", \"0x419d0d8bdd9af5e606ae2232ed285aff190e711b\", \"0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce\", \"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984\", \"0xaa6e8127831c9de45ae56bb1b0d4d4da6e5665bd\", \"0xcfcecfe2bd2fed07a9145222e8a7ad9cf1ccd22a\", \"0xb4efd85c19999d84251304bda99e90b92300bd93\", \"0xf4d2888d29d722226fafa5d9b24f9164c092421e\", \"0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2\", \"0xc00e94cb662c3520282e6f5717214004a7f26888\", \"0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0\", \"0x50d1c9771902476076ecfc8b2a83ad6b9355a4c9\", \"0x514910771af9ca656af840dff83e8264ecf986ca\", \"0x03ab458634910aad20ef5f1c8ee96f1d6ac54919\", \"0x111111111117dc0aa78b770fa6a738034120c302\", \"0x0000000000085d4780b73119b644ae5ecd22b376\", \"0xdb25f211ab05b1c97d595516f45794528a807ad8\", \"0x3845badade8e6dff049820680d1f14bd3903a5d0\", \"0x03352d267951e96c6f7235037c5dfd2ab1466232\", \"0x3e5d9d8a63cc8a88748f229999cf59487e90721e\", \"0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9\", \"0xa693b19d2931d498c5b318df961919bb4aee87a5\", \"0x35a532d376ffd9a705d0bb319532837337a398e7\", \"0xa47c8bf37f92abed4a126bda807a7b7498661acd\", \"0xf5581dfefd8fb0e4aec526be659cfab1f8c781da\", \"0x77777feddddffc19ff86db637967013e6c6a116c\", \"0xf1b99e3e573a1a9c5e6b2ce818b617f0e664e86b\", \"0xc18360217d8f7ab5e7c516566761ea12ce7f9d72\", \"0x6f40d4a6237c257fff2db00fa0510deeecd303eb\", \"0x3472a5a71965499acd81997a54bba8d852c6e53d\", \"0xeb4c2781e4eba804ce9a9803c67d0893436bb27d\", \"0xff20817765cb7f73d4bde2e66e067e58d11095c2\"]}\n    block: {number: 14661512}\n    orderBy: totalValueLockedUSD\n    orderDirection: desc\n    subgraphError: allow\n  ) {\n    id\n    symbol\n    name\n    derivedETH\n    volumeUSD\n    volume\n    txCount\n    totalValueLocked\n    feesUSD\n    totalValueLockedUSD\n    __typename\n  }\n}\n"}' \
  --compressed

And this is the query:

query tokens {
	tokens(
		where: {
			id_in: [
				"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
				"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
				"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"
				"0x6b175474e89094c44da98b954eedeac495271d0f"
				"0xdac17f958d2ee523a2206206994597c13d831ec7"
				"0x853d955acef822db058eb8505911ed77f175b99e"
				"0xfe2e637202056d30016725477c5da089ab0a043a"
				"0xbbaec992fc2d637151daf40451f160bf85f3c8c1"
				"0xefa6903aa49cd539c079ac4b0a090db432615822"
				"0x956f47f50a910163d8bf957cf5846d573e7f87ca"
				"0xc581b735a1688071a1746c968e0798d642ede491"
				"0x8e870d67f660d95d5be530380d0ec0bd388289e1"
				"0x4d224452801aced8b2f0aebe155379bb5d594381"
				"0x1a7e4e63778b4f12a199c062f3efdd288afcbce8"
				"0xc669928185dbce49d2230cc9b0979be6dc797957"
				"0x6810e776880c02933d47db1b9fc05908e5386b96"
				"0x2b591e99afe9f32eaa6214f7b7629768c40eeb39"
				"0xf1ca9cb74685755965c7458528a36934df52a3ef"
				"0x4fabb145d64652a948d72533023f6e7a623c7c53"
				"0x419d0d8bdd9af5e606ae2232ed285aff190e711b"
				"0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce"
				"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"
				"0xaa6e8127831c9de45ae56bb1b0d4d4da6e5665bd"
				"0xcfcecfe2bd2fed07a9145222e8a7ad9cf1ccd22a"
				"0xb4efd85c19999d84251304bda99e90b92300bd93"
				"0xf4d2888d29d722226fafa5d9b24f9164c092421e"
				"0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2"
				"0xc00e94cb662c3520282e6f5717214004a7f26888"
				"0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0"
				"0x50d1c9771902476076ecfc8b2a83ad6b9355a4c9"
				"0x514910771af9ca656af840dff83e8264ecf986ca"
				"0x03ab458634910aad20ef5f1c8ee96f1d6ac54919"
				"0x111111111117dc0aa78b770fa6a738034120c302"
				"0x0000000000085d4780b73119b644ae5ecd22b376"
				"0xdb25f211ab05b1c97d595516f45794528a807ad8"
				"0x3845badade8e6dff049820680d1f14bd3903a5d0"
				"0x03352d267951e96c6f7235037c5dfd2ab1466232"
				"0x3e5d9d8a63cc8a88748f229999cf59487e90721e"
				"0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9"
				"0xa693b19d2931d498c5b318df961919bb4aee87a5"
				"0x35a532d376ffd9a705d0bb319532837337a398e7"
				"0xa47c8bf37f92abed4a126bda807a7b7498661acd"
				"0xf5581dfefd8fb0e4aec526be659cfab1f8c781da"
				"0x77777feddddffc19ff86db637967013e6c6a116c"
				"0xf1b99e3e573a1a9c5e6b2ce818b617f0e664e86b"
				"0xc18360217d8f7ab5e7c516566761ea12ce7f9d72"
				"0x6f40d4a6237c257fff2db00fa0510deeecd303eb"
				"0x3472a5a71965499acd81997a54bba8d852c6e53d"
				"0xeb4c2781e4eba804ce9a9803c67d0893436bb27d"
				"0xff20817765cb7f73d4bde2e66e067e58d11095c2"
			]
		}
		block: { number: 14661512 }
		orderBy: totalValueLockedUSD
		orderDirection: desc
		subgraphError: allow
	) {
		id
		symbol
		name
		derivedETH
		volumeUSD
		volume
		txCount
		totalValueLocked
		feesUSD
		totalValueLockedUSD
		__typename
	}
}

So they are filtering the top tokens probably due to the same problem we are having

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Protofire Subgraph Subgraph related task
Projects
None yet
Development

No branches or pull requests

3 participants