Skip to content

Commit b2df2dd

Browse files
authored
Merge pull request #2774 from pyth-network/pyth-wormhole-stylus-integration
feat: wormhole receiver contract for stylus
2 parents eb65f9b + 50e0900 commit b2df2dd

File tree

13 files changed

+8692
-0
lines changed

13 files changed

+8692
-0
lines changed

target_chains/stylus/Cargo.lock

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

target_chains/stylus/Cargo.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[workspace]
2+
members = [
3+
"contracts/wormhole",
4+
]
5+
resolver = "2"
6+
7+
[workspace.package]
8+
edition = "2024"
9+
license = "Apache-2.0"
10+
repository = "https://github.com/pyth-network/pyth-crosschain"
11+
version = "0.1.0"
12+
13+
[workspace.dependencies]
14+
stylus-sdk = { version = "0.6.0", default-features = false }
15+
alloy-primitives = { version = "0.7.6", default-features = false }
16+
mini-alloc = { version = "0.4.2", default-features = false }
17+
motsu = "0.1.0"
18+
19+
k256 = { version = "0.13.3", default-features = false, features = ["ecdsa"] }
20+
21+
[profile.dev]
22+
panic = "abort"
23+
24+
[profile.release]
25+
opt-level = "z" # Optimize for size instead of speed
26+
lto = "fat" # More aggressive link-time optimization
27+
strip = "symbols" # Strip all symbols including debug
28+
panic = "abort" # Smaller panic handling
29+
codegen-units = 1 # Better optimization (slower build, smaller binary)
30+
overflow-checks = false # Disable overflow checks for size
31+
debug-assertions = false # Disable debug assertions
32+
incremental = false # Disable incremental compilation for better optimization
33+
rpath = false # Disable rpath for smaller binary
34+
35+
[profile.release.package."*"]
36+
opt-level = "z" # Force size optimization for all dependencies
37+
38+
[profile.release.package.k256]
39+
opt-level = "z"
40+
strip = "symbols"
41+
42+
[profile.release.package.alloy-primitives]
43+
opt-level = "z"
44+
strip = "symbols"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
RPC_URL=
2+
STYLUS_CONTRACT_ADDRESS=
3+
PRIV_KEY_PATH=

0 commit comments

Comments
 (0)