Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 2.43 KB

File metadata and controls

74 lines (52 loc) · 2.43 KB

Contributing to Stellar DeFi Vault

Thank you for your interest in contributing! This project is part of the Stellar Wave Program on Drips. All contributions that resolve tagged issues during an active Wave are eligible for rewards.

Full Contributor Guide

For a detailed walkthrough — including environment setup, architecture overview, a worked example PR, and common mistakes — see docs/CONTRIBUTING_GUIDE.md.

Getting Started

Prerequisites

  • Rust (stable) — install via rustup
  • wasm32-unknown-unknown target:
    rustup target add wasm32-unknown-unknown
  • Stellar CLI (optional, for local deployment):
    cargo install --locked stellar-cli

Setup

git clone https://github.com/YOUR_ORG/stellar-defi-vault.git
cd stellar-defi-vault
cargo build

Running Tests

cargo test --features testutils

Building the WASM Contract

cargo build --target wasm32-unknown-unknown --release

The compiled .wasm file will be at target/wasm32-unknown-unknown/release/stellar_defi_vault.wasm.


How to Contribute (Wave Program)

  1. Browse open issues tagged Stellar Wave at drips.network/wave/stellar.
  2. Apply for an issue through the Drips Wave app.
  3. Wait to be assigned before starting work — do not open a PR before assignment.
  4. Fork the repo, create a branch named fix/<issue-number>-short-description or feat/<issue-number>-short-description.
  5. Open a PR with Closes #<issue-number> in the description so the Drips bot can track it.
  6. Respond promptly to review feedback — the Wave window is short.

Code Style

  • Run cargo fmt before committing.
  • Ensure cargo clippy --features testutils passes with no warnings.
  • All new functionality must include unit tests.
  • Public functions must have doc comments (///).
  • Keep CONTRACT_VERSION in sync with Cargo.toml when updating the contract version.

PR Checklist

  • Tests pass (cargo test --features testutils)
  • cargo fmt --check passes
  • cargo clippy passes with no warnings
  • New logic is covered by tests
  • PR description references the issue (Closes #N)

Questions?

Open a GitHub Discussion or ask in the Drips Discord.