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: Proposers claim proving rights #8832

Merged
merged 51 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
3f8f5d1
define escrow contract interface
just-mitch Sep 17, 2024
a567dc3
prune if needed before propose and prove.
just-mitch Sep 17, 2024
4cdeb3b
update getSlotAt check
just-mitch Sep 18, 2024
9d09b1d
Update test to hit code path
just-mitch Sep 18, 2024
6b1a7ba
feat: proofClaim in Rollup (#8636)
just-mitch Sep 20, 2024
09d3064
clean up escrow interface
just-mitch Sep 20, 2024
1fa4fba
feat: basic epoch proof quote pool and interface on aztec node
just-mitch Sep 23, 2024
ff68ae8
rename TxProvider to ProverCoordination
just-mitch Sep 23, 2024
6337b84
Merge remote-tracking branch 'origin/mt/8572-prune-if-needed' into pw…
PhilWindle Sep 24, 2024
4273d2a
Initial work
PhilWindle Sep 26, 2024
c280ad9
Passing test
PhilWindle Sep 26, 2024
c94febe
Merge remote-tracking branch 'origin/master' into pw/proposer-claims-…
PhilWindle Sep 26, 2024
39a3e39
Merge remote-tracking branch 'origin/master' into pw/proposer-claims-…
PhilWindle Sep 26, 2024
8f0ab89
Merge fixes
PhilWindle Sep 26, 2024
735fa3b
More merge fixes
PhilWindle Sep 26, 2024
9de33b0
More merge fixes
PhilWindle Sep 26, 2024
ce6a728
Refactoring
PhilWindle Sep 26, 2024
431a1c6
Formatting
PhilWindle Sep 26, 2024
cfb609d
Comments
PhilWindle Sep 26, 2024
7a20502
Merge branch 'master' into pw/proposer-claims-proof-right
PhilWindle Sep 26, 2024
6144011
Update yarn-project/sequencer-client/src/sequencer/sequencer.ts
PhilWindle Sep 27, 2024
2380ac7
Update yarn-project/sequencer-client/src/sequencer/sequencer.ts
PhilWindle Sep 27, 2024
901c47d
Review changes
PhilWindle Sep 27, 2024
a2d793d
feat: basic epoch proof quote pool and interface on aztec node
just-mitch Sep 23, 2024
4c283da
rename TxProvider to ProverCoordination
just-mitch Sep 23, 2024
c6ccab9
define escrow contract interface
just-mitch Sep 17, 2024
ed522c8
prune if needed before propose and prove.
just-mitch Sep 17, 2024
427b4e9
Update test to hit code path
just-mitch Sep 18, 2024
caad4ff
feat: proofClaim in Rollup (#8636)
just-mitch Sep 20, 2024
cfceaff
clean up escrow interface
just-mitch Sep 20, 2024
7376ca3
Initial work
PhilWindle Sep 26, 2024
c24355e
Passing test
PhilWindle Sep 26, 2024
466e65b
Merge fixes
PhilWindle Sep 26, 2024
0693ee6
More merge fixes
PhilWindle Sep 26, 2024
0a036e5
More merge fixes
PhilWindle Sep 26, 2024
2e698c7
Refactoring
PhilWindle Sep 26, 2024
4578384
Comments
PhilWindle Sep 26, 2024
3eb5f9b
Update yarn-project/sequencer-client/src/sequencer/sequencer.ts
PhilWindle Sep 27, 2024
6bcc3a0
Update yarn-project/sequencer-client/src/sequencer/sequencer.ts
PhilWindle Sep 27, 2024
8274b4a
Review changes
PhilWindle Sep 27, 2024
900c8e2
update conflicts
just-mitch Sep 27, 2024
28ba9cb
Delete expired epoch proofs
PhilWindle Sep 27, 2024
d7294e4
Merge branch 'pw/proposer-claims-proof-right' of github.com:AztecProt…
PhilWindle Sep 27, 2024
34d91cf
Delete expired epoch quotes from pool
PhilWindle Sep 27, 2024
7f96f02
Delete expired epoch quotes
PhilWindle Sep 27, 2024
e3d0cc7
Formatting
PhilWindle Sep 27, 2024
cf63fea
Merge branch 'master' into pw/proposer-claims-proof-right
PhilWindle Sep 27, 2024
f7fbbb4
Handle no proven epochs
PhilWindle Sep 27, 2024
1de3dad
Merge branch 'pw/proposer-claims-proof-right' of github.com:AztecProt…
PhilWindle Sep 27, 2024
fcbe7ef
Fixed test
PhilWindle Sep 27, 2024
602d2e2
Merge branch 'master' into pw/proposer-claims-proof-right
spalladino Sep 27, 2024
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
11 changes: 11 additions & 0 deletions l1-contracts/src/core/Leonidas.sol
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,17 @@ contract Leonidas is Ownable, ILeonidas {
return _ts < GENESIS_TIME ? Slot.wrap(0) : SlotLib.fromTimestamp(_ts - GENESIS_TIME);
}

/**
* @notice Computes the epoch at a specific slot
*
* @param _slotNumber - The slot number to compute the epoch for
*
* @return The computed epoch
*/
function getEpochAtSlot(Slot _slotNumber) public pure override(ILeonidas) returns (Epoch) {
return Epoch.wrap(_slotNumber.unwrap() / EPOCH_DURATION);
}

/**
* @notice Adds a validator to the set WITHOUT setting up the epoch
* @param _validator - The validator to add
Expand Down
Loading
Loading