[package]
name                       = "pyth-near"
version                    = "0.1.1"
authors                    = ["Pyth Data Association"]
edition                    = "2021"
description                = "A Pyth Receiver for Near"
repository                 = "https://github.com/pyth-network/pyth-crosschain"

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

[features]
library = []

[dependencies]
byteorder                  = { version = "1.4.3" }
hex                        = { version = "0.4.3" }
near-sdk                   = { version = "5.5.0", features = ["legacy"] }
nom                        = { version = "7.1.2" }
num-traits                 = { version = "0.2.15" }
num-derive                 = { version = "0.3.3" }
pythnet-sdk = { path = "../../../pythnet/pythnet_sdk" }
pyth-sdk                   = { version = "0.7.0" }
schemars                   = { version = "0.8.21" }
serde_wormhole             = { git = "https://github.com/wormhole-foundation/wormhole", tag="rust-sdk-2024-01-25" }
strum                      = { version = "0.24.1", features = ["derive"] }
thiserror                  = { version = "1.0.38" }
wormhole-sdk               = { git = "https://github.com/wormhole-foundation/wormhole", tag="rust-sdk-2024-01-25" }

[dev-dependencies]
lazy_static                = { version = "1.4.0" }
serde_json                 = { version = "1.0.91" }
serde                      = { version = "1.0.152", features = ["derive"] }
tokio                      = { version = "1.23.0", features = ["full"] }
serde_wormhole             = { git = "https://github.com/wormhole-foundation/wormhole", tag="rust-sdk-2024-01-25" }
near-workspaces            = { version = "0.14.1" }
wormhole-sdk               = { git = "https://github.com/wormhole-foundation/wormhole", tag="rust-sdk-2024-01-25" }
pythnet-sdk                = { path = "../../../pythnet/pythnet_sdk", features = ["test-utils"] }
near-sdk                   = { version = "*", features = ["unit-testing"] }



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

[package.metadata.near.reproducible_build]
image                   = "sourcescan/cargo-near:0.13.3-rust-1.84.1"
image_digest            = "sha256:baa712c5d2b7522d38175e36330d336ad2c4ce32bfaaa41af94ce40407ecd803"
passed_env              = []
container_build_command = ["cargo", "near", "build", "non-reproducible-wasm", "--locked"]
