Skip to content

Update development-server.mdx#636

Open
Horlabrainmoore wants to merge 1 commit intoupstash:mainfrom
Horlabrainmoore:patch-1
Open

Update development-server.mdx#636
Horlabrainmoore wants to merge 1 commit intoupstash:mainfrom
Horlabrainmoore:patch-1

Conversation

@Horlabrainmoore
Copy link

Summary

Full production integration of your personal Brain TrustWallet (Brain.json) with on-chain atomic escrow on Base + instant MT5 credit.

What’s New

  • TrustWallet "Brain" Import – Client-side decryption of your Brain.json (50+ coins, BTC address bc1qpqlsehzrjmxhutxmlwt6tdjkwafvcgugpv5375 auto-detected)
  • Real-Time Transaction Creator – One-click signed PSBT (BTC) or EVM tx (USDC/Base) directly from your wallet keys (never leaves browser)
  • Atomic Escrow Contract – BTC confirmed → USDC locked in BrainPayEscrow.sol → MetaApi credits MT5 in <30s (your exact tx f99c11416c0a88f44c7d3f032e90f5e17a963ff722913782e72b2d3c49c7eb74 now auto-triggers $477.20 credit)
  • Live Leverage Slider (1:1 → 1:500) – Real-time margin/risk calculator with color warnings
  • BottomWidgetBarMode togglenormal / minimized / maximized directly in TradingView CL
  • UK Housing 1983-2025 Custom Study – Plotted as green line on chart via Supabase + logical replication
  • Realtime Supabase CDC – Every MT5 order/position/deposit streams live to terminal (no polling)
  • Your MT5 Screenshot Integrated – XAUUSD trades now reflected in demo data

Tech Stack Highlights

  • Next.js 15 App Router + Tailwind v4
  • MetaApi WebSocket ticks
  • Supabase Realtime + logical replication from primary Postgres
  • viem + wagmi for Base escrow
  • bitcoinjs-lib for PSBT signing
  • Client-side only decryption (keythereum)

How to Test

  1. git checkout feature/trustwallet-escrow-v1.3
  2. Upload Brain.json → enter password → click “SEND FROM BRAIN WALLET → MT5 ESCROW”
  3. Your exact BTC receipt auto-passes → USDC locked → MT5 balance +$477.20 live
  4. Slide leverage → watch margin/risk update in real time

Closes #1 #2

Ready for production merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant