@funkit/connect 5.3.3 → 5.3.5

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/{chunk-ZX757M5P.js → chunk-CRTRMZFT.js} +8 -1
  3. package/dist/{chunk-AIST42FG.js → chunk-KCSHTK5R.js} +8 -1
  4. package/dist/components/Box/Box.d.ts +21 -21
  5. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryContent.d.ts +0 -1
  6. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +6 -3
  7. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +1 -2
  8. package/dist/config/getDefaultConfig.d.ts +33 -0
  9. package/dist/css/sprinkles.css.d.ts +37 -23
  10. package/dist/domains/asset.d.ts +3 -2
  11. package/dist/domains/wallet.d.ts +1 -1
  12. package/dist/hooks/useCheckoutDirectExecution.d.ts +10 -1
  13. package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +3 -3
  14. package/dist/hooks/useFrogAccount.d.ts +1 -0
  15. package/dist/hooks/useReceiveAmountLabel.d.ts +2 -1
  16. package/dist/hooks/useRelayBypass.d.ts +2 -0
  17. package/dist/hooks/useRelayExecutionInfo.d.ts +1 -2
  18. package/dist/hooks/useWalletLabel.d.ts +5 -0
  19. package/dist/index.css +2023 -1582
  20. package/dist/index.js +2007 -2088
  21. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +1 -1
  22. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +2 -1
  23. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +3 -1
  24. package/dist/modals/CheckoutModal/stepTransition.d.ts +2 -1
  25. package/dist/modals/ProfileDetails/ActivityTraversalContext.d.ts +4 -3
  26. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +4 -4
  27. package/dist/providers/FunkitConfigContext.d.ts +1 -0
  28. package/dist/providers/FunkitHistoryContext.d.ts +4 -7
  29. package/dist/providers/FunkitThemeProvider.d.ts +24 -3
  30. package/dist/themes/darkTheme.js +1 -1
  31. package/dist/themes/lightTheme.js +1 -1
  32. package/dist/utils/checkout.d.ts +15 -14
  33. package/dist/utils/consts.d.ts +1 -0
  34. package/dist/utils/flags/config.d.ts +0 -20
  35. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +92 -0
  39. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +92 -0
  40. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +94 -0
  41. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +103 -0
  42. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +69 -0
  43. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +110 -0
  44. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +99 -0
  45. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +100 -0
  46. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +93 -0
  47. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +96 -0
  48. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +106 -0
  49. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +95 -0
  50. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +96 -0
  51. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +87 -0
  52. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +70 -0
  53. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +146 -0
  54. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +98 -0
  55. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +66 -0
  56. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  57. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  58. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  59. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  60. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  61. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  62. package/dist/wallets/walletConnectors/index.js +56 -56
  63. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  64. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  65. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  66. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  67. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  68. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  69. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  70. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  71. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  72. package/package.json +12 -12
  73. package/dist/domains/relay.d.ts +0 -53
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { AssetHoldingsItem } from '~/utils/assets';
3
- import type { FunkitTextCustomizationsConfig } from '~/providers/FunkitConfigContext';
3
+ import { type FunkitTextCustomizationsConfig } from '~/providers/FunkitConfigContext';
4
4
  import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
5
5
  import type { FunCheckoutStep, ModalStepComponentProps } from '../stepTransition';
6
6
  interface InputAmountLoadedProps extends ModalStepComponentProps<FunCheckoutStep.INPUT_AMOUNT> {
@@ -2,6 +2,7 @@ import type { PaymentMethod } from '~/domains/paymentMethods';
2
2
  import type { AssetHoldingsItem } from '~/utils/assets';
3
3
  import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
4
4
  export interface AmountInputInitOptions {
5
+ apiKey: string;
5
6
  checkoutConfig: FunkitCheckoutConfig;
6
7
  paymentMethod: PaymentMethod;
7
8
  sourceHolding: AssetHoldingsItem | null;
@@ -71,6 +72,6 @@ export type AmountInputError = {
71
72
  /** Input is empty */
72
73
  type: 'noInput';
73
74
  };
74
- export declare function initializeState({ checkoutConfig, maxUsd, minUsd, paymentMethod, sourceHolding, unitPrice, }: AmountInputInitOptions): AmountInputState;
75
+ export declare function initializeState({ apiKey, checkoutConfig, maxUsd, minUsd, paymentMethod, sourceHolding, unitPrice, }: AmountInputInitOptions): AmountInputState;
75
76
  export declare function reduceState(state: AmountInputState, action: AmountInputAction): AmountInputState;
76
77
  export declare function getDerivedState(state: AmountInputState): AmountInputDerivedState;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PaymentMethod, type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
2
+ import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
3
3
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
4
4
  export type LoadingAccountState = CheckoutModalCommonState;
5
5
  export type LoadingAccountNext = {
@@ -12,7 +12,9 @@ export type LoadingAccountNext = {
12
12
  usablePaymentMethod: PaymentMethod.VIRTUAL_BANK;
13
13
  paymentMethodInfo: PaymentMethodVirtualBankInfo;
14
14
  } | {
15
+ /** Can be set to null to skip auto payment method selection */
15
16
  usablePaymentMethod: null | PaymentMethod.TOKEN_TRANSFER;
17
+ paymentMethodInfo?: ConnectablePaymentMethodInfo;
16
18
  };
17
19
  export declare const LoadingAccountInfo: ModalStepInfo<FunCheckoutStep.LOADING_ACCOUNT>;
18
20
  /** A placeholder component to handle redirecting to the checkout history page */
@@ -64,7 +64,7 @@ export type ModalStepInfo<S extends FunCheckoutStep> = {
64
64
  onNext(state: CheckoutModalState<S>, payload: NextPayload<S>): CheckoutModalState;
65
65
  showFullHeight?: boolean;
66
66
  /** Defaults to checkoutItem.initSettings.config.modalTitle (returning undefined uses default) */
67
- title?(textCustomizations: FunkitTextCustomizationsConfig, isDydx: boolean): string | undefined;
67
+ title?(textCustomizations: FunkitTextCustomizationsConfig): string | undefined;
68
68
  /** If title is not defined in config nor with the title() function, this is used instead. Defaults to 'Checkout' */
69
69
  fallbackTitle?: string;
70
70
  };
@@ -115,6 +115,7 @@ type NextPayload<S extends FunCheckoutStep = FunCheckoutStep> = {
115
115
  [FunCheckoutStep.FIAT_ACCOUNT_DETAIL]: FiatAccountDetailNext;
116
116
  [FunCheckoutStep.ERROR_SCREEN]: null;
117
117
  }[S] & {
118
+ /** Whether screen transition should change direction to simulate back transition. Only applies if there is a history entry in the stack*/
118
119
  reverseAnimation?: boolean;
119
120
  skipAnimation?: boolean;
120
121
  wipeHistory?: boolean;
@@ -1,5 +1,6 @@
1
1
  import React, { type ReactNode } from 'react';
2
2
  import type { StateSnapshot } from 'react-virtuoso';
3
+ import type { Hex } from 'viem';
3
4
  import type { HistoryContentPages } from '../../utils/checkoutHistory';
4
5
  import type { SelectedHomeTab } from './FunProfileViews/Home';
5
6
  import type { FunProfileView } from './ProfileDetails';
@@ -8,7 +9,7 @@ export interface ReturnViewPresets {
8
9
  scrollState?: StateSnapshot;
9
10
  }
10
11
  export interface BaseActivitySelection {
11
- depositAddress: `0x${string}`;
12
+ checkoutId: Hex;
12
13
  initialPage: HistoryContentPages;
13
14
  returnViewPresets: ReturnViewPresets;
14
15
  }
@@ -21,7 +22,7 @@ export declare const ActivityTraversalContext: React.Context<{
21
22
  selectedPurchaseInitView: HistoryContentPages | undefined;
22
23
  returnView: FunProfileView | undefined;
23
24
  returnViewPresets: ReturnViewPresets;
24
- onSelectActivity: ({ depositAddress, initialPage, returnView, returnViewPresets, onRedirect, }: ActivitySelection) => void;
25
+ onSelectActivity: ({ checkoutId, initialPage, returnView, returnViewPresets, onRedirect, }: ActivitySelection) => void;
25
26
  resetActivityTraversal: () => void;
26
27
  }>;
27
28
  export declare const ActivityTraversalProvider: ({ children, }: {
@@ -32,6 +33,6 @@ export declare const useActivityTraversal: () => {
32
33
  selectedPurchaseInitView: HistoryContentPages | undefined;
33
34
  returnView: FunProfileView | undefined;
34
35
  returnViewPresets: ReturnViewPresets;
35
- onSelectActivity: ({ depositAddress, initialPage, returnView, returnViewPresets, onRedirect, }: ActivitySelection) => void;
36
+ onSelectActivity: ({ checkoutId, initialPage, returnView, returnViewPresets, onRedirect, }: ActivitySelection) => void;
36
37
  resetActivityTraversal: () => void;
37
38
  };
@@ -1,9 +1,9 @@
1
- import type { CheckoutHistoryItem } from '@funkit/api-base';
2
1
  import React from 'react';
3
- import type { Address } from 'viem';
2
+ import type { Hex } from 'viem';
3
+ import type { MergedCheckoutHistoryItem } from '~/utils/checkout';
4
4
  import { HistoryContentPages } from '~/utils/checkoutHistory';
5
5
  export declare const HomeCheckoutDisplayRow: ({ checkoutHistoryItem, onSelect, }: {
6
- checkoutHistoryItem: CheckoutHistoryItem;
7
- onSelect: (depositAddress: Address, initialPage: HistoryContentPages) => void;
6
+ checkoutHistoryItem: MergedCheckoutHistoryItem;
7
+ onSelect: (checkoutId: Hex, initialPage: HistoryContentPages) => void;
8
8
  }) => React.JSX.Element;
9
9
  export declare const HomeCheckoutDisplayRowSkeleton: () => React.JSX.Element;
@@ -6,6 +6,7 @@ export interface FunkitTextCustomizationsConfig {
6
6
  debitOrCredit: string;
7
7
  accountBalance: string;
8
8
  selectAccount: string;
9
+ sourceChangeTitle?: string;
9
10
  sourceMethodTitle: string;
10
11
  tokensListTitle: string;
11
12
  transferTokens: string;
@@ -1,15 +1,12 @@
1
1
  import { type CheckoutHistoryItem, type DirectExecution } from '@funkit/api-base';
2
2
  import React, { type ReactNode } from 'react';
3
- import type { Address } from 'viem';
4
- import { type CheckoutHistoryDepositAddrMap, type CheckoutHistoryStateMap } from '../utils/checkout';
3
+ import type { Address, Hex } from 'viem';
4
+ import { type MergedCheckoutHistoryItem } from '../utils/checkout';
5
5
  import { type PurifiedCheckoutHistoryItem } from '../utils/purifyCheckoutHistoryItem';
6
6
  export type { HistoricalCheckoutItem, ServerCheckoutConfig, } from '~/domains/clientMetadata';
7
7
  export type { FunkitCheckoutQuoteResult } from '~/domains/quote';
8
8
  interface FunkitCheckoutHistoryContextInterface {
9
- checkoutHistoryList: CheckoutHistoryItem[];
10
- checkoutHistoryStateMap: CheckoutHistoryStateMap;
11
- checkoutHistoryDepositAddrMap: CheckoutHistoryDepositAddrMap;
12
- checkoutHistoryCurrentDepositAddrMap: CheckoutHistoryDepositAddrMap;
9
+ checkoutHistoryList: MergedCheckoutHistoryItem[];
13
10
  isCheckoutHistoryInited: boolean;
14
11
  isRefreshingCheckoutHistory: boolean;
15
12
  refreshCheckoutHistory(): void;
@@ -37,7 +34,7 @@ export declare function useCheckoutListenerByCheckoutId(checkoutId: string): Pur
37
34
  /**
38
35
  * Internal hook to handle post-checkout, PER-BACKEND-CHECKOUT ITEM.
39
36
  */
40
- export declare const useFunkitPostCheckoutInternal: (depositAddress: Address) => {
37
+ export declare const useFunkitPostCheckoutInternal: (checkoutId: Hex) => {
41
38
  isLoading: boolean;
42
39
  checkoutHistoryInfo: CheckoutHistoryItem | undefined;
43
40
  directExecutionInfo: DirectExecution | undefined;
@@ -78,7 +78,6 @@ export declare const useActiveTheme: () => {
78
78
  buttonBackgroundHover: string;
79
79
  buttonBackgroundPressed: string;
80
80
  buttonBackgroundDisabled: string;
81
- buttonBorderHover: string;
82
81
  buttonTextSecondaryDisabled: string;
83
82
  buttonTextSecondary: string;
84
83
  buttonIconBackgroundHover: string;
@@ -114,6 +113,14 @@ export declare const useActiveTheme: () => {
114
113
  announceGradientTo: string;
115
114
  modalHeaderDivider: string;
116
115
  modalFooterDivider: string;
116
+ fiatPendingGradientFrom: string;
117
+ fiatPendingGradientTo: string;
118
+ fiatSuccessBackgroundFill: string;
119
+ fiatFailedBackgroundFill: string;
120
+ fiatStatusIconBorder: string;
121
+ fiatAccountIconFill: string;
122
+ fiatAccountGradientFrom: string;
123
+ fiatAccountGradientTo: string;
117
124
  };
118
125
  fonts: {
119
126
  body: string;
@@ -259,7 +266,6 @@ export declare const useActiveTheme: () => {
259
266
  buttonBackgroundHover: string;
260
267
  buttonBackgroundPressed: string;
261
268
  buttonBackgroundDisabled: string;
262
- buttonBorderHover: string;
263
269
  buttonTextSecondaryDisabled: string;
264
270
  buttonTextSecondary: string;
265
271
  buttonIconBackgroundHover: string;
@@ -295,6 +301,14 @@ export declare const useActiveTheme: () => {
295
301
  announceGradientTo: string;
296
302
  modalHeaderDivider: string;
297
303
  modalFooterDivider: string;
304
+ fiatPendingGradientFrom: string;
305
+ fiatPendingGradientTo: string;
306
+ fiatSuccessBackgroundFill: string;
307
+ fiatFailedBackgroundFill: string;
308
+ fiatStatusIconBorder: string;
309
+ fiatAccountIconFill: string;
310
+ fiatAccountGradientFrom: string;
311
+ fiatAccountGradientTo: string;
298
312
  };
299
313
  fonts: {
300
314
  body: string;
@@ -438,7 +452,6 @@ export declare const useActiveTheme: () => {
438
452
  buttonBackgroundHover: string;
439
453
  buttonBackgroundPressed: string;
440
454
  buttonBackgroundDisabled: string;
441
- buttonBorderHover: string;
442
455
  buttonTextSecondaryDisabled: string;
443
456
  buttonTextSecondary: string;
444
457
  buttonIconBackgroundHover: string;
@@ -474,6 +487,14 @@ export declare const useActiveTheme: () => {
474
487
  announceGradientTo: string;
475
488
  modalHeaderDivider: string;
476
489
  modalFooterDivider: string;
490
+ fiatPendingGradientFrom: string;
491
+ fiatPendingGradientTo: string;
492
+ fiatSuccessBackgroundFill: string;
493
+ fiatFailedBackgroundFill: string;
494
+ fiatStatusIconBorder: string;
495
+ fiatAccountIconFill: string;
496
+ fiatAccountGradientFrom: string;
497
+ fiatAccountGradientTo: string;
477
498
  };
478
499
  fonts: {
479
500
  body: string;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-ZX757M5P.js";
4
+ } from "../chunk-CRTRMZFT.js";
5
5
  import "../chunk-CRPOYQ6X.js";
6
6
  export {
7
7
  darkTheme
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-AIST42FG.js";
4
+ } from "../chunk-KCSHTK5R.js";
5
5
  import "../chunk-CRPOYQ6X.js";
6
6
  export {
7
7
  lightTheme
@@ -1,6 +1,6 @@
1
- import { type CheckoutHistoryItem, type CheckoutQuoteResponse } from '@funkit/api-base';
1
+ import { type CheckoutHistoryItem, type CheckoutQuoteResponse, type CheckoutRefundState, CheckoutState, type DirectExecution } from '@funkit/api-base';
2
2
  import { type Config } from '@wagmi/core';
3
- import { type Address } from 'viem';
3
+ import { type Address, type Hex } from 'viem';
4
4
  import type { UseConfigReturnType } from 'wagmi';
5
5
  import type { ServerCheckoutConfig } from '~/domains/clientMetadata';
6
6
  import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
@@ -75,17 +75,6 @@ export type TokenInfo = {
75
75
  * @returns List of tokenItem objects
76
76
  */
77
77
  export declare function decorateTokenList(tokensChainMap: Record<string, Set<string>>, targetChainId: string, apiKey: string): Promise<TokenInfo[]>;
78
- export interface CheckoutHistoryDepositAddrMap {
79
- [depositAddr: string]: CheckoutHistoryItem;
80
- }
81
- export interface CheckoutHistoryStateMap {
82
- [checkoutState: string]: CheckoutHistoryItem[];
83
- }
84
- export declare function categorizeCheckoutHistories(checkoutHistoryList: CheckoutHistoryItem[]): {
85
- stateMap: CheckoutHistoryStateMap;
86
- depositAddrMap: CheckoutHistoryDepositAddrMap;
87
- currentDepositAddrMap: CheckoutHistoryDepositAddrMap;
88
- };
89
78
  export declare function formatTokenAmountForMoonpay(amount: number, mpCurrencyCode: string): string;
90
79
  export declare function getTimeFromNowSeconds(startTimeMs: number, durationMs: number): number;
91
80
  /**
@@ -139,6 +128,18 @@ export declare function isCheckoutPostActionRequired(config: FunkitCheckoutConfi
139
128
  /**
140
129
  * @returns whether we should show the checkout to the user (ie. supported in current sdk version & not cancelled)
141
130
  */
142
- export declare const isCheckoutValid: (checkout: CheckoutHistoryItem) => boolean;
131
+ export declare const isCheckoutValid: (checkout: CheckoutHistoryItem | MergedCheckoutHistoryItem) => boolean;
143
132
  export declare const isCheckoutHistoryDirectExecution: (checkoutId: string) => boolean;
133
+ export type MergedCheckoutHistoryItem = {
134
+ directExecution: boolean;
135
+ /** For direction execution this is the tx hash, for checkouts it is the deposit address */
136
+ id: Hex;
137
+ refundState?: CheckoutRefundState;
138
+ state: CheckoutState;
139
+ } & ((CheckoutHistoryItem & {
140
+ directExecution: false;
141
+ }) | (DirectExecution & {
142
+ directExecution: true;
143
+ }));
144
+ export declare function toMergedCheckoutHistoryItem(item: CheckoutHistoryItem | DirectExecution): MergedCheckoutHistoryItem;
144
145
  export {};
@@ -1,3 +1,4 @@
1
1
  export declare const MIN_CHECKOUT_AMOUNT_USD = 1;
2
2
  export declare const LOW_BALANCE = "Low Balance";
3
3
  export declare const CONTACT_US_LINK = "https://intercom.help/funxyz/en/articles/10732578-contact-us";
4
+ export declare const DEFAULT_CHECKOUT_HISTORY_DETAIL_TITLE = "Your Purchase";
@@ -1,16 +1,4 @@
1
1
  export declare const flagConfig: {
2
- disable_mantle_source_assets: {
3
- type: "boolean";
4
- default_value: true;
5
- };
6
- disable_zksync_source_assets: {
7
- type: "boolean";
8
- default_value: true;
9
- };
10
- supported_exchanges: {
11
- type: "string";
12
- default_value: string;
13
- };
14
2
  supported_exchanges_v2: {
15
3
  type: "string";
16
4
  default_value: string;
@@ -149,14 +137,6 @@ export declare const flagConfig: {
149
137
  type: "string";
150
138
  default_value: string;
151
139
  };
152
- display_solana_new_badge: {
153
- type: "boolean";
154
- default_value: false;
155
- };
156
- display_solana_deposits_banner: {
157
- type: "boolean";
158
- default_value: false;
159
- };
160
140
  token_transfer_new_tokens: {
161
141
  type: "string";
162
142
  default_value: string;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-W6N74MS3.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-545L7Y4M.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-A5APNTGL.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-7GSNBOD3.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  bitgetWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-6ONTSPEY.js";
5
- import "../chunk-23WIEY36.js";
4
+ } from "../chunk-W5O4YSZN.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-23WIEY36.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-23WIEY36.js";
9
+
10
+ // src/wallets/walletConnectors/roninWallet/roninWallet.ts
11
+ var roninWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isRoninInjected = hasInjectedProvider({
16
+ namespace: "ronin.provider"
17
+ });
18
+ return {
19
+ id: "ronin",
20
+ name: "Ronin Wallet",
21
+ iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
22
+ iconBackground: "#ffffff",
23
+ rdns: "com.roninchain.wallet",
24
+ installed: isRoninInjected || void 0,
25
+ downloadUrls: {
26
+ android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
27
+ ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
28
+ mobile: "https://wallet.roninchain.com",
29
+ chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
30
+ edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
31
+ firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
32
+ browserExtension: "https://wallet.roninchain.com/",
33
+ qrCode: "https://wallet.roninchain.com/"
34
+ },
35
+ mobile: {
36
+ getUri: (uri) => `roninwallet://wc?uri=${encodeURIComponent(uri)}`
37
+ },
38
+ qrCode: {
39
+ getUri: (uri) => uri,
40
+ instructions: {
41
+ learnMoreUrl: "https://wallet.roninchain.com/",
42
+ steps: [
43
+ {
44
+ description: "wallet_connectors.ronin.qr_code.step1.description",
45
+ step: "install",
46
+ title: "wallet_connectors.ronin.qr_code.step1.title"
47
+ },
48
+ {
49
+ description: "wallet_connectors.ronin.qr_code.step2.description",
50
+ step: "create",
51
+ title: "wallet_connectors.ronin.qr_code.step2.title"
52
+ },
53
+ {
54
+ description: "wallet_connectors.ronin.qr_code.step3.description",
55
+ step: "scan",
56
+ title: "wallet_connectors.ronin.qr_code.step3.title"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ extension: {
62
+ instructions: {
63
+ learnMoreUrl: "https://wallet.roninchain.com/",
64
+ steps: [
65
+ {
66
+ description: "wallet_connectors.ronin.extension.step1.description",
67
+ step: "install",
68
+ title: "wallet_connectors.ronin.extension.step1.title"
69
+ },
70
+ {
71
+ description: "wallet_connectors.ronin.extension.step2.description",
72
+ step: "create",
73
+ title: "wallet_connectors.ronin.extension.step2.title"
74
+ },
75
+ {
76
+ description: "wallet_connectors.ronin.extension.step3.description",
77
+ step: "refresh",
78
+ title: "wallet_connectors.ronin.extension.step3.title"
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ createConnector: isRoninInjected ? getInjectedConnector({ namespace: "ronin.provider" }) : getWalletConnectConnector({
84
+ projectId,
85
+ walletConnectParameters
86
+ })
87
+ };
88
+ };
89
+
90
+ export {
91
+ roninWallet
92
+ };
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-23WIEY36.js";
9
+
10
+ // src/wallets/walletConnectors/gateWallet/gateWallet.ts
11
+ import { isAndroid } from "@funkit/utils";
12
+ var gateWallet = ({
13
+ projectId,
14
+ walletConnectParameters
15
+ }) => {
16
+ const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
17
+ const shouldUseWalletConnect = !isGateInjected;
18
+ return {
19
+ id: "gate",
20
+ name: "Gate Wallet",
21
+ rdns: "io.gate.wallet",
22
+ iconUrl: async () => (await import("./gateWallet-CJNGQQCV.js")).default,
23
+ iconAccent: "#fff",
24
+ iconBackground: "#fff",
25
+ downloadUrls: {
26
+ android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
27
+ ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
28
+ mobile: "https://www.gate.io/mobileapp",
29
+ qrCode: "https://www.gate.io/web3",
30
+ chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
31
+ browserExtension: "https://www.gate.io/web3"
32
+ },
33
+ mobile: {
34
+ getUri: shouldUseWalletConnect ? (uri) => {
35
+ return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
36
+ } : void 0
37
+ },
38
+ qrCode: shouldUseWalletConnect ? {
39
+ getUri: (uri) => uri,
40
+ instructions: {
41
+ learnMoreUrl: "https://www.gate.io/learn",
42
+ steps: [
43
+ {
44
+ description: "wallet_connectors.gate.qr_code.step1.description",
45
+ step: "install",
46
+ title: "wallet_connectors.gate.qr_code.step1.title"
47
+ },
48
+ {
49
+ description: "wallet_connectors.gate.qr_code.step2.description",
50
+ step: "create",
51
+ title: "wallet_connectors.gate.qr_code.step2.title"
52
+ },
53
+ {
54
+ description: "wallet_connectors.gate.qr_code.step3.description",
55
+ step: "scan",
56
+ title: "wallet_connectors.gate.qr_code.step3.title"
57
+ }
58
+ ]
59
+ }
60
+ } : void 0,
61
+ extension: {
62
+ instructions: {
63
+ learnMoreUrl: "https://www.gate.io/learn",
64
+ steps: [
65
+ {
66
+ description: "wallet_connectors.gate.extension.step1.description",
67
+ step: "install",
68
+ title: "wallet_connectors.gate.extension.step1.title"
69
+ },
70
+ {
71
+ description: "wallet_connectors.gate.extension.step2.description",
72
+ step: "create",
73
+ title: "wallet_connectors.gate.extension.step2.title"
74
+ },
75
+ {
76
+ description: "wallet_connectors.gate.extension.step3.description",
77
+ step: "refresh",
78
+ title: "wallet_connectors.gate.extension.step3.title"
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
84
+ projectId,
85
+ walletConnectParameters
86
+ }) : getInjectedConnector({ namespace: "gatewallet" })
87
+ };
88
+ };
89
+
90
+ export {
91
+ gateWallet
92
+ };
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-23WIEY36.js";
9
+
10
+ // src/wallets/walletConnectors/okxWallet/okxWallet.ts
11
+ import { isAndroid } from "@funkit/utils";
12
+ var okxWallet = ({
13
+ projectId,
14
+ walletConnectParameters
15
+ }) => {
16
+ const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
17
+ const shouldUseWalletConnect = !isOKXInjected;
18
+ return {
19
+ id: "okx",
20
+ name: "OKX Wallet",
21
+ rdns: "com.okex.wallet",
22
+ iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
23
+ iconAccent: "#000",
24
+ iconBackground: "#000",
25
+ downloadUrls: {
26
+ android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
27
+ ios: "https://itunes.apple.com/app/id1327268470?mt=8",
28
+ mobile: "https://okx.com/download",
29
+ qrCode: "https://okx.com/download",
30
+ chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
31
+ edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
32
+ firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
33
+ browserExtension: "https://okx.com/download"
34
+ },
35
+ mobile: {
36
+ getUri: shouldUseWalletConnect ? (uri) => {
37
+ return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
38
+ } : void 0
39
+ },
40
+ qrCode: shouldUseWalletConnect ? {
41
+ getUri: (uri) => uri,
42
+ instructions: {
43
+ learnMoreUrl: "https://okx.com/web3/",
44
+ steps: [
45
+ {
46
+ description: "wallet_connectors.okx.qr_code.step1.description",
47
+ step: "install",
48
+ title: "wallet_connectors.okx.qr_code.step1.title"
49
+ },
50
+ {
51
+ description: "wallet_connectors.okx.qr_code.step2.description",
52
+ step: "create",
53
+ title: "wallet_connectors.okx.qr_code.step2.title"
54
+ },
55
+ {
56
+ description: "wallet_connectors.okx.qr_code.step3.description",
57
+ step: "scan",
58
+ title: "wallet_connectors.okx.qr_code.step3.title"
59
+ }
60
+ ]
61
+ }
62
+ } : void 0,
63
+ extension: {
64
+ instructions: {
65
+ learnMoreUrl: "https://okx.com/web3/",
66
+ steps: [
67
+ {
68
+ description: "wallet_connectors.okx.extension.step1.description",
69
+ step: "install",
70
+ title: "wallet_connectors.okx.extension.step1.title"
71
+ },
72
+ {
73
+ description: "wallet_connectors.okx.extension.step2.description",
74
+ step: "create",
75
+ title: "wallet_connectors.okx.extension.step2.title"
76
+ },
77
+ {
78
+ description: "wallet_connectors.okx.extension.step3.description",
79
+ step: "refresh",
80
+ title: "wallet_connectors.okx.extension.step3.title"
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
86
+ projectId,
87
+ walletConnectParameters
88
+ }) : getInjectedConnector({ namespace: "okxwallet" })
89
+ };
90
+ };
91
+
92
+ export {
93
+ okxWallet
94
+ };