Skip to content

ISSUE #301: [Web3/Soroban]: Native XDR Serialization & RPC Binding for LotPassport Contract #7

Description

@josealfredo79

🎯 Problem Statement

SorobanAdapter currently generates simulated ledger hashes. It must integrate the official @stellar/stellar-sdk to execute real contract invocations against Soroban Testnet and Futurenet.

🛠️ Technical Tasks

  • Configure @stellar/stellar-sdk isolated inside src/core/blockchain/.
  • Implement buildRegisterLotTransaction() mapping domain parameters to contract types:
    • lot_code: Symbol
    • digest: BytesN<32>
    • producer_id: Address
    • altitude: u32
  • Execute pre-flight simulation (server.simulateTransaction) to estimate CPU instructions and ledger read/write footprints.
  • Parse Soroban result envelopes to return validated ledger sequence, txHash, and explorer URLs (Stellar Expert).

✅ Definition of Done (Acceptance Criteria)

  • Standalone test runner script (scripts/test-soroban-register.ts) successfully submits a live transaction to Soroban Testnet.
  • UI remains fully responsive even when Stellar RPC endpoints experience latency.

  • Target Module: src/core/blockchain/SorobanAdapter.ts
  • Estimated Bounty: 400 USDC / Drips Tier 3 (4–6 days)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions