Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Move the entry of shadow from Golang to Rust #60

Merged
merged 21 commits into from
Aug 28, 2020
Merged

Move the entry of shadow from Golang to Rust #60

merged 21 commits into from
Aug 28, 2020

Conversation

clearloop
Copy link
Collaborator

@clearloop clearloop commented Aug 20, 2020

Desc

Here are lots of code in shadow service are as same as darwinia-common, for examples, eth primitives or MMR structure, rustify this repo and reduce duplicated code between darwinia-common and shadow.

Steps

  • MMR process
  • Ethereum receipt
  • Ethashproof
  • HTTP Server
  • Commands
  • Fix the async error of tokio

@clearloop clearloop marked this pull request as draft August 20, 2020 02:05
* feat(primitives): implement serde for big array

* feat(eth): getting headers from json rpc in rust
* feat(mmr): remove thread implementation in mmr

* refactor(internal): remove go packages and port ffi

* feat(ffi): add golang ffi examples

* feat(lock): clean go locks
@clearloop
Copy link
Collaborator Author

Remember removing the logs of commits 9b695ee to cf2cb23 while squash merging, they are mistakes of Github.

* refactor(ffi): clean rust ffi

* feat(header): complete darwinia eth header formatter

* refactor(crate): rename crate name from mmr to shadow

* feat(ffi): use rust struct as ffi params and resps

* feat(api): complete receipt api

* feat(api): add proposal api

* feat(api): add async traits
* feat(mmr): remove the cache operation in mmr runner

* refactor(ethash_proof): move the long name struct to ethashproof

* feat(http): json string resp of ethereum types

* fix(eth): the format of u256
* feat(cmd): supports shadow command in rust

* feat(cmd): complete trim command and async main
@hackfisher
Copy link
Contributor

@wuminzhe Aki, could you help review this pull request?

@hackfisher hackfisher requested a review from wuminzhe August 26, 2020 05:54
@clearloop
Copy link
Collaborator Author

@wuminzhe Aki, could you help review this pull request?

Wait a minute, more tests here.

@clearloop clearloop marked this pull request as ready for review August 26, 2020 09:17
@clearloop clearloop added the A0-pleasereview Pull request needs code review. label Aug 26, 2020
@wuminzhe
Copy link
Contributor

@hackfisher I will review it

@clearloop clearloop merged commit 13dd48a into next Aug 28, 2020
@clearloop clearloop deleted the rustify branch August 28, 2020 01:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-pleasereview Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants