Skip to content
Projects

About

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

Web & App Development

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

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.

Explore related projects

Loading…