@glacislabs/stablegenie-zerodelta 4.13.1 → 4.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -248,6 +248,9 @@ interface Token {
248
248
  /** Set by the gateway on the exact deployments a chained (two-leg) order can terminate in.
249
249
  * Deliberately per-token, not per-chain. */
250
250
  isChainedDestination?: boolean;
251
+ /** Set by the gateway on the exact real-world-asset deployments its SELL policy lets be the bid of
252
+ * an order. A Nest vault share without it is buy-only (see `isSellableRwa`). */
253
+ isSellSource?: boolean;
251
254
  [k: string]: unknown;
252
255
  }
253
256
  /** One row of `GET /rwa/vaults`. Only the artwork fields are read — the widget does not render the
@@ -685,6 +688,13 @@ declare function resolveConfig(config?: EngineConfig): ResolvedConfig;
685
688
  type ExchangeProduct = "stable" | "rwa";
686
689
  /** The asset class of a symbol, or null when this build does not price it at all. */
687
690
  declare function assetClassOf(symbol: string | undefined | null): "stable" | "rwa" | null;
691
+ /**
692
+ * Whether this deployment may be the BID of an RWA order — what the RWA form offers under "Pay with".
693
+ * A stable always; a Nest share only when the gateway flags it `isSellSource`; every other tradeable
694
+ * RWA trades both ways (whether a given lane prices is route health's job). An absent flag is NOT
695
+ * permission: a gateway that predates the field keeps the shares buy-only, as the dapp does.
696
+ */
697
+ declare function isSellableRwa(token: Pick<Token, "symbol" | "isSellSource">): boolean;
688
698
  /** The asset universe of a product, before any host narrowing. */
689
699
  declare function productAssets(product: ExchangeProduct): ReadonlySet<string>;
690
700
  /**
@@ -1185,4 +1195,4 @@ interface Verifier {
1185
1195
  }
1186
1196
  declare function createVerifier(api: ApiClient, fetchImpl: typeof fetch, rpcOverrides?: Record<number, string>): Verifier;
1187
1197
 
1188
- export { type Destination as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Verifier as D, type EngineConfig as E, type FetchQuoteFn as F, type Address as G, type ApiError as H, BLOCK_LABEL_DEFAULT as I, COMPLIANCE_CHECK_ORDER as J, COMPLIANCE_DENY_LABEL as K, type LaneLimit as L, type CatalogueContext as M, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type Route as R, type SanitizedTxEntry as S, type Token as T, type CatalogueInput as U, type VerifyResult as V, type WalletScreen as W, type ComplianceCheckId as X, type ComplianceDecision as Y, DIRECT_CHECK_IDS as Z, DIRECT_SCOPE_NOTE as _, type Catalogue as a, FLOOR_CATEGORIES as a0, type Hex as a1, type LaneAvailabilityState as a2, type PlannedTxKind as a3, type QuoteBlock as a4, type ResolvedConfig as a5, type RouteHealth as a6, type RouteHealthAvailability as a7, type RouteHealthLane as a8, SCREENING_BUCKETS as a9, hubDeliverableSymbols as aA, isExecutableBridge as aB, isKnownUnbridgeable as aC, isSourceToken as aD, laneAvailabilityState as aE, laneKey as aF, laneKeys as aG, laneLimitAmount as aH, laneLimitError as aI, laneLimitFor as aJ, laneLimitHint as aK, laneLimitSymbol as aL, limitedLanes as aM, parseAllowedApiBase as aN, productAssets as aO, registryRpc as aP, resolveApiBase as aQ, resolveConfig as aR, screeningOutcomeOf as aS, sourceKeys as aT, suppressedLanes as aU, tokenKey as aV, txMatchesPlan as aW, unattributedComplianceReasons as aX, type ScreenProvider as aa, type ScreeningBucket as ab, type ScreeningOutcome as ac, TUNABLE_CATEGORIES as ad, type TxPlan as ae, amountFieldError as af, apiError as ag, blockLabelFor as ah, brokenLaneFor as ai, buildCatalogue as aj, canAttachApiKey as ak, categoryLabel as al, classifyQuoteError as am, complianceControlsEvaluated as an, complianceReasonHead as ao, complianceReasonTag as ap, complianceTagOf as aq, createApiClient as ar, createVerifier as as, destinationKeys as at, directComplianceFromScreens as au, distinctScreenedWallets as av, exceedsLaneLimit as aw, executableRoutes as ax, executionChainIds as ay, hasReachableDestination as az, type Chain as b, type ComplianceCheck as c, type ComplianceTone as d, type ComplianceView as e, type ExchangeProduct as f, type RouteLeg as g, type RouteResult as h, type TxHistoryEntry as i, assetClassOf as j, brokenLaneReason as k, complianceChecks as l, complianceControlsLine as m, complianceView as n, counterpartTokens as o, destinationAvailability as p, formatJurisdiction as q, humanizeComplianceReason as r, type ApiClient as s, type SwapInput as t, type PayOption as u, type RwaVault as v, type SolveResult as w, type BalanceTarget as x, type BalanceEntry as y, type PlannedTx as z };
1198
+ export { type Destination as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Verifier as D, type EngineConfig as E, type FetchQuoteFn as F, type Address as G, type ApiError as H, BLOCK_LABEL_DEFAULT as I, COMPLIANCE_CHECK_ORDER as J, COMPLIANCE_DENY_LABEL as K, type LaneLimit as L, type CatalogueContext as M, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type Route as R, type SanitizedTxEntry as S, type Token as T, type CatalogueInput as U, type VerifyResult as V, type WalletScreen as W, type ComplianceCheckId as X, type ComplianceDecision as Y, DIRECT_CHECK_IDS as Z, DIRECT_SCOPE_NOTE as _, type Catalogue as a, FLOOR_CATEGORIES as a0, type Hex as a1, type LaneAvailabilityState as a2, type PlannedTxKind as a3, type QuoteBlock as a4, type ResolvedConfig as a5, type RouteHealth as a6, type RouteHealthAvailability as a7, type RouteHealthLane as a8, SCREENING_BUCKETS as a9, hubDeliverableSymbols as aA, isExecutableBridge as aB, isKnownUnbridgeable as aC, isSellableRwa as aD, isSourceToken as aE, laneAvailabilityState as aF, laneKey as aG, laneKeys as aH, laneLimitAmount as aI, laneLimitError as aJ, laneLimitFor as aK, laneLimitHint as aL, laneLimitSymbol as aM, limitedLanes as aN, parseAllowedApiBase as aO, productAssets as aP, registryRpc as aQ, resolveApiBase as aR, resolveConfig as aS, screeningOutcomeOf as aT, sourceKeys as aU, suppressedLanes as aV, tokenKey as aW, txMatchesPlan as aX, unattributedComplianceReasons as aY, type ScreenProvider as aa, type ScreeningBucket as ab, type ScreeningOutcome as ac, TUNABLE_CATEGORIES as ad, type TxPlan as ae, amountFieldError as af, apiError as ag, blockLabelFor as ah, brokenLaneFor as ai, buildCatalogue as aj, canAttachApiKey as ak, categoryLabel as al, classifyQuoteError as am, complianceControlsEvaluated as an, complianceReasonHead as ao, complianceReasonTag as ap, complianceTagOf as aq, createApiClient as ar, createVerifier as as, destinationKeys as at, directComplianceFromScreens as au, distinctScreenedWallets as av, exceedsLaneLimit as aw, executableRoutes as ax, executionChainIds as ay, hasReachableDestination as az, type Chain as b, type ComplianceCheck as c, type ComplianceTone as d, type ComplianceView as e, type ExchangeProduct as f, type RouteLeg as g, type RouteResult as h, type TxHistoryEntry as i, assetClassOf as j, brokenLaneReason as k, complianceChecks as l, complianceControlsLine as m, complianceView as n, counterpartTokens as o, destinationAvailability as p, formatJurisdiction as q, humanizeComplianceReason as r, type ApiClient as s, type SwapInput as t, type PayOption as u, type RwaVault as v, type SolveResult as w, type BalanceTarget as x, type BalanceEntry as y, type PlannedTx as z };
@@ -248,6 +248,9 @@ interface Token {
248
248
  /** Set by the gateway on the exact deployments a chained (two-leg) order can terminate in.
249
249
  * Deliberately per-token, not per-chain. */
250
250
  isChainedDestination?: boolean;
251
+ /** Set by the gateway on the exact real-world-asset deployments its SELL policy lets be the bid of
252
+ * an order. A Nest vault share without it is buy-only (see `isSellableRwa`). */
253
+ isSellSource?: boolean;
251
254
  [k: string]: unknown;
252
255
  }
253
256
  /** One row of `GET /rwa/vaults`. Only the artwork fields are read — the widget does not render the
@@ -685,6 +688,13 @@ declare function resolveConfig(config?: EngineConfig): ResolvedConfig;
685
688
  type ExchangeProduct = "stable" | "rwa";
686
689
  /** The asset class of a symbol, or null when this build does not price it at all. */
687
690
  declare function assetClassOf(symbol: string | undefined | null): "stable" | "rwa" | null;
691
+ /**
692
+ * Whether this deployment may be the BID of an RWA order — what the RWA form offers under "Pay with".
693
+ * A stable always; a Nest share only when the gateway flags it `isSellSource`; every other tradeable
694
+ * RWA trades both ways (whether a given lane prices is route health's job). An absent flag is NOT
695
+ * permission: a gateway that predates the field keeps the shares buy-only, as the dapp does.
696
+ */
697
+ declare function isSellableRwa(token: Pick<Token, "symbol" | "isSellSource">): boolean;
688
698
  /** The asset universe of a product, before any host narrowing. */
689
699
  declare function productAssets(product: ExchangeProduct): ReadonlySet<string>;
690
700
  /**
@@ -1185,4 +1195,4 @@ interface Verifier {
1185
1195
  }
1186
1196
  declare function createVerifier(api: ApiClient, fetchImpl: typeof fetch, rpcOverrides?: Record<number, string>): Verifier;
1187
1197
 
1188
- export { type Destination as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Verifier as D, type EngineConfig as E, type FetchQuoteFn as F, type Address as G, type ApiError as H, BLOCK_LABEL_DEFAULT as I, COMPLIANCE_CHECK_ORDER as J, COMPLIANCE_DENY_LABEL as K, type LaneLimit as L, type CatalogueContext as M, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type Route as R, type SanitizedTxEntry as S, type Token as T, type CatalogueInput as U, type VerifyResult as V, type WalletScreen as W, type ComplianceCheckId as X, type ComplianceDecision as Y, DIRECT_CHECK_IDS as Z, DIRECT_SCOPE_NOTE as _, type Catalogue as a, FLOOR_CATEGORIES as a0, type Hex as a1, type LaneAvailabilityState as a2, type PlannedTxKind as a3, type QuoteBlock as a4, type ResolvedConfig as a5, type RouteHealth as a6, type RouteHealthAvailability as a7, type RouteHealthLane as a8, SCREENING_BUCKETS as a9, hubDeliverableSymbols as aA, isExecutableBridge as aB, isKnownUnbridgeable as aC, isSourceToken as aD, laneAvailabilityState as aE, laneKey as aF, laneKeys as aG, laneLimitAmount as aH, laneLimitError as aI, laneLimitFor as aJ, laneLimitHint as aK, laneLimitSymbol as aL, limitedLanes as aM, parseAllowedApiBase as aN, productAssets as aO, registryRpc as aP, resolveApiBase as aQ, resolveConfig as aR, screeningOutcomeOf as aS, sourceKeys as aT, suppressedLanes as aU, tokenKey as aV, txMatchesPlan as aW, unattributedComplianceReasons as aX, type ScreenProvider as aa, type ScreeningBucket as ab, type ScreeningOutcome as ac, TUNABLE_CATEGORIES as ad, type TxPlan as ae, amountFieldError as af, apiError as ag, blockLabelFor as ah, brokenLaneFor as ai, buildCatalogue as aj, canAttachApiKey as ak, categoryLabel as al, classifyQuoteError as am, complianceControlsEvaluated as an, complianceReasonHead as ao, complianceReasonTag as ap, complianceTagOf as aq, createApiClient as ar, createVerifier as as, destinationKeys as at, directComplianceFromScreens as au, distinctScreenedWallets as av, exceedsLaneLimit as aw, executableRoutes as ax, executionChainIds as ay, hasReachableDestination as az, type Chain as b, type ComplianceCheck as c, type ComplianceTone as d, type ComplianceView as e, type ExchangeProduct as f, type RouteLeg as g, type RouteResult as h, type TxHistoryEntry as i, assetClassOf as j, brokenLaneReason as k, complianceChecks as l, complianceControlsLine as m, complianceView as n, counterpartTokens as o, destinationAvailability as p, formatJurisdiction as q, humanizeComplianceReason as r, type ApiClient as s, type SwapInput as t, type PayOption as u, type RwaVault as v, type SolveResult as w, type BalanceTarget as x, type BalanceEntry as y, type PlannedTx as z };
1198
+ export { type Destination as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Verifier as D, type EngineConfig as E, type FetchQuoteFn as F, type Address as G, type ApiError as H, BLOCK_LABEL_DEFAULT as I, COMPLIANCE_CHECK_ORDER as J, COMPLIANCE_DENY_LABEL as K, type LaneLimit as L, type CatalogueContext as M, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type Route as R, type SanitizedTxEntry as S, type Token as T, type CatalogueInput as U, type VerifyResult as V, type WalletScreen as W, type ComplianceCheckId as X, type ComplianceDecision as Y, DIRECT_CHECK_IDS as Z, DIRECT_SCOPE_NOTE as _, type Catalogue as a, FLOOR_CATEGORIES as a0, type Hex as a1, type LaneAvailabilityState as a2, type PlannedTxKind as a3, type QuoteBlock as a4, type ResolvedConfig as a5, type RouteHealth as a6, type RouteHealthAvailability as a7, type RouteHealthLane as a8, SCREENING_BUCKETS as a9, hubDeliverableSymbols as aA, isExecutableBridge as aB, isKnownUnbridgeable as aC, isSellableRwa as aD, isSourceToken as aE, laneAvailabilityState as aF, laneKey as aG, laneKeys as aH, laneLimitAmount as aI, laneLimitError as aJ, laneLimitFor as aK, laneLimitHint as aL, laneLimitSymbol as aM, limitedLanes as aN, parseAllowedApiBase as aO, productAssets as aP, registryRpc as aQ, resolveApiBase as aR, resolveConfig as aS, screeningOutcomeOf as aT, sourceKeys as aU, suppressedLanes as aV, tokenKey as aW, txMatchesPlan as aX, unattributedComplianceReasons as aY, type ScreenProvider as aa, type ScreeningBucket as ab, type ScreeningOutcome as ac, TUNABLE_CATEGORIES as ad, type TxPlan as ae, amountFieldError as af, apiError as ag, blockLabelFor as ah, brokenLaneFor as ai, buildCatalogue as aj, canAttachApiKey as ak, categoryLabel as al, classifyQuoteError as am, complianceControlsEvaluated as an, complianceReasonHead as ao, complianceReasonTag as ap, complianceTagOf as aq, createApiClient as ar, createVerifier as as, destinationKeys as at, directComplianceFromScreens as au, distinctScreenedWallets as av, exceedsLaneLimit as aw, executableRoutes as ax, executionChainIds as ay, hasReachableDestination as az, type Chain as b, type ComplianceCheck as c, type ComplianceTone as d, type ComplianceView as e, type ExchangeProduct as f, type RouteLeg as g, type RouteResult as h, type TxHistoryEntry as i, assetClassOf as j, brokenLaneReason as k, complianceChecks as l, complianceControlsLine as m, complianceView as n, counterpartTokens as o, destinationAvailability as p, formatJurisdiction as q, humanizeComplianceReason as r, type ApiClient as s, type SwapInput as t, type PayOption as u, type RwaVault as v, type SolveResult as w, type BalanceTarget as x, type BalanceEntry as y, type PlannedTx as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glacislabs/stablegenie-zerodelta",
3
- "version": "4.13.1",
3
+ "version": "4.14.1",
4
4
  "description": "Lightweight embeddable ZeroDelta payment + swap widget (exact-receive Pay and exact-in Swap). Wallet always owns the final signature.",
5
5
  "type": "module",
6
6
  "license": "MIT",