[{"data":1,"prerenderedAt":311},["ShallowReactive",2],{"project-r3store":3},{"id":4,"title":5,"body":6,"description":137,"extension":290,"meta":291,"navigation":306,"path":307,"seo":308,"stem":309,"__hash__":310},"content\u002Fprojects\u002Fr3store.md","R3Store",{"type":7,"value":8,"toc":271},"minimark",[9,14,43,47,51,54,58,65,71,77,82,86,89,109,112,123,127,130,141,146,173,177,181,184,192,196,199,206,210,213,220,224,231,242,246,249,256,260],[10,11,13],"h2",{"id":12},"project-at-a-glance","Project at a Glance",[15,16,17,25,31,37],"ul",{},[18,19,20,24],"li",{},[21,22,23],"strong",{},"Problem:"," Everyday digital bill payments (PPOB) and multi-chain cryptocurrency management typically live in fragmented applications, creating checkout friction, manual currency conversion overhead, and transactional reconciliation risks across fiat and blockchain networks.",[18,26,27,30],{},[21,28,29],{},"Deliverables:"," A mobile-first Progressive Web App (PWA) unifying Digital PPOB services (Game top-ups, E-Wallet, Cellular, Utilities, Bills, Vouchers) with a managed multi-chain crypto wallet supporting Deposit, Withdraw, Transfer, Swap, and Convert workflows across XRPL, Solana Network, and BSC Network.",[18,32,33,36],{},[21,34,35],{},"Core Stack:"," Nuxt 3, Vue 3, Tailwind CSS, PWA \u002F Service Workers, AdonisJS (TypeScript & Lucid ORM), MySQL, Redis, Queue & Cron Workers, XRPL, Solana Web3.js, and BSC \u002F Ethers.js.",[18,38,39,42],{},[21,40,41],{},"Practical Value:"," Delivered end-to-end as Primary \u002F Solo Fullstack Developer, unifying IDR fiat balances and multi-chain crypto assets (LAWAS, IDRX, USDT, USDC, XRP) into a single transactional platform with automated fulfillment, real-time IDR valuation, and strict ledger consistency.",[10,44,46],{"id":45},"project-overview","Project Overview",[48,49,50],"p",{},"R3Store is a production Digital PPOB and Multi-Chain Crypto Wallet platform engineered for PT Lasbon Technology Indonesia. Built end-to-end as the Primary \u002F Solo Fullstack Developer, the platform combines everyday digital product transactions (game top-ups, e-wallet fills, cellular credit, utilities, bill payments, and digital vouchers) with a managed multi-chain cryptocurrency wallet.",[48,52,53],{},"Users operate from a unified account displaying both their primary IDR balance and on-chain cryptocurrency holdings (including LAWAS, IDRX, USDT, USDC, and XRP) with real-time conversion into an aggregated IDR Total Balance. Designed as a mobile-first Progressive Web App (PWA), R3Store delivers fast navigation and native-like responsiveness across both smartphone and desktop viewports.",[10,55,57],{"id":56},"interface-specimens","Interface Specimens",[48,59,60],{},[61,62],"img",{"alt":63,"src":64},"R3Store mobile-first PWA interface showing Deposit, Withdraw, Transfer, Swap, Convert actions and Digital PPOB categories","\u002Fimg\u002Fportfolio\u002Fr3store-mobile.jpg",[48,66,67],{},[68,69,70],"em",{},"Mobile PWA Home: Quick-access wallet actions (Deposit, Withdraw, Transfer, Swap, Convert) paired with Digital PPOB categories (Game, E-Wallet, Cellular, Utilities, Bills, Voucher).",[48,72,73],{},[61,74],{"alt":75,"src":76},"R3Store desktop wallet and account dashboard showing XRP wallet address, 2.5 XRP reserve trustline, and multi-asset balance conversion to IDR","\u002Fimg\u002Fportfolio\u002Fr3store-wallet.jpg",[48,78,79],{},[68,80,81],{},"Desktop Wallet Dashboard: Managed XRP wallet address with Reserve Wallet & Trustline (2.5 XRP) indicator, on-chain balance refresh, and unified multi-asset portfolio (IDR, LAWAS, IDRX, USDT, USDC, XRP) with real-time IDR valuation.",[10,83,85],{"id":84},"context-the-problem","Context & The Problem",[48,87,88],{},"Combining Indonesian Digital PPOB workflows with multi-chain cryptocurrency operations introduces both UX and backend engineering complexity:",[15,90,91,97,103],{},[18,92,93,96],{},[21,94,95],{},"Fragmented Financial Flows:"," Users who hold crypto assets across different networks (XRPL, Solana, BSC) face high friction when trying to convert or spend value on everyday digital bills and game top-ups.",[18,98,99,102],{},[21,100,101],{},"Divergent Blockchain Rules:"," Each supported network enforces distinct mechanics, such as XRPL account reserves and trustlines (2.5 XRP), Solana transaction confirmation behavior, and BSC EVM gas estimation.",[18,104,105,108],{},[21,106,107],{},"High-Stakes Transactional Consistency:"," Concurrent PPOB orders, fiat payment gateway callbacks, token swaps, and withdrawals all mutate user balances. Any race condition, duplicate webhook, or unhandled provider timeout can result in double-spending or stuck user funds.",[48,110,111],{},"The core engineering objectives were:",[15,113,114,117,120],{},[18,115,116],{},"Deliver a unified mobile-first PWA covering both Digital PPOB commerce and multi-chain wallet management (Deposit, Withdraw, Transfer, Swap, Convert).",[18,118,119],{},"Build a resilient backend ledger capable of synchronizing on-chain balances across XRPL, Solana, and BSC alongside IDR fiat balances.",[18,121,122],{},"Guarantee transactional integrity, automated provider reconciliation, and safe failure recovery (auto-refunds) across all financial operations.",[10,124,126],{"id":125},"system-architecture","System Architecture",[48,128,129],{},"R3Store follows a decoupled fullstack architecture separating the mobile-first Nuxt 3 PWA client from the AdonisJS transactional core, Redis-backed asynchronous workers, MySQL relational ledger, and external PPOB \u002F blockchain integrations:",[131,132,138],"pre",{"className":133,"code":135,"language":136,"meta":137},[134],"language-text","+-------------------------------------------------------------------+\n|                     Client Layer (Mobile-First PWA)               |\n|           Nuxt 3 + Vue 3 + Tailwind CSS + Service Worker          |\n+---------------------------------+---------------------------------+\n                                  | HTTPS \u002F REST API\n+---------------------------------v---------------------------------+\n|                 Application & Financial Core (AdonisJS)           |\n|                      TypeScript + Lucid ORM                       |\n|  +----------------------+  +-------------------+  +------------+  |\n|  | PPOB & Fulfillment   |  | Hybrid Ledger &   |  | Multi-Chain|  |\n|  | Orchestrator         |  | Idempotency Core  |  | Wallet Svc |  |\n|  +----------+-----------+  +---------+---------+  +-----+------+  |\n+-------------|------------------------|------------------|---------+\n              |                        |                  |\n              |        +---------------+--------+         |\n              |        |                        |         |\n+-------------v--+ +---v------------+ +---------v--+ +----v---------+\n| PPOB & Fiat    | | Primary DB     | | Redis \u002F    | | Blockchain   |\n| Payment Rails  | | MySQL (ACID)   | | Queue\u002FCron | | XRPL, Solana,|\n| (Webhooks)     | | Row Locking    | | Rate Cache | | BSC (Ethers) |\n+----------------+ +----------------+ +------------+ +--------------+\n","text","",[139,140,135],"code",{"__ignoreMap":137},[142,143,145],"h3",{"id":144},"architectural-decisions","Architectural Decisions",[147,148,149,155,161,167],"ol",{},[18,150,151,154],{},[21,152,153],{},"Nuxt 3, Vue 3 & PWA on the Frontend:","\nNuxt 3 and Vue 3 provided fast mobile-first rendering, clean reactive state management for multi-asset balances, and PWA Service Worker integration so the storefront feels responsive and app-like on mobile browsers.",[18,156,157,160],{},[21,158,159],{},"AdonisJS (TypeScript & Lucid ORM) on the Backend:","\nAdonisJS provided a structured TypeScript runtime with Lucid ORM, database migrations, request validation, and built-in security primitives. This structure kept complex financial domains (PPOB orders, wallet operations, swap\u002Fconvert pipelines, and webhook handlers) cleanly isolated and maintainable as a solo fullstack engineer.",[18,162,163,166],{},[21,164,165],{},"MySQL ACID Ledger + Redis \u002F Queue \u002F Cron:","\nMySQL was used to enforce strict relational integrity, atomic transactions, and row-level locking on every balance mutation. Redis, background queues, and scheduled cron jobs handled exchange-rate caching, asynchronous blockchain balance synchronization, and pending transaction status reconciliation without blocking user requests.",[18,168,169,172],{},[21,170,171],{},"Direct Multi-Chain SDK Integration:","\nIntegrating directly with XRPL, Solana Web3.js, and BSC (Ethers.js) enabled network-aware wallet provisioning, trustline management, on-chain balance refreshes, and deposit\u002Fwithdrawal workflows tailored to each chain's protocol rules.",[10,174,176],{"id":175},"engineering-challenges-solutions","Engineering Challenges & Solutions",[142,178,180],{"id":179},"_1-multi-chain-wallet-synchronization-network-specific-rules","1. Multi-Chain Wallet Synchronization & Network-Specific Rules",[48,182,183],{},"Supporting XRPL, Solana Network, and BSC Network inside one managed wallet meant handling fundamentally different protocol constraints: XRPL requires base reserve balances and explicit trustline setup (2.5 XRP) before holding issued tokens such as LAWAS or IDRX, whereas Solana and BSC follow different account, token, and gas fee models.",[15,185,186],{},[18,187,188,191],{},[21,189,190],{},"Solution:"," Built network-specific wallet service adapters behind a unified internal interface. Each adapter encapsulates chain-specific wallet generation, reserve\u002Ftrustline validation, gas\u002Ffee handling, and on-chain balance refresh routines, keeping higher-level wallet actions (Deposit, Withdraw, Transfer, Swap, Convert) consistent for the application layer.",[142,193,195],{"id":194},"_2-transaction-idempotency-double-spending-prevention","2. Transaction Idempotency & Double-Spending Prevention",[48,197,198],{},"Financial actions such as PPOB purchases, crypto withdrawals, swaps, and IDR conversions are vulnerable to concurrent requests, double-clicks, and retried callbacks that could over-debit or double-credit balances.",[15,200,201],{},[18,202,203,205],{},[21,204,190],{}," Wrapped balance-mutating workflows in explicit MySQL database transactions with row-level locking and deterministic idempotency keys. Every order, transfer, and settlement references a unique transaction state record so repeated requests or duplicate callbacks are safely ignored once finalized.",[142,207,209],{"id":208},"_3-hybrid-balance-reconciliation-real-time-idr-valuation","3. Hybrid Balance Reconciliation & Real-Time IDR Valuation",[48,211,212],{},"Users hold both fiat IDR and multiple crypto tokens (LAWAS, IDRX, USDT, USDC, XRP) and expect an accurate consolidated Total Balance in IDR as well as reliable Swap and Convert execution.",[15,214,215],{},[18,216,217,219],{},[21,218,190],{}," Separated fiat and per-asset crypto ledgers while caching live market exchange rates in Redis. On-demand balance refreshes and scheduled reconciliation jobs keep on-chain balances and IDR valuation synchronized without overloading external RPC or price-feed providers.",[142,221,223],{"id":222},"_4-ppob-provider-payment-gateway-resilience","4. PPOB Provider & Payment Gateway Resilience",[48,225,226,227,230],{},"Third-party PPOB aggregators and fiat payment gateways frequently exhibit delayed callbacks, webhook retries, or transient fulfillment timeouts, leaving transactions in ambiguous ",[139,228,229],{},"PENDING"," states.",[15,232,233],{},[18,234,235,237,238,241],{},[21,236,190],{}," Implemented an idempotent webhook ingestion pipeline paired with background polling\u002Freconciliation jobs via queues and cron workers. Transactions that transition to ",[139,239,240],{},"FAILED"," after provider confirmation or timeout automatically trigger an atomic balance refund back to the user's ledger with a complete audit trail.",[142,243,245],{"id":244},"_5-mobile-first-pwa-performance-wallet-security","5. Mobile-First PWA Performance & Wallet Security",[48,247,248],{},"Because the primary user base accesses R3Store on mobile devices to perform real financial transactions, both responsiveness and session\u002Fwallet security were critical.",[15,250,251],{},[18,252,253,255],{},[21,254,190],{}," Enforced strict server-side authorization, input validation, and protected wallet operations on the AdonisJS backend while optimizing the Nuxt 3 PWA asset delivery, caching, and mobile interaction layout for fast, low-friction daily use.",[10,257,259],{"id":258},"outcomes-key-learnings","Outcomes & Key Learnings",[15,261,262,265,268],{},[18,263,264],{},"Delivered a complete production Digital PPOB and Multi-Chain Crypto Wallet platform end-to-end as Primary \u002F Solo Fullstack Developer.",[18,266,267],{},"Unified everyday Indonesian digital bill payments with managed multi-chain crypto workflows (XRPL, Solana, BSC) under a single mobile-first PWA experience.",[18,269,270],{},"Reinforced the necessity of defensive financial engineering: explicit MySQL row locks, idempotent webhook processing, automated failure refunds, and isolated chain adapters are essential when building hybrid fiat and Web3 systems.",{"title":137,"searchDepth":272,"depth":272,"links":273},2,[274,275,276,277,278,282,289],{"id":12,"depth":272,"text":13},{"id":45,"depth":272,"text":46},{"id":56,"depth":272,"text":57},{"id":84,"depth":272,"text":85},{"id":125,"depth":272,"text":126,"children":279},[280],{"id":144,"depth":281,"text":145},3,{"id":175,"depth":272,"text":176,"children":283},[284,285,286,287,288],{"id":179,"depth":281,"text":180},{"id":194,"depth":281,"text":195},{"id":208,"depth":281,"text":209},{"id":222,"depth":281,"text":223},{"id":244,"depth":281,"text":245},{"id":258,"depth":272,"text":259},"md",{"subtitle":292,"slug":293,"client":294,"year":295,"role":296,"category":297,"technologies":298},"Web3 PPOB & Multi-Chain Crypto Wallet Platform","r3store","PT Lasbon Technology Indonesia",2024,"Fullstack Web Developer","Web & Digital Applications",[299,300,301,302,303,304,305],"Nuxt 3","AdonisJS","MySQL","Redis","Tailwind CSS","Web3","PWA",true,"\u002Fprojects\u002Fr3store",{"title":5,"description":137},"projects\u002Fr3store","7vIMHSVMzql5fWm8k04dmXHPSlu2JeQhgLhY3In_5ys",1796006983656]