Skip to content

API ReferenceLOC lifecycleInterface

LetterOfCreditHistoricalSnapshot

Minimal outstanding state at a history boundary. Uses the same units and backing grammar as current contract reads.

Properties

backing

backing:
| {
claimableCollateral: bigint;
collateral: TokenAmount;
kind: "reserved";
reservation: | CollateralReservationReference
| null;
}
| {
amount: bigint;
kind: "converted";
};

Reconstructed backing at this boundary, preserving token and vault identities.

Union Members

Type Literal
{
claimableCollateral: bigint;
collateral: TokenAmount;
kind: "reserved";
reservation: | CollateralReservationReference
| null;
}
claimableCollateral
claimableCollateral: bigint;

Amount claimable by the LOC contract, in collateral-token smallest units.

collateral
collateral: TokenAmount;

Reserved collateral at this boundary.

kind
kind: 'reserved';
reservation
reservation:
| CollateralReservationReference
| null;

Null only when V1 creation evidence cannot recover the vault reservation.


Type Literal
{
amount: bigint;
kind: 'converted';
}
amount
amount: bigint;

Held amount in the remainingCredited token; prior conversion shortfall belongs to lifecycle.

kind
kind: 'converted';

expirationTimestamp

expirationTimestamp: bigint;

Expiration at this boundary in Unix seconds.


remainingCredited

remainingCredited: TokenAmount;

Remaining obligation at this boundary, in credited-token smallest units.