Skip to content

Commit 75b48ec

Browse files
committed
fix: update snap for latest lotus & minor test regex fix
1 parent 2b70d87 commit 75b48ec

File tree

3 files changed

+742
-80
lines changed

3 files changed

+742
-80
lines changed

test/UniswapV3Pool.swaps.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ describe('UniswapV3Pool swap tests', () => {
514514
await (await tx).wait()
515515
} catch (error) {
516516
// extract reason
517-
const match = /revert reason: Error\((.+)\),/g.exec(error.message) || [null, null]
517+
const match = /revert reason: Error\(([^)]+)\),/g.exec(error.message) || [null, null]
518518
const vmError = `VM Exception while processing transaction: revert ${match[1]}`
519519

520520
expect({
Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,73 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`UniswapV3Pool gas tests fee is off #burn above current price burn entire position after some time passes 1`] = `16858984`;
3+
exports[`UniswapV3Pool gas tests fee is off #burn above current price burn entire position after some time passes 1`] = `17039948`;
44

5-
exports[`UniswapV3Pool gas tests fee is off #burn above current price burn when only position using ticks 1`] = `16858984`;
5+
exports[`UniswapV3Pool gas tests fee is off #burn above current price burn when only position using ticks 1`] = `17039948`;
66

7-
exports[`UniswapV3Pool gas tests fee is off #burn above current price entire position burn but other positions are using the ticks 1`] = `20348170`;
7+
exports[`UniswapV3Pool gas tests fee is off #burn above current price entire position burn but other positions are using the ticks 1`] = `19210034`;
88

9-
exports[`UniswapV3Pool gas tests fee is off #burn above current price partial position burn 1`] = `20325158`;
9+
exports[`UniswapV3Pool gas tests fee is off #burn above current price partial position burn 1`] = `20495633`;
1010

11-
exports[`UniswapV3Pool gas tests fee is off #burn around current price burn entire position after some time passes 1`] = `21826474`;
11+
exports[`UniswapV3Pool gas tests fee is off #burn around current price burn entire position after some time passes 1`] = `21651040`;
1212

13-
exports[`UniswapV3Pool gas tests fee is off #burn around current price burn when only position using ticks 1`] = `20244539`;
13+
exports[`UniswapV3Pool gas tests fee is off #burn around current price burn when only position using ticks 1`] = `20068602`;
1414

15-
exports[`UniswapV3Pool gas tests fee is off #burn around current price entire position burn but other positions are using the ticks 1`] = `24130946`;
15+
exports[`UniswapV3Pool gas tests fee is off #burn around current price entire position burn but other positions are using the ticks 1`] = `23977957`;
1616

17-
exports[`UniswapV3Pool gas tests fee is off #burn around current price partial position burn 1`] = `24749042`;
17+
exports[`UniswapV3Pool gas tests fee is off #burn around current price partial position burn 1`] = `24925432`;
1818

19-
exports[`UniswapV3Pool gas tests fee is off #burn below current price burn entire position after some time passes 1`] = `19035885`;
19+
exports[`UniswapV3Pool gas tests fee is off #burn below current price burn entire position after some time passes 1`] = `20281848`;
2020

21-
exports[`UniswapV3Pool gas tests fee is off #burn below current price burn when only position using ticks 1`] = `19035885`;
21+
exports[`UniswapV3Pool gas tests fee is off #burn below current price burn when only position using ticks 1`] = `20281848`;
2222

23-
exports[`UniswapV3Pool gas tests fee is off #burn below current price entire position burn but other positions are using the ticks 1`] = `24351940`;
23+
exports[`UniswapV3Pool gas tests fee is off #burn below current price entire position burn but other positions are using the ticks 1`] = `24577204`;
2424

25-
exports[`UniswapV3Pool gas tests fee is off #burn below current price partial position burn 1`] = `25357423`;
25+
exports[`UniswapV3Pool gas tests fee is off #burn below current price partial position burn 1`] = `25547747`;
2626

27-
exports[`UniswapV3Pool gas tests fee is off #increaseObservationCardinalityNext grow by 1 slot 1`] = `12069045`;
27+
exports[`UniswapV3Pool gas tests fee is off #increaseObservationCardinalityNext grow by 1 slot 1`] = `12235828`;
2828

29-
exports[`UniswapV3Pool gas tests fee is off #increaseObservationCardinalityNext no op 1`] = `11788288`;
29+
exports[`UniswapV3Pool gas tests fee is off #increaseObservationCardinalityNext no op 1`] = `11952852`;
3030

31-
exports[`UniswapV3Pool gas tests fee is off #poke best case 1`] = `15542873`;
31+
exports[`UniswapV3Pool gas tests fee is off #poke best case 1`] = `15567811`;
3232

33-
exports[`UniswapV3Pool gas tests fee is off #snapshotCumulativesInside tick above 1`] = `7862236`;
33+
exports[`UniswapV3Pool gas tests fee is off #snapshotCumulativesInside tick above 1`] = `7879028`;
3434

35-
exports[`UniswapV3Pool gas tests fee is off #snapshotCumulativesInside tick below 1`] = `7848095`;
35+
exports[`UniswapV3Pool gas tests fee is off #snapshotCumulativesInside tick below 1`] = `7864952`;
3636

37-
exports[`UniswapV3Pool gas tests fee is off #snapshotCumulativesInside tick inside 1`] = `8811320`;
37+
exports[`UniswapV3Pool gas tests fee is off #snapshotCumulativesInside tick inside 1`] = `8828062`;
3838

39-
exports[`UniswapV3Pool gas tests fee is on #burn above current price burn entire position after some time passes 1`] = `17203408`;
39+
exports[`UniswapV3Pool gas tests fee is on #burn above current price burn entire position after some time passes 1`] = `17402244`;
4040

41-
exports[`UniswapV3Pool gas tests fee is on #burn above current price burn when only position using ticks 1`] = `17203408`;
41+
exports[`UniswapV3Pool gas tests fee is on #burn above current price burn when only position using ticks 1`] = `17402244`;
4242

43-
exports[`UniswapV3Pool gas tests fee is on #burn above current price entire position burn but other positions are using the ticks 1`] = `20682373`;
43+
exports[`UniswapV3Pool gas tests fee is on #burn above current price entire position burn but other positions are using the ticks 1`] = `19571346`;
4444

45-
exports[`UniswapV3Pool gas tests fee is on #burn above current price partial position burn 1`] = `20691610`;
45+
exports[`UniswapV3Pool gas tests fee is on #burn above current price partial position burn 1`] = `20871128`;
4646

47-
exports[`UniswapV3Pool gas tests fee is on #burn around current price burn entire position after some time passes 1`] = `22214826`;
47+
exports[`UniswapV3Pool gas tests fee is on #burn around current price burn entire position after some time passes 1`] = `22025148`;
4848

49-
exports[`UniswapV3Pool gas tests fee is on #burn around current price burn when only position using ticks 1`] = `20609047`;
49+
exports[`UniswapV3Pool gas tests fee is on #burn around current price burn when only position using ticks 1`] = `20439646`;
5050

51-
exports[`UniswapV3Pool gas tests fee is on #burn around current price entire position burn but other positions are using the ticks 1`] = `24512242`;
51+
exports[`UniswapV3Pool gas tests fee is on #burn around current price entire position burn but other positions are using the ticks 1`] = `24344469`;
5252

53-
exports[`UniswapV3Pool gas tests fee is on #burn around current price partial position burn 1`] = `25115170`;
53+
exports[`UniswapV3Pool gas tests fee is on #burn around current price partial position burn 1`] = `25288035`;
5454

55-
exports[`UniswapV3Pool gas tests fee is on #burn below current price burn entire position after some time passes 1`] = `19393781`;
55+
exports[`UniswapV3Pool gas tests fee is on #burn below current price burn entire position after some time passes 1`] = `20638884`;
5656

57-
exports[`UniswapV3Pool gas tests fee is on #burn below current price burn when only position using ticks 1`] = `19393781`;
57+
exports[`UniswapV3Pool gas tests fee is on #burn below current price burn when only position using ticks 1`] = `20638884`;
5858

59-
exports[`UniswapV3Pool gas tests fee is on #burn below current price entire position burn but other positions are using the ticks 1`] = `24707532`;
59+
exports[`UniswapV3Pool gas tests fee is on #burn below current price entire position burn but other positions are using the ticks 1`] = `24946267`;
6060

61-
exports[`UniswapV3Pool gas tests fee is on #burn below current price partial position burn 1`] = `25723014`;
61+
exports[`UniswapV3Pool gas tests fee is on #burn below current price partial position burn 1`] = `25913095`;
6262

63-
exports[`UniswapV3Pool gas tests fee is on #increaseObservationCardinalityNext grow by 1 slot 1`] = `12161903`;
63+
exports[`UniswapV3Pool gas tests fee is on #increaseObservationCardinalityNext grow by 1 slot 1`] = `12328651`;
6464

65-
exports[`UniswapV3Pool gas tests fee is on #increaseObservationCardinalityNext no op 1`] = `11881067`;
65+
exports[`UniswapV3Pool gas tests fee is on #increaseObservationCardinalityNext no op 1`] = `12045631`;
6666

67-
exports[`UniswapV3Pool gas tests fee is on #poke best case 1`] = `15901061`;
67+
exports[`UniswapV3Pool gas tests fee is on #poke best case 1`] = `15933211`;
6868

69-
exports[`UniswapV3Pool gas tests fee is on #snapshotCumulativesInside tick above 1`] = `7868305`;
69+
exports[`UniswapV3Pool gas tests fee is on #snapshotCumulativesInside tick above 1`] = `7885142`;
7070

71-
exports[`UniswapV3Pool gas tests fee is on #snapshotCumulativesInside tick below 1`] = `7854426`;
71+
exports[`UniswapV3Pool gas tests fee is on #snapshotCumulativesInside tick below 1`] = `7871313`;
7272

73-
exports[`UniswapV3Pool gas tests fee is on #snapshotCumulativesInside tick inside 1`] = `8813742`;
73+
exports[`UniswapV3Pool gas tests fee is on #snapshotCumulativesInside tick inside 1`] = `8830485`;

0 commit comments

Comments
 (0)