Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Substrate EVM #3927

Merged
merged 24 commits into from
Nov 3, 2019
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8c7a8f9
srml-evm: init the basic structures
sorpaas Oct 26, 2019
9e1b705
srml-evm: finish executor implementation
sorpaas Oct 26, 2019
2a8603b
srml-evm: implement balance deposit and withdraw
sorpaas Oct 26, 2019
caaa6a4
srml-evm: implement the actuall call/create
sorpaas Oct 26, 2019
1e0f6bd
srml-evm: use crates.io version of evm
sorpaas Oct 26, 2019
7d4b8f5
srml-evm: fix no-std compile
sorpaas Oct 26, 2019
6b2f8f9
Remove dependency patch
sorpaas Oct 26, 2019
16cf339
Update to evm 0.14
sorpaas Oct 31, 2019
676ef3f
Use double map for account storage
sorpaas Oct 31, 2019
c47e4fd
Add precompiles support
sorpaas Oct 31, 2019
0130df7
Add some basic docs
sorpaas Oct 31, 2019
1e61fb5
Use runtime_io::chain_id()
sorpaas Oct 31, 2019
72989b0
Merge branch 'master' of github.com:paritytech/substrate into sp-evm
sorpaas Oct 31, 2019
5afa764
Update srml/evm/src/lib.rs
sorpaas Oct 31, 2019
a160a4b
Update srml/evm/src/lib.rs
sorpaas Oct 31, 2019
968d848
Fix WithdrawReason
sorpaas Oct 31, 2019
d8a9345
Merge branch 'sp-evm' of github.com:paritytech/substrate into sp-evm
sorpaas Oct 31, 2019
700afd6
Unique saturate balance to u128
sorpaas Oct 31, 2019
5f8ef1b
Unique saturate withdraw to u128
sorpaas Oct 31, 2019
8fd20a1
Remove extern crate alloc
sorpaas Oct 31, 2019
eedb192
Move account code to a separate storage and use ref for convert_accou…
sorpaas Oct 31, 2019
f14a134
More match cause for error message
sorpaas Oct 31, 2019
cd78a2a
Fix potential interger overflow
sorpaas Oct 31, 2019
262b264
Use decode_len for fetching code length
sorpaas Nov 1, 2019
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
117 changes: 89 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ members = [
"srml/treasury",
"srml/transaction-payment",
"srml/utility",
"srml/evm",
"node/cli",
"node/executor",
"node/primitives",
Expand Down
2 changes: 1 addition & 1 deletion core/externalities/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
primitive-types = { version = "0.5.1", features = ["codec"] }
primitive-types = { version = "0.6", features = ["codec"] }
primitives-storage = { package = "substrate-primitives-storage", path = "../primitives/storage" }
rstd = { package = "sr-std", path = "../sr-std" }
environmental = { version = "1.0.2" }
2 changes: 1 addition & 1 deletion core/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ log = { version = "0.4.8", default-features = false }
serde = { version = "1.0.101", optional = true, features = ["derive"] }
twox-hash = { version = "1.5.0", optional = true }
byteorder = { version = "1.3.2", default-features = false }
primitive-types = { version = "0.5.1", default-features = false, features = ["codec"] }
primitive-types = { version = "0.6", default-features = false, features = ["codec"] }
impl-serde = { version = "0.2.1", optional = true }
wasmi = { version = "0.5.1", optional = true }
hash-db = { version = "0.15.2", default-features = false }
Expand Down
40 changes: 40 additions & 0 deletions srml/evm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[package]
name = "srml-evm"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
serde = { version = "1.0.101", optional = true, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
support = { package = "srml-support", path = "../support", default-features = false }
system = { package = "srml-system", path = "../system", default-features = false }
timestamp = { package = "srml-timestamp", path = "../timestamp", default-features = false }
balances = { package = "srml-balances", path = "../balances", default-features = false }
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
runtime-io = { package = "sr-io", path = "../../core/sr-io", default-features = false }
primitive-types = { version = "0.6", default-features = false, features = ["rlp"] }
rlp = { version = "0.4", default-features = false }
evm = { version = "0.14", default-features = false }
sha3 = { version = "0.8", default-features = false }

[features]
default = ["std"]
std = [
"serde",
"codec/std",
"primitives/std",
"sr-primitives/std",
"support/std",
"system/std",
"balances/std",
"runtime-io/std",
"rstd/std",
"sha3/std",
"rlp/std",
"primitive-types/std",
"evm/std",
"timestamp/std",
]
Loading