@fluent.xyz/connect 0.4.2 → 0.5.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/INTEGRATION.md +232 -96
- package/README.md +76 -20
- package/dist/fluent-connect.css +1 -1
- package/dist/index.d.ts +305 -56
- package/dist/index.js +1362 -1041
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as viem from 'viem';
|
|
|
2
2
|
import { Chain, PublicClient, Transport, Address, createPublicClient, Hex, Abi, Hash, TransactionReceipt, SignableMessage, TypedData, TypedDataDefinition, WalletClient } from 'viem';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ReactNode, RefObject, AnchorHTMLAttributes, SVGProps } from 'react';
|
|
5
|
-
import * as
|
|
5
|
+
import * as web from '@privy-io/react-auth';
|
|
6
6
|
import { CallType } from '@zerodev/permissions/policies';
|
|
7
7
|
export { CallType, ParamCondition } from '@zerodev/permissions/policies';
|
|
8
8
|
import * as _zerodev_sdk from '@zerodev/sdk';
|
|
@@ -1129,16 +1129,14 @@ type FluentInitializeConfig = {
|
|
|
1129
1129
|
clientId?: string;
|
|
1130
1130
|
/**
|
|
1131
1131
|
* Optional display hint for anonymous/basic mode.
|
|
1132
|
-
* Fluent
|
|
1132
|
+
* The Fluent Dashboard remains the source of truth for registered app metadata.
|
|
1133
1133
|
*/
|
|
1134
1134
|
appName?: string;
|
|
1135
|
-
authorizeUrl?: string;
|
|
1136
1135
|
scopes?: string[];
|
|
1137
1136
|
source?: string;
|
|
1138
1137
|
campaign?: string;
|
|
1139
1138
|
storage?: StorageLike;
|
|
1140
1139
|
origin?: string;
|
|
1141
|
-
redirectUri?: string;
|
|
1142
1140
|
};
|
|
1143
1141
|
type FluentAppIdentity = {
|
|
1144
1142
|
mode: "origin" | "registered";
|
|
@@ -1166,20 +1164,13 @@ type FluentConnectionStatus = {
|
|
|
1166
1164
|
app: FluentAppIdentity;
|
|
1167
1165
|
session?: FluentSession;
|
|
1168
1166
|
};
|
|
1169
|
-
type FluentConnectOptions = {
|
|
1170
|
-
popup?: WindowOpenLike;
|
|
1171
|
-
state?: string;
|
|
1172
|
-
};
|
|
1173
1167
|
type StorageLike = Pick<Storage, "getItem" | "setItem" | "removeItem">;
|
|
1174
|
-
type WindowOpenLike = (url?: string | URL, target?: string, features?: string) => unknown;
|
|
1175
1168
|
declare class FluentConnectSDK {
|
|
1176
1169
|
private config;
|
|
1177
1170
|
private app;
|
|
1178
1171
|
private session;
|
|
1179
1172
|
constructor(config: FluentInitializeConfig);
|
|
1180
1173
|
status(): FluentConnectionStatus;
|
|
1181
|
-
buildAuthorizeUrl(state?: string): URL;
|
|
1182
|
-
connect(options?: FluentConnectOptions): URL;
|
|
1183
1174
|
setSession(session: Omit<FluentSession, "app"> & {
|
|
1184
1175
|
app?: FluentAppIdentity;
|
|
1185
1176
|
}): FluentSession;
|
|
@@ -1337,7 +1328,7 @@ declare function getFluentGasPaymentValueTier(ethValueWei: bigint): FluentGasPay
|
|
|
1337
1328
|
declare const FLUENT_WIDGET_SESSION_STORAGE_KEY = "fluent:widget:session:v1";
|
|
1338
1329
|
/**
|
|
1339
1330
|
* Tokens the user added by hand, in the states where no Fluent token can exist:
|
|
1340
|
-
*
|
|
1331
|
+
* the not-connected state. Everywhere
|
|
1341
1332
|
* `getAuthToken()` resolves, the service holds the list per person and this key
|
|
1342
1333
|
* is not read (ADR 0004).
|
|
1343
1334
|
*
|
|
@@ -1380,12 +1371,91 @@ type FluentWidgetSession = FluentSession & {
|
|
|
1380
1371
|
expiresAt?: number;
|
|
1381
1372
|
metadata?: Record<string, string>;
|
|
1382
1373
|
};
|
|
1383
|
-
type FluentWidgetAuthMode = "hosted" | "direct";
|
|
1384
1374
|
/**
|
|
1385
|
-
* A sign-in method the
|
|
1386
|
-
*
|
|
1375
|
+
* A sign-in method the sign-in dialog can offer beside X. X is not on this list:
|
|
1376
|
+
* it is always offered and cannot be switched off.
|
|
1387
1377
|
*/
|
|
1388
1378
|
type FluentWidgetAuthMethod = "google" | "email" | "passkey";
|
|
1379
|
+
/**
|
|
1380
|
+
* Which value in `FluentWidgetConfig` was refused, for a host that branches rather than reads
|
|
1381
|
+
* the message.
|
|
1382
|
+
*/
|
|
1383
|
+
type FluentWidgetConfigErrorCode = "invalid_fee_source" | "invalid_receipt_source" | "invalid_chain_check_before_sign";
|
|
1384
|
+
/**
|
|
1385
|
+
* A value in `FluentWidgetConfig` the widget refuses to start with.
|
|
1386
|
+
*
|
|
1387
|
+
* Thrown by `resolveFluentWidgetConfig`, which every `<FluentWidget>` runs on its first
|
|
1388
|
+
* render, so it surfaces at startup where the integrator is looking rather than at the first
|
|
1389
|
+
* send. The message names the field and the values it accepts; `code` is what to branch on.
|
|
1390
|
+
*
|
|
1391
|
+
* @example
|
|
1392
|
+
* ```ts
|
|
1393
|
+
* try {
|
|
1394
|
+
* resolveFluentWidgetConfig(config);
|
|
1395
|
+
* } catch (error) {
|
|
1396
|
+
* if (error instanceof FluentWidgetConfigError && error.code === "invalid_fee_source") {
|
|
1397
|
+
* // fix execution.feeSource
|
|
1398
|
+
* }
|
|
1399
|
+
* }
|
|
1400
|
+
* ```
|
|
1401
|
+
*/
|
|
1402
|
+
declare class FluentWidgetConfigError extends Error {
|
|
1403
|
+
readonly code: FluentWidgetConfigErrorCode;
|
|
1404
|
+
constructor(code: FluentWidgetConfigErrorCode, message: string);
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* Where a smart-account send reads a value it could ask either side for: the widget chain's
|
|
1408
|
+
* own RPC, or the ZeroDev bundler.
|
|
1409
|
+
*
|
|
1410
|
+
* @experimental May change or be removed in a minor release while the defaults are measured;
|
|
1411
|
+
* the defaults are the recommended setting.
|
|
1412
|
+
*/
|
|
1413
|
+
type FluentWidgetExecutionSource = "chain" | "bundler";
|
|
1414
|
+
/**
|
|
1415
|
+
* `FluentWidgetConfig.execution`, every field optional.
|
|
1416
|
+
*
|
|
1417
|
+
* @experimental May change or be removed in a minor release while the defaults are measured;
|
|
1418
|
+
* the defaults are the recommended setting.
|
|
1419
|
+
*/
|
|
1420
|
+
type FluentWidgetExecution = {
|
|
1421
|
+
/**
|
|
1422
|
+
* Where the fees of a user operation come from. `chain` reads the widget chain's
|
|
1423
|
+
* `eth_gasPrice` and caps `maxFeePerGas` 10 % above it; `bundler` takes ZeroDev's
|
|
1424
|
+
* `zd_getUserOperationGasPrice` quote unchanged. Defaults to `chain`.
|
|
1425
|
+
*
|
|
1426
|
+
* @experimental May change or be removed in a minor release while the defaults are
|
|
1427
|
+
* measured; the defaults are the recommended setting.
|
|
1428
|
+
*/
|
|
1429
|
+
feeSource?: FluentWidgetExecutionSource;
|
|
1430
|
+
/**
|
|
1431
|
+
* Where inclusion is read from. `chain` polls the EntryPoint's `UserOperationEvent` with
|
|
1432
|
+
* `eth_getLogs`; `bundler` polls `eth_getUserOperationReceipt`. Defaults to `chain`.
|
|
1433
|
+
*
|
|
1434
|
+
* @experimental May change or be removed in a minor release while the defaults are
|
|
1435
|
+
* measured; the defaults are the recommended setting.
|
|
1436
|
+
*/
|
|
1437
|
+
receiptSource?: FluentWidgetExecutionSource;
|
|
1438
|
+
/**
|
|
1439
|
+
* Whether the Signer's chain is read before every signature. The widget gives Privy its own
|
|
1440
|
+
* chain as the only one, and the kernel checks the chain once when it is created, so the
|
|
1441
|
+
* repeat costs a provider round trip per signature and switches nothing. Defaults to `false`.
|
|
1442
|
+
*
|
|
1443
|
+
* @experimental May change or be removed in a minor release while the defaults are
|
|
1444
|
+
* measured; the defaults are the recommended setting.
|
|
1445
|
+
*/
|
|
1446
|
+
chainCheckBeforeSign?: boolean;
|
|
1447
|
+
};
|
|
1448
|
+
/**
|
|
1449
|
+
* `FluentWidgetExecution` with its defaults applied.
|
|
1450
|
+
*
|
|
1451
|
+
* @experimental May change or be removed in a minor release while the defaults are measured;
|
|
1452
|
+
* the defaults are the recommended setting.
|
|
1453
|
+
*/
|
|
1454
|
+
type ResolvedFluentWidgetExecution = {
|
|
1455
|
+
feeSource: FluentWidgetExecutionSource;
|
|
1456
|
+
receiptSource: FluentWidgetExecutionSource;
|
|
1457
|
+
chainCheckBeforeSign: boolean;
|
|
1458
|
+
};
|
|
1389
1459
|
type FluentWidgetConfig = {
|
|
1390
1460
|
/** The App's id (`app_<32 hex>`) — the same string the Fluent Dashboard shows and the token's `aud` carries. */
|
|
1391
1461
|
appId: string;
|
|
@@ -1401,23 +1471,16 @@ type FluentWidgetConfig = {
|
|
|
1401
1471
|
partnerId?: never;
|
|
1402
1472
|
network?: FluentWidgetNetwork;
|
|
1403
1473
|
appName?: string;
|
|
1404
|
-
/**
|
|
1405
|
-
* `hosted` opens Fluent authorize in a popup (default).
|
|
1406
|
-
* `direct` opens Privy login modal in the host app — requires the host origin
|
|
1407
|
-
* to be registered in the Fluent Privy Allowed Origins.
|
|
1408
|
-
*/
|
|
1409
|
-
authMode?: FluentWidgetAuthMode;
|
|
1410
1474
|
/**
|
|
1411
1475
|
* HTTPS callback for the widget's Privy OAuth flows. Capacitor apps must use a
|
|
1412
1476
|
* Universal Link registered in Privy and handle its return in the host app.
|
|
1413
|
-
* Omit to keep Privy's current-page redirect.
|
|
1414
|
-
* its own redirect and is not configured by this option.
|
|
1477
|
+
* Omit to keep Privy's current-page redirect.
|
|
1415
1478
|
*/
|
|
1416
1479
|
customOAuthRedirectUrl?: string;
|
|
1417
1480
|
/**
|
|
1418
|
-
* Sign-in methods the
|
|
1419
|
-
*
|
|
1420
|
-
*
|
|
1481
|
+
* Sign-in methods the sign-in dialog offers beside X, in the order given.
|
|
1482
|
+
* Defaults to `["google", "email", "passkey"]` — all of them; name a shorter
|
|
1483
|
+
* set to drop the rest, or `[]` to leave X as the only Fluent method.
|
|
1421
1484
|
* Sign-in with X is always offered and is not a value here.
|
|
1422
1485
|
*
|
|
1423
1486
|
* A method still has to be enabled on the shared Privy app — listing it here only
|
|
@@ -1437,6 +1500,25 @@ type FluentWidgetConfig = {
|
|
|
1437
1500
|
sponsorship?: "auto" | "never";
|
|
1438
1501
|
ethValueByToken?: FluentGasPaymentEthRates;
|
|
1439
1502
|
};
|
|
1503
|
+
/**
|
|
1504
|
+
* How a smart-account send is executed. Every field defaults to the fast path, which falls
|
|
1505
|
+
* back to ZeroDev on its own: set a field to switch that one answer back to ZeroDev for good.
|
|
1506
|
+
*
|
|
1507
|
+
* @experimental May change or be removed in a minor release while the defaults are
|
|
1508
|
+
* measured; the defaults are the recommended setting.
|
|
1509
|
+
*/
|
|
1510
|
+
execution?: FluentWidgetExecution;
|
|
1511
|
+
quickSign?: {
|
|
1512
|
+
/**
|
|
1513
|
+
* Call targets Quick sign may execute without the review. With a list set, a batch
|
|
1514
|
+
* operation runs silently only when every call's `to` is on it; a single call to any
|
|
1515
|
+
* other address shows the review and the signer prompt, even with Quick sign on. An
|
|
1516
|
+
* empty list is honoured and stops Quick sign from silencing anything; omit the
|
|
1517
|
+
* option to keep it covering every address. Compared case-insensitively.
|
|
1518
|
+
* `signMessage` / `signTypedData` have no call target and are not scoped by this.
|
|
1519
|
+
*/
|
|
1520
|
+
whitelistAddresses?: readonly string[];
|
|
1521
|
+
};
|
|
1440
1522
|
/**
|
|
1441
1523
|
* `false` drops the Reputation tab from the account drawer — and with it the
|
|
1442
1524
|
* whole tab strip, since Home is then the only tab. The families request is
|
|
@@ -1458,8 +1540,10 @@ type FluentWidgetConfig = {
|
|
|
1458
1540
|
/**
|
|
1459
1541
|
* `getAuthToken()` reuses a token until this many seconds before its `exp`, then fetches a
|
|
1460
1542
|
* fresh one (the renewal-offset pattern: MSAL's `tokenRenewalOffsetSeconds`, Go oauth2's
|
|
1461
|
-
* `expiryDelta`). Default 30. Set 0 to
|
|
1462
|
-
*
|
|
1543
|
+
* `expiryDelta`). Default 30. Set 0 to drop the margin entirely: a token is then reused
|
|
1544
|
+
* until `exp` itself, which is not the same as always fetching — it is the case the margin
|
|
1545
|
+
* exists for, a token handed out a moment before it expires and rejected by the backend it
|
|
1546
|
+
* is sent to.
|
|
1463
1547
|
*/
|
|
1464
1548
|
authTokenRenewalOffsetSeconds?: number;
|
|
1465
1549
|
assets?: Partial<typeof FLUENT_CONNECT_DEFAULT_ASSETS>;
|
|
@@ -1482,11 +1566,9 @@ type ResolvedFluentWidgetConfig = {
|
|
|
1482
1566
|
privyClientId: string;
|
|
1483
1567
|
network: FluentWidgetNetwork;
|
|
1484
1568
|
appName: string;
|
|
1485
|
-
authMode: FluentWidgetAuthMode;
|
|
1486
1569
|
customOAuthRedirectUrl: string | undefined;
|
|
1487
1570
|
/** What the dialog shows beside X, defaults applied. */
|
|
1488
1571
|
authMethods: FluentWidgetAuthMethod[];
|
|
1489
|
-
authorizeUrl: string;
|
|
1490
1572
|
faucetEndpoint: string;
|
|
1491
1573
|
eventsEndpoint: string;
|
|
1492
1574
|
analyticsHost: string;
|
|
@@ -1508,6 +1590,11 @@ type ResolvedFluentWidgetConfig = {
|
|
|
1508
1590
|
sponsorship: "auto" | "never";
|
|
1509
1591
|
ethValueByToken: FluentGasPaymentEthRates | undefined;
|
|
1510
1592
|
};
|
|
1593
|
+
execution: ResolvedFluentWidgetExecution;
|
|
1594
|
+
quickSign: {
|
|
1595
|
+
/** Lowercased and deduplicated; `undefined` leaves Quick sign covering every address. */
|
|
1596
|
+
whitelistAddresses: readonly Address[] | undefined;
|
|
1597
|
+
};
|
|
1511
1598
|
reputationEnabled: boolean;
|
|
1512
1599
|
scopes: string[];
|
|
1513
1600
|
source: string;
|
|
@@ -1583,7 +1670,7 @@ type FluentZeroDevKernel = {
|
|
|
1583
1670
|
zeroDevRpcUrl: string;
|
|
1584
1671
|
chain: Chain;
|
|
1585
1672
|
signerMode: FluentZeroDevSignerMode;
|
|
1586
|
-
signerSource: "privy" | "
|
|
1673
|
+
signerSource: "privy" | "session";
|
|
1587
1674
|
};
|
|
1588
1675
|
type FluentZeroDevPermissionSession = {
|
|
1589
1676
|
serializedPermissionAccount: string;
|
|
@@ -1600,8 +1687,6 @@ type FluentZeroDevPermissionCall = {
|
|
|
1600
1687
|
callType?: CallType;
|
|
1601
1688
|
};
|
|
1602
1689
|
declare function useFluentZeroDevAccount(hookOptions?: {
|
|
1603
|
-
authorizeUrl?: string;
|
|
1604
|
-
allowHostedSigner?: boolean;
|
|
1605
1690
|
/** App id in the sponsorship path. Sponsorship is off unless both this and the URL are set. */
|
|
1606
1691
|
appId?: string;
|
|
1607
1692
|
sponsorshipUrl?: string;
|
|
@@ -1614,6 +1699,11 @@ declare function useFluentZeroDevAccount(hookOptions?: {
|
|
|
1614
1699
|
};
|
|
1615
1700
|
sessionSignerAddress?: Address;
|
|
1616
1701
|
sessionSmartAccountAddress?: Address;
|
|
1702
|
+
/**
|
|
1703
|
+
* Where a send reads its fees and its receipt, and whether the Signer's chain is read before
|
|
1704
|
+
* every signature. Omitted, the defaults of `FLUENT_CONNECT_DEFAULT_EXECUTION` apply.
|
|
1705
|
+
*/
|
|
1706
|
+
execution?: ResolvedFluentWidgetExecution;
|
|
1617
1707
|
/** Prefer over Privy's login when the host needs to remount Privy first. */
|
|
1618
1708
|
login?: () => void;
|
|
1619
1709
|
}): {
|
|
@@ -1624,7 +1714,7 @@ declare function useFluentZeroDevAccount(hookOptions?: {
|
|
|
1624
1714
|
privyReady: boolean;
|
|
1625
1715
|
privyAuthenticated: boolean;
|
|
1626
1716
|
embeddedWalletCount: number;
|
|
1627
|
-
authenticate: (options?:
|
|
1717
|
+
authenticate: (options?: web.LoginModalOptions | React.MouseEvent<any, any>) => void;
|
|
1628
1718
|
kernel: FluentZeroDevKernel | null;
|
|
1629
1719
|
signerModesReady: FluentZeroDevSignerMode[];
|
|
1630
1720
|
error: Error | null;
|
|
@@ -1643,6 +1733,8 @@ declare function useFluentZeroDevAccount(hookOptions?: {
|
|
|
1643
1733
|
sponsored: boolean;
|
|
1644
1734
|
sponsorshipReason?: FluentSponsorshipReason;
|
|
1645
1735
|
paymaster?: Address;
|
|
1736
|
+
/** Where this send's milliseconds went. Absent only when the measurement itself failed. */
|
|
1737
|
+
timing?: FluentExecuteTiming;
|
|
1646
1738
|
}>;
|
|
1647
1739
|
refresh: () => Promise<FluentZeroDevKernel | null>;
|
|
1648
1740
|
};
|
|
@@ -1751,11 +1843,34 @@ type FluentSignApi = {
|
|
|
1751
1843
|
signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(typedData: TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
|
|
1752
1844
|
};
|
|
1753
1845
|
|
|
1754
|
-
|
|
1755
|
-
|
|
1846
|
+
type FixedAccountGas = {
|
|
1847
|
+
/** Whole-batch execution budget, including any Gas token approval. Positive uint128. */
|
|
1848
|
+
callGasLimit: bigint;
|
|
1849
|
+
/** Account validation and deployment budget. Positive uint128. */
|
|
1850
|
+
verificationGasLimit: bigint;
|
|
1851
|
+
/** Calldata and bundler overhead budget. Positive uint256. */
|
|
1852
|
+
preVerificationGas: bigint;
|
|
1853
|
+
};
|
|
1854
|
+
type FixedPaymasterGas = {
|
|
1855
|
+
/** Required with a paymaster; its validation budget, a positive uint128. */
|
|
1856
|
+
paymasterVerificationGasLimit?: bigint;
|
|
1857
|
+
/** Required with a paymaster; its post-operation budget, a nonnegative uint128. */
|
|
1858
|
+
paymasterPostOpGasLimit?: bigint;
|
|
1859
|
+
};
|
|
1860
|
+
/**
|
|
1861
|
+
* Gas policy for a Fluent ID batch. Estimation is enabled unless `skipEstimation` is true.
|
|
1862
|
+
* Skipping requires explicit account limits and, when a paymaster is used, paymaster limits.
|
|
1863
|
+
*/
|
|
1864
|
+
type FluentUserOperationGas = (FixedAccountGas & FixedPaymasterGas & {
|
|
1865
|
+
/** Skip the account gas hook and bundler gas estimation. Defaults to false. */
|
|
1866
|
+
skipEstimation: true;
|
|
1867
|
+
callGasBuffer?: never;
|
|
1868
|
+
}) | {
|
|
1869
|
+
skipEstimation?: false;
|
|
1756
1870
|
callGasLimit: bigint;
|
|
1757
1871
|
callGasBuffer?: never;
|
|
1758
1872
|
} | {
|
|
1873
|
+
skipEstimation?: false;
|
|
1759
1874
|
callGasLimit?: never;
|
|
1760
1875
|
callGasBuffer: {
|
|
1761
1876
|
/** Extra percent of the bundler estimate, rounded up. Must be a nonnegative safe integer. */
|
|
@@ -1764,6 +1879,16 @@ type FluentUserOperationGas = {
|
|
|
1764
1879
|
fixed?: bigint;
|
|
1765
1880
|
};
|
|
1766
1881
|
};
|
|
1882
|
+
/** Reasons explicit gas preparation can fail before signing. */
|
|
1883
|
+
type FluentUserOperationGasErrorCode = "invalid_policy" | "paymaster_gas_mismatch";
|
|
1884
|
+
/**
|
|
1885
|
+
* An invalid skip-estimation policy or paymaster authorization for different gas limits.
|
|
1886
|
+
* `code` identifies the failure; `message` names the option or gas field to correct.
|
|
1887
|
+
*/
|
|
1888
|
+
declare class FluentUserOperationGasError extends Error {
|
|
1889
|
+
readonly code: FluentUserOperationGasErrorCode;
|
|
1890
|
+
constructor(code: FluentUserOperationGasErrorCode, message: string);
|
|
1891
|
+
}
|
|
1767
1892
|
|
|
1768
1893
|
type FluentBatchCallInput = {
|
|
1769
1894
|
id?: string;
|
|
@@ -1809,6 +1934,79 @@ type FluentWidgetAccount = {
|
|
|
1809
1934
|
/** What the active account can do — lets hosts adapt UI without branching on `type`. */
|
|
1810
1935
|
capabilities: FluentAccountCapabilities;
|
|
1811
1936
|
};
|
|
1937
|
+
/**
|
|
1938
|
+
* Absolute instants behind `FluentExecuteTiming`, kept so its signed estimates can be
|
|
1939
|
+
* re-checked rather than believed. Epoch milliseconds (`Date.now()`), because the only other
|
|
1940
|
+
* clock in the arithmetic — the including block's `timestamp` — is a wall clock too.
|
|
1941
|
+
*/
|
|
1942
|
+
type FluentExecuteTimingInstants = {
|
|
1943
|
+
/** When the first submission attempt of this send began. */
|
|
1944
|
+
submittedAtEpochMs: number;
|
|
1945
|
+
/** When the bundler accepted the operation that settled. */
|
|
1946
|
+
broadcastedAtEpochMs: number;
|
|
1947
|
+
/** When that operation's receipt was in hand. */
|
|
1948
|
+
receivedAtEpochMs: number;
|
|
1949
|
+
/**
|
|
1950
|
+
* The including block's `timestamp`, in milliseconds. Absent exactly when `inclusionMs` and
|
|
1951
|
+
* `detectMs` are absent: the block could not be read.
|
|
1952
|
+
*/
|
|
1953
|
+
blockTimestampEpochMs?: number;
|
|
1954
|
+
/** How many operations were submitted; more than one means a retry or an own-gas fallback. */
|
|
1955
|
+
attempts: number;
|
|
1956
|
+
};
|
|
1957
|
+
/**
|
|
1958
|
+
* Where one send's milliseconds went, stage by stage.
|
|
1959
|
+
*
|
|
1960
|
+
* Two clocks, and the difference decides how these numbers may be read. `prepareMs`,
|
|
1961
|
+
* `signMs`, `broadcastMs`, `retryMs` and `totalMs` are direct monotonic measurements on the
|
|
1962
|
+
* client (`performance.now()`). `inclusionMs` and `detectMs` are *signed estimates* across the
|
|
1963
|
+
* client's clock and the chain's: `block.timestamp` has one-second resolution and no relation
|
|
1964
|
+
* to the browser's clock, so either may legitimately be negative when it is small, and neither
|
|
1965
|
+
* is clamped — a clamp would turn a known skew into a silent zero. `instants` keeps the inputs,
|
|
1966
|
+
* so the subtraction can be redone by whoever doubts it.
|
|
1967
|
+
*
|
|
1968
|
+
* `totalMs` is measured, not summed: it runs from the start of the first submission to the
|
|
1969
|
+
* instant the receipt was in hand, and excludes both the kernel and authentication setup before
|
|
1970
|
+
* the send and the block read after it. It does not equal the sum of the stages and must not be
|
|
1971
|
+
* displayed as if it did.
|
|
1972
|
+
*
|
|
1973
|
+
* Collected for every send, whatever `debugLogging` is set to — the numbers are the answer to
|
|
1974
|
+
* "where did the four seconds go", which is a question a host asks in production. A failure
|
|
1975
|
+
* inside the measuring code costs the stages it could not establish, never the send.
|
|
1976
|
+
*/
|
|
1977
|
+
type FluentExecuteTiming = {
|
|
1978
|
+
/**
|
|
1979
|
+
* Building the UserOperation — nonce, gas estimate, paymaster — up to the signature request.
|
|
1980
|
+
* Absent when the clock could not be read at that boundary: every stage here is absent rather
|
|
1981
|
+
* than approximated, because a stage silently widened to cover its neighbours is worse than a
|
|
1982
|
+
* stage the display can mark as unmeasured.
|
|
1983
|
+
*/
|
|
1984
|
+
prepareMs?: number;
|
|
1985
|
+
/** Producing the signature. Absent when the settled attempt never got that far. */
|
|
1986
|
+
signMs?: number;
|
|
1987
|
+
/** Handing the signed operation to the bundler. Absent when signing never finished. */
|
|
1988
|
+
broadcastMs?: number;
|
|
1989
|
+
/**
|
|
1990
|
+
* Bundler acceptance to the including block's timestamp: bundling plus block time. Signed
|
|
1991
|
+
* estimate; absent when the including block could not be read.
|
|
1992
|
+
*/
|
|
1993
|
+
inclusionMs?: number;
|
|
1994
|
+
/**
|
|
1995
|
+
* The including block's timestamp to the instant this client held the receipt: how long the
|
|
1996
|
+
* inclusion took to notice. Signed estimate; absent when the including block could not be read.
|
|
1997
|
+
*/
|
|
1998
|
+
detectMs?: number;
|
|
1999
|
+
/**
|
|
2000
|
+
* Time spent on submissions that did not settle — a rejected sponsorship bearer, a refused
|
|
2001
|
+
* sponsorship falling back to own gas — and on the token exchange between them. It belongs to
|
|
2002
|
+
* no stage, is counted inside `totalMs`, and is `0` for a send that submitted once.
|
|
2003
|
+
*/
|
|
2004
|
+
retryMs: number;
|
|
2005
|
+
/** First submission to receipt in hand. Measured directly; never a sum of the stages. */
|
|
2006
|
+
totalMs: number;
|
|
2007
|
+
/** The raw instants the signed estimates above were computed from. */
|
|
2008
|
+
instants: FluentExecuteTimingInstants;
|
|
2009
|
+
};
|
|
1812
2010
|
/** Result of executing a batch operation. */
|
|
1813
2011
|
type FluentExecuteResult = {
|
|
1814
2012
|
/** Primary transaction hash — the final/target call (e.g. deposit/withdraw). */
|
|
@@ -1835,6 +2033,12 @@ type FluentExecuteResult = {
|
|
|
1835
2033
|
* `UserOperationEvent` could be decoded — i.e. `sponsored` is a guess, say so.
|
|
1836
2034
|
*/
|
|
1837
2035
|
paymaster?: Address;
|
|
2036
|
+
/**
|
|
2037
|
+
* Where this send's milliseconds went. Smart-account path only: an external wallet performs
|
|
2038
|
+
* its prompt, its signing and its broadcast behind one `sendTransaction` await, so EIP-1193
|
|
2039
|
+
* exposes no truthful instant to put a boundary on.
|
|
2040
|
+
*/
|
|
2041
|
+
timing?: FluentExecuteTiming;
|
|
1838
2042
|
};
|
|
1839
2043
|
type FluentWidgetGasPayment = {
|
|
1840
2044
|
symbol: FluentGasTokenSymbol;
|
|
@@ -1861,6 +2065,14 @@ type FluentBatchOperationExecutor = {
|
|
|
1861
2065
|
defaultGasPayment?: FluentWidgetGasPayment;
|
|
1862
2066
|
/** Native-gas policy inherited from widget config; each execution may override it. */
|
|
1863
2067
|
defaultSponsorship?: "auto" | "never";
|
|
2068
|
+
/**
|
|
2069
|
+
* Call targets Quick sign may skip the review for, compared case-insensitively.
|
|
2070
|
+
* Set, it caps every `"session"` confirmation — the widget default and an explicit
|
|
2071
|
+
* per-execute option alike, because it is the host's guardrail and a per-call option
|
|
2072
|
+
* must not be able to lift it: an operation with any call outside the list reviews
|
|
2073
|
+
* and signs as `"always"`. Undefined leaves Quick sign covering every address.
|
|
2074
|
+
*/
|
|
2075
|
+
quickSignWhitelist?: readonly Address[];
|
|
1864
2076
|
confirm?: (operation: FluentBatchOperationReview) => Promise<void>;
|
|
1865
2077
|
/**
|
|
1866
2078
|
* `readyAccount` is whatever `ensureReady` resolved with for this execution, and is
|
|
@@ -1908,7 +2120,7 @@ type FluentGasPayment = {
|
|
|
1908
2120
|
type FluentBatchOperationExecuteOptions = {
|
|
1909
2121
|
confirmation?: FluentBatchConfirmationMode;
|
|
1910
2122
|
gasPayment?: FluentGasPayment;
|
|
1911
|
-
/**
|
|
2123
|
+
/** Fluent ID gas limits, estimation opt-out or headroom. Ignored for External wallet sends. */
|
|
1912
2124
|
userOperationGas?: FluentUserOperationGas;
|
|
1913
2125
|
};
|
|
1914
2126
|
type FluentBatchOperationReview = {
|
|
@@ -1934,6 +2146,14 @@ type FluentBatchApi = FluentPermissionApi & FluentSignApi & {
|
|
|
1934
2146
|
};
|
|
1935
2147
|
declare function createFluentBatchOp(input: FluentBatchOperationInput, executor?: FluentBatchOperationExecutor | null): FluentBatchOperation;
|
|
1936
2148
|
|
|
2149
|
+
/**
|
|
2150
|
+
* Privy runtime supplied by a host using a native SDK. Its Provider owns session
|
|
2151
|
+
* restoration, login and wallet RPC; web hosts keep the normal React SDK.
|
|
2152
|
+
* Keep one stable adapter per runtime. Changing its Provider remounts descendants
|
|
2153
|
+
* so React hooks from different SDKs never share a component lifetime.
|
|
2154
|
+
*/
|
|
2155
|
+
type FluentPrivyAdapter = Pick<typeof web, "PrivyProvider" | "Captcha" | "usePrivy" | "useSignMessage" | "useSignTypedData" | "useWallets" | "useIdentityToken" | "useUser" | "useLinkAccount" | "useLoginWithSiwe" | "useModalStatus" | "useCreateWallet" | "useLoginWithEmail" | "useLoginWithOAuth" | "useLoginWithPasskey" | "useLinkWithPasskey">;
|
|
2156
|
+
|
|
1937
2157
|
type FluentWalletChoice = {
|
|
1938
2158
|
id: string;
|
|
1939
2159
|
name: string;
|
|
@@ -1977,7 +2197,7 @@ type FluentExternalWalletState = {
|
|
|
1977
2197
|
*/
|
|
1978
2198
|
type FluentWidgetStatus = "restoring" | "connecting" | "connected" | "disconnected";
|
|
1979
2199
|
|
|
1980
|
-
type FluentAuthErrorCode = "unknown_app" | "app_not_auth_enabled" | "origin_not_allowed" | "origin_missing" | "bad_request" | "nonce_unknown" | "nonce_used" | "nonce_expired" | "app_mismatch" | "invalid_signature" | "signature_prefix_rejected" | "address_already_linked" | "invalid_privy_token" | "no_embedded_wallet" | "invalid_refresh_token" | "refresh_token_reused" | "rate_limited" | "internal" | "
|
|
2200
|
+
type FluentAuthErrorCode = "unknown_app" | "app_not_auth_enabled" | "origin_not_allowed" | "origin_missing" | "bad_request" | "nonce_unknown" | "nonce_used" | "nonce_expired" | "app_mismatch" | "invalid_signature" | "signature_prefix_rejected" | "address_already_linked" | "invalid_privy_token" | "no_embedded_wallet" | "invalid_refresh_token" | "refresh_token_reused" | "rate_limited" | "internal" | "not_connected" | "root_signer_required" | "privy_token_missing" | "origin_mismatch" | "request_failed" | "not_authenticated" | "user_rejected" | "linked_to_another_user" | "link_failed";
|
|
1981
2201
|
declare class FluentAuthError extends Error {
|
|
1982
2202
|
readonly code: FluentAuthErrorCode;
|
|
1983
2203
|
readonly status?: number | undefined;
|
|
@@ -2013,16 +2233,17 @@ type FluentLinkXResult = {
|
|
|
2013
2233
|
type FluentWidgetRenderContext = {
|
|
2014
2234
|
session: FluentWidgetSession | null;
|
|
2015
2235
|
connectedAddress?: string;
|
|
2236
|
+
/** Privy's X avatar used by the account tile; absent for an External wallet or `forceDefault`. */
|
|
2237
|
+
userAvatarUrl?: string;
|
|
2016
2238
|
wallet: FluentExternalWalletState | null;
|
|
2017
2239
|
widget: FluentBatchApi;
|
|
2018
2240
|
openConnect: () => void;
|
|
2019
2241
|
openAccount: () => void;
|
|
2020
2242
|
/**
|
|
2021
2243
|
* Tear down the current session without going through the widget's account
|
|
2022
|
-
* menu — the same teardown that menu's "Disconnect" runs
|
|
2023
|
-
*
|
|
2024
|
-
*
|
|
2025
|
-
* resetting its own state.
|
|
2244
|
+
* menu — the same teardown that menu's "Disconnect" runs. The session, the
|
|
2245
|
+
* stored identity token and any external wallet connection are cleared before
|
|
2246
|
+
* this resolves, so a host can await it before resetting its own state.
|
|
2026
2247
|
*
|
|
2027
2248
|
* It also covers ending the Fluent session at the service — revoking the refresh
|
|
2028
2249
|
* family so the 30 days stop here — including for a `getAuthToken()` that was still
|
|
@@ -2061,8 +2282,7 @@ type FluentWidgetRenderContext = {
|
|
|
2061
2282
|
* alike. The wallet signs once, when the session opens; the renewals that follow ask it for
|
|
2062
2283
|
* nothing. A new signature is needed only when the session's 30-day refresh family expires,
|
|
2063
2284
|
* when the service rejects the refresh credential, or when it was never stored (the user
|
|
2064
|
-
* disconnected, cleared site data, or opened another browser).
|
|
2065
|
-
* direct mode and throws `FluentAuthError` (`code: "hosted_not_supported"`) in hosted mode.
|
|
2285
|
+
* disconnected, cleared site data, or opened another browser).
|
|
2066
2286
|
* External wallets: EOAs and deployed smart-contract wallets sign in; a not-yet-deployed
|
|
2067
2287
|
* smart account cannot (no ERC-6492).
|
|
2068
2288
|
*/
|
|
@@ -2093,20 +2313,19 @@ type FluentWidgetRenderContext = {
|
|
|
2093
2313
|
*
|
|
2094
2314
|
* Rejects with `FluentAuthError`: `user_rejected` (the user said no at X, or declined the
|
|
2095
2315
|
* SIWE signature), `linked_to_another_user` (that X account belongs to another Fluent user),
|
|
2096
|
-
* `not_authenticated` (no Fluent ID or external wallet connected), `bad_request
|
|
2097
|
-
* `link_failed` (everything else)
|
|
2098
|
-
*
|
|
2099
|
-
* message under `link_failed`.
|
|
2316
|
+
* `not_authenticated` (no Fluent ID or external wallet connected), `bad_request` and
|
|
2317
|
+
* `link_failed` (everything else). No other code reaches the caller: a refusal from under
|
|
2318
|
+
* the call keeps its message under `link_failed`.
|
|
2100
2319
|
*/
|
|
2101
2320
|
linkX: () => Promise<FluentLinkXResult>;
|
|
2102
|
-
/** The resolved auth mode: `"hosted"` unless the config says `"direct"`. */
|
|
2103
|
-
authMode: FluentWidgetAuthMode;
|
|
2104
2321
|
};
|
|
2105
2322
|
type FluentWidgetConnectButtonRenderContext = {
|
|
2106
2323
|
connected: boolean;
|
|
2107
2324
|
/** True while a direct-auth smart account is being prepared after sign-in. */
|
|
2108
2325
|
pending: boolean;
|
|
2109
2326
|
addressLabel?: string;
|
|
2327
|
+
/** Privy's X avatar used by the account tile; absent for an External wallet or `forceDefault`. */
|
|
2328
|
+
userAvatarUrl?: string;
|
|
2110
2329
|
onClick: () => void;
|
|
2111
2330
|
openConnect: () => void;
|
|
2112
2331
|
openAccount: () => void;
|
|
@@ -2115,6 +2334,8 @@ type FluentWidgetConnectButtonRenderContext = {
|
|
|
2115
2334
|
type FluentWidgetProps = {
|
|
2116
2335
|
wallet?: FluentExternalWalletState | null;
|
|
2117
2336
|
config: FluentWidgetConfig;
|
|
2337
|
+
/** Optional native Privy SDK bridge; requires direct auth. */
|
|
2338
|
+
privyAdapter?: FluentPrivyAdapter;
|
|
2118
2339
|
mode?: "home" | "page";
|
|
2119
2340
|
/**
|
|
2120
2341
|
* Show the default connect/account control.
|
|
@@ -2177,7 +2398,7 @@ type FluentUserTokenAddResult = {
|
|
|
2177
2398
|
* Asynchronous because the truth may live on the service: while the widget
|
|
2178
2399
|
* holds a Fluent token the backing store is `createFluentBackendUserTokenStore`
|
|
2179
2400
|
* and the list follows the person between Apps and browsers; where no Fluent
|
|
2180
|
-
* token can exist (
|
|
2401
|
+
* token can exist (the not-connected state)
|
|
2181
2402
|
* it is `createFluentUserTokenStore` over this browser's localStorage. See
|
|
2182
2403
|
* `docs/adr/0004-user-settings-live-on-the-service.md`.
|
|
2183
2404
|
*/
|
|
@@ -2478,7 +2699,6 @@ type FluentIframeRpcRequest = {
|
|
|
2478
2699
|
* injected so the handler is pure: it never reads the DOM or React state on its own.
|
|
2479
2700
|
*/
|
|
2480
2701
|
type FluentIframeRpcExecutor = {
|
|
2481
|
-
authMode: FluentWidgetAuthMode;
|
|
2482
2702
|
/** Read at call time: the account changes while the bridge lives. */
|
|
2483
2703
|
account: () => FluentWidgetAccount;
|
|
2484
2704
|
chainId: number;
|
|
@@ -2566,8 +2786,7 @@ type UseFluentIframeBridgeOptions = {
|
|
|
2566
2786
|
* Lets a page embedded in `iframeRef` use the account signed in here, over the
|
|
2567
2787
|
* JSON-RPC `postMessage` protocol `@ledgerhq/iframe-provider` speaks. The bridge lives
|
|
2568
2788
|
* while the component is mounted; the bridge states the chain and account before its
|
|
2569
|
-
* first reply, and sign-in and sign-out reach the iframe as `accountsChanged`.
|
|
2570
|
-
* the signing and sending calls reject the way `signMessage` does.
|
|
2789
|
+
* first reply, and sign-in and sign-out reach the iframe as `accountsChanged`.
|
|
2571
2790
|
*/
|
|
2572
2791
|
declare function useFluentIframeBridge(iframeRef: RefObject<FluentIframeElement | null>, { allowedOrigin }: UseFluentIframeBridgeOptions): void;
|
|
2573
2792
|
|
|
@@ -2943,8 +3162,38 @@ interface WalletMenuActionCardProps {
|
|
|
2943
3162
|
/** True where the App's paymaster may cover a native-gas operation. */
|
|
2944
3163
|
sponsorshipAvailable: boolean;
|
|
2945
3164
|
};
|
|
3165
|
+
/**
|
|
3166
|
+
* Registers a passkey on the signed-in Fluent ID, so the next sign-in is the
|
|
3167
|
+
* dialog's "Continue with passkey" instead of the X round trip. Absent where
|
|
3168
|
+
* there is no Privy session on this page to register it on — hosted mode, an
|
|
3169
|
+
* External wallet, the preview harnesses — and Settings then has no Security
|
|
3170
|
+
* section at all: an action that can only fail is not offered.
|
|
3171
|
+
*/
|
|
3172
|
+
onAddPasskey?: () => Promise<void>;
|
|
3173
|
+
/**
|
|
3174
|
+
* The passkeys the signed-in user already has, listed above the Add row so the
|
|
3175
|
+
* state reads before the action. What Privy's record says, not the browser's:
|
|
3176
|
+
* a credential deleted from a password manager stays listed until it is
|
|
3177
|
+
* removed here — WebAuthn gives the server no word of a local deletion.
|
|
3178
|
+
*/
|
|
3179
|
+
passkeys?: readonly FluentSettingsPasskey[];
|
|
3180
|
+
/**
|
|
3181
|
+
* Removes one passkey from the account by its credential id — Privy's record
|
|
3182
|
+
* of it; the key in the person's password manager is theirs to delete. Absent
|
|
3183
|
+
* hides the per-row remove button, nothing else.
|
|
3184
|
+
*/
|
|
3185
|
+
onRemovePasskey?: (credentialId: string) => Promise<void>;
|
|
2946
3186
|
}
|
|
2947
|
-
|
|
3187
|
+
/** One passkey of the signed-in user, as the Security section lists it. */
|
|
3188
|
+
type FluentSettingsPasskey = {
|
|
3189
|
+
/** Privy's credential id — the handle `onRemovePasskey` takes. */
|
|
3190
|
+
credentialId: string;
|
|
3191
|
+
/** Where it lives, as Privy recorded it: "iCloud Keychain", "Chrome on Mac OS X", … */
|
|
3192
|
+
label: string;
|
|
3193
|
+
/** The day it was added, already formatted for display; absent when Privy has none. */
|
|
3194
|
+
addedOn?: string;
|
|
3195
|
+
};
|
|
3196
|
+
declare function WalletMenuActionCard({ track, session, smartAccountAddress, faucetBusy, onFaucet, config, tokens, gasPaymentToken, onGasPaymentTokenChange, silentSigningEnabled, onSilentSigningChange, onDisconnect, onConnectWithX, tab, onTabChange, panel, onPanelChange, connectedAddress, accountKind, externalWalletAddress, balanceRevisionCounter, userTokenStore, settingsPending, settingsError, tokenListError, onSendToken, pendingTransfers, onMintUsdnr, mintUsdnrBusy, onRevealAccount, gasContext, onAddPasskey, passkeys, onRemovePasskey, }: WalletMenuActionCardProps): React.JSX.Element | null;
|
|
2948
3197
|
|
|
2949
3198
|
declare const buttonVariants: (props?: ({
|
|
2950
3199
|
variant?: "default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
@@ -2995,4 +3244,4 @@ type AccountAvatarProps = {
|
|
|
2995
3244
|
*/
|
|
2996
3245
|
declare function AccountAvatar({ userLogoUrl, defaultLogoUrl, className }: AccountAvatarProps): React.JSX.Element;
|
|
2997
3246
|
|
|
2998
|
-
export { AccountAvatar, type AccountAvatarProps, type AppDefinition, type BackendUserTokenStore, type BridgeAddresses, Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, FLUENT_CONNECT_DEFAULT_ASSETS, FLUENT_GAS_PAYMENT_DEFAULT_ETH_RATES, FLUENT_USER_TOKEN_LIMIT, FLUENT_WIDGET_DEFAULT_GAS_TOKEN, FLUENT_WIDGET_SESSION_STORAGE_KEY, FLUENT_WIDGET_USER_TOKENS_IMPORT_MARKER_KEY, FLUENT_WIDGET_USER_TOKENS_STORAGE_KEY, FLUENT_ZERODEV_ERC20_PAYMASTER_QUERY, FLUENT_ZERODEV_PAYMASTER_DEMO_RECIPIENT, type FluentAccountCapabilities, FluentAccountDrawer, type FluentAccountType, FluentAuthError, type FluentAuthErrorCode, type FluentBatchApi, type FluentBatchCallInput, type FluentBatchConfirmationMode, type FluentBatchOperation, type FluentBatchOperationExecuteOptions, type FluentBatchOperationExecutor, type FluentBatchOperationInput, type FluentBatchOperationReview, type FluentCallPermission, type FluentChainDefinition, type FluentClient, type FluentClientConfig, type FluentEncodedBatchCall, type FluentExecuteResult, type FluentExternalWalletState, type FluentFamilies, type FluentFamiliesClient, type FluentFamiliesClientConfig, type FluentFamily, type FluentFamilyTier, type FluentFamilyType, type FluentGasPayment, type FluentGasPaymentEthRates, type FluentGasPaymentSelection, type FluentGasPaymentValueTier, type FluentGasTokenSymbol, type FluentIframeBridge, type FluentIframeBridgeOptions, type FluentIframeElement, FluentIframeRpcError, type FluentIframeRpcExecutor, type FluentIframeRpcHandler, type FluentIframeRpcRequest, type FluentLinkXResult, type FluentPermissionApi, type FluentPermissionArgConstraint, type FluentPermissionArgs, type FluentPermissionBatchPolicy, type FluentPermissionBatchPolicyInput, type FluentPermissionCallInput, type FluentPermissionCallPolicy, type FluentPermissionClient, type FluentPermissionClientConfig, type FluentPermissionGrant, type FluentPermissionGrantRequest, type FluentPermissionPolicy, type FluentPermissionPolicyBuilders, type FluentPermissionPreview, type FluentPermissionSession, type FluentPermissionSessionExecutor, type FluentPermissionSessionInput, type FluentPermissionStatus, FluentPortalContainerProvider, type FluentProfile, FluentReviewRejectedError, type FluentSession, type FluentSettingsClient, FluentSettingsError, type FluentSettingsErrorCode, type FluentSignApi, type FluentSignatureReview, type FluentSpendPeriod, type FluentSpendPermission, FluentSponsorshipFallbackError, type FluentSponsorshipReason, type FluentTokenBalance, type FluentTokenDefinition, type FluentTokenTransferOutcome, type FluentTokenTransferRequest, type FluentTokenTransferSender, type FluentTransferAmount, type FluentTransferFee, type FluentTransferRecipient, type FluentTypedDataRequest, type FluentUserOperationGas, type FluentUserSettings, type FluentUserSettingsPatch, type FluentUserTokenAddResult, type FluentWalletChoice, FluentWidget, type FluentWidgetAccount, type FluentWidgetAuthMethod, type
|
|
3247
|
+
export { AccountAvatar, type AccountAvatarProps, type AppDefinition, type BackendUserTokenStore, type BridgeAddresses, Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, FLUENT_CONNECT_DEFAULT_ASSETS, FLUENT_GAS_PAYMENT_DEFAULT_ETH_RATES, FLUENT_USER_TOKEN_LIMIT, FLUENT_WIDGET_DEFAULT_GAS_TOKEN, FLUENT_WIDGET_SESSION_STORAGE_KEY, FLUENT_WIDGET_USER_TOKENS_IMPORT_MARKER_KEY, FLUENT_WIDGET_USER_TOKENS_STORAGE_KEY, FLUENT_ZERODEV_ERC20_PAYMASTER_QUERY, FLUENT_ZERODEV_PAYMASTER_DEMO_RECIPIENT, type FluentAccountCapabilities, FluentAccountDrawer, type FluentAccountType, FluentAuthError, type FluentAuthErrorCode, type FluentBatchApi, type FluentBatchCallInput, type FluentBatchConfirmationMode, type FluentBatchOperation, type FluentBatchOperationExecuteOptions, type FluentBatchOperationExecutor, type FluentBatchOperationInput, type FluentBatchOperationReview, type FluentCallPermission, type FluentChainDefinition, type FluentClient, type FluentClientConfig, type FluentEncodedBatchCall, type FluentExecuteResult, type FluentExecuteTiming, type FluentExecuteTimingInstants, type FluentExternalWalletState, type FluentFamilies, type FluentFamiliesClient, type FluentFamiliesClientConfig, type FluentFamily, type FluentFamilyTier, type FluentFamilyType, type FluentGasPayment, type FluentGasPaymentEthRates, type FluentGasPaymentSelection, type FluentGasPaymentValueTier, type FluentGasTokenSymbol, type FluentIframeBridge, type FluentIframeBridgeOptions, type FluentIframeElement, FluentIframeRpcError, type FluentIframeRpcExecutor, type FluentIframeRpcHandler, type FluentIframeRpcRequest, type FluentLinkXResult, type FluentPermissionApi, type FluentPermissionArgConstraint, type FluentPermissionArgs, type FluentPermissionBatchPolicy, type FluentPermissionBatchPolicyInput, type FluentPermissionCallInput, type FluentPermissionCallPolicy, type FluentPermissionClient, type FluentPermissionClientConfig, type FluentPermissionGrant, type FluentPermissionGrantRequest, type FluentPermissionPolicy, type FluentPermissionPolicyBuilders, type FluentPermissionPreview, type FluentPermissionSession, type FluentPermissionSessionExecutor, type FluentPermissionSessionInput, type FluentPermissionStatus, FluentPortalContainerProvider, type FluentPrivyAdapter, type FluentProfile, FluentReviewRejectedError, type FluentSession, type FluentSettingsClient, FluentSettingsError, type FluentSettingsErrorCode, type FluentSignApi, type FluentSignatureReview, type FluentSpendPeriod, type FluentSpendPermission, FluentSponsorshipFallbackError, type FluentSponsorshipReason, type FluentTokenBalance, type FluentTokenDefinition, type FluentTokenTransferOutcome, type FluentTokenTransferRequest, type FluentTokenTransferSender, type FluentTransferAmount, type FluentTransferFee, type FluentTransferRecipient, type FluentTypedDataRequest, type FluentUserOperationGas, FluentUserOperationGasError, type FluentUserOperationGasErrorCode, type FluentUserSettings, type FluentUserSettingsPatch, type FluentUserTokenAddResult, type FluentWalletChoice, FluentWidget, type FluentWidgetAccount, type FluentWidgetAuthMethod, type FluentWidgetConfig, FluentWidgetConfigError, type FluentWidgetConfigErrorCode, FluentWidgetConnectButton, type FluentWidgetConnectButtonProps, type FluentWidgetConnectButtonRenderContext, type FluentWidgetExecution, type FluentWidgetExecutionSource, type FluentWidgetExecutionStatus, type FluentWidgetGasPayment, type FluentWidgetNetwork, FluentWidgetNetworkProvider, type FluentWidgetProps, type FluentWidgetRenderContext, type FluentWidgetSession, type FluentWidgetStatus, type FluentXAccount, type FluentZeroDevErc20PaymasterToken, type FluentZeroDevErc20PaymasterTokenInfo, type FluentZeroDevKernel, type FluentZeroDevPaymasterDemoResult, type FluentZeroDevPaymasterKernel, type FluentZeroDevPermissionCall, type FluentZeroDevPermissionSession, type FluentZeroDevSignerMode, type FluentZeroDevSponsorshipTokenSource, Icon, type IconName, type L1ChainDefinition, Label, type ResolvedFluentWidgetConfig, type ResolvedFluentWidgetExecution, Separator, Switch, type UseFluentIframeBridgeOptions, type UserTokenStore, WIDGET_STYLE_SCOPE, WalletMenuActionCard, type ZerodevIntegration, buildFluentTransferCall, buttonVariants, checkFluentTransferFee, clearPrivyRecentLoginMethod, createFluentBackendUserTokenStore, createFluentBatchOp, createFluentClient, createFluentFamiliesClient, createFluentIframeBridge, createFluentIframeRpcHandler, createFluentPermissionApi, createFluentPermissionClient, createFluentPermissionPolicyBuilders, createFluentPermissionSession, createFluentSettingsClient, createFluentSponsorshipRpcUrl, createFluentUserTokenStore, createFluentZeroDevErc20Paymaster, createFluentZeroDevErc20PaymasterApprovalCall, createFluentZeroDevErc20PaymasterClient, createFluentZeroDevErc20PaymasterRpcUrl, createFluentZeroDevPermissionSession, createFluentZeroDevRpcUrl, createFluentZeroDevSponsoredPaymaster, deriveFluentGasEthRates, findFluentSymbolCollisions, fluent, apps as fluentApps, fluentBridgeAbi, fluent$1 as fluentChain, fluentChains, fluentDefinitionToViemChain, integrations as fluentIntegrations, l1Chains as fluentL1Chains, fluentMainnet, fluentMainnetTokenDefaults, fluentTestnet, fluentTestnetTokenDefaults, fluentTokenIdentity, fluentTransferAbi, fluentZeroDevChainIds, getApp, getContractAddressFromChain, getFluentChain, getFluentChainByChainId, getFluentChainForNetwork, getFluentDefaultWidgetDisplayTokens, getFluentDefaultWidgetGasTokens, getFluentExplorerBaseUrl, getFluentGasPaymentEthValue, getFluentGasPaymentTokens, getFluentGasPaymentValueTier, getFluentGasTokenAddress, getFluentTokenDefaults, getFluentTokenDefaultsForNetwork, getFluentZeroDevErc20PaymasterTokens, getL1Chain, getL1ForFluentChain, getZeroDevRpcUrl, getZerodevIntegration, isFaucetNetwork, isFluentDefaultToken, isFluentNativeToken, isFluentZeroDevChain, l1DefinitionToViemChain, mergeFluentDisplayTokens, normalizeFluentWidgetNetwork, parseFluentTransferAmount, parseFluentTransferRecipient, readFluentTokenBalances, readFluentTokenMetadata, registryVersion, resolveBridgeAddresses, resolveDefaultGasToken, resolveFluentWidgetNetworkFromEnv, resolveFluentZeroDevErc20PaymasterToken, resolveL1Definition, selectFluentGasPaymentToken, sendFluentZeroDevErc20PaymasterDemo, sortFluentGasTokens, useFluentIframeBridge, useFluentUserTokens, useFluentWidget, useFluentWidgetNetwork, useFluentZeroDevAccount, useLinkX, useWidget, withFluentSignaturePrompt };
|