loyalty/actions
Interfaces
Section titled “Interfaces”PlanClaimLoyaltyAtlasOptions
Section titled “PlanClaimLoyaltyAtlasOptions”Defined in: packages/sage/src/loyalty/actions/index.ts:41
Exact inputs for claiming one Loyalty ATLAS Bank’s full raw balance.
Example
Section titled “Example”declare const authorization: PlanAuthorization;const options: PlanClaimLoyaltyAtlasOptions = { atUnixSeconds: 1_786_000_000n, authorization,};Properties
Section titled “Properties”atUnixSeconds
Section titled “atUnixSeconds”readonly atUnixSeconds: bigint;Defined in: packages/sage/src/loyalty/actions/index.ts:43
Explicit non-negative Unix timestamp used to evaluate Bank expiry.
authorization
Section titled “authorization”readonly authorization: PlanAuthorization;Defined in: packages/sage/src/loyalty/actions/index.ts:44
Functions
Section titled “Functions”planClaimLoyaltyAtlas()
Section titled “planClaimLoyaltyAtlas()”function planClaimLoyaltyAtlas( ctx, bank,input): Promise<Plan>;Defined in: packages/sage/src/loyalty/actions/index.ts:181
Plans one full Loyalty ATLAS Bank claim without signing or writes.
Permission, final freshness, and concurrent claims remain chain-authoritative.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ctx | SageContext |
bank | LoyaltyAtlasBankSnapshot |
input | PlanClaimLoyaltyAtlasOptions |
Returns
Section titled “Returns”Promise<Plan>
Example
Section titled “Example”declare const ctx: SageContext;declare const bank: LoyaltyAtlasBankSnapshot;declare const authorization: PlanAuthorization;const plan = await planClaimLoyaltyAtlas(ctx, bank, { atUnixSeconds: 1_786_000_000n, authorization,});console.log(plan.describe());References
Section titled “References”PlanAuthorization
Section titled “PlanAuthorization”Re-exports PlanAuthorization