Skip to content

Commit

Permalink
Upd snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-stakewise committed May 22, 2024
1 parent 28f4a22 commit 4ec2980
Show file tree
Hide file tree
Showing 17 changed files with 53 additions and 46 deletions.
10 changes: 5 additions & 5 deletions test/__snapshots__/DepositDataRegistry.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,34 @@ Object {
exports[`DepositDataRegistry deposit data root update success 1`] = `
Object {
"calldataByteLength": 68,
"gasUsed": 64551,
"gasUsed": 64539,
}
`;

exports[`DepositDataRegistry migrate succeeds 1`] = `
Object {
"calldataByteLength": 100,
"gasUsed": 142392,
"gasUsed": 142380,
}
`;

exports[`DepositDataRegistry multiple validators succeeds 1`] = `
Object {
"calldataByteLength": 3364,
"gasUsed": 688085,
"gasUsed": 688145,
}
`;

exports[`DepositDataRegistry single validator can update state and register validator 1`] = `
Object {
"calldataByteLength": 1636,
"gasUsed": 407133,
"gasUsed": 407153,
}
`;

exports[`DepositDataRegistry single validator succeeds 1`] = `
Object {
"calldataByteLength": 1156,
"gasUsed": 333705,
"gasUsed": 333725,
}
`;
10 changes: 5 additions & 5 deletions test/__snapshots__/EthGenesisVault.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ Object {
exports[`EthGenesisVault pulls withdrawals on multiple validators registration 1`] = `
Object {
"calldataByteLength": 3748,
"gasUsed": 652625,
"gasUsed": 652573,
}
`;

exports[`EthGenesisVault pulls withdrawals on single validator registration 1`] = `
Object {
"calldataByteLength": 1188,
"gasUsed": 312810,
"calldataByteLength": 1156,
"gasUsed": 312031,
}
`;

Expand All @@ -45,7 +45,7 @@ Object {
exports[`EthGenesisVault update state skips updating legacy with zero total assets 1`] = `
Object {
"calldataByteLength": 196,
"gasUsed": 145842,
"gasUsed": 145830,
}
`;

Expand All @@ -59,6 +59,6 @@ Object {
exports[`EthGenesisVault update state splits reward between rewardEthToken and vault 1`] = `
Object {
"calldataByteLength": 196,
"gasUsed": 167373,
"gasUsed": 167361,
}
`;
2 changes: 1 addition & 1 deletion test/__snapshots__/EthVault.deposit.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ Object {
exports[`EthVault - deposit full vault: assets & shares update state and deposit 1`] = `
Object {
"calldataByteLength": 260,
"gasUsed": 155308,
"gasUsed": 155296,
}
`;
4 changes: 2 additions & 2 deletions test/__snapshots__/EthVault.register.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
exports[`EthVault - register multiple validators succeeds 1`] = `
Object {
"calldataByteLength": 2532,
"gasUsed": 630876,
"gasUsed": 630936,
}
`;

exports[`EthVault - register single validator succeeds 1`] = `
Object {
"calldataByteLength": 964,
"gasUsed": 298052,
"gasUsed": 298064,
}
`;
2 changes: 1 addition & 1 deletion test/__snapshots__/EthVault.state.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`EthVault - state allocates fee to recipient when delta is above zero 1`] = `
Object {
"calldataByteLength": 196,
"gasUsed": 117522,
"gasUsed": 117534,
}
`;

Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/EthVault.token.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Object {
exports[`EthVault - token permit accepts owner signature 1`] = `
Object {
"calldataByteLength": 228,
"gasUsed": 82345,
"gasUsed": 82357,
}
`;

Expand Down
13 changes: 10 additions & 3 deletions test/__snapshots__/EthVault.upgrade.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`EthVault - upgrade does not modify the state variables 1`] = `
Object {
"calldataByteLength": 100,
"gasUsed": 164451,
"gasUsed": 164439,
}
`;

Expand All @@ -24,7 +24,7 @@ Object {
exports[`EthVault - upgrade does not modify the state variables 4`] = `
Object {
"calldataByteLength": 100,
"gasUsed": 165499,
"gasUsed": 165511,
}
`;

Expand All @@ -38,6 +38,13 @@ Object {
exports[`EthVault - upgrade works with valid call data 1`] = `
Object {
"calldataByteLength": 132,
"gasUsed": 76091,
"gasUsed": 76034,
}
`;

exports[`EthVault - upgrade works with valid call data 2`] = `
Object {
"calldataByteLength": 132,
"gasUsed": 76034,
}
`;
4 changes: 2 additions & 2 deletions test/__snapshots__/EthVault.withdraw.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ Object {
exports[`EthVault - withdraw update exit queue adds checkpoint 1`] = `
Object {
"calldataByteLength": 196,
"gasUsed": 103215,
"gasUsed": 103227,
}
`;

exports[`EthVault - withdraw update exit queue for not all the queued shares 1`] = `
Object {
"calldataByteLength": 196,
"gasUsed": 103211,
"gasUsed": 103223,
}
`;
14 changes: 7 additions & 7 deletions test/__snapshots__/KeeperRewards.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

exports[`KeeperRewards harvest (own escrow) succeeds for latest rewards root 1`] = `
Object {
"calldataByteLength": 324,
"gasUsed": 111368,
"calldataByteLength": 292,
"gasUsed": 110652,
}
`;

exports[`KeeperRewards harvest (own escrow) succeeds for previous rewards root 1`] = `
Object {
"calldataByteLength": 324,
"gasUsed": 113522,
"calldataByteLength": 292,
"gasUsed": 112806,
}
`;

exports[`KeeperRewards harvest (own escrow) succeeds for previous rewards root 2`] = `
Object {
"calldataByteLength": 196,
"gasUsed": 74298,
"gasUsed": 74286,
}
`;

Expand All @@ -38,7 +38,7 @@ Object {
exports[`KeeperRewards harvest (shared escrow) succeeds for previous rewards root 2`] = `
Object {
"calldataByteLength": 196,
"gasUsed": 90443,
"gasUsed": 90431,
}
`;

Expand Down Expand Up @@ -66,6 +66,6 @@ Object {
exports[`KeeperRewards update rewards succeeds with all signatures 1`] = `
Object {
"calldataByteLength": 1156,
"gasUsed": 146919,
"gasUsed": 146931,
}
`;
8 changes: 4 additions & 4 deletions test/__snapshots__/KeeperValidators.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@
exports[`KeeperValidators register multiple validators succeeds 1`] = `
Object {
"calldataByteLength": 3748,
"gasUsed": 694490,
"gasUsed": 694550,
}
`;

exports[`KeeperValidators register multiple validators succeeds 2`] = `
Object {
"calldataByteLength": 3748,
"gasUsed": 602722,
"gasUsed": 602758,
}
`;

exports[`KeeperValidators register single validator succeeds 1`] = `
Object {
"calldataByteLength": 1540,
"gasUsed": 340131,
"gasUsed": 340175,
}
`;

exports[`KeeperValidators register single validator succeeds 2`] = `
Object {
"calldataByteLength": 1540,
"gasUsed": 286474,
"gasUsed": 286502,
}
`;

Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/RewardSplitterFactory.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
exports[`RewardSplitterFactory splitter deployment gas 1`] = `
Object {
"calldataByteLength": 36,
"gasUsed": 138062,
"gasUsed": 138074,
}
`;
10 changes: 5 additions & 5 deletions test/__snapshots__/VaultsRegistry.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,34 @@ Object {
exports[`VaultsRegistry owner can add factory 1`] = `
Object {
"calldataByteLength": 36,
"gasUsed": 47306,
"gasUsed": 47318,
}
`;

exports[`VaultsRegistry owner can add vault 1`] = `
Object {
"calldataByteLength": 36,
"gasUsed": 49672,
"gasUsed": 49660,
}
`;

exports[`VaultsRegistry owner can register implementation contract 1`] = `
Object {
"calldataByteLength": 36,
"gasUsed": 47489,
"gasUsed": 47477,
}
`;

exports[`VaultsRegistry owner can remove factory 1`] = `
Object {
"calldataByteLength": 36,
"gasUsed": 25469,
"gasUsed": 25481,
}
`;

exports[`VaultsRegistry owner can remove implementation 1`] = `
Object {
"calldataByteLength": 36,
"gasUsed": 25432,
"gasUsed": 25420,
}
`;
2 changes: 1 addition & 1 deletion test/gnosis/__snapshots__/GnoSharedMevEscrow.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
exports[`GnoSharedMevEscrow vault deployment gas 1`] = `
Object {
"calldataByteLength": 728,
"gasUsed": 177173,
"gasUsed": 177185,
}
`;
8 changes: 4 additions & 4 deletions test/gnosis/__snapshots__/GnoVault.register.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@
exports[`GnoVault - register multiple validators pulls withdrawals on multiple validators registration 1`] = `
Object {
"calldataByteLength": 3364,
"gasUsed": 701676,
"gasUsed": 701708,
}
`;

exports[`GnoVault - register multiple validators succeeds 1`] = `
Object {
"calldataByteLength": 3364,
"gasUsed": 721872,
"gasUsed": 721904,
}
`;

exports[`GnoVault - register single validator pulls withdrawals on single validator registration 1`] = `
Object {
"calldataByteLength": 1156,
"gasUsed": 360005,
"gasUsed": 360037,
}
`;

exports[`GnoVault - register single validator succeeds 1`] = `
Object {
"calldataByteLength": 1156,
"gasUsed": 380201,
"gasUsed": 380233,
}
`;
2 changes: 1 addition & 1 deletion test/gnosis/__snapshots__/GnoVault.state.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Object {
exports[`GnoVault Shared MEV Escrow does not include MEV rewards in total assets delta 1`] = `
Object {
"calldataByteLength": 196,
"gasUsed": 123793,
"gasUsed": 123781,
}
`;
2 changes: 1 addition & 1 deletion test/gnosis/__snapshots__/XdaiExchange.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Object {
exports[`XdaiExchange swap successfully swaps 1`] = `
Object {
"calldataByteLength": 68,
"gasUsed": 68132,
"gasUsed": 68120,
}
`;

Expand Down
4 changes: 2 additions & 2 deletions test/restake/__snapshots__/EthRestakeVault.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Object {
exports[`EthRestakeVault multiple validators succeeds 1`] = `
Object {
"calldataByteLength": 2756,
"gasUsed": 554570,
"gasUsed": 554534,
}
`;

Expand All @@ -31,6 +31,6 @@ Object {
exports[`EthRestakeVault single validator succeeds 1`] = `
Object {
"calldataByteLength": 996,
"gasUsed": 268083,
"gasUsed": 268035,
}
`;

0 comments on commit 4ec2980

Please sign in to comment.