-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor node process * refactor node, broadcaster * refactor provider * refactor merkle, types * refactor db * refactor executor * add migration function * change iterate name & append splitter to key when iterating * add LastProcessedBlockHeightKey migration * only change key if it exists * wrap errors to clarify them * wrap errors on key, provider * wrap errors & merge main * makes log as production & add log-format flag * fix reverse iterate finding prev inclusive start key * db test * db stage test * save finalized tree when it exists * merge cmd * merkle test * merkle types test * host deposit & txhandler test * host handler test * keys test * txutil test * child deposit oracle test * refactor child db and add l2 sequence checker into handleInitiateWithdrawal and test * prepare tree, output test * add version to working tree info & child withdrawal test * child handle output test * child db handler query test * executor types test * format * delete oracle msg data from authz msg & oracle test * update batch info test * batch test * add timestamp & tx hash to withdrawals (#54) * add timestamp & tx hash to withdrawals * fix test and lint * delete last block height --------- Co-authored-by: beer-1 <[email protected]> * format * add batch handler test & fix checkbatch test * add some comments * feat: make stage copiable and introduce allow to customize prefix of db (#56) * make stage copiable and introduce allow to customize prefix of db * add UTC to all time.Unix interface * Update merkle/types/db.go comment Co-authored-by: beer-1 <[email protected]> * simplify delete tree logic * Update merkle/merkle.go comment Co-authored-by: beer-1 <[email protected]> * Update merkle/types/db.go comment Co-authored-by: beer-1 <[email protected]> * Update merkle/db.go Co-authored-by: beer-1 <[email protected]> * Update merkle/types/db.go Co-authored-by: beer-1 <[email protected]> * withdrawal prefix migration * iterate from sequence using start key * use utc time * change ctx name * v0.1.11 migration command * save finalized tree with its value method * coderabbit loop syntax change suggestion * block handler length verification * format * check if tx is inserted to block during waiting time * skip calculating processed heights when nodes have synced height info * get height comments * query block time with block header * Update node/tx_checker.go Co-authored-by: beer-1 <[email protected]> * Update node/tx_checker.go Co-authored-by: beer-1 <[email protected]> * Update challenger/child/withdraw.go Co-authored-by: beer-1 <[email protected]> * iterate future challenges from initial block time as start key * processedEvents typo * Update challenger/handler.go Co-authored-by: beer-1 <[email protected]> * let challenge query use next key * reuse empty batch file function * fix comment * Update node/broadcaster/broadcaster.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix typo * format * Update challenger/query.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * query refactor * Update challenger/query.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update challenger/query.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * error wrapping --------- Co-authored-by: beer-1 <[email protected]> Co-authored-by: beer-1 <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Loading branch information
1 parent
1765f4b
commit b5d3fd3
Showing
161 changed files
with
10,985 additions
and
2,699 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
package types | ||
|
||
import ( | ||
"context" | ||
"github.com/initia-labs/opinit-bots/types" | ||
) | ||
|
||
type Bot interface { | ||
Initialize(context.Context) error | ||
Start(context.Context) error | ||
Close() | ||
Initialize(types.Context) error | ||
Start(types.Context) error | ||
} |
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.