How cenwadike/open-beanie works
Beanie combines merchant receiver provisioning, multichain stablecoin settlement, deposit sweeping and signed webhook delivery, plus Starknet stealth payments. The README establishes the EVM, Starknet and Solana receiver/factory capabilities; the tree contains the Solana program and browser scripts, but their runtime wiring and several contract implementations are not sampled, so uncertain connections are omitted.
Main entry points: main.rs Beanie API · stealth_workers.rs Stealth workers · create_workers.rs Announce worker · stealth.js Browser client
Components 21
Receiver provisioning
- Announce route
beanie_api/src/create_routes.rs - Announce worker
beanie_api/src/create_workers.rs - EVM receiver factory
- Starknet receiver factory
- Solana receiver program
solana_beanie/programs/solana_beanie/src/lib.rs
Payment settlement
- Payment route
beanie_api/src/payment_routes.rs - Payment worker
beanie_api/src/payment_workers.rs
Deposit operations
- Transfer poller
beanie_api/src/transfer_workers/mod.rs - EVM transfer worker
beanie_api/src/transfer_workers/evm.rs - Webhook delivery
beanie_keeper/src/webhook.rs
Stealth payments
- Stealth claim route
beanie_api/src/stealth_routes.rs - Stealth workers
beanie_api/src/stealth_workers.rs - Stealth account
API and client
- Beanie API
beanie_api/src/main.rs - Browser client
beanie_api/public/scripts/stealth.js
Other components
- Merchant
- Customer
- Merchant webhook
- Starknet RPC
- Lit TEE
- Gas paymaster
Connections 24
- Merchant → Beanie API: requests lane
- Beanie API → Announce route: routes request
- Announce route → Announce worker: queues announce
- Announce worker → EVM receiver factory: announces receiver
- Announce worker → Starknet receiver factory: announces receiver
- Customer → EVM receiver factory: deposits funds
- Customer → Starknet receiver factory: deposits funds
- Customer → Solana receiver program: deposits funds
- Customer → Beanie API: submits payment
- Beanie API → Payment route: routes request
- Payment route → Payment worker: queues payment
- Merchant → Transfer poller: configures chains
- Transfer poller → EVM transfer worker: starts worker
- EVM transfer worker → Webhook delivery: queues delivery
- Webhook delivery → Merchant webhook: posts signed deposit
- Customer → Browser client: uses stealth flow
- Browser client → Starknet RPC: scans events
- Browser client → Beanie API: submits claim
- Beanie API → Stealth claim route: routes claim
- Stealth claim route → Stealth workers: queues execution
- Stealth workers → Lit TEE: requests cosignature
- Stealth workers → Gas paymaster: sponsors execution
- Stealth workers → Starknet RPC: broadcasts transaction
- Stealth workers → Stealth account: executes sweep