Implement real payment flows via hero_ledger #23

Closed
opened 2026-02-09 21:06:25 +00:00 by mik-tf · 1 comment
Owner

Overview

Move from simulated wallet balances to real token transactions using hero_ledger for NEAR blockchain integration. Enable actual purchasing, escrow, and settlement flows.

Hero Component

  • Binary: hero_ledger
  • Blockchain: NEAR Protocol
  • Current Integration: Read-only balance queries
  • Location: lhumina_code/hero_ledger/

Current State

  • Wallet balances: Hybrid (KVS ledger + NEAR read-only queries)
  • Purchases: Simulated (order status changes without real transfers)
  • Escrow: Not implemented
  • Settlement: Not implemented

Implementation Plan

  1. Extend hero_ledger integration for write operations (transfers)
  2. Implement escrow flow: buyer funds locked on purchase
  3. Implement settlement: funds released to seller on delivery confirmation
  4. Add refund capability for cancelled orders
  5. Implement staking mechanics for resource providers
  6. Add transaction receipts with blockchain verification

Acceptance Criteria

  • Real token transfers on NEAR testnet
  • Escrow locks funds during active orders
  • Settlement releases funds on completion
  • Transaction history shows blockchain-verified entries
  • Staking flow works for resource providers

Dependencies

  • Requires Phase 1 wallet rewiring (#14)
  • Requires NEAR testnet configuration
## Overview Move from simulated wallet balances to real token transactions using `hero_ledger` for NEAR blockchain integration. Enable actual purchasing, escrow, and settlement flows. ## Hero Component - **Binary**: `hero_ledger` - **Blockchain**: NEAR Protocol - **Current Integration**: Read-only balance queries - **Location**: `lhumina_code/hero_ledger/` ## Current State - Wallet balances: Hybrid (KVS ledger + NEAR read-only queries) - Purchases: Simulated (order status changes without real transfers) - Escrow: Not implemented - Settlement: Not implemented ## Implementation Plan 1. Extend hero_ledger integration for write operations (transfers) 2. Implement escrow flow: buyer funds locked on purchase 3. Implement settlement: funds released to seller on delivery confirmation 4. Add refund capability for cancelled orders 5. Implement staking mechanics for resource providers 6. Add transaction receipts with blockchain verification ## Acceptance Criteria - [ ] Real token transfers on NEAR testnet - [ ] Escrow locks funds during active orders - [ ] Settlement releases funds on completion - [ ] Transaction history shows blockchain-verified entries - [ ] Staking flow works for resource providers ## Dependencies - Requires Phase 1 wallet rewiring (#14) - Requires NEAR testnet configuration
Author
Owner

archived repo, closing

archived repo, closing
Commenting is not possible because the repository is archived.
No description provided.