Skip to content
Merged
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
10 changes: 10 additions & 0 deletions .github/dependabot-suppress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Suppressed vulnerabilities for expected breaking changes
# Next.js v16 upgrade: resolves critical vulnerabilities in PostCSS and sharp
#
# The upgrade from Next.js 14 to 16 is a necessary security fix:
# - Patches PostCSS vulnerabilities (XSS, path traversal)
# - Patches sharp vulnerabilities (libvips CVEs)
# - Required to pass production dependency audit
#
# Dev dependency vulnerabilities (minimatch in @typescript-eslint) are excluded
# from production audit per CI configuration (--omit=dev)
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ jobs:
with:
shared-key: utility-protocol-ci
- name: Build WASM artifacts
run: cargo build --workspace --target wasm32-unknown-unknown --release
run: cargo build --manifest-path contracts/Cargo.toml --workspace --target wasm32-unknown-unknown --release
- name: Upload WASM artifacts
uses: actions/upload-artifact@v4
with:
name: wasm-artifacts
path: target/wasm32-unknown-unknown/release/*.wasm
path: contracts/target/wasm32-unknown-unknown/release/*.wasm
if-no-files-found: error

fuzz-detection:
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description = "Generates mock hardware signatures and JSON payloads for local te

[dependencies]
ed25519-dalek = { version = "2.1.0", features = ["rand_core"] }
rand = "0.8.5"
rand = "0.8.6"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
chrono = { version = "0.4", features = ["serde"] }
Expand Down
5 changes: 5 additions & 0 deletions contracts/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ doctest = false

[dependencies]
soroban-sdk = { workspace = true }
wee_alloc = { version = "0.4.5", optional = true }

[features]
default = []
wasm = ["wee_alloc"]
4 changes: 4 additions & 0 deletions contracts/common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#![no_std]
extern crate alloc;

#[cfg(all(target_arch = "wasm32", feature = "wasm"))]
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

pub mod errors;
pub mod graceful_degradation;
pub mod namespace;
Expand Down
1 change: 1 addition & 0 deletions contracts/fees/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ doctest = false

[dependencies]
soroban-sdk = { workspace = true }
wee_alloc = "0.4.5"

[dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
3 changes: 3 additions & 0 deletions contracts/fees/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#![no_std]

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

use soroban_sdk::xdr::ToXdr;
use soroban_sdk::{
contract, contractclient, contracterror, contractimpl, contracttype,
Expand Down
2 changes: 1 addition & 1 deletion contracts/meter-aggregator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ doctest = false

[dependencies]
soroban-sdk = { workspace = true }
utility-contracts-common = { path = "../common" }
utility-contracts-common = { path = "../common", features = ["wasm"] }

[dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
1 change: 1 addition & 0 deletions contracts/oracle-aggregator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ crate-type = ["lib", "cdylib"]
doctest = false

[dependencies]
wee_alloc = "0.4.5"
soroban-sdk = { workspace = true }

[dev-dependencies]
Expand Down
3 changes: 3 additions & 0 deletions contracts/oracle-aggregator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
//! value (or a conservative constant on cold start) and flags it via
//! `used_fallback`, so consumers can react rather than trust a silent value.

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

pub mod adapter;
mod aggregation;
pub mod chainlink;
Expand Down
1 change: 1 addition & 0 deletions contracts/price_oracle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ crate-type = ["lib", "cdylib"]
doctest = false

[dependencies]
wee_alloc = "0.4.5"
soroban-sdk = { workspace = true }

[dev-dependencies]
Expand Down
3 changes: 3 additions & 0 deletions contracts/price_oracle/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#![no_std]

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

use soroban_sdk::xdr::ToXdr;
use soroban_sdk::{
contract, contracterror, contractimpl, contracttype, panic_with_error, Address, Bytes, Env,
Expand Down
2 changes: 1 addition & 1 deletion contracts/resource-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ doctest = false

[dependencies]
soroban-sdk = { workspace = true }
utility-contracts-common = { path = "../common" }
utility-contracts-common = { path = "../common", features = ["wasm"] }

[dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
Expand Down
3 changes: 2 additions & 1 deletion contracts/settlement/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ doctest = false

[dependencies]
soroban-sdk = { workspace = true }
utility-contracts-common = { path = "../common" }
utility-contracts-common = { path = "../common", features = ["wasm"] }
wee_alloc = "0.4.5"

[dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
3 changes: 3 additions & 0 deletions contracts/settlement/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#![no_std]

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

mod constants;
mod conversion;
mod fees;
Expand Down
1 change: 1 addition & 0 deletions contracts/utility_contracts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ crate-type = ["lib", "cdylib"]
doctest = false

[dependencies]
wee_alloc = "0.4.5"
soroban-sdk = { workspace = true }

[dev-dependencies]
Expand Down
Loading
Loading