SYSTEM OVERVIEW
How it worksBridgeHold emits bridge and snapshot events; Torque consumes those events to power incentives with SQL.
Your app records the bridge, your worker posts daily hold snapshots, and Torque campaign logic decides rewards. Same payload shape in demo and production.
Five strategic use cases - sticky TVL, anti-dump rules, cohort & route growth, consumer seasons, and distributor loops - all map to these same events.
- STEP 01
Bridge event
When assets land on the destination chain, call the ingester with a bridge_completed-style event (amount, route, mock tx hash).
- STEP 02
Daily snapshot
Each day your worker POSTs meetsThreshold, balance, streakDays, etc. That is what leaderboards and raffles consume.
- STEP 03
Torque campaigns
Attach those custom events in Torque, build SQL in MCP, ship rebates or raffles for wallets that stay above your min.
Mapped to Torque primitivesReliable recurring fields let you build fair leaderboards, raffles, and reward logic without contract changes.
Use the same stream of custom events to run multiple campaign types by changing only SQL selection logic.
Leaderboard
streakDays, qualifyingDaysRank by streakDays or qualifying snapshot count to keep weekly competitions tied to actual holding behavior.
Raffle
meetsThreshold, dayIndexIssue tickets from meetsThreshold snapshots so consistent smaller wallets still have fair odds.
Rebate / gift
bridgedAmount, streakDaysReward bridge size and long streak milestones with deterministic payout logic in Torque SQL.
Retention analytics
sourceChain, destChain, balanceTrack conversion after bridge and monitor drop-off windows to tune campaigns and epoch cadence.
Torque in production
How we use Torque - not generic, not hand-wavy
BridgeHold's Next.js API routes call the same ingest URL your production worker would. When TORQUE_INGEST_API_KEY is set, every bridge and daily tick attempts a real POST …/events with your Torque custom event names. The simulator, live demo, and leaderboard all exercise that path so you can verify live custom_events end-to-end.
- User / indexer
- BridgeHold APIs
- Torque ingest
- Leaderboards · Raffles · Rebates · Gifts · Distributors
Configure campaigns and SQL with the Torque MCP- BridgeHold focuses on emitting consistent custom_events your rules can trust.
Bridge completed
bridge_hold_completedEnv override: TORQUE_EVENT_BRIDGE
- userPubkey
- timestamp
- amount
- sourceChain
- destChain
- txHash (mock in demo)
Daily snapshot
bridge_hold_daily_snapshotEnv override: TORQUE_EVENT_SNAPSHOT
- userPubkey
- timestamp
- dayIndex
- balance
- meetsThreshold
- streakDays
- bridgedAmount
- sourceChain
- destChain