This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* srml-evm: init the basic structures * srml-evm: finish executor implementation * srml-evm: implement balance deposit and withdraw * srml-evm: implement the actuall call/create * srml-evm: use crates.io version of evm * srml-evm: fix no-std compile * Remove dependency patch * Update to evm 0.14 * Use double map for account storage * Add precompiles support * Add some basic docs * Use runtime_io::chain_id() * Update srml/evm/src/lib.rs Co-Authored-By: Xiliang Chen <[email protected]> * Update srml/evm/src/lib.rs Co-Authored-By: Xiliang Chen <[email protected]> * Fix WithdrawReason * Unique saturate balance to u128 * Unique saturate withdraw to u128 * Remove extern crate alloc * Move account code to a separate storage and use ref for convert_account_id * More match cause for error message * Fix potential interger overflow * Use decode_len for fetching code length
- Loading branch information
Showing
7 changed files
with
601 additions
and
30 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ authors = ["Parity Technologies <[email protected]>"] | |
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" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>"] | ||
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", | ||
] |
Oops, something went wrong.