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

WIP: use evm chains as the settlement chain #203

Closed
1 of 2 tasks
imotai opened this issue Nov 30, 2022 · 0 comments
Closed
1 of 2 tasks

WIP: use evm chains as the settlement chain #203

imotai opened this issue Nov 30, 2022 · 0 comments

Comments

@imotai
Copy link
Contributor

imotai commented Nov 30, 2022

Overview

db3-bridge

  1. db3 erc20 contract, db3 token contract
  2. db3 rollup contract, a bridge contract for db3 bridge
  3. db3 bridge

deposit

  1. User deposits at least 10 $db3 to db3 rollup contract
  2. the rollup contract dispatches messages with address and balance
  3. the bridge processes the message and mints 10 $db3 credits on every sharding chains

we will add a new mutation operation named Mint Credits
db3-mutaion

detailed implementation

db3-deposit

settle

the db3 bridge will process all bills from every sharding chains

  1. get bills from a block
  2. generate a new state with <account, bill>
  3. post the state to db3 rollup contract
  4. the rollup contract dispatches settle event message
  5. the bridge processes the message and mints related credits on every sharding chains

Solution

Alternatives

Additional context

Related Issue

Reference

@imotai imotai changed the title WIP: use etherume or etherume L2 as the settlement chain WIP: use ethereum or ethereum L2 as the settlement chain Nov 30, 2022
@imotai imotai changed the title WIP: use ethereum or ethereum L2 as the settlement chain WIP: use ethereum as the settlement chain Dec 4, 2022
@imotai imotai added the dip label Dec 12, 2022
@imotai imotai changed the title WIP: use ethereum as the settlement chain WIP: use evm chains as the settlement chain Feb 15, 2023
@imotai imotai pinned this issue Feb 16, 2023
@imotai imotai linked a pull request Feb 16, 2023 that will close this issue
7 tasks
@imotai imotai reopened this Feb 22, 2023
@imotai imotai removed a link to a pull request Feb 22, 2023
7 tasks
@imotai imotai unpinned this issue Jun 7, 2023
@imotai imotai closed this as completed Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant