@coinflowlabs/react 3.1.11 → 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.
Files changed (57) hide show
  1. package/README.md +11 -0
  2. package/build/cjs/CoinflowApplePayButton.js +1 -0
  3. package/build/cjs/CoinflowApplePayButton.js.map +1 -1
  4. package/build/cjs/CoinflowCardForm.js +1 -1
  5. package/build/cjs/CoinflowPurchase.d.ts +1 -1
  6. package/build/cjs/CoinflowPurchase.js +2 -1
  7. package/build/cjs/CoinflowPurchase.js.map +1 -1
  8. package/build/cjs/CoinflowPurchaseHistory.d.ts +1 -1
  9. package/build/cjs/CoinflowPurchaseHistory.js +1 -0
  10. package/build/cjs/CoinflowPurchaseHistory.js.map +1 -1
  11. package/build/cjs/CoinflowTypes.d.ts +25 -11
  12. package/build/cjs/CoinflowUtils.d.ts +2 -1
  13. package/build/cjs/CoinflowUtils.js +9 -1
  14. package/build/cjs/CoinflowUtils.js.map +1 -1
  15. package/build/cjs/CoinflowWithdraw.d.ts +1 -1
  16. package/build/cjs/CoinflowWithdraw.js +1 -0
  17. package/build/cjs/CoinflowWithdraw.js.map +1 -1
  18. package/build/cjs/CoinflowWithdrawHistory.d.ts +2 -2
  19. package/build/cjs/CoinflowWithdrawHistory.js +1 -0
  20. package/build/cjs/CoinflowWithdrawHistory.js.map +1 -1
  21. package/build/cjs/wallet/EthIFrameMessageHandlers.js +25 -29
  22. package/build/cjs/wallet/EthIFrameMessageHandlers.js.map +1 -1
  23. package/build/cjs/wallet/NearIFrameMessageHandlers.js +16 -18
  24. package/build/cjs/wallet/NearIFrameMessageHandlers.js.map +1 -1
  25. package/build/cjs/wallet/SolanaIFrameMessageHandlers.js +55 -42
  26. package/build/cjs/wallet/SolanaIFrameMessageHandlers.js.map +1 -1
  27. package/build/cjs/wallet/useIframeWallet.js +60 -62
  28. package/build/cjs/wallet/useIframeWallet.js.map +1 -1
  29. package/build/esm/CoinflowApplePayButton.js +1 -0
  30. package/build/esm/CoinflowApplePayButton.js.map +1 -1
  31. package/build/esm/CoinflowCardForm.js +1 -1
  32. package/build/esm/CoinflowPurchase.d.ts +1 -1
  33. package/build/esm/CoinflowPurchase.js +2 -1
  34. package/build/esm/CoinflowPurchase.js.map +1 -1
  35. package/build/esm/CoinflowPurchaseHistory.d.ts +1 -1
  36. package/build/esm/CoinflowPurchaseHistory.js +1 -0
  37. package/build/esm/CoinflowPurchaseHistory.js.map +1 -1
  38. package/build/esm/CoinflowTypes.d.ts +25 -11
  39. package/build/esm/CoinflowUtils.d.ts +2 -1
  40. package/build/esm/CoinflowUtils.js +9 -1
  41. package/build/esm/CoinflowUtils.js.map +1 -1
  42. package/build/esm/CoinflowWithdraw.d.ts +1 -1
  43. package/build/esm/CoinflowWithdraw.js +1 -0
  44. package/build/esm/CoinflowWithdraw.js.map +1 -1
  45. package/build/esm/CoinflowWithdrawHistory.d.ts +2 -2
  46. package/build/esm/CoinflowWithdrawHistory.js +1 -0
  47. package/build/esm/CoinflowWithdrawHistory.js.map +1 -1
  48. package/build/esm/wallet/EthIFrameMessageHandlers.js +25 -29
  49. package/build/esm/wallet/EthIFrameMessageHandlers.js.map +1 -1
  50. package/build/esm/wallet/NearIFrameMessageHandlers.js +16 -18
  51. package/build/esm/wallet/NearIFrameMessageHandlers.js.map +1 -1
  52. package/build/esm/wallet/SolanaIFrameMessageHandlers.js +55 -42
  53. package/build/esm/wallet/SolanaIFrameMessageHandlers.js.map +1 -1
  54. package/build/esm/wallet/useIframeWallet.js +60 -62
  55. package/build/esm/wallet/useIframeWallet.js.map +1 -1
  56. package/build/tsconfig.tsbuildinfo +1 -1
  57. package/package.json +3 -3
package/README.md CHANGED
@@ -24,6 +24,8 @@ 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
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.
27
29
 
28
30
  ## Purchase Usage
29
31
  ```
@@ -66,6 +68,15 @@ Props:
66
68
 
67
69
  # Changelog
68
70
 
71
+ ## 4.1.0
72
+
73
+ - Add base blockchain support
74
+ - Added AuthOnly parameter to CoinflowPurchase
75
+
76
+ ## 4.0.0
77
+
78
+ - Require `signMessage` on wallets for stronger withdraw authentication
79
+
69
80
  ## 3.1.11
70
81
 
71
82
  - Added new ChargebackProtectionData productTypes
@@ -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,iDAA8C;AAE9C,SAAgB,sBAAsB,CAAC,KAAsD;IAC3F,OAAO,8BAAC,kBAAkB,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,GAAI,CAAC;AAClE,CAAC;AAFD,wDAEC;AAED,SAAgB,kBAAkB,CAAC,EAA6D;QAA5D,KAAK,WAAA,EAAE,KAAK,WAAA;IAC9C,IAAM,SAAS,GAAG,IAAA,cAAM,EAA2B,IAAI,CAAC,CAAC;IACzD,IAAA,6CAAqB,EAAC,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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,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;AAClB,CAAC;AAhBD,gDAgBC"}
@@ -32,8 +32,8 @@ exports.CoinflowCardForm = (0, react_1.forwardRef)(function (_a, ref) {
32
32
  (0, useHandleHeightChange_1.useHandleHeightChange)(handleHeightChange);
33
33
  (0, react_1.useImperativeHandle)(ref, function () { return ({
34
34
  getToken: function () {
35
- var _a;
36
35
  return tslib_1.__awaiter(this, void 0, void 0, function () {
36
+ var _a;
37
37
  return tslib_1.__generator(this, function (_b) {
38
38
  if (!((_a = IFrameRef.current) === null || _a === void 0 ? void 0 : _a.contentWindow))
39
39
  throw new Error('content window not found');
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { CoinflowEvmPurchaseProps, CoinflowPurchaseProps } from './CoinflowTypes';
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;
@@ -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"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,WAAW,EAAE,KAAK,CAAC,WAAW,GAC/B,CAAC;IACF,OAAO,8BAAC,+BAAc,uBAAK,WAAW,EAAI,CAAC;AAC7C,CAAC;AAED,SAAgB,mBAAmB,CAAC,KAA+B;IACjE,IAAM,QAAQ,GAAG,IAAA,sDAA2B,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"}
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { CoinflowHistoryProps } from './CoinflowTypes';
2
+ import { CoinflowHistoryProps } from "./CoinflowTypes";
3
3
  export declare function CoinflowPurchaseHistory(props: CoinflowHistoryProps): React.JSX.Element;
@@ -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;AAS9C,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;KACpE,CAAC,CAAC;AACL,CAAC;AAXD,0DAWC;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,Y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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;
@@ -52,7 +52,7 @@ export interface CoinflowTypes {
52
52
  export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
53
53
  export type OnSuccessMethod = (params: string) => void | Promise<void>;
54
54
  /** Wallets **/
55
- export type SolanaWallet = PartialBy<Pick<WalletContextState, 'wallet' | 'signTransaction' | 'publicKey' | 'sendTransaction'>, 'wallet' | 'signTransaction'>;
55
+ export type SolanaWallet = PartialBy<Pick<WalletContextState, 'wallet' | 'signTransaction' | 'publicKey' | 'sendTransaction' | 'signMessage'>, 'wallet' | 'signTransaction'>;
56
56
  export type NearWallet = {
57
57
  accountId: string;
58
58
  } & Pick<Wallet, 'signAndSendTransaction'>;
@@ -102,8 +102,11 @@ export interface CoinflowEthHistoryProps extends CoinflowEvmHistoryProps {
102
102
  export interface CoinflowPolygonHistoryProps extends CoinflowEvmHistoryProps {
103
103
  blockchain: 'polygon';
104
104
  }
105
- export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowNearHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps;
106
- export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'amount' | 'customerInfo'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets'> {
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;
@@ -127,8 +130,8 @@ export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>,
127
130
  disableApplePay?: boolean;
128
131
  disableGooglePay?: boolean;
129
132
  settlementType?: SettlementType;
130
- lockAmount?: boolean;
131
133
  theme?: MerchantTheme;
134
+ usePermit?: boolean;
132
135
  }
133
136
  /** Transactions **/
134
137
  export type NearFtTransferCallAction = {
@@ -175,6 +178,7 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
175
178
  disableGooglePay?: boolean;
176
179
  customerInfo?: CustomerInfo;
177
180
  settlementType?: SettlementType;
181
+ authOnly?: boolean;
178
182
  }
179
183
  export interface CoinflowSolanaPurchaseProps extends CoinflowCommonPurchaseProps {
180
184
  wallet: SolanaWallet;
@@ -209,7 +213,10 @@ export interface CoinflowPolygonPurchaseProps extends CoinflowEvmPurchaseProps {
209
213
  export interface CoinflowEthPurchaseProps extends CoinflowEvmPurchaseProps {
210
214
  blockchain: 'eth';
211
215
  }
212
- export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowNearPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps;
216
+ export interface CoinflowBasePurchaseProps extends CoinflowEvmPurchaseProps {
217
+ blockchain: 'base';
218
+ }
219
+ export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowNearPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps;
213
220
  /** Withdraw **/
214
221
  export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
215
222
  onSuccess?: OnSuccessMethod;
@@ -224,6 +231,7 @@ export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
224
231
  }[];
225
232
  supportsVersionedTransactions?: boolean;
226
233
  lockAmount?: boolean;
234
+ transactionSigner?: string;
227
235
  }
228
236
  export interface CoinflowSolanaWithdrawProps extends CoinflowCommonWithdrawProps {
229
237
  wallet: SolanaWallet;
@@ -234,15 +242,21 @@ export interface CoinflowNearWithdrawProps extends CoinflowCommonWithdrawProps {
234
242
  wallet: NearWallet;
235
243
  blockchain: 'near';
236
244
  }
237
- export interface CoinflowEthWithdrawProps extends CoinflowCommonWithdrawProps {
238
- wallet: Omit<EthWallet, 'signMessage'>;
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 CoinflowCommonWithdrawProps {
242
- wallet: Omit<EthWallet, 'signMessage'>;
253
+ export interface CoinflowPolygonWithdrawProps extends CoinflowEvmWithdrawProps {
243
254
  blockchain: 'polygon';
244
255
  }
245
- export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowNearWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps;
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, }: 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;
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,6 +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');
146
+ if (transactionSigner)
147
+ url.searchParams.append('transactionSigner', transactionSigner);
148
+ if (authOnly === true)
149
+ url.searchParams.append('authOnly', 'true');
144
150
  return url.toString();
145
151
  };
146
152
  CoinflowUtils.serializeSolanaTransaction = function (transaction) {
@@ -168,6 +174,8 @@ var CoinflowUtils = /** @class */ (function () {
168
174
  if (args.eth === undefined)
169
175
  throw new Error('blockchain not supported for this operation!');
170
176
  return args.eth;
177
+ case 'base':
178
+ return args.base;
171
179
  default:
172
180
  throw new Error('blockchain not supported!');
173
181
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CoinflowUtils.js","sourceRoot":"","sources":["../../src/CoinflowUtils.ts"],"names":[],"mappings":";;;;AACA,sDAA0B;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,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;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"}
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { CoinflowWithdrawProps } from './CoinflowTypes';
2
+ import { CoinflowWithdrawProps } from "./CoinflowTypes";
3
3
  export declare function CoinflowWithdraw(props: CoinflowWithdrawProps): React.JSX.Element;
@@ -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;AAMhF,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,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BAAa,KAAK,CAAC,UAAU,CAAE,GACvC,CAAC;IACF,OAAO,CACL,8BAAC,+BAAc,uBAAK,WAAW,EAAG,CACnC,CAAC;AACJ,CAAC;AAED,SAAS,mBAAmB,CAAC,KAA0F;IACrH,IAAM,QAAQ,GAAG,IAAA,sDAA2B,EAAC,KAAK,CAAC,CAAC;IAC7C,IAAA,MAAM,GAAI,KAAK,OAAT,CAAU;IAChB,IAAA,SAAS,GAAI,IAAA,iCAAe,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,UAApD,CAAqD;IAErE,IAAI,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAA;QAAE,OAAO,IAAI,CAAC;IAClC,IAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC;IAEpC,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 './CoinflowTypes';
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,4DAAyD;AACzD,mDAAgD;AAChD,wDAA0B;AAC1B,oFAAoF;AACpF,gFAAgF;AAOhF,8EAA8E;AAE9E,SAAgB,uBAAuB,CACrC,KAI+B;IAE/B,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,GAAG,EAAE,8BAAC,kBAAkB,uBAAM,KAAiC,EAAI;QACnE,OAAO,EAAE,8BAAC,kBAAkB,uBAAM,KAAqC,EAAI;KAC5E,CAAC,CAAC;AACL,CAAC;AAfD,0DAeC;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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}
@@ -6,37 +6,33 @@ var react_1 = require("react");
6
6
  function useEthIFrameMessageHandlers(_a) {
7
7
  var _this = this;
8
8
  var wallet = _a.wallet;
9
- var handleSendTransaction = (0, react_1.useCallback)(function (_a) {
10
- var data = _a.data;
11
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
12
- var transaction, hash;
13
- return tslib_1.__generator(this, function (_b) {
14
- switch (_b.label) {
15
- case 0:
16
- transaction = JSON.parse(Buffer.from(data, 'base64').toString());
17
- return [4 /*yield*/, wallet.sendTransaction(transaction)];
18
- case 1:
19
- hash = (_b.sent()).hash;
20
- return [2 /*return*/, hash];
21
- }
22
- });
9
+ var handleSendTransaction = (0, react_1.useCallback)(function (_a) { return tslib_1.__awaiter(_this, [_a], void 0, function (_b) {
10
+ var transaction, hash;
11
+ var data = _b.data;
12
+ return tslib_1.__generator(this, function (_c) {
13
+ switch (_c.label) {
14
+ case 0:
15
+ transaction = JSON.parse(Buffer.from(data, 'base64').toString());
16
+ return [4 /*yield*/, wallet.sendTransaction(transaction)];
17
+ case 1:
18
+ hash = (_c.sent()).hash;
19
+ return [2 /*return*/, hash];
20
+ }
23
21
  });
24
- }, [wallet]);
25
- var handleSignMessage = (0, react_1.useCallback)(function (_a) {
26
- var data = _a.data;
27
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
28
- return tslib_1.__generator(this, function (_b) {
29
- switch (_b.label) {
30
- case 0:
31
- console.log('handleSignMessage');
32
- if (!wallet.signMessage)
33
- throw new Error('Wallet does not support message signing!');
34
- return [4 /*yield*/, wallet.signMessage(data)];
35
- case 1: return [2 /*return*/, _b.sent()];
36
- }
37
- });
22
+ }); }, [wallet]);
23
+ var handleSignMessage = (0, react_1.useCallback)(function (_a) { return tslib_1.__awaiter(_this, [_a], void 0, function (_b) {
24
+ var data = _b.data;
25
+ return tslib_1.__generator(this, function (_c) {
26
+ switch (_c.label) {
27
+ case 0:
28
+ console.log('handleSignMessage');
29
+ if (!wallet.signMessage)
30
+ throw new Error('Wallet does not support message signing!');
31
+ return [4 /*yield*/, wallet.signMessage(data)];
32
+ case 1: return [2 /*return*/, _c.sent()];
33
+ }
38
34
  });
39
- }, [wallet]);
35
+ }); }, [wallet]);
40
36
  return {
41
37
  handleSendTransaction: handleSendTransaction,
42
38
  handleSignMessage: handleSignMessage,
@@ -1 +1 @@
1
- {"version":3,"file":"EthIFrameMessageHandlers.js","sourceRoot":"","sources":["../../../src/wallet/EthIFrameMessageHandlers.ts"],"names":[],"mappings":";;;;AAAA,+BAAkC;AAIlC,SAAgB,2BAA2B,CAAC,EAI3C;IAJD,iBA6BC;QA5BC,MAAM,YAAA;IAIN,IAAM,qBAAqB,GAAG,IAAA,mBAAW,EACvC,UAAO,EAAkB;YAAjB,IAAI,UAAA;;;;;;wBACJ,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;wBACxD,qBAAM,MAAM,CAAC,eAAe,CAAC,WAAW,CAAC,EAAA;;wBAAjD,IAAI,GAAI,CAAA,SAAyC,CAAA,KAA7C;wBACX,sBAAO,IAAI,EAAC;;;;KACb,EACD,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,IAAM,iBAAiB,GAAG,IAAA,mBAAW,EACnC,UAAO,EAAkB;YAAjB,IAAI,UAAA;;;;;wBACV,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;wBACjC,IAAI,CAAC,MAAM,CAAC,WAAW;4BACrB,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;wBAEvD,qBAAM,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,EAAA;4BAArC,sBAAO,SAA8B,EAAC;;;;KACvC,EACD,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,OAAO;QACL,qBAAqB,uBAAA;QACrB,iBAAiB,mBAAA;KAClB,CAAC;AACJ,CAAC;AA7BD,kEA6BC"}
1
+ {"version":3,"file":"EthIFrameMessageHandlers.js","sourceRoot":"","sources":["../../../src/wallet/EthIFrameMessageHandlers.ts"],"names":[],"mappings":";;;;AAAA,+BAAkC;AAIlC,SAAgB,2BAA2B,CAAC,EAI3C;IAJD,iBA6BC;QA5BC,MAAM,YAAA;IAIN,IAAM,qBAAqB,GAAG,IAAA,mBAAW,EACvC,wEAAO,EAAkB;;YAAjB,IAAI,UAAA;;;;oBACJ,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;oBACxD,qBAAM,MAAM,CAAC,eAAe,CAAC,WAAW,CAAC,EAAA;;oBAAjD,IAAI,GAAI,CAAA,SAAyC,CAAA,KAA7C;oBACX,sBAAO,IAAI,EAAC;;;SACb,EACD,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,IAAM,iBAAiB,GAAG,IAAA,mBAAW,EACnC,wEAAO,EAAkB;YAAjB,IAAI,UAAA;;;;oBACV,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;oBACjC,IAAI,CAAC,MAAM,CAAC,WAAW;wBACrB,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;oBAEvD,qBAAM,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,EAAA;wBAArC,sBAAO,SAA8B,EAAC;;;SACvC,EACD,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,OAAO;QACL,qBAAqB,uBAAA;QACrB,iBAAiB,mBAAA;KAClB,CAAC;AACJ,CAAC;AA7BD,kEA6BC"}
@@ -6,25 +6,23 @@ var react_1 = require("react");
6
6
  function useNearIFrameMessageHandlers(_a) {
7
7
  var _this = this;
8
8
  var wallet = _a.wallet;
9
- var handleSendTransaction = (0, react_1.useCallback)(function (_a) {
10
- var data = _a.data;
11
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
12
- var action, executionOutcome, transactionResult;
13
- return tslib_1.__generator(this, function (_b) {
14
- switch (_b.label) {
15
- case 0:
16
- action = JSON.parse(Buffer.from(data, 'base64').toString());
17
- return [4 /*yield*/, wallet.signAndSendTransaction(action)];
18
- case 1:
19
- executionOutcome = _b.sent();
20
- if (!executionOutcome)
21
- throw new Error('Transaction did not send');
22
- transactionResult = executionOutcome.transaction;
23
- return [2 /*return*/, transactionResult.hash];
24
- }
25
- });
9
+ var handleSendTransaction = (0, react_1.useCallback)(function (_a) { return tslib_1.__awaiter(_this, [_a], void 0, function (_b) {
10
+ var action, executionOutcome, transactionResult;
11
+ var data = _b.data;
12
+ return tslib_1.__generator(this, function (_c) {
13
+ switch (_c.label) {
14
+ case 0:
15
+ action = JSON.parse(Buffer.from(data, 'base64').toString());
16
+ return [4 /*yield*/, wallet.signAndSendTransaction(action)];
17
+ case 1:
18
+ executionOutcome = _c.sent();
19
+ if (!executionOutcome)
20
+ throw new Error('Transaction did not send');
21
+ transactionResult = executionOutcome.transaction;
22
+ return [2 /*return*/, transactionResult.hash];
23
+ }
26
24
  });
27
- }, [wallet]);
25
+ }); }, [wallet]);
28
26
  return {
29
27
  handleSendTransaction: handleSendTransaction,
30
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NearIFrameMessageHandlers.js","sourceRoot":"","sources":["../../../src/wallet/NearIFrameMessageHandlers.ts"],"names":[],"mappings":";;;;AAAA,+BAAkC;AAIlC,SAAgB,4BAA4B,CAAC,EAI5C;IAJD,iBAmBC;QAlBC,MAAM,YAAA;IAIN,IAAM,qBAAqB,GAAG,IAAA,mBAAW,EACvC,UAAO,EAAkB;YAAjB,IAAI,UAAA;;;;;;wBACJ,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;wBACzC,qBAAM,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAA;;wBAA9D,gBAAgB,GAAG,SAA2C;wBACpE,IAAI,CAAC,gBAAgB;4BAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;wBAC/C,iBAAiB,GAAI,gBAAgB,YAApB,CAAqB;wBAC1D,sBAAO,iBAAiB,CAAC,IAAI,EAAC;;;;KAC/B,EACD,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,OAAO;QACL,qBAAqB,uBAAA;KACtB,CAAC;AACJ,CAAC;AAnBD,oEAmBC"}
1
+ {"version":3,"file":"NearIFrameMessageHandlers.js","sourceRoot":"","sources":["../../../src/wallet/NearIFrameMessageHandlers.ts"],"names":[],"mappings":";;;;AAAA,+BAAkC;AAIlC,SAAgB,4BAA4B,CAAC,EAI5C;IAJD,iBAmBC;QAlBC,MAAM,YAAA;IAIN,IAAM,qBAAqB,GAAG,IAAA,mBAAW,EACvC,wEAAO,EAAkB;;YAAjB,IAAI,UAAA;;;;oBACJ,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;oBACzC,qBAAM,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAA;;oBAA9D,gBAAgB,GAAG,SAA2C;oBACpE,IAAI,CAAC,gBAAgB;wBAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;oBAC/C,iBAAiB,GAAI,gBAAgB,YAApB,CAAqB;oBAC1D,sBAAO,iBAAiB,CAAC,IAAI,EAAC;;;SAC/B,EACD,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,OAAO;QACL,qBAAqB,uBAAA;KACtB,CAAC;AACJ,CAAC;AAnBD,oEAmBC"}
@@ -66,53 +66,66 @@ function useSolanaIFrameMessageHandlers(_a) {
66
66
  if (shouldSign)
67
67
  tx.sign([signer]);
68
68
  }
69
- var handleSendTransaction = (0, react_1.useCallback)(function (_a) {
70
- var data = _a.data;
71
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
72
- var tx;
73
- return tslib_1.__generator(this, function (_b) {
74
- switch (_b.label) {
75
- case 0:
76
- tx = getTransaction(data);
77
- if (partialSigners)
78
- partialSigners.forEach(function (signer) { return partiallySign(signer, tx); });
79
- if (!debugTx) return [3 /*break*/, 2];
80
- return [4 /*yield*/, sendTransactionDebug(tx)];
81
- case 1: return [2 /*return*/, _b.sent()];
82
- case 2: return [4 /*yield*/, wallet.sendTransaction(tx, connection)];
83
- case 3: return [2 /*return*/, _b.sent()];
84
- }
85
- });
69
+ var handleSendTransaction = (0, react_1.useCallback)(function (_a) { return tslib_1.__awaiter(_this, [_a], void 0, function (_b) {
70
+ var tx;
71
+ var data = _b.data;
72
+ return tslib_1.__generator(this, function (_c) {
73
+ switch (_c.label) {
74
+ case 0:
75
+ tx = getTransaction(data);
76
+ if (partialSigners)
77
+ partialSigners.forEach(function (signer) { return partiallySign(signer, tx); });
78
+ if (!debugTx) return [3 /*break*/, 2];
79
+ return [4 /*yield*/, sendTransactionDebug(tx)];
80
+ case 1: return [2 /*return*/, _c.sent()];
81
+ case 2: return [4 /*yield*/, wallet.sendTransaction(tx, connection)];
82
+ case 3: return [2 /*return*/, _c.sent()];
83
+ }
86
84
  });
87
- }, [connection, debugTx, partialSigners, sendTransactionDebug, wallet]);
88
- var handleSignTransaction = (0, react_1.useCallback)(function (_a) {
89
- var data = _a.data;
90
- return tslib_1.__awaiter(_this, void 0, void 0, function () {
91
- var tx, signedTransaction;
92
- return tslib_1.__generator(this, function (_b) {
93
- switch (_b.label) {
94
- case 0:
95
- if (!wallet.signTransaction) {
96
- throw new Error('signTransaction is not supported by this wallet');
97
- }
98
- tx = getTransaction(data);
99
- if (partialSigners) {
100
- partialSigners.forEach(function (signer) { return partiallySign(signer, tx); });
101
- }
102
- return [4 /*yield*/, wallet.signTransaction(tx)];
103
- case 1:
104
- signedTransaction = _b.sent();
105
- return [2 /*return*/, bs58_1.default.encode(signedTransaction.serialize({
106
- requireAllSignatures: false,
107
- verifySignatures: false,
108
- }))];
109
- }
110
- });
85
+ }); }, [connection, debugTx, partialSigners, sendTransactionDebug, wallet]);
86
+ var handleSignTransaction = (0, react_1.useCallback)(function (_a) { return tslib_1.__awaiter(_this, [_a], void 0, function (_b) {
87
+ var tx, signedTransaction;
88
+ var data = _b.data;
89
+ return tslib_1.__generator(this, function (_c) {
90
+ switch (_c.label) {
91
+ case 0:
92
+ if (!wallet.signTransaction) {
93
+ throw new Error('signTransaction is not supported by this wallet');
94
+ }
95
+ tx = getTransaction(data);
96
+ if (partialSigners) {
97
+ partialSigners.forEach(function (signer) { return partiallySign(signer, tx); });
98
+ }
99
+ return [4 /*yield*/, wallet.signTransaction(tx)];
100
+ case 1:
101
+ signedTransaction = _c.sent();
102
+ return [2 /*return*/, bs58_1.default.encode(signedTransaction.serialize({
103
+ requireAllSignatures: false,
104
+ verifySignatures: false,
105
+ }))];
106
+ }
107
+ });
108
+ }); }, [partialSigners, wallet]);
109
+ var handleSignMessage = (0, react_1.useCallback)(function (_a) { return tslib_1.__awaiter(_this, [_a], void 0, function (_b) {
110
+ var signedMessage;
111
+ var data = _b.data;
112
+ return tslib_1.__generator(this, function (_c) {
113
+ switch (_c.label) {
114
+ case 0:
115
+ if (!wallet.signMessage) {
116
+ throw new Error('signTransaction is not supported by this wallet');
117
+ }
118
+ return [4 /*yield*/, wallet.signMessage(new TextEncoder().encode(data))];
119
+ case 1:
120
+ signedMessage = _c.sent();
121
+ return [2 /*return*/, bs58_1.default.encode(signedMessage)];
122
+ }
111
123
  });
112
- }, [partialSigners, wallet]);
124
+ }); }, [wallet]);
113
125
  return {
114
126
  handleSignTransaction: handleSignTransaction,
115
127
  handleSendTransaction: handleSendTransaction,
128
+ handleSignMessage: handleSignMessage,
116
129
  };
117
130
  }
118
131
  exports.useSolanaIFrameMessageHandlers = useSolanaIFrameMessageHandlers;