Skip to content

deborah111haruna/swipely_contract

 
 

Repository files navigation

Swipely — Smart Contracts

CI

Soroban smart contracts for Swipely, the cross-chain bridge and DEX liquidity monitoring platform on the Stellar network. These contracts provide the on-chain primitives the platform relies on — trusted source registries, asset locking/escrow, operator rotation, and transfer state tracking.

Workspace layout

This is a Cargo workspace with the following members:

Crate Description
soroban/ Core Soroban contracts (access control, trusted sources, thresholds)
escrow_contract/ Time-locked escrow contract for bridge transfers
transfer_state_machine/ Transfer state-machine contract logic
harness/ Test harness and integration helpers

Prerequisites

  • Rust (stable) with the wasm32-unknown-unknown target
  • Soroban CLI (stellar / soroban)
rustup target add wasm32-unknown-unknown

Build & test

# Build optimized wasm for release
cargo build --release --target wasm32-unknown-unknown

# Run the contract test suites
cargo test

The release profile is tuned for small wasm output (opt-level = "z", LTO, symbol stripping) — see Cargo.toml.

Related repositories

License

MIT — see LICENSE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages