Skip to content

olich97/bro-pay

Repository files navigation

BroPay – pay your bros in one tap

CI License Foundry Next.js 15 Expo


🤑 BroPay

Send € EURC or $ USDC to any phone contact inside WhatsApp (or any messenger (comming next)) in two taps – no gas, no seed phrases.

  • Self‑custodial (ERC‑4337 wallets on Base)
  • Sender can top‑up with card or open‑banking in‑flow
  • Receiver decides: keep, swap, or cash‑out to SEPA / PayPal
  • Links auto‑refund after 7 days if un‑claimed

Live on: Base Sepolia (testnet)


Prerequisites

  • node ≥ 18
  • rust
  • foundry
curl -L https://foundry.paradigm.xyz | bash && foundryup

npm instal -g expo-cli

📁 Repo layout

bropay ├─ packages/ │  ├─ contracts/ ← Foundry + OZ‑Upgrades contracts │  ├─ web/ ← Next.js 15 PWA + API │  └─ mobile/ ← React‑Native (Expo) wallet ├─ .env.example ├─ .gitignore └─ README.md


⚡️ Quick start

git clone https://github.com/olich97/bropay
cd bropay
cp .env.example .env          # fill RPC & keys
pnpm i                        # installs all workspaces

# 1. Contracts
cd packages/contracts
forge test -vv
forge script script/Deploy.s.sol \
     --rpc-url basesepolia \
     --broadcast --verify

# 2. Web
cd ../web
npm run dev            # http://localhost:3000

# 3. Mobile
cd ../mobile
npm i
expo start          # scan QR on two phones

🏗️ Dev scripts

npm run dev:web # Next.js dev server
npm run dev:contracts # Local Anvil node + hot‑reload Forge
npm run test # Runs Forge tests + Next lint
npm run mobile # Starts Expo in packages/mobile

🔒 Security & upgrades

  • UUPS proxies via openzeppelin/foundry‑upgrades
  • Contract upgrades → forge script script/Upgrade*.s.sol --broadcast
  • Secrets (JWT_SECRET, Stripe keys) stored in Cloudflare & mobile .env

🗺️ Roadmap

PRs welcome! Run forge fmt && pnpm lint before pushing.

About

Pay your bros in one tap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors