@fluent.xyz/connect 0.1.5 → 0.2.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/README.md +20 -4
- package/dist/fluent-connect.css +1 -1
- package/dist/index.d.ts +285 -91
- package/dist/index.js +1727 -882
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -766,12 +766,16 @@ declare function createFluentPermissionClient(config: FluentPermissionClientConf
|
|
|
766
766
|
type FluentNetworkName = "testnet" | "mainnet";
|
|
767
767
|
type FluentTokenDefinition = {
|
|
768
768
|
chainId: number;
|
|
769
|
-
|
|
769
|
+
address?: Address;
|
|
770
770
|
name: string;
|
|
771
|
+
symbol: string;
|
|
771
772
|
decimals: number;
|
|
772
|
-
|
|
773
|
-
|
|
773
|
+
logoURI?: string;
|
|
774
|
+
native?: true;
|
|
775
|
+
gasPriority?: number;
|
|
774
776
|
};
|
|
777
|
+
declare function isFluentNativeToken(token: Pick<FluentTokenDefinition, "native">): boolean;
|
|
778
|
+
declare function fluentTokenIdentity(token: Pick<FluentTokenDefinition, "chainId" | "address" | "native">): string;
|
|
775
779
|
type FluentTokenBalance = FluentTokenDefinition & {
|
|
776
780
|
raw: bigint | null;
|
|
777
781
|
formatted: string | null;
|
|
@@ -784,6 +788,8 @@ declare const fluentTestnetTokenDefaults: {
|
|
|
784
788
|
readonly symbol: "ETH";
|
|
785
789
|
readonly name: "Ether";
|
|
786
790
|
readonly decimals: 18;
|
|
791
|
+
readonly native: true;
|
|
792
|
+
readonly gasPriority: 3;
|
|
787
793
|
};
|
|
788
794
|
readonly USDnr: {
|
|
789
795
|
readonly chainId: 20994;
|
|
@@ -791,6 +797,7 @@ declare const fluentTestnetTokenDefaults: {
|
|
|
791
797
|
readonly name: "USDnr";
|
|
792
798
|
readonly decimals: 18;
|
|
793
799
|
readonly address: "0x092AE7564C6611a114C20C6df766B5B35A52334A";
|
|
800
|
+
readonly gasPriority: 2;
|
|
794
801
|
};
|
|
795
802
|
readonly BLEND: {
|
|
796
803
|
readonly chainId: 20994;
|
|
@@ -798,29 +805,17 @@ declare const fluentTestnetTokenDefaults: {
|
|
|
798
805
|
readonly name: "Mock Blend";
|
|
799
806
|
readonly decimals: 18;
|
|
800
807
|
readonly address: "0x83Fed707A8dDDC2535aE591CF19fB6C91D542D8E";
|
|
801
|
-
|
|
802
|
-
readonly USDC: {
|
|
803
|
-
readonly chainId: 20994;
|
|
804
|
-
readonly symbol: "USDC";
|
|
805
|
-
readonly name: "USD Coin";
|
|
806
|
-
readonly decimals: 6;
|
|
807
|
-
readonly address: "0xC8Ebbf08Cb2A87aB90cC8EeC34C721764b7755e9";
|
|
808
|
-
};
|
|
809
|
-
readonly USDT: {
|
|
810
|
-
readonly chainId: 20994;
|
|
811
|
-
readonly symbol: "USDT";
|
|
812
|
-
readonly name: "USDT";
|
|
813
|
-
readonly decimals: 6;
|
|
814
|
-
readonly address: "0xD80Ca465c268e76F0d897D44a35fC97Db75AB797";
|
|
808
|
+
readonly gasPriority: 1;
|
|
815
809
|
};
|
|
816
810
|
};
|
|
817
|
-
declare const fluentTestnetWidgetTokens: readonly FluentTokenDefinition[];
|
|
818
811
|
declare const fluentMainnetTokenDefaults: {
|
|
819
812
|
readonly ETH: {
|
|
820
813
|
readonly chainId: 25363;
|
|
821
814
|
readonly symbol: "ETH";
|
|
822
815
|
readonly name: "Ether";
|
|
823
816
|
readonly decimals: 18;
|
|
817
|
+
readonly native: true;
|
|
818
|
+
readonly gasPriority: 3;
|
|
824
819
|
};
|
|
825
820
|
readonly USDnr: {
|
|
826
821
|
readonly chainId: 25363;
|
|
@@ -828,6 +823,7 @@ declare const fluentMainnetTokenDefaults: {
|
|
|
828
823
|
readonly name: "USDnr";
|
|
829
824
|
readonly decimals: 18;
|
|
830
825
|
readonly address: "0xD48e565561416dE59DA1050ED70b8d75e8eF28f9";
|
|
826
|
+
readonly gasPriority: 2;
|
|
831
827
|
};
|
|
832
828
|
readonly BLEND: {
|
|
833
829
|
readonly chainId: 25363;
|
|
@@ -835,15 +831,17 @@ declare const fluentMainnetTokenDefaults: {
|
|
|
835
831
|
readonly name: "Fluent";
|
|
836
832
|
readonly decimals: 18;
|
|
837
833
|
readonly address: "0x1385b8f55a84f2bda13eed4099d29eae03d553b2";
|
|
834
|
+
readonly gasPriority: 1;
|
|
838
835
|
};
|
|
839
836
|
};
|
|
840
|
-
declare const fluentMainnetWidgetTokens: readonly FluentTokenDefinition[];
|
|
841
837
|
declare function getFluentTokenDefaultsForNetwork(network: FluentNetworkName): {
|
|
842
838
|
readonly ETH: {
|
|
843
839
|
readonly chainId: 20994;
|
|
844
840
|
readonly symbol: "ETH";
|
|
845
841
|
readonly name: "Ether";
|
|
846
842
|
readonly decimals: 18;
|
|
843
|
+
readonly native: true;
|
|
844
|
+
readonly gasPriority: 3;
|
|
847
845
|
};
|
|
848
846
|
readonly USDnr: {
|
|
849
847
|
readonly chainId: 20994;
|
|
@@ -851,6 +849,7 @@ declare function getFluentTokenDefaultsForNetwork(network: FluentNetworkName): {
|
|
|
851
849
|
readonly name: "USDnr";
|
|
852
850
|
readonly decimals: 18;
|
|
853
851
|
readonly address: "0x092AE7564C6611a114C20C6df766B5B35A52334A";
|
|
852
|
+
readonly gasPriority: 2;
|
|
854
853
|
};
|
|
855
854
|
readonly BLEND: {
|
|
856
855
|
readonly chainId: 20994;
|
|
@@ -858,20 +857,7 @@ declare function getFluentTokenDefaultsForNetwork(network: FluentNetworkName): {
|
|
|
858
857
|
readonly name: "Mock Blend";
|
|
859
858
|
readonly decimals: 18;
|
|
860
859
|
readonly address: "0x83Fed707A8dDDC2535aE591CF19fB6C91D542D8E";
|
|
861
|
-
|
|
862
|
-
readonly USDC: {
|
|
863
|
-
readonly chainId: 20994;
|
|
864
|
-
readonly symbol: "USDC";
|
|
865
|
-
readonly name: "USD Coin";
|
|
866
|
-
readonly decimals: 6;
|
|
867
|
-
readonly address: "0xC8Ebbf08Cb2A87aB90cC8EeC34C721764b7755e9";
|
|
868
|
-
};
|
|
869
|
-
readonly USDT: {
|
|
870
|
-
readonly chainId: 20994;
|
|
871
|
-
readonly symbol: "USDT";
|
|
872
|
-
readonly name: "USDT";
|
|
873
|
-
readonly decimals: 6;
|
|
874
|
-
readonly address: "0xD80Ca465c268e76F0d897D44a35fC97Db75AB797";
|
|
860
|
+
readonly gasPriority: 1;
|
|
875
861
|
};
|
|
876
862
|
} | {
|
|
877
863
|
readonly ETH: {
|
|
@@ -879,6 +865,8 @@ declare function getFluentTokenDefaultsForNetwork(network: FluentNetworkName): {
|
|
|
879
865
|
readonly symbol: "ETH";
|
|
880
866
|
readonly name: "Ether";
|
|
881
867
|
readonly decimals: 18;
|
|
868
|
+
readonly native: true;
|
|
869
|
+
readonly gasPriority: 3;
|
|
882
870
|
};
|
|
883
871
|
readonly USDnr: {
|
|
884
872
|
readonly chainId: 25363;
|
|
@@ -886,6 +874,7 @@ declare function getFluentTokenDefaultsForNetwork(network: FluentNetworkName): {
|
|
|
886
874
|
readonly name: "USDnr";
|
|
887
875
|
readonly decimals: 18;
|
|
888
876
|
readonly address: "0xD48e565561416dE59DA1050ED70b8d75e8eF28f9";
|
|
877
|
+
readonly gasPriority: 2;
|
|
889
878
|
};
|
|
890
879
|
readonly BLEND: {
|
|
891
880
|
readonly chainId: 25363;
|
|
@@ -893,8 +882,17 @@ declare function getFluentTokenDefaultsForNetwork(network: FluentNetworkName): {
|
|
|
893
882
|
readonly name: "Fluent";
|
|
894
883
|
readonly decimals: 18;
|
|
895
884
|
readonly address: "0x1385b8f55a84f2bda13eed4099d29eae03d553b2";
|
|
885
|
+
readonly gasPriority: 1;
|
|
896
886
|
};
|
|
897
887
|
};
|
|
888
|
+
declare function isFluentDefaultToken(token: Pick<FluentTokenDefinition, "chainId" | "address" | "native">): boolean;
|
|
889
|
+
/**
|
|
890
|
+
* The tokens in `tokens` that declare a `gasPriority`, cheapest priority first.
|
|
891
|
+
* The single spelling of "gas tokens, in order" — do not re-implement the
|
|
892
|
+
* filter and comparator elsewhere.
|
|
893
|
+
*/
|
|
894
|
+
declare function sortFluentGasTokens<T extends FluentTokenDefinition>(tokens: readonly T[]): readonly T[];
|
|
895
|
+
declare function getFluentDefaultWidgetDisplayTokens(network: FluentNetworkName): readonly FluentTokenDefinition[];
|
|
898
896
|
declare function getFluentDefaultWidgetGasTokens(network: FluentNetworkName): readonly FluentTokenDefinition[];
|
|
899
897
|
declare function readFluentTokenBalances<TTransport extends Transport = Transport, TChain extends Chain = Chain>(params: {
|
|
900
898
|
client: PublicClient<TTransport, TChain>;
|
|
@@ -902,6 +900,63 @@ declare function readFluentTokenBalances<TTransport extends Transport = Transpor
|
|
|
902
900
|
tokens: readonly FluentTokenDefinition[];
|
|
903
901
|
}): Promise<FluentTokenBalance[]>;
|
|
904
902
|
|
|
903
|
+
type FluentTokenMetadataResult = {
|
|
904
|
+
status: "ok";
|
|
905
|
+
token: FluentTokenDefinition;
|
|
906
|
+
} | {
|
|
907
|
+
status: "invalid-address";
|
|
908
|
+
} | {
|
|
909
|
+
status: "unreadable";
|
|
910
|
+
reason: string;
|
|
911
|
+
};
|
|
912
|
+
/**
|
|
913
|
+
* Read a token's own account of itself from its contract.
|
|
914
|
+
*
|
|
915
|
+
* Never trust user-typed metadata: the address is the only input, everything
|
|
916
|
+
* else comes from the chain. `decimals` is mandatory — without it every balance
|
|
917
|
+
* we render would be off by an unknown power of ten — so a contract that fails
|
|
918
|
+
* to answer it is rejected rather than defaulted to 18.
|
|
919
|
+
*
|
|
920
|
+
* Reads are issued individually rather than batched: the Fluent chains have no
|
|
921
|
+
* Multicall3 deployment configured, so `client.multicall` would throw.
|
|
922
|
+
*/
|
|
923
|
+
declare function readFluentTokenMetadata<TTransport extends Transport = Transport, TChain extends Chain = Chain>(params: {
|
|
924
|
+
client: PublicClient<TTransport, TChain>;
|
|
925
|
+
address: string;
|
|
926
|
+
chainId: number;
|
|
927
|
+
}): Promise<FluentTokenMetadataResult>;
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Where a display token came from, ordered by how much we trust it. See
|
|
931
|
+
* docs/adr/0002-user-tokens-are-stored-locally-behind-an-interface.md.
|
|
932
|
+
*/
|
|
933
|
+
type FluentTokenSource = "default" | "integrator" | "user";
|
|
934
|
+
type FluentDisplayToken = FluentTokenDefinition & {
|
|
935
|
+
source: FluentTokenSource;
|
|
936
|
+
/** `fluentTokenIdentity` for this token, computed once here. */
|
|
937
|
+
identity: string;
|
|
938
|
+
};
|
|
939
|
+
/**
|
|
940
|
+
* Combine the three token sources into the list the widget renders.
|
|
941
|
+
*
|
|
942
|
+
* Duplicates are resolved by identity, never by symbol, and the more trusted
|
|
943
|
+
* source wins: a token a user added by hand is superseded once we ship it as
|
|
944
|
+
* one of ours, taking our name and logo with it. The user's stored record is only
|
|
945
|
+
* shadowed here — callers must not delete it, so that dropping a token from the
|
|
946
|
+
* default set brings their entry back rather than destroying it.
|
|
947
|
+
*/
|
|
948
|
+
declare function mergeFluentDisplayTokens(params: {
|
|
949
|
+
defaults: readonly FluentTokenDefinition[];
|
|
950
|
+
integrator?: readonly FluentTokenDefinition[];
|
|
951
|
+
user?: readonly FluentTokenDefinition[];
|
|
952
|
+
}): FluentDisplayToken[];
|
|
953
|
+
/**
|
|
954
|
+
* Symbols in `tokens` that more than one token claims. The widget shows the
|
|
955
|
+
* address on every row regardless, but a collision is worth calling out loudly:
|
|
956
|
+
* it is the cheap way to pass a worthless token off as a valuable one.
|
|
957
|
+
*/
|
|
958
|
+
declare function findFluentSymbolCollisions(tokens: readonly FluentTokenDefinition[]): Set<string>;
|
|
959
|
+
|
|
905
960
|
type FluentFamilyTier = "A" | "B" | "C" | "D";
|
|
906
961
|
type FluentFamilyType = "identity" | "tester" | "builder" | "influential" | "predictor";
|
|
907
962
|
type FluentFamily = {
|
|
@@ -1015,6 +1070,8 @@ declare function getFluentTokenDefaults(network: FluentWidgetNetwork): {
|
|
|
1015
1070
|
readonly symbol: "ETH";
|
|
1016
1071
|
readonly name: "Ether";
|
|
1017
1072
|
readonly decimals: 18;
|
|
1073
|
+
readonly native: true;
|
|
1074
|
+
readonly gasPriority: 3;
|
|
1018
1075
|
};
|
|
1019
1076
|
readonly USDnr: {
|
|
1020
1077
|
readonly chainId: 20994;
|
|
@@ -1022,6 +1079,7 @@ declare function getFluentTokenDefaults(network: FluentWidgetNetwork): {
|
|
|
1022
1079
|
readonly name: "USDnr";
|
|
1023
1080
|
readonly decimals: 18;
|
|
1024
1081
|
readonly address: "0x092AE7564C6611a114C20C6df766B5B35A52334A";
|
|
1082
|
+
readonly gasPriority: 2;
|
|
1025
1083
|
};
|
|
1026
1084
|
readonly BLEND: {
|
|
1027
1085
|
readonly chainId: 20994;
|
|
@@ -1029,20 +1087,7 @@ declare function getFluentTokenDefaults(network: FluentWidgetNetwork): {
|
|
|
1029
1087
|
readonly name: "Mock Blend";
|
|
1030
1088
|
readonly decimals: 18;
|
|
1031
1089
|
readonly address: "0x83Fed707A8dDDC2535aE591CF19fB6C91D542D8E";
|
|
1032
|
-
|
|
1033
|
-
readonly USDC: {
|
|
1034
|
-
readonly chainId: 20994;
|
|
1035
|
-
readonly symbol: "USDC";
|
|
1036
|
-
readonly name: "USD Coin";
|
|
1037
|
-
readonly decimals: 6;
|
|
1038
|
-
readonly address: "0xC8Ebbf08Cb2A87aB90cC8EeC34C721764b7755e9";
|
|
1039
|
-
};
|
|
1040
|
-
readonly USDT: {
|
|
1041
|
-
readonly chainId: 20994;
|
|
1042
|
-
readonly symbol: "USDT";
|
|
1043
|
-
readonly name: "USDT";
|
|
1044
|
-
readonly decimals: 6;
|
|
1045
|
-
readonly address: "0xD80Ca465c268e76F0d897D44a35fC97Db75AB797";
|
|
1090
|
+
readonly gasPriority: 1;
|
|
1046
1091
|
};
|
|
1047
1092
|
} | {
|
|
1048
1093
|
readonly ETH: {
|
|
@@ -1050,6 +1095,8 @@ declare function getFluentTokenDefaults(network: FluentWidgetNetwork): {
|
|
|
1050
1095
|
readonly symbol: "ETH";
|
|
1051
1096
|
readonly name: "Ether";
|
|
1052
1097
|
readonly decimals: 18;
|
|
1098
|
+
readonly native: true;
|
|
1099
|
+
readonly gasPriority: 3;
|
|
1053
1100
|
};
|
|
1054
1101
|
readonly USDnr: {
|
|
1055
1102
|
readonly chainId: 25363;
|
|
@@ -1057,6 +1104,7 @@ declare function getFluentTokenDefaults(network: FluentWidgetNetwork): {
|
|
|
1057
1104
|
readonly name: "USDnr";
|
|
1058
1105
|
readonly decimals: 18;
|
|
1059
1106
|
readonly address: "0xD48e565561416dE59DA1050ED70b8d75e8eF28f9";
|
|
1107
|
+
readonly gasPriority: 2;
|
|
1060
1108
|
};
|
|
1061
1109
|
readonly BLEND: {
|
|
1062
1110
|
readonly chainId: 25363;
|
|
@@ -1064,27 +1112,34 @@ declare function getFluentTokenDefaults(network: FluentWidgetNetwork): {
|
|
|
1064
1112
|
readonly name: "Fluent";
|
|
1065
1113
|
readonly decimals: 18;
|
|
1066
1114
|
readonly address: "0x1385b8f55a84f2bda13eed4099d29eae03d553b2";
|
|
1115
|
+
readonly gasPriority: 1;
|
|
1067
1116
|
};
|
|
1068
1117
|
};
|
|
1069
|
-
declare function getFluentDefaultGasTokens(network: FluentWidgetNetwork): readonly FluentTokenDefinition[];
|
|
1070
1118
|
declare function getFluentExplorerBaseUrl(network: FluentWidgetNetwork): string | undefined;
|
|
1071
1119
|
|
|
1072
|
-
|
|
1073
|
-
|
|
1120
|
+
/**
|
|
1121
|
+
* A symbol that can pay for gas. Deliberately `string`: which tokens are
|
|
1122
|
+
* payable is data on the token definitions now, not a fixed set of literals.
|
|
1123
|
+
*/
|
|
1124
|
+
type FluentGasTokenSymbol = string;
|
|
1074
1125
|
/**
|
|
1075
1126
|
* Resolve a gas token symbol to its ERC-20 paymaster address on `network`.
|
|
1076
|
-
* Returns `undefined` for native
|
|
1077
|
-
*
|
|
1127
|
+
* Returns `undefined` for the native currency, which pays gas directly, and for
|
|
1128
|
+
* any symbol that is not a gas token on this network.
|
|
1129
|
+
*
|
|
1130
|
+
* Matching is case-insensitive to agree with
|
|
1131
|
+
* `resolveFluentZeroDevErc20PaymasterToken`, which uppercases its keys — the two
|
|
1132
|
+
* feed the same approval call and must not disagree on `"usdnr"`.
|
|
1078
1133
|
*/
|
|
1079
|
-
declare function getFluentGasTokenAddress(symbol:
|
|
1134
|
+
declare function getFluentGasTokenAddress(symbol: FluentGasTokenSymbol, network: FluentWidgetNetwork): Address | undefined;
|
|
1080
1135
|
type FluentGasPaymentValueTier = "green" | "yellow" | "red" | "neutral" | "unknown";
|
|
1081
|
-
type FluentGasPaymentEthRates = Partial<Record<
|
|
1136
|
+
type FluentGasPaymentEthRates = Partial<Record<FluentGasTokenSymbol, string>>;
|
|
1082
1137
|
declare const FLUENT_GAS_PAYMENT_DEFAULT_ETH_RATES: {
|
|
1083
1138
|
readonly ETH: "1";
|
|
1084
1139
|
};
|
|
1085
1140
|
type FluentGasPaymentSelection = {
|
|
1086
1141
|
status: "ready";
|
|
1087
|
-
symbol:
|
|
1142
|
+
symbol: FluentGasTokenSymbol;
|
|
1088
1143
|
balance: FluentTokenBalance;
|
|
1089
1144
|
} | {
|
|
1090
1145
|
status: "bridge-required";
|
|
@@ -1099,7 +1154,18 @@ declare function selectFluentGasPaymentToken(params: {
|
|
|
1099
1154
|
balances: readonly FluentTokenBalance[];
|
|
1100
1155
|
loading?: boolean;
|
|
1101
1156
|
}): FluentGasPaymentSelection;
|
|
1102
|
-
|
|
1157
|
+
/**
|
|
1158
|
+
* Narrow a token list down to the gas tokens in it, in paymaster priority
|
|
1159
|
+
* order. Only gas selection may use this — running the whole display list
|
|
1160
|
+
* through it is what previously made the token list inextensible.
|
|
1161
|
+
*
|
|
1162
|
+
* `mergeFluentDisplayTokens` already strips `gasPriority` off untrusted
|
|
1163
|
+
* sources, so the `isFluentDefaultToken` filter here is the safety net for a
|
|
1164
|
+
* caller handed a raw list — an integrator prop, say — that never went through
|
|
1165
|
+
* the merge. It stays because this list decides what the paymaster is asked to
|
|
1166
|
+
* charge.
|
|
1167
|
+
*/
|
|
1168
|
+
declare function getFluentGasPaymentTokens<T extends FluentTokenDefinition>(tokens: readonly T[]): readonly T[];
|
|
1103
1169
|
declare function getFluentGasPaymentEthValue(params: {
|
|
1104
1170
|
balance: FluentTokenBalance | undefined;
|
|
1105
1171
|
ethValueByToken?: FluentGasPaymentEthRates;
|
|
@@ -1113,11 +1179,15 @@ declare function getFluentGasPaymentEthValue(params: {
|
|
|
1113
1179
|
tier: FluentGasPaymentValueTier;
|
|
1114
1180
|
};
|
|
1115
1181
|
declare function getFluentGasPaymentValueTier(ethValueWei: bigint): FluentGasPaymentValueTier;
|
|
1116
|
-
declare function formatFluentGasTokenBalance(balance: Pick<FluentTokenBalance, "raw" | "decimals" | "formatted">, maximumFractionDigits?: number): string | null;
|
|
1117
|
-
/** de-DE separators: `.` thousands, `,` decimals (same as portfolio total). */
|
|
1118
|
-
declare function formatFluentLocaleAmount(value: string | number, maximumFractionDigits?: number): string;
|
|
1119
1182
|
|
|
1120
1183
|
declare const FLUENT_WIDGET_SESSION_STORAGE_KEY = "fluent:widget:session:v1";
|
|
1184
|
+
/**
|
|
1185
|
+
* Tokens the user added by hand. Keyed per chain inside the payload, not per
|
|
1186
|
+
* account: one person holds both a Fluent ID and possibly an external wallet
|
|
1187
|
+
* and switches between them, and their list should not appear to vanish when
|
|
1188
|
+
* they disconnect one.
|
|
1189
|
+
*/
|
|
1190
|
+
declare const FLUENT_WIDGET_USER_TOKENS_STORAGE_KEY = "fluent:widget:tokens:v1";
|
|
1121
1191
|
|
|
1122
1192
|
declare const FLUENT_CONNECT_DEFAULT_ASSETS: {
|
|
1123
1193
|
readonly fluentLogo: string;
|
|
@@ -1127,7 +1197,7 @@ declare const FLUENT_CONNECT_DEFAULT_ASSETS: {
|
|
|
1127
1197
|
};
|
|
1128
1198
|
|
|
1129
1199
|
type FluentWidgetSession = FluentSession & {
|
|
1130
|
-
|
|
1200
|
+
partnerId?: string;
|
|
1131
1201
|
idToken: string;
|
|
1132
1202
|
wallet: Omit<FluentSession["wallet"], "smartAccountAddress"> & {
|
|
1133
1203
|
smartAccountAddress: `0x${string}`;
|
|
@@ -1144,7 +1214,16 @@ type FluentWidgetSession = FluentSession & {
|
|
|
1144
1214
|
};
|
|
1145
1215
|
type FluentWidgetAuthMode = "hosted" | "direct";
|
|
1146
1216
|
type FluentWidgetConfig = {
|
|
1147
|
-
|
|
1217
|
+
/** The partner's id (`partner_<32 hex>`) — the same string the console shows and the token's `aud` carries. */
|
|
1218
|
+
partnerId: string;
|
|
1219
|
+
/**
|
|
1220
|
+
* The Privy app client issued by Fluent for this partner. Login configuration, not
|
|
1221
|
+
* identity: it carries the allowed origins for Privy login, while `partnerId` is what
|
|
1222
|
+
* sponsorship, auth and analytics speak.
|
|
1223
|
+
*/
|
|
1224
|
+
privyClientId: string;
|
|
1225
|
+
/** Removed in the PartnerId cutover — the type exists only so the error names the fix. */
|
|
1226
|
+
clientId?: never;
|
|
1148
1227
|
network?: FluentWidgetNetwork;
|
|
1149
1228
|
appName?: string;
|
|
1150
1229
|
/**
|
|
@@ -1167,10 +1246,23 @@ type FluentWidgetConfig = {
|
|
|
1167
1246
|
campaign?: string;
|
|
1168
1247
|
/** Turns off all analytics: PostHog is never initialised, nothing is sent or stored. */
|
|
1169
1248
|
disableAnalytics?: boolean;
|
|
1249
|
+
/**
|
|
1250
|
+
* Point the widget at a sponsorship service other than the network default. Local
|
|
1251
|
+
* development only: the deployed URL is the one every real integration should use.
|
|
1252
|
+
*/
|
|
1253
|
+
sponsorshipUrl?: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* `getAuthToken()` reuses a token until this many seconds before its `exp`, then fetches a
|
|
1256
|
+
* fresh one (the renewal-offset pattern: MSAL's `tokenRenewalOffsetSeconds`, Go oauth2's
|
|
1257
|
+
* `expiryDelta`). Default 30. Set 0 to always fetch — every call then costs a wallet
|
|
1258
|
+
* signature on the external-wallet path.
|
|
1259
|
+
*/
|
|
1260
|
+
authTokenRenewalOffsetSeconds?: number;
|
|
1170
1261
|
assets?: Partial<typeof FLUENT_CONNECT_DEFAULT_ASSETS>;
|
|
1171
1262
|
};
|
|
1172
1263
|
type ResolvedFluentWidgetConfig = {
|
|
1173
|
-
|
|
1264
|
+
partnerId: string;
|
|
1265
|
+
privyClientId: string;
|
|
1174
1266
|
network: FluentWidgetNetwork;
|
|
1175
1267
|
appName: string;
|
|
1176
1268
|
authMode: FluentWidgetAuthMode;
|
|
@@ -1178,6 +1270,8 @@ type ResolvedFluentWidgetConfig = {
|
|
|
1178
1270
|
faucetEndpoint: string;
|
|
1179
1271
|
eventsEndpoint: string;
|
|
1180
1272
|
analyticsHost: string;
|
|
1273
|
+
sponsorshipUrl: string;
|
|
1274
|
+
authTokenRenewalOffsetSeconds: number;
|
|
1181
1275
|
disableAnalytics: boolean;
|
|
1182
1276
|
publicApiUrl: string;
|
|
1183
1277
|
reputationSignupUrl: string;
|
|
@@ -1211,6 +1305,13 @@ declare function FluentWidgetNetworkProvider({ network, children, }: {
|
|
|
1211
1305
|
}): React.JSX.Element;
|
|
1212
1306
|
declare function useFluentWidgetNetwork(): FluentWidgetNetworkContextValue;
|
|
1213
1307
|
|
|
1308
|
+
/** Why an operation was not sponsored, when sponsorship was configured for it. */
|
|
1309
|
+
/**
|
|
1310
|
+
* Why an operation was not sponsored. `not_requested` is the only one that is not a failure:
|
|
1311
|
+
* the caller asked to pay its own gas, so the sponsorship paymaster was never contacted.
|
|
1312
|
+
*/
|
|
1313
|
+
type FluentSponsorshipReason = "no_token" | "denied" | "unauthorized" | "unreachable" | "not_requested";
|
|
1314
|
+
|
|
1214
1315
|
type KernelAccount = Awaited<ReturnType<typeof createKernelAccount>>;
|
|
1215
1316
|
type KernelClient = ReturnType<typeof createKernelAccountClient>;
|
|
1216
1317
|
type FluentZeroDevSignerMode = "prompt" | "silent";
|
|
@@ -1246,6 +1347,9 @@ type FluentZeroDevPermissionCall = {
|
|
|
1246
1347
|
declare function useFluentZeroDevAccount(hookOptions?: {
|
|
1247
1348
|
authorizeUrl?: string;
|
|
1248
1349
|
allowHostedSigner?: boolean;
|
|
1350
|
+
/** Partner id in the sponsorship path. Sponsorship is off unless both this and the URL are set. */
|
|
1351
|
+
partnerId?: string;
|
|
1352
|
+
sponsorshipUrl?: string;
|
|
1249
1353
|
authorizationSession?: {
|
|
1250
1354
|
expiresAt: number;
|
|
1251
1355
|
serializedPermissionAccount: string;
|
|
@@ -1275,7 +1379,12 @@ declare function useFluentZeroDevAccount(hookOptions?: {
|
|
|
1275
1379
|
data?: Hex;
|
|
1276
1380
|
value?: bigint;
|
|
1277
1381
|
}) => Promise<Hash>;
|
|
1278
|
-
sendCalls: (calls: FluentZeroDevCall[], options?: FluentBatchOperationExecuteOptions) => Promise<
|
|
1382
|
+
sendCalls: (calls: FluentZeroDevCall[], options?: FluentBatchOperationExecuteOptions) => Promise<{
|
|
1383
|
+
hash: Hash;
|
|
1384
|
+
sponsored: boolean;
|
|
1385
|
+
sponsorshipReason?: FluentSponsorshipReason;
|
|
1386
|
+
paymaster?: Address;
|
|
1387
|
+
}>;
|
|
1279
1388
|
refresh: () => Promise<FluentZeroDevKernel | null>;
|
|
1280
1389
|
};
|
|
1281
1390
|
declare function createFluentZeroDevPermissionSession(params: {
|
|
@@ -1398,9 +1507,23 @@ type FluentExecuteResult = {
|
|
|
1398
1507
|
hashes: Hash[];
|
|
1399
1508
|
/** True when all calls landed atomically (smart account), false for sequential EOA txs. */
|
|
1400
1509
|
atomic: boolean;
|
|
1510
|
+
/**
|
|
1511
|
+
* True when a partner's sponsorship paid the gas for this operation. Read back off the
|
|
1512
|
+
* settled UserOperation (which contract the EntryPoint charged), not from which client
|
|
1513
|
+
* we chose to send with: a refusal in the sponsorship proxy is a flat 403 and the
|
|
1514
|
+
* account silently pays its own gas, so an optimistic flag would report the failure
|
|
1515
|
+
* mode as a success. Always false for the EOA path, which has no paymaster.
|
|
1516
|
+
*/
|
|
1517
|
+
sponsored: boolean;
|
|
1518
|
+
/**
|
|
1519
|
+
* The paymaster that actually paid, zero address when the account paid itself.
|
|
1520
|
+
* Undefined when the bundler's receipt carried no paymaster field and no
|
|
1521
|
+
* `UserOperationEvent` could be decoded — i.e. `sponsored` is a guess, say so.
|
|
1522
|
+
*/
|
|
1523
|
+
paymaster?: Address;
|
|
1401
1524
|
};
|
|
1402
1525
|
type FluentWidgetGasPayment = {
|
|
1403
|
-
symbol:
|
|
1526
|
+
symbol: FluentGasTokenSymbol;
|
|
1404
1527
|
token?: Address;
|
|
1405
1528
|
decimals: number;
|
|
1406
1529
|
};
|
|
@@ -1430,9 +1553,24 @@ type FluentGasPayment = {
|
|
|
1430
1553
|
/**
|
|
1431
1554
|
* Gas token symbol. The widget resolves the ERC-20 address for the active
|
|
1432
1555
|
* network internally — callers never pass (or risk mistyping) an address.
|
|
1433
|
-
* `"ETH"` means native gas (no paymaster).
|
|
1556
|
+
* `"ETH"` means native gas (no ERC-20 paymaster).
|
|
1557
|
+
*/
|
|
1558
|
+
symbol: FluentGasTokenSymbol;
|
|
1559
|
+
/**
|
|
1560
|
+
* Whether to ask the partner's sponsorship paymaster to pay for this operation.
|
|
1561
|
+
*
|
|
1562
|
+
* Defaults to `"auto"`, which is what every caller got before this option existed: try
|
|
1563
|
+
* sponsorship, and if the paymaster refuses, resend with the account paying its own gas.
|
|
1564
|
+
* `"never"` skips the paymaster outright, so the account pays from the first attempt and
|
|
1565
|
+
* the result reports `sponsorshipReason: "not_requested"`.
|
|
1566
|
+
*
|
|
1567
|
+
* The distinction is not cosmetic: under `"auto"` the two outcomes are indistinguishable
|
|
1568
|
+
* before the send and only the settled receipt separates them, so a caller that wants to
|
|
1569
|
+
* *demonstrate* unsponsored execution — or to keep a partner's budget untouched — has no
|
|
1570
|
+
* way to say so. Ignored when `symbol` names an ERC-20: that token's own paymaster pays,
|
|
1571
|
+
* and sponsorship is not in the picture.
|
|
1434
1572
|
*/
|
|
1435
|
-
|
|
1573
|
+
sponsorship?: "auto" | "never";
|
|
1436
1574
|
} & ({
|
|
1437
1575
|
includeApproval: true;
|
|
1438
1576
|
approveAmount: bigint;
|
|
@@ -1536,6 +1674,15 @@ type FluentWidgetRenderContext = {
|
|
|
1536
1674
|
* an external wallet client (outside the widget's execution path).
|
|
1537
1675
|
*/
|
|
1538
1676
|
refreshBalances: () => void;
|
|
1677
|
+
/**
|
|
1678
|
+
* A short-lived (5 min) Fluent-signed JWT for the connected user. Verify it on your backend
|
|
1679
|
+
* against `<iss>/.well-known/jwks.json` (ES256), checking `iss`, `aud` (= your partnerId) and
|
|
1680
|
+
* `exp`; `sub` is stable per user per app. Reused until `authTokenRenewalOffsetSeconds`
|
|
1681
|
+
* before `exp`. Direct auth only; throws `FluentAuthError`
|
|
1682
|
+
* (`code: "hosted_not_supported"`) in hosted mode. External wallets: EOAs and deployed
|
|
1683
|
+
* smart-contract wallets sign in; a not-yet-deployed smart account cannot (no ERC-6492).
|
|
1684
|
+
*/
|
|
1685
|
+
getAuthToken: () => Promise<string>;
|
|
1539
1686
|
};
|
|
1540
1687
|
type FluentWidgetConnectButtonRenderContext = {
|
|
1541
1688
|
connected: boolean;
|
|
@@ -1585,6 +1732,50 @@ declare function useFluentWidget(): FluentWidgetRenderContext;
|
|
|
1585
1732
|
/** Convenience hook returning just the widget API (`createBatchOp`, permissions, account…). */
|
|
1586
1733
|
declare function useWidget(): FluentBatchApi;
|
|
1587
1734
|
|
|
1735
|
+
/** Per chain. A ceiling, not a product limit — it stops storage being abused. */
|
|
1736
|
+
declare const FLUENT_USER_TOKEN_LIMIT = 50;
|
|
1737
|
+
type FluentUserTokenAddResult = {
|
|
1738
|
+
status: "added";
|
|
1739
|
+
} | {
|
|
1740
|
+
status: "already-present";
|
|
1741
|
+
} | {
|
|
1742
|
+
status: "at-capacity";
|
|
1743
|
+
limit: number;
|
|
1744
|
+
} | {
|
|
1745
|
+
status: "invalid";
|
|
1746
|
+
};
|
|
1747
|
+
/**
|
|
1748
|
+
* Persistence for tokens the end user added by hand.
|
|
1749
|
+
*/
|
|
1750
|
+
type UserTokenStore = {
|
|
1751
|
+
list(chainId: number): FluentTokenDefinition[];
|
|
1752
|
+
add(token: FluentTokenDefinition): FluentUserTokenAddResult;
|
|
1753
|
+
remove(token: Pick<FluentTokenDefinition, "chainId" | "address">): void;
|
|
1754
|
+
};
|
|
1755
|
+
/**
|
|
1756
|
+
* The browser-backed store. Falls back to an in-memory list when storage is
|
|
1757
|
+
* unavailable, so the UI keeps working for the current view instead of throwing.
|
|
1758
|
+
*/
|
|
1759
|
+
declare function createFluentUserTokenStore(options?: {
|
|
1760
|
+
storage?: StorageLike;
|
|
1761
|
+
key?: string;
|
|
1762
|
+
}): UserTokenStore;
|
|
1763
|
+
|
|
1764
|
+
declare function useFluentUserTokens(options?: {
|
|
1765
|
+
store?: UserTokenStore;
|
|
1766
|
+
}): {
|
|
1767
|
+
tokens: FluentTokenDefinition[];
|
|
1768
|
+
add: (token: FluentTokenDefinition) => FluentUserTokenAddResult;
|
|
1769
|
+
remove: (token: Pick<FluentTokenDefinition, "chainId" | "address">) => void;
|
|
1770
|
+
};
|
|
1771
|
+
|
|
1772
|
+
type FluentAuthErrorCode = "unknown_partner" | "partner_not_auth_enabled" | "origin_not_allowed" | "origin_missing" | "bad_request" | "nonce_unknown" | "nonce_used" | "nonce_expired" | "partner_mismatch" | "invalid_signature" | "signature_prefix_rejected" | "address_already_linked" | "invalid_privy_token" | "no_embedded_wallet" | "rate_limited" | "internal" | "hosted_not_supported" | "not_connected" | "privy_token_missing" | "origin_mismatch" | "request_failed";
|
|
1773
|
+
declare class FluentAuthError extends Error {
|
|
1774
|
+
readonly code: FluentAuthErrorCode;
|
|
1775
|
+
readonly status?: number | undefined;
|
|
1776
|
+
constructor(code: FluentAuthErrorCode, message: string, status?: number | undefined);
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1588
1779
|
type FluentWidgetConnectButtonProps = {
|
|
1589
1780
|
connected: boolean;
|
|
1590
1781
|
/** Preparing the account after sign-in — disables the button and shows a spinner. */
|
|
@@ -1592,26 +1783,25 @@ type FluentWidgetConnectButtonProps = {
|
|
|
1592
1783
|
addressLabel?: string;
|
|
1593
1784
|
onClick: () => void;
|
|
1594
1785
|
className?: string;
|
|
1786
|
+
userLogoUrl?: string | null;
|
|
1595
1787
|
};
|
|
1596
1788
|
/** Default Fluent Connect / account button — place it anywhere in your layout. */
|
|
1597
|
-
declare function FluentWidgetConnectButton({ connected, pending, addressLabel, onClick, className, }: FluentWidgetConnectButtonProps): React.JSX.Element;
|
|
1789
|
+
declare function FluentWidgetConnectButton({ connected, pending, addressLabel, onClick, className, userLogoUrl, }: FluentWidgetConnectButtonProps): React.JSX.Element;
|
|
1598
1790
|
|
|
1599
1791
|
declare const FLUENT_ZERODEV_ERC20_PAYMASTER_QUERY = "selfFunded=true";
|
|
1600
1792
|
declare const FLUENT_ZERODEV_PAYMASTER_DEMO_RECIPIENT: "0x000000000000000000000000000000000000dEaD";
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
readonly symbol: "BLEND";
|
|
1606
|
-
};
|
|
1607
|
-
readonly USDNR: {
|
|
1608
|
-
readonly address: "0x092AE7564C6611a114C20C6df766B5B35A52334A" | "0xD48e565561416dE59DA1050ED70b8d75e8eF28f9";
|
|
1609
|
-
readonly decimals: 18;
|
|
1610
|
-
readonly symbol: "USDnr";
|
|
1611
|
-
};
|
|
1793
|
+
type FluentZeroDevErc20PaymasterTokenInfo = {
|
|
1794
|
+
address: Address;
|
|
1795
|
+
decimals: number;
|
|
1796
|
+
symbol: string;
|
|
1612
1797
|
};
|
|
1613
|
-
|
|
1614
|
-
|
|
1798
|
+
declare function getFluentZeroDevErc20PaymasterTokens(network?: FluentWidgetNetwork): Record<string, FluentZeroDevErc20PaymasterTokenInfo>;
|
|
1799
|
+
/**
|
|
1800
|
+
* Either a paymaster token symbol (see `getFluentZeroDevErc20PaymasterTokens`),
|
|
1801
|
+
* a bare token address, or an explicit token. Symbols are not a closed union:
|
|
1802
|
+
* which tokens are payable is data on the token definitions.
|
|
1803
|
+
*/
|
|
1804
|
+
type FluentZeroDevErc20PaymasterToken = string | {
|
|
1615
1805
|
address: Address;
|
|
1616
1806
|
symbol?: string;
|
|
1617
1807
|
};
|
|
@@ -1638,15 +1828,19 @@ declare function createFluentZeroDevErc20PaymasterRpcUrl(params?: {
|
|
|
1638
1828
|
chainId?: number;
|
|
1639
1829
|
projectId?: string;
|
|
1640
1830
|
}): string;
|
|
1831
|
+
/** The partner travels in the path, the user in the `Authorization` header. */
|
|
1832
|
+
declare function createFluentSponsorshipRpcUrl(params: {
|
|
1833
|
+
sponsorshipUrl: string;
|
|
1834
|
+
partnerId: string;
|
|
1835
|
+
}): string;
|
|
1836
|
+
declare function createFluentZeroDevSponsoredPaymaster(params: {
|
|
1837
|
+
chain: Chain;
|
|
1838
|
+
rpcUrl: string;
|
|
1839
|
+
accessToken: string;
|
|
1840
|
+
}): {
|
|
1841
|
+
getPaymasterData: (userOperation: GetPaymasterDataParameters) => Promise<_zerodev_sdk.SponsorUserOperationReturnType>;
|
|
1842
|
+
};
|
|
1641
1843
|
declare function resolveFluentZeroDevErc20PaymasterToken(token?: FluentZeroDevErc20PaymasterToken, network?: FluentWidgetNetwork): {
|
|
1642
|
-
readonly address: "0x83Fed707A8dDDC2535aE591CF19fB6C91D542D8E" | "0x1385b8f55a84f2bda13eed4099d29eae03d553b2";
|
|
1643
|
-
readonly decimals: 18;
|
|
1644
|
-
readonly symbol: "BLEND";
|
|
1645
|
-
} | {
|
|
1646
|
-
readonly address: "0x092AE7564C6611a114C20C6df766B5B35A52334A" | "0xD48e565561416dE59DA1050ED70b8d75e8eF28f9";
|
|
1647
|
-
readonly decimals: 18;
|
|
1648
|
-
readonly symbol: "USDnr";
|
|
1649
|
-
} | {
|
|
1650
1844
|
address: Address;
|
|
1651
1845
|
symbol?: string;
|
|
1652
1846
|
};
|
|
@@ -1747,7 +1941,7 @@ declare function clearPrivyRecentLoginMethod(appId: string): void;
|
|
|
1747
1941
|
|
|
1748
1942
|
declare const buttonVariants: (props?: ({
|
|
1749
1943
|
variant?: "default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
1750
|
-
size?: "default" | "
|
|
1944
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
1751
1945
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1752
1946
|
type ButtonProps = Button$1.Props & VariantProps<typeof buttonVariants> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "target" | "rel">;
|
|
1753
1947
|
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1769,9 +1963,9 @@ declare function DialogDescription({ className, ...props }: Dialog$1.Description
|
|
|
1769
1963
|
|
|
1770
1964
|
declare function Separator({ className, orientation, ...props }: Separator$1.Props): React.JSX.Element;
|
|
1771
1965
|
|
|
1772
|
-
type IconName = "coinbase" | "walletConnect" | "metaMask" | "rabby" | "keplr" | "okx" | "fluent" | "x" | "arrow-right-s-line" | "arrow-left-right-line" | "arrow-up-s-fill" | "arrow-down-s-fill" | "plus" | "eth" | "usdnr" | "blend"
|
|
1966
|
+
type IconName = "coinbase" | "walletConnect" | "metaMask" | "rabby" | "keplr" | "okx" | "fluent" | "x" | "arrow-right-s-line" | "arrow-left-right-line" | "arrow-up-s-fill" | "arrow-down-s-fill" | "plus" | "eth" | "usdnr" | "blend";
|
|
1773
1967
|
declare function Icon({ name, className, ...props }: {
|
|
1774
1968
|
name: IconName;
|
|
1775
1969
|
} & SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
1776
1970
|
|
|
1777
|
-
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,
|
|
1971
|
+
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_USER_TOKEN_LIMIT, FLUENT_WIDGET_SESSION_STORAGE_KEY, FLUENT_WIDGET_USER_TOKENS_STORAGE_KEY, FLUENT_ZERODEV_ERC20_PAYMASTER_QUERY, FLUENT_ZERODEV_PAYMASTER_DEMO_RECIPIENT, type FluentAccountCapabilities, 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 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 FluentSponsorshipReason, type FluentTokenBalance, type FluentTokenDefinition, type FluentUserTokenAddResult, 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 FluentWidgetStatus, type FluentZeroDevErc20PaymasterToken, type FluentZeroDevErc20PaymasterTokenInfo, type FluentZeroDevKernel, type FluentZeroDevPaymasterDemoResult, type FluentZeroDevPaymasterKernel, type FluentZeroDevPermissionCall, type FluentZeroDevPermissionSession, type FluentZeroDevSignerMode, Icon, type IconName, type L1ChainDefinition, type ResolvedFluentWidgetConfig, Separator, type UserTokenStore, type ZerodevIntegration, buttonVariants, clearPrivyRecentLoginMethod, createFluentBatchOp, createFluentClient, createFluentFamiliesClient, createFluentPermissionApi, createFluentPermissionClient, createFluentPermissionPolicyBuilders, createFluentPermissionSession, createFluentSponsorshipRpcUrl, createFluentUserTokenStore, createFluentZeroDevErc20Paymaster, createFluentZeroDevErc20PaymasterApprovalCall, createFluentZeroDevErc20PaymasterClient, createFluentZeroDevErc20PaymasterRpcUrl, createFluentZeroDevPermissionSession, createFluentZeroDevRpcUrl, createFluentZeroDevSponsoredPaymaster, findFluentSymbolCollisions, fluent, apps as fluentApps, fluentBridgeAbi, fluent$1 as fluentChain, fluentChains, fluentDefinitionToViemChain, integrations as fluentIntegrations, l1Chains as fluentL1Chains, fluentMainnet, fluentMainnetTokenDefaults, fluentTestnet, fluentTestnetTokenDefaults, fluentTokenIdentity, 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, readFluentTokenBalances, readFluentTokenMetadata, registryVersion, resolveBridgeAddresses, resolveFluentWidgetNetworkFromEnv, resolveFluentZeroDevErc20PaymasterToken, resolveL1Definition, selectFluentGasPaymentToken, sendFluentZeroDevErc20PaymasterDemo, sortFluentGasTokens, useFluentUserTokens, useFluentWidget, useFluentWidgetNetwork, useFluentZeroDevAccount, useWidget };
|