-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds withdrawal finalizing logic. (#56)
* adds finalization_data table migrations * add_withdrawals_data method implementation * adds a query to all newly executed withdrawals * change l2_block_number type and fix sender address conversion * add finalizer main loop and adding data to new table * adds a storage method to query previously unfinalized withdrawals * fixes is null check in storage * withdrawal log data is rlp encoded * conversion method from withdrawal data into requestfinalizewithdrawal * adds finalizer specific values to config * adds finalization status updates to db * adds finalizing logic * clippy * refactors code * refactor a couple of iterators * adds config value for the account private key * squash two structures together * rename finalizer contract variable * refactor a bit and add comments * do not request finalization status in watcher * remove redundant clone * adds btreemap to accumulator * document middlewares used by finalizer * cap tx fee limit const * reset accumulator with new gas price * rename migrator to params fetcher * use hashset for are withdrawals finalized results * use monotonically increasing id field for withdrawals * remove is_finalized field from withdrawals table * change tx_fee_limit expect message * rename id and make it a foreign key * a single foreign key on withdrawals * no lower boundary on finalization * only use withdrawal id as a foreign key in finalization_data * updates comment * if no money do not bump failed attempts counter * rename migrator handle
- Loading branch information
Showing
27 changed files
with
1,194 additions
and
252 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.