TreasuryLedgerStore

The treasury-facing read/write port. Concrete stores plug in via the TrustedDomainManager config — default is JSONL on local disk, optional is SQL/Postgres for SaaS deployments.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun append(entry: TreasuryLedgerEntry)
Link copied to clipboard
abstract suspend fun entries(domainId: DomainId, chainId: String? = null): List<TreasuryLedgerEntry>
Link copied to clipboard
abstract suspend fun get(correlationId: String): TreasuryLedgerEntry?
Link copied to clipboard
abstract suspend fun spentSince(domainId: DomainId, chainId: String, since: Instant): TokenAmount
Link copied to clipboard
abstract suspend fun update(correlationId: String, status: SettlementStatus, actualFee: TokenAmount, txHash: String?)