@funkit/connect 9.24.0-next.0 → 9.25.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.
Files changed (108) hide show
  1. package/CHANGELOG.md +50 -4
  2. package/dist/clients/aave.d.ts +9 -0
  3. package/dist/clients/aave.js +4 -1
  4. package/dist/clients/{chunk-4HCOSF4M.js → chunk-7G3QEQFB.js} +2 -2
  5. package/dist/clients/{chunk-7FIVHWNC.js → chunk-7UIDHSYG.js} +47 -0
  6. package/dist/clients/{chunk-UUHGOBKZ.js → chunk-AHYOV7AV.js} +2 -1
  7. package/dist/clients/{chunk-S7FRYR55.js → chunk-ME4OAQIY.js} +1 -1
  8. package/dist/clients/{chunk-CEBG7XQ5.js → chunk-MXPZTW2H.js} +212 -1126
  9. package/dist/clients/chunk-SQ2RX7WY.js +1110 -0
  10. package/dist/clients/{chunk-KWIR3HO4.js → chunk-VJZW3MA3.js} +1 -1
  11. package/dist/clients/{chunk-MRBN4XCA.js → chunk-ZEXZQOAO.js} +1 -1
  12. package/dist/clients/fanatics.css +1 -1
  13. package/dist/clients/fanatics.js +4 -6
  14. package/dist/clients/lighter.css +2816 -1
  15. package/dist/clients/lighter.js +44 -28
  16. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +217 -222
  17. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +7 -8
  18. package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
  19. package/dist/clients/polymarket/index.css +217 -222
  20. package/dist/clients/polymarket/index.js +7 -8
  21. package/dist/clients/polymarket/polymarket.js +2 -2
  22. package/dist/clients/polymarket/usePolymarketAccountBalances.js +2 -2
  23. package/dist/clients/rolly.js +1 -1
  24. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryContent.d.ts +1 -2
  25. package/dist/components/FunTooltip/FunTooltip.d.ts +10 -5
  26. package/dist/components/FunTransactionSummary/DestinationHealthFactorRow.d.ts +15 -0
  27. package/dist/components/FunTransactionSummary/DestinationYieldRows.d.ts +1 -0
  28. package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +2 -1
  29. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +8 -1
  30. package/dist/domains/aave.d.ts +14 -9
  31. package/dist/domains/nado.d.ts +9 -0
  32. package/dist/hooks/track/CheckoutModalEvent.d.ts +0 -1
  33. package/dist/hooks/track/WithdrawModalEvent.d.ts +9 -1
  34. package/dist/hooks/useGetAssetHoldingsFromRpc.d.ts +23 -0
  35. package/dist/hooks/useInjectedAssetHoldings.d.ts +23 -0
  36. package/dist/hooks/useXstockAssetHoldings.d.ts +15 -0
  37. package/dist/hooks/useXstocksWrappedTokenAddress.d.ts +16 -0
  38. package/dist/index.css +11 -16
  39. package/dist/index.js +4696 -4117
  40. package/dist/modals/CheckoutModal/CheckoutComplete/CheckoutComplete.d.ts +1 -1
  41. package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +0 -1
  42. package/dist/modals/CheckoutModal/InputAmount/useNadoDirectTransfer.d.ts +64 -0
  43. package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +1 -1
  44. package/dist/modals/CheckoutModal/stepTransition.d.ts +0 -3
  45. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +25 -4
  46. package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +10 -1
  47. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +8 -1
  48. package/dist/modals/WithdrawalModal/WithdrawalSwappedIframeController.d.ts +11 -0
  49. package/dist/modals/WithdrawalModal/types.d.ts +1 -0
  50. package/dist/providers/FunkitCheckoutContext/types.d.ts +29 -12
  51. package/dist/utils/assets.d.ts +7 -0
  52. package/dist/utils/checkoutHistory.d.ts +1 -5
  53. package/dist/utils/customer.d.ts +6 -0
  54. package/dist/wallets/walletConnectors/index.js +50 -50
  55. package/package.json +6 -6
  56. package/dist/__generated__/default_configs.d.ts +0 -901
  57. package/dist/__generated__/default_feature_gates.d.ts +0 -20
  58. package/dist/clients/chunk-25ICASD7.js +0 -2371
  59. package/dist/clients/chunk-3GO74QTP.js +0 -2382
  60. package/dist/clients/chunk-7GWX2ZS4.js +0 -69
  61. package/dist/clients/chunk-7HNGV6JU.js +0 -54
  62. package/dist/clients/chunk-A32VN2DX.js +0 -2382
  63. package/dist/clients/chunk-ELLXM7RO.js +0 -186
  64. package/dist/clients/chunk-GGXTLJ7J.js +0 -290
  65. package/dist/clients/chunk-GUWXVR5S.js +0 -186
  66. package/dist/clients/chunk-HRWCNZJA.js +0 -230
  67. package/dist/clients/chunk-JBWB54MX.js +0 -69
  68. package/dist/clients/chunk-JD3FIVZ7.js +0 -69
  69. package/dist/clients/chunk-JTGKAPID.js +0 -2382
  70. package/dist/clients/chunk-L7PABCF2.js +0 -54
  71. package/dist/clients/chunk-LII3SVUH.js +0 -230
  72. package/dist/clients/chunk-NCUPPJ2Z.js +0 -2382
  73. package/dist/clients/chunk-NPPIETHZ.js +0 -54
  74. package/dist/clients/chunk-NUJ6ZM5F.js +0 -186
  75. package/dist/clients/chunk-UVWNEQMD.js +0 -186
  76. package/dist/clients/chunk-VVTNR7YH.js +0 -2382
  77. package/dist/clients/chunk-YYMIRDCQ.js +0 -230
  78. package/dist/clients/chunk-ZNVFASTH.js +0 -54
  79. package/dist/clients/nado.d.ts +0 -78
  80. package/dist/clients/nado.js +0 -107
  81. package/dist/clients/polymarket.d.ts +0 -161
  82. package/dist/clients/polymarket.js +0 -688
  83. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryHelp.d.ts +0 -10
  84. package/dist/interfaces/logTransport.d.ts +0 -51
  85. package/dist/interfaces/swapped-transport.d.ts +0 -78
  86. package/dist/modals/CheckoutModal/CheckoutHelp/CheckoutHelp.d.ts +0 -9
  87. package/dist/modals/CheckoutModal/SourceChange/EmptyFormOfPaymentsMessage.d.ts +0 -4
  88. package/dist/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.d.ts +0 -4
  89. package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +0 -6
  90. package/dist/utils/flags/resolver.d.ts +0 -34
  91. package/dist/wallets/walletConnectors/chunk-4NV5BYRP.js +0 -95
  92. package/dist/wallets/walletConnectors/chunk-AVDUNQUW.js +0 -96
  93. package/dist/wallets/walletConnectors/chunk-GUQM4QSL.js +0 -66
  94. package/dist/wallets/walletConnectors/chunk-IULPZP2Q.js +0 -69
  95. package/dist/wallets/walletConnectors/chunk-JPN6TWIT.js +0 -92
  96. package/dist/wallets/walletConnectors/chunk-KCRO2AGO.js +0 -106
  97. package/dist/wallets/walletConnectors/chunk-KI5Y2BBF.js +0 -94
  98. package/dist/wallets/walletConnectors/chunk-NR2OGDHQ.js +0 -103
  99. package/dist/wallets/walletConnectors/chunk-OEEGYENV.js +0 -87
  100. package/dist/wallets/walletConnectors/chunk-OX37G4YT.js +0 -98
  101. package/dist/wallets/walletConnectors/chunk-SWFF3TWJ.js +0 -100
  102. package/dist/wallets/walletConnectors/chunk-TKB2OY6G.js +0 -99
  103. package/dist/wallets/walletConnectors/chunk-W2LCLDPX.js +0 -70
  104. package/dist/wallets/walletConnectors/chunk-WAHGI5L7.js +0 -96
  105. package/dist/wallets/walletConnectors/chunk-WKNQMP4A.js +0 -93
  106. package/dist/wallets/walletConnectors/chunk-XCNHV3HS.js +0 -110
  107. package/dist/wallets/walletConnectors/chunk-YO2K4MBH.js +0 -218
  108. package/dist/wallets/walletConnectors/chunk-YQFGVZGR.js +0 -92
@@ -1,51 +0,0 @@
1
- /** Severity levels emitted by `FunLogger`. */
2
- export type LogLevel = 'info' | 'debug' | 'warn' | 'error';
3
- /** User tracking consent, mirroring the Datadog browser SDK's values. */
4
- export type TrackingConsent = 'granted' | 'not-granted';
5
- /**
6
- * The structured context `FunLogger` assembles for every record: the caller's
7
- * data plus the logger's resolved user/session fields. Concrete (rather than
8
- * `object`) so transport implementors get property access and autocomplete.
9
- */
10
- export interface LogContext {
11
- /** Caller-supplied structured data for this log line, if any. */
12
- data?: object;
13
- apiKey: string | null;
14
- userId: string | null;
15
- userName: string | null;
16
- userAddress: string | null;
17
- userLoginType: string | null;
18
- typeLabel: string | null;
19
- sdkVersion: string | null;
20
- }
21
- /** A single fully-assembled log record handed to a transport. */
22
- export interface LogRecord {
23
- level: LogLevel;
24
- title: string;
25
- /** Assembled by `FunLogger` so transports stay dumb sinks. */
26
- context: LogContext;
27
- /** Present only for `error`-level records. */
28
- error?: Error;
29
- }
30
- /**
31
- * Platform sink for `FunLogger`. The logger (queueing, env detection, level
32
- * routing, console fallback, context tracking) is platform-agnostic; everything
33
- * platform-specific about *emitting* lives behind this interface.
34
- *
35
- * Part of the React Native split (see docs/connect-rn-architecture.md): web
36
- * implements it with `DatadogBrowserLogsTransport`, React Native will implement
37
- * it with a Datadog React Native transport (`@datadog/mobile-react-native`).
38
- * Kept free of DOM/`@datadog/browser-logs` types so it can move to
39
- * `@funkit/connect-core` untouched.
40
- */
41
- export interface LogTransport {
42
- /** Emit one record to the platform sink. */
43
- log(record: LogRecord): void;
44
- /**
45
- * Reflect the resolved environment (e.g. `'development'` | `'production'`).
46
- * Optional — sinks that don't segment by environment can omit it.
47
- */
48
- setEnv?(environment: string): void;
49
- /** Reflect user tracking consent. Optional. */
50
- setTrackingConsent?(consent: TrackingConsent): void;
51
- }
@@ -1,78 +0,0 @@
1
- import type { PaymentGroupType } from '@funkit/api-base';
2
- import type { SwappedTheme } from '../utils/swapped';
3
- /**
4
- * Typed contract for the message bridge between the SDK and the embedded
5
- * Swapped flow. On web this is bridged over an `<iframe>` + `window.postMessage`
6
- * (see {@link createIframeSwappedTransport}); React Native will bridge the same
7
- * messages over a `WebView`. Freezing the event catalog here lets both
8
- * platforms share the `SwappedProvider` state machine and turns any drift in
9
- * the message shapes into a compile-time error.
10
- *
11
- * Reference: the inbound switch in `SwappedIframeController` and the sends in
12
- * `SwappedProvider`.
13
- *
14
- * This module is platform-agnostic and is slated to move to
15
- * `@funkit/connect-core/interfaces/` during the RN extraction.
16
- */
17
- /**
18
- * Navigation steps reported by the Swapped embed. Open-ended — the embed may
19
- * emit steps we don't enumerate, which fall through to the default handler.
20
- */
21
- export type SwappedStep = 'EMPTY' | 'KYC_ADDRESS' | 'KYC_AWAITING_IDENTITY' | 'KYC_IDENTITY' | 'KYC_PERSONAL' | 'KYC_SUMSUB' | 'LOGIN_EMAIL' | 'LOGIN_EMAIL_VERIFICATION' | 'PAYMENT' | 'ORDER_CONFIRMATION' | (string & {});
22
- /**
23
- * Opaque payloads — the SDK never introspects these, it only forwards them to
24
- * analytics via `JSON.stringify`. Typed as `unknown` so callers must stringify
25
- * rather than read fields.
26
- */
27
- export type SwappedErrorPayload = unknown;
28
- export type SwappedTxPayload = unknown;
29
- /** embed → parent */
30
- export type SwappedInboundMessage = {
31
- type: 'SWAPPED_READY';
32
- } | {
33
- type: 'SWAPPED_GO_BACK';
34
- } | {
35
- type: 'SWAPPED_CLOSE';
36
- } | {
37
- type: 'SWAPPED_NEW_DEPOSIT';
38
- } | {
39
- type: 'SWAPPED_ERROR';
40
- data?: SwappedErrorPayload;
41
- } | {
42
- type: 'SWAPPED_NAVIGATION';
43
- data?: {
44
- step?: SwappedStep;
45
- };
46
- } | {
47
- type: 'SWAPPED_ORDER_DATA';
48
- data?: unknown;
49
- } | {
50
- type: 'SWAPPED_TRANSACTION_SUCCESSFUL';
51
- data?: SwappedTxPayload;
52
- } | {
53
- type: 'SWAPPED_LOGOUT';
54
- };
55
- /** parent → embed */
56
- export type SwappedOutboundMessage = {
57
- type: 'SWAPPED_METHOD';
58
- method: PaymentGroupType;
59
- } | {
60
- type: 'SWAPPED_THEME';
61
- data: SwappedTheme;
62
- } | {
63
- type: 'SWAPPED_FOCUS';
64
- };
65
- export interface SwappedTransport {
66
- /**
67
- * Send a message to the embed. Returns `true` if the message was dispatched,
68
- * `false` if the embed isn't reachable yet (so callers can mirror today's
69
- * behavior of logging only on a successful send).
70
- */
71
- send(msg: SwappedOutboundMessage): boolean;
72
- /**
73
- * Subscribe to messages from the embed. The handler is only invoked for
74
- * messages whose origin has already been validated by the transport. Returns
75
- * an unsubscribe function.
76
- */
77
- onMessage(handler: (msg: SwappedInboundMessage) => void): () => void;
78
- }
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { Address } from 'viem';
3
- import type { CheckoutModalCommonState, FunCheckoutStep, ModalStepComponentProps, ModalStepInfo } from '../stepTransition';
4
- export type CheckoutHelpState = CheckoutModalCommonState & {
5
- depositAddress: Address;
6
- };
7
- export declare const CheckoutHelpInfo: ModalStepInfo<FunCheckoutStep.CHECKOUT_HELP>;
8
- /** Help Form in checkout modal */
9
- export declare function CheckoutHelp({ modalState, onClose, onBack, }: ModalStepComponentProps<FunCheckoutStep.CHECKOUT_HELP>): React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare function EmptyFormOfPaymentsMessage({ minHeight, }: {
3
- minHeight: number;
4
- }): React.JSX.Element;
@@ -1,4 +0,0 @@
1
- export declare function useUpdateCardSourceAsset(): {
2
- onSelectCard: () => Promise<void>;
3
- isUpdating: boolean;
4
- };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { type BoxProps } from '../../../components/Box/Box';
3
- export declare function SwappedErrorMessage({ minHeight, paddingBottom, }: {
4
- minHeight: number;
5
- paddingBottom?: BoxProps['paddingBottom'];
6
- }): React.JSX.Element;
@@ -1,34 +0,0 @@
1
- type BaseCondition = {
2
- type: 'country';
3
- countryCodes: string[];
4
- };
5
- type Condition = BaseCondition | {
6
- type: 'all';
7
- conditions: Condition[];
8
- } | {
9
- type: 'any';
10
- conditions: Condition[];
11
- };
12
- interface Variant<T> {
13
- condition?: Condition;
14
- value: T;
15
- }
16
- interface VariantConfig<T> {
17
- variants: Variant<T>[];
18
- value: T;
19
- }
20
- interface EvaluationContext {
21
- countryCode?: string;
22
- }
23
- /**
24
- * Type guard to check if a value is a VariantConfig
25
- * (used to distinguish from simple static configs)
26
- */
27
- export declare function isVariantConfig<T>(value: unknown): value is VariantConfig<T>;
28
- /**
29
- * Resolves the appropriate value from a VariantConfig based on runtime context.
30
- * Evaluates variants in order and returns the first matching variant's value.
31
- * Falls back to default value if no variants match.
32
- */
33
- export declare function resolveValue<T>(config: VariantConfig<T>, ctx: EvaluationContext): T;
34
- export {};
@@ -1,95 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-N4IJLYFY.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-OLZ7626J.js";
9
-
10
- // src/wallets/walletConnectors/coreWallet/coreWallet.ts
11
- var coreWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isCoreInjected = hasInjectedProvider({
16
- namespace: "avalanche",
17
- flag: "isAvalanche"
18
- });
19
- const shouldUseWalletConnect = !isCoreInjected;
20
- return {
21
- id: "core",
22
- name: "Core",
23
- rdns: "app.core.extension",
24
- iconUrl: async () => (await import("./coreWallet-RFVUHOVE.js")).default,
25
- iconBackground: "#1A1A1C",
26
- installed: !shouldUseWalletConnect ? isCoreInjected : void 0,
27
- downloadUrls: {
28
- android: "https://play.google.com/store/apps/details?id=com.avaxwallet",
29
- ios: "https://apps.apple.com/us/app/core-wallet/id6443685999",
30
- mobile: "https://core.app/?downloadCoreMobile=1",
31
- qrCode: "https://core.app/?downloadCoreMobile=1",
32
- chrome: "https://chrome.google.com/webstore/detail/core-crypto-wallet-nft-ex/agoakfejjabomempkjlepdflaleeobhb",
33
- browserExtension: "https://extension.core.app/"
34
- },
35
- mobile: {
36
- getUri: shouldUseWalletConnect ? (uri) => uri : void 0
37
- },
38
- qrCode: shouldUseWalletConnect ? {
39
- getUri: (uri) => uri,
40
- instructions: {
41
- learnMoreUrl: "https://support.avax.network/en/articles/6115608-core-mobile-how-to-add-the-core-mobile-to-my-phone",
42
- steps: [
43
- {
44
- description: "wallet_connectors.core.qr_code.step1.description",
45
- step: "install",
46
- title: "wallet_connectors.core.qr_code.step1.title"
47
- },
48
- {
49
- description: "wallet_connectors.core.qr_code.step2.description",
50
- step: "create",
51
- title: "wallet_connectors.core.qr_code.step2.title"
52
- },
53
- {
54
- description: "wallet_connectors.core.qr_code.step3.description",
55
- step: "scan",
56
- title: "wallet_connectors.core.qr_code.step3.title"
57
- }
58
- ]
59
- }
60
- } : void 0,
61
- extension: {
62
- instructions: {
63
- learnMoreUrl: "https://extension.core.app/",
64
- steps: [
65
- {
66
- description: "wallet_connectors.core.extension.step1.description",
67
- step: "install",
68
- title: "wallet_connectors.core.extension.step1.title"
69
- },
70
- {
71
- description: "wallet_connectors.core.extension.step2.description",
72
- step: "create",
73
- title: "wallet_connectors.core.extension.step2.title"
74
- },
75
- {
76
- description: "wallet_connectors.core.extension.step3.description",
77
- step: "refresh",
78
- title: "wallet_connectors.core.extension.step3.title"
79
- }
80
- ]
81
- }
82
- },
83
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
84
- projectId,
85
- walletConnectParameters
86
- }) : getInjectedConnector({
87
- namespace: "avalanche",
88
- flag: "isAvalanche"
89
- })
90
- };
91
- };
92
-
93
- export {
94
- coreWallet
95
- };
@@ -1,96 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-N4IJLYFY.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-OLZ7626J.js";
9
-
10
- // src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
11
- import { isAndroid } from "@funkit/utils";
12
- var frontierWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isFrontierInjected = hasInjectedProvider({
17
- namespace: "frontier.ethereum",
18
- flag: "isFrontier"
19
- });
20
- const shouldUseWalletConnect = !isFrontierInjected;
21
- return {
22
- id: "frontier",
23
- name: "Frontier Wallet",
24
- rdns: "xyz.frontier.wallet",
25
- installed: isFrontierInjected,
26
- iconUrl: async () => (await import("./frontierWallet-5QV7ZACT.js")).default,
27
- iconBackground: "#CC703C",
28
- downloadUrls: {
29
- android: "https://play.google.com/store/apps/details?id=com.frontierwallet",
30
- ios: "https://apps.apple.com/us/app/frontier-crypto-defi-wallet/id1482380988",
31
- qrCode: "https://www.frontier.xyz/download",
32
- chrome: "https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
33
- browserExtension: "https://www.frontier.xyz/download"
34
- },
35
- mobile: {
36
- getUri: shouldUseWalletConnect ? (uri) => {
37
- return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
38
- } : void 0
39
- },
40
- qrCode: shouldUseWalletConnect ? {
41
- getUri: (uri) => {
42
- return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
43
- },
44
- instructions: {
45
- learnMoreUrl: "https://help.frontier.xyz/en/",
46
- steps: [
47
- {
48
- description: "wallet_connectors.im_token.qr_code.step1.description",
49
- step: "install",
50
- title: "wallet_connectors.im_token.qr_code.step1.title"
51
- },
52
- {
53
- description: "wallet_connectors.im_token.qr_code.step2.description",
54
- step: "create",
55
- title: "wallet_connectors.im_token.qr_code.step2.title"
56
- },
57
- {
58
- description: "wallet_connectors.im_token.qr_code.step3.description",
59
- step: "scan",
60
- title: "wallet_connectors.im_token.qr_code.step3.title"
61
- }
62
- ]
63
- }
64
- } : void 0,
65
- extension: {
66
- instructions: {
67
- learnMoreUrl: "https://help.frontier.xyz/en/articles/6967236-setting-up-frontier-on-your-device",
68
- steps: [
69
- {
70
- description: "wallet_connectors.frontier.extension.step1.description",
71
- step: "install",
72
- title: "wallet_connectors.frontier.extension.step1.title"
73
- },
74
- {
75
- description: "wallet_connectors.frontier.extension.step2.description",
76
- step: "create",
77
- title: "wallet_connectors.frontier.extension.step2.title"
78
- },
79
- {
80
- description: "wallet_connectors.frontier.extension.step3.description",
81
- step: "refresh",
82
- title: "wallet_connectors.frontier.extension.step3.title"
83
- }
84
- ]
85
- }
86
- },
87
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({ projectId, walletConnectParameters }) : getInjectedConnector({
88
- namespace: "frontier.ethereum",
89
- flag: "isFrontier"
90
- })
91
- };
92
- };
93
-
94
- export {
95
- frontierWallet
96
- };
@@ -1,66 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-N4IJLYFY.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-OLZ7626J.js";
9
-
10
- // src/wallets/walletConnectors/foxWallet/foxWallet.ts
11
- var foxWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isFoxInjected = hasInjectedProvider({
16
- namespace: "foxwallet.ethereum"
17
- });
18
- const shouldUseWalletConnect = !isFoxInjected;
19
- return {
20
- id: "foxwallet",
21
- name: "FoxWallet",
22
- iconUrl: async () => (await import("./foxWallet-I7D5KIW4.js")).default,
23
- iconBackground: "#fff",
24
- downloadUrls: {
25
- android: "https://play.google.com/store/apps/details?id=com.foxwallet.play",
26
- ios: "https://apps.apple.com/app/foxwallet-crypto-web3/id1590983231",
27
- qrCode: "https://foxwallet.com/download"
28
- },
29
- mobile: {
30
- getUri: shouldUseWalletConnect ? (uri) => {
31
- return `foxwallet://wc?uri=${encodeURIComponent(uri)}`;
32
- } : void 0
33
- },
34
- qrCode: shouldUseWalletConnect ? {
35
- getUri: (uri) => uri,
36
- instructions: {
37
- learnMoreUrl: "https://foxwallet.com",
38
- steps: [
39
- {
40
- description: "wallet_connectors.fox.qr_code.step1.description",
41
- step: "install",
42
- title: "wallet_connectors.fox.qr_code.step1.title"
43
- },
44
- {
45
- description: "wallet_connectors.fox.qr_code.step2.description",
46
- step: "create",
47
- title: "wallet_connectors.fox.qr_code.step2.title"
48
- },
49
- {
50
- description: "wallet_connectors.fox.qr_code.step3.description",
51
- step: "scan",
52
- title: "wallet_connectors.fox.qr_code.step3.title"
53
- }
54
- ]
55
- }
56
- } : void 0,
57
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
58
- projectId,
59
- walletConnectParameters
60
- }) : getInjectedConnector({ namespace: "foxwallet.ethereum" })
61
- };
62
- };
63
-
64
- export {
65
- foxWallet
66
- };
@@ -1,69 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-N4IJLYFY.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-OLZ7626J.js";
9
-
10
- // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
11
- import { isAndroid } from "@funkit/utils";
12
- var bifrostWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
17
- const shouldUseWalletConnect = !isBifrostInjected;
18
- const getUri = (uri) => {
19
- return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
20
- };
21
- return {
22
- id: "bifrostWallet",
23
- name: "Bifrost Wallet",
24
- iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.js")).default,
25
- iconBackground: "#fff",
26
- installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
27
- downloadUrls: {
28
- android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
29
- ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
30
- qrCode: "https://bifrostwallet.com/#download-app"
31
- },
32
- mobile: {
33
- getUri: shouldUseWalletConnect ? getUri : void 0
34
- },
35
- qrCode: shouldUseWalletConnect ? {
36
- getUri: (uri) => uri,
37
- instructions: {
38
- learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
39
- steps: [
40
- {
41
- description: "wallet_connectors.bifrost.qr_code.step1.description",
42
- step: "install",
43
- title: "wallet_connectors.bifrost.qr_code.step1.title"
44
- },
45
- {
46
- description: "wallet_connectors.bifrost.qr_code.step2.description",
47
- step: "create",
48
- title: "wallet_connectors.bifrost.qr_code.step2.title"
49
- },
50
- {
51
- description: "wallet_connectors.bifrost.qr_code.step3.description",
52
- step: "scan",
53
- title: "wallet_connectors.bifrost.qr_code.step3.title"
54
- }
55
- ]
56
- }
57
- } : void 0,
58
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
59
- projectId,
60
- walletConnectParameters
61
- }) : getInjectedConnector({
62
- flag: "isBifrost"
63
- })
64
- };
65
- };
66
-
67
- export {
68
- bifrostWallet
69
- };
@@ -1,92 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-N4IJLYFY.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-OLZ7626J.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
- };