@fluent.xyz/connect 0.1.3 → 0.1.4
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/index.d.ts +58 -62
- package/dist/index.js +14 -33
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1093,48 +1093,6 @@ declare const fluent: {
|
|
|
1093
1093
|
initialize: typeof initialize;
|
|
1094
1094
|
};
|
|
1095
1095
|
|
|
1096
|
-
declare const FLUENT_GAS_PAYMENT_PRIORITY: readonly ["USDnr", "BLEND", "ETH"];
|
|
1097
|
-
type FluentGasPaymentSymbol = typeof FLUENT_GAS_PAYMENT_PRIORITY[number];
|
|
1098
|
-
type FluentGasPaymentValueTier = "green" | "yellow" | "red" | "neutral" | "unknown";
|
|
1099
|
-
type FluentGasPaymentEthRates = Partial<Record<FluentGasPaymentSymbol, string>>;
|
|
1100
|
-
declare const FLUENT_GAS_PAYMENT_DEFAULT_ETH_RATES: {
|
|
1101
|
-
readonly ETH: "1";
|
|
1102
|
-
};
|
|
1103
|
-
type FluentGasPaymentSelection = {
|
|
1104
|
-
status: "ready";
|
|
1105
|
-
symbol: FluentGasPaymentSymbol;
|
|
1106
|
-
balance: FluentTokenBalance;
|
|
1107
|
-
} | {
|
|
1108
|
-
status: "bridge-required";
|
|
1109
|
-
symbol: null;
|
|
1110
|
-
balance: null;
|
|
1111
|
-
} | {
|
|
1112
|
-
status: "loading";
|
|
1113
|
-
symbol: null;
|
|
1114
|
-
balance: null;
|
|
1115
|
-
};
|
|
1116
|
-
declare function selectFluentGasPaymentToken(params: {
|
|
1117
|
-
balances: readonly FluentTokenBalance[];
|
|
1118
|
-
loading?: boolean;
|
|
1119
|
-
}): FluentGasPaymentSelection;
|
|
1120
|
-
declare function getFluentGasPaymentTokens(tokens: readonly FluentTokenDefinition[]): FluentTokenDefinition[];
|
|
1121
|
-
declare function getFluentGasPaymentEthValue(params: {
|
|
1122
|
-
balance: FluentTokenBalance | undefined;
|
|
1123
|
-
ethValueByToken?: FluentGasPaymentEthRates;
|
|
1124
|
-
}): {
|
|
1125
|
-
ethValueWei: null;
|
|
1126
|
-
formatted: null;
|
|
1127
|
-
tier: "unknown";
|
|
1128
|
-
} | {
|
|
1129
|
-
ethValueWei: bigint;
|
|
1130
|
-
formatted: string;
|
|
1131
|
-
tier: FluentGasPaymentValueTier;
|
|
1132
|
-
};
|
|
1133
|
-
declare function getFluentGasPaymentValueTier(ethValueWei: bigint): FluentGasPaymentValueTier;
|
|
1134
|
-
declare function formatFluentGasTokenBalance(balance: Pick<FluentTokenBalance, "raw" | "decimals" | "formatted">, maximumFractionDigits?: number): string | null;
|
|
1135
|
-
/** de-DE separators: `.` thousands, `,` decimals (same as portfolio total). */
|
|
1136
|
-
declare function formatFluentLocaleAmount(value: string | number, maximumFractionDigits?: number): string;
|
|
1137
|
-
|
|
1138
1096
|
type FluentWidgetNetwork = "devnet" | "testnet" | "mainnet";
|
|
1139
1097
|
declare function isFaucetNetwork(network: FluentWidgetNetwork): network is "testnet" | "devnet";
|
|
1140
1098
|
declare function getFluentChainForNetwork(network: FluentWidgetNetwork): Chain;
|
|
@@ -1198,6 +1156,54 @@ declare function getFluentTokenDefaults(network: FluentWidgetNetwork): {
|
|
|
1198
1156
|
declare function getFluentDefaultGasTokens(network: FluentWidgetNetwork): readonly FluentTokenDefinition[];
|
|
1199
1157
|
declare function getFluentExplorerBaseUrl(network: FluentWidgetNetwork): string | undefined;
|
|
1200
1158
|
|
|
1159
|
+
declare const FLUENT_GAS_PAYMENT_PRIORITY: readonly ["USDnr", "BLEND", "ETH"];
|
|
1160
|
+
type FluentGasPaymentSymbol = typeof FLUENT_GAS_PAYMENT_PRIORITY[number];
|
|
1161
|
+
/**
|
|
1162
|
+
* Resolve a gas token symbol to its ERC-20 paymaster address on `network`.
|
|
1163
|
+
* Returns `undefined` for native `ETH` (no paymaster) and for a symbol without a
|
|
1164
|
+
* configured address on the network.
|
|
1165
|
+
*/
|
|
1166
|
+
declare function getFluentGasTokenAddress(symbol: FluentGasPaymentSymbol, network: FluentWidgetNetwork): Address | undefined;
|
|
1167
|
+
type FluentGasPaymentValueTier = "green" | "yellow" | "red" | "neutral" | "unknown";
|
|
1168
|
+
type FluentGasPaymentEthRates = Partial<Record<FluentGasPaymentSymbol, string>>;
|
|
1169
|
+
declare const FLUENT_GAS_PAYMENT_DEFAULT_ETH_RATES: {
|
|
1170
|
+
readonly ETH: "1";
|
|
1171
|
+
};
|
|
1172
|
+
type FluentGasPaymentSelection = {
|
|
1173
|
+
status: "ready";
|
|
1174
|
+
symbol: FluentGasPaymentSymbol;
|
|
1175
|
+
balance: FluentTokenBalance;
|
|
1176
|
+
} | {
|
|
1177
|
+
status: "bridge-required";
|
|
1178
|
+
symbol: null;
|
|
1179
|
+
balance: null;
|
|
1180
|
+
} | {
|
|
1181
|
+
status: "loading";
|
|
1182
|
+
symbol: null;
|
|
1183
|
+
balance: null;
|
|
1184
|
+
};
|
|
1185
|
+
declare function selectFluentGasPaymentToken(params: {
|
|
1186
|
+
balances: readonly FluentTokenBalance[];
|
|
1187
|
+
loading?: boolean;
|
|
1188
|
+
}): FluentGasPaymentSelection;
|
|
1189
|
+
declare function getFluentGasPaymentTokens(tokens: readonly FluentTokenDefinition[]): FluentTokenDefinition[];
|
|
1190
|
+
declare function getFluentGasPaymentEthValue(params: {
|
|
1191
|
+
balance: FluentTokenBalance | undefined;
|
|
1192
|
+
ethValueByToken?: FluentGasPaymentEthRates;
|
|
1193
|
+
}): {
|
|
1194
|
+
ethValueWei: null;
|
|
1195
|
+
formatted: null;
|
|
1196
|
+
tier: "unknown";
|
|
1197
|
+
} | {
|
|
1198
|
+
ethValueWei: bigint;
|
|
1199
|
+
formatted: string;
|
|
1200
|
+
tier: FluentGasPaymentValueTier;
|
|
1201
|
+
};
|
|
1202
|
+
declare function getFluentGasPaymentValueTier(ethValueWei: bigint): FluentGasPaymentValueTier;
|
|
1203
|
+
declare function formatFluentGasTokenBalance(balance: Pick<FluentTokenBalance, "raw" | "decimals" | "formatted">, maximumFractionDigits?: number): string | null;
|
|
1204
|
+
/** de-DE separators: `.` thousands, `,` decimals (same as portfolio total). */
|
|
1205
|
+
declare function formatFluentLocaleAmount(value: string | number, maximumFractionDigits?: number): string;
|
|
1206
|
+
|
|
1201
1207
|
declare const FLUENT_WIDGET_SESSION_STORAGE_KEY = "fluent:widget:session:v1";
|
|
1202
1208
|
|
|
1203
1209
|
declare const FLUENT_CONNECT_DEFAULT_ASSETS: {
|
|
@@ -1507,11 +1513,14 @@ type FluentBatchOperationExecutor = {
|
|
|
1507
1513
|
sendCalls: (calls: FluentEncodedBatchCall[], options: FluentBatchOperationExecuteOptions) => Promise<FluentExecuteResult>;
|
|
1508
1514
|
};
|
|
1509
1515
|
type FluentBatchConfirmationMode = "always" | "session";
|
|
1510
|
-
type
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1516
|
+
type FluentGasPayment = {
|
|
1517
|
+
/**
|
|
1518
|
+
* Gas token symbol. The widget resolves the ERC-20 address for the active
|
|
1519
|
+
* network internally — callers never pass (or risk mistyping) an address.
|
|
1520
|
+
* `"ETH"` means native gas (no paymaster).
|
|
1521
|
+
*/
|
|
1522
|
+
symbol: FluentGasPaymentSymbol;
|
|
1523
|
+
} & ({
|
|
1515
1524
|
includeApproval: true;
|
|
1516
1525
|
approveAmount: bigint;
|
|
1517
1526
|
} | {
|
|
@@ -1646,20 +1655,7 @@ declare function getFluentZeroDevErc20PaymasterTokens(network?: FluentWidgetNetw
|
|
|
1646
1655
|
readonly symbol: "USDnr";
|
|
1647
1656
|
};
|
|
1648
1657
|
};
|
|
1649
|
-
|
|
1650
|
-
declare const FLUENT_ZERODEV_ERC20_PAYMASTER_TOKENS: {
|
|
1651
|
-
readonly BLEND: {
|
|
1652
|
-
readonly address: "0x83Fed707A8dDDC2535aE591CF19fB6C91D542D8E";
|
|
1653
|
-
readonly decimals: 18;
|
|
1654
|
-
readonly symbol: "BLEND";
|
|
1655
|
-
};
|
|
1656
|
-
readonly USDNR: {
|
|
1657
|
-
readonly address: "0x092AE7564C6611a114C20C6df766B5B35A52334A";
|
|
1658
|
-
readonly decimals: 18;
|
|
1659
|
-
readonly symbol: "USDnr";
|
|
1660
|
-
};
|
|
1661
|
-
};
|
|
1662
|
-
type FluentZeroDevErc20PaymasterTokenKey = keyof typeof FLUENT_ZERODEV_ERC20_PAYMASTER_TOKENS;
|
|
1658
|
+
type FluentZeroDevErc20PaymasterTokenKey = keyof ReturnType<typeof getFluentZeroDevErc20PaymasterTokens>;
|
|
1663
1659
|
type FluentZeroDevErc20PaymasterToken = FluentZeroDevErc20PaymasterTokenKey | Address | {
|
|
1664
1660
|
address: Address;
|
|
1665
1661
|
symbol?: string;
|
|
@@ -1823,4 +1819,4 @@ declare function Icon({ name, className, ...props }: {
|
|
|
1823
1819
|
name: IconName;
|
|
1824
1820
|
} & SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
1825
1821
|
|
|
1826
|
-
export { type AppDefinition, type BridgeAddresses, Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, FLUENT_CONNECT_DEFAULT_ASSETS, FLUENT_GAS_PAYMENT_DEFAULT_ETH_RATES, FLUENT_GAS_PAYMENT_PRIORITY, FLUENT_WIDGET_SESSION_STORAGE_KEY, FLUENT_ZERODEV_ERC20_PAYMASTER_QUERY,
|
|
1822
|
+
export { type AppDefinition, type BridgeAddresses, Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, FLUENT_CONNECT_DEFAULT_ASSETS, FLUENT_GAS_PAYMENT_DEFAULT_ETH_RATES, FLUENT_GAS_PAYMENT_PRIORITY, FLUENT_WIDGET_SESSION_STORAGE_KEY, FLUENT_ZERODEV_ERC20_PAYMASTER_QUERY, FLUENT_ZERODEV_PAYMASTER_DEMO_RECIPIENT, type FluentAccountCapabilities, type FluentAccountType, 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 FluentGasPaymentSymbol, type FluentGasPaymentValueTier, 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, type FluentSession, type FluentSpendPeriod, type FluentSpendPermission, type FluentTokenBalance, type FluentTokenDefinition, FluentWidget, type FluentWidgetAccount, type FluentWidgetAuthMode, type FluentWidgetConfig, FluentWidgetConnectButton, type FluentWidgetConnectButtonProps, type FluentWidgetConnectButtonRenderContext, type FluentWidgetExecutionStatus, type FluentWidgetGasPayment, type FluentWidgetNetwork, FluentWidgetNetworkProvider, type FluentWidgetProps, type FluentWidgetRenderContext, type FluentWidgetSession, type FluentZeroDevErc20PaymasterToken, type FluentZeroDevErc20PaymasterTokenKey, type FluentZeroDevKernel, type FluentZeroDevPaymasterDemoResult, type FluentZeroDevPaymasterKernel, type FluentZeroDevPermissionCall, type FluentZeroDevPermissionSession, type FluentZeroDevSignerMode, Icon, type IconName, type L1ChainDefinition, type ResolvedFluentWidgetConfig, Separator, type ZerodevIntegration, buttonVariants, clearPrivyRecentLoginMethod, createFluentBatchOp, createFluentClient, createFluentFamiliesClient, createFluentPermissionApi, createFluentPermissionClient, createFluentPermissionPolicyBuilders, createFluentPermissionSession, createFluentZeroDevErc20Paymaster, createFluentZeroDevErc20PaymasterApprovalCall, createFluentZeroDevErc20PaymasterClient, createFluentZeroDevErc20PaymasterRpcUrl, createFluentZeroDevPermissionSession, createFluentZeroDevRpcUrl, fluent, apps as fluentApps, fluentBridgeAbi, fluent$1 as fluentChain, fluentChains, fluentDefinitionToViemChain, fluentDevnet, fluentDevnetTokenDefaults, fluentDevnetWidgetTokens, integrations as fluentIntegrations, l1Chains as fluentL1Chains, fluentMainnet, fluentMainnetTokenDefaults, fluentMainnetWidgetTokens, fluentTestnet, fluentTestnetTokenDefaults, fluentTestnetWidgetTokens, fluentZeroDevChainIds, formatFluentGasTokenBalance, formatFluentLocaleAmount, getApp, getContractAddressFromChain, getFluentChain, getFluentChainByChainId, getFluentChainForNetwork, getFluentDefaultGasTokens, getFluentDefaultWidgetGasTokens, getFluentExplorerBaseUrl, getFluentGasPaymentEthValue, getFluentGasPaymentTokens, getFluentGasPaymentValueTier, getFluentGasTokenAddress, getFluentTokenDefaults, getFluentTokenDefaultsForNetwork, getFluentZeroDevErc20PaymasterTokens, getL1Chain, getL1ForFluentChain, getZeroDevRpcUrl, getZerodevIntegration, isFaucetNetwork, isFluentZeroDevChain, l1DefinitionToViemChain, normalizeFluentWidgetNetwork, readFluentTokenBalances, registryVersion, resolveBridgeAddresses, resolveFluentWidgetNetworkFromEnv, resolveFluentZeroDevErc20PaymasterToken, resolveL1Definition, selectFluentGasPaymentToken, sendFluentZeroDevErc20PaymasterDemo, useFluentWidget, useFluentWidgetNetwork, useFluentZeroDevAccount, useWidget };
|
package/dist/index.js
CHANGED
|
@@ -5054,8 +5054,6 @@ var FLUENT_CONNECT_PRIVY_APP_ID = "cmi7li7v901yojv0dmtfuf0v4";
|
|
|
5054
5054
|
var FLUENT_CONNECT_REOWN_PROJECT_ID = "fbf7578f67b4a34e5101051131829ac0";
|
|
5055
5055
|
var FLUENT_CONNECT_ZERODEV_PROJECT_ID = "893acc63-da39-4b57-8789-5784ed7f1969";
|
|
5056
5056
|
var FLUENT_CONNECT_POSTHOG_TOKEN = "phc_xr3QqFLEnKbDvmD5qsKvXuyaAdSkSKvcFGUH5VeDTLGD";
|
|
5057
|
-
var FLUENT_TESTNET_BLEND_TOKEN_ADDRESS = "0x83Fed707A8dDDC2535aE591CF19fB6C91D542D8E";
|
|
5058
|
-
var FLUENT_TESTNET_USDNR_TOKEN_ADDRESS = "0x092AE7564C6611a114C20C6df766B5B35A52334A";
|
|
5059
5057
|
var FLUENT_CONNECT_TESTNET_PUBLIC_API_URL = "https://api.fluent-connect.dev.gblend.xyz/api/v1";
|
|
5060
5058
|
var FLUENT_CONNECT_MAINNET_PUBLIC_API_URL = "https://fluent-connect.api.fluent.xyz/api/v1";
|
|
5061
5059
|
var FLUENT_CONNECT_TESTNET_ANALYTICS_HOST = "https://api.fluent-connect.dev.gblend.xyz/ingest";
|
|
@@ -5315,10 +5313,7 @@ function createFluentBatchOp(input, executor) {
|
|
|
5315
5313
|
if (!activeExecutor) {
|
|
5316
5314
|
throw new Error("A Fluent batch operation requires a Fluent execution executor");
|
|
5317
5315
|
}
|
|
5318
|
-
const fallbackGasPayment = activeExecutor.defaultGasPayment?.token ? {
|
|
5319
|
-
token: activeExecutor.defaultGasPayment.token,
|
|
5320
|
-
symbol: activeExecutor.defaultGasPayment.symbol
|
|
5321
|
-
} : void 0;
|
|
5316
|
+
const fallbackGasPayment = activeExecutor.defaultGasPayment?.token ? { symbol: activeExecutor.defaultGasPayment.symbol } : void 0;
|
|
5322
5317
|
const executionOptions = {
|
|
5323
5318
|
...options,
|
|
5324
5319
|
confirmation: options?.confirmation ?? activeExecutor.defaultConfirmation ?? "always",
|
|
@@ -5373,6 +5368,11 @@ function encodeBatchCall(call) {
|
|
|
5373
5368
|
};
|
|
5374
5369
|
}
|
|
5375
5370
|
var FLUENT_GAS_PAYMENT_PRIORITY = ["USDnr", "BLEND", "ETH"];
|
|
5371
|
+
function getFluentGasTokenAddress(symbol, network) {
|
|
5372
|
+
if (symbol === "ETH") return void 0;
|
|
5373
|
+
const addresses = getFluentErc20PaymasterTokenAddresses(network);
|
|
5374
|
+
return symbol === "BLEND" ? addresses.BLEND : addresses.USDnr;
|
|
5375
|
+
}
|
|
5376
5376
|
var FLUENT_GAS_PAYMENT_DEFAULT_ETH_RATES = {
|
|
5377
5377
|
ETH: "1"
|
|
5378
5378
|
};
|
|
@@ -5612,29 +5612,17 @@ function getFluentZeroDevErc20PaymasterTokens(network = "testnet") {
|
|
|
5612
5612
|
const addresses = getFluentErc20PaymasterTokenAddresses(network);
|
|
5613
5613
|
return {
|
|
5614
5614
|
BLEND: {
|
|
5615
|
-
address: addresses.BLEND
|
|
5615
|
+
address: addresses.BLEND,
|
|
5616
5616
|
decimals: 18,
|
|
5617
5617
|
symbol: "BLEND"
|
|
5618
5618
|
},
|
|
5619
5619
|
USDNR: {
|
|
5620
|
-
address: addresses.USDnr
|
|
5620
|
+
address: addresses.USDnr,
|
|
5621
5621
|
decimals: 18,
|
|
5622
5622
|
symbol: "USDnr"
|
|
5623
5623
|
}
|
|
5624
5624
|
};
|
|
5625
5625
|
}
|
|
5626
|
-
var FLUENT_ZERODEV_ERC20_PAYMASTER_TOKENS = {
|
|
5627
|
-
BLEND: {
|
|
5628
|
-
address: FLUENT_TESTNET_BLEND_TOKEN_ADDRESS,
|
|
5629
|
-
decimals: 18,
|
|
5630
|
-
symbol: "BLEND"
|
|
5631
|
-
},
|
|
5632
|
-
USDNR: {
|
|
5633
|
-
address: FLUENT_TESTNET_USDNR_TOKEN_ADDRESS,
|
|
5634
|
-
decimals: 18,
|
|
5635
|
-
symbol: "USDnr"
|
|
5636
|
-
}
|
|
5637
|
-
};
|
|
5638
5626
|
function createFluentZeroDevRpcUrl(params = {}) {
|
|
5639
5627
|
const chainId = params.chainId ?? fluentTestnet.id;
|
|
5640
5628
|
const projectId = params.projectId ?? FLUENT_CONNECT_ZERODEV_PROJECT_ID;
|
|
@@ -5801,7 +5789,7 @@ function createFluentBundlerTransport(url) {
|
|
|
5801
5789
|
|
|
5802
5790
|
// src/widget/zerodevSession.ts
|
|
5803
5791
|
function useFluentZeroDevAccount(hookOptions = {}) {
|
|
5804
|
-
const { chain } = useFluentWidgetNetwork();
|
|
5792
|
+
const { chain, network } = useFluentWidgetNetwork();
|
|
5805
5793
|
const { authenticated, login: privyLogin, ready } = usePrivy();
|
|
5806
5794
|
const login = hookOptions.login ?? privyLogin;
|
|
5807
5795
|
const { signMessage: promptSignMessage } = useSignMessage();
|
|
@@ -5993,7 +5981,7 @@ function useFluentZeroDevAccount(hookOptions = {}) {
|
|
|
5993
5981
|
}
|
|
5994
5982
|
const executionKernel = cachedKernel ?? await initialize2({ signerMode, throwOnError: true });
|
|
5995
5983
|
if (!executionKernel) throw new Error(error?.message ?? "ZeroDev smart account is not ready");
|
|
5996
|
-
const gasToken = options?.gasPayment?.
|
|
5984
|
+
const gasToken = options?.gasPayment?.symbol ? getFluentGasTokenAddress(options.gasPayment.symbol, network) : void 0;
|
|
5997
5985
|
const preparedCalls = [...calls];
|
|
5998
5986
|
if (gasToken && options?.gasPayment?.includeApproval) {
|
|
5999
5987
|
preparedCalls.unshift(await createFluentZeroDevErc20PaymasterApprovalCall({
|
|
@@ -6015,7 +6003,7 @@ function useFluentZeroDevAccount(hookOptions = {}) {
|
|
|
6015
6003
|
}))
|
|
6016
6004
|
});
|
|
6017
6005
|
setPromptSigningContext({
|
|
6018
|
-
gasTokenSymbol:
|
|
6006
|
+
gasTokenSymbol: options?.gasPayment?.symbol
|
|
6019
6007
|
});
|
|
6020
6008
|
try {
|
|
6021
6009
|
const executionClient = gasToken ? createFluentZeroDevErc20ExecutionClient(executionKernel, gasToken) : executionKernel.client;
|
|
@@ -6056,6 +6044,7 @@ function useFluentZeroDevAccount(hookOptions = {}) {
|
|
|
6056
6044
|
hookOptions.authorizationSession,
|
|
6057
6045
|
initialize2,
|
|
6058
6046
|
kernels,
|
|
6047
|
+
network,
|
|
6059
6048
|
ready
|
|
6060
6049
|
]
|
|
6061
6050
|
);
|
|
@@ -6274,14 +6263,6 @@ function setPromptSigningContext(context) {
|
|
|
6274
6263
|
function clearPromptSigningContext() {
|
|
6275
6264
|
promptSigningContext = {};
|
|
6276
6265
|
}
|
|
6277
|
-
function resolvePromptGasTokenSymbol(gasPayment) {
|
|
6278
|
-
if (gasPayment?.symbol) return gasPayment.symbol;
|
|
6279
|
-
if (!gasPayment?.token) return void 0;
|
|
6280
|
-
const known = Object.values(FLUENT_ZERODEV_ERC20_PAYMASTER_TOKENS).find(
|
|
6281
|
-
(token) => token.address.toLowerCase() === gasPayment.token.toLowerCase()
|
|
6282
|
-
);
|
|
6283
|
-
return known?.symbol;
|
|
6284
|
-
}
|
|
6285
6266
|
function buildPromptSigningUiOptions() {
|
|
6286
6267
|
const gasTokenSymbol = promptSigningContext.gasTokenSymbol;
|
|
6287
6268
|
return {
|
|
@@ -6556,7 +6537,7 @@ function toUnixSeconds(value) {
|
|
|
6556
6537
|
}
|
|
6557
6538
|
|
|
6558
6539
|
// package.json
|
|
6559
|
-
var version = "0.1.
|
|
6540
|
+
var version = "0.1.4";
|
|
6560
6541
|
|
|
6561
6542
|
// src/core/analytics.ts
|
|
6562
6543
|
var INSTANCE_NAME = "fluent";
|
|
@@ -10351,6 +10332,6 @@ function FluentWidget(props) {
|
|
|
10351
10332
|
) });
|
|
10352
10333
|
}
|
|
10353
10334
|
|
|
10354
|
-
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, FLUENT_CONNECT_DEFAULT_ASSETS, FLUENT_GAS_PAYMENT_DEFAULT_ETH_RATES, FLUENT_GAS_PAYMENT_PRIORITY, FLUENT_WIDGET_SESSION_STORAGE_KEY, FLUENT_ZERODEV_ERC20_PAYMASTER_QUERY,
|
|
10335
|
+
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, FLUENT_CONNECT_DEFAULT_ASSETS, FLUENT_GAS_PAYMENT_DEFAULT_ETH_RATES, FLUENT_GAS_PAYMENT_PRIORITY, FLUENT_WIDGET_SESSION_STORAGE_KEY, FLUENT_ZERODEV_ERC20_PAYMASTER_QUERY, FLUENT_ZERODEV_PAYMASTER_DEMO_RECIPIENT, FluentWidget, FluentWidgetConnectButton, FluentWidgetNetworkProvider, Icon, Separator, buttonVariants, clearPrivyRecentLoginMethod, createFluentBatchOp, createFluentClient, createFluentFamiliesClient, createFluentPermissionApi, createFluentPermissionClient, createFluentPermissionPolicyBuilders, createFluentPermissionSession, createFluentZeroDevErc20Paymaster, createFluentZeroDevErc20PaymasterApprovalCall, createFluentZeroDevErc20PaymasterClient, createFluentZeroDevErc20PaymasterRpcUrl, createFluentZeroDevPermissionSession, createFluentZeroDevRpcUrl, fluent2 as fluent, apps as fluentApps, fluentBridgeAbi, fluent as fluentChain, fluentChains, fluentDefinitionToViemChain, fluentDevnet, fluentDevnetTokenDefaults, fluentDevnetWidgetTokens, integrations as fluentIntegrations, l1Chains as fluentL1Chains, fluentMainnet, fluentMainnetTokenDefaults, fluentMainnetWidgetTokens, fluentTestnet, fluentTestnetTokenDefaults, fluentTestnetWidgetTokens, fluentZeroDevChainIds, formatFluentGasTokenBalance, formatFluentLocaleAmount, getApp, getContractAddressFromChain, getFluentChain, getFluentChainByChainId, getFluentChainForNetwork, getFluentDefaultGasTokens, getFluentDefaultWidgetGasTokens, getFluentExplorerBaseUrl, getFluentGasPaymentEthValue, getFluentGasPaymentTokens, getFluentGasPaymentValueTier, getFluentGasTokenAddress, getFluentTokenDefaults, getFluentTokenDefaultsForNetwork, getFluentZeroDevErc20PaymasterTokens, getL1Chain, getL1ForFluentChain, getZeroDevRpcUrl, getZerodevIntegration, isFaucetNetwork, isFluentZeroDevChain, l1DefinitionToViemChain, normalizeFluentWidgetNetwork, readFluentTokenBalances, registryVersion, resolveBridgeAddresses, resolveFluentWidgetNetworkFromEnv, resolveFluentZeroDevErc20PaymasterToken, resolveL1Definition, selectFluentGasPaymentToken, sendFluentZeroDevErc20PaymasterDemo, useFluentWidget, useFluentWidgetNetwork, useFluentZeroDevAccount, useWidget };
|
|
10355
10336
|
//# sourceMappingURL=index.js.map
|
|
10356
10337
|
//# sourceMappingURL=index.js.map
|