[package]
name = "pyth-receiver-stylus"
version = "0.1.11"
edition = "2021"
homepage = "https://github.com/pyth-network/pyth-crosschain"
repository = "https://github.com/pyth-network/pyth-crosschain"
keywords = ["arbitrum", "ethereum", "stylus", "alloy", "pyth"]
description = "Pyth receiver contract for the Arbitrum networks, built on Arbitrum Stylus"

[dependencies]
alloy-primitives = "=0.8.20"
alloy-sol-types = "=0.8.20"
stylus-sdk = "0.9.0"
byteorder = { version = "1.4.3" }
hex = { version = "0.4", default-features = false }
pythnet-sdk = { path = "../../../../pythnet/pythnet_sdk" }
serde = { version = "1.0", features = ["derive"] }
wormhole-vaas = "0.1.1"

[dev-dependencies]
alloy-primitives = { version = "=0.8.20", features = ["sha3-keccak"] }
tokio = { version = "1.12.0", features = ["full"] }
ethers = "2.0"
eyre = "0.6.8"
stylus-sdk = { version = "0.9.0", features = ["stylus-test"] }
dotenv = "0.15.0"
motsu = "0.9.0"
wormhole-contract = { path = "../wormhole" }
mock_instant = "0.6.0"

[features]
default = ["mini-alloc"]
export-abi = ["stylus-sdk/export-abi"]
debug = ["stylus-sdk/debug"]
mini-alloc = ["stylus-sdk/mini-alloc"]

[[bin]]
name = "pyth-receiver-stylus"
path = "src/main.rs"

[lib]
crate-type = ["lib", "cdylib"]

[profile.release]
codegen-units = 1
opt-level = "s"
lto = true
debug = false
panic = "abort"
overflow-checks = true