This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: support stubbing subgraph data in cypress (#2259)
* upgrade to 7.0 * first iteration of stubbing subgraph in integration tests * added fixtures * add tests for fee tier distribution and liquidity chart * remove unused test utils * update yarn.lock * fixed merge artifacts
- Loading branch information
Justin Domingue
authored
Aug 30, 2021
1 parent
b8a9191
commit 00403a4
Showing
5 changed files
with
99 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"data": { | ||
"_meta": { | ||
"block": { | ||
"number": 99999999 | ||
} | ||
}, | ||
"asToken0": [ | ||
{ | ||
"feeTier": "500", | ||
"totalValueLockedToken0": "0", | ||
"totalValueLockedToken1": "1" | ||
}, | ||
{ | ||
"feeTier": "3000", | ||
"totalValueLockedToken0": "0", | ||
"totalValueLockedToken1": "7" | ||
}, | ||
{ | ||
"feeTier": "10000", | ||
"totalValueLockedToken0": "0", | ||
"totalValueLockedToken1": "2" | ||
} | ||
], | ||
"asToken1": [] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"data": { | ||
"ticks": [ | ||
{ | ||
"tickIdx": "-100", | ||
"liquidityNet": "1500.0", | ||
"price0": "1000", | ||
"price1": "0.01" | ||
}, | ||
{ | ||
"tickIdx": "-50", | ||
"liquidityNet": "1200.0", | ||
"price0": "1000", | ||
"price1": "0.01" | ||
}, | ||
{ | ||
"tickIdx": "-25", | ||
"liquidityNet": "1000.0", | ||
"price0": "1000", | ||
"price1": "0.01" | ||
}, | ||
{ | ||
"tickIdx": "-24", | ||
"liquidityNet": "300.0", | ||
"price0": "1000", | ||
"price1": "0.01" | ||
}, | ||
{ | ||
"tickIdx": "-23", | ||
"liquidityNet": "200.0", | ||
"price0": "1000", | ||
"price1": "0.01" | ||
}, | ||
{ | ||
"tickIdx": "-22", | ||
"liquidityNet": "100.0", | ||
"price0": "1000", | ||
"price1": "0.01" | ||
}, | ||
{ | ||
"tickIdx": "100", | ||
"liquidityNet": "100.0", | ||
"price0": "1000", | ||
"price1": "0.01" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters