@coinflowlabs/react 3.1.4 → 3.1.5
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 +7 -0
- package/build/cjs/CoinflowTypes.d.ts +4 -1
- package/build/cjs/CoinflowUtils.d.ts +2 -2
- package/build/cjs/CoinflowUtils.js +6 -2
- package/build/cjs/CoinflowUtils.js.map +1 -1
- package/build/esm/CoinflowTypes.d.ts +4 -1
- package/build/esm/CoinflowUtils.d.ts +2 -2
- package/build/esm/CoinflowUtils.js +6 -2
- package/build/esm/CoinflowUtils.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ Props:
|
|
|
16
16
|
* `env` (optional): This defaults to `prod`
|
|
17
17
|
- For testing set to `staging`
|
|
18
18
|
* `onSuccess` (optional): function to run when the withdrawal process is successful
|
|
19
|
+
* `lockAmount` (optional): Whether to let the user select the amount to withdraw or to disable the input
|
|
19
20
|
|
|
20
21
|
## Purchase Usage
|
|
21
22
|
```
|
|
@@ -37,6 +38,8 @@ Props:
|
|
|
37
38
|
* `partialSigners` (optional): Keypairs of Partial Signers to sign the transaction with, this is necessary when initializing new accounts as the new account Keypair must sign the transaction.
|
|
38
39
|
* `debugTx` (optional): Setting this to `true` will sign the transaction with the wallet, and send the transaction with no preflight checks allowing for easier debug of any issues.
|
|
39
40
|
* `token` (optional): The token to use for the purchase. Defaults to USDC. Currently only supported for the Solana Blockchain.
|
|
41
|
+
* `planCode` (optional): When a subscription is being purchased, the code of the subscription plan.
|
|
42
|
+
* `settlementType` (optional): The settlement method to use for the proceeds of a purchase. (Credits, USDC, or Bank)
|
|
40
43
|
|
|
41
44
|
## Utils
|
|
42
45
|
|
|
@@ -46,6 +49,10 @@ Props:
|
|
|
46
49
|
|
|
47
50
|
# Changelog
|
|
48
51
|
|
|
52
|
+
## 3.1.5
|
|
53
|
+
|
|
54
|
+
- Settlement type param for settlement control
|
|
55
|
+
|
|
49
56
|
## 3.1.4
|
|
50
57
|
|
|
51
58
|
- Customer info param for added reporting capabilities
|
|
@@ -3,7 +3,7 @@ import type { Connection, VersionedTransaction } from '@solana/web3.js';
|
|
|
3
3
|
import { PublicKey, Signer, Transaction } from '@solana/web3.js';
|
|
4
4
|
import { WalletContextState } from '@solana/wallet-adapter-react';
|
|
5
5
|
import { Wallet } from '@near-wallet-selector/core';
|
|
6
|
-
import { CustomerInfo } from '@coinflow/common';
|
|
6
|
+
import { CustomerInfo, SettlementType } from '@coinflow/common';
|
|
7
7
|
/** Coinflow Types **/
|
|
8
8
|
export type CoinflowBlockchain = 'solana' | 'near' | 'eth' | 'polygon';
|
|
9
9
|
export type CoinflowEnvs = 'prod' | 'staging' | 'sandbox' | 'local';
|
|
@@ -89,6 +89,8 @@ export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>,
|
|
|
89
89
|
planCode?: string;
|
|
90
90
|
disableApplePay?: boolean;
|
|
91
91
|
disableGooglePay?: boolean;
|
|
92
|
+
settlementType?: SettlementType;
|
|
93
|
+
lockAmount?: boolean;
|
|
92
94
|
}
|
|
93
95
|
/** Transactions **/
|
|
94
96
|
export type NearFtTransferCallAction = {
|
|
@@ -179,6 +181,7 @@ export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
|
179
181
|
blockchain: 'solana' | 'eth' | 'near' | 'polygon';
|
|
180
182
|
}[];
|
|
181
183
|
supportsVersionedTransactions?: boolean;
|
|
184
|
+
lockAmount?: boolean;
|
|
182
185
|
}
|
|
183
186
|
export interface CoinflowSolanaWithdrawProps extends CoinflowCommonWithdrawProps {
|
|
184
187
|
wallet: SolanaWallet;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
2
2
|
import { CoinflowBlockchain, CoinflowEnvs, CoinflowIFrameProps, SolanaWallet } from './CoinflowTypes';
|
|
3
|
-
import { Cents } from
|
|
3
|
+
import { Cents } from '@coinflow/common';
|
|
4
4
|
export declare class CoinflowUtils {
|
|
5
5
|
env: CoinflowEnvs;
|
|
6
6
|
url: string;
|
|
@@ -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, }: 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, }: 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: {
|
|
@@ -32,7 +32,7 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
32
32
|
return tslib_1.__generator(this, function (_a) {
|
|
33
33
|
switch (_a.label) {
|
|
34
34
|
case 0: return [4 /*yield*/, fetch(this.url + "/api/customer/balances/".concat(merchantId), {
|
|
35
|
-
method:
|
|
35
|
+
method: 'GET',
|
|
36
36
|
headers: {
|
|
37
37
|
'x-coinflow-auth-wallet': publicKey,
|
|
38
38
|
'x-coinflow-auth-blockchain': blockchain,
|
|
@@ -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;
|
|
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;
|
|
68
68
|
var prefix = routePrefix
|
|
69
69
|
? "/".concat(routePrefix, "/").concat(blockchain)
|
|
70
70
|
: "/".concat(blockchain);
|
|
@@ -132,6 +132,10 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
132
132
|
url.searchParams.append('disableApplePay', 'true');
|
|
133
133
|
if (disableGooglePay)
|
|
134
134
|
url.searchParams.append('disableGooglePay', 'true');
|
|
135
|
+
if (settlementType)
|
|
136
|
+
url.searchParams.append('settlementType', settlementType);
|
|
137
|
+
if (lockAmount)
|
|
138
|
+
url.searchParams.append('lockAmount', 'true');
|
|
135
139
|
return url.toString();
|
|
136
140
|
};
|
|
137
141
|
CoinflowUtils.serializeSolanaTransaction = function (transaction) {
|
|
@@ -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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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;gBACE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AAhOD,IAgOC;AAhOY,sCAAa"}
|
|
@@ -3,7 +3,7 @@ import type { Connection, VersionedTransaction } from '@solana/web3.js';
|
|
|
3
3
|
import { PublicKey, Signer, Transaction } from '@solana/web3.js';
|
|
4
4
|
import { WalletContextState } from '@solana/wallet-adapter-react';
|
|
5
5
|
import { Wallet } from '@near-wallet-selector/core';
|
|
6
|
-
import { CustomerInfo } from '@coinflow/common';
|
|
6
|
+
import { CustomerInfo, SettlementType } from '@coinflow/common';
|
|
7
7
|
/** Coinflow Types **/
|
|
8
8
|
export type CoinflowBlockchain = 'solana' | 'near' | 'eth' | 'polygon';
|
|
9
9
|
export type CoinflowEnvs = 'prod' | 'staging' | 'sandbox' | 'local';
|
|
@@ -89,6 +89,8 @@ export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>,
|
|
|
89
89
|
planCode?: string;
|
|
90
90
|
disableApplePay?: boolean;
|
|
91
91
|
disableGooglePay?: boolean;
|
|
92
|
+
settlementType?: SettlementType;
|
|
93
|
+
lockAmount?: boolean;
|
|
92
94
|
}
|
|
93
95
|
/** Transactions **/
|
|
94
96
|
export type NearFtTransferCallAction = {
|
|
@@ -179,6 +181,7 @@ export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
|
179
181
|
blockchain: 'solana' | 'eth' | 'near' | 'polygon';
|
|
180
182
|
}[];
|
|
181
183
|
supportsVersionedTransactions?: boolean;
|
|
184
|
+
lockAmount?: boolean;
|
|
182
185
|
}
|
|
183
186
|
export interface CoinflowSolanaWithdrawProps extends CoinflowCommonWithdrawProps {
|
|
184
187
|
wallet: SolanaWallet;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
2
2
|
import { CoinflowBlockchain, CoinflowEnvs, CoinflowIFrameProps, SolanaWallet } from './CoinflowTypes';
|
|
3
|
-
import { Cents } from
|
|
3
|
+
import { Cents } from '@coinflow/common';
|
|
4
4
|
export declare class CoinflowUtils {
|
|
5
5
|
env: CoinflowEnvs;
|
|
6
6
|
url: string;
|
|
@@ -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, }: 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, }: 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: {
|
|
@@ -29,7 +29,7 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
29
29
|
return __generator(this, function (_a) {
|
|
30
30
|
switch (_a.label) {
|
|
31
31
|
case 0: return [4 /*yield*/, fetch(this.url + "/api/customer/balances/".concat(merchantId), {
|
|
32
|
-
method:
|
|
32
|
+
method: 'GET',
|
|
33
33
|
headers: {
|
|
34
34
|
'x-coinflow-auth-wallet': publicKey,
|
|
35
35
|
'x-coinflow-auth-blockchain': blockchain,
|
|
@@ -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;
|
|
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;
|
|
65
65
|
var prefix = routePrefix
|
|
66
66
|
? "/".concat(routePrefix, "/").concat(blockchain)
|
|
67
67
|
: "/".concat(blockchain);
|
|
@@ -129,6 +129,10 @@ var CoinflowUtils = /** @class */ (function () {
|
|
|
129
129
|
url.searchParams.append('disableApplePay', 'true');
|
|
130
130
|
if (disableGooglePay)
|
|
131
131
|
url.searchParams.append('disableGooglePay', 'true');
|
|
132
|
+
if (settlementType)
|
|
133
|
+
url.searchParams.append('settlementType', settlementType);
|
|
134
|
+
if (lockAmount)
|
|
135
|
+
url.searchParams.append('lockAmount', 'true');
|
|
132
136
|
return url.toString();
|
|
133
137
|
};
|
|
134
138
|
CoinflowUtils.serializeSolanaTransaction = function (transaction) {
|
|
@@ -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,C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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,IAA+C;QAE/C,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;gBACE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AAhOD,IAgOC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinflowlabs/react",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"description": "React Component for Coinflow Withdraw",
|
|
5
5
|
"main": "./build/cjs/index.js",
|
|
6
6
|
"module": "./build/esm/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@solana/wallet-adapter-react": "^0.15.32",
|
|
36
36
|
"@near-wallet-selector/core": "^8.9.1",
|
|
37
|
-
"@types/react": "^18.2.
|
|
37
|
+
"@types/react": "^18.2.47",
|
|
38
38
|
"eslint-config-react-app": "^7.0.1",
|
|
39
39
|
"typescript": "^5.3.2",
|
|
40
40
|
"csstype": "^3.1.3"
|