@glacislabs/stablegenie-zerodelta 4.8.0 → 4.10.0
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.
- package/dist/{chunk-2TCYBOYW.js → chunk-AWTQU6CW.js} +181 -41
- package/dist/{chunk-F46VMTTL.js → chunk-BOEY6DG5.js} +108 -59
- package/dist/core/index.cjs +108 -58
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +292 -102
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-LkKQjoZU.d.ts → mount-Bw7W3Bfk.d.ts} +1 -1
- package/dist/{mount-Dxsc7-Fb.d.cts → mount-wJ7WrkOC.d.cts} +1 -1
- package/dist/mount.cjs +291 -102
- package/dist/mount.d.cts +2 -2
- package/dist/mount.d.ts +2 -2
- package/dist/mount.js +2 -2
- package/dist/standalone.global.js +11 -8
- package/dist/{verify-BEQ8DMvJ.d.cts → verify-QEs-XHri.d.cts} +20 -2
- package/dist/{verify-BEQ8DMvJ.d.ts → verify-QEs-XHri.d.ts} +20 -2
- package/package.json +1 -1
|
@@ -15,6 +15,9 @@ interface Compliance {
|
|
|
15
15
|
decision?: ComplianceDecision | string;
|
|
16
16
|
screenedWallets?: string[];
|
|
17
17
|
sourceJurisdiction?: string;
|
|
18
|
+
/** The visitor's ISO-3166 alpha-2 country, when the proxy in front of the gateway adds it (the
|
|
19
|
+
* gateway returns the policy jurisdiction only). See `formatJurisdiction`. */
|
|
20
|
+
sourceCountry?: string;
|
|
18
21
|
appliedPolicyIds?: string[];
|
|
19
22
|
appliedPolicyNames?: string[];
|
|
20
23
|
appliedLegislation?: string[];
|
|
@@ -26,6 +29,11 @@ interface Compliance {
|
|
|
26
29
|
checkId?: string;
|
|
27
30
|
expiresAt?: string;
|
|
28
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Adds a human country name to the broader policy jurisdiction without
|
|
34
|
+
* pretending a regional code such as EU identifies a specific country.
|
|
35
|
+
*/
|
|
36
|
+
declare function formatJurisdiction(jurisdiction?: string, country?: string): string;
|
|
29
37
|
/** One screening source's contribution. The vendor is never named — reason about `tier`. */
|
|
30
38
|
interface ScreenProvider {
|
|
31
39
|
providerId?: string;
|
|
@@ -999,6 +1007,16 @@ interface ResolvedConfig {
|
|
|
999
1007
|
fetchImpl: typeof fetch;
|
|
1000
1008
|
rpcOverrides: Record<number, string>;
|
|
1001
1009
|
onTransaction?: EngineConfig["onTransaction"];
|
|
1010
|
+
/**
|
|
1011
|
+
* Who may share this engine's registry reads (chains, tokens, routes, route-health, vaults) — see
|
|
1012
|
+
* `registryCacheFor` in api.ts. Set only when every input to those reads is known up front: the
|
|
1013
|
+
* page's own `fetch` and a static key. A host that injects `fetchImpl` or `getApiKey` keeps a
|
|
1014
|
+
* private cache, as every engine had before.
|
|
1015
|
+
*/
|
|
1016
|
+
registryScope?: {
|
|
1017
|
+
fetch: object;
|
|
1018
|
+
key: string;
|
|
1019
|
+
};
|
|
1002
1020
|
}
|
|
1003
1021
|
declare function parseAllowedApiBase(value: unknown): string | null;
|
|
1004
1022
|
/** Resolve the request base. A relative base (e.g. `/api/widget/v1`) is same-origin and allowed as
|
|
@@ -1097,7 +1115,7 @@ interface ApiClient {
|
|
|
1097
1115
|
}) => Promise<boolean>;
|
|
1098
1116
|
apiBase: string;
|
|
1099
1117
|
}
|
|
1100
|
-
/** Build an API client bound to a resolved config. The 60s
|
|
1118
|
+
/** Build an API client bound to a resolved config. The 60s registry cache is shared — see `registryCacheFor`. */
|
|
1101
1119
|
declare function createApiClient(cfg: ResolvedConfig): ApiClient;
|
|
1102
1120
|
|
|
1103
1121
|
declare function registryRpc(chain: Chain | null): string;
|
|
@@ -1148,4 +1166,4 @@ interface Verifier {
|
|
|
1148
1166
|
}
|
|
1149
1167
|
declare function createVerifier(api: ApiClient, fetchImpl: typeof fetch, rpcOverrides?: Record<number, string>): Verifier;
|
|
1150
1168
|
|
|
1151
|
-
export {
|
|
1169
|
+
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 PayOption as s, type RwaVault as t, type SolveResult as u, type BalanceTarget as v, type BalanceEntry as w, type ApiClient as x, type SwapInput as y, type PlannedTx as z };
|
|
@@ -15,6 +15,9 @@ interface Compliance {
|
|
|
15
15
|
decision?: ComplianceDecision | string;
|
|
16
16
|
screenedWallets?: string[];
|
|
17
17
|
sourceJurisdiction?: string;
|
|
18
|
+
/** The visitor's ISO-3166 alpha-2 country, when the proxy in front of the gateway adds it (the
|
|
19
|
+
* gateway returns the policy jurisdiction only). See `formatJurisdiction`. */
|
|
20
|
+
sourceCountry?: string;
|
|
18
21
|
appliedPolicyIds?: string[];
|
|
19
22
|
appliedPolicyNames?: string[];
|
|
20
23
|
appliedLegislation?: string[];
|
|
@@ -26,6 +29,11 @@ interface Compliance {
|
|
|
26
29
|
checkId?: string;
|
|
27
30
|
expiresAt?: string;
|
|
28
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Adds a human country name to the broader policy jurisdiction without
|
|
34
|
+
* pretending a regional code such as EU identifies a specific country.
|
|
35
|
+
*/
|
|
36
|
+
declare function formatJurisdiction(jurisdiction?: string, country?: string): string;
|
|
29
37
|
/** One screening source's contribution. The vendor is never named — reason about `tier`. */
|
|
30
38
|
interface ScreenProvider {
|
|
31
39
|
providerId?: string;
|
|
@@ -999,6 +1007,16 @@ interface ResolvedConfig {
|
|
|
999
1007
|
fetchImpl: typeof fetch;
|
|
1000
1008
|
rpcOverrides: Record<number, string>;
|
|
1001
1009
|
onTransaction?: EngineConfig["onTransaction"];
|
|
1010
|
+
/**
|
|
1011
|
+
* Who may share this engine's registry reads (chains, tokens, routes, route-health, vaults) — see
|
|
1012
|
+
* `registryCacheFor` in api.ts. Set only when every input to those reads is known up front: the
|
|
1013
|
+
* page's own `fetch` and a static key. A host that injects `fetchImpl` or `getApiKey` keeps a
|
|
1014
|
+
* private cache, as every engine had before.
|
|
1015
|
+
*/
|
|
1016
|
+
registryScope?: {
|
|
1017
|
+
fetch: object;
|
|
1018
|
+
key: string;
|
|
1019
|
+
};
|
|
1002
1020
|
}
|
|
1003
1021
|
declare function parseAllowedApiBase(value: unknown): string | null;
|
|
1004
1022
|
/** Resolve the request base. A relative base (e.g. `/api/widget/v1`) is same-origin and allowed as
|
|
@@ -1097,7 +1115,7 @@ interface ApiClient {
|
|
|
1097
1115
|
}) => Promise<boolean>;
|
|
1098
1116
|
apiBase: string;
|
|
1099
1117
|
}
|
|
1100
|
-
/** Build an API client bound to a resolved config. The 60s
|
|
1118
|
+
/** Build an API client bound to a resolved config. The 60s registry cache is shared — see `registryCacheFor`. */
|
|
1101
1119
|
declare function createApiClient(cfg: ResolvedConfig): ApiClient;
|
|
1102
1120
|
|
|
1103
1121
|
declare function registryRpc(chain: Chain | null): string;
|
|
@@ -1148,4 +1166,4 @@ interface Verifier {
|
|
|
1148
1166
|
}
|
|
1149
1167
|
declare function createVerifier(api: ApiClient, fetchImpl: typeof fetch, rpcOverrides?: Record<number, string>): Verifier;
|
|
1150
1168
|
|
|
1151
|
-
export {
|
|
1169
|
+
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 PayOption as s, type RwaVault as t, type SolveResult as u, type BalanceTarget as v, type BalanceEntry as w, type ApiClient as x, type SwapInput 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.
|
|
3
|
+
"version": "4.10.0",
|
|
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",
|