@funkit/connect 12.6.0 → 12.8.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 +40 -0
- package/dist/__private__/index.d.ts +3 -0
- package/dist/clients/{chunk-F36IJA7V.js → chunk-4OOCXIMA.js} +1 -1
- package/dist/clients/chunk-I5GSXPFE.js +182 -0
- package/dist/clients/{chunk-IAIRECDV.js → chunk-R6E3NH5A.js} +1 -1
- package/dist/clients/{chunk-VE6QD5IM.js → chunk-RAJJSGNT.js} +1 -1
- package/dist/clients/chunk-YD27ZAJB.js +296 -0
- package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
- package/dist/clients/internal/nado/withdrawalForm.css +81 -81
- package/dist/clients/internal/nado/withdrawalForm.js +3 -2
- package/dist/clients/lighter.css +81 -81
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +3 -3
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
- package/dist/clients/polymarket/index.js +3 -3
- package/dist/clients/polymarket/polymarket.js +2 -2
- package/dist/components/ModalHeightAnimationLayer/FunCheckoutModalHeightAnimationWrapper.d.ts +1 -1
- package/dist/consts/bluvo.d.ts +7 -19
- package/dist/consts/centralExchange.d.ts +2 -0
- package/dist/hooks/useExchangeOptions.d.ts +9 -4
- package/dist/index.css +159 -159
- package/dist/index.d.ts +3 -1
- package/dist/index.js +21442 -21351
- package/dist/interfaces/solanaWallet.d.ts +5 -0
- package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +2 -1
- package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +2 -1
- package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +2 -1
- package/dist/modals/CheckoutModal/CheckoutComplete/CheckoutComplete.d.ts +2 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +2 -1
- package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoice.d.ts +2 -1
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +2 -1
- package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +2 -1
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +2 -1
- package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +2 -1
- package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +2 -1
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +2 -1
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeController.d.ts +2 -1
- package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +2 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +2 -1
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalComplete.d.ts +2 -1
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalEnterAmount.d.ts +2 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -13
- package/dist/modals/CheckoutModal/stepTransition.shared.d.ts +16 -0
- package/dist/modals/WithdrawalModal/ErrorMessage.d.ts +2 -2
- package/dist/modals/WithdrawalModal/RecipientAddress.d.ts +4 -2
- package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +3 -1
- package/dist/providers/FunkitQuoteContext.d.ts +7 -4
- package/dist/shadow-css.js +1 -1
- package/dist/utils/solanaRelayWallet.d.ts +13 -5
- package/dist/wallets/Wallet.d.ts +9 -0
- package/dist/wallets/solanaWithdrawal.d.ts +17 -0
- package/dist/wallets/walletConnectors/index.js +30 -30
- package/package.json +12 -6
- package/dist/clients/chunk-PENJ5JGH.js +0 -331
- package/dist/components/FunPayments/icons/gemini.d.ts +0 -5
- package/dist/components/Icons/GeminiIcon.d.ts +0 -4
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import { type SolanaSigner, type SolanaWallet } from '@funkit/fun-relay';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SolanaAddress } from '@funkit/api-base';
|
|
3
|
+
import type { SolanaWalletSigner } from '../interfaces/solanaWallet';
|
|
3
4
|
import type { ValidatedSolanaWallet } from '../providers/SolanaWalletProvider';
|
|
4
|
-
|
|
5
|
+
import { type WithdrawalClient } from '../wallets/Wallet';
|
|
6
|
+
export declare function resolveSigner(wallet: SolanaWalletSigner): SolanaSigner;
|
|
5
7
|
/**
|
|
6
8
|
* Takes a wallet that cleared `SolanaWalletProvider`'s validation: relay's
|
|
7
9
|
* adapter types the payer as a base58 address, not the host's bare string.
|
|
8
10
|
*/
|
|
9
|
-
export declare function createSolanaRelayWallet(wallet:
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
export declare function createSolanaRelayWallet(wallet: SolanaWalletSigner & {
|
|
12
|
+
address: SolanaAddress;
|
|
13
|
+
}): SolanaWallet;
|
|
14
|
+
/**
|
|
15
|
+
* The relay wallet for a Solana source, or undefined for an EVM one. A
|
|
16
|
+
* withdrawal config's own wallet wins over the provider's.
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveSolanaRelayWallet({ sourceChainId, solanaWallet, withdrawalClient, logPrefix, }: {
|
|
12
19
|
sourceChainId: string;
|
|
13
20
|
solanaWallet: ValidatedSolanaWallet | undefined;
|
|
21
|
+
withdrawalClient?: WithdrawalClient;
|
|
14
22
|
logPrefix: string;
|
|
15
23
|
}): SolanaWallet | undefined;
|
package/dist/wallets/Wallet.d.ts
CHANGED
|
@@ -153,5 +153,14 @@ export interface LighterWithdrawalClient extends WithdrawalClient {
|
|
|
153
153
|
readonly _type: 'lighter';
|
|
154
154
|
readonly adaptedWallet: import('@funkit/fun-relay').LighterWallet;
|
|
155
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* Solana-source variant. Carries the relay adapted wallet (Lighter pattern) so
|
|
158
|
+
* execution skips the EVM shim; the EVM-shaped members only satisfy the contract.
|
|
159
|
+
*/
|
|
160
|
+
export interface SolanaWithdrawalClient extends WithdrawalClient {
|
|
161
|
+
readonly _type: 'solana';
|
|
162
|
+
readonly adaptedWallet: import('@funkit/fun-relay').SolanaWallet;
|
|
163
|
+
}
|
|
164
|
+
export declare function isSolanaWithdrawalClient(client: WithdrawalClient): client is SolanaWithdrawalClient;
|
|
156
165
|
export declare function isLighterWithdrawalClient(client: WithdrawalClient): client is LighterWithdrawalClient;
|
|
157
166
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SolanaAddress } from '@funkit/api-base';
|
|
2
|
+
import type { NATIVE_TOKEN } from '../consts/funkit';
|
|
3
|
+
import type { SolanaWalletSigner } from '../interfaces/solanaWallet';
|
|
4
|
+
import type { WalletWithdrawalConfig, WithdrawalConfigBase } from '../providers/FunkitCheckoutContext/types';
|
|
5
|
+
export interface SolanaWithdrawalConfig extends Omit<WithdrawalConfigBase, 'sourceChainId' | 'sourceTokenAddress'> {
|
|
6
|
+
/** Signs the withdrawal; never disconnected by funkit. */
|
|
7
|
+
signer: SolanaWalletSigner;
|
|
8
|
+
/** Base58 mint of the SPL token to withdraw, or `NATIVE_TOKEN` for SOL. */
|
|
9
|
+
sourceTokenAddress: SolanaAddress | typeof NATIVE_TOKEN;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* `null` when the signer is absent or its address isn't base58, so a bad host
|
|
13
|
+
* value disables the flow instead of throwing in render.
|
|
14
|
+
*
|
|
15
|
+
* `params` is compared by identity, so pass a stable object.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useSolanaWithdrawalConfig(params: SolanaWithdrawalConfig | null): WalletWithdrawalConfig | null;
|
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
subWallet
|
|
13
13
|
} from "./chunk-XODA5ESL.js";
|
|
14
|
-
import {
|
|
15
|
-
tahoWallet
|
|
16
|
-
} from "./chunk-U74RFZOL.js";
|
|
17
14
|
import {
|
|
18
15
|
talismanWallet
|
|
19
16
|
} from "./chunk-IAYYWCVB.js";
|
|
20
17
|
import {
|
|
21
18
|
tokenPocketWallet
|
|
22
19
|
} from "./chunk-NXWG6FG2.js";
|
|
20
|
+
import {
|
|
21
|
+
tahoWallet
|
|
22
|
+
} from "./chunk-U74RFZOL.js";
|
|
23
23
|
import {
|
|
24
24
|
tokenaryWallet
|
|
25
25
|
} from "./chunk-TPM5PUJD.js";
|
|
@@ -47,27 +47,27 @@ import {
|
|
|
47
47
|
import {
|
|
48
48
|
roninWallet
|
|
49
49
|
} from "./chunk-IA5432IR.js";
|
|
50
|
-
import {
|
|
51
|
-
safeheronWallet
|
|
52
|
-
} from "./chunk-UN3ONVNC.js";
|
|
53
50
|
import {
|
|
54
51
|
safeWallet
|
|
55
52
|
} from "./chunk-IR3PJMVM.js";
|
|
53
|
+
import {
|
|
54
|
+
safeheronWallet
|
|
55
|
+
} from "./chunk-UN3ONVNC.js";
|
|
56
56
|
import {
|
|
57
57
|
safepalWallet
|
|
58
58
|
} from "./chunk-BBB2J3US.js";
|
|
59
59
|
import {
|
|
60
60
|
ledgerWallet
|
|
61
61
|
} from "./chunk-BL4OC2EJ.js";
|
|
62
|
-
import {
|
|
63
|
-
oktoWallet
|
|
64
|
-
} from "./chunk-V4M3SNPS.js";
|
|
65
62
|
import {
|
|
66
63
|
metaMaskWallet
|
|
67
64
|
} from "./chunk-RXRYHMRI.js";
|
|
68
65
|
import {
|
|
69
66
|
mewWallet
|
|
70
67
|
} from "./chunk-DSPQXAB2.js";
|
|
68
|
+
import {
|
|
69
|
+
oktoWallet
|
|
70
|
+
} from "./chunk-V4M3SNPS.js";
|
|
71
71
|
import {
|
|
72
72
|
okxWallet
|
|
73
73
|
} from "./chunk-CU5J53XR.js";
|
|
@@ -86,12 +86,12 @@ import {
|
|
|
86
86
|
import {
|
|
87
87
|
foxWallet
|
|
88
88
|
} from "./chunk-U52QO5HF.js";
|
|
89
|
-
import {
|
|
90
|
-
frameWallet
|
|
91
|
-
} from "./chunk-B572YIAQ.js";
|
|
92
89
|
import {
|
|
93
90
|
frontierWallet
|
|
94
91
|
} from "./chunk-IWOMSW64.js";
|
|
92
|
+
import {
|
|
93
|
+
frameWallet
|
|
94
|
+
} from "./chunk-B572YIAQ.js";
|
|
95
95
|
import {
|
|
96
96
|
gateWallet
|
|
97
97
|
} from "./chunk-YRMBR6NA.js";
|
|
@@ -104,52 +104,52 @@ import {
|
|
|
104
104
|
import {
|
|
105
105
|
kresusWallet
|
|
106
106
|
} from "./chunk-V77ATGZT.js";
|
|
107
|
+
import {
|
|
108
|
+
bybitWallet
|
|
109
|
+
} from "./chunk-BBDNB5TQ.js";
|
|
107
110
|
import {
|
|
108
111
|
clvWallet
|
|
109
112
|
} from "./chunk-4FHNLTR3.js";
|
|
110
|
-
import {
|
|
111
|
-
coin98Wallet
|
|
112
|
-
} from "./chunk-RFCZYLNR.js";
|
|
113
113
|
import {
|
|
114
114
|
coinbaseWallet
|
|
115
115
|
} from "./chunk-SM2A3OSG.js";
|
|
116
116
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
117
|
+
coreWallet
|
|
118
|
+
} from "./chunk-TRZDAXCQ.js";
|
|
119
|
+
import {
|
|
120
|
+
coin98Wallet
|
|
121
|
+
} from "./chunk-RFCZYLNR.js";
|
|
119
122
|
import {
|
|
120
123
|
customWallet
|
|
121
124
|
} from "./chunk-VKM5M5UK.js";
|
|
122
|
-
import {
|
|
123
|
-
coreWallet
|
|
124
|
-
} from "./chunk-TRZDAXCQ.js";
|
|
125
125
|
import {
|
|
126
126
|
dawnWallet
|
|
127
127
|
} from "./chunk-LV6YV3DE.js";
|
|
128
128
|
import {
|
|
129
129
|
desigWallet
|
|
130
130
|
} from "./chunk-DFHP75HV.js";
|
|
131
|
-
import {
|
|
132
|
-
argentWallet
|
|
133
|
-
} from "./chunk-XSDTNMQY.js";
|
|
134
|
-
import {
|
|
135
|
-
bitgetWallet
|
|
136
|
-
} from "./chunk-HOCKAU5H.js";
|
|
137
131
|
import {
|
|
138
132
|
bitskiWallet
|
|
139
133
|
} from "./chunk-NPITCCJE.js";
|
|
140
134
|
import {
|
|
141
135
|
bifrostWallet
|
|
142
136
|
} from "./chunk-ALGPGI6V.js";
|
|
137
|
+
import {
|
|
138
|
+
argentWallet
|
|
139
|
+
} from "./chunk-XSDTNMQY.js";
|
|
140
|
+
import {
|
|
141
|
+
bitverseWallet
|
|
142
|
+
} from "./chunk-5AEWIKRA.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-PNHDOC77.js";
|
|
146
|
+
import {
|
|
147
|
+
bitgetWallet
|
|
148
|
+
} from "./chunk-HOCKAU5H.js";
|
|
149
|
+
import "./chunk-AALSJCUR.js";
|
|
146
150
|
import {
|
|
147
151
|
braveWallet
|
|
148
152
|
} from "./chunk-U2XXV45G.js";
|
|
149
|
-
import {
|
|
150
|
-
bybitWallet
|
|
151
|
-
} from "./chunk-BBDNB5TQ.js";
|
|
152
|
-
import "./chunk-AALSJCUR.js";
|
|
153
153
|
import "./chunk-EYWGX5LT.js";
|
|
154
154
|
import "./chunk-B454LLKJ.js";
|
|
155
155
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.8.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -45,12 +45,18 @@
|
|
|
45
45
|
"author": "https://fun.xyz/",
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"peerDependencies": {
|
|
48
|
+
"@solana/web3.js": ">=1.98.0",
|
|
48
49
|
"@tanstack/react-query": ">=5.0.0",
|
|
49
50
|
"react": ">=19",
|
|
50
51
|
"react-dom": ">=19",
|
|
51
52
|
"viem": ">=2.22.14",
|
|
52
53
|
"wagmi": ">=2.0.0 <=3.6.1"
|
|
53
54
|
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"@solana/web3.js": {
|
|
57
|
+
"optional": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
54
60
|
"devDependencies": {
|
|
55
61
|
"@chromatic-com/storybook": "^5.1.2",
|
|
56
62
|
"@statsig/statsig-node-core": "^0.11.1",
|
|
@@ -113,11 +119,11 @@
|
|
|
113
119
|
"ua-parser-js": "^1.0.37",
|
|
114
120
|
"use-debounce": "^10.0.5",
|
|
115
121
|
"uuid": "^11.1.1",
|
|
116
|
-
"@funkit/api-base": "8.3.1",
|
|
117
122
|
"@funkit/chains": "2.4.0",
|
|
118
|
-
"@funkit/connect-core": "8.
|
|
119
|
-
"@funkit/
|
|
120
|
-
"@funkit/
|
|
123
|
+
"@funkit/connect-core": "8.1.1",
|
|
124
|
+
"@funkit/utils": "5.0.0",
|
|
125
|
+
"@funkit/api-base": "8.4.0",
|
|
126
|
+
"@funkit/fun-relay": "3.0.1"
|
|
121
127
|
},
|
|
122
128
|
"repository": {
|
|
123
129
|
"type": "git",
|
|
@@ -133,7 +139,7 @@
|
|
|
133
139
|
"prebuild": "pnpm typegen",
|
|
134
140
|
"typecheck": "pnpm tsc --noEmit",
|
|
135
141
|
"typegen": "tsc --project tsconfig.build.json --emitDeclarationOnly && tsc-alias",
|
|
136
|
-
"typegen:watch": "tsc --project tsconfig.build.json --emitDeclarationOnly --watch",
|
|
142
|
+
"typegen:watch": "tsc --project tsconfig.build.json --emitDeclarationOnly --watch & tsc-alias --project tsconfig.build.json --watch",
|
|
137
143
|
"lint": "oxlint",
|
|
138
144
|
"lint:fix": "oxlint --fix",
|
|
139
145
|
"test": "vitest",
|
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/domains/paymentMethods.ts
|
|
4
|
-
import { PaymentMethod } from "@funkit/connect-core";
|
|
5
|
-
import { exhaustiveCheck, formatAddress } from "@funkit/utils";
|
|
6
|
-
|
|
7
|
-
// src/consts/bluvo.tsx
|
|
8
|
-
import {
|
|
9
|
-
ETHEREAL_API_KEY,
|
|
10
|
-
FormOfPaymentType
|
|
11
|
-
} from "@funkit/api-base";
|
|
12
|
-
import React7 from "react";
|
|
13
|
-
|
|
14
|
-
// src/components/Icons/BinanceIcon.tsx
|
|
15
|
-
import React from "react";
|
|
16
|
-
var BinanceIcon = ({ size = 24 }) => {
|
|
17
|
-
return /* @__PURE__ */ React.createElement(
|
|
18
|
-
"svg",
|
|
19
|
-
{
|
|
20
|
-
width: size,
|
|
21
|
-
height: size,
|
|
22
|
-
viewBox: "0 0 20 20",
|
|
23
|
-
fill: "none",
|
|
24
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
25
|
-
},
|
|
26
|
-
/* @__PURE__ */ React.createElement("rect", { width: "20", height: "20", rx: "4", fill: "#F3BA2F" }),
|
|
27
|
-
/* @__PURE__ */ React.createElement(
|
|
28
|
-
"path",
|
|
29
|
-
{
|
|
30
|
-
d: "M7.67 9.04 10 6.71l2.33 2.34 1.36-1.36L10 4 6.31 7.69zM4 10l1.36-1.36L6.7 10l-1.35 1.36zm3.67.96L10 13.29l2.33-2.33 1.36 1.35-3.69 3.7-3.69-3.7zm5.62-.96 1.35-1.35L16 10l-1.36 1.36z",
|
|
31
|
-
fill: "#fff"
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
/* @__PURE__ */ React.createElement(
|
|
35
|
-
"path",
|
|
36
|
-
{
|
|
37
|
-
d: "M11.38 10 10 8.62 8.98 9.64l-.11.12-.25.24L10 11.38z",
|
|
38
|
-
fill: "#fff"
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
// src/components/Icons/BybitIcon.tsx
|
|
45
|
-
import React2 from "react";
|
|
46
|
-
var BybitIcon = ({ size = 24 }) => {
|
|
47
|
-
return /* @__PURE__ */ React2.createElement(
|
|
48
|
-
"svg",
|
|
49
|
-
{
|
|
50
|
-
width: size,
|
|
51
|
-
height: size,
|
|
52
|
-
viewBox: "0 0 20 20",
|
|
53
|
-
fill: "none",
|
|
54
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
55
|
-
},
|
|
56
|
-
/* @__PURE__ */ React2.createElement("rect", { width: "20", height: "20", rx: "4", fill: "#0B0E11" }),
|
|
57
|
-
/* @__PURE__ */ React2.createElement("g", { transform: "translate(2 6.78) scale(0.184)" }, /* @__PURE__ */ React2.createElement("path", { d: "M62.0083 25.3572V3H66.5022V25.3572H62.0083Z", fill: "#F7A600" }), /* @__PURE__ */ React2.createElement(
|
|
58
|
-
"path",
|
|
59
|
-
{
|
|
60
|
-
d: "M9.63407 31.9983H0V9.64111H9.24666C13.7406 9.64111 16.3591 12.0903 16.3591 15.9214C16.3591 18.4013 14.6774 20.0039 13.5134 20.5375C14.9028 21.1652 16.6813 22.5779 16.6813 25.5624C16.6813 29.7373 13.7406 31.9983 9.63407 31.9983ZM8.89096 13.5355H4.4939V18.6852H8.89096C10.7981 18.6852 11.8652 17.6488 11.8652 16.1095C11.8652 14.5719 10.7981 13.5355 8.89096 13.5355ZM9.18151 22.6104H4.4939V28.1056H9.18151C11.2189 28.1056 12.1874 26.8503 12.1874 25.3418C12.1874 23.835 11.2171 22.6104 9.18151 22.6104Z",
|
|
61
|
-
fill: "white"
|
|
62
|
-
}
|
|
63
|
-
), /* @__PURE__ */ React2.createElement(
|
|
64
|
-
"path",
|
|
65
|
-
{
|
|
66
|
-
d: "M30.3882 22.8293V31.9983H25.926V22.8293L19.0073 9.64111H23.8886L28.1888 18.6527L32.4239 9.64111H37.3052L30.3882 22.8293Z",
|
|
67
|
-
fill: "white"
|
|
68
|
-
}
|
|
69
|
-
), /* @__PURE__ */ React2.createElement(
|
|
70
|
-
"path",
|
|
71
|
-
{
|
|
72
|
-
d: "M50.0457 31.9983H40.4116V9.64111H49.6583C54.1522 9.64111 56.7707 12.0903 56.7707 15.9214C56.7707 18.4013 55.089 20.0039 53.925 20.5375C55.3144 21.1652 57.093 22.5779 57.093 25.5624C57.093 29.7373 54.1522 31.9983 50.0457 31.9983ZM49.3026 13.5355H44.9055V18.6852H49.3026C51.2097 18.6852 52.2768 17.6488 52.2768 16.1095C52.2768 14.5719 51.2097 13.5355 49.3026 13.5355ZM49.5931 22.6104H44.9055V28.1056H49.5931C51.6305 28.1056 52.599 26.8503 52.599 25.3418C52.599 23.835 51.6305 22.6104 49.5931 22.6104Z",
|
|
73
|
-
fill: "white"
|
|
74
|
-
}
|
|
75
|
-
), /* @__PURE__ */ React2.createElement(
|
|
76
|
-
"path",
|
|
77
|
-
{
|
|
78
|
-
d: "M80.986 13.5355V32H76.4921V13.5355H70.4785V9.64111H86.9996V13.5355H80.986Z",
|
|
79
|
-
fill: "white"
|
|
80
|
-
}
|
|
81
|
-
))
|
|
82
|
-
);
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
// src/components/Icons/CoinbaseIcon.tsx
|
|
86
|
-
import React3 from "react";
|
|
87
|
-
var CoinbaseIcon = ({ size = 24 }) => {
|
|
88
|
-
return /* @__PURE__ */ React3.createElement(
|
|
89
|
-
"svg",
|
|
90
|
-
{
|
|
91
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
92
|
-
width: size,
|
|
93
|
-
height: size,
|
|
94
|
-
viewBox: "0 0 20 20",
|
|
95
|
-
fill: "none"
|
|
96
|
-
},
|
|
97
|
-
/* @__PURE__ */ React3.createElement("rect", { width: "20", height: "20", rx: "4", fill: "#2C5FF6" }),
|
|
98
|
-
/* @__PURE__ */ React3.createElement(
|
|
99
|
-
"path",
|
|
100
|
-
{
|
|
101
|
-
d: "M9.99 13.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5c1.76 0 3.22 1.305 3.46 3h3.52A7.005 7.005 0 0 0 9.99 3c-3.86 0-7 3.14-7 7s3.14 7 7 7c3.69 0 6.725-2.87 6.98-6.5h-3.52c-.24 1.695-1.7 3-3.46 3Z",
|
|
102
|
-
fill: "#fff"
|
|
103
|
-
}
|
|
104
|
-
)
|
|
105
|
-
);
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
// src/components/Icons/GateIoIcon.tsx
|
|
109
|
-
import React4 from "react";
|
|
110
|
-
var GateIoIcon = ({ size = 24 }) => {
|
|
111
|
-
return /* @__PURE__ */ React4.createElement(
|
|
112
|
-
"svg",
|
|
113
|
-
{
|
|
114
|
-
width: size,
|
|
115
|
-
height: size,
|
|
116
|
-
viewBox: "0 0 25 25",
|
|
117
|
-
fill: "none",
|
|
118
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
119
|
-
},
|
|
120
|
-
/* @__PURE__ */ React4.createElement("rect", { width: "25", height: "25", rx: "5.357", fill: "#fff" }),
|
|
121
|
-
/* @__PURE__ */ React4.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ React4.createElement(
|
|
122
|
-
"mask",
|
|
123
|
-
{
|
|
124
|
-
id: "b",
|
|
125
|
-
maskUnits: "userSpaceOnUse",
|
|
126
|
-
x: "5",
|
|
127
|
-
y: "5",
|
|
128
|
-
width: "15",
|
|
129
|
-
height: "15",
|
|
130
|
-
style: { maskType: "luminance" }
|
|
131
|
-
},
|
|
132
|
-
/* @__PURE__ */ React4.createElement("path", { d: "M5 5h15v15H5V5Z", fill: "#fff" })
|
|
133
|
-
), /* @__PURE__ */ React4.createElement("g", { mask: "url(#b)" }, /* @__PURE__ */ React4.createElement(
|
|
134
|
-
"path",
|
|
135
|
-
{
|
|
136
|
-
fillRule: "evenodd",
|
|
137
|
-
clipRule: "evenodd",
|
|
138
|
-
d: "M12.5 16.625a4.125 4.125 0 0 1 0-8.25V5a7.5 7.5 0 1 0 7.5 7.5h-3.375a4.125 4.125 0 0 1-4.125 4.125Z",
|
|
139
|
-
fill: "#2354E6"
|
|
140
|
-
}
|
|
141
|
-
)), /* @__PURE__ */ React4.createElement(
|
|
142
|
-
"path",
|
|
143
|
-
{
|
|
144
|
-
fillRule: "evenodd",
|
|
145
|
-
clipRule: "evenodd",
|
|
146
|
-
d: "M12.5 12.5h4.125V8.375H12.5V12.5Z",
|
|
147
|
-
fill: "#17E6A1"
|
|
148
|
-
}
|
|
149
|
-
)),
|
|
150
|
-
/* @__PURE__ */ React4.createElement("defs", null, /* @__PURE__ */ React4.createElement("clipPath", { id: "a" }, /* @__PURE__ */ React4.createElement("path", { fill: "#fff", transform: "translate(5 5)", d: "M0 0h15v15H0z" })))
|
|
151
|
-
);
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
// src/components/Icons/GeminiIcon.tsx
|
|
155
|
-
import React5 from "react";
|
|
156
|
-
var GeminiIcon = ({ size = 24 }) => {
|
|
157
|
-
return /* @__PURE__ */ React5.createElement(
|
|
158
|
-
"svg",
|
|
159
|
-
{
|
|
160
|
-
width: size,
|
|
161
|
-
height: size,
|
|
162
|
-
viewBox: "0 0 20 20",
|
|
163
|
-
fill: "none",
|
|
164
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
165
|
-
},
|
|
166
|
-
/* @__PURE__ */ React5.createElement(
|
|
167
|
-
"path",
|
|
168
|
-
{
|
|
169
|
-
d: "M16 0H4a4 4 0 0 0-4 4v12a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4",
|
|
170
|
-
fill: "#58C8E6"
|
|
171
|
-
}
|
|
172
|
-
),
|
|
173
|
-
/* @__PURE__ */ React5.createElement(
|
|
174
|
-
"path",
|
|
175
|
-
{
|
|
176
|
-
d: "M15.025 7.686H8.661a3.21 3.21 0 0 1 3.182-2.746 3.21 3.21 0 0 1 3.182 2.746m-3.653.94v2.746H8.626V8.626zm-.035 3.686a3.21 3.21 0 0 1-3.182 2.746 3.21 3.21 0 0 1-3.183-2.746zm-6.365-.94A3.23 3.23 0 0 1 7.686 8.66v2.71zm10.053-2.746a3.23 3.23 0 0 1-2.711 2.71v-2.71zM11.843 4C9.734 4 7.937 5.624 7.712 7.712A4.18 4.18 0 0 0 4 11.843 4.16 4.16 0 0 0 8.157 16c2.109 0 3.909-1.624 4.131-3.712C14.376 12.063 16 10.266 16 8.157A4.16 4.16 0 0 0 11.843 4",
|
|
177
|
-
fill: "#fff"
|
|
178
|
-
}
|
|
179
|
-
)
|
|
180
|
-
);
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
// src/components/Icons/KrakenIcon.tsx
|
|
184
|
-
import React6 from "react";
|
|
185
|
-
var KrakenIcon = ({ size = 24 }) => {
|
|
186
|
-
return /* @__PURE__ */ React6.createElement(
|
|
187
|
-
"svg",
|
|
188
|
-
{
|
|
189
|
-
width: size,
|
|
190
|
-
height: size,
|
|
191
|
-
viewBox: "0 0 20 20",
|
|
192
|
-
fill: "none",
|
|
193
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
194
|
-
},
|
|
195
|
-
/* @__PURE__ */ React6.createElement(
|
|
196
|
-
"path",
|
|
197
|
-
{
|
|
198
|
-
d: "M16 0H4a4 4 0 0 0-4 4v12a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4",
|
|
199
|
-
fill: "#5741D9"
|
|
200
|
-
}
|
|
201
|
-
),
|
|
202
|
-
/* @__PURE__ */ React6.createElement(
|
|
203
|
-
"path",
|
|
204
|
-
{
|
|
205
|
-
d: "M4 11.78v-.67a6.4 6.4 0 0 1 .83-3.26 6 6 0 0 1 2.64-2.3A6 6 0 0 1 9.89 5q1.84-.02 3.4.96a5.6 5.6 0 0 1 2.64 4.18q.1.9.07 1.82l-.01.98q0 .22-.05.43c-.15.54-.8.8-1.27.49a.8.8 0 0 1-.35-.57l-.04-.48v-1.98q0-.4-.26-.68a.83.83 0 0 0-1.17-.04 1 1 0 0 0-.32.65v.28l-.01 2.19c0 .41-.33.73-.76.76a1 1 0 0 1-.56-.17.8.8 0 0 1-.3-.48l-.03-.33v-2.2a1 1 0 0 0-.26-.65.84.84 0 0 0-1.25.02 1 1 0 0 0-.24.64V13q0 .28-.1.54a1 1 0 0 1-.32.34.8.8 0 0 1-1.17-.4 1 1 0 0 1-.07-.38V11q.01-.24-.05-.47a.9.9 0 0 0-.72-.62c-.37-.06-.65.11-.85.4q-.14.22-.14.46v2q.02.3-.04.59a.84.84 0 0 1-.87.63.9.9 0 0 1-.74-.63A1 1 0 0 1 4 13z",
|
|
206
|
-
fill: "#fff"
|
|
207
|
-
}
|
|
208
|
-
)
|
|
209
|
-
);
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
// src/consts/bluvo.tsx
|
|
213
|
-
var BLUVO_MIN_DEPOSIT_BY_CUSTOMER = {
|
|
214
|
-
[ETHEREAL_API_KEY]: 15
|
|
215
|
-
};
|
|
216
|
-
var BLUVO_EXCHANGES = {
|
|
217
|
-
coinbase: {
|
|
218
|
-
icon: (size) => /* @__PURE__ */ React7.createElement(CoinbaseIcon, { size }),
|
|
219
|
-
name: "Coinbase"
|
|
220
|
-
},
|
|
221
|
-
binance: {
|
|
222
|
-
icon: (size) => /* @__PURE__ */ React7.createElement(BinanceIcon, { size }),
|
|
223
|
-
name: "Binance"
|
|
224
|
-
},
|
|
225
|
-
gemini: {
|
|
226
|
-
icon: (size) => /* @__PURE__ */ React7.createElement(GeminiIcon, { size }),
|
|
227
|
-
name: "Gemini"
|
|
228
|
-
},
|
|
229
|
-
kraken: {
|
|
230
|
-
icon: (size) => /* @__PURE__ */ React7.createElement(KrakenIcon, { size }),
|
|
231
|
-
name: "Kraken"
|
|
232
|
-
},
|
|
233
|
-
gate: {
|
|
234
|
-
icon: (size) => /* @__PURE__ */ React7.createElement(GateIoIcon, { size }),
|
|
235
|
-
name: "Gate"
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
function getExchangeName(brokerType) {
|
|
239
|
-
return BLUVO_EXCHANGES[brokerType].name;
|
|
240
|
-
}
|
|
241
|
-
var FOP_COMPONENT_ICONS = {
|
|
242
|
-
[FormOfPaymentType.BYBIT]: (size) => /* @__PURE__ */ React7.createElement(BybitIcon, { size })
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
// src/domains/paymentMethods.ts
|
|
246
|
-
function createPaymentMethodInfo(params) {
|
|
247
|
-
switch (params.paymentMethod) {
|
|
248
|
-
case PaymentMethod.CARD:
|
|
249
|
-
return {
|
|
250
|
-
paymentMethod: PaymentMethod.CARD,
|
|
251
|
-
title: params.titleCustomization,
|
|
252
|
-
description: ""
|
|
253
|
-
};
|
|
254
|
-
case PaymentMethod.ACCOUNT_BALANCE:
|
|
255
|
-
return {
|
|
256
|
-
paymentMethod: PaymentMethod.ACCOUNT_BALANCE,
|
|
257
|
-
title: "Your Wallet",
|
|
258
|
-
description: formatAddress(params.walletAddress || "")
|
|
259
|
-
};
|
|
260
|
-
case PaymentMethod.BROKERAGE:
|
|
261
|
-
return {
|
|
262
|
-
paymentMethod: PaymentMethod.BROKERAGE,
|
|
263
|
-
title: getExchangeName(params.exchange),
|
|
264
|
-
description: "",
|
|
265
|
-
deviceId: params.deviceId,
|
|
266
|
-
exchange: params.exchange
|
|
267
|
-
};
|
|
268
|
-
case PaymentMethod.TOKEN_TRANSFER:
|
|
269
|
-
return {
|
|
270
|
-
// this is an arbitrary value for Polymarket.
|
|
271
|
-
paymentMethod: PaymentMethod.TOKEN_TRANSFER,
|
|
272
|
-
title: "QR Code Transfer",
|
|
273
|
-
description: ""
|
|
274
|
-
};
|
|
275
|
-
case PaymentMethod.BITCOIN_LIGHTNING:
|
|
276
|
-
return {
|
|
277
|
-
paymentMethod: PaymentMethod.BITCOIN_LIGHTNING,
|
|
278
|
-
title: "Bitcoin Lightning",
|
|
279
|
-
description: ""
|
|
280
|
-
};
|
|
281
|
-
case PaymentMethod.CASH_APP_LIGHTNING:
|
|
282
|
-
return {
|
|
283
|
-
paymentMethod: PaymentMethod.CASH_APP_LIGHTNING,
|
|
284
|
-
title: "Cash App",
|
|
285
|
-
description: ""
|
|
286
|
-
};
|
|
287
|
-
case PaymentMethod.VIRTUAL_BANK:
|
|
288
|
-
return {
|
|
289
|
-
paymentMethod: PaymentMethod.VIRTUAL_BANK,
|
|
290
|
-
title: "Fiat Account",
|
|
291
|
-
description: "",
|
|
292
|
-
matchingFiatAccount: params.matchingFiatAccount,
|
|
293
|
-
bridgeCustomer: params.bridgeCustomer
|
|
294
|
-
};
|
|
295
|
-
default:
|
|
296
|
-
exhaustiveCheck(params);
|
|
297
|
-
return {};
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
// src/domains/clientMetadata.ts
|
|
302
|
-
function generateClientMetadataForTokenTransfer() {
|
|
303
|
-
return {
|
|
304
|
-
id: "",
|
|
305
|
-
startTimestampMs: 0,
|
|
306
|
-
finalDollarValue: 0,
|
|
307
|
-
latestQuote: null,
|
|
308
|
-
depositAddress: null,
|
|
309
|
-
initSettings: {
|
|
310
|
-
config: {
|
|
311
|
-
targetAsset: "0x",
|
|
312
|
-
targetChain: "",
|
|
313
|
-
targetAssetTicker: "",
|
|
314
|
-
checkoutItemTitle: ""
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
selectedSourceAssetInfo: {
|
|
318
|
-
address: "0x",
|
|
319
|
-
symbol: "",
|
|
320
|
-
chainId: "",
|
|
321
|
-
iconSrc: null
|
|
322
|
-
},
|
|
323
|
-
selectedPaymentMethodInfo: createPaymentMethodInfo({
|
|
324
|
-
paymentMethod: PaymentMethod.TOKEN_TRANSFER
|
|
325
|
-
})
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export {
|
|
330
|
-
generateClientMetadataForTokenTransfer
|
|
331
|
-
};
|