@glacislabs/stablegenie-zerodelta 4.15.0 → 4.16.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-GWQKWJJA.js → chunk-7FBWRHP2.js} +20 -4
- package/dist/{chunk-3U5Z5CC3.js → chunk-7V3XP5D6.js} +176 -59
- package/dist/core/index.cjs +20 -4
- package/dist/core/index.d.cts +6 -2
- package/dist/core/index.d.ts +6 -2
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +195 -62
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-DRCSjQp0.d.cts → mount-BSXfSSP2.d.cts} +1 -1
- package/dist/{mount-CMsgFE6g.d.ts → mount-BdxMZC70.d.ts} +1 -1
- package/dist/mount.cjs +195 -62
- 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 +10 -8
- package/dist/{verify-CoPaE02j.d.cts → verify-BBREdvIM.d.cts} +3 -0
- package/dist/{verify-CoPaE02j.d.ts → verify-BBREdvIM.d.ts} +3 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -913,7 +913,9 @@ var CHAIN_DISPLAY_NAMES = Object.freeze({
|
|
|
913
913
|
9745: "Plasma",
|
|
914
914
|
34443: "Mode",
|
|
915
915
|
42161: "Arbitrum One",
|
|
916
|
-
|
|
916
|
+
// "Avalanche", as the dApp prints it since zd-dapp#582 (from ZD Heavy's /chains). The widget's
|
|
917
|
+
// registry read lists no row for a payout-only chain, so this table is what names it here.
|
|
918
|
+
43114: "Avalanche",
|
|
917
919
|
48900: "Zircuit",
|
|
918
920
|
57073: "Ink",
|
|
919
921
|
59144: "Linea",
|
|
@@ -1515,7 +1517,7 @@ function verifySolanaSubmit(p, e) {
|
|
|
1515
1517
|
if (p.destinationChainId !== BigInt(e.destinationChainId)) fail("destination chain");
|
|
1516
1518
|
if (p.executionChainId !== BigInt(e.executionChainId)) fail("execution chain");
|
|
1517
1519
|
if (p.deadline !== BigInt(e.deadline)) fail("deadline");
|
|
1518
|
-
if (p.partnerId !== null !== (e.partnerId !== null)) fail("
|
|
1520
|
+
if (p.partnerId !== null !== (e.partnerId !== null)) fail("partner id");
|
|
1519
1521
|
}
|
|
1520
1522
|
var PREPARATION_INSTRUCTIONS = [
|
|
1521
1523
|
{ discriminator: [225, 205, 234, 143, 17, 186, 50, 220], signer: 2 },
|
|
@@ -2033,6 +2035,8 @@ function normalizePreview(request, quote, to, amount) {
|
|
|
2033
2035
|
estimatedDuration: Number(option.estimatedTimeSec || 0),
|
|
2034
2036
|
via: null,
|
|
2035
2037
|
nativeFeeRaw: String(option.gasCostSource || "0"),
|
|
2038
|
+
zeroDeltaFeeCentibips: option.zeroDeltaFeeCentibips,
|
|
2039
|
+
zeroDeltaFeeNative: option.zeroDeltaFeeNative,
|
|
2036
2040
|
quote,
|
|
2037
2041
|
option,
|
|
2038
2042
|
txData: option.txData,
|
|
@@ -2070,7 +2074,9 @@ async function previewSolanaSource(api, input) {
|
|
|
2070
2074
|
feeBps: Number(option.feeBps || 0),
|
|
2071
2075
|
estimatedDuration: Number(option.estimatedTimeSec || 0),
|
|
2072
2076
|
via: null,
|
|
2073
|
-
nativeFeeRaw: "0"
|
|
2077
|
+
nativeFeeRaw: "0",
|
|
2078
|
+
zeroDeltaFeeCentibips: option.zeroDeltaFeeCentibips,
|
|
2079
|
+
zeroDeltaFeeNative: option.zeroDeltaFeeNative
|
|
2074
2080
|
};
|
|
2075
2081
|
}
|
|
2076
2082
|
function solanaQuoteCompliance(quote) {
|
|
@@ -2853,6 +2859,12 @@ function humanizeComplianceReason(raw2) {
|
|
|
2853
2859
|
}
|
|
2854
2860
|
case "blocked_jurisdiction":
|
|
2855
2861
|
return `Your region (${cleanJurisdiction(detail)}) isn't supported.`;
|
|
2862
|
+
// zd-dapp src/lib/complianceReason.ts (#588): ZD Heavy's account-country and wallet-origin rules.
|
|
2863
|
+
// Without these two the payer read the raw code ("account blocked country — IR").
|
|
2864
|
+
case "account_blocked_country":
|
|
2865
|
+
return `Your account doesn't support this region (${cleanJurisdiction(detail)}).`;
|
|
2866
|
+
case "blocked_origin_jurisdiction":
|
|
2867
|
+
return `The wallet's attributed region (${cleanJurisdiction(detail)}) isn't supported.`;
|
|
2856
2868
|
case "blocked_destination_jurisdiction":
|
|
2857
2869
|
return `The destination region (${cleanJurisdiction(detail)}) isn't supported.`;
|
|
2858
2870
|
case "jurisdiction_out_of_scope":
|
|
@@ -3547,6 +3559,8 @@ async function buildRoute({
|
|
|
3547
3559
|
quote: {
|
|
3548
3560
|
bridge: quote.bridge,
|
|
3549
3561
|
feeBps: quote.feeBps,
|
|
3562
|
+
zeroDeltaFeeCentibips: quote.zeroDeltaFeeCentibips,
|
|
3563
|
+
zeroDeltaFeeNative: quote.zeroDeltaFeeNative,
|
|
3550
3564
|
estimatedDuration: quote.estimatedDuration,
|
|
3551
3565
|
gasCostSource: quote.gasCostSource,
|
|
3552
3566
|
msgValue: valueRaw.toString(),
|
|
@@ -3567,7 +3581,7 @@ var CHANNEL_HEADER = "x-zd-channel";
|
|
|
3567
3581
|
var CHANNEL_VERSION_HEADER = "x-zd-channel-version";
|
|
3568
3582
|
var CHANNEL_ORIGIN_HEADER = "x-zd-channel-origin";
|
|
3569
3583
|
var WIDGET_CHANNEL = "widget";
|
|
3570
|
-
var WIDGET_VERSION = "4.
|
|
3584
|
+
var WIDGET_VERSION = "4.16.0" ;
|
|
3571
3585
|
var MAX_CHANNEL_VERSION_LEN = 32;
|
|
3572
3586
|
function sanitizeVersion(raw2) {
|
|
3573
3587
|
const v = String(raw2).trim();
|
|
@@ -4157,6 +4171,8 @@ async function quoteSwapPreview(api, swap, owner) {
|
|
|
4157
4171
|
return {
|
|
4158
4172
|
receive: formatUnits(final, assetDecimals(destToken)),
|
|
4159
4173
|
receiveRaw: final.toString(),
|
|
4174
|
+
zeroDeltaFeeCentibips: quote.zeroDeltaFeeCentibips,
|
|
4175
|
+
zeroDeltaFeeNative: quote.zeroDeltaFeeNative,
|
|
4160
4176
|
fromAmount: v.amountIn,
|
|
4161
4177
|
fromToken: sourceToken.symbol,
|
|
4162
4178
|
toToken: destToken.symbol,
|
|
@@ -5071,6 +5087,7 @@ function useFlow(args) {
|
|
|
5071
5087
|
if (busyRef.current) return;
|
|
5072
5088
|
setFieldError(null);
|
|
5073
5089
|
if (!enabled || !wallet.account) {
|
|
5090
|
+
reqId.current++;
|
|
5074
5091
|
setStatus("idle");
|
|
5075
5092
|
setPlan(null);
|
|
5076
5093
|
return;
|
|
@@ -5664,6 +5681,8 @@ img.sg-tok-badge{width:16px;padding:0;object-fit:cover;background:var(--sg-bg)}
|
|
|
5664
5681
|
.sg-pk-body{display:flex;flex-direction:column;gap:8px}
|
|
5665
5682
|
.sg-pk-selected{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
|
|
5666
5683
|
.sg-pk-cap{margin:0;font-size:12px;line-height:1.2;color:var(--sg-text-muted)}
|
|
5684
|
+
.sg-pk-cap--section{margin-top:8px}
|
|
5685
|
+
.sg-pk-bal-missing{flex:0 0 auto;font-size:13px;line-height:1.4;color:var(--sg-text-muted);text-align:right}
|
|
5667
5686
|
.sg-pk-list{display:flex;flex-direction:column;gap:4px;max-height:320px;overflow-y:auto;margin:-1px;padding:1px;scrollbar-width:thin}
|
|
5668
5687
|
.sg-pk-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:16px;border:none;border-radius:24px;background:color-mix(in srgb,var(--sg-accent) 4%,transparent);color:var(--sg-text);font:inherit;text-align:left;cursor:pointer;transition:background 120ms ease}
|
|
5669
5688
|
.sg-pk-row:hover{background:color-mix(in srgb,var(--sg-accent) 8%,transparent)}
|
|
@@ -6459,6 +6478,12 @@ var SOURCE_CHAIN_LABELS = {
|
|
|
6459
6478
|
98866: "Plume"
|
|
6460
6479
|
};
|
|
6461
6480
|
var CHAIN_LABELS = { ...CHAIN_DISPLAY_NAMES, ...SOURCE_CHAIN_LABELS };
|
|
6481
|
+
function chainLabel(chainId, chain2) {
|
|
6482
|
+
const pinned = SOURCE_CHAIN_LABELS[chainId];
|
|
6483
|
+
if (pinned) return pinned;
|
|
6484
|
+
const fromRegistry = typeof chain2?.displayName === "string" ? chain2.displayName.trim() : "";
|
|
6485
|
+
return fromRegistry || CHAIN_DISPLAY_NAMES[chainId] || `Chain ${chainId}`;
|
|
6486
|
+
}
|
|
6462
6487
|
var SUPPORTED_CHAINS = [1, 10, 42161, 8453, 57073, 130, 9745, 146, 98866];
|
|
6463
6488
|
var SUPPORTED_ASSETS2 = [
|
|
6464
6489
|
...EXECUTABLE_STABLE_ASSETS,
|
|
@@ -6994,7 +7019,7 @@ function TokenTile(props) {
|
|
|
6994
7019
|
/* @__PURE__ */ jsxRuntime.jsx(TokenGlyph, { symbol: props.pick.symbol, logoUrl: props.token?.logoUrl, chainId: props.pick.chainId, size: "tile" }),
|
|
6995
7020
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tile-text", children: [
|
|
6996
7021
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tile-sym", children: shown }),
|
|
6997
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tile-chain", children: CHAIN_LABELS[props.pick.chainId] || `Chain ${props.pick.chainId}` })
|
|
7022
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tile-chain", children: props.chainName || CHAIN_LABELS[props.pick.chainId] || `Chain ${props.pick.chainId}` })
|
|
6998
7023
|
] })
|
|
6999
7024
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7000
7025
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tok", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tok-fb", children: "?" }) }),
|
|
@@ -7073,7 +7098,9 @@ function TickBadge() {
|
|
|
7073
7098
|
] }) });
|
|
7074
7099
|
}
|
|
7075
7100
|
function BalanceColumn(props) {
|
|
7076
|
-
if (props.amount == null)
|
|
7101
|
+
if (props.amount == null) {
|
|
7102
|
+
return props.walletMissing ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-bal-missing", "data-testid": "balance-wallet-missing", children: "Wallet not connected" }) : null;
|
|
7103
|
+
}
|
|
7077
7104
|
if (props.amount === 0) return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-bal-zero", children: "0.00" });
|
|
7078
7105
|
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-pk-bal", children: [
|
|
7079
7106
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-bal-usd sg-mono", children: props.usd == null ? "\u2014" : formatBalanceUsd(props.usd) }),
|
|
@@ -7126,7 +7153,7 @@ function TokenSelect(props) {
|
|
|
7126
7153
|
const listRef = react.useRef(null);
|
|
7127
7154
|
const savedScroll = react.useRef(0);
|
|
7128
7155
|
const chainById2 = react.useMemo(() => new Map(props.chains.map((c) => [Number(c.chainId), c])), [props.chains]);
|
|
7129
|
-
const chainName3 = (chainId) =>
|
|
7156
|
+
const chainName3 = (chainId) => chainLabel(chainId, chainById2.get(chainId));
|
|
7130
7157
|
const showBalances = side === "from" && !!props.balances && Object.keys(props.balances).length > 0;
|
|
7131
7158
|
const [prices, setPrices] = react.useState({});
|
|
7132
7159
|
const symbolKey2 = react.useMemo(() => [...new Set(props.tokens.map((t) => String(t.symbol).toUpperCase()))].sort().join(","), [props.tokens]);
|
|
@@ -7172,6 +7199,15 @@ function TokenSelect(props) {
|
|
|
7172
7199
|
}, [props.tokens, props.balances, props.optionStates, showBalances, prices]);
|
|
7173
7200
|
const chainTerms = react.useMemo(() => buildChainSearchTerms(props.chains), [props.chains]);
|
|
7174
7201
|
const visible = react.useMemo(() => searchGroups(groups, query, chainTerms, prices), [groups, query, chainTerms, prices]);
|
|
7202
|
+
const { listed, other } = react.useMemo(() => {
|
|
7203
|
+
const held = [];
|
|
7204
|
+
const none = [];
|
|
7205
|
+
for (const g of visible) {
|
|
7206
|
+
const readZero = showBalances && !g.unavailable && g.deployments.length > 0 && g.deployments.every((d) => d.balance === 0);
|
|
7207
|
+
(readZero ? none : held).push(g);
|
|
7208
|
+
}
|
|
7209
|
+
return { listed: held, other: none };
|
|
7210
|
+
}, [visible, showBalances]);
|
|
7175
7211
|
const openGroup = openKey ? visible.find((g) => g.key === openKey) ?? null : null;
|
|
7176
7212
|
react.useEffect(() => {
|
|
7177
7213
|
if (openKey && !openGroup) setOpenKey(null);
|
|
@@ -7228,7 +7264,7 @@ function TokenSelect(props) {
|
|
|
7228
7264
|
d.hint ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-note", "data-testid": "lane-limit", children: d.hint }) : null
|
|
7229
7265
|
] })
|
|
7230
7266
|
] }),
|
|
7231
|
-
showBalances ? /* @__PURE__ */ jsxRuntime.jsx(BalanceColumn, { amount: d.balance, usd: usdOf(d.balance, prices, d.token.symbol), symbol: ticker }) : null
|
|
7267
|
+
showBalances ? /* @__PURE__ */ jsxRuntime.jsx(BalanceColumn, { amount: d.balance, usd: usdOf(d.balance, prices, d.token.symbol), symbol: ticker, walletMissing: props.walletMissing?.(d.token) }) : null
|
|
7232
7268
|
] }, d.key);
|
|
7233
7269
|
}) })
|
|
7234
7270
|
] });
|
|
@@ -7267,52 +7303,58 @@ function TokenSelect(props) {
|
|
|
7267
7303
|
) : null
|
|
7268
7304
|
] })
|
|
7269
7305
|
] }) : null,
|
|
7270
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "sg-pk-cap", children: side === "from" ? "Your tokens \xB7 All networks" : "Popular tokens \xB7 All networks" }),
|
|
7271
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-pk-list", ref: listRef, role: "group", "aria-label": props.title, children: visible.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "sg-pk-empty", children: props.loading ? "Loading the token list\u2026" : "No tokens found." }) :
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
const blocked = !!g.unavailable;
|
|
7277
|
-
const opensNetworks = multi || blocked;
|
|
7278
|
-
const zero = showBalances && g.amount === 0 || blocked;
|
|
7279
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7280
|
-
"button",
|
|
7281
|
-
{
|
|
7282
|
-
type: "button",
|
|
7283
|
-
className: "sg-pk-row",
|
|
7284
|
-
"data-testid": "token-row",
|
|
7285
|
-
"data-symbol": g.symbol,
|
|
7286
|
-
"data-networks": members.length,
|
|
7287
|
-
"data-zero": zero || void 0,
|
|
7288
|
-
"data-unavailable": blocked || void 0,
|
|
7289
|
-
onClick: () => {
|
|
7290
|
-
if (opensNetworks) {
|
|
7291
|
-
savedScroll.current = listRef.current?.scrollTop ?? 0;
|
|
7292
|
-
setOpenKey(g.key);
|
|
7293
|
-
} else pick(single.token);
|
|
7294
|
-
},
|
|
7295
|
-
children: [
|
|
7296
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-pk-left", children: [
|
|
7297
|
-
/* @__PURE__ */ jsxRuntime.jsx(TokenPlate, { symbol: g.symbol, logoUrl: g.logoUrl }),
|
|
7298
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-pk-text", children: [
|
|
7299
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-label", children: label2 }),
|
|
7300
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-pk-line", children: [
|
|
7301
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-sub", children: multi ? showBalances ? "Total across" : "Available on" : `On ${chainName3(Number(single.token.chainId))}` }),
|
|
7302
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChainMarks, { chainIds: members.map((m) => Number(m.token.chainId)), chainById: chainById2, decorative: !multi }),
|
|
7303
|
-
opensNetworks && showBalances ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-chev sg-pk-chev--sm", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(ChevronGlyph, {}) }) : null
|
|
7304
|
-
] }),
|
|
7305
|
-
!multi && single.hint ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-note", "data-testid": "lane-limit", children: single.hint }) : null
|
|
7306
|
-
] })
|
|
7307
|
-
] }),
|
|
7308
|
-
showBalances ? /* @__PURE__ */ jsxRuntime.jsx(BalanceColumn, { amount: g.amount, usd: g.usd, symbol: label2 }) : opensNetworks ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-chev", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(ChevronGlyph, {}) }) : null
|
|
7309
|
-
]
|
|
7310
|
-
},
|
|
7311
|
-
g.key
|
|
7312
|
-
);
|
|
7313
|
-
}) })
|
|
7306
|
+
listed.length > 0 || visible.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "sg-pk-cap", children: side === "from" ? "Your tokens \xB7 All networks" : "Popular tokens \xB7 All networks" }) : null,
|
|
7307
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-pk-list", ref: listRef, role: "group", "aria-label": props.title, children: visible.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "sg-pk-empty", children: props.loading ? "Loading the token list\u2026" : "No tokens found." }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7308
|
+
listed.map((g) => renderRow(g, false)),
|
|
7309
|
+
other.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "sg-pk-cap sg-pk-cap--section", "data-testid": "other-tokens-cap", children: "Other supported tokens" }) : null,
|
|
7310
|
+
other.map((g) => renderRow(g, true))
|
|
7311
|
+
] }) })
|
|
7314
7312
|
] })
|
|
7315
7313
|
] });
|
|
7314
|
+
function renderRow(g, discovery) {
|
|
7315
|
+
const members = g.deployments;
|
|
7316
|
+
const multi = members.length > 1;
|
|
7317
|
+
const single = members[0];
|
|
7318
|
+
const label2 = multi ? g.symbol : tokenTicker(single.token);
|
|
7319
|
+
const blocked = !!g.unavailable;
|
|
7320
|
+
const opensNetworks = multi || blocked;
|
|
7321
|
+
const zero = showBalances && g.amount === 0 || blocked;
|
|
7322
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7323
|
+
"button",
|
|
7324
|
+
{
|
|
7325
|
+
type: "button",
|
|
7326
|
+
className: "sg-pk-row",
|
|
7327
|
+
"data-testid": "token-row",
|
|
7328
|
+
"data-symbol": g.symbol,
|
|
7329
|
+
"data-networks": members.length,
|
|
7330
|
+
"data-zero": zero || void 0,
|
|
7331
|
+
"data-discovery": discovery || void 0,
|
|
7332
|
+
"data-unavailable": blocked || void 0,
|
|
7333
|
+
onClick: () => {
|
|
7334
|
+
if (opensNetworks) {
|
|
7335
|
+
savedScroll.current = listRef.current?.scrollTop ?? 0;
|
|
7336
|
+
setOpenKey(g.key);
|
|
7337
|
+
} else pick(single.token);
|
|
7338
|
+
},
|
|
7339
|
+
children: [
|
|
7340
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-pk-left", children: [
|
|
7341
|
+
/* @__PURE__ */ jsxRuntime.jsx(TokenPlate, { symbol: g.symbol, logoUrl: g.logoUrl }),
|
|
7342
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-pk-text", children: [
|
|
7343
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-label", children: label2 }),
|
|
7344
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-pk-line", children: [
|
|
7345
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-sub", children: discovery ? "Available on" : multi ? showBalances ? "Total across" : "Available on" : `On ${chainName3(Number(single.token.chainId))}` }),
|
|
7346
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChainMarks, { chainIds: members.map((m) => Number(m.token.chainId)), chainById: chainById2, decorative: !multi && !discovery }),
|
|
7347
|
+
opensNetworks && showBalances ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-chev sg-pk-chev--sm", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(ChevronGlyph, {}) }) : null
|
|
7348
|
+
] }),
|
|
7349
|
+
!multi && single.hint ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-note", "data-testid": "lane-limit", children: single.hint }) : null
|
|
7350
|
+
] })
|
|
7351
|
+
] }),
|
|
7352
|
+
showBalances ? /* @__PURE__ */ jsxRuntime.jsx(BalanceColumn, { amount: g.amount, usd: g.usd, symbol: label2, walletMissing: !multi && props.walletMissing?.(single.token) }) : opensNetworks ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-pk-chev", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(ChevronGlyph, {}) }) : null
|
|
7353
|
+
]
|
|
7354
|
+
},
|
|
7355
|
+
g.key
|
|
7356
|
+
);
|
|
7357
|
+
}
|
|
7316
7358
|
}
|
|
7317
7359
|
function ChevronRight({ size = 16 }) {
|
|
7318
7360
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 4l4 4-4 4", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
@@ -7389,7 +7431,7 @@ function durationLabel(seconds) {
|
|
|
7389
7431
|
}
|
|
7390
7432
|
function TokenButton(props) {
|
|
7391
7433
|
const shown = props.token ? tokenTicker(props.token) : props.symbol ?? "";
|
|
7392
|
-
const chain2 = props.chainId ? CHAIN_LABELS[props.chainId] || `Chain ${props.chainId}` : "";
|
|
7434
|
+
const chain2 = props.chainId ? props.chainName || CHAIN_LABELS[props.chainId] || `Chain ${props.chainId}` : "";
|
|
7393
7435
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7394
7436
|
"button",
|
|
7395
7437
|
{
|
|
@@ -7854,7 +7896,7 @@ function CheckGlyph() {
|
|
|
7854
7896
|
function HistoryButton(props) {
|
|
7855
7897
|
return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", ref: props.btnRef, className: "sg-hist", disabled: props.disabled, onClick: props.onClick, "aria-label": "Transaction history", title: "Transaction history", children: /* @__PURE__ */ jsxRuntime.jsx(HistoryGlyph, {}) });
|
|
7856
7898
|
}
|
|
7857
|
-
function
|
|
7899
|
+
function chainLabel2(entry) {
|
|
7858
7900
|
return entry.chainId != null && CHAIN_LABELS[entry.chainId] || entry.chainName || (entry.chainId != null ? `Chain ${entry.chainId}` : "Unknown chain");
|
|
7859
7901
|
}
|
|
7860
7902
|
function chainName(chainId, fallback) {
|
|
@@ -7987,7 +8029,7 @@ function TxHistoryList(props) {
|
|
|
7987
8029
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-txrow-when", children: [
|
|
7988
8030
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-txrow-what", children: [
|
|
7989
8031
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: e.kind === "payment" ? "Payment" : "Swap" }),
|
|
7990
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children:
|
|
8032
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: chainLabel2(e) }),
|
|
7991
8033
|
(e.legs?.length ?? 1) > 1 ? /* @__PURE__ */ jsxRuntime.jsx("span", { children: ordersLabel(e.legs.length) }) : null
|
|
7992
8034
|
] }),
|
|
7993
8035
|
whenLabel(e.at) ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-txrow-time", children: whenLabel(e.at) }) : null
|
|
@@ -8044,7 +8086,7 @@ function TxDetail(props) {
|
|
|
8044
8086
|
] }),
|
|
8045
8087
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-meta-row", children: [
|
|
8046
8088
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-meta-label", children: "Signed on" }),
|
|
8047
|
-
/* @__PURE__ */ jsxRuntime.jsx("b", { children:
|
|
8089
|
+
/* @__PURE__ */ jsxRuntime.jsx("b", { children: chainLabel2(e) })
|
|
8048
8090
|
] }),
|
|
8049
8091
|
e.recipient ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-meta-row", children: [
|
|
8050
8092
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-meta-label", children: "Recipient" }),
|
|
@@ -10700,6 +10742,86 @@ function QuoteSheet(props) {
|
|
|
10700
10742
|
] })
|
|
10701
10743
|
] });
|
|
10702
10744
|
}
|
|
10745
|
+
|
|
10746
|
+
// src/react/ui/cost.ts
|
|
10747
|
+
function tenPow(d) {
|
|
10748
|
+
let x = 1n;
|
|
10749
|
+
for (let i = 0; i < d; i++) x *= 10n;
|
|
10750
|
+
return x;
|
|
10751
|
+
}
|
|
10752
|
+
function divRoundNearest(n, d) {
|
|
10753
|
+
if (d === 0n) return 0n;
|
|
10754
|
+
const sign2 = n < 0n !== d < 0n ? -1n : 1n;
|
|
10755
|
+
const an = n < 0n ? -n : n;
|
|
10756
|
+
const ad = d < 0n ? -d : d;
|
|
10757
|
+
let q = an / ad;
|
|
10758
|
+
const r = an - q * ad;
|
|
10759
|
+
if (r * 2n >= ad) q += 1n;
|
|
10760
|
+
return sign2 * q;
|
|
10761
|
+
}
|
|
10762
|
+
function parSpreadBps(fromAmountRaw, fromDecimals, toAmountRaw, toDecimals) {
|
|
10763
|
+
try {
|
|
10764
|
+
const from = BigInt(fromAmountRaw);
|
|
10765
|
+
const to = BigInt(toAmountRaw);
|
|
10766
|
+
if (from <= 0n) return null;
|
|
10767
|
+
const pFrom = tenPow(fromDecimals);
|
|
10768
|
+
const pTo = tenPow(toDecimals);
|
|
10769
|
+
const den = from * pTo;
|
|
10770
|
+
if (den === 0n) return null;
|
|
10771
|
+
return Number(divRoundNearest((den - to * pFrom) * 100000n, den)) / 10;
|
|
10772
|
+
} catch {
|
|
10773
|
+
return null;
|
|
10774
|
+
}
|
|
10775
|
+
}
|
|
10776
|
+
function totalCostBps(fromUsd, toUsd) {
|
|
10777
|
+
if (fromUsd == null || toUsd == null) return null;
|
|
10778
|
+
if (!Number.isFinite(fromUsd) || !Number.isFinite(toUsd) || fromUsd <= 0) return null;
|
|
10779
|
+
return (fromUsd - toUsd) / fromUsd * 1e4;
|
|
10780
|
+
}
|
|
10781
|
+
function costBasisFor(fromSymbol, toSymbol) {
|
|
10782
|
+
return assetClassOf(fromSymbol) === "stable" && assetClassOf(toSymbol) === "stable" ? "tokens" : "value";
|
|
10783
|
+
}
|
|
10784
|
+
function quoteCostBps(input) {
|
|
10785
|
+
if (!input.fromSymbol || !input.toSymbol) return null;
|
|
10786
|
+
if (costBasisFor(input.fromSymbol, input.toSymbol) === "value") {
|
|
10787
|
+
const usd2 = (amount, price) => price === void 0 || !amount ? null : Number(amount) * price;
|
|
10788
|
+
return totalCostBps(usd2(input.send, input.fromPrice), usd2(input.receive, input.toPrice));
|
|
10789
|
+
}
|
|
10790
|
+
try {
|
|
10791
|
+
if (!input.send || !input.receive) return null;
|
|
10792
|
+
return parSpreadBps(parseUnitsDecimal(input.send, 18).toString(), 18, parseUnitsDecimal(input.receive, 18).toString(), 18);
|
|
10793
|
+
} catch {
|
|
10794
|
+
return null;
|
|
10795
|
+
}
|
|
10796
|
+
}
|
|
10797
|
+
function statedCentibips(fee) {
|
|
10798
|
+
const c = fee?.zeroDeltaFeeCentibips;
|
|
10799
|
+
return typeof c === "number" && Number.isSafeInteger(c) && c >= 0 ? c : null;
|
|
10800
|
+
}
|
|
10801
|
+
function centibipsPct(centibips) {
|
|
10802
|
+
if (centibips === 0) return "0%";
|
|
10803
|
+
const whole = Math.floor(centibips / 1e4);
|
|
10804
|
+
const frac = String(centibips % 1e4).padStart(4, "0").replace(/0+$/, "").padEnd(2, "0");
|
|
10805
|
+
return `${whole}.${frac}%`;
|
|
10806
|
+
}
|
|
10807
|
+
function zeroDeltaFeeLabel(fee, native) {
|
|
10808
|
+
const centibips = statedCentibips(fee);
|
|
10809
|
+
if (centibips === null) return "--";
|
|
10810
|
+
const pct = centibipsPct(centibips);
|
|
10811
|
+
const raw2 = fee?.zeroDeltaFeeNative;
|
|
10812
|
+
if (typeof raw2 !== "string" || !/^\d+$/.test(raw2) || BigInt(raw2) === 0n) return pct;
|
|
10813
|
+
return `${pct} + ${formatUnits(raw2, native.decimals, 8)} ${native.symbol}`;
|
|
10814
|
+
}
|
|
10815
|
+
function formatCostBps(bps) {
|
|
10816
|
+
const rounded = Number(bps.toFixed(1));
|
|
10817
|
+
const sign2 = rounded < 0 ? "\u2212" : "+";
|
|
10818
|
+
return `${sign2}${Math.abs(rounded).toFixed(1)} bps`;
|
|
10819
|
+
}
|
|
10820
|
+
function rateImpactLabel(totalBps, fee) {
|
|
10821
|
+
if (totalBps === null) return "--";
|
|
10822
|
+
const centibips = statedCentibips(fee);
|
|
10823
|
+
return formatCostBps(totalBps - (centibips === null ? 0 : centibips / 100));
|
|
10824
|
+
}
|
|
10703
10825
|
var FIAT = [
|
|
10704
10826
|
{ code: "USD", glyph: "$", label: "US Dollar" },
|
|
10705
10827
|
{ code: "EUR", glyph: "\u20AC", label: "Euro" },
|
|
@@ -10767,6 +10889,8 @@ function ExchangeCard(props) {
|
|
|
10767
10889
|
const order = new Map(SUPPORTED_CHAINS.map((id, i) => [id, i]));
|
|
10768
10890
|
return [...catalogue?.chains ?? []].sort((a, b) => (order.get(Number(a.chainId)) ?? 99) - (order.get(Number(b.chainId)) ?? 99) || Number(a.chainId) - Number(b.chainId));
|
|
10769
10891
|
}, [catalogue]);
|
|
10892
|
+
const chainRow = react.useMemo(() => new Map(chains.map((c) => [Number(c.chainId), c])), [chains]);
|
|
10893
|
+
const nameOf = (id) => id ? chainLabel(id, chainRow.get(id)) : void 0;
|
|
10770
10894
|
const tokens = react.useMemo(() => catalogue?.tokens ?? [], [catalogue]);
|
|
10771
10895
|
const sourceTokens = react.useMemo(() => catalogue?.sources ?? [], [catalogue]);
|
|
10772
10896
|
const [view, setView] = react.useState("main");
|
|
@@ -11057,6 +11181,13 @@ function ExchangeCard(props) {
|
|
|
11057
11181
|
const complianceHasQuote = solActive ? Boolean(solFlow.plan && solFlow.status !== "quoting") : Boolean(selected && flow.status !== "loading");
|
|
11058
11182
|
const fromUsd = usdOf2(normalizedAmount, prices[from?.symbol ?? ""]);
|
|
11059
11183
|
const toUsd = usdOf2(receive, prices[to?.symbol ?? ""]);
|
|
11184
|
+
const statedFee = solActive ? solFlow.preview : addressed ? selected?.quote : preview.data;
|
|
11185
|
+
const feeNative = solActive ? { symbol: "SOL", decimals: 9 } : { symbol: nativeSymbol(from?.chainId ?? 1, chains), decimals: 18 };
|
|
11186
|
+
const feeLabel = hasQuote ? zeroDeltaFeeLabel(statedFee, feeNative) : "--";
|
|
11187
|
+
const rateImpact = hasQuote ? rateImpactLabel(
|
|
11188
|
+
quoteCostBps({ send: normalizedAmount, receive, fromSymbol: from?.symbol, toSymbol: to?.symbol, fromPrice: prices[from?.symbol ?? ""], toPrice: prices[to?.symbol ?? ""] }),
|
|
11189
|
+
statedFee
|
|
11190
|
+
) : "--";
|
|
11060
11191
|
const flippable = !rampMode && !submitting && Boolean(to && sourceTokens.some((t) => Number(t.chainId) === to.chainId && symbolKey(t.symbol) === to.symbol));
|
|
11061
11192
|
const flip = () => {
|
|
11062
11193
|
if (!flippable) return;
|
|
@@ -11147,7 +11278,8 @@ function ExchangeCard(props) {
|
|
|
11147
11278
|
{ label: "You send", value: `${normalizedAmount} ${fromTicker}` },
|
|
11148
11279
|
{ label: "You receive", value: `${receive} ${toTicker}` },
|
|
11149
11280
|
...rate ? [{ label: "Rate", value: `1 ${fromTicker} = ${rate} ${toTicker}` }] : [],
|
|
11150
|
-
{ label: "
|
|
11281
|
+
{ label: "Rate impact", value: rateImpact },
|
|
11282
|
+
{ label: "Fee", value: feeLabel },
|
|
11151
11283
|
{ label: "Network fee", value: networkFee },
|
|
11152
11284
|
...eta ? [{ label: "Estimated time", value: eta }] : []
|
|
11153
11285
|
],
|
|
@@ -11204,6 +11336,7 @@ function ExchangeCard(props) {
|
|
|
11204
11336
|
balances,
|
|
11205
11337
|
optionStates: isFrom ? void 0 : destinationStates,
|
|
11206
11338
|
loading: !catalogue?.ready,
|
|
11339
|
+
walletMissing: (t) => isSolanaChainId(t.chainId) && !solanaWallet.address,
|
|
11207
11340
|
onBack: () => closeSelector(isFrom),
|
|
11208
11341
|
onPick: (pick) => {
|
|
11209
11342
|
(isFrom ? setFrom : setTo)({ chainId: pick.chainId, symbol: symbolKey(pick.symbol) });
|
|
@@ -11256,8 +11389,8 @@ function ExchangeCard(props) {
|
|
|
11256
11389
|
] })
|
|
11257
11390
|
] });
|
|
11258
11391
|
} else {
|
|
11259
|
-
const payToken = mode === "onramp" ? /* @__PURE__ */ jsxRuntime.jsx(FiatButton, { fiat, onCurrency: setFiatCurrency, disabled: submitting }) : /* @__PURE__ */ jsxRuntime.jsx(TokenButton, { label: "You pay", symbol: from?.symbol ?? null, chainId: from?.chainId ?? null, token: fromToken, disabled: submitting, btnRef: fromTileRef, onClick: () => setView("from") });
|
|
11260
|
-
const receiveToken = mode === "offramp" ? /* @__PURE__ */ jsxRuntime.jsx(FiatButton, { fiat, onCurrency: setFiatCurrency, disabled: submitting }) : /* @__PURE__ */ jsxRuntime.jsx(TokenButton, { label: "You receive", symbol: to?.symbol ?? null, chainId: to?.chainId ?? null, token: toToken, disabled: submitting, btnRef: toTileRef, onClick: () => setView("to") });
|
|
11392
|
+
const payToken = mode === "onramp" ? /* @__PURE__ */ jsxRuntime.jsx(FiatButton, { fiat, onCurrency: setFiatCurrency, disabled: submitting }) : /* @__PURE__ */ jsxRuntime.jsx(TokenButton, { label: "You pay", symbol: from?.symbol ?? null, chainId: from?.chainId ?? null, chainName: nameOf(from?.chainId), token: fromToken, disabled: submitting, btnRef: fromTileRef, onClick: () => setView("from") });
|
|
11393
|
+
const receiveToken = mode === "offramp" ? /* @__PURE__ */ jsxRuntime.jsx(FiatButton, { fiat, onCurrency: setFiatCurrency, disabled: submitting }) : /* @__PURE__ */ jsxRuntime.jsx(TokenButton, { label: "You receive", symbol: to?.symbol ?? null, chainId: to?.chainId ?? null, chainName: nameOf(to?.chainId), token: toToken, disabled: submitting, btnRef: toTileRef, onClick: () => setView("to") });
|
|
11261
11394
|
const cta = solActive ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-cta-wrap", children: [
|
|
11262
11395
|
solanaSteps,
|
|
11263
11396
|
solanaCta,
|
|
@@ -11278,9 +11411,9 @@ function ExchangeCard(props) {
|
|
|
11278
11411
|
body = wide ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11279
11412
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-stack", children: [
|
|
11280
11413
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-ft", children: [
|
|
11281
|
-
mode === "onramp" ? /* @__PURE__ */ jsxRuntime.jsx(FiatTile, { label: "From", currency: fiatCurrency, onCurrency: setFiatCurrency }) : /* @__PURE__ */ jsxRuntime.jsx(TokenTile, { label: "From", pick: from, token: fromToken, disabled: submitting, btnRef: fromTileRef, onClick: () => setView("from") }),
|
|
11414
|
+
mode === "onramp" ? /* @__PURE__ */ jsxRuntime.jsx(FiatTile, { label: "From", currency: fiatCurrency, onCurrency: setFiatCurrency }) : /* @__PURE__ */ jsxRuntime.jsx(TokenTile, { label: "From", pick: from, chainName: nameOf(from?.chainId), token: fromToken, disabled: submitting, btnRef: fromTileRef, onClick: () => setView("from") }),
|
|
11282
11415
|
/* @__PURE__ */ jsxRuntime.jsx(FlipButton, { small: true, onClick: flip, disabled: !flippable }),
|
|
11283
|
-
mode === "offramp" ? /* @__PURE__ */ jsxRuntime.jsx(FiatTile, { label: "To", currency: fiatCurrency, onCurrency: setFiatCurrency }) : /* @__PURE__ */ jsxRuntime.jsx(TokenTile, { label: "To", pick: to, token: toToken, disabled: submitting, btnRef: toTileRef, onClick: () => setView("to") })
|
|
11416
|
+
mode === "offramp" ? /* @__PURE__ */ jsxRuntime.jsx(FiatTile, { label: "To", currency: fiatCurrency, onCurrency: setFiatCurrency }) : /* @__PURE__ */ jsxRuntime.jsx(TokenTile, { label: "To", pick: to, chainName: nameOf(to?.chainId), token: toToken, disabled: submitting, btnRef: toTileRef, onClick: () => setView("to") })
|
|
11284
11417
|
] }),
|
|
11285
11418
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-pane", "data-kind": "send", children: [
|
|
11286
11419
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-pane-top", children: [
|
|
@@ -11379,7 +11512,7 @@ function ExchangeCard(props) {
|
|
|
11379
11512
|
] }),
|
|
11380
11513
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-sub", children: [
|
|
11381
11514
|
"On ",
|
|
11382
|
-
|
|
11515
|
+
nameOf(to?.chainId) ?? `Chain ${to?.chainId}`
|
|
11383
11516
|
] })
|
|
11384
11517
|
] }),
|
|
11385
11518
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-stack", children: [
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeInput, b as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, c as PaymentIslandKind, d as PaymentIslandProps, e as PillOpenAs, S as SettlementMethod, f as StableGenieConfig, g as StableGenieExchange, h as StableGenieExchangeProps, i as StableGeniePay, j as StableGeniePayProps, k as StableGenieProvider, l as StableGenieRwaExchange, m as StableGenieSwap, n as StableGenieSwapProps, o as StableGenieTheme, p as SuccessInfo, q as SupportedAsset, r as darkTheme, s as lightTheme, t as mount, u as resolveTheme } from './mount-
|
|
1
|
+
export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeInput, b as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, c as PaymentIslandKind, d as PaymentIslandProps, e as PillOpenAs, S as SettlementMethod, f as StableGenieConfig, g as StableGenieExchange, h as StableGenieExchangeProps, i as StableGeniePay, j as StableGeniePayProps, k as StableGenieProvider, l as StableGenieRwaExchange, m as StableGenieSwap, n as StableGenieSwapProps, o as StableGenieTheme, p as SuccessInfo, q as SupportedAsset, r as darkTheme, s as lightTheme, t as mount, u as resolveTheme } from './mount-BSXfSSP2.cjs';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { C as Compliance } from './verify-
|
|
4
|
-
export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, L as LaneLimit, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as formatJurisdiction, r as humanizeComplianceReason } from './verify-
|
|
3
|
+
import { C as Compliance } from './verify-BBREdvIM.cjs';
|
|
4
|
+
export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, L as LaneLimit, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as formatJurisdiction, r as humanizeComplianceReason } from './verify-BBREdvIM.cjs';
|
|
5
5
|
export { EXECUTABLE_STABLE_ASSETS, Engine, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, createEngine, symbolKey } from './core/index.cjs';
|
|
6
6
|
|
|
7
7
|
interface SolanaWalletInfo {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeInput, b as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, c as PaymentIslandKind, d as PaymentIslandProps, e as PillOpenAs, S as SettlementMethod, f as StableGenieConfig, g as StableGenieExchange, h as StableGenieExchangeProps, i as StableGeniePay, j as StableGeniePayProps, k as StableGenieProvider, l as StableGenieRwaExchange, m as StableGenieSwap, n as StableGenieSwapProps, o as StableGenieTheme, p as SuccessInfo, q as SupportedAsset, r as darkTheme, s as lightTheme, t as mount, u as resolveTheme } from './mount-
|
|
1
|
+
export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeInput, b as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, c as PaymentIslandKind, d as PaymentIslandProps, e as PillOpenAs, S as SettlementMethod, f as StableGenieConfig, g as StableGenieExchange, h as StableGenieExchangeProps, i as StableGeniePay, j as StableGeniePayProps, k as StableGenieProvider, l as StableGenieRwaExchange, m as StableGenieSwap, n as StableGenieSwapProps, o as StableGenieTheme, p as SuccessInfo, q as SupportedAsset, r as darkTheme, s as lightTheme, t as mount, u as resolveTheme } from './mount-BdxMZC70.js';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { C as Compliance } from './verify-
|
|
4
|
-
export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, L as LaneLimit, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as formatJurisdiction, r as humanizeComplianceReason } from './verify-
|
|
3
|
+
import { C as Compliance } from './verify-BBREdvIM.js';
|
|
4
|
+
export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, L as LaneLimit, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as formatJurisdiction, r as humanizeComplianceReason } from './verify-BBREdvIM.js';
|
|
5
5
|
export { EXECUTABLE_STABLE_ASSETS, Engine, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, createEngine, symbolKey } from './core/index.js';
|
|
6
6
|
|
|
7
7
|
interface SolanaWalletInfo {
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CompliancePanel, PaymentIsland, StableGenieExchange, StableGeniePay, StableGenieProvider, StableGenieRwaExchange, StableGenieSwap, connectSolanaWallet, darkTheme, disconnectSolanaWallet, discoverSolanaWallets, lightTheme, mount, onSolanaAccountChange, resolveTheme, solanaWalletSigner, useSolanaWallet, watchSolanaWallets } from './chunk-
|
|
2
|
-
export { EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, assetClassOf, brokenLaneReason, complianceChecks, complianceControlsLine, complianceView, counterpartTokens, createEngine, destinationAvailability, formatJurisdiction, humanizeComplianceReason, symbolKey } from './chunk-
|
|
1
|
+
export { CompliancePanel, PaymentIsland, StableGenieExchange, StableGeniePay, StableGenieProvider, StableGenieRwaExchange, StableGenieSwap, connectSolanaWallet, darkTheme, disconnectSolanaWallet, discoverSolanaWallets, lightTheme, mount, onSolanaAccountChange, resolveTheme, solanaWalletSigner, useSolanaWallet, watchSolanaWallets } from './chunk-7V3XP5D6.js';
|
|
2
|
+
export { EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, assetClassOf, brokenLaneReason, complianceChecks, complianceControlsLine, complianceView, counterpartTokens, createEngine, destinationAvailability, formatJurisdiction, humanizeComplianceReason, symbolKey } from './chunk-7FBWRHP2.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-
|
|
3
|
+
import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-BBREdvIM.cjs';
|
|
4
4
|
|
|
5
5
|
interface Eip1193Provider {
|
|
6
6
|
request(args: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-
|
|
3
|
+
import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-BBREdvIM.js';
|
|
4
4
|
|
|
5
5
|
interface Eip1193Provider {
|
|
6
6
|
request(args: {
|