@funkit/connect 9.23.1 → 9.24.0-next.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 (90) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/__generated__/default_configs.d.ts +901 -0
  3. package/dist/__generated__/default_feature_gates.d.ts +20 -0
  4. package/dist/clients/chunk-25ICASD7.js +2371 -0
  5. package/dist/clients/chunk-3GO74QTP.js +2382 -0
  6. package/dist/clients/{chunk-4M57JDJK.js → chunk-4HCOSF4M.js} +1 -1
  7. package/dist/clients/chunk-7GWX2ZS4.js +69 -0
  8. package/dist/clients/{chunk-2LMREKV6.js → chunk-7HNGV6JU.js} +1 -1
  9. package/dist/clients/chunk-A32VN2DX.js +2382 -0
  10. package/dist/clients/{chunk-H3CKQIYI.js → chunk-CEBG7XQ5.js} +2 -2
  11. package/dist/clients/{chunk-GCIUIPM7.js → chunk-ELLXM7RO.js} +1 -1
  12. package/dist/clients/chunk-GGXTLJ7J.js +290 -0
  13. package/dist/clients/chunk-GUWXVR5S.js +186 -0
  14. package/dist/clients/chunk-HRWCNZJA.js +230 -0
  15. package/dist/clients/chunk-JBWB54MX.js +69 -0
  16. package/dist/clients/chunk-JD3FIVZ7.js +69 -0
  17. package/dist/clients/chunk-JTGKAPID.js +2382 -0
  18. package/dist/clients/chunk-L7PABCF2.js +54 -0
  19. package/dist/clients/chunk-LII3SVUH.js +230 -0
  20. package/dist/clients/chunk-NCUPPJ2Z.js +2382 -0
  21. package/dist/clients/chunk-NPPIETHZ.js +54 -0
  22. package/dist/clients/chunk-NUJ6ZM5F.js +186 -0
  23. package/dist/clients/chunk-UVWNEQMD.js +186 -0
  24. package/dist/clients/chunk-VVTNR7YH.js +2382 -0
  25. package/dist/clients/chunk-YYMIRDCQ.js +230 -0
  26. package/dist/clients/chunk-ZNVFASTH.js +54 -0
  27. package/dist/clients/fanatics.css +1 -1
  28. package/dist/clients/fanatics.js +3 -3
  29. package/dist/clients/lighter.css +1 -1
  30. package/dist/clients/lighter.d.ts +18 -0
  31. package/dist/clients/lighter.js +10 -5
  32. package/dist/clients/nado.d.ts +78 -0
  33. package/dist/clients/nado.js +107 -0
  34. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +21 -11
  35. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +4 -4
  36. package/dist/clients/polymarket/index.css +21 -11
  37. package/dist/clients/polymarket/index.js +4 -4
  38. package/dist/clients/polymarket.d.ts +161 -0
  39. package/dist/clients/polymarket.js +688 -0
  40. package/dist/components/BottomLinks/BottomLinks.css.d.ts +6 -0
  41. package/dist/components/BottomLinks/BottomLinks.d.ts +14 -0
  42. package/dist/consts/funkit.d.ts +1 -0
  43. package/dist/index.css +21 -11
  44. package/dist/index.js +545 -471
  45. package/dist/interfaces/logTransport.d.ts +51 -0
  46. package/dist/interfaces/swapped-transport.d.ts +78 -0
  47. package/dist/modals/CheckoutModal/SourceChange/EmptyFormOfPaymentsMessage.d.ts +4 -0
  48. package/dist/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.d.ts +4 -0
  49. package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +6 -0
  50. package/dist/providers/FunkitCheckoutContext/types.d.ts +16 -0
  51. package/dist/utils/flags/resolver.d.ts +34 -0
  52. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  53. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  54. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  55. package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +70 -0
  56. package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +69 -0
  57. package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +96 -0
  58. package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +218 -0
  59. package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +99 -0
  60. package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +98 -0
  61. package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +92 -0
  62. package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +93 -0
  63. package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +66 -0
  64. package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +95 -0
  65. package/dist/wallets/walletConnectors/chunk-RVOY537T.js +100 -0
  66. package/dist/wallets/walletConnectors/chunk-STVVP43G.js +94 -0
  67. package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +87 -0
  68. package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +92 -0
  69. package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +110 -0
  70. package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +103 -0
  71. package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +96 -0
  72. package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +106 -0
  73. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  74. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  75. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  76. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  77. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  78. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  79. package/dist/wallets/walletConnectors/index.js +52 -52
  80. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  81. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  82. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  83. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  84. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  85. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  86. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  87. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  88. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  89. package/package.json +4 -4
  90. /package/dist/clients/{chunk-OG254LB3.js → chunk-7FIVHWNC.js} +0 -0
@@ -0,0 +1,51 @@
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
+ }
@@ -0,0 +1,78 @@
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
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function EmptyFormOfPaymentsMessage({ minHeight, }: {
3
+ minHeight: number;
4
+ }): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare function useUpdateCardSourceAsset(): {
2
+ onSelectCard: () => Promise<void>;
3
+ isUpdating: boolean;
4
+ };
@@ -0,0 +1,6 @@
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;
@@ -203,6 +203,22 @@ export interface WithdrawalConfigBase {
203
203
  * stays live without triggering unnecessary re-renders.
204
204
  */
205
205
  withdrawalSourceTokenBalance?: () => string | number;
206
+ /**
207
+ * Optional async hook fired the moment the user commits to the withdrawal —
208
+ * after they tap the withdraw CTA but **before** the SDK fetches any nonce,
209
+ * prompts the wallet to sign, or submits the transaction. It is awaited, so
210
+ * async work completes before signing begins.
211
+ *
212
+ * The motivating case is venues where automated activity shares the signing
213
+ * account: cancelling in-flight strategies here guarantees the withdrawal's
214
+ * signing nonce is still valid by the time the wallet prompt fires.
215
+ *
216
+ * Throw to abort the withdrawal — the thrown error message is surfaced to the
217
+ * user verbatim in the standard error UI, and no nonce is consumed. Runs on
218
+ * every withdrawal method and before
219
+ * {@link WalletWithdrawalConfig['preWithdrawalAction']}.
220
+ */
221
+ onBeforeSign?: () => Promise<void> | void;
206
222
  }
207
223
  export interface WalletWithdrawalConfig extends WithdrawalConfigBase {
208
224
  /** Wallet instance used to execute the quote */
@@ -0,0 +1,34 @@
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,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-IULPZP2Q.js";
5
- import "../chunk-N4IJLYFY.js";
4
+ } from "../chunk-4T6ZSRJF.js";
6
5
  import "../chunk-OLZ7626J.js";
6
+ import "../chunk-N4IJLYFY.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  bifrostWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-TKB2OY6G.js";
5
- import "../chunk-N4IJLYFY.js";
4
+ } from "../chunk-CPI4TD43.js";
6
5
  import "../chunk-OLZ7626J.js";
6
+ import "../chunk-N4IJLYFY.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  bitgetWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-OX37G4YT.js";
5
- import "../chunk-N4IJLYFY.js";
4
+ } from "../chunk-F5XEEVG6.js";
6
5
  import "../chunk-OLZ7626J.js";
6
+ import "../chunk-N4IJLYFY.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  bybitWallet
@@ -0,0 +1,70 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.js";
9
+
10
+ // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
11
+ import { isAndroid, isIOS } from "@funkit/utils";
12
+ var rainbowWallet = ({
13
+ projectId,
14
+ walletConnectParameters
15
+ }) => {
16
+ const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
17
+ const shouldUseWalletConnect = !isRainbowInjected;
18
+ const getUri = (uri) => {
19
+ return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
20
+ uri
21
+ )}&connector=rainbowkit`;
22
+ };
23
+ return {
24
+ id: "rainbow",
25
+ name: "Rainbow",
26
+ rdns: "me.rainbow",
27
+ iconUrl: async () => (await import("./rainbowWallet-MFJQCICF.js")).default,
28
+ iconBackground: "#0c2f78",
29
+ installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
30
+ downloadUrls: {
31
+ android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
32
+ ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
33
+ mobile: "https://rainbow.download?utm_source=rainbowkit",
34
+ qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
35
+ browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
36
+ },
37
+ mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
38
+ qrCode: shouldUseWalletConnect ? {
39
+ getUri,
40
+ instructions: {
41
+ learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
42
+ steps: [
43
+ {
44
+ description: "wallet_connectors.rainbow.qr_code.step1.description",
45
+ step: "install",
46
+ title: "wallet_connectors.rainbow.qr_code.step1.title"
47
+ },
48
+ {
49
+ description: "wallet_connectors.rainbow.qr_code.step2.description",
50
+ step: "create",
51
+ title: "wallet_connectors.rainbow.qr_code.step2.title"
52
+ },
53
+ {
54
+ description: "wallet_connectors.rainbow.qr_code.step3.description",
55
+ step: "scan",
56
+ title: "wallet_connectors.rainbow.qr_code.step3.title"
57
+ }
58
+ ]
59
+ }
60
+ } : void 0,
61
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
62
+ projectId,
63
+ walletConnectParameters
64
+ }) : getInjectedConnector({ flag: "isRainbow" })
65
+ };
66
+ };
67
+
68
+ export {
69
+ rainbowWallet
70
+ };
@@ -0,0 +1,69 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.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
+ };
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.js";
9
+
10
+ // src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
11
+ var coin98Wallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isCoin98WalletInjected = hasInjectedProvider({
16
+ namespace: "coin98.provider",
17
+ flag: "isCoin98"
18
+ });
19
+ const shouldUseWalletConnect = !isCoin98WalletInjected;
20
+ return {
21
+ id: "coin98",
22
+ name: "Coin98 Wallet",
23
+ iconUrl: async () => (await import("./coin98Wallet-I5CP5KYZ.js")).default,
24
+ installed: isCoin98WalletInjected,
25
+ iconAccent: "#CDA349",
26
+ iconBackground: "#fff",
27
+ rdns: "coin98.com",
28
+ downloadUrls: {
29
+ android: "https://play.google.com/store/apps/details?id=coin98.crypto.finance.media",
30
+ ios: "https://apps.apple.com/vn/app/coin98-super-app/id1561969966",
31
+ mobile: "https://coin98.com/wallet",
32
+ qrCode: "https://coin98.com/wallet",
33
+ chrome: "https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",
34
+ browserExtension: "https://coin98.com/wallet"
35
+ },
36
+ mobile: {
37
+ getUri: shouldUseWalletConnect ? (uri) => uri : void 0
38
+ },
39
+ qrCode: shouldUseWalletConnect ? {
40
+ getUri: (uri) => uri,
41
+ instructions: {
42
+ learnMoreUrl: "https://coin98.com/wallet",
43
+ steps: [
44
+ {
45
+ description: "wallet_connectors.coin98.qr_code.step1.description",
46
+ step: "install",
47
+ title: "wallet_connectors.coin98.qr_code.step1.title"
48
+ },
49
+ {
50
+ description: "wallet_connectors.coin98.qr_code.step2.description",
51
+ step: "create",
52
+ title: "wallet_connectors.coin98.qr_code.step2.title"
53
+ },
54
+ {
55
+ description: "wallet_connectors.coin98.qr_code.step3.description",
56
+ step: "scan",
57
+ title: "wallet_connectors.coin98.qr_code.step3.title"
58
+ }
59
+ ]
60
+ }
61
+ } : void 0,
62
+ extension: {
63
+ instructions: {
64
+ learnMoreUrl: "https://coin98.com/wallet",
65
+ steps: [
66
+ {
67
+ description: "wallet_connectors.coin98.extension.step1.description",
68
+ step: "install",
69
+ title: "wallet_connectors.coin98.extension.step1.title"
70
+ },
71
+ {
72
+ description: "wallet_connectors.coin98.extension.step2.description",
73
+ step: "create",
74
+ title: "wallet_connectors.coin98.extension.step2.title"
75
+ },
76
+ {
77
+ description: "wallet_connectors.coin98.extension.step3.description",
78
+ step: "refresh",
79
+ title: "wallet_connectors.coin98.extension.step3.title"
80
+ }
81
+ ]
82
+ }
83
+ },
84
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
85
+ projectId,
86
+ walletConnectParameters
87
+ }) : getInjectedConnector({
88
+ namespace: "coin98Wallet",
89
+ flag: "isCoin98"
90
+ })
91
+ };
92
+ };
93
+
94
+ export {
95
+ coin98Wallet
96
+ };