@funkit/connect 12.4.0 → 12.6.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/CHANGELOG.md +67 -0
- package/dist/backpack-HHGWJLWB.js +7 -0
- package/dist/clients/backpack-HHGWJLWB.js +7 -0
- package/dist/clients/{chunk-B7UU2ETA.js → chunk-4DBUYTEE.js} +1 -1
- package/dist/clients/{chunk-27VBRE7W.js → chunk-7GPRX32F.js} +8 -0
- package/dist/clients/{chunk-R6UAC2TB.js → chunk-A2WBB3UO.js} +1 -1
- package/dist/clients/{chunk-A5JW3UI6.js → chunk-ATNOIBW2.js} +1 -1
- package/dist/clients/{chunk-DYV3LRSE.js → chunk-B5KCBBSV.js} +1 -1
- package/dist/clients/{chunk-ECGTOMZQ.js → chunk-F36IJA7V.js} +5 -5
- package/dist/clients/{chunk-WCQ6HJ27.js → chunk-I5VRAFH6.js} +1 -1
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
- package/dist/clients/internal/nado/withdrawalConfig.js +2 -2
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +6 -6
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/jupiter-ICN4DJIL.js +7 -0
- package/dist/clients/lighter.js +3 -3
- package/dist/clients/mallard.js +2 -2
- package/dist/clients/nado.js +4 -4
- package/dist/clients/solflare-M46C72WA.js +7 -0
- package/dist/components/FunCheckoutHistory/AddTokenToWalletButton.d.ts +3 -3
- package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +2 -1
- package/dist/components/ModalErrorState/ModalErrorState.d.ts +8 -1
- package/dist/config/getDefaultConfig.d.ts +1 -1
- package/dist/consts/walletIcons.d.ts +7 -0
- package/dist/hooks/track/analytics/mappers.d.ts +4 -2
- package/dist/hooks/useCheckoutDirectExecution.d.ts +1 -2
- package/dist/hooks/useConnectedWalletIcons.d.ts +6 -0
- package/dist/hooks/useConnectedWallets.d.ts +12 -0
- package/dist/hooks/usePaymentMethodIcon.d.ts +11 -2
- package/dist/hooks/useSavedTokenChainSelection.d.ts +16 -0
- package/dist/index.js +3247 -2715
- package/dist/interfaces/solanaWallet.d.ts +10 -0
- package/dist/jupiter-ICN4DJIL.js +7 -0
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +3 -1
- package/dist/modals/CheckoutModal/TransferToken/useSavedTransferTokenSelection.d.ts +16 -0
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +2 -2
- package/dist/modals/WithdrawalModal/WithdrawalMethodSelect.d.ts +2 -1
- package/dist/modals/WithdrawalModal/useSavedWithdrawalChain.d.ts +13 -0
- package/dist/providers/GeneralWalletProvider.d.ts +15 -3
- package/dist/solflare-M46C72WA.js +7 -0
- package/dist/utils/solanaRelayWallet.d.ts +6 -0
- package/dist/wallets/walletConnectors/index.js +37 -37
- package/package.json +6 -6
- package/dist/modals/WithdrawalModal/useWithdrawalChainPreference.d.ts +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,72 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 12.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 86ba6ef: Preselect the chain and token a user last deposited from on the Transfer Crypto screen.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 76f165c: Token and recipient comparisons no longer treat two base58 addresses differing only in case as the same address.
|
|
12
|
+
|
|
13
|
+
`isEVMAddressEquivalent` is removed from `@funkit/utils` and `@funkit/connect-core`. Replace it with `isAddressEquivalent`, which takes the same arguments and picks the comparison from the address format: EVM hex folds case, base58 (Solana, Tron) must match exactly.
|
|
14
|
+
|
|
15
|
+
```diff
|
|
16
|
+
-import { isEVMAddressEquivalent } from '@funkit/utils'
|
|
17
|
+
+import { isAddressEquivalent } from '@funkit/utils'
|
|
18
|
+
|
|
19
|
+
-isEVMAddressEquivalent({ firstAddress, secondAddress })
|
|
20
|
+
+isAddressEquivalent({ firstAddress, secondAddress })
|
|
21
|
+
```
|
|
22
|
+
- 9311e00: Make the MetaMask icon smaller so it is more balanced with other wallet icons
|
|
23
|
+
- 86ba6ef: Fix the first chain or token pick after a remembered selection is restored reverting to the default chain.
|
|
24
|
+
- a5e893c: Optionally close the checkout modal shortly after a successful Polymarket perps transfer.
|
|
25
|
+
- 406609f: Refactor how the withdrawal destination chain preference is stored.
|
|
26
|
+
- Updated dependencies [76f165c]
|
|
27
|
+
- Updated dependencies [b29078c]
|
|
28
|
+
- Updated dependencies [b29078c]
|
|
29
|
+
- Updated dependencies [c621550]
|
|
30
|
+
- Updated dependencies [a5e893c]
|
|
31
|
+
- Updated dependencies [6fd317f]
|
|
32
|
+
- Updated dependencies [86ba6ef]
|
|
33
|
+
- Updated dependencies [406609f]
|
|
34
|
+
- @funkit/utils@5.0.0
|
|
35
|
+
- @funkit/connect-core@8.0.0
|
|
36
|
+
- @funkit/fun-relay@3.0.1
|
|
37
|
+
- @funkit/api-base@8.3.1
|
|
38
|
+
|
|
39
|
+
## 12.5.0
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
43
|
+
- 8f5a732: Quote and execute a checkout paid from a Solana wallet.
|
|
44
|
+
- a3c1f6a: `solanaWallet` now takes a `name` and an optional `icon`, used to depict the wallet in checkout.
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- bf07ca0: Evict expired analytics claims from local storage.
|
|
49
|
+
- 35a44db: Internal cleanup of how the paying wallet is resolved in checkout.
|
|
50
|
+
- 6968f06: Track additional displayed errors across checkout and withdrawal flows.
|
|
51
|
+
- 3b605ef: Track displayed brokerage two-factor authentication errors.
|
|
52
|
+
- a24608e: Track displayed virtual fiat account errors.
|
|
53
|
+
- Updated dependencies [770da6d]
|
|
54
|
+
- Updated dependencies [7e4ed3f]
|
|
55
|
+
- Updated dependencies [8f5a732]
|
|
56
|
+
- Updated dependencies [384cce3]
|
|
57
|
+
- Updated dependencies [bd149d1]
|
|
58
|
+
- Updated dependencies [933ecce]
|
|
59
|
+
- Updated dependencies [72b7cc3]
|
|
60
|
+
- Updated dependencies [933ecce]
|
|
61
|
+
- Updated dependencies [dffb517]
|
|
62
|
+
- Updated dependencies [206ae21]
|
|
63
|
+
- Updated dependencies [f32fd43]
|
|
64
|
+
- Updated dependencies [ef57ef7]
|
|
65
|
+
- Updated dependencies [b3c8a12]
|
|
66
|
+
- @funkit/connect-core@7.0.0
|
|
67
|
+
- @funkit/api-base@8.3.0
|
|
68
|
+
- @funkit/chains@2.4.0
|
|
69
|
+
|
|
3
70
|
## 12.4.0
|
|
4
71
|
|
|
5
72
|
### Minor Changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wallets/walletIcons/backpack.svg
|
|
4
|
+
var backpack_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-4.375 0 28 28"><path fill="%23e33e3f" fill-rule="evenodd" d="M11.449 2.202c1.017 0 1.972.136 2.856.389C13.439.574 11.643 0 9.643 0 7.64 0 5.84.577 4.977 2.603a10 10 0 0 1 2.842-.401zM7.586 4.226C2.753 4.226 0 8.028 0 12.718v4.817c0 .469.392.84.875.84h17.5c.483 0 .875-.371.875-.84v-4.817c0-4.69-3.202-8.492-8.034-8.492zm2.032 8.533a3.063 3.063 0 1 0 0-6.125 3.063 3.063 0 0 0 0 6.125M0 21.207c0-.47.392-.85.875-.85h17.5c.483 0 .875.38.875.85V26.3c0 .938-.784 1.699-1.75 1.699H1.75C.784 28 0 27.24 0 26.3z" clip-rule="evenodd"/></svg>';
|
|
5
|
+
export {
|
|
6
|
+
backpack_default as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wallets/walletIcons/backpack.svg
|
|
4
|
+
var backpack_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-4.375 0 28 28"><path fill="%23e33e3f" fill-rule="evenodd" d="M11.449 2.202c1.017 0 1.972.136 2.856.389C13.439.574 11.643 0 9.643 0 7.64 0 5.84.577 4.977 2.603a10 10 0 0 1 2.842-.401zM7.586 4.226C2.753 4.226 0 8.028 0 12.718v4.817c0 .469.392.84.875.84h17.5c.483 0 .875-.371.875-.84v-4.817c0-4.69-3.202-8.492-8.034-8.492zm2.032 8.533a3.063 3.063 0 1 0 0-6.125 3.063 3.063 0 0 0 0 6.125M0 21.207c0-.47.392-.85.875-.85h17.5c.483 0 .875.38.875.85V26.3c0 .938-.784 1.699-1.75 1.699H1.75C.784 28 0 27.24 0 26.3z" clip-rule="evenodd"/></svg>';
|
|
5
|
+
export {
|
|
6
|
+
backpack_default as default
|
|
7
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// src/utils/withdrawal.ts
|
|
4
4
|
import { chainMetadataById } from "@funkit/chains";
|
|
5
|
-
import {
|
|
5
|
+
import { isAddressEquivalent, isTokenEquivalent } from "@funkit/utils";
|
|
6
6
|
import { parseUnits } from "viem";
|
|
7
7
|
function isCustomWithdrawalConfig(config) {
|
|
8
8
|
return "withdrawCallback" in config;
|
|
@@ -93,6 +93,7 @@ var en_default = {
|
|
|
93
93
|
topUpWallet: "Top up wallet",
|
|
94
94
|
refundProcessing: "Funds were withdrawn, but the transaction didn't complete. A refund is being processed.",
|
|
95
95
|
orderRefunded: "Your order was refunded.",
|
|
96
|
+
walletsLabel: "Wallets",
|
|
96
97
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
97
98
|
connectWalletLabelTemplate: "Connect {{walletLabel}}"
|
|
98
99
|
},
|
|
@@ -696,6 +697,7 @@ var es_default = {
|
|
|
696
697
|
topUpWallet: "Recargar billetera",
|
|
697
698
|
refundProcessing: "Los fondos fueron retirados, pero la transacci\xF3n no se complet\xF3. Se est\xE1 procesando un reembolso.",
|
|
698
699
|
orderRefunded: "Tu pedido fue reembolsado.",
|
|
700
|
+
walletsLabel: "Billeteras",
|
|
699
701
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
700
702
|
connectWalletLabelTemplate: "Conectar {{walletLabel}}"
|
|
701
703
|
},
|
|
@@ -1293,6 +1295,7 @@ var fr_default = {
|
|
|
1293
1295
|
topUpWallet: "Approvisionner le portefeuille",
|
|
1294
1296
|
refundProcessing: "Les fonds ont \xE9t\xE9 d\xE9bit\xE9s, mais la transaction n'a pas abouti. Un remboursement est en cours.",
|
|
1295
1297
|
orderRefunded: "Votre commande a \xE9t\xE9 rembours\xE9e.",
|
|
1298
|
+
walletsLabel: "Portefeuilles",
|
|
1296
1299
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
1297
1300
|
connectWalletLabelTemplate: "Connecter {{walletLabel}}"
|
|
1298
1301
|
},
|
|
@@ -1890,6 +1893,7 @@ var ja_default = {
|
|
|
1890
1893
|
topUpWallet: "\u30A6\u30A9\u30EC\u30C3\u30C8\u306B\u30C1\u30E3\u30FC\u30B8",
|
|
1891
1894
|
refundProcessing: "\u8CC7\u91D1\u306F\u5F15\u304D\u51FA\u3055\u308C\u307E\u3057\u305F\u304C\u3001\u53D6\u5F15\u306F\u5B8C\u4E86\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8FD4\u91D1\u51E6\u7406\u4E2D\u3067\u3059\u3002",
|
|
1892
1895
|
orderRefunded: "\u3054\u6CE8\u6587\u306F\u8FD4\u91D1\u3055\u308C\u307E\u3057\u305F\u3002",
|
|
1896
|
+
walletsLabel: "\u30A6\u30A9\u30EC\u30C3\u30C8",
|
|
1893
1897
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
1894
1898
|
connectWalletLabelTemplate: "{{walletLabel}}\u3092\u63A5\u7D9A"
|
|
1895
1899
|
},
|
|
@@ -2487,6 +2491,7 @@ var ko_default = {
|
|
|
2487
2491
|
topUpWallet: "\uC9C0\uAC11 \uCDA9\uC804",
|
|
2488
2492
|
refundProcessing: "\uC790\uAE08\uC774 \uCD9C\uAE08\uB418\uC5C8\uC9C0\uB9CC \uAC70\uB798\uAC00 \uC644\uB8CC\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uD658\uBD88\uC774 \uCC98\uB9AC\uB418\uACE0 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
2489
2493
|
orderRefunded: "\uC8FC\uBB38\uC774 \uD658\uBD88\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
2494
|
+
walletsLabel: "\uC9C0\uAC11",
|
|
2490
2495
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
2491
2496
|
connectWalletLabelTemplate: "{{walletLabel}} \uC5F0\uACB0"
|
|
2492
2497
|
},
|
|
@@ -3084,6 +3089,7 @@ var ru_default = {
|
|
|
3084
3089
|
topUpWallet: "\u041F\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043A\u043E\u0448\u0435\u043B\u0451\u043A",
|
|
3085
3090
|
refundProcessing: "\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0431\u044B\u043B\u0438 \u0432\u044B\u0432\u0435\u0434\u0435\u043D\u044B, \u043D\u043E \u0442\u0440\u0430\u043D\u0437\u0430\u043A\u0446\u0438\u044F \u043D\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430. \u041E\u0431\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u0432\u043E\u0437\u0432\u0440\u0430\u0442.",
|
|
3086
3091
|
orderRefunded: "\u0412\u0430\u0448 \u0437\u0430\u043A\u0430\u0437 \u0431\u044B\u043B \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0451\u043D.",
|
|
3092
|
+
walletsLabel: "\u041A\u043E\u0448\u0435\u043B\u044C\u043A\u0438",
|
|
3087
3093
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
3088
3094
|
connectWalletLabelTemplate: "\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C {{walletLabel}}"
|
|
3089
3095
|
},
|
|
@@ -3681,6 +3687,7 @@ var tr_default = {
|
|
|
3681
3687
|
topUpWallet: "C\xFCzdana para y\xFCkle",
|
|
3682
3688
|
refundProcessing: "\u0130ade edilecek fonlar haz\u0131rland\u0131, ancak i\u015Flem tamamlanmad\u0131. \u0130ade i\u015Flemi yap\u0131l\u0131yor.",
|
|
3683
3689
|
orderRefunded: "Sipari\u015Finiz iade edildi.",
|
|
3690
|
+
walletsLabel: "C\xFCzdanlar",
|
|
3684
3691
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
3685
3692
|
connectWalletLabelTemplate: "{{walletLabel}} Ba\u011Fla"
|
|
3686
3693
|
},
|
|
@@ -4278,6 +4285,7 @@ var zh_default = {
|
|
|
4278
4285
|
topUpWallet: "\u5145\u503C\u94B1\u5305",
|
|
4279
4286
|
refundProcessing: "\u8D44\u91D1\u5DF2\u63D0\u53D6\uFF0C\u4F46\u4EA4\u6613\u672A\u5B8C\u6210\u3002\u6B63\u5728\u5904\u7406\u9000\u6B3E\u3002",
|
|
4280
4287
|
orderRefunded: "\u60A8\u7684\u8BA2\u5355\u5DF2\u9000\u6B3E\u3002",
|
|
4288
|
+
walletsLabel: "\u94B1\u5305",
|
|
4281
4289
|
walletLabelTemplate: "{{walletLabel}} ({{formattedAddress}})",
|
|
4282
4290
|
connectWalletLabelTemplate: "\u8FDE\u63A5 {{walletLabel}}"
|
|
4283
4291
|
},
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isExpectedNadoWithdrawalFailure,
|
|
4
4
|
toNadoWithdrawalErrorMessage
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-B5KCBBSV.js";
|
|
6
6
|
import {
|
|
7
7
|
toWithdrawalAmountBaseUnit
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4DBUYTEE.js";
|
|
9
9
|
import {
|
|
10
10
|
getAccount,
|
|
11
11
|
signTypedData,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-OODIKHYE.js";
|
|
14
14
|
import {
|
|
15
15
|
i18n_default
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7GPRX32F.js";
|
|
17
17
|
import {
|
|
18
18
|
generateClientMetadataForTokenTransfer
|
|
19
19
|
} from "./chunk-PENJ5JGH.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
getNadoTxNonce,
|
|
43
43
|
x18ToRawBaseUnit
|
|
44
44
|
} from "@funkit/connect-core/clients/nado";
|
|
45
|
-
import {
|
|
45
|
+
import { isAddressEquivalent } from "@funkit/utils";
|
|
46
46
|
|
|
47
47
|
// src/utils/signature.ts
|
|
48
48
|
import { isSwitchChainError, isUserRejectedError } from "@funkit/connect-core";
|
|
@@ -240,7 +240,7 @@ function assertOwnerIsSigner({
|
|
|
240
240
|
wagmiConfig
|
|
241
241
|
}) {
|
|
242
242
|
const connectedAddress = getAccount(wagmiConfig).address;
|
|
243
|
-
if (connectedAddress &&
|
|
243
|
+
if (connectedAddress && isAddressEquivalent({
|
|
244
244
|
firstAddress: connectedAddress,
|
|
245
245
|
secondAddress: walletAddress
|
|
246
246
|
})) {
|
package/dist/clients/fanatics.js
CHANGED
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
} from "./chunk-RQALGV5U.js";
|
|
11
11
|
import {
|
|
12
12
|
useFunkitTranslation
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-ATNOIBW2.js";
|
|
14
|
+
import "./chunk-7GPRX32F.js";
|
|
15
15
|
import "./chunk-AHYOV7AV.js";
|
|
16
16
|
|
|
17
17
|
// src/clients/fanatics.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createNadoWithdrawalCallback
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-F36IJA7V.js";
|
|
5
|
+
import "../../chunk-B5KCBBSV.js";
|
|
6
|
+
import "../../chunk-4DBUYTEE.js";
|
|
7
7
|
import "../../chunk-OODIKHYE.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-7GPRX32F.js";
|
|
9
9
|
import "../../chunk-PENJ5JGH.js";
|
|
10
10
|
import "../../chunk-AHYOV7AV.js";
|
|
11
11
|
export {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isExpectedNadoWithdrawalFailure,
|
|
4
4
|
toNadoWithdrawalErrorMessage
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-B5KCBBSV.js";
|
|
6
|
+
import "../../chunk-7GPRX32F.js";
|
|
7
7
|
export {
|
|
8
8
|
isExpectedNadoWithdrawalFailure,
|
|
9
9
|
toNadoWithdrawalErrorMessage
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
isNadoWithdrawalConfig
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-I5VRAFH6.js";
|
|
5
5
|
import {
|
|
6
6
|
PLACEHOLDER_FUNKIT_USER_INFO
|
|
7
7
|
} from "../../chunk-CE42WHAA.js";
|
|
8
8
|
import "../../chunk-6EU6CXNH.js";
|
|
9
9
|
import {
|
|
10
10
|
useFunkitConfig
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-A2WBB3UO.js";
|
|
12
12
|
import {
|
|
13
13
|
useFunkitTranslation
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
14
|
+
} from "../../chunk-ATNOIBW2.js";
|
|
15
|
+
import "../../chunk-4DBUYTEE.js";
|
|
16
16
|
import "../../chunk-2W2P3OS6.js";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-7GPRX32F.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
20
|
} from "../../chunk-AHYOV7AV.js";
|
|
@@ -55,7 +55,7 @@ import React, {
|
|
|
55
55
|
} from "react";
|
|
56
56
|
var GeneralWalletContext = createContext({
|
|
57
57
|
walletAddress: "",
|
|
58
|
-
payerWallets: {
|
|
58
|
+
payerWallets: { evmWallet: { address: "" }, solanaWallet: void 0 },
|
|
59
59
|
isUserLoggedIn: false,
|
|
60
60
|
loginType: "guest" /* Guest */,
|
|
61
61
|
connectorId: void 0,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useFunkitConfig
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-A2WBB3UO.js";
|
|
5
|
+
import "../../chunk-ATNOIBW2.js";
|
|
6
6
|
import {
|
|
7
7
|
useAccount
|
|
8
8
|
} from "../../chunk-2W2P3OS6.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-7GPRX32F.js";
|
|
10
10
|
import {
|
|
11
11
|
logger
|
|
12
12
|
} from "../../chunk-AHYOV7AV.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wallets/walletIcons/jupiter.svg
|
|
4
|
+
var jupiter_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 33 32"><g clip-path="url(%23a)" filter="url(%23b)"><path fill="url(%23c)" d="M3.09 25.167a16.43 16.43 0 0 0 11.621 6.75c-1.185-1.784-2.907-3.424-5.057-4.673s-4.428-1.931-6.563-2.077Z"/><path fill="url(%23d)" d="M12.543 22.27C8.4 19.864 3.916 19.25.708 20.334c.31 1.024.718 2.015 1.22 2.96 2.787-.065 5.83.692 8.663 2.337 2.832 1.645 4.998 3.915 6.323 6.369 1.07-.033 2.134-.17 3.177-.407-.648-3.323-3.406-6.915-7.548-9.323"/><path fill="url(%23e)" d="M32.285 12.5A16.42 16.42 0 0 0 11.846.627c3.546.434 7.48 1.765 11.34 4.007s6.967 5.001 9.1 7.868Z"/><path fill="url(%23f)" d="M27.127 20.358c-1.815-3.013-4.923-5.9-8.753-8.124s-7.875-3.495-11.389-3.58C3.894 8.582 1.574 9.48.622 11.12l-.02.028q-.126.462-.226.925c1.33-.525 2.87-.817 4.584-.85 3.81-.071 8.073 1.147 12.008 3.433s7.108 5.388 8.932 8.732c.818 1.506 1.329 2.99 1.53 4.407q.355-.315.691-.654l.016-.032c.952-1.641.584-4.101-1.01-6.75Z"/><path fill="url(%23g)" d="M15.46 17.248C9.598 13.842 3.117 13.309 0 15.685q.01 1.119.17 2.224a13 13 0 0 1 2.817-.522c3.483-.262 7.322.709 10.806 2.734s6.23 4.88 7.728 8.033c.414.864.73 1.771.941 2.706a16.4 16.4 0 0 0 2.017-.953c.522-3.886-3.152-9.251-9.018-12.659Z"/><path fill="url(%23h)" d="M30.143 15.314c-1.835-3.01-4.97-5.904-8.827-8.144-3.857-2.239-7.918-3.53-11.443-3.633-2.688-.078-4.77.574-5.848 1.804 4.48-.76 10.392.517 16.121 3.845 5.73 3.329 9.767 7.832 11.326 12.1.534-1.545.07-3.676-1.329-5.972"/></g><defs><linearGradient id="c" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="d" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="e" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="f" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="g" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><linearGradient id="h" x1="21.5" x2="6.667" y1="6.5" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23c7f284"/><stop offset="1" stop-color="%2300bef0"/></linearGradient><clipPath id="a"><path fill="%23fff" d="M0 0h32.285v32H0z"/></clipPath><filter id="b" width="77.775" height="77.49" x="-22.745" y="-20.47" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="2.274"/><feGaussianBlur stdDeviation="11.372"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_11565_169621"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_11565_169621" result="shape"/></filter></defs></svg>';
|
|
5
|
+
export {
|
|
6
|
+
jupiter_default as default
|
|
7
|
+
};
|
package/dist/clients/lighter.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-6EU6CXNH.js";
|
|
6
6
|
import {
|
|
7
7
|
useFunkitConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A2WBB3UO.js";
|
|
9
9
|
import {
|
|
10
10
|
AsyncImage,
|
|
11
11
|
Box,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-RQALGV5U.js";
|
|
14
14
|
import {
|
|
15
15
|
useFunkitTranslation
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ATNOIBW2.js";
|
|
17
17
|
import "./chunk-OODIKHYE.js";
|
|
18
18
|
import "./chunk-2W2P3OS6.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-7GPRX32F.js";
|
|
20
20
|
import {
|
|
21
21
|
logger
|
|
22
22
|
} from "./chunk-AHYOV7AV.js";
|
package/dist/clients/mallard.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useFunkitTranslation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ATNOIBW2.js";
|
|
5
5
|
import {
|
|
6
6
|
getAccount,
|
|
7
7
|
sendTransaction,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
useAccount,
|
|
15
15
|
useConfig
|
|
16
16
|
} from "./chunk-2W2P3OS6.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-7GPRX32F.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
20
|
} from "./chunk-AHYOV7AV.js";
|
package/dist/clients/nado.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createNadoWithdrawalCallback
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-F36IJA7V.js";
|
|
5
|
+
import "./chunk-B5KCBBSV.js";
|
|
6
|
+
import "./chunk-4DBUYTEE.js";
|
|
7
7
|
import "./chunk-OODIKHYE.js";
|
|
8
8
|
import {
|
|
9
9
|
useAccount,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-2W2P3OS6.js";
|
|
12
12
|
import {
|
|
13
13
|
i18n_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7GPRX32F.js";
|
|
15
15
|
import "./chunk-PENJ5JGH.js";
|
|
16
16
|
import {
|
|
17
17
|
logger
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/wallets/walletIcons/solflare.svg
|
|
4
|
+
var solflare_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><rect width="50" height="50" rx="12" ry="12" style="fill:%23ffef46"/><path d="m24.23 26.42 2.46-2.38 4.59 1.5c3.01 1 4.51 2.84 4.51 5.43 0 1.96-.75 3.26-2.25 4.93l-.46.5.17-1.17c.67-4.26-.58-6.09-4.72-7.43l-4.3-1.38Zm-6.18-14.57 12.52 4.17-2.71 2.59-6.51-2.17c-2.25-.75-3.01-1.96-3.3-4.51v-.08Zm-.75 21.21 2.84-2.71 5.34 1.75c2.8.92 3.76 2.13 3.46 5.18l-11.65-4.22Zm-3.59-12.11c0-.79.42-1.54 1.13-2.17.75 1.09 2.05 2.05 4.09 2.71l4.42 1.46-2.46 2.38-4.34-1.42c-2-.67-2.84-1.67-2.84-2.96m13.11 21.92C36 36.78 40.93 32.64 40.93 27.55c0-3.38-2-5.26-6.43-6.72l-3.34-1.13 9.14-8.77-1.84-1.96-2.71 2.38-12.81-4.22c-3.97 1.29-8.97 5.09-8.97 8.89 0 .42.04.83.17 1.29-3.3 1.88-4.63 3.63-4.63 5.8 0 2.05 1.09 4.09 4.55 5.22l2.75.92-9.52 9.14 1.84 1.96 2.96-2.71 14.73 5.22Z" style="fill:%2302050a;stroke:%23ffef46;stroke-miterlimit:10;stroke-width:.5px"/></svg>';
|
|
5
|
+
export {
|
|
6
|
+
solflare_default as default
|
|
7
|
+
};
|
|
@@ -18,9 +18,9 @@ interface AddTokenToWalletBannerProps {
|
|
|
18
18
|
errorMessage: string;
|
|
19
19
|
/**
|
|
20
20
|
* Icon for the connected wallet (idle/error states only). Resolved by
|
|
21
|
-
* `usePaymentMethodIcon(PaymentMethod.ACCOUNT_BALANCE, 16)`
|
|
22
|
-
* wrapper so it mirrors the wallet glyph the rest of the SDK
|
|
23
|
-
* / success states substitute a spinner / check.
|
|
21
|
+
* `usePaymentMethodIcon(PaymentMethod.ACCOUNT_BALANCE, { iconSize: 16 })`
|
|
22
|
+
* in the smart wrapper so it mirrors the wallet glyph the rest of the SDK
|
|
23
|
+
* uses; pending / success states substitute a spinner / check.
|
|
24
24
|
*/
|
|
25
25
|
walletIcon: ReactNode;
|
|
26
26
|
/** Called when the user clicks; only fires when `status` allows it. */
|
|
@@ -4,10 +4,11 @@ import { type PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
|
4
4
|
type PaymentRouteSummaryProps = {
|
|
5
5
|
paymentMethodInfo: PaymentMethodInfo | null;
|
|
6
6
|
customRecipient: FunAddress | undefined;
|
|
7
|
+
sourceAddress?: string | null;
|
|
7
8
|
sourceRedirect?: ReactNode;
|
|
8
9
|
destinationRedirect?: ReactNode;
|
|
9
10
|
isWithdrawal?: boolean;
|
|
10
11
|
};
|
|
11
|
-
export declare const PaymentRouteSummary: ({ paymentMethodInfo, customRecipient, sourceRedirect, destinationRedirect, isWithdrawal, }: PaymentRouteSummaryProps) => React.JSX.Element;
|
|
12
|
+
export declare const PaymentRouteSummary: ({ paymentMethodInfo, customRecipient, sourceAddress, sourceRedirect, destinationRedirect, isWithdrawal, }: PaymentRouteSummaryProps) => React.JSX.Element;
|
|
12
13
|
export declare const PaymentRouteSummarySkeletonLoader: () => React.JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type BoxProps } from '../Box/Box';
|
|
3
|
+
import type { ErrorNotification } from '../FunNotification/FunNotification';
|
|
4
|
+
import type { AnalyticsFlow } from '../../hooks/track/analytics/events';
|
|
5
|
+
import type { FunCheckoutStep } from '../../modals/CheckoutModal/FunCheckoutStep';
|
|
6
|
+
import type { WithdrawalModalStep } from '../../modals/WithdrawalModal/types';
|
|
3
7
|
interface ModalErrorStateProps {
|
|
4
8
|
/** Icon rendered inside a 32×32 circular `offBackground` container. Defaults to a filled InfoIcon. */
|
|
5
9
|
icon?: ReactNode;
|
|
@@ -12,6 +16,9 @@ interface ModalErrorStateProps {
|
|
|
12
16
|
paddingTop?: BoxProps['paddingTop'];
|
|
13
17
|
/** Optional style for the container. */
|
|
14
18
|
style?: React.CSSProperties;
|
|
19
|
+
flow: AnalyticsFlow;
|
|
20
|
+
step: FunCheckoutStep | WithdrawalModalStep;
|
|
21
|
+
track: Omit<ErrorNotification, 'message'> | null;
|
|
15
22
|
}
|
|
16
23
|
/**
|
|
17
24
|
* Centered icon + body message used inside modal steps when a content
|
|
@@ -20,5 +27,5 @@ interface ModalErrorStateProps {
|
|
|
20
27
|
* `minHeight`.
|
|
21
28
|
*
|
|
22
29
|
*/
|
|
23
|
-
export declare function ModalErrorState({ icon, children, minHeight, paddingBottom, paddingTop, style, }: ModalErrorStateProps): React.JSX.Element;
|
|
30
|
+
export declare function ModalErrorState({ icon, children, flow, minHeight, paddingBottom, paddingTop, step, style, track, }: ModalErrorStateProps): React.JSX.Element;
|
|
24
31
|
export {};
|
|
@@ -15,7 +15,7 @@ export interface CreateFunkitWagmiConfigParameters extends WagmiConfigParameters
|
|
|
15
15
|
}
|
|
16
16
|
export declare const createFunkitWagmiConfig: (rawWagmiConfig: CreateFunkitWagmiConfigParameters) => import("wagmi").Config;
|
|
17
17
|
/**
|
|
18
|
-
* Get default funkit-supported checkout chains
|
|
18
|
+
* Get default funkit-supported checkout chains. EVM only — this feeds wagmi.
|
|
19
19
|
*/
|
|
20
20
|
export declare const getDefaultChains: () => [Chain, ...Chain[]];
|
|
21
21
|
/**
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Connector } from 'wagmi';
|
|
2
|
+
import type { AsyncImageSrc } from '../components/AsyncImage/useAsyncImage';
|
|
3
|
+
/** Hosts spell names freely, so compare on letters and digits alone. */
|
|
4
|
+
export declare function normalizeWalletName(name: string): string;
|
|
5
|
+
export declare function getWalletIconByName(name: string | undefined): (() => Promise<string>) | undefined;
|
|
6
|
+
/** Bundled funkit icon, else the one the wallet announced, else by name. */
|
|
7
|
+
export declare function getConnectorIcon(connector: Connector | undefined): string | AsyncImageSrc | undefined;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { FormOfPaymentType, type MeldServiceProvider } from '@funkit/api-base';
|
|
2
2
|
import { PaymentMethod, type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
3
|
-
import type { AnalyticsStep, PaymentMethodProperties } from './events';
|
|
4
|
-
import
|
|
3
|
+
import type { AnalyticsFlow, AnalyticsStep, PaymentMethodProperties } from './events';
|
|
4
|
+
import { FunCheckoutStep } from '../../../modals/CheckoutModal/FunCheckoutStep';
|
|
5
|
+
import type { CheckoutModalState } from '../../../modals/CheckoutModal/stepTransition';
|
|
5
6
|
import type { WithdrawalModalStep } from '../../../modals/WithdrawalModal/types';
|
|
6
7
|
/** Round analytics amounts before Statsig stringifies event metadata. */
|
|
7
8
|
export declare function formatAnalyticsAmount(amount: number | null): string | null;
|
|
8
9
|
export declare function formatAnalyticsStep(step: FunCheckoutStep | WithdrawalModalStep): AnalyticsStep;
|
|
10
|
+
export declare function getCheckoutModalAnalyticsFlow(modalState: CheckoutModalState): AnalyticsFlow;
|
|
9
11
|
export declare function getHistoricalSourceAddress(sourceOfFund: string | null | undefined): string | null;
|
|
10
12
|
/** Selected checkout provider, such as a Bluvo exchange or wallet connector. */
|
|
11
13
|
export declare function resolveProvider(args: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DirectExecutionType } from '@funkit/api-base';
|
|
2
|
-
import type { FunAddress } from '@funkit/api-base';
|
|
1
|
+
import { DirectExecutionType, type FunAddress } from '@funkit/api-base';
|
|
3
2
|
import type { RelayTxHash, RelayVmType } from '@funkit/fun-relay';
|
|
4
3
|
import type { CheckoutQuoteResponse } from '@funkit/utils';
|
|
5
4
|
import type { Address, Hex } from 'viem';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The vendors a generic wallet row stands for. Null for a single vendor, which
|
|
4
|
+
* the leading icon already depicts — a hook so the row renders no empty slot.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useConnectedWalletIcons(): ReactNode;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SolanaAddress } from '@funkit/api-base';
|
|
2
|
+
import type { Address } from 'viem';
|
|
3
|
+
import { type PayerWallet } from '../providers/GeneralWalletProvider';
|
|
4
|
+
export type ConnectedWallet = PayerWallet<Address> | PayerWallet<SolanaAddress>;
|
|
5
|
+
/**
|
|
6
|
+
* Every wallet the session can act through, one entry per ecosystem. Two
|
|
7
|
+
* entries mean two addresses, even when one vendor supplies both.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useConnectedWallets(): ConnectedWallet[];
|
|
10
|
+
/** The single vendor behind the whole set, or undefined if there are several. */
|
|
11
|
+
export declare function soleWalletVendor(wallets: ConnectedWallet[]): ConnectedWallet | undefined;
|
|
12
|
+
export declare function usePayerWallet(address: string | null): PayerWallet | undefined;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type PayerWallet } from '../providers/GeneralWalletProvider';
|
|
2
3
|
import { PaymentMethod, type PaymentMethodInfo } from '../domains/paymentMethods';
|
|
3
4
|
export declare const PAYMENT_METHOD_ICONS: Record<Exclude<PaymentMethod, PaymentMethod.ACCOUNT_BALANCE>, (size: number) => ReactNode>;
|
|
5
|
+
interface WalletRowOptions {
|
|
6
|
+
iconSize?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Set by surfaces showing a committed route. History records an address but
|
|
9
|
+
* no icon, so the wallet that paid is named beside the generic glyph.
|
|
10
|
+
*/
|
|
11
|
+
payerWallet?: PayerWallet;
|
|
12
|
+
}
|
|
4
13
|
/**
|
|
5
14
|
Reference ENG-716
|
|
6
15
|
* EOA wallet users
|
|
@@ -8,10 +17,10 @@ export declare const PAYMENT_METHOD_ICONS: Record<Exclude<PaymentMethod, Payment
|
|
|
8
17
|
* if no SDK icons available, show icon from wagmi
|
|
9
18
|
* otherwise show fallback icon EVM
|
|
10
19
|
*/
|
|
11
|
-
export declare function usePaymentMethodIcon(paymentMethod: PaymentMethod, iconSize?:
|
|
20
|
+
export declare function usePaymentMethodIcon(paymentMethod: PaymentMethod, { iconSize, payerWallet, }?: WalletRowOptions): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
12
21
|
interface PaymentMethodInfoLabel {
|
|
13
22
|
text: string;
|
|
14
23
|
icon: ReactNode;
|
|
15
24
|
}
|
|
16
|
-
export declare const usePaymentMethodInfoLabel: (methodInfo: PaymentMethodInfo, iconSize?:
|
|
25
|
+
export declare const usePaymentMethodInfoLabel: (methodInfo: PaymentMethodInfo, { iconSize, payerWallet, }?: WalletRowOptions) => PaymentMethodInfoLabel;
|
|
17
26
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TransferTokenDefault as TokenChainSelection } from './useTokenAndChainDropdown';
|
|
2
|
+
export interface UseSavedTokenChainSelectionOptions {
|
|
3
|
+
/** Isolates independent selection flows, e.g. withdrawal and deposit. */
|
|
4
|
+
scope: string;
|
|
5
|
+
/** Owned by the calling flow, so each one rolls out on its own gate. */
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Remembers an account's last chain/token pair per flow. Callers decide what to
|
|
10
|
+
* restore from it: a flow whose token comes from config should keep only the
|
|
11
|
+
* chain, so a config change still outranks a stale stored token.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useSavedTokenChainSelection({ scope, enabled, }: UseSavedTokenChainSelectionOptions): {
|
|
14
|
+
savedSelection: TokenChainSelection | undefined;
|
|
15
|
+
saveSelection: (selection: TokenChainSelection) => void;
|
|
16
|
+
};
|