Skip to content

Commit 118bcc6

Browse files
committed
feat: evm_icp_bridge (WIP)
1 parent bc25f9f commit 118bcc6

File tree

12 files changed

+3294
-39
lines changed

12 files changed

+3294
-39
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ members = [
33
"src/cli_airdrop",
44
"src/cli_cryptogram",
55
"src/cli_dmsg",
6+
"src/evm_icp_bridge",
67
"src/ic_delegation_store",
78
"src/ic_dmsg_minter",
89
"src/ic_message",
@@ -31,6 +32,7 @@ categories = ["web-programming"]
3132
license = "MIT OR Apache-2.0"
3233

3334
[workspace.dependencies]
35+
alloy = "1"
3436
bytes = "1"
3537
base64 = "0.22"
3638
candid = "0.10"
@@ -41,6 +43,7 @@ serde_bytes = "0.11"
4143
serde_json = { version = "1", features = ["preserve_order"] }
4244
structured-logger = "1"
4345
tokio = { version = "1", features = ["full"] }
46+
k256 = { version = "0.13" }
4447
ed25519-dalek = "2"
4548
hex = "0.4"
4649
hmac = "0.12"
@@ -58,7 +61,8 @@ ic_cose_types = "0.9"
5861
ic-certification = "3.0"
5962
ic-oss-types = "1.2"
6063
ic-canister-sig-creation = "1.3"
61-
ic-ed25519 = { version = "0.3" }
64+
ic-ed25519 = "0.3"
65+
ic-secp256k1 = "0.2"
6266
ic-http-certification = "3"
6367
lazy_static = "1.5"
6468
once_cell = "1.21"

dfx.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"canisters": {
3+
"evm_icp_bridge": {
4+
"candid": "src/evm_icp_bridge/evm_icp_bridge.did",
5+
"declarations": {
6+
"node_compatibility": true
7+
},
8+
"package": "evm_icp_bridge",
9+
"optimize": "cycles",
10+
"gzip": true,
11+
"type": "rust"
12+
},
313
"ic_delegation_store": {
414
"candid": "src/ic_delegation_store/ic_delegation_store.did",
515
"declarations": {

src/evm_icp_bridge/Cargo.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[package]
2+
name = "evm_icp_bridge"
3+
description = "An Internet Computer canister to bridge ERC-20 & ICRC tokens."
4+
publish = false
5+
repository = "https://github.com/ldclabs/ic-panda/tree/main/src/evm_icp_bridge"
6+
version.workspace = true
7+
edition.workspace = true
8+
keywords.workspace = true
9+
categories.workspace = true
10+
license.workspace = true
11+
12+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
13+
14+
[lib]
15+
crate-type = ["cdylib"]
16+
17+
[dependencies]
18+
alloy = { workspace = true }
19+
base64 = { workspace = true }
20+
candid = { workspace = true }
21+
ciborium = { workspace = true }
22+
ic-cdk = { workspace = true }
23+
ic-cdk-timers = { workspace = true }
24+
ic-stable-structures = { workspace = true }
25+
ic-http-certification = { workspace = true }
26+
ic-dummy-getrandom-for-wasm = { workspace = true }
27+
ic_auth_types = { workspace = true }
28+
ic_cose_types = { workspace = true }
29+
ic-secp256k1 = { workspace = true }
30+
lazy_static = { workspace = true }
31+
once_cell = { workspace = true }
32+
url = { workspace = true }
33+
serde = { workspace = true }
34+
serde_bytes = { workspace = true }
35+
serde_json = { workspace = true }
36+
k256 = { workspace = true, features = ["ecdsa"] }

0 commit comments

Comments
 (0)