@coinflowlabs/react 4.0.0 → 4.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/README.md +6 -0
- package/build/cjs/CoinflowApplePayButton.js +1 -0
- package/build/cjs/CoinflowApplePayButton.js.map +1 -1
- package/build/cjs/CoinflowPurchase.d.ts +1 -1
- package/build/cjs/CoinflowPurchase.js +2 -1
- package/build/cjs/CoinflowPurchase.js.map +1 -1
- package/build/cjs/CoinflowPurchaseHistory.d.ts +1 -1
- package/build/cjs/CoinflowPurchaseHistory.js +1 -0
- package/build/cjs/CoinflowPurchaseHistory.js.map +1 -1
- package/build/cjs/CoinflowTypes.d.ts +23 -9
- package/build/cjs/CoinflowUtils.d.ts +2 -1
- package/build/cjs/CoinflowUtils.js +7 -1
- package/build/cjs/CoinflowUtils.js.map +1 -1
- package/build/cjs/CoinflowWithdraw.d.ts +1 -1
- package/build/cjs/CoinflowWithdraw.js +1 -0
- package/build/cjs/CoinflowWithdraw.js.map +1 -1
- package/build/cjs/CoinflowWithdrawHistory.d.ts +2 -2
- package/build/cjs/CoinflowWithdrawHistory.js +1 -0
- package/build/cjs/CoinflowWithdrawHistory.js.map +1 -1
- package/build/esm/CoinflowApplePayButton.js +1 -0
- package/build/esm/CoinflowApplePayButton.js.map +1 -1
- package/build/esm/CoinflowPurchase.d.ts +1 -1
- package/build/esm/CoinflowPurchase.js +2 -1
- package/build/esm/CoinflowPurchase.js.map +1 -1
- package/build/esm/CoinflowPurchaseHistory.d.ts +1 -1
- package/build/esm/CoinflowPurchaseHistory.js +1 -0
- package/build/esm/CoinflowPurchaseHistory.js.map +1 -1
- package/build/esm/CoinflowTypes.d.ts +23 -9
- package/build/esm/CoinflowUtils.d.ts +2 -1
- package/build/esm/CoinflowUtils.js +7 -1
- package/build/esm/CoinflowUtils.js.map +1 -1
- package/build/esm/CoinflowWithdraw.d.ts +1 -1
- package/build/esm/CoinflowWithdraw.js +1 -0
- package/build/esm/CoinflowWithdraw.js.map +1 -1
- package/build/esm/CoinflowWithdrawHistory.d.ts +2 -2
- package/build/esm/CoinflowWithdrawHistory.js +1 -0
- package/build/esm/CoinflowWithdrawHistory.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ Props:
|
|
|
24
24
|
* `bankAccountLinkRedirect` (optional): The URL to be used for bank account setup
|
|
25
25
|
* `supportsVersionedTransactions` (optional): Instruct the system that versioned transactions are supported
|
|
26
26
|
* `additionalWallets` (optional): Define additional wallets to assign to the user
|
|
27
|
+
* `usePermit` (optional): Pass as false to disable permit message signing for EVM and use approve transactions
|
|
27
28
|
* `transactionSigner` (optional): Public Key of the wallet which will actually execute the withdrawal transaction. Must be associated with the same withdrawer as the main wallet.
|
|
28
29
|
|
|
29
30
|
## Purchase Usage
|
|
@@ -67,6 +68,11 @@ Props:
|
|
|
67
68
|
|
|
68
69
|
# Changelog
|
|
69
70
|
|
|
71
|
+
## 4.1.0
|
|
72
|
+
|
|
73
|
+
- Add base blockchain support
|
|
74
|
+
- Added AuthOnly parameter to CoinflowPurchase
|
|
75
|
+
|
|
70
76
|
## 4.0.0
|
|
71
77
|
|
|
72
78
|
- Require `signMessage` on wallets for stronger withdraw authentication
|
|
@@ -30,6 +30,7 @@ function useStringWalletPubkey(props) {
|
|
|
30
30
|
near: function () { return props.wallet.accountId; },
|
|
31
31
|
eth: function () { return props.wallet.address; },
|
|
32
32
|
polygon: function () { return props.wallet.address; },
|
|
33
|
+
base: function () { return props.wallet.address; },
|
|
33
34
|
});
|
|
34
35
|
return getWalletPubkey();
|
|
35
36
|
}, [props]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowApplePayButton.js","sourceRoot":"","sources":["../../src/CoinflowApplePayButton.tsx"],"names":[],"mappings":";;;;AAOA,mDAAgD;AAChD,qDAAwD;AACxD,iEAA8D;AAC9D,4DAA2D;AAC3D,i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} from "./CoinflowTypes";
|
|
3
3
|
export declare function CoinflowPurchase(props: CoinflowPurchaseProps): React.JSX.Element;
|
|
4
4
|
export declare function EvmCoinflowPurchase(props: CoinflowEvmPurchaseProps): React.JSX.Element | null;
|
|
@@ -14,7 +14,8 @@ function CoinflowPurchase(props) {
|
|
|
14
14
|
solana: (react_1.default.createElement(SolanaCoinflowPurchase, tslib_1.__assign({}, props))),
|
|
15
15
|
near: react_1.default.createElement(NearCoinflowPurchase, tslib_1.__assign({}, props)),
|
|
16
16
|
polygon: (react_1.default.createElement(EvmCoinflowPurchase, tslib_1.__assign({}, props))),
|
|
17
|
-
eth: (react_1.default.createElement(EvmCoinflowPurchase, tslib_1.__assign({}, props)))
|
|
17
|
+
eth: (react_1.default.createElement(EvmCoinflowPurchase, tslib_1.__assign({}, props))),
|
|
18
|
+
base: (react_1.default.createElement(EvmCoinflowPurchase, tslib_1.__assign({}, props)))
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
21
|
exports.CoinflowPurchase = CoinflowPurchase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowPurchase.js","sourceRoot":"","sources":["../../src/CoinflowPurchase.tsx"],"names":[],"mappings":";;;;AAAA,qDAAqC;AACrC,mDAAgD;AAChD,oFAAoF;AACpF,iDAA8C;AAC9C,4DAAyD;AACzD,gFAAgF;
|
|
1
|
+
{"version":3,"file":"CoinflowPurchase.js","sourceRoot":"","sources":["../../src/CoinflowPurchase.tsx"],"names":[],"mappings":";;;;AAAA,qDAAqC;AACrC,mDAAgD;AAChD,oFAAoF;AACpF,iDAA8C;AAC9C,4DAAyD;AACzD,gFAAgF;AAWhF,8EAA8E;AAE9E,SAAgB,gBAAgB,CAAC,KAA4B;IAC3D,OAAO,6BAAa,CAAC,YAAY,CAAC,KAAK,CAAC,UAAU,EAAE;QAClD,MAAM,EAAE,CACN,8BAAC,sBAAsB,uBAAM,KAAqC,EAAI,CACvE;QACD,IAAI,EAAE,8BAAC,oBA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AA2B,EAAC,KAAK,CAAC,CAAC;IAC7C,IAAA,WAAW,GAAY,KAAK,YAAjB,EAAE,MAAM,GAAI,KAAK,OAAT,CAAU;IAC7B,IAAA,SAAS,GAAI,IAAA,iCAAe,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,UAApD,CAAqD;IAErE,IAAM,cAAc,GAAG,IAAA,eAAO,EAAC;QAC7B,IAAI,CAAC,WAAW;YAAE,OAAO,SAAS,CAAC;QACnC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,IAAI,CAAC,MAAM,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAEjC,IAAM,WAAW,yCACZ,KAAK,KACR,YAAY,EAAE,MAAM,CAAC,OAAO,EAC5B,SAAS,WAAA,EACT,WAAW,EAAE,cAAc,EAC3B,KAAK,EAAE,oBAAa,KAAK,CAAC,UAAU,CAAE,GACvC,CAAC;IACF,OAAO,8BAAC,+BAAc,uBAAK,WAAW,EAAI,CAAC;AAC7C,CAAC;AApBD,kDAoBC"}
|
|
@@ -15,6 +15,7 @@ function CoinflowPurchaseHistory(props) {
|
|
|
15
15
|
near: react_1.default.createElement(NearPurchaseHistory, tslib_1.__assign({}, props)),
|
|
16
16
|
polygon: react_1.default.createElement(EvmPurchaseHistory, tslib_1.__assign({}, props)),
|
|
17
17
|
eth: react_1.default.createElement(EvmPurchaseHistory, tslib_1.__assign({}, props)),
|
|
18
|
+
base: react_1.default.createElement(EvmPurchaseHistory, tslib_1.__assign({}, props)),
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
21
|
exports.CoinflowPurchaseHistory = CoinflowPurchaseHistory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowPurchaseHistory.js","sourceRoot":"","sources":["../../src/CoinflowPurchaseHistory.tsx"],"names":[],"mappings":";;;;AAAA,4DAAyD;AACzD,mDAAgD;AAChD,wDAA0B;AAC1B,oFAAoF;AACpF,gFAAgF;AAChF,iDAA8C;
|
|
1
|
+
{"version":3,"file":"CoinflowPurchaseHistory.js","sourceRoot":"","sources":["../../src/CoinflowPurchaseHistory.tsx"],"names":[],"mappings":";;;;AAAA,4DAAyD;AACzD,mDAAgD;AAChD,wDAA0B;AAC1B,oFAAoF;AACpF,gFAAgF;AAChF,iDAA8C;AAU9C,8EAA8E;AAE9E,SAAgB,uBAAuB,CACrC,KAA2B;IAE3B,OAAO,6BAAa,CAAC,YAAY,CAAC,KAAK,CAAC,UAAU,EAAE;QAClD,MAAM,EAAE,CACN,8BAAC,qBAAqB,uBAAM,KAAoC,EAAI,CACrE;QACD,IAAI,EAAE,8BAAC,mBAAmB,uBAAM,KAAkC,EAAI;QACtE,OAAO,EAAE,8BAAC,kBAAkB,uBAAM,KAAqC,EAAI;QAC3E,GAAG,EAAE,8BAAC,kBAAkB,uBAAM,KAAiC,EAAI;QACnE,IAAI,EAAE,8BAAC,kBAAkB,uBAAM,KAAkC,EAAI;KACtE,CAAC,CAAC;AACL,CAAC;AAZD,0DAYC;AAED,SAAS,qBAAqB,CAAC,KAAiC;;IAC9D,IAAM,QAAQ,GAAG,IAAA,4DAA8B,EAAC,KAAK,CAAC,CAAC;IAChD,IAAA,MAAM,GAAI,KAAK,OAAT,CAAU;IAChB,IAAA,SAAS,GAAI,IAAA,iCAAe,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAA,MAAM,CAAC,SAAS,0CAAE,QAAQ,EAAE,CAAC,UAAlE,CAAmE;IAEnF,IAAI,CAAC,MAAM,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IACnC,IAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;IAEjD,IAAM,WAAW,yCACZ,KAAK,KACR,YAAY,cAAA,EACZ,SAAS,WAA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AC;AACJ,CAAC"}
|
|
@@ -38,7 +38,7 @@ interface CustomerInfo {
|
|
|
38
38
|
lng?: string;
|
|
39
39
|
}
|
|
40
40
|
/** Coinflow Types **/
|
|
41
|
-
export type CoinflowBlockchain = 'solana' | 'near' | 'eth' | 'polygon';
|
|
41
|
+
export type CoinflowBlockchain = 'solana' | 'near' | 'eth' | 'polygon' | 'base';
|
|
42
42
|
export type CoinflowEnvs = 'prod' | 'staging' | 'sandbox' | 'local';
|
|
43
43
|
export interface CoinflowTypes {
|
|
44
44
|
merchantId: string;
|
|
@@ -102,8 +102,11 @@ export interface CoinflowEthHistoryProps extends CoinflowEvmHistoryProps {
|
|
|
102
102
|
export interface CoinflowPolygonHistoryProps extends CoinflowEvmHistoryProps {
|
|
103
103
|
blockchain: 'polygon';
|
|
104
104
|
}
|
|
105
|
-
export
|
|
106
|
-
|
|
105
|
+
export interface CoinflowBaseHistoryProps extends CoinflowEvmHistoryProps {
|
|
106
|
+
blockchain: 'base';
|
|
107
|
+
}
|
|
108
|
+
export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowNearHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps;
|
|
109
|
+
export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'amount' | 'customerInfo' | 'settlementType'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'> {
|
|
107
110
|
walletPubkey: string;
|
|
108
111
|
IFrameRef: React.RefObject<HTMLIFrameElement>;
|
|
109
112
|
route: string;
|
|
@@ -128,6 +131,7 @@ export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>,
|
|
|
128
131
|
disableGooglePay?: boolean;
|
|
129
132
|
settlementType?: SettlementType;
|
|
130
133
|
theme?: MerchantTheme;
|
|
134
|
+
usePermit?: boolean;
|
|
131
135
|
}
|
|
132
136
|
/** Transactions **/
|
|
133
137
|
export type NearFtTransferCallAction = {
|
|
@@ -174,6 +178,7 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
174
178
|
disableGooglePay?: boolean;
|
|
175
179
|
customerInfo?: CustomerInfo;
|
|
176
180
|
settlementType?: SettlementType;
|
|
181
|
+
authOnly?: boolean;
|
|
177
182
|
}
|
|
178
183
|
export interface CoinflowSolanaPurchaseProps extends CoinflowCommonPurchaseProps {
|
|
179
184
|
wallet: SolanaWallet;
|
|
@@ -208,7 +213,10 @@ export interface CoinflowPolygonPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
|
208
213
|
export interface CoinflowEthPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
209
214
|
blockchain: 'eth';
|
|
210
215
|
}
|
|
211
|
-
export
|
|
216
|
+
export interface CoinflowBasePurchaseProps extends CoinflowEvmPurchaseProps {
|
|
217
|
+
blockchain: 'base';
|
|
218
|
+
}
|
|
219
|
+
export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowNearPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps;
|
|
212
220
|
/** Withdraw **/
|
|
213
221
|
export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
214
222
|
onSuccess?: OnSuccessMethod;
|
|
@@ -234,15 +242,21 @@ export interface CoinflowNearWithdrawProps extends CoinflowCommonWithdrawProps {
|
|
|
234
242
|
wallet: NearWallet;
|
|
235
243
|
blockchain: 'near';
|
|
236
244
|
}
|
|
237
|
-
export interface
|
|
238
|
-
wallet:
|
|
245
|
+
export interface CoinflowEvmWithdrawProps extends CoinflowCommonWithdrawProps {
|
|
246
|
+
wallet: EthWallet;
|
|
247
|
+
usePermit?: boolean;
|
|
248
|
+
}
|
|
249
|
+
export interface CoinflowEthWithdrawProps extends CoinflowEvmWithdrawProps {
|
|
239
250
|
blockchain: 'eth';
|
|
251
|
+
usePermit?: boolean;
|
|
240
252
|
}
|
|
241
|
-
export interface CoinflowPolygonWithdrawProps extends
|
|
242
|
-
wallet: Omit<EthWallet, 'signMessage'>;
|
|
253
|
+
export interface CoinflowPolygonWithdrawProps extends CoinflowEvmWithdrawProps {
|
|
243
254
|
blockchain: 'polygon';
|
|
244
255
|
}
|
|
245
|
-
export
|
|
256
|
+
export interface CoinflowBaseWithdrawProps extends CoinflowEvmWithdrawProps {
|
|
257
|
+
blockchain: 'base';
|
|
258
|
+
}
|
|
259
|
+
export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowNearWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps;
|
|
246
260
|
export interface CommonEvmRedeem {
|
|
247
261
|
waitForHash?: boolean;
|
|
248
262
|
}
|
|
@@ -9,7 +9,7 @@ export declare class CoinflowUtils {
|
|
|
9
9
|
getCreditBalance(publicKey: string, merchantId: string, blockchain: 'solana' | 'near'): Promise<Cents>;
|
|
10
10
|
static getCoinflowBaseUrl(env?: CoinflowEnvs): string;
|
|
11
11
|
static getCoinflowApiUrl(env?: CoinflowEnvs): string;
|
|
12
|
-
static getCoinflowUrl({ walletPubkey, route, routePrefix, env, amount, transaction, blockchain, supportsVersionedTransactions, webhookInfo, email, loaderBackground, handleHeightChange, useSocket, bankAccountLinkRedirect, additionalWallets, nearDeposit, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, token, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, transactionSigner, }: CoinflowIFrameProps): string;
|
|
12
|
+
static getCoinflowUrl({ walletPubkey, route, routePrefix, env, amount, transaction, blockchain, supportsVersionedTransactions, webhookInfo, email, loaderBackground, handleHeightChange, useSocket, bankAccountLinkRedirect, additionalWallets, nearDeposit, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, token, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, }: CoinflowIFrameProps): string;
|
|
13
13
|
static serializeSolanaTransaction(transaction: Transaction | VersionedTransaction | undefined): string | undefined;
|
|
14
14
|
static solanaWalletSupportsVersionedTransactions(wallet: SolanaWallet): boolean;
|
|
15
15
|
static byBlockchain<T>(blockchain: CoinflowBlockchain, args: {
|
|
@@ -17,5 +17,6 @@ export declare class CoinflowUtils {
|
|
|
17
17
|
near: T;
|
|
18
18
|
eth?: T;
|
|
19
19
|
polygon: T;
|
|
20
|
+
base: T;
|
|
20
21
|
}): T;
|
|
21
22
|
}
|
|
@@ -64,7 +64,7 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
64
64
|
};
|
|
65
65
|
CoinflowUtils.getCoinflowUrl = function (_a) {
|
|
66
66
|
var _b;
|
|
67
|
-
var walletPubkey = _a.walletPubkey, route = _a.route, routePrefix = _a.routePrefix, env = _a.env, amount = _a.amount, transaction = _a.transaction, blockchain = _a.blockchain, supportsVersionedTransactions = _a.supportsVersionedTransactions, webhookInfo = _a.webhookInfo, email = _a.email, loaderBackground = _a.loaderBackground, handleHeightChange = _a.handleHeightChange, useSocket = _a.useSocket, bankAccountLinkRedirect = _a.bankAccountLinkRedirect, additionalWallets = _a.additionalWallets, nearDeposit = _a.nearDeposit, chargebackProtectionData = _a.chargebackProtectionData, merchantCss = _a.merchantCss, color = _a.color, rent = _a.rent, lockDefaultToken = _a.lockDefaultToken, token = _a.token, tokens = _a.tokens, planCode = _a.planCode, disableApplePay = _a.disableApplePay, disableGooglePay = _a.disableGooglePay, customerInfo = _a.customerInfo, settlementType = _a.settlementType, lockAmount = _a.lockAmount, nativeSolToConvert = _a.nativeSolToConvert, theme = _a.theme, transactionSigner = _a.transactionSigner;
|
|
67
|
+
var walletPubkey = _a.walletPubkey, route = _a.route, routePrefix = _a.routePrefix, env = _a.env, amount = _a.amount, transaction = _a.transaction, blockchain = _a.blockchain, supportsVersionedTransactions = _a.supportsVersionedTransactions, webhookInfo = _a.webhookInfo, email = _a.email, loaderBackground = _a.loaderBackground, handleHeightChange = _a.handleHeightChange, useSocket = _a.useSocket, bankAccountLinkRedirect = _a.bankAccountLinkRedirect, additionalWallets = _a.additionalWallets, nearDeposit = _a.nearDeposit, chargebackProtectionData = _a.chargebackProtectionData, merchantCss = _a.merchantCss, color = _a.color, rent = _a.rent, lockDefaultToken = _a.lockDefaultToken, token = _a.token, tokens = _a.tokens, planCode = _a.planCode, disableApplePay = _a.disableApplePay, disableGooglePay = _a.disableGooglePay, customerInfo = _a.customerInfo, settlementType = _a.settlementType, lockAmount = _a.lockAmount, nativeSolToConvert = _a.nativeSolToConvert, theme = _a.theme, usePermit = _a.usePermit, transactionSigner = _a.transactionSigner, authOnly = _a.authOnly;
|
|
68
68
|
var prefix = routePrefix
|
|
69
69
|
? "/".concat(routePrefix, "/").concat(blockchain)
|
|
70
70
|
: "/".concat(blockchain);
|
|
@@ -141,8 +141,12 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
141
141
|
url.searchParams.append('settlementType', settlementType);
|
|
142
142
|
if (lockAmount)
|
|
143
143
|
url.searchParams.append('lockAmount', 'true');
|
|
144
|
+
if (usePermit === false)
|
|
145
|
+
url.searchParams.append('usePermit', 'false');
|
|
144
146
|
if (transactionSigner)
|
|
145
147
|
url.searchParams.append('transactionSigner', transactionSigner);
|
|
148
|
+
if (authOnly === true)
|
|
149
|
+
url.searchParams.append('authOnly', 'true');
|
|
146
150
|
return url.toString();
|
|
147
151
|
};
|
|
148
152
|
CoinflowUtils.serializeSolanaTransaction = function (transaction) {
|
|
@@ -170,6 +174,8 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
170
174
|
if (args.eth === undefined)
|
|
171
175
|
throw new Error('blockchain not supported for this operation!');
|
|
172
176
|
return args.eth;
|
|
177
|
+
case 'base':
|
|
178
|
+
return args.base;
|
|
173
179
|
default:
|
|
174
180
|
throw new Error('blockchain not supported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C3B,gBAAgB,EAAE,KAAK;SACxB,CAAC,CAAC;QACH,OAAO,cAAM,CAAC,MAAM,CAAC,YAA0B,CAAC,CAAC;IACnD,CAAC;IAEM,uDAAyC,GAAhD,UACE,MAAoB;;QAEpB,OAAO,CAAC,CAAC,CAAA,MAAA,MAAA,MAAA,MAAM,CAAC,MAAM,0CAAE,OAAO,0CAAE,4BAA4B,0CAAE,GAAG,CAAC,CAAC,CAAC,CAAA,CAAC;IACxE,CAAC;IAEM,0BAAY,GAAnB,UACE,UAA8B,EAC9B,IAAwD;QAExD,QAAQ,UAAU,EAAE,CAAC;YACnB,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,MAAM,CAAC;YACrB,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,IAAI,CAAC;YACnB,KAAK,SAAS;gBACZ,OAAO,IAAI,CAAC,OAAO,CAAC;YACtB,KAAK,KAAK;gBACR,IAAI,IAAI,CAAC,GAAG,KAAK,SAAS;oBACxB,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;gBAClE,OAAO,IAAI,CAAC,GAAG,CAAC;YAClB,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,IAAI,CAAC;YACnB;gBACE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AAxPD,IAwPC;AAxPY,sCAAa"}
|
|
@@ -15,6 +15,7 @@ function CoinflowWithdraw(props) {
|
|
|
15
15
|
near: react_1.default.createElement(CoinflowNearWithdraw, tslib_1.__assign({}, props)),
|
|
16
16
|
eth: react_1.default.createElement(CoinflowEthWithdraw, tslib_1.__assign({}, props)),
|
|
17
17
|
polygon: (react_1.default.createElement(CoinflowEthWithdraw, tslib_1.__assign({}, props))),
|
|
18
|
+
base: (react_1.default.createElement(CoinflowEthWithdraw, tslib_1.__assign({}, props))),
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
21
|
exports.CoinflowWithdraw = CoinflowWithdraw;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowWithdraw.js","sourceRoot":"","sources":["../../src/CoinflowWithdraw.tsx"],"names":[],"mappings":";;;;AAAA,wDAA0B;AAC1B,mDAAgD;AAChD,iDAEyB;AACzB,4DAAyD;AACzD,oFAAoF;AACpF,gFAAgF;
|
|
1
|
+
{"version":3,"file":"CoinflowWithdraw.js","sourceRoot":"","sources":["../../src/CoinflowWithdraw.tsx"],"names":[],"mappings":";;;;AAAA,wDAA0B;AAC1B,mDAAgD;AAChD,iDAEyB;AACzB,4DAAyD;AACzD,oFAAoF;AACpF,gFAAgF;AAOhF,8EAA8E;AAE9E,SAAgB,gBAAgB,CAC9B,KAA4B;IAE5B,OAAO,6BAAa,CAAC,YAAY,CAAC,KAAK,CAAC,UAAU,EAAE;QAClD,MAAM,EAAE,CACN,8BAAC,sBAAsB,uBAAM,KAAqC,EAAI,CACvE;QACD,IAAI,EAAE,8BAAC,oBAAoB,uBAAM,KAAmC,EAAI;QACxE,GAAG,EAAE,8BAAC,mBAAmB,uBAAM,KAAkC,EAAI;QACrE,OAAO,EAAE,CACP,8BAAC,mBAAmB,uBAAM,KAAsC,EAAI,CACrE;QACD,IAAI,EAAE,CACJ,8BAAC,mBAAmB,uBAAM,KAAmC,EAAI,CAClE;KACF,CAAC,CAAC;AACL,CAAC;AAhBD,4CAgBC;AAED,SAAS,sBAAsB,CAAC,KAAkC;;IAChE,IAAM,QAAQ,GAAG,IAAA,4DAA8B,EAAC,KAAK,CAAC,CAAC;IAChD,IAAA,MAAM,GAAI,KAAK,OAAT,CAAU;IAChB,IAAA,SAAS,GAAI,IAAA,iCAAe,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAA,MAAM,CAAC,SAAS,0CAAE,QAAQ,EAAE,CAAC,UAAlE,CAAmE;IAEnF,IAAI,CAAC,MAAM,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IACnC,IAAM,YAAY,GAAG,MAAM,C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pC,IAAM,WAAW,yCACZ,KAAK,KACR,YAAY,cAAA,EACZ,SAAS,WAAA,EACT,KAAK,EAAE,oBAAa,KAAK,CAAC,UAAU,CAAE,GACvC,CAAC;IACF,OAAO,CACL,8BAAC,+BAAc,uBAAK,WAAW,EAAG,CACnC,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CoinflowNearHistoryProps, CoinflowSolanaHistoryProps, CoinflowEthHistoryProps, CoinflowPolygonHistoryProps } from
|
|
3
|
-
export declare function CoinflowWithdrawHistory(props: CoinflowSolanaHistoryProps | CoinflowNearHistoryProps | CoinflowEthHistoryProps | CoinflowPolygonHistoryProps): React.JSX.Element;
|
|
2
|
+
import { CoinflowNearHistoryProps, CoinflowSolanaHistoryProps, CoinflowEthHistoryProps, CoinflowPolygonHistoryProps, CoinflowBaseHistoryProps } from "./CoinflowTypes";
|
|
3
|
+
export declare function CoinflowWithdrawHistory(props: CoinflowSolanaHistoryProps | CoinflowNearHistoryProps | CoinflowEthHistoryProps | CoinflowPolygonHistoryProps | CoinflowBaseHistoryProps): React.JSX.Element;
|
|
@@ -15,6 +15,7 @@ function CoinflowWithdrawHistory(props) {
|
|
|
15
15
|
near: react_1.default.createElement(NearWithdrawHistory, tslib_1.__assign({}, props)),
|
|
16
16
|
eth: react_1.default.createElement(EthWithdrawHistory, tslib_1.__assign({}, props)),
|
|
17
17
|
polygon: react_1.default.createElement(EthWithdrawHistory, tslib_1.__assign({}, props)),
|
|
18
|
+
base: react_1.default.createElement(EthWithdrawHistory, tslib_1.__assign({}, props)),
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
21
|
exports.CoinflowWithdrawHistory = CoinflowWithdrawHistory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowWithdrawHistory.js","sourceRoot":"","sources":["../../src/CoinflowWithdrawHistory.tsx"],"names":[],"mappings":";;;;AAAA,iDAA8C;AAC9C,4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}
|
|
@@ -25,6 +25,7 @@ export function useStringWalletPubkey(props) {
|
|
|
25
25
|
near: function () { return props.wallet.accountId; },
|
|
26
26
|
eth: function () { return props.wallet.address; },
|
|
27
27
|
polygon: function () { return props.wallet.address; },
|
|
28
|
+
base: function () { return props.wallet.address; },
|
|
28
29
|
});
|
|
29
30
|
return getWalletPubkey();
|
|
30
31
|
}, [props]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowApplePayButton.js","sourceRoot":"","sources":["../../src/CoinflowApplePayButton.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,OAAO,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,iBAAiB,EAAC,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,MAAM,UAAU,sBAAsB,CAAC,KAAsD;IAC3F,OAAO,oBAAC,kBAAkB,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,GAAI,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,EAA6D;QAA5D,KAAK,WAAA,EAAE,KAAK,WAAA;IAC9C,IAAM,SAAS,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAC;IACzD,qBAAqB,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAChD,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC1B,IAAM,YAAY,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAElD,IAAI,CAAC,YAAY;QAAE,OAAO,IAAI,CAAC;IAE/B,IAAM,WAAW,yBACZ,KAAK,KACR,YAAY,cAAA,EACZ,SAAS,WAAA,EACT,WAAW,EAAE,SAAS,EACtB,WAAW,EAAE,M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B;IACtD,IAAA,SAAS,GAAI,KAAK,UAAT,CAAU;IAE1B,SAAS,CAAC;QACR,IAAM,OAAO,GAAG,iBAAiB,CAAC,UAAU,EAAE,UAAC,IAAY;YACzD,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC7B,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;gBACxE,OAAO;YACT,CAAC;YAED,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAG,IAAI,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACnD,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CoinflowEvmPurchaseProps, CoinflowPurchaseProps } from
|
|
2
|
+
import { CoinflowEvmPurchaseProps, CoinflowPurchaseProps } from "./CoinflowTypes";
|
|
3
3
|
export declare function CoinflowPurchase(props: CoinflowPurchaseProps): React.JSX.Element;
|
|
4
4
|
export declare function EvmCoinflowPurchase(props: CoinflowEvmPurchaseProps): React.JSX.Element | null;
|
|
@@ -11,7 +11,8 @@ export function CoinflowPurchase(props) {
|
|
|
11
11
|
solana: (React.createElement(SolanaCoinflowPurchase, __assign({}, props))),
|
|
12
12
|
near: React.createElement(NearCoinflowPurchase, __assign({}, props)),
|
|
13
13
|
polygon: (React.createElement(EvmCoinflowPurchase, __assign({}, props))),
|
|
14
|
-
eth: (React.createElement(EvmCoinflowPurchase, __assign({}, props)))
|
|
14
|
+
eth: (React.createElement(EvmCoinflowPurchase, __assign({}, props))),
|
|
15
|
+
base: (React.createElement(EvmCoinflowPurchase, __assign({}, props)))
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
18
|
function SolanaCoinflowPurchase(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowPurchase.js","sourceRoot":"","sources":["../../src/CoinflowPurchase.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,8BAA8B,EAAC,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,4BAA4B,EAAC,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"CoinflowPurchase.js","sourceRoot":"","sources":["../../src/CoinflowPurchase.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,8BAA8B,EAAC,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,4BAA4B,EAAC,MAAM,oCAAoC,CAAC;AAWhF,OAAO,EAAC,2BAA2B,EAAC,MAAM,mCAAmC,CAAC;AAE9E,MAAM,UAAU,gBAAgB,CAAC,KAA4B;IAC3D,OAAO,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,UAAU,EAAE;QAClD,MAAM,EAAE,CACN,oBAAC,sBAAsB,eAAM,KAAqC,EAAI,CACvE;QACD,IAAI,EAAE,oBAAC,oBAAoB,eAAM,KAAmC,EAAI;QACxE,OAAO,EAAE,CACP,oBAAC,mBAAmB,e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CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,UAApD,CAAqD;IAErE,IAAM,cAAc,GAAG,OAAO,CAAC;QAC7B,IAAI,CAAC,WAAW;YAAE,OAAO,SAAS,CAAC;QACnC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,IAAI,CAAC,MAAM,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAEjC,IAAM,WAAW,yBACZ,KAAK,KACR,YAAY,EAAE,MAAM,CAAC,OAAO,EAC5B,SAAS,WAAA,EACT,WAAW,EAAE,cAAc,EAC3B,KAAK,EAAE,oBAAa,KAAK,CAAC,UAAU,CAAE,GACvC,CAAC;IACF,OAAO,oBAAC,cAAc,eAAK,WAAW,EAAI,CAAC;AAC7C,CAAC"}
|
|
@@ -12,6 +12,7 @@ export function CoinflowPurchaseHistory(props) {
|
|
|
12
12
|
near: React.createElement(NearPurchaseHistory, __assign({}, props)),
|
|
13
13
|
polygon: React.createElement(EvmPurchaseHistory, __assign({}, props)),
|
|
14
14
|
eth: React.createElement(EvmPurchaseHistory, __assign({}, props)),
|
|
15
|
+
base: React.createElement(EvmPurchaseHistory, __assign({}, props)),
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
18
|
function SolanaPurchaseHistory(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowPurchaseHistory.js","sourceRoot":"","sources":["../../src/CoinflowPurchaseHistory.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,8BAA8B,EAAC,MAAM,sCAAsC,CA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AM,0CAAE,OAAO,EACnC,SAAS,WAAA,EACT,KAAK,EAAE,4BAAqB,KAAK,CAAC,UAAU,CAAE,GAC/C,CAAC;IACF,OAAO,CACL,oBAAC,cAAc,eAAK,WAAW,EAAI,CACpC,CAAC;AACJ,CAAC"}
|
|
@@ -38,7 +38,7 @@ interface CustomerInfo {
|
|
|
38
38
|
lng?: string;
|
|
39
39
|
}
|
|
40
40
|
/** Coinflow Types **/
|
|
41
|
-
export type CoinflowBlockchain = 'solana' | 'near' | 'eth' | 'polygon';
|
|
41
|
+
export type CoinflowBlockchain = 'solana' | 'near' | 'eth' | 'polygon' | 'base';
|
|
42
42
|
export type CoinflowEnvs = 'prod' | 'staging' | 'sandbox' | 'local';
|
|
43
43
|
export interface CoinflowTypes {
|
|
44
44
|
merchantId: string;
|
|
@@ -102,8 +102,11 @@ export interface CoinflowEthHistoryProps extends CoinflowEvmHistoryProps {
|
|
|
102
102
|
export interface CoinflowPolygonHistoryProps extends CoinflowEvmHistoryProps {
|
|
103
103
|
blockchain: 'polygon';
|
|
104
104
|
}
|
|
105
|
-
export
|
|
106
|
-
|
|
105
|
+
export interface CoinflowBaseHistoryProps extends CoinflowEvmHistoryProps {
|
|
106
|
+
blockchain: 'base';
|
|
107
|
+
}
|
|
108
|
+
export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowNearHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps;
|
|
109
|
+
export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'amount' | 'customerInfo' | 'settlementType'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'> {
|
|
107
110
|
walletPubkey: string;
|
|
108
111
|
IFrameRef: React.RefObject<HTMLIFrameElement>;
|
|
109
112
|
route: string;
|
|
@@ -128,6 +131,7 @@ export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>,
|
|
|
128
131
|
disableGooglePay?: boolean;
|
|
129
132
|
settlementType?: SettlementType;
|
|
130
133
|
theme?: MerchantTheme;
|
|
134
|
+
usePermit?: boolean;
|
|
131
135
|
}
|
|
132
136
|
/** Transactions **/
|
|
133
137
|
export type NearFtTransferCallAction = {
|
|
@@ -174,6 +178,7 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
174
178
|
disableGooglePay?: boolean;
|
|
175
179
|
customerInfo?: CustomerInfo;
|
|
176
180
|
settlementType?: SettlementType;
|
|
181
|
+
authOnly?: boolean;
|
|
177
182
|
}
|
|
178
183
|
export interface CoinflowSolanaPurchaseProps extends CoinflowCommonPurchaseProps {
|
|
179
184
|
wallet: SolanaWallet;
|
|
@@ -208,7 +213,10 @@ export interface CoinflowPolygonPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
|
208
213
|
export interface CoinflowEthPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
209
214
|
blockchain: 'eth';
|
|
210
215
|
}
|
|
211
|
-
export
|
|
216
|
+
export interface CoinflowBasePurchaseProps extends CoinflowEvmPurchaseProps {
|
|
217
|
+
blockchain: 'base';
|
|
218
|
+
}
|
|
219
|
+
export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowNearPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps;
|
|
212
220
|
/** Withdraw **/
|
|
213
221
|
export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
214
222
|
onSuccess?: OnSuccessMethod;
|
|
@@ -234,15 +242,21 @@ export interface CoinflowNearWithdrawProps extends CoinflowCommonWithdrawProps {
|
|
|
234
242
|
wallet: NearWallet;
|
|
235
243
|
blockchain: 'near';
|
|
236
244
|
}
|
|
237
|
-
export interface
|
|
238
|
-
wallet:
|
|
245
|
+
export interface CoinflowEvmWithdrawProps extends CoinflowCommonWithdrawProps {
|
|
246
|
+
wallet: EthWallet;
|
|
247
|
+
usePermit?: boolean;
|
|
248
|
+
}
|
|
249
|
+
export interface CoinflowEthWithdrawProps extends CoinflowEvmWithdrawProps {
|
|
239
250
|
blockchain: 'eth';
|
|
251
|
+
usePermit?: boolean;
|
|
240
252
|
}
|
|
241
|
-
export interface CoinflowPolygonWithdrawProps extends
|
|
242
|
-
wallet: Omit<EthWallet, 'signMessage'>;
|
|
253
|
+
export interface CoinflowPolygonWithdrawProps extends CoinflowEvmWithdrawProps {
|
|
243
254
|
blockchain: 'polygon';
|
|
244
255
|
}
|
|
245
|
-
export
|
|
256
|
+
export interface CoinflowBaseWithdrawProps extends CoinflowEvmWithdrawProps {
|
|
257
|
+
blockchain: 'base';
|
|
258
|
+
}
|
|
259
|
+
export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowNearWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps;
|
|
246
260
|
export interface CommonEvmRedeem {
|
|
247
261
|
waitForHash?: boolean;
|
|
248
262
|
}
|
|
@@ -9,7 +9,7 @@ export declare class CoinflowUtils {
|
|
|
9
9
|
getCreditBalance(publicKey: string, merchantId: string, blockchain: 'solana' | 'near'): Promise<Cents>;
|
|
10
10
|
static getCoinflowBaseUrl(env?: CoinflowEnvs): string;
|
|
11
11
|
static getCoinflowApiUrl(env?: CoinflowEnvs): string;
|
|
12
|
-
static getCoinflowUrl({ walletPubkey, route, routePrefix, env, amount, transaction, blockchain, supportsVersionedTransactions, webhookInfo, email, loaderBackground, handleHeightChange, useSocket, bankAccountLinkRedirect, additionalWallets, nearDeposit, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, token, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, transactionSigner, }: CoinflowIFrameProps): string;
|
|
12
|
+
static getCoinflowUrl({ walletPubkey, route, routePrefix, env, amount, transaction, blockchain, supportsVersionedTransactions, webhookInfo, email, loaderBackground, handleHeightChange, useSocket, bankAccountLinkRedirect, additionalWallets, nearDeposit, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, token, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, }: CoinflowIFrameProps): string;
|
|
13
13
|
static serializeSolanaTransaction(transaction: Transaction | VersionedTransaction | undefined): string | undefined;
|
|
14
14
|
static solanaWalletSupportsVersionedTransactions(wallet: SolanaWallet): boolean;
|
|
15
15
|
static byBlockchain<T>(blockchain: CoinflowBlockchain, args: {
|
|
@@ -17,5 +17,6 @@ export declare class CoinflowUtils {
|
|
|
17
17
|
near: T;
|
|
18
18
|
eth?: T;
|
|
19
19
|
polygon: T;
|
|
20
|
+
base: T;
|
|
20
21
|
}): T;
|
|
21
22
|
}
|
|
@@ -61,7 +61,7 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
61
61
|
};
|
|
62
62
|
CoinflowUtils.getCoinflowUrl = function (_a) {
|
|
63
63
|
var _b;
|
|
64
|
-
var walletPubkey = _a.walletPubkey, route = _a.route, routePrefix = _a.routePrefix, env = _a.env, amount = _a.amount, transaction = _a.transaction, blockchain = _a.blockchain, supportsVersionedTransactions = _a.supportsVersionedTransactions, webhookInfo = _a.webhookInfo, email = _a.email, loaderBackground = _a.loaderBackground, handleHeightChange = _a.handleHeightChange, useSocket = _a.useSocket, bankAccountLinkRedirect = _a.bankAccountLinkRedirect, additionalWallets = _a.additionalWallets, nearDeposit = _a.nearDeposit, chargebackProtectionData = _a.chargebackProtectionData, merchantCss = _a.merchantCss, color = _a.color, rent = _a.rent, lockDefaultToken = _a.lockDefaultToken, token = _a.token, tokens = _a.tokens, planCode = _a.planCode, disableApplePay = _a.disableApplePay, disableGooglePay = _a.disableGooglePay, customerInfo = _a.customerInfo, settlementType = _a.settlementType, lockAmount = _a.lockAmount, nativeSolToConvert = _a.nativeSolToConvert, theme = _a.theme, transactionSigner = _a.transactionSigner;
|
|
64
|
+
var walletPubkey = _a.walletPubkey, route = _a.route, routePrefix = _a.routePrefix, env = _a.env, amount = _a.amount, transaction = _a.transaction, blockchain = _a.blockchain, supportsVersionedTransactions = _a.supportsVersionedTransactions, webhookInfo = _a.webhookInfo, email = _a.email, loaderBackground = _a.loaderBackground, handleHeightChange = _a.handleHeightChange, useSocket = _a.useSocket, bankAccountLinkRedirect = _a.bankAccountLinkRedirect, additionalWallets = _a.additionalWallets, nearDeposit = _a.nearDeposit, chargebackProtectionData = _a.chargebackProtectionData, merchantCss = _a.merchantCss, color = _a.color, rent = _a.rent, lockDefaultToken = _a.lockDefaultToken, token = _a.token, tokens = _a.tokens, planCode = _a.planCode, disableApplePay = _a.disableApplePay, disableGooglePay = _a.disableGooglePay, customerInfo = _a.customerInfo, settlementType = _a.settlementType, lockAmount = _a.lockAmount, nativeSolToConvert = _a.nativeSolToConvert, theme = _a.theme, usePermit = _a.usePermit, transactionSigner = _a.transactionSigner, authOnly = _a.authOnly;
|
|
65
65
|
var prefix = routePrefix
|
|
66
66
|
? "/".concat(routePrefix, "/").concat(blockchain)
|
|
67
67
|
: "/".concat(blockchain);
|
|
@@ -138,8 +138,12 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
138
138
|
url.searchParams.append('settlementType', settlementType);
|
|
139
139
|
if (lockAmount)
|
|
140
140
|
url.searchParams.append('lockAmount', 'true');
|
|
141
|
+
if (usePermit === false)
|
|
142
|
+
url.searchParams.append('usePermit', 'false');
|
|
141
143
|
if (transactionSigner)
|
|
142
144
|
url.searchParams.append('transactionSigner', transactionSigner);
|
|
145
|
+
if (authOnly === true)
|
|
146
|
+
url.searchParams.append('authOnly', 'true');
|
|
143
147
|
return url.toString();
|
|
144
148
|
};
|
|
145
149
|
CoinflowUtils.serializeSolanaTransaction = function (transaction) {
|
|
@@ -167,6 +171,8 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
167
171
|
if (args.eth === undefined)
|
|
168
172
|
throw new Error('blockchain not supported for this operation!');
|
|
169
173
|
return args.eth;
|
|
174
|
+
case 'base':
|
|
175
|
+
return args.base;
|
|
170
176
|
default:
|
|
171
177
|
throw new Error('blockchain not supported!');
|
|
172
178
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoinflowUtils.js","sourceRoot":"","sources":["../../src/CoinflowUtils.ts"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,MAAM,CAAC;AAS1B;IAIE,uBAAY,GAAkB;QAC5B,IAAI,CAAC,GAAG,GAAG,GAAG,aAAH,GAAG,cAAH,GAAG,GAAI,MAAM,CAAC;QACzB,IAAI,IAAI,CAAC,GAAG,KAAK,MAAM;YAAE,IAAI,CAAC,GAAG,GAAG,2BAA2B,CAAC;aAC3D,IAAI,IAAI,CAAC,GAAG,KAAK,OAAO;YAAE,IAAI,CAAC,GAAG,GAAG,uBAAuB,CAAC;;YAC7D,IAAI,CAAC,GAAG,GAAG,sBAAe,IAAI,CAAC,GAAG,mBAAgB,CAAC;IAC1D,CAAC;IAEK,yCAAiB,GAAvB,UAAwB,UAAkB;;;gBACxC,sBAAO,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,yBAAkB,UAAU,CAAE,CAAC;yBACpD,IAAI,CAAC,UAAA,QAAQ,IAAI,OAAA,QAAQ,CAAC,IAAI,EAAE,EAAf,CAAe,CAAC;yBACjC,IAAI,CACH,UAAC,IAGA,YAAK,OAAA,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,cAAc,KAAI,IAAI,CAAC,cAAc,CAAA,EAAA,CAChE;yBACA,KAAK,CAAC,UAAA,CAAC;wBACN,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;wBACjB,OAAO,SAAS,CAAC;oBACnB,CAAC,CAAC,EAAC;;;KACN;IAEK,wCAAgB,GAAtB,UACE,SAAiB,EACjB,UAAkB,EAClB,UAA6B;;;;;4BAEZ,qBAAM,KAA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Q,EAAE,CAAC;IACxB,CAAC;IAEM,wCAA0B,GAAjC,UACE,WAA2D;QAE3D,IAAI,CAAC,WAAW;YAAE,OAAO,SAAS,CAAC;QAEnC,IAAM,YAAY,GAAG,WAAW,CAAC,SAAS,CAAC;YACzC,oBAAoB,EAAE,KAAK;YAC3B,gBAAgB,EAAE,KAAK;SACxB,CAAC,CAAC;QACH,OAAO,MAAM,CAAC,MAAM,CAAC,YAA0B,CAAC,CAAC;IACnD,CAAC;IAEM,uDAAyC,GAAhD,UACE,MAAoB;;QAEpB,OAAO,CAAC,CAAC,CAAA,MAAA,MAAA,MAAA,MAAM,CAAC,MAAM,0CAAE,OAAO,0CAAE,4BAA4B,0CAAE,GAAG,CAAC,CAAC,CAAC,CAAA,CAAC;IACxE,CAAC;IAEM,0BAAY,GAAnB,UACE,UAA8B,EAC9B,IAAwD;QAExD,QAAQ,UAAU,EAAE,CAAC;YACnB,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,MAAM,CAAC;YACrB,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,IAAI,CAAC;YACnB,KAAK,SAAS;gBACZ,OAAO,IAAI,CAAC,OAAO,CAAC;YACtB,KAAK,KAAK;gBACR,IAAI,IAAI,CAAC,GAAG,KAAK,SAAS;oBACxB,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;gBAClE,OAAO,IAAI,CAAC,GAAG,CAAC;YAClB,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,IAAI,CAAC;YACnB;gBACE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AAxPD,IAwPC"}
|
|
@@ -12,6 +12,7 @@ export function CoinflowWithdraw(props) {
|
|
|
12
12
|
near: React.createElement(CoinflowNearWithdraw, __assign({}, props)),
|
|
13
13
|
eth: React.createElement(CoinflowEthWithdraw, __assign({}, props)),
|
|
14
14
|
polygon: (React.createElement(CoinflowEthWithdraw, __assign({}, props))),
|
|
15
|
+
base: (React.createElement(CoinflowEthWithdraw, __assign({}, props))),
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
18
|
function CoinflowSolanaWithdraw(props) {
|