-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
I think consensus + frame + rpc is enough. |
OK, I am going to clear the useless files and commit later. |
Which frontier version are we using? I'll review this later. |
Please check the first commit msg |
Better to move For DVM is the abbreviation of Darwinia Smart-contract VM, which is compatible and fork of EVM. |
Yeap, It looks more clear to put How about putting darwinia-common
- bin
- frame
- balances
- dvm
- ethereum
- consensus
- rpc |
Yes, I think it is a good idea to do it in this way, just like another example in substrate: https://github.com/paritytech/substrate/blob/master/frame/contracts/rpc/src/lib.rs There are some rpc package from ethereum web3 which might be not directly to evm pallet, and more like primitives, can also moved to primitives folder |
So, I guess the final skeleton looks like the file tree I painted above just now? If I am not misunderstand, I will work on this change. Thank you for making sure it again. |
a873924
to
44eefce
Compare
@wuminzhe IMO |
47aa3fb
to
7e52571
Compare
Is it necessary to set the accountId Prefix to 11 length bytes? For the length of the checksum as short as possible? 4 bytes length Prefix might more understandable. Why not leave an 8 length checksum at the end and keep 4 bytes length prefix at the head. |
1 byte is enough for checksum purpose. The others are just leaving there for future extension such as version etc. It is not necessary, but make sense IMO. |
@hackfisher What precompile name will be better? |
I have no idea, but I will suggest |
The final name: |
c624492
to
e7f6860
Compare
@AurevoirXavier @hackfisher @wuminzhe This PR based on the latest code is ready to review by all guys. |
959e745
to
bc8ef74
Compare
Desc
This is the first PR to integrate the frontier into the Darwinia network.
Finished Tasks
ethereum-pallet
.Change the default address mapping functions from original
HashedAddressMapping<BlakeTwo256>
toConcatAddressMapping
.A new EVM precompiled contract
TransferBack
added. The contract name and implementation might be changed later in future prs.