Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ soroban-sdk = { version = "26.0.1" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
anyhow = "1.0"
dotenv = "0.15"
dotenvy = "0.15"
common = { package = "orbitchain-common", path = "common" }
2 changes: 2 additions & 0 deletions campaign/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name = "orbitchain-campaign"
version = "0.1.0"
edition = "2021"
license = "MIT"
publish = false
description = "OrbitChain campaign smart contract — milestones, donations, refunds, and lifecycle"

[lib]
Expand Down
2 changes: 2 additions & 0 deletions common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name = "orbitchain-common"
version = "0.1.0"
edition = "2021"
license = "MIT"
publish = false
description = "OrbitChain common types — shared CampaignStatus, MilestoneStatus, AssetInfo, and ErrorCode"

[lib]
Expand Down
2 changes: 2 additions & 0 deletions crates/contracts/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name = "orbitchain-core"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license = "MIT"
publish = false
description = "Legacy OrbitChain campaign reference contract; canonical implementation lives in orbitchain-campaign"

[lib]
Expand Down
4 changes: 3 additions & 1 deletion crates/tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name = "orbitchain-tools"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license = "MIT"
publish = false
description = "OrbitChain CLI tools — key management, signing, asset issuing, and payment processing"

[[bin]]
Expand All @@ -15,7 +17,7 @@ serde = { workspace = true }
serde_json = { workspace = true }
tokio = { version = "1.0", features = ["rt", "macros", "time"] }
anyhow = { workspace = true }
dotenv = { workspace = true }
dotenvy = { workspace = true }
toml = "0.8"
aes-gcm = "0.10"
rand = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion crates/tools/src/asset_issuing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub struct TrustlineConfig {

impl AssetConfig {
pub fn from_env() -> Result<Self> {
dotenv::dotenv().ok();
dotenvy::dotenv().ok();

let code = env::var("ASSET_CODE")
.unwrap_or_else(|_| "ORBIT".to_string());
Expand Down
2 changes: 1 addition & 1 deletion crates/tools/src/encrypted_vault.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl EncryptedVault {
/// Load vault configuration from .env file
#[must_use]
pub fn from_env() -> Result<Self> {
dotenv::dotenv().ok();
dotenvy::dotenv().ok();

// Try to get master password from environment
let master_password = env::var("VAULT_MASTER_PASSWORD")
Expand Down
2 changes: 1 addition & 1 deletion crates/tools/src/environment_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl EnvironmentConfig {
}

pub fn from_env() -> Result<Self> {
dotenv::dotenv().ok();
dotenvy::dotenv().ok();

let network = env::var("SOROBAN_NETWORK").unwrap_or_else(|_| "testnet".to_string());

Expand Down
2 changes: 1 addition & 1 deletion crates/tools/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ mod withdrawal_audit;
mod withdrawal_limits;

fn main() -> Result<()> {
dotenv::dotenv().ok();
dotenvy::dotenv().ok();

let args: Vec<String> = env::args().collect();

Expand Down
2 changes: 1 addition & 1 deletion crates/tools/src/secure_vault.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub struct SecureVault {
impl SecureVault {
#[must_use]
pub fn from_env() -> Self {
dotenv::dotenv().ok();
dotenvy::dotenv().ok();

Self {
admin_secret_key: env::var("SOROBAN_ADMIN_SECRET_KEY").ok(),
Expand Down
55 changes: 55 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# cargo-deny configuration
# Run `cargo deny check` to verify license compliance

[advisories]
# Advisories to ignore (after review)
ignore = []
# How to handle yanked crates: deny, warn (default), or allow
yanked = "warn"
# How to handle unmaintained advisories: all, workspace, transitive, none
unmaintained = "workspace"
# How to handle unsound advisories: all, workspace (default), transitive, none
unsound = "workspace"
# Warn about unused ignored advisories
unused-ignored-advisory = "warn"

[licenses]
# List of allowed licenses.
# See https://spdx.org/licenses/ for full list.
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"Unicode-3.0",
"Unlicense",
"Zlib",
]
# Confidence threshold for license detection (0.0 - 1.0)
confidence-threshold = 0.8
# Warn about unused allowed licenses
unused-allowed-license = "warn"

# Specific exceptions for crates that need additional licenses
# [[licenses.exceptions]]
# allow = ["License-Id"]
# crate = "crate-name"

[bans]
# Specific crates that are banned
deny = [
# Example: { name = "openssl", reason = "Using rustls instead" },
]
# Skip these specific crates from being checked
skip = []
# Skip entire trees
skip-tree = []

[sources]
# Only allow crates from crates.io by default
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
# Deny unknown registries
unknown-registry = "deny"
# Deny git sources unless explicitly allowed
unknown-git = "deny"
2 changes: 2 additions & 0 deletions token-bridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name = "orbitchain-token-bridge"
version = "0.1.0"
edition = "2021"
license = "MIT"
publish = false
description = "OrbitChain cross-chain token bridge contract"

[lib]
Expand Down