Skip to content

Commit b2eec9e

Browse files
committed
feat: erc20 evm precompiles
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
1 parent f77d5b1 commit b2eec9e

16 files changed

Lines changed: 1317 additions & 23 deletions

File tree

Cargo.lock

Lines changed: 37 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ members = [
44
"primitives",
55
"parachain",
66
"parachain/runtime/*",
7+
"parachain/runtime/common/src/evm/macro",
8+
"parachain/runtime/common/src/evm/utils",
79
"rpc",
810
]
911

parachain/runtime/common/Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ version = "1.2.0"
88
targets = ['x86_64-unknown-linux-gnu']
99

1010
[dependencies]
11+
evm-macro = { path = "src/evm/macro", default-features = false }
12+
evm-utils = { path = "src/evm/utils", default-features = false }
1113

1214
# Substrate dependencies
1315
sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.31", default-features = false }
@@ -30,6 +32,7 @@ clients-info = { path = "../../../crates/clients-info", default-features = false
3032
collator-selection = { path = "../../../crates/collator-selection", default-features = false }
3133
currency = { path = "../../../crates/currency", default-features = false }
3234
democracy = { path = "../../../crates/democracy", default-features = false }
35+
dex-stable = { path = "../../../crates/dex-stable", default-features = false }
3336
escrow = { path = "../../../crates/escrow", default-features = false }
3437
fee = { path = "../../../crates/fee", default-features = false }
3538
issue = { path = "../../../crates/issue", default-features = false }
@@ -58,6 +61,7 @@ orml-xcm-support = { git = "https://github.com/open-web3-stack/open-runtime-modu
5861
orml-unknown-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", rev = "3fcd3cf9e63fe80fd9671912833a900ba09d1cc0", default-features = false }
5962

6063
# Frontier dependencies
64+
fp-evm = { git = "https://github.com/paritytech/frontier", branch = "polkadot-v0.9.42", default-features = false }
6165
pallet-base-fee = { git = "https://github.com/paritytech/frontier", branch = "polkadot-v0.9.42", default-features = false }
6266
pallet-ethereum = { git = "https://github.com/paritytech/frontier", branch = "polkadot-v0.9.42", default-features = false }
6367
pallet-evm = { git = "https://github.com/paritytech/frontier", branch = "polkadot-v0.9.42", default-features = false }
@@ -73,6 +77,9 @@ pallet-evm-precompile-simple = { git = "https://github.com/paritytech/frontier",
7377
[features]
7478
default = ["std"]
7579
std = [
80+
"evm-macro/std",
81+
"evm-utils/std",
82+
7683
"sp-std/std",
7784
"sp-runtime/std",
7885
"sp-core/std",
@@ -91,6 +98,7 @@ std = [
9198
"currency/std",
9299
"collator-selection/std",
93100
"democracy/std",
101+
"dex-stable/std",
94102
"escrow/std",
95103
"fee/std",
96104
"issue/std",
@@ -117,6 +125,7 @@ std = [
117125
"orml-xcm-support/std",
118126
"orml-unknown-tokens/std",
119127

128+
"fp-evm/std",
120129
"pallet-base-fee/std",
121130
"pallet-ethereum/std",
122131
"pallet-evm/std",
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[package]
2+
authors = ["Interlay Ltd"]
3+
edition = "2021"
4+
name = 'evm-macro'
5+
version = "1.2.0"
6+
7+
[lib]
8+
proc-macro = true
9+
10+
[dependencies]
11+
quote = "1.0.20"
12+
syn = { version = "1.0.98", features = ["full", "fold", "extra-traits", "visit"] }
13+
proc-macro2 = "1.0.40"
14+
sha3 = { version = "0.10", default-features = false }
15+
16+
[dev-dependencies]
17+
hex = "0.4.2"
18+
hex-literal = "0.3.1"
19+
evm-utils = { path = "../utils" }
20+
21+
# Substrate dependencies
22+
frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.31" }
23+
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.31" }
24+
25+
# Frontier dependencies
26+
fp-evm = { git = "https://github.com/paritytech/frontier", branch = "polkadot-v0.9.42" }
27+
28+
[features]
29+
default = ["std"]
30+
std = [
31+
"sha3/std",
32+
]

0 commit comments

Comments
 (0)