privacycash 1.1.14 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/deposit.js +1 -1
- package/dist/depositSPL.js +1 -1
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +14 -2
- package/package.json +1 -1
- package/src/deposit.ts +1 -1
- package/src/depositSPL.ts +1 -1
- package/src/utils/constants.ts +14 -2
package/dist/deposit.js
CHANGED
|
@@ -330,7 +330,7 @@ export async function deposit({ lightWasm, storage, keyBasePath, publicKey, conn
|
|
|
330
330
|
// check tx size
|
|
331
331
|
const txSize = versionedTransaction.serialize().length;
|
|
332
332
|
logger.debug(`Initial transaction size: ${txSize} bytes`);
|
|
333
|
-
if (txSize
|
|
333
|
+
if (txSize > 1232) {
|
|
334
334
|
logger.debug(`Transaction size ${txSize} exceeds limit. Cannot proceed.`);
|
|
335
335
|
logger.debug('Removing prioritize compute instruction to reduce size and retrying...');
|
|
336
336
|
// Remove prioritize compute instruction and recreate transaction
|
package/dist/depositSPL.js
CHANGED
|
@@ -383,7 +383,7 @@ export async function depositSPL({ lightWasm, storage, keyBasePath, publicKey, c
|
|
|
383
383
|
// check tx size
|
|
384
384
|
const txSize = versionedTransaction.serialize().length;
|
|
385
385
|
logger.debug(`Serialized transaction size: ${txSize} bytes`);
|
|
386
|
-
if (txSize
|
|
386
|
+
if (txSize > 1232) {
|
|
387
387
|
logger.debug(`Transaction size ${txSize} exceeds limit. Cannot proceed.`);
|
|
388
388
|
logger.debug('Removing prioritize compute instruction to reduce size and retrying...');
|
|
389
389
|
// Remove prioritize compute instruction and recreate transaction
|
|
@@ -13,9 +13,9 @@ export declare const SIGN_MESSAGE = "Privacy Money account sign in";
|
|
|
13
13
|
export declare const LSK_FETCH_OFFSET = "fetch_offset";
|
|
14
14
|
export declare const LSK_ENCRYPTED_OUTPUTS = "encrypted_outputs";
|
|
15
15
|
export declare const USDC_MINT: PublicKey;
|
|
16
|
-
declare const tokenList: readonly ["sol", "usdc", "usdt", "zec", "ore", "store"];
|
|
16
|
+
declare const tokenList: readonly ["sol", "usdc", "usdt", "zec", "ore", "store", "jlusdc", "jlwsol"];
|
|
17
17
|
export type TokenList = typeof tokenList[number];
|
|
18
|
-
declare const splList: readonly ["usdc", "usdt", "zec", "ore", "store"];
|
|
18
|
+
declare const splList: readonly ["usdc", "usdt", "zec", "ore", "store", "jlusdc", "jlwsol"];
|
|
19
19
|
export type SplList = typeof splList[number];
|
|
20
20
|
export type Token = {
|
|
21
21
|
name: TokenList;
|
package/dist/utils/constants.js
CHANGED
|
@@ -14,8 +14,8 @@ export const SIGN_MESSAGE = `Privacy Money account sign in`;
|
|
|
14
14
|
export const LSK_FETCH_OFFSET = 'fetch_offset';
|
|
15
15
|
export const LSK_ENCRYPTED_OUTPUTS = 'encrypted_outputs';
|
|
16
16
|
export const USDC_MINT = process.env.NEXT_PUBLIC_USDC_MINT ? new PublicKey(process.env.NEXT_PUBLIC_USDC_MINT) : new PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v');
|
|
17
|
-
const tokenList = ['sol', 'usdc', 'usdt', 'zec', 'ore', 'store'];
|
|
18
|
-
const splList = ['usdc', 'usdt', 'zec', 'ore', 'store'];
|
|
17
|
+
const tokenList = ['sol', 'usdc', 'usdt', 'zec', 'ore', 'store', 'jlusdc', 'jlwsol'];
|
|
18
|
+
const splList = ['usdc', 'usdt', 'zec', 'ore', 'store', 'jlusdc', 'jlwsol'];
|
|
19
19
|
export const tokens = [
|
|
20
20
|
{
|
|
21
21
|
name: 'sol',
|
|
@@ -53,4 +53,16 @@ export const tokens = [
|
|
|
53
53
|
prefix: 'store_',
|
|
54
54
|
units_per_token: 1e11
|
|
55
55
|
},
|
|
56
|
+
{
|
|
57
|
+
name: 'jlusdc',
|
|
58
|
+
pubkey: process.env.NEXT_PUBLIC_JLUSDC_MINT ? new PublicKey(process.env.NEXT_PUBLIC_JLUSDC_MINT) : new PublicKey('9BEcn9aPEmhSPbPQeFGjidRiEKki46fVQDyPpSQXPA2D'),
|
|
59
|
+
prefix: 'jlusdc_',
|
|
60
|
+
units_per_token: 1e6
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'jlwsol',
|
|
64
|
+
pubkey: process.env.NEXT_PUBLIC_JLW_SOL_MINT ? new PublicKey(process.env.NEXT_PUBLIC_JLW_SOL_MINT) : new PublicKey('2uQsyo1fXXQkDtcpXnLofWy88PxcvnfH2L8FPSE62FVU'),
|
|
65
|
+
prefix: 'jlwsol_',
|
|
66
|
+
units_per_token: 1e9
|
|
67
|
+
}
|
|
56
68
|
];
|
package/package.json
CHANGED
package/src/deposit.ts
CHANGED
|
@@ -408,7 +408,7 @@ export async function deposit({ lightWasm, storage, keyBasePath, publicKey, conn
|
|
|
408
408
|
// check tx size
|
|
409
409
|
const txSize = versionedTransaction.serialize().length;
|
|
410
410
|
logger.debug(`Initial transaction size: ${txSize} bytes`);
|
|
411
|
-
if (txSize
|
|
411
|
+
if (txSize > 1232) {
|
|
412
412
|
logger.debug(`Transaction size ${txSize} exceeds limit. Cannot proceed.`);
|
|
413
413
|
logger.debug('Removing prioritize compute instruction to reduce size and retrying...');
|
|
414
414
|
// Remove prioritize compute instruction and recreate transaction
|
package/src/depositSPL.ts
CHANGED
|
@@ -493,7 +493,7 @@ export async function depositSPL({ lightWasm, storage, keyBasePath, publicKey, c
|
|
|
493
493
|
// check tx size
|
|
494
494
|
const txSize = versionedTransaction.serialize().length
|
|
495
495
|
logger.debug(`Serialized transaction size: ${txSize} bytes`);
|
|
496
|
-
if (txSize
|
|
496
|
+
if (txSize > 1232) {
|
|
497
497
|
logger.debug(`Transaction size ${txSize} exceeds limit. Cannot proceed.`);
|
|
498
498
|
logger.debug('Removing prioritize compute instruction to reduce size and retrying...');
|
|
499
499
|
// Remove prioritize compute instruction and recreate transaction
|
package/src/utils/constants.ts
CHANGED
|
@@ -27,9 +27,9 @@ export const LSK_ENCRYPTED_OUTPUTS = 'encrypted_outputs'
|
|
|
27
27
|
|
|
28
28
|
export const USDC_MINT = process.env.NEXT_PUBLIC_USDC_MINT ? new PublicKey(process.env.NEXT_PUBLIC_USDC_MINT) : new PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v')
|
|
29
29
|
|
|
30
|
-
const tokenList = ['sol', 'usdc', 'usdt', 'zec', 'ore', 'store'] as const;
|
|
30
|
+
const tokenList = ['sol', 'usdc', 'usdt', 'zec', 'ore', 'store', 'jlusdc', 'jlwsol'] as const;
|
|
31
31
|
export type TokenList = typeof tokenList[number];
|
|
32
|
-
const splList = ['usdc', 'usdt', 'zec', 'ore', 'store'] as const;
|
|
32
|
+
const splList = ['usdc', 'usdt', 'zec', 'ore', 'store', 'jlusdc', 'jlwsol'] as const;
|
|
33
33
|
export type SplList = typeof splList[number];
|
|
34
34
|
export type Token = {
|
|
35
35
|
name: TokenList
|
|
@@ -74,4 +74,16 @@ export const tokens: Token[] = [
|
|
|
74
74
|
prefix: 'store_',
|
|
75
75
|
units_per_token: 1e11
|
|
76
76
|
},
|
|
77
|
+
{
|
|
78
|
+
name: 'jlusdc',
|
|
79
|
+
pubkey: process.env.NEXT_PUBLIC_JLUSDC_MINT ? new PublicKey(process.env.NEXT_PUBLIC_JLUSDC_MINT) : new PublicKey('9BEcn9aPEmhSPbPQeFGjidRiEKki46fVQDyPpSQXPA2D'),
|
|
80
|
+
prefix: 'jlusdc_',
|
|
81
|
+
units_per_token: 1e6
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'jlwsol',
|
|
85
|
+
pubkey: process.env.NEXT_PUBLIC_JLW_SOL_MINT ? new PublicKey(process.env.NEXT_PUBLIC_JLW_SOL_MINT) : new PublicKey('2uQsyo1fXXQkDtcpXnLofWy88PxcvnfH2L8FPSE62FVU'),
|
|
86
|
+
prefix: 'jlwsol_',
|
|
87
|
+
units_per_token: 1e9
|
|
88
|
+
}
|
|
77
89
|
]
|