@coinflowlabs/vue 2.0.0 → 2.0.1-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/dist/coinflow-vue.js +165 -209
- package/dist/coinflow-vue.umd.cjs +6 -6
- package/dist/components/CoinflowPurchase.vue.d.ts +0 -42
- package/dist/components/CoinflowWithdraw.vue.d.ts +7 -40
- package/dist/lib/common/CoinflowTypes.d.ts +9 -29
- package/dist/lib/common/CoinflowUtils.d.ts +0 -1
- package/package.json +1 -1
|
@@ -269,48 +269,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
269
269
|
handleHeightChange?: (height: string) => void;
|
|
270
270
|
theme?: import('..').MerchantTheme;
|
|
271
271
|
supportEmail?: string;
|
|
272
|
-
} | {
|
|
273
|
-
walletPubkey: string | null | undefined;
|
|
274
|
-
route: string;
|
|
275
|
-
transaction: string | undefined;
|
|
276
|
-
wallet: import('..').StellarWallet;
|
|
277
|
-
blockchain: "stellar";
|
|
278
|
-
subtotal?: import('..').Subtotal;
|
|
279
|
-
useNativeSubtotal?: boolean;
|
|
280
|
-
presentment?: import('..').Currency;
|
|
281
|
-
onSuccess?: import('..').OnSuccessMethod;
|
|
282
|
-
sessionKey?: string;
|
|
283
|
-
onAuthDeclined?: import('..').OnAuthDeclinedMethod;
|
|
284
|
-
onInputError?: import('..').OnInputErrorMethod;
|
|
285
|
-
onInputValid?: import('..').OnInputValidMethod;
|
|
286
|
-
webhookInfo?: {
|
|
287
|
-
[key: string]: any;
|
|
288
|
-
};
|
|
289
|
-
email?: string;
|
|
290
|
-
chargebackProtectionData?: import('..').ChargebackProtectionData;
|
|
291
|
-
chargebackProtectionAccountType?: import('..').ChargebackProtectionAccountType;
|
|
292
|
-
planCode?: string;
|
|
293
|
-
allowedPaymentMethods?: import('..').PaymentMethods[];
|
|
294
|
-
allowedCardFunding?: import('..').CardFunding[];
|
|
295
|
-
customerInfo?: import('..').CustomerInfo;
|
|
296
|
-
settlementType?: import('..').SettlementType;
|
|
297
|
-
authOnly?: boolean;
|
|
298
|
-
isZeroAuthorization?: boolean;
|
|
299
|
-
zeroAuthorizationConfig?: import('..').ZeroAuthorizationConfig;
|
|
300
|
-
partialUsdcChecked?: boolean;
|
|
301
|
-
deviceId?: string;
|
|
302
|
-
jwtToken?: string;
|
|
303
|
-
origins?: string[];
|
|
304
|
-
threeDsChallengePreference?: import('..').ThreeDsChallengePreference;
|
|
305
|
-
destinationAuthKey?: string;
|
|
306
|
-
accountFundingTransaction?: import('..').AccountFundingTransaction;
|
|
307
|
-
depositAmounts?: number[];
|
|
308
|
-
merchantId: string;
|
|
309
|
-
env?: import('..').CoinflowEnvs;
|
|
310
|
-
loaderBackground?: string;
|
|
311
|
-
handleHeightChange?: (height: string) => void;
|
|
312
|
-
theme?: import('..').MerchantTheme;
|
|
313
|
-
supportEmail?: string;
|
|
314
272
|
} | {
|
|
315
273
|
walletPubkey: string | null | undefined;
|
|
316
274
|
route: string;
|
|
@@ -20,7 +20,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
20
20
|
bankAccountLinkRedirect?: string;
|
|
21
21
|
additionalWallets?: {
|
|
22
22
|
wallet: string;
|
|
23
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
23
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
24
24
|
}[];
|
|
25
25
|
lockAmount?: boolean;
|
|
26
26
|
transactionSigner?: string;
|
|
@@ -55,7 +55,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
55
55
|
bankAccountLinkRedirect?: string;
|
|
56
56
|
additionalWallets?: {
|
|
57
57
|
wallet: string;
|
|
58
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
58
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
59
59
|
}[];
|
|
60
60
|
lockAmount?: boolean;
|
|
61
61
|
transactionSigner?: string;
|
|
@@ -89,7 +89,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
89
89
|
bankAccountLinkRedirect?: string;
|
|
90
90
|
additionalWallets?: {
|
|
91
91
|
wallet: string;
|
|
92
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
92
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
93
93
|
}[];
|
|
94
94
|
lockAmount?: boolean;
|
|
95
95
|
transactionSigner?: string;
|
|
@@ -123,7 +123,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
123
123
|
bankAccountLinkRedirect?: string;
|
|
124
124
|
additionalWallets?: {
|
|
125
125
|
wallet: string;
|
|
126
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
126
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
127
127
|
}[];
|
|
128
128
|
lockAmount?: boolean;
|
|
129
129
|
transactionSigner?: string;
|
|
@@ -157,7 +157,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
157
157
|
bankAccountLinkRedirect?: string;
|
|
158
158
|
additionalWallets?: {
|
|
159
159
|
wallet: string;
|
|
160
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
160
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
161
161
|
}[];
|
|
162
162
|
lockAmount?: boolean;
|
|
163
163
|
transactionSigner?: string;
|
|
@@ -191,40 +191,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
191
191
|
bankAccountLinkRedirect?: string;
|
|
192
192
|
additionalWallets?: {
|
|
193
193
|
wallet: string;
|
|
194
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
195
|
-
}[];
|
|
196
|
-
lockAmount?: boolean;
|
|
197
|
-
transactionSigner?: string;
|
|
198
|
-
origins?: string[];
|
|
199
|
-
sessionKey?: string;
|
|
200
|
-
allowedWithdrawSpeeds?: import('..').WithdrawSpeed[];
|
|
201
|
-
userLocation?: {
|
|
202
|
-
lat: number;
|
|
203
|
-
lng: number;
|
|
204
|
-
};
|
|
205
|
-
appReturnUrl?: string;
|
|
206
|
-
merchantId: string;
|
|
207
|
-
env?: import('..').CoinflowEnvs;
|
|
208
|
-
loaderBackground?: string;
|
|
209
|
-
blockchain: "stellar";
|
|
210
|
-
handleHeightChange?: (height: string) => void;
|
|
211
|
-
theme?: import('..').MerchantTheme;
|
|
212
|
-
supportEmail?: string;
|
|
213
|
-
wallet: import('..').StellarWallet;
|
|
214
|
-
} | {
|
|
215
|
-
walletPubkey: string | null | undefined;
|
|
216
|
-
route: string;
|
|
217
|
-
transaction: undefined;
|
|
218
|
-
onSuccess?: import('..').OnSuccessMethod;
|
|
219
|
-
onAccountLinkError?: import('..').OnAccountLinkErrorMethod;
|
|
220
|
-
tokens?: string[];
|
|
221
|
-
lockDefaultToken?: boolean;
|
|
222
|
-
amount?: number;
|
|
223
|
-
email?: string;
|
|
224
|
-
bankAccountLinkRedirect?: string;
|
|
225
|
-
additionalWallets?: {
|
|
226
|
-
wallet: string;
|
|
227
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
|
|
194
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
228
195
|
}[];
|
|
229
196
|
lockAmount?: boolean;
|
|
230
197
|
transactionSigner?: string;
|
|
@@ -258,7 +225,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
258
225
|
bankAccountLinkRedirect?: string;
|
|
259
226
|
additionalWallets?: {
|
|
260
227
|
wallet: string;
|
|
261
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo"
|
|
228
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo";
|
|
262
229
|
}[];
|
|
263
230
|
lockAmount?: boolean;
|
|
264
231
|
transactionSigner?: string;
|
|
@@ -144,7 +144,7 @@ export interface SplitNameCustomerInfo extends BaseCustomerInfo {
|
|
|
144
144
|
}
|
|
145
145
|
export type CustomerInfo = SplitNameCustomerInfo | NameCustomerInfo;
|
|
146
146
|
/** Coinflow Types **/
|
|
147
|
-
export type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | '
|
|
147
|
+
export type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo' | 'user';
|
|
148
148
|
export type CoinflowEnvs = 'prod' | 'staging' | 'sandbox' | 'local';
|
|
149
149
|
export interface CoinflowTypes {
|
|
150
150
|
merchantId: string;
|
|
@@ -243,12 +243,6 @@ export type EthWallet = {
|
|
|
243
243
|
}>;
|
|
244
244
|
signMessage: (message: string) => Promise<string>;
|
|
245
245
|
};
|
|
246
|
-
export interface StellarWallet {
|
|
247
|
-
address: string | null;
|
|
248
|
-
sendTransaction: (base64Xdr: string) => Promise<string>;
|
|
249
|
-
signTransaction: (base64Xdr: string) => Promise<string>;
|
|
250
|
-
signMessage: (message: string) => Promise<string>;
|
|
251
|
-
}
|
|
252
246
|
/** History **/
|
|
253
247
|
export interface CoinflowSolanaHistoryProps extends CoinflowTypes {
|
|
254
248
|
wallet: SolanaWallet;
|
|
@@ -275,17 +269,13 @@ export interface CoinflowBaseHistoryProps extends CoinflowEvmHistoryProps {
|
|
|
275
269
|
export interface CoinflowArbitrumHistoryProps extends CoinflowEvmHistoryProps {
|
|
276
270
|
blockchain: 'arbitrum';
|
|
277
271
|
}
|
|
278
|
-
export interface CoinflowStellarHistoryProps extends CoinflowTypes {
|
|
279
|
-
wallet: StellarWallet;
|
|
280
|
-
blockchain: 'stellar';
|
|
281
|
-
}
|
|
282
272
|
export interface CoinflowMonadHistoryProps extends CoinflowEvmHistoryProps {
|
|
283
273
|
blockchain: 'monad';
|
|
284
274
|
}
|
|
285
275
|
export interface CoinflowTempoHistoryProps extends CoinflowEvmHistoryProps {
|
|
286
276
|
blockchain: 'tempo';
|
|
287
277
|
}
|
|
288
|
-
export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps |
|
|
278
|
+
export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps | CoinflowMonadHistoryProps | CoinflowTempoHistoryProps | CoinflowSessionKeyHistoryProps;
|
|
289
279
|
type Bytes = ArrayLike<number>;
|
|
290
280
|
type BytesLike = Bytes | string;
|
|
291
281
|
/**
|
|
@@ -370,12 +360,12 @@ export interface CoinflowCommonPaymentIntentProps extends Omit<CoinflowTypes, 'b
|
|
|
370
360
|
* End-user wallet used for wallet-authenticated payment-intent checkout flows.
|
|
371
361
|
*
|
|
372
362
|
* Required when the target payment intent type depends on a customer wallet
|
|
373
|
-
* (for example: EVM/Solana
|
|
363
|
+
* (for example: EVM/Solana transaction intents or credits/USDC signing flows).
|
|
374
364
|
*
|
|
375
365
|
* The wallet implementation must match the active blockchain.
|
|
376
366
|
*/
|
|
377
367
|
wallet?: WalletTypes;
|
|
378
|
-
blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | '
|
|
368
|
+
blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad';
|
|
379
369
|
}
|
|
380
370
|
export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
381
371
|
subtotal?: Subtotal;
|
|
@@ -522,18 +512,13 @@ export interface CoinflowBasePurchaseProps extends CoinflowEvmPurchaseProps {
|
|
|
522
512
|
export interface CoinflowArbitrumPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
523
513
|
blockchain: 'arbitrum';
|
|
524
514
|
}
|
|
525
|
-
export interface CoinflowStellarPurchaseProps extends CoinflowCommonPurchaseProps {
|
|
526
|
-
wallet: StellarWallet;
|
|
527
|
-
transaction?: string;
|
|
528
|
-
blockchain: 'stellar';
|
|
529
|
-
}
|
|
530
515
|
export interface CoinflowMonadPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
531
516
|
blockchain: 'monad';
|
|
532
517
|
}
|
|
533
518
|
export interface CoinflowTempoPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
534
519
|
blockchain: 'tempo';
|
|
535
520
|
}
|
|
536
|
-
export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps |
|
|
521
|
+
export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps | CoinflowMonadPurchaseProps | CoinflowTempoPurchaseProps;
|
|
537
522
|
/** Withdraw **/
|
|
538
523
|
export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
539
524
|
onSuccess?: OnSuccessMethod;
|
|
@@ -545,7 +530,7 @@ export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
|
545
530
|
bankAccountLinkRedirect?: string;
|
|
546
531
|
additionalWallets?: {
|
|
547
532
|
wallet: string;
|
|
548
|
-
blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo'
|
|
533
|
+
blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo';
|
|
549
534
|
}[];
|
|
550
535
|
lockAmount?: boolean;
|
|
551
536
|
transactionSigner?: string;
|
|
@@ -587,7 +572,7 @@ export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
|
587
572
|
*/
|
|
588
573
|
appReturnUrl?: string;
|
|
589
574
|
}
|
|
590
|
-
export type WalletTypes = SolanaWallet | EthWallet
|
|
575
|
+
export type WalletTypes = SolanaWallet | EthWallet;
|
|
591
576
|
export interface SolanaWalletProps {
|
|
592
577
|
wallet: SolanaWallet;
|
|
593
578
|
connection: Connection;
|
|
@@ -616,11 +601,6 @@ export interface ArbitrumWalletProps {
|
|
|
616
601
|
blockchain: 'arbitrum';
|
|
617
602
|
}
|
|
618
603
|
export type CoinflowArbitrumWithdrawProps = CoinflowEvmWithdrawProps & ArbitrumWalletProps;
|
|
619
|
-
export interface StellarWalletProps {
|
|
620
|
-
wallet: StellarWallet;
|
|
621
|
-
blockchain: 'stellar';
|
|
622
|
-
}
|
|
623
|
-
export type CoinflowStellarWithdrawProps = CoinflowCommonWithdrawProps & StellarWalletProps;
|
|
624
604
|
export interface MonadWalletProps {
|
|
625
605
|
blockchain: 'monad';
|
|
626
606
|
}
|
|
@@ -629,7 +609,7 @@ export interface TempoWalletProps {
|
|
|
629
609
|
blockchain: 'tempo';
|
|
630
610
|
}
|
|
631
611
|
export type CoinflowTempoWithdrawProps = CoinflowEvmWithdrawProps & TempoWalletProps;
|
|
632
|
-
export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps |
|
|
612
|
+
export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps | CoinflowMonadWithdrawProps | CoinflowTempoWithdrawProps;
|
|
633
613
|
export interface CommonEvmRedeem {
|
|
634
614
|
/**
|
|
635
615
|
* Whether the UI should wait
|
|
@@ -822,7 +802,7 @@ export interface CoinflowIntentsIFrameProps {
|
|
|
822
802
|
origins?: string[];
|
|
823
803
|
deviceId?: string;
|
|
824
804
|
walletPubkey?: string | undefined | null;
|
|
825
|
-
blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | '
|
|
805
|
+
blockchain?: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad';
|
|
826
806
|
}
|
|
827
807
|
export declare enum CardType {
|
|
828
808
|
VISA = "VISA",
|