Skip to content
Projets

À propos

A crowdfunding dApp on Stellar: a Soroban campaign contract with a Next.js and Freighter frontend.

Développement web et applicatif

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
Historique en cours
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

LumenRaise

A crowdfunding dApp on Stellar. Campaigns live in a Soroban smart contract, and a Next.js frontend lets anyone create a campaign and contribute to one.

Status: testnet demo. Contributions are recorded on-chain, but the contract does not move XLM yet. See Known limitations.

What works

  • Create a campaign — title and funding goal, stored on-chain. The owner signs the call, and the contract returns the new campaign id.
  • Contribute — any address can contribute to an existing campaign. The contract records the amount against the campaign total and rejects non-positive amounts.
  • Read — list every campaign, fetch one by id, and read the campaign count.

Stack

Layer Technology
Contract Rust, soroban-sdk 21, built to wasm32-unknown-unknown
Frontend Next.js 14 (App Router), React 18, TypeScript
UI Tailwind CSS, shadcn/ui, Radix, lucide-react
Wallet Freighter (browser extension)
Forms react-hook-form + zod

Layout

contract/           Soroban contract crate (`lumenraise`)
frontend/           Next.js app: landing page and /dashboard
deploy.sh           Builds the contract and prints deployment steps

Quick start

Prerequisites: Node 20+, Rust with the wasm32-unknown-unknown target, and the Stellar CLI.

# 1. Build the contract
cd contract
cargo build --target wasm32-unknown-unknown --release

# 2. Deploy it to testnet
soroban contract deploy \
  --wasm target/wasm32-unknown-unknown/release/lumenraise.wasm \
  --source <your-key> \
  --network testnet

# 3. Point the frontend at the deployed contract
cd ../frontend
npm install
npm run dev

./deploy.sh runs step 1 and prints the rest.

Contract interface

Function Description
create_campaign(owner, title, goal_amount) → u32 Creates a campaign, returns its id
contribute(contributor, campaign_id, amount) → bool Records a contribution
get_campaigns() → Vec<Campaign> Every campaign
get_campaign(campaign_id) → Option<Campaign> One campaign
get_campaign_count() → u32 Number of campaigns

Amounts are in stroops (1 XLM = 10⁷ stroops).

Checks

cd frontend && npm run lint && npm run typecheck && npm run build
cd contract && cargo fmt --all -- --check && cargo clippy --all-targets -- -D warnings && cargo test

CI runs the same commands on every push and pull request.

Known limitations

  • contribute does not transfer XLM; it only updates a counter. Wiring the Stellar Asset Contract is the next step.
  • No refunds, withdrawals, deadlines, or per-contributor records.
  • Campaigns are stored in one Vec in instance storage, so contribute and get_campaign scan the whole list.

Contributing

Issues are labelled by area (area: contracts, area: frontend, area: backend, area: ci) and difficulty. Open an issue before sending a large pull request.

License

MIT. See LICENSE.

Explorer des projets similaires

Chargement…