@glacislabs/stablegenie-zerodelta 4.5.0 → 4.7.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-COBXR362.js → chunk-L7ZEFAZ4.js} +1170 -623
- package/dist/{chunk-447DEZ5S.js → chunk-MZCS5TL2.js} +50 -6
- package/dist/core/index.cjs +50 -5
- package/dist/core/index.d.cts +33 -6
- package/dist/core/index.d.ts +33 -6
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +1209 -618
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-BnAD7hWX.d.cts → mount-D4mbJwdc.d.cts} +27 -8
- package/dist/{mount-DcbU1gqd.d.ts → mount-D5TIOkMe.d.ts} +27 -8
- package/dist/mount.cjs +1209 -618
- 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 +198 -46
- package/dist/{verify-D722uRwZ.d.cts → verify-BEQ8DMvJ.d.cts} +14 -0
- package/dist/{verify-D722uRwZ.d.ts → verify-BEQ8DMvJ.d.ts} +14 -0
- package/package.json +1 -1
|
@@ -323,6 +323,11 @@ interface Quote {
|
|
|
323
323
|
orderRequests?: OrderRequest[] | null;
|
|
324
324
|
/** Legacy single-leg shape, accepted for backward compatibility. */
|
|
325
325
|
orderRequest?: OrderRequest | null;
|
|
326
|
+
/** Present only when the calling API key gets special rates. A 32-byte hex STRING is the marker
|
|
327
|
+
* to pass verbatim as `submitOrder`'s `partnerId` — it is bound to this quote's wallets and
|
|
328
|
+
* amounts. An OBJECT (`{ error }`) means the quote was priced without both wallets and carries
|
|
329
|
+
* no marker; it must be re-quoted with them before it is submitted. Check the type. */
|
|
330
|
+
partnerId?: unknown;
|
|
326
331
|
[k: string]: unknown;
|
|
327
332
|
}
|
|
328
333
|
interface PayOption {
|
|
@@ -440,6 +445,9 @@ interface RouteResult {
|
|
|
440
445
|
gasCostSource?: string;
|
|
441
446
|
msgValue?: string;
|
|
442
447
|
deadline?: string;
|
|
448
|
+
/** The quote's special-rate marker, when it carried one: the `partnerId` word the
|
|
449
|
+
* `submitOrder` calldata was encoded with. Absent = the zero word. */
|
|
450
|
+
partnerId?: string;
|
|
443
451
|
iterations: number;
|
|
444
452
|
/**
|
|
445
453
|
* The gateway's compliance decision for THIS route's wallet pair.
|
|
@@ -1057,6 +1065,12 @@ interface ApiClient {
|
|
|
1057
1065
|
fetchRouteHealth: () => Promise<RouteHealth | null>;
|
|
1058
1066
|
/** The RWA vault catalogue, read ONLY for its artwork. NEVER rejects — see the implementation. */
|
|
1059
1067
|
fetchRwaVaults: () => Promise<RwaVault[]>;
|
|
1068
|
+
/**
|
|
1069
|
+
* USD prices keyed by upper-cased symbol, read ONLY to print a dollar line under an amount.
|
|
1070
|
+
* NEVER rejects — see the implementation. Optional on the type for the same reason
|
|
1071
|
+
* `reportSubmission` is: a host may hold an engine built before it existed.
|
|
1072
|
+
*/
|
|
1073
|
+
fetchPrices?: (symbols: readonly string[]) => Promise<Record<string, number>>;
|
|
1060
1074
|
fetchQuote: (body: Record<string, unknown>, retries?: number) => Promise<Quote>;
|
|
1061
1075
|
/**
|
|
1062
1076
|
* Standalone KYW screen of ONE address — the direct-settlement gate.
|
|
@@ -323,6 +323,11 @@ interface Quote {
|
|
|
323
323
|
orderRequests?: OrderRequest[] | null;
|
|
324
324
|
/** Legacy single-leg shape, accepted for backward compatibility. */
|
|
325
325
|
orderRequest?: OrderRequest | null;
|
|
326
|
+
/** Present only when the calling API key gets special rates. A 32-byte hex STRING is the marker
|
|
327
|
+
* to pass verbatim as `submitOrder`'s `partnerId` — it is bound to this quote's wallets and
|
|
328
|
+
* amounts. An OBJECT (`{ error }`) means the quote was priced without both wallets and carries
|
|
329
|
+
* no marker; it must be re-quoted with them before it is submitted. Check the type. */
|
|
330
|
+
partnerId?: unknown;
|
|
326
331
|
[k: string]: unknown;
|
|
327
332
|
}
|
|
328
333
|
interface PayOption {
|
|
@@ -440,6 +445,9 @@ interface RouteResult {
|
|
|
440
445
|
gasCostSource?: string;
|
|
441
446
|
msgValue?: string;
|
|
442
447
|
deadline?: string;
|
|
448
|
+
/** The quote's special-rate marker, when it carried one: the `partnerId` word the
|
|
449
|
+
* `submitOrder` calldata was encoded with. Absent = the zero word. */
|
|
450
|
+
partnerId?: string;
|
|
443
451
|
iterations: number;
|
|
444
452
|
/**
|
|
445
453
|
* The gateway's compliance decision for THIS route's wallet pair.
|
|
@@ -1057,6 +1065,12 @@ interface ApiClient {
|
|
|
1057
1065
|
fetchRouteHealth: () => Promise<RouteHealth | null>;
|
|
1058
1066
|
/** The RWA vault catalogue, read ONLY for its artwork. NEVER rejects — see the implementation. */
|
|
1059
1067
|
fetchRwaVaults: () => Promise<RwaVault[]>;
|
|
1068
|
+
/**
|
|
1069
|
+
* USD prices keyed by upper-cased symbol, read ONLY to print a dollar line under an amount.
|
|
1070
|
+
* NEVER rejects — see the implementation. Optional on the type for the same reason
|
|
1071
|
+
* `reportSubmission` is: a host may hold an engine built before it existed.
|
|
1072
|
+
*/
|
|
1073
|
+
fetchPrices?: (symbols: readonly string[]) => Promise<Record<string, number>>;
|
|
1060
1074
|
fetchQuote: (body: Record<string, unknown>, retries?: number) => Promise<Quote>;
|
|
1061
1075
|
/**
|
|
1062
1076
|
* Standalone KYW screen of ONE address — the direct-settlement gate.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glacislabs/stablegenie-zerodelta",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.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",
|