@glacislabs/stablegenie-zerodelta 3.0.1 → 3.0.2

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.
@@ -160,6 +160,14 @@ interface Plan {
160
160
  expiresAt: string;
161
161
  apiBase?: string;
162
162
  routes: RouteResult[];
163
+ /** Wallet balances already read while choosing funding candidates. Payment UIs reuse these so
164
+ * route rendering does not trigger the same RPC scan a second time. */
165
+ fundingBalances?: Record<string, {
166
+ raw: string;
167
+ formatted: string;
168
+ }>;
169
+ /** Normalized account that `fundingBalances` belongs to. */
170
+ fundingAccount?: string;
163
171
  destination: {
164
172
  asset: string;
165
173
  chainId: number;
@@ -348,4 +356,4 @@ interface Verifier {
348
356
  }
349
357
  declare function createVerifier(api: ApiClient, fetchImpl: typeof fetch, rpcOverrides?: Record<number, string>): Verifier;
350
358
 
351
- export { type ApiClient as A, type BalanceEntry as B, type Chain as C, type Destination as D, type EngineConfig as E, type FetchQuoteFn as F, type Hex as H, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type RouteResult as R, type SanitizedTxEntry as S, type TxHistoryEntry as T, type VerifyResult as V, type Token as a, type PayOption as b, type Route as c, type SolveResult as d, type SwapInput as e, type PlannedTx as f, type Verifier as g, type Address as h, type ApiError as i, type BalanceTarget as j, type PlannedTxKind as k, type QuoteBlock as l, type ResolvedConfig as m, type TxPlan as n, apiError as o, canAttachApiKey as p, classifyQuoteError as q, createApiClient as r, createVerifier as s, parseAllowedApiBase as t, registryRpc as u, resolveApiBase as v, resolveConfig as w, txMatchesPlan as x };
359
+ export { type ApiClient as A, type BalanceTarget as B, type Chain as C, type Destination as D, type EngineConfig as E, type FetchQuoteFn as F, type Hex as H, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type RouteResult as R, type SanitizedTxEntry as S, type TxHistoryEntry as T, type VerifyResult as V, type Token as a, type PayOption as b, type Route as c, type SolveResult as d, type BalanceEntry as e, type SwapInput as f, type PlannedTx as g, type Verifier as h, type Address as i, type ApiError as j, type PlannedTxKind as k, type QuoteBlock as l, type ResolvedConfig as m, type TxPlan as n, apiError as o, canAttachApiKey as p, classifyQuoteError as q, createApiClient as r, createVerifier as s, parseAllowedApiBase as t, registryRpc as u, resolveApiBase as v, resolveConfig as w, txMatchesPlan as x };
@@ -160,6 +160,14 @@ interface Plan {
160
160
  expiresAt: string;
161
161
  apiBase?: string;
162
162
  routes: RouteResult[];
163
+ /** Wallet balances already read while choosing funding candidates. Payment UIs reuse these so
164
+ * route rendering does not trigger the same RPC scan a second time. */
165
+ fundingBalances?: Record<string, {
166
+ raw: string;
167
+ formatted: string;
168
+ }>;
169
+ /** Normalized account that `fundingBalances` belongs to. */
170
+ fundingAccount?: string;
163
171
  destination: {
164
172
  asset: string;
165
173
  chainId: number;
@@ -348,4 +356,4 @@ interface Verifier {
348
356
  }
349
357
  declare function createVerifier(api: ApiClient, fetchImpl: typeof fetch, rpcOverrides?: Record<number, string>): Verifier;
350
358
 
351
- export { type ApiClient as A, type BalanceEntry as B, type Chain as C, type Destination as D, type EngineConfig as E, type FetchQuoteFn as F, type Hex as H, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type RouteResult as R, type SanitizedTxEntry as S, type TxHistoryEntry as T, type VerifyResult as V, type Token as a, type PayOption as b, type Route as c, type SolveResult as d, type SwapInput as e, type PlannedTx as f, type Verifier as g, type Address as h, type ApiError as i, type BalanceTarget as j, type PlannedTxKind as k, type QuoteBlock as l, type ResolvedConfig as m, type TxPlan as n, apiError as o, canAttachApiKey as p, classifyQuoteError as q, createApiClient as r, createVerifier as s, parseAllowedApiBase as t, registryRpc as u, resolveApiBase as v, resolveConfig as w, txMatchesPlan as x };
359
+ export { type ApiClient as A, type BalanceTarget as B, type Chain as C, type Destination as D, type EngineConfig as E, type FetchQuoteFn as F, type Hex as H, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type RouteResult as R, type SanitizedTxEntry as S, type TxHistoryEntry as T, type VerifyResult as V, type Token as a, type PayOption as b, type Route as c, type SolveResult as d, type BalanceEntry as e, type SwapInput as f, type PlannedTx as g, type Verifier as h, type Address as i, type ApiError as j, type PlannedTxKind as k, type QuoteBlock as l, type ResolvedConfig as m, type TxPlan as n, apiError as o, canAttachApiKey as p, classifyQuoteError as q, createApiClient as r, createVerifier as s, parseAllowedApiBase as t, registryRpc as u, resolveApiBase as v, resolveConfig as w, txMatchesPlan as x };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glacislabs/stablegenie-zerodelta",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
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",