Skip to content

Conversation

icemelon
Copy link
Member

@icemelon icemelon commented Feb 20, 2023

  1. Purpose or design rationale of this PR

    The original commit history is from PR Relayer changes scrollchain #296. Because the previous PR is built on top of the bridge contract PR, which is now merged to alpha branch, I reset the pending changes against the latest alpha.

    The features and changes introduced in this PR include:

    • update the event signatures based on the latest bridge contract
    • add the gas oracle relaying to the L1 relayer and add an additional L1 block table to the DB
    • change the batch proposing and commitment logic. previously the commit tx is initialized by the L2 relayer, but now done by batch proposer
    • rename the batch ID to batch hash and update the hash calculation method based on the new contract design
    • change the DB table schema with regard to the batch hash
  2. Does this PR involve a new deployment, and involve a new git tag & docker image tag? If so, has tag in common/version.go been updated?
    TBD

  3. Is this PR a breaking change? If so, have it been attached a breaking-change label?
    Yes.

@colinlyguo colinlyguo force-pushed the feat/update-relayer-for-new-contract branch 2 times, most recently from da321e8 to 33e2b6c Compare February 21, 2023 00:43
@icemelon icemelon changed the title apply all relayer changes to latest alpha branch Update the watcher and relayer to the latest contract Feb 21, 2023
@icemelon icemelon changed the title Update the watcher and relayer to the latest contract Update the watcher and relayer based on the new contract Feb 21, 2023
@icemelon icemelon changed the title Update the watcher and relayer based on the new contract feat(relayer): update the watcher and relayer based on the new contract Feb 21, 2023
@ChuhanJin
Copy link
Contributor

42% (-4.43%) vs master 46%

@ChuhanJin
Copy link
Contributor

42% (-4.58%) vs master 46%

@ChuhanJin
Copy link
Contributor

42% (-4.36%) vs master 46%

@ChuhanJin
Copy link
Contributor

42% (-4.36%) vs master 46%

@icemelon icemelon force-pushed the feat/update-relayer-for-new-contract branch from 8c6ac25 to d663d05 Compare February 21, 2023 03:07
@ChuhanJin
Copy link
Contributor

42% (-4.39%) vs master 46%

@ChuhanJin
Copy link
Contributor

44% (-2.1%) vs master 46%

@ChuhanJin
Copy link
Contributor

44% (-2.1%) vs master 46%

Thegaram
Thegaram previously approved these changes Feb 22, 2023
colinlyguo
colinlyguo previously approved these changes Feb 22, 2023
@colinlyguo colinlyguo dismissed stale reviews from Thegaram and themself via 85e26c0 February 22, 2023 06:54
@ChuhanJin
Copy link
Contributor

44% (-1.88%) vs master 46%

colinlyguo
colinlyguo previously approved these changes Feb 22, 2023
@ChuhanJin
Copy link
Contributor

44% (-1.87%) vs master 46%

@colinlyguo colinlyguo force-pushed the feat/update-relayer-for-new-contract branch from d685b22 to 44f1d0b Compare February 22, 2023 08:08
@ChuhanJin
Copy link
Contributor

44% (-1.84%) vs master 46%

@0xmountaintop
Copy link
Contributor

we should update common/version/version.go

Thegaram
Thegaram previously approved these changes Feb 22, 2023
@ChuhanJin
Copy link
Contributor

44% (-1.72%) vs master 46%

@ChuhanJin
Copy link
Contributor

44% (-1.72%) vs master 46%

@0xmountaintop 0xmountaintop merged commit fb7002b into alpha Feb 22, 2023
@0xmountaintop 0xmountaintop deleted the feat/update-relayer-for-new-contract branch February 22, 2023 10:15
ChuhanJin pushed a commit that referenced this pull request Mar 15, 2023
Co-authored-by: colinlyguo <[email protected]>
Co-authored-by: maskpp <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: Péter Garamvölgyi <[email protected]>

refactor(bridge): remove layer1 client in in layer1 relayer constructor (#274)

Co-authored-by: vincent <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>

fix: add gas multiplier (#275)

feat(libzkp): use dylib instead of staticlib  (#266)

Co-authored-by: maskpp <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: colin <[email protected]>
Co-authored-by: colinlyguo <[email protected]>

Revert "fix: add gas multiplier (#275)" (#279)

build: add nightly-2022-12-10 rust-related builder image (#282)

fix(bridge): compatible with DynamicFeeTxType not supported chain (#280)

Co-authored-by: colinlyguo <[email protected]>

feat(contract): enable whitelist relayer (#272)

Co-authored-by: Péter Garamvölgyi <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>

perf(bridge): execute relayer loops independently (#258)

Co-authored-by: colin <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>

feat(bridge): confirm block based on "safe" and "finalized" tags (#265)

feat: allow to override L2 deployment when address is provided (#293)

feat(contracts): Add fee vault (#223)

feat(confirmations): Upgrade confirm (#291)

feat(coordinator): Enable set ws compression level. (#292)

feat(roller&coordinator): upgrade lizkp to zkevm-0215 version (#281)

Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: xinran chen <[email protected]>
Co-authored-by: Ubuntu <[email protected]>

build: update version to `alpha-v1.0` (#301)

feat: import genesis batch during startup (#299)

Co-authored-by: HAOYUatHZ <[email protected]>

feat(contracts): new bridge contracts (#288)

Co-authored-by: Haichen Shen <[email protected]>
Co-authored-by: Thegaram <[email protected]>
Co-authored-by: colin <[email protected]>

chore: upgrade l2geth dependency for trace type (#304)

feat(bridge): update the watcher and relayer based on the new contract (#305)

Co-authored-by: colinlyguo <[email protected]>
Co-authored-by: zimpha <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>

fix incorrect block order during batch recovery (#311)

fix(bridge): fix batch proposer (#312)

Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: Péter Garamvölgyi <[email protected]>

fix: Flush buffered writer (#314)

fix(config): fix typos (#315)

feat(bridge): only update gas price oracle for exceeding diff threshold (#319)

fix(bridge): fix typos (#321)

feat(batch proposer): add time limit to commit batches (#323)

fix(db): fix `SetMaxOpenConns` (#328)

Fix(zkevm): fix zkevm bug for goerli.  (#334)

fix(build): jenkinsfile tag job optimized and fix (#331)

Co-authored-by: vincent <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>

fix: reduce finalize batch tx frequency (#332)

alpha inegration with multibin

fix makefile

fix lint

fix lint

try fix commit

op

fix lint

goimports

trigger ci

bugfix(libzkp): fix difficulty (#343)

fix(contract): forbid to call message queue and l2 messenger from l1 (#341)

Co-authored-by: HAOYUatHZ <[email protected]>

fix(roller): fix stack bug (#320)

Co-authored-by: HAOYUatHZ <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants