Skip to main content

Wallet-Core Architecture

This document covers the internal architecture of Wallet-Core, including the service layer, ledger, and data access patterns.

Layer Overview

Service Layer

Services Overview

Service Pattern

Ledger

The ledger is the core transaction engine, handling all financial operations.

Core Operations

Payment Execution

Repository Layer

Repositories provide data access and encapsulate SQL queries.

Repository Pattern

Available Repositories

gRPC Server

The server layer maps gRPC requests to service calls:

Database Migrations

Migrations are run at startup:

Error Handling

Domain errors are defined and mapped:

Next Steps

Ledger

Detailed ledger documentation

Configuration

config.yaml reference