Staking: Delete challenge if rollup contract paused#233
Merged
Conversation
FletcherMan
added a commit
that referenced
this pull request
Apr 29, 2024
* init staking * update * update test * feat: add morph token function * feat: update mint function * perfect morph token test * modify package and yarn file * update go mod * optimize mint function * improve mint features * fix mint fail * add comment * add a conditional limit for the begin time * l2 staking (#172) * feat(l2staking): adding the L2 staking * feat(l2staking): adding test cases for L2 staking * feat(l2staking): harmonize interface names, modify undelegate * feat(l2staking): modify delegate logic & adding test cases * feat(l2staking)modify staking logic & test cases * feat(l2staking) update sequencer & submitter * feat(l2staking): update staking test cases * fix(l2staking) fix conflicts * mint function add return param * update and clean * add distribute contract * feat(l2staking): adding test cases for sequencer & staking * optimize mint function * optimize mint function * modify distribute contract * Morph token (#160) * feat: add morph token function * feat: update mint function * perfect morph token test * modify package and yarn file * optimize mint function * improve mint features * fix mint fail * add comment * add a conditional limit for the begin time * mint function add return param * add distribute contract * optimize mint function * optimize mint function * modify distribute contract --------- Co-authored-by: timtide <[email protected]> * formatted file * Morph token (#176) * feat: add morph token function * feat: update mint function * perfect morph token test * modify package and yarn file * optimize mint function * improve mint features * fix mint fail * add comment * add a conditional limit for the begin time * mint function add return param * add distribute contract * optimize mint function * optimize mint function * modify distribute contract * formatted file --------- Co-authored-by: timtide <[email protected]> * feat(gov): adding gov * feat(gov): proposal can be approved * remove gov field * fix(l2staking): adding update sequencer set test cases * fix(l2staking): optimization gas used * feat(l2staking): integrate distribute * feat(gov): adding gov test cases * perfect distribute function * formate distribute contract * Morph token (#186) * feat: add morph token function * feat: update mint function * perfect morph token test * modify package and yarn file * optimize mint function * improve mint features * fix mint fail * add comment * add a conditional limit for the begin time * mint function add return param * add distribute contract * optimize mint function * optimize mint function * modify distribute contract * formatted file * remove gov field * perfect distribute function * formate distribute contract --------- Co-authored-by: timtide <[email protected]> * add partial parameters * fix(l2staking): integrate distribute * fix(l2staking): adding staker check * update * update rollup * reconfigure the distributte function * update staking & rollup logic * format code * update L2 staking * modifiy distribute contract * fix delete data confusion problem * update L2 contracts * add claimedEpochIndex and latestMintedEpochIndex function * move some funtion to IRecord * fix block info Indicates that data is out of order after deletion * uodata layer2 contracts * add distribute contract function comment * feat(l2staking): update l2 staking base * fix compilation failure * feat(l2staking): update l2 staking test cases * feat(l2staking): update l2 staking test cases * feat(l2staking): update l2 staking test cases * feat(l2staking): update l2 staking test cases * update l2 contracts * feat(l2staking): update l2 staking test cases * fix typo * refactor node sequencer set update (#204) * update rollup contract * fix distribute * update rollup contract * update bindings * fix rollup * feat(l2staking): update l2 staking test cases * fix distribute claim * clean rollup * feat(l2staking): update l2 staking test cases, claim reward * optimize the morph token and corresponding tests * rename funtion name * fix(l2staking): ratioSum <= RATIO_PRECISION * fix updateEpochReward fail * fix typo and record * update record * fix(l2staking): record change * refactor: rollup batch change (#227) * change batch sig format * add sequencer set bytes --------- Co-authored-by: fletcher.fan <[email protected]> * fix(l2staking): delegate stake -> distribute -> claim test cases, remove unused import * adjust batch struct * adjust L1 interface * update commitBatch params * keep one submitter * clean import * update doc * update rollup contract * update bindings * clean code * update test * update staking message encode * perfect the code * fix validator compile error (#229) Co-authored-by: fletcher.fan <[email protected]> * clean code * update bindings * optimize gas * optimize morph token gas * add function to interface * optimize gas * add interface * Refactor batch store (#239) * delete challenge if pause (#233) * update bindings * Staking: Fix register staker (#240) * Fix register staker * fix * update commitBatch * Staking deploy (#241) * update deploy * update l1 deploy * add L2Staking and Sequencer deploy * updae deploy config and deploy morph token * update L2Staking config * fix deploy * fix hardhat config url * set morph token and l2staking solt * update deploy py * fix Staking Sequencer * update init py * update init py * format solidity --------- Co-authored-by: Segue <[email protected]> * Add get stakers (#244) * add getStakers * staking contract add getStakers * fix(l2staking): test case adding commission rate * Staking: Clean code (#245) * fix typo * update precision * clean code comments * update l1 stakers store * fix l2 staking * update bindings * update test * update bindings * update l1 staking cross chain gas limit * Staking: Update events (#248) * fix distribute * update events * update bindings * fix(l2staking): block count fix * fix(l2staking): update gov test case * feature:Staking oracle (#243) * init * init * add oracle * add sequencer commision * fix and clean * revert go.work go version * fix(l2staking): change candidateNumber when undelegate, adding test case * fix(l2staking): update test case for undelegate * fix(l2staking): update sequencer set when ranking change * Fix deploy (#254) * fix L1 contract deploy * fix L2 deploy * update bindings * Feat/staking submitter (#250) * update bindings * rm getNextSubmitter * add staking address param * add IsStaker * rename staking address flag * update bindings * update iface --------- Co-authored-by: WorldDogs <[email protected]> * update test events * add init l2staking (#261) Co-authored-by: fletcher.fan <[email protected]> * clean contracts * update test * update bindings * fix sth and update test * Feat/staking submitter (#262) * update bindings * rm getNextSubmitter * add staking address param * add IsStaker * rename staking address flag * update bindings * update iface * add l2 clients * rename env l1 staking address --------- Co-authored-by: WorldDogs <[email protected]> * clean contracts * fix encode * fix deploy config (#267) * update l1 staking * update test * update bindings * fix data encode --------- Co-authored-by: timtide <[email protected]> Co-authored-by: timtide <[email protected]> Co-authored-by: Ryan He <[email protected]> Co-authored-by: FletcherMan <[email protected]> Co-authored-by: fletcher.fan <[email protected]> Co-authored-by: WorldDogs <[email protected]> Co-authored-by: kukoo <[email protected]> Co-authored-by: corey <[email protected]> Co-authored-by: WorldDogs <[email protected]>
curryxbo
added a commit
that referenced
this pull request
May 7, 2024
* init staking * update * update test * feat: add morph token function * feat: update mint function * perfect morph token test * modify package and yarn file * update go mod * optimize mint function * improve mint features * fix mint fail * add comment * add a conditional limit for the begin time * l2 staking (#172) * feat(l2staking): adding the L2 staking * feat(l2staking): adding test cases for L2 staking * feat(l2staking): harmonize interface names, modify undelegate * feat(l2staking): modify delegate logic & adding test cases * feat(l2staking)modify staking logic & test cases * feat(l2staking) update sequencer & submitter * feat(l2staking): update staking test cases * fix(l2staking) fix conflicts * mint function add return param * update and clean * add distribute contract * feat(l2staking): adding test cases for sequencer & staking * optimize mint function * optimize mint function * modify distribute contract * Morph token (#160) * feat: add morph token function * feat: update mint function * perfect morph token test * modify package and yarn file * optimize mint function * improve mint features * fix mint fail * add comment * add a conditional limit for the begin time * mint function add return param * add distribute contract * optimize mint function * optimize mint function * modify distribute contract --------- Co-authored-by: timtide <[email protected]> * formatted file * Morph token (#176) * feat: add morph token function * feat: update mint function * perfect morph token test * modify package and yarn file * optimize mint function * improve mint features * fix mint fail * add comment * add a conditional limit for the begin time * mint function add return param * add distribute contract * optimize mint function * optimize mint function * modify distribute contract * formatted file --------- Co-authored-by: timtide <[email protected]> * feat(gov): adding gov * feat(gov): proposal can be approved * remove gov field * fix(l2staking): adding update sequencer set test cases * fix(l2staking): optimization gas used * feat(l2staking): integrate distribute * feat(gov): adding gov test cases * perfect distribute function * formate distribute contract * Morph token (#186) * feat: add morph token function * feat: update mint function * perfect morph token test * modify package and yarn file * optimize mint function * improve mint features * fix mint fail * add comment * add a conditional limit for the begin time * mint function add return param * add distribute contract * optimize mint function * optimize mint function * modify distribute contract * formatted file * remove gov field * perfect distribute function * formate distribute contract --------- Co-authored-by: timtide <[email protected]> * add partial parameters * fix(l2staking): integrate distribute * fix(l2staking): adding staker check * update * update rollup * reconfigure the distributte function * update staking & rollup logic * format code * update L2 staking * modifiy distribute contract * fix delete data confusion problem * update L2 contracts * add claimedEpochIndex and latestMintedEpochIndex function * move some funtion to IRecord * fix block info Indicates that data is out of order after deletion * uodata layer2 contracts * add distribute contract function comment * feat(l2staking): update l2 staking base * fix compilation failure * feat(l2staking): update l2 staking test cases * feat(l2staking): update l2 staking test cases * feat(l2staking): update l2 staking test cases * feat(l2staking): update l2 staking test cases * update l2 contracts * feat(l2staking): update l2 staking test cases * fix typo * refactor node sequencer set update (#204) * update rollup contract * fix distribute * update rollup contract * update bindings * fix rollup * feat(l2staking): update l2 staking test cases * fix distribute claim * clean rollup * feat(l2staking): update l2 staking test cases, claim reward * optimize the morph token and corresponding tests * rename funtion name * fix(l2staking): ratioSum <= RATIO_PRECISION * fix updateEpochReward fail * fix typo and record * update record * fix(l2staking): record change * refactor: rollup batch change (#227) * change batch sig format * add sequencer set bytes --------- Co-authored-by: fletcher.fan <[email protected]> * fix(l2staking): delegate stake -> distribute -> claim test cases, remove unused import * adjust batch struct * adjust L1 interface * update commitBatch params * keep one submitter * clean import * update doc * update rollup contract * update bindings * clean code * update test * update staking message encode * perfect the code * fix validator compile error (#229) Co-authored-by: fletcher.fan <[email protected]> * clean code * update bindings * optimize gas * optimize morph token gas * add function to interface * optimize gas * add interface * Refactor batch store (#239) * delete challenge if pause (#233) * update bindings * Staking: Fix register staker (#240) * Fix register staker * fix * update commitBatch * Staking deploy (#241) * update deploy * update l1 deploy * add L2Staking and Sequencer deploy * updae deploy config and deploy morph token * update L2Staking config * fix deploy * fix hardhat config url * set morph token and l2staking solt * update deploy py * fix Staking Sequencer * update init py * update init py * format solidity --------- Co-authored-by: Segue <[email protected]> * Add get stakers (#244) * add getStakers * staking contract add getStakers * fix(l2staking): test case adding commission rate * Staking: Clean code (#245) * fix typo * update precision * clean code comments * update l1 stakers store * fix l2 staking * update bindings * update test * update bindings * update l1 staking cross chain gas limit * Staking: Update events (#248) * fix distribute * update events * update bindings * fix(l2staking): block count fix * fix(l2staking): update gov test case * feature:Staking oracle (#243) * init * init * add oracle * add sequencer commision * fix and clean * revert go.work go version * fix(l2staking): change candidateNumber when undelegate, adding test case * fix(l2staking): update test case for undelegate * fix(l2staking): update sequencer set when ranking change * Fix deploy (#254) * fix L1 contract deploy * fix L2 deploy * update bindings * Feat/staking submitter (#250) * update bindings * rm getNextSubmitter * add staking address param * add IsStaker * rename staking address flag * update bindings * update iface --------- Co-authored-by: WorldDogs <[email protected]> * update test events * add init l2staking (#261) Co-authored-by: fletcher.fan <[email protected]> * clean contracts * update test * update bindings * fix sth and update test * Feat/staking submitter (#262) * update bindings * rm getNextSubmitter * add staking address param * add IsStaker * rename staking address flag * update bindings * update iface * add l2 clients * rename env l1 staking address --------- Co-authored-by: WorldDogs <[email protected]> * clean contracts * fix encode * fix deploy config (#267) * update l1 staking * update test * update bindings * fix rollup calldata decode * add ops * revert unnecessary changes * revert .gitmodeles * revert flags.go * clean --------- Co-authored-by: Segue <[email protected]> Co-authored-by: timtide <[email protected]> Co-authored-by: timtide <[email protected]> Co-authored-by: Ryan He <[email protected]> Co-authored-by: FletcherMan <[email protected]> Co-authored-by: fletcher.fan <[email protected]> Co-authored-by: WorldDogs <[email protected]> Co-authored-by: kukoo <[email protected]> Co-authored-by: WorldDogs <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.