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

feat: rewards v2 #153

Merged
merged 104 commits into from
Jan 16, 2025
Merged
Changes from 1 commit
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
e52876f
Release: Rewards v2
seanmcgary Nov 13, 2024
9b6d811
Initial changes
0xrajath Nov 12, 2024
ad37b24
small fixes
0xrajath Nov 13, 2024
2d4e745
cleanup
0xrajath Nov 15, 2024
89459fa
refactoring
0xrajath Nov 15, 2024
f8820fe
more refactoring
0xrajath Nov 15, 2024
04e719c
rename
0xrajath Nov 15, 2024
e81fb24
operator directed rewards submission model
0xrajath Nov 15, 2024
fedaa58
migration
0xrajath Nov 16, 2024
298af06
migrator
0xrajath Nov 16, 2024
309dec1
test: operator directed rewards unit test
0xrajath Nov 19, 2024
a8e7bd0
updated test
0xrajath Nov 19, 2024
2921381
operator avs split eigen model
0xrajath Nov 19, 2024
900b495
migration
0xrajath Nov 19, 2024
ff729b3
unit tests
0xrajath Nov 19, 2024
8865c1a
migration
0xrajath Nov 19, 2024
adbc7ba
operator pi split state model
0xrajath Nov 19, 2024
e46f73e
removed unnecessary printf
0xrajath Nov 20, 2024
1de885a
test database teardown
0xrajath Nov 20, 2024
8d3a31a
updated merkle leaf value
0xrajath Nov 20, 2024
07e0c65
cleanup migrations
0xrajath Nov 20, 2024
028a3cb
feat: rewards v2 calculation (#122)
seanmcgary Dec 2, 2024
19f3651
Release: Rewards v2
seanmcgary Nov 13, 2024
7df0860
Release: Rewards v2
seanmcgary Nov 13, 2024
2ef9193
migration
0xrajath Nov 22, 2024
3821a44
operatorAvsSplitSnapshots
0xrajath Nov 22, 2024
815553e
operator pi snapshots
0xrajath Nov 22, 2024
79dbddc
updated snapshots
0xrajath Nov 22, 2024
9414824
operator avs split in rewards calculation
0xrajath Nov 22, 2024
4d09cd2
rfae split calculation
0xrajath Nov 22, 2024
7b8b8c0
fixes
0xrajath Nov 22, 2024
2e5d836
fixed snapshot constraint issue
0xrajath Nov 23, 2024
01c46e9
remove unnecessary cte
0xrajath Nov 24, 2024
fb93761
fixed left join
0xrajath Dec 1, 2024
a4fd0a4
hardforks untouched
0xrajath Dec 1, 2024
3c1f191
casting
0xrajath Dec 1, 2024
4ee12a1
arno hardfork
0xrajath Dec 2, 2024
00b388e
feat: utilize split in existing rewards calculation (#117)
0xrajath Dec 2, 2024
dc0e636
fix reference to rewardsUtils.RenderQueryTemplate
seanmcgary Dec 4, 2024
8947e92
fix: backport stateroot generation fixes
seanmcgary Dec 5, 2024
34298ec
feat: operator-directed rewards calculation
0xrajath Dec 4, 2024
e2f6e9e
Add check to see if rewards-v2 is enabled
seanmcgary Dec 11, 2024
36b679b
feat: operator-directed rewards calculation (#131)
seanmcgary Dec 11, 2024
b57e877
Updated testdata version to 1490a0e18dd51ffbb59209ca9cf6513268af21f5
seanmcgary Dec 11, 2024
d9d6669
feat: rewards-v2 pay by snapshots
gpsanant Dec 12, 2024
116802f
chore: use decimal everywhere
ypatil12 Dec 12, 2024
94bd499
Update preprod test data
seanmcgary Dec 12, 2024
7c782d4
Updated testdata version to a2dce496e18ec5536eeb8247e442deae289c679d
seanmcgary Dec 12, 2024
7655e6c
fix: assorted
gpsanant Dec 12, 2024
b39dbc5
feat: rewards-v2 pay by snapshots (#150)
seanmcgary Dec 12, 2024
e2a89e6
fix: cutoff
gpsanant Dec 12, 2024
0af2e1c
fix: cutoff (#151)
gpsanant Dec 12, 2024
bd1dbd6
Updated testdata version to da8f00be49d1447f22934629d9d6819e3d763af9
seanmcgary Dec 12, 2024
d4e1d7d
feat: update rewardsv2 contract ABIs
seanmcgary Dec 12, 2024
0144634
fix: set arno preprod fork back to 12/12
seanmcgary Dec 12, 2024
181abe6
Set arno preprod date to 12/11
seanmcgary Dec 12, 2024
14c5159
Ignore rewards-v2 testing ranges
seanmcgary Dec 12, 2024
d7e0548
Add missing = to >=
seanmcgary Dec 12, 2024
4a150c9
fix: add missing `floor()` sql function
seanmcgary Dec 13, 2024
21ab15d
fix: tweak expected reults query and add some test logging
seanmcgary Dec 13, 2024
0486157
release: Rewards v2 (#106)
seanmcgary Dec 13, 2024
f493c70
feat: add rewards-v2 testnet contracts
seanmcgary Dec 13, 2024
05b0eb6
feat: add rewards-v2 testnet contracts (#154)
seanmcgary Dec 13, 2024
d988121
partition fix
0xrajath Dec 17, 2024
f02e022
fixing end interval time
0xrajath Dec 17, 2024
8892509
removing overlapping split edge case
0xrajath Dec 18, 2024
c49eb19
fix: Rewards v2 audit recommendations (#160)
seanmcgary Dec 18, 2024
a74f581
feat: add rewards-v2 support to staker-operator table generation
seanmcgary Dec 18, 2024
c7b5ef3
feat: add rewards-v2 support to staker-operator table generation (#165)
seanmcgary Dec 18, 2024
283951a
feat: update rewards-v2 SO tables to work with past table versions
seanmcgary Dec 20, 2024
ca1e1f8
feat: update rewards-v2 SO tables to work with past table versions (#…
seanmcgary Dec 20, 2024
4d3b337
fix: check cutoffdate to see if rewards-v2 was enabled
seanmcgary Dec 20, 2024
2f46083
fix: rfaeOperators is not a rewards-v2 table
seanmcgary Dec 20, 2024
8d315b2
fix: ensure we generate staker operators for successful rewards
seanmcgary Dec 20, 2024
b63e389
rename
0xrajath Jan 3, 2025
d49fbc5
remove xerrors package
0xrajath Jan 3, 2025
c12047a
%d to %016x
0xrajath Jan 3, 2025
8de40bc
rewards description
0xrajath Jan 6, 2025
21e4649
chore: prune blocks on preprod/testnet to recalculate stateroots
seanmcgary Jan 6, 2025
7fb4fbb
fix: update preprod rewards-v2 block height
seanmcgary Jan 6, 2025
1824fc1
fix: sigmaprime rewards v2 audit fixes (#173)
seanmcgary Jan 6, 2025
0bc9d09
number formatting
0xrajath Jan 7, 2025
bf72587
big int
0xrajath Jan 7, 2025
1654aba
error message
0xrajath Jan 7, 2025
d232f18
fix: inconsistent number formatting (#175)
0xrajath Jan 7, 2025
a85f173
feat: dynamic default split
0xrajath Jan 6, 2025
0fe5d39
fix: split pct
0xrajath Jan 8, 2025
e2c86e0
fix: missing comma
0xrajath Jan 8, 2025
5bbe299
chore: updated trinity preprod and testnet dates
0xrajath Jan 8, 2025
4455dbb
feat: dynamic default split (#174)
0xrajath Jan 8, 2025
dcabeff
fix: arno fork really went into affect on the 12th not the 11th
seanmcgary Jan 9, 2025
e4b1e89
fix: update preprod ignore root range
seanmcgary Jan 9, 2025
b88d7e6
adjust preprod arno dates to reflect reality
seanmcgary Jan 9, 2025
4f11452
feat: add leaf format forking logic for ODRewardSubmissions
seanmcgary Jan 9, 2025
a69a0d3
feat: add leaf format forking logic for ODRewardSubmissions (#178)
seanmcgary Jan 9, 2025
449f9c4
fix: update test range for rewards-v2/slashing for preprod
seanmcgary Jan 9, 2025
a6c6edf
docs: rewards v2 audit report
0xrajath Jan 13, 2025
8a0cddc
docs: rewards v2 audit reports (#181)
seanmcgary Jan 13, 2025
77d87a1
feat: add rewards-v2 mainnet ABIs
seanmcgary Jan 13, 2025
3f2b482
feat: add rewards-v2 mainnet ABIs (#182)
seanmcgary Jan 13, 2025
20e19e2
feat: implement CommitFinalState for rewards-v2 models
seanmcgary Jan 14, 2025
88dfabc
feat: implement CommitFinalState for rewards-v2 models (#187)
seanmcgary Jan 14, 2025
b8462c9
chore: set version to v2.0.0
seanmcgary Jan 14, 2025
1e62fa8
fix: update a few things that were not caught as part of the rebase o…
seanmcgary Jan 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
error message
  • Loading branch information
0xrajath authored and seanmcgary committed Jan 16, 2025
commit 1654ababa861be3d5a680632791b489ac9fbb267
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,12 @@ func (odrs *OperatorDirectedRewardSubmissionsModel) sortValuesForMerkleTree(subm

multiplierBig, success := new(big.Int).SetString(submission.Multiplier, 10)
if !success {
return nil, fmt.Errorf("failed to parse multiplier to Big257: %s", submission.Multiplier)
return nil, fmt.Errorf("failed to parse multiplier to BigInt: %s", submission.Multiplier)
}

amountBig, success := new(big.Int).SetString(submission.Amount, 10)
if !success {
return nil, fmt.Errorf("failed to parse amount to Big257: %s", submission.Amount)
return nil, fmt.Errorf("failed to parse amount to BigInt: %s", submission.Amount)
}

// Multiplier is a uint96 in the contracts, which translates to 24 hex characters
Expand Down