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

Decentralized relayer #214

Merged
merged 48 commits into from
Aug 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
dddcbbb
Initial TRON support
lok52 Aug 26, 2023
c69473a
Fix error catching
lok52 Aug 26, 2023
a90bb32
Support for TRON address type in /limits endpoint
lok52 Aug 26, 2023
368caaf
Minor refactoring
lok52 Sep 19, 2023
845e276
Remove mock proof
lok52 Oct 11, 2023
b1c0524
Make configurable feeLimit
lok52 Nov 2, 2023
86079c0
Add MPC guard service
lok52 Dec 17, 2023
9d4fc86
MPC relayer
lok52 Dec 18, 2023
13f6848
Fix guard signatures
lok52 Dec 19, 2023
9ffb428
Fix guard signature
lok52 Dec 20, 2023
5ccf6e9
Update launch scripts
lok52 Dec 20, 2023
415308b
Add debug logs
lok52 Dec 20, 2023
11f15f5
Handle trongrid error
lok52 Jan 13, 2024
5ce3a0a
Initial
lok52 Feb 9, 2024
1da9a24
Update launch script
lok52 Feb 13, 2024
55a0a60
Ingore legacy ts errors
lok52 Feb 13, 2024
3db7b35
Fix memo offset
lok52 Feb 13, 2024
f09042c
Fix commitment-watcher
lok52 Feb 13, 2024
17a4a95
Fix fetching limits from external accounting contract
lok52 Feb 20, 2024
c57fd63
Add /fee and /address endpoints for prover
lok52 Feb 20, 2024
a635d36
Fix job state & RelayPool fetcher
lok52 Feb 21, 2024
312856d
Add /proverFee endpoint
lok52 Feb 22, 2024
7785e49
Fix fee manager init
lok52 Feb 22, 2024
57742fe
Fix RelayPool validation
lok52 Mar 4, 2024
a8e71c9
Fix commitment processing condition (#215)
AllFi Mar 27, 2024
b0abe89
Add indexer service & make relayer stateless
lok52 Apr 2, 2024
d75f555
Fix build
lok52 Apr 2, 2024
a7145c3
Add proxy optimistic state
lok52 Apr 10, 2024
d9c8bdd
Fix indexer sync
lok52 Apr 10, 2024
e854e70
Add TxStore
lok52 Apr 10, 2024
b3d6097
Fix build
lok52 Apr 10, 2024
06dd331
Fix indexer offset
lok52 Apr 10, 2024
0a835c7
Fix prover sync bug (#216)
AllFi Apr 19, 2024
4e446c8
Add direct deposits
lok52 Jun 7, 2024
6ce96ca
Fix watcher init
lok52 Jun 7, 2024
b52416b
updates job status on queue inclusion (#217)
r0wdy1 Jun 14, 2024
b29ef3c
Fix basic dd logic (#219)
AllFi Jun 27, 2024
404597f
Mark job as failed if the indexer isn't synced yet
AllFi Jul 10, 2024
5e21934
Remove obsolete job
AllFi Jul 10, 2024
c9b36f6
Fix sync
AllFi Jul 10, 2024
a4c2e71
Fix sync
AllFi Jul 10, 2024
f8bc615
Attempt to fix dd flow
AllFi Jul 11, 2024
7ea6d89
Remove unnecessary code
AllFi Jul 11, 2024
a82c66b
Merge pull request #221 from zkBob/fix/prover-sync
AllFi Jul 19, 2024
b11b878
Refactor code
AllFi Jul 24, 2024
f6f04e1
Merge pull request #222 from zkBob/feature/decentralized-relayer-refa…
AllFi Jul 25, 2024
3c91321
remove redundant methods
r0wdy1 Aug 7, 2024
1673b32
Merge branch 'devel' into feature/decentralized-relayer
r0wdy1 Aug 7, 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
Prev Previous commit
Next Next commit
Fix sync
  • Loading branch information
AllFi committed Jul 10, 2024
commit c9b36f603d40ab59443c3c0f9b79c9b6be55c33c
4 changes: 2 additions & 2 deletions zp-relayer/pool/BasePool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ export abstract class BasePool<N extends Network = Network> {

async syncStateFromIndexer(indexerUrl: string) {
let txs = []
let commitIndex = this.optimisticState.getNextIndex() / OUTPLUSONE
let commitIndex = this.state.getNextIndex() / OUTPLUSONE
do {
txs = await this.fetchTransactionsFromIndexer(indexerUrl, this.optimisticState.getNextIndex(), 200)
txs = await this.fetchTransactionsFromIndexer(indexerUrl, this.state.getNextIndex(), 200)
for (const tx of txs) {
const outCommit = hexToNumberString('0x' + tx.commitment)
this.optimisticState.addCommitment(commitIndex, Helpers.strToNum(outCommit))
Expand Down
Loading