privacycash 1.1.1 → 1.1.2
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/utils/constants.d.ts +3 -3
- package/dist/utils/constants.js +2 -14
- package/package.json +1 -1
- package/src/utils/constants.ts +3 -16
|
@@ -13,12 +13,12 @@ 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"
|
|
16
|
+
declare const tokenList: readonly ["sol", "usdc", "usdt"];
|
|
17
17
|
export type TokenList = typeof tokenList[number];
|
|
18
|
-
declare const splList: readonly ["usdc", "usdt"
|
|
18
|
+
declare const splList: readonly ["usdc", "usdt"];
|
|
19
19
|
export type SplList = typeof splList[number];
|
|
20
20
|
export type Token = {
|
|
21
|
-
name:
|
|
21
|
+
name: TokenList;
|
|
22
22
|
prefix: string;
|
|
23
23
|
units_per_token: number;
|
|
24
24
|
pubkey: PublicKey;
|
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'
|
|
18
|
-
const splList = ['usdc', 'usdt'
|
|
17
|
+
const tokenList = ['sol', 'usdc', 'usdt'];
|
|
18
|
+
const splList = ['usdc', 'usdt'];
|
|
19
19
|
export const tokens = [
|
|
20
20
|
{
|
|
21
21
|
name: 'sol',
|
|
@@ -34,17 +34,5 @@ export const tokens = [
|
|
|
34
34
|
pubkey: process.env.NEXT_PUBLIC_USDT_MINT ? new PublicKey(process.env.NEXT_PUBLIC_USDT_MINT) : new PublicKey('Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'),
|
|
35
35
|
prefix: 'usdt_',
|
|
36
36
|
units_per_token: 1e6
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: 'zec',
|
|
40
|
-
pubkey: process.env.NEXT_PUBLIC_ZEC_MINT ? new PublicKey(process.env.NEXT_PUBLIC_ZEC_MINT) : new PublicKey('A7bdiYdS5GjqGFtxf17ppRHtDKPkkRqbKtR27dxvQXaS'),
|
|
41
|
-
prefix: 'zec_',
|
|
42
|
-
units_per_token: 1e8
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: 'ore',
|
|
46
|
-
pubkey: process.env.NEXT_PUBLIC_ORE_MINT ? new PublicKey(process.env.NEXT_PUBLIC_ORE_MINT) : new PublicKey('oreoU2P8bN6jkk3jbaiVxYnG1dCXcYxwhwyK9jSybcp'),
|
|
47
|
-
prefix: 'ore_',
|
|
48
|
-
units_per_token: 1e11
|
|
49
37
|
}
|
|
50
38
|
];
|
package/package.json
CHANGED
package/src/utils/constants.ts
CHANGED
|
@@ -27,12 +27,12 @@ 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'
|
|
30
|
+
const tokenList = ['sol', 'usdc', 'usdt'] as const;
|
|
31
31
|
export type TokenList = typeof tokenList[number];
|
|
32
|
-
const splList = ['usdc', 'usdt'
|
|
32
|
+
const splList = ['usdc', 'usdt'] as const;
|
|
33
33
|
export type SplList = typeof splList[number];
|
|
34
34
|
export type Token = {
|
|
35
|
-
name:
|
|
35
|
+
name: TokenList
|
|
36
36
|
prefix: string
|
|
37
37
|
units_per_token: number
|
|
38
38
|
pubkey: PublicKey
|
|
@@ -55,18 +55,5 @@ export const tokens: Token[] = [
|
|
|
55
55
|
pubkey: process.env.NEXT_PUBLIC_USDT_MINT ? new PublicKey(process.env.NEXT_PUBLIC_USDT_MINT) : new PublicKey('Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'),
|
|
56
56
|
prefix: 'usdt_',
|
|
57
57
|
units_per_token: 1e6
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: 'zec',
|
|
61
|
-
pubkey: process.env.NEXT_PUBLIC_ZEC_MINT ? new PublicKey(process.env.NEXT_PUBLIC_ZEC_MINT) : new PublicKey('A7bdiYdS5GjqGFtxf17ppRHtDKPkkRqbKtR27dxvQXaS'),
|
|
62
|
-
prefix: 'zec_',
|
|
63
|
-
units_per_token: 1e8
|
|
64
|
-
}
|
|
65
|
-
,
|
|
66
|
-
{
|
|
67
|
-
name: 'ore',
|
|
68
|
-
pubkey: process.env.NEXT_PUBLIC_ORE_MINT ? new PublicKey(process.env.NEXT_PUBLIC_ORE_MINT) : new PublicKey('oreoU2P8bN6jkk3jbaiVxYnG1dCXcYxwhwyK9jSybcp'),
|
|
69
|
-
prefix: 'ore_',
|
|
70
|
-
units_per_token: 1e11
|
|
71
58
|
}
|
|
72
59
|
]
|