Skip to content

Commit 2b70d87

Browse files
authored
Merge pull request #2 from rvagg/rvagg/snapshots
fix: update snapshots, nv23
2 parents 6ac907b + 5214c20 commit 2b70d87

11 files changed

+170
-831
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"node": ">=10"
2929
},
3030
"dependencies": {
31+
"bignumber.js": "^9.1.2",
3132
"dotenv": "^16.0.3"
3233
},
3334
"devDependencies": {
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`BitMath #leastSignificantBit gas cost of max uint128 1`] = `80742`;
3+
exports[`BitMath #leastSignificantBit gas cost of max uint128 1`] = `73067`;
44

5-
exports[`BitMath #leastSignificantBit gas cost of max uint256 1`] = `80598`;
5+
exports[`BitMath #leastSignificantBit gas cost of max uint256 1`] = `72955`;
66

7-
exports[`BitMath #leastSignificantBit gas cost of smaller number 1`] = `82558`;
7+
exports[`BitMath #leastSignificantBit gas cost of smaller number 1`] = `74847`;
88

9-
exports[`BitMath #mostSignificantBit gas cost of max uint128 1`] = `89886`;
9+
exports[`BitMath #mostSignificantBit gas cost of max uint128 1`] = `84171`;
1010

11-
exports[`BitMath #mostSignificantBit gas cost of max uint256 1`] = `94502`;
11+
exports[`BitMath #mostSignificantBit gas cost of max uint256 1`] = `88359`;
1212

13-
exports[`BitMath #mostSignificantBit gas cost of smaller number 1`] = `69534`;
13+
exports[`BitMath #mostSignificantBit gas cost of smaller number 1`] = `65007`;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`LiquidityMath #addDelta gas add 1`] = `46920`;
3+
exports[`LiquidityMath #addDelta gas add 1`] = `41944`;
44

5-
exports[`LiquidityMath #addDelta gas sub 1`] = `48508`;
5+
exports[`LiquidityMath #addDelta gas sub 1`] = `43488`;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`NoDelegateCall runtime overhead 1`] = `11249`;
3+
exports[`NoDelegateCall runtime overhead 1`] = `10937`;

test/__snapshots__/Oracle.spec.ts.snap

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Oracle #observe before initialization gas for observe since most recent 1`] = `821509`;
3+
exports[`Oracle #observe before initialization gas for observe since most recent 1`] = `737040`;
44

5-
exports[`Oracle #observe before initialization gas for single observation at current time 1`] = `547267`;
5+
exports[`Oracle #observe before initialization gas for single observation at current time 1`] = `495230`;
66

7-
exports[`Oracle #observe before initialization gas for single observation at current time counterfactually computed 1`] = `673842`;
7+
exports[`Oracle #observe before initialization gas for single observation at current time counterfactually computed 1`] = `606777`;
88

99
exports[`Oracle #observe initialized with 5 observations with starting time of 5 fetch many values 1`] = `
1010
Object {
@@ -29,17 +29,17 @@ Object {
2929
}
3030
`;
3131

32-
exports[`Oracle #observe initialized with 5 observations with starting time of 5 gas all of last 20 seconds 1`] = `28868446`;
32+
exports[`Oracle #observe initialized with 5 observations with starting time of 5 gas all of last 20 seconds 1`] = `26358352`;
3333

34-
exports[`Oracle #observe initialized with 5 observations with starting time of 5 gas between oldest and oldest + 1 1`] = `2888490`;
34+
exports[`Oracle #observe initialized with 5 observations with starting time of 5 gas between oldest and oldest + 1 1`] = `2685824`;
3535

36-
exports[`Oracle #observe initialized with 5 observations with starting time of 5 gas latest equal 1`] = `1113465`;
36+
exports[`Oracle #observe initialized with 5 observations with starting time of 5 gas latest equal 1`] = `1045162`;
3737

38-
exports[`Oracle #observe initialized with 5 observations with starting time of 5 gas latest transform 1`] = `1113465`;
38+
exports[`Oracle #observe initialized with 5 observations with starting time of 5 gas latest transform 1`] = `1045162`;
3939

40-
exports[`Oracle #observe initialized with 5 observations with starting time of 5 gas middle 1`] = `2936442`;
40+
exports[`Oracle #observe initialized with 5 observations with starting time of 5 gas middle 1`] = `2728889`;
4141

42-
exports[`Oracle #observe initialized with 5 observations with starting time of 5 gas oldest 1`] = `2811248`;
42+
exports[`Oracle #observe initialized with 5 observations with starting time of 5 gas oldest 1`] = `2617718`;
4343

4444
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 fetch many values 1`] = `
4545
Object {
@@ -64,14 +64,14 @@ Object {
6464
}
6565
`;
6666

67-
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 gas all of last 20 seconds 1`] = `28868446`;
67+
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 gas all of last 20 seconds 1`] = `26358352`;
6868

69-
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 gas between oldest and oldest + 1 1`] = `2888490`;
69+
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 gas between oldest and oldest + 1 1`] = `2685824`;
7070

71-
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 gas latest equal 1`] = `1113465`;
71+
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 gas latest equal 1`] = `1045162`;
7272

73-
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 gas latest transform 1`] = `1113465`;
73+
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 gas latest transform 1`] = `1045162`;
7474

75-
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 gas middle 1`] = `2936442`;
75+
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 gas middle 1`] = `2728889`;
7676

77-
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 gas oldest 1`] = `2811248`;
77+
exports[`Oracle #observe initialized with 5 observations with starting time of 4294967291 gas oldest 1`] = `2617718`;
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`SqrtPriceMath #getAmount0Delta gas cost for amount0 where roundUp = true 1`] = `263523`;
3+
exports[`SqrtPriceMath #getAmount0Delta gas cost for amount0 where roundUp = true 1`] = `239559`;
44

5-
exports[`SqrtPriceMath #getAmount0Delta gas cost for amount0 where roundUp = true 2`] = `171679`;
5+
exports[`SqrtPriceMath #getAmount0Delta gas cost for amount0 where roundUp = true 2`] = `154403`;
66

7-
exports[`SqrtPriceMath #getAmount1Delta gas cost for amount0 where roundUp = false 1`] = `171679`;
7+
exports[`SqrtPriceMath #getAmount1Delta gas cost for amount0 where roundUp = false 1`] = `154403`;
88

9-
exports[`SqrtPriceMath #getAmount1Delta gas cost for amount0 where roundUp = true 1`] = `263523`;
9+
exports[`SqrtPriceMath #getAmount1Delta gas cost for amount0 where roundUp = true 1`] = `239559`;
1010

11-
exports[`SqrtPriceMath #getNextSqrtPriceFromInput zeroForOne = false gas 1`] = `128796`;
11+
exports[`SqrtPriceMath #getNextSqrtPriceFromInput zeroForOne = false gas 1`] = `116768`;
1212

13-
exports[`SqrtPriceMath #getNextSqrtPriceFromInput zeroForOne = true gas 1`] = `259615`;
13+
exports[`SqrtPriceMath #getNextSqrtPriceFromInput zeroForOne = true gas 1`] = `232551`;
1414

15-
exports[`SqrtPriceMath #getNextSqrtPriceFromOutput zeroForOne = false gas 1`] = `277399`;
15+
exports[`SqrtPriceMath #getNextSqrtPriceFromOutput zeroForOne = false gas 1`] = `248623`;
1616

17-
exports[`SqrtPriceMath #getNextSqrtPriceFromOutput zeroForOne = true gas 1`] = `130128`;
17+
exports[`SqrtPriceMath #getNextSqrtPriceFromOutput zeroForOne = true gas 1`] = `119412`;
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`SwapMath #computeSwapStep gas swap one for zero exact in capped 1`] = `596496`;
3+
exports[`SwapMath #computeSwapStep gas swap one for zero exact in capped 1`] = `525835`;
44

5-
exports[`SwapMath #computeSwapStep gas swap one for zero exact in partial 1`] = `725268`;
5+
exports[`SwapMath #computeSwapStep gas swap one for zero exact in partial 1`] = `640103`;
66

7-
exports[`SwapMath #computeSwapStep gas swap one for zero exact out capped 1`] = `530516`;
7+
exports[`SwapMath #computeSwapStep gas swap one for zero exact out capped 1`] = `467967`;
88

9-
exports[`SwapMath #computeSwapStep gas swap one for zero exact out partial 1`] = `725268`;
9+
exports[`SwapMath #computeSwapStep gas swap one for zero exact out partial 1`] = `640103`;
1010

11-
exports[`SwapMath #computeSwapStep gas swap zero for one exact in capped 1`] = `633408`;
11+
exports[`SwapMath #computeSwapStep gas swap zero for one exact in capped 1`] = `561331`;
1212

13-
exports[`SwapMath #computeSwapStep gas swap zero for one exact in partial 1`] = `976938`;
13+
exports[`SwapMath #computeSwapStep gas swap zero for one exact in partial 1`] = `871577`;
1414

15-
exports[`SwapMath #computeSwapStep gas swap zero for one exact out capped 1`] = `567428`;
15+
exports[`SwapMath #computeSwapStep gas swap zero for one exact out capped 1`] = `503463`;
1616

17-
exports[`SwapMath #computeSwapStep gas swap zero for one exact out partial 1`] = `976938`;
17+
exports[`SwapMath #computeSwapStep gas swap zero for one exact out partial 1`] = `871577`;
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`TickBitmap #flipTick gas cost of flipping a tick that results in deleting a word 1`] = `4647927`;
3+
exports[`TickBitmap #flipTick gas cost of flipping a tick that results in deleting a word 1`] = `4563819`;
44

5-
exports[`TickBitmap #flipTick gas cost of flipping first tick in word to initialized 1`] = `4800492`;
5+
exports[`TickBitmap #flipTick gas cost of flipping first tick in word to initialized 1`] = `4711781`;
66

7-
exports[`TickBitmap #flipTick gas cost of flipping second tick in word to initialized 1`] = `4823723`;
7+
exports[`TickBitmap #flipTick gas cost of flipping second tick in word to initialized 1`] = `4734733`;
88

9-
exports[`TickBitmap #nextInitializedTickWithinOneWord lte = false gas cost for entire word 1`] = `146753`;
9+
exports[`TickBitmap #nextInitializedTickWithinOneWord lte = false gas cost for entire word 1`] = `129837`;
1010

11-
exports[`TickBitmap #nextInitializedTickWithinOneWord lte = false gas cost just below boundary 1`] = `403085`;
11+
exports[`TickBitmap #nextInitializedTickWithinOneWord lte = false gas cost just below boundary 1`] = `381630`;
1212

13-
exports[`TickBitmap #nextInitializedTickWithinOneWord lte = false gas cost on boundary 1`] = `400853`;
13+
exports[`TickBitmap #nextInitializedTickWithinOneWord lte = false gas cost on boundary 1`] = `379618`;
1414

15-
exports[`TickBitmap #nextInitializedTickWithinOneWord lte = true gas cost for entire word 1`] = `140225`;
15+
exports[`TickBitmap #nextInitializedTickWithinOneWord lte = true gas cost for entire word 1`] = `123013`;
1616

17-
exports[`TickBitmap #nextInitializedTickWithinOneWord lte = true gas cost just below boundary 1`] = `458124`;
17+
exports[`TickBitmap #nextInitializedTickWithinOneWord lte = true gas cost just below boundary 1`] = `431792`;
1818

19-
exports[`TickBitmap #nextInitializedTickWithinOneWord lte = true gas cost on boundary 1`] = `394713`;
19+
exports[`TickBitmap #nextInitializedTickWithinOneWord lte = true gas cost on boundary 1`] = `373250`;

0 commit comments

Comments
 (0)