Skip to content

Commit 38f0326

Browse files
authored
Merge pull request #1 from Phala-Network/registry/evm-chain
Registry sketch and implementation for EVM chains
2 parents b7ff951 + fdc83cf commit 38f0326

File tree

23 files changed

+2244
-185
lines changed

23 files changed

+2244
-185
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ resolver = "2"
33

44
members = [
55
"contracts/semi-bridge",
6+
"contracts/registry",
67
]
78

89
exclude = [
@@ -19,3 +20,5 @@ ink_lang = { git = "https://github.com/Phala-Network/ink.git", branch = "advtest
1920
ink_lang_codegen = { git = "https://github.com/Phala-Network/ink.git", branch = "advtest-3.4.0" }
2021
ink_lang_ir = { git = "https://github.com/Phala-Network/ink.git", branch = "advtest-3.4.0" }
2122
ink_lang_macro = { git = "https://github.com/Phala-Network/ink.git", branch = "advtest-3.4.0" }
23+
24+
signature = { git = "https://github.com/RustCrypto/traits.git", tag = "signature-v1.3.1" }

contracts/registry/Cargo.toml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
[package]
2+
name = "index_registry"
3+
version = "0.1.0"
4+
authors = ["Phala Network"]
5+
edition = "2021"
6+
license = "Apache 2.0"
7+
homepage = "https://phala.network/"
8+
repository = "https://github.com/Phala-Network/index-contract"
9+
10+
[dependencies]
11+
hex-literal = "0.3"
12+
ink_primitives = { version = "3", default-features = false }
13+
ink_metadata = { version = "3", default-features = false, features = ["derive"], optional = true }
14+
ink_env = { version = "3", default-features = false }
15+
ink_storage = { version = "3", default-features = false }
16+
ink_lang = { version = "3", default-features = false }
17+
18+
scale = { package = "parity-scale-codec", version = "3.1", default-features = false, features = ["derive"] }
19+
scale-info = { version = "2.1", default-features = false, features = ["derive"], optional = true }
20+
xcm = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.29", default-features = false }
21+
phala-pallet-common = { git = "https://github.com/Phala-Network/khala-parachain", tag = "v0.1.18", default-features = false }
22+
23+
pink-extension = { version = "0.1.0", default-features = false }
24+
pink-web3 = { git = "https://github.com/Phala-Network/pink-web3.git", branch = "pink", default-features = false, features = ["pink"]}
25+
26+
index = { path = "../../index", default-features = false }
27+
28+
[dev-dependencies]
29+
hex-literal = "0.3"
30+
pink-extension-runtime = "0.1.3"
31+
dotenv = "0.15.0"
32+
33+
[profile.release]
34+
overflow-checks = false # Disable integer overflow checks.
35+
lto = false # Enable full link-time optimization.
36+
37+
[lib]
38+
name = "evm_chain"
39+
path = "src/lib.rs"
40+
crate-type = [
41+
# Used for normal contract Wasm blobs.
42+
"cdylib",
43+
# Used for ABI generation.
44+
"rlib",
45+
]
46+
47+
[features]
48+
default = ["std"]
49+
std = [
50+
"ink_metadata/std",
51+
"ink_env/std",
52+
"ink_storage/std",
53+
"ink_primitives/std",
54+
"scale/std",
55+
"scale-info/std",
56+
"xcm/std",
57+
"phala-pallet-common/std",
58+
"pink-extension/std",
59+
"pink-web3/std",
60+
"index/std",
61+
]
62+
ink-as-dependency = []

0 commit comments

Comments
 (0)