solana-risk-engine 0.5.0 → 0.5.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/src/i18n/en.js CHANGED
@@ -1,122 +1,131 @@
1
- function usd(n) {
2
- if (!n) return "$0";
3
- if (n < 0.01) return "<$0.01";
4
- return "$" + n.toLocaleString("en-US", { minimumFractionDigits: n < 1000 ? 2 : 0, maximumFractionDigits: n < 1000 ? 2 : 0 });
5
- }
6
- function pct(n) { return Math.round(n) + "%"; }
7
- function short(a) { return a.slice(0, 4) + "…" + a.slice(-4); }
8
- function prog(d) { return d && d.prog >= 20 ? ". Pools and programs hold " + pct(d.prog) : ""; }
9
-
10
- const EXT = {
11
- permanentDelegate: "The issuer can move or burn your tokens (permanent delegate). Normal for tokenized stocks, but you have to trust the issuer",
12
- transferHook: "Has a transfer hook: runs external code on every transfer",
13
- transferFeeConfig: "Charges a fee on every transfer",
14
- nonTransferable: "Cannot be transferred",
15
- defaultAccountState: "New accounts can be created frozen"
16
- };
17
-
18
- export default {
19
- fmt: { usd: usd, pct: pct, short: short },
20
- signals: {
21
- NO_INFO: () => "Could not read the token's information",
22
- MINT_BY_PROGRAM: () => "A program controls the mint (usually a bridge or protocol): you have to trust that code",
23
- MINT_ACTIVE: (d) => "The creator can still mint more tokens (mint authority active" + (d && d.byWallet ? ", held by a wallet" : "") + ")",
24
- FREEZE_BY_PROGRAM: () => "A program controls freezing: it can freeze accounts according to its code",
25
- FREEZE_ACTIVE: (d) => "The creator can freeze accounts (freeze authority active" + (d && d.byWallet ? ", held by a wallet" : "") + ")",
26
- EXTENSION: (d) => EXT[d.ext] || ("Extension " + d.ext),
27
- NO_MARKET: () => "No market on DexScreener (no price or liquidity)",
28
- MARKET_UNCHECKED: () => "Could not check this token's market (network error reaching DexScreener): analyse it again to check",
29
- KNOWN_TOKEN: () => "Well-known token",
30
-
31
- CTL_MINT_ACTIVE: () => "The creator can mint more tokens (mint authority active)",
32
- CTL_FREEZE_ACTIVE: () => "The creator can freeze accounts (freeze authority active)",
33
- CTL_TRANSFER_HOOK: () => "Runs external code on every transfer",
34
- CTL_TRANSFER_FEE: () => "Charges a fee on every transfer",
35
- CTL_NON_TRANSFERABLE: () => "Cannot be transferred",
36
- CTL_DEFAULT_FROZEN: () => "New accounts can be created frozen",
37
- CTL_ONLY_PROGRAMS: () => "Only program-controlled authorities (see dependency)",
38
- CTL_KNOWN_ISSUER: (d) => "Controlled by its issuer, " + d.issuer + " (see dependency)",
39
- CTL_NONE: () => "No active authorities: nobody can mint more or freeze",
40
- CTL_SERIAL_CREATOR: (d) => "The creator launched " + d.n + " other tokens in the last 24 h (per RugCheck): a serial launcher, who usually drops each token as soon as buyers arrive",
41
- CTL_SERIAL_PAYER: (d) => "The wallet that paid for this launch launched " + d.n + " other tokens in the last 24 h (counted on chain): a serial launcher, who usually drops each token as soon as buyers arrive",
42
- MAP_GROUP: (d) => d.n + " holders got their first SOL from the same wallet and together hold " + pct(d.pct) + " of the supply: most likely one person or team",
43
- MAP_SWARM: (d) => d.n + " of the " + d.of + " largest holders got their first SOL from the same wallet (together " + pct(d.pct) + "): this many wallets from one source is usually the team splitting its supply",
44
- MAP_HUB: (d) => "One wallet handed tokens to " + d.n + " wallets: teams often split the supply this way to look more spread out",
45
- MAP_WHALE: (d) => "A single person (not an exchange or a pool) holds " + pct(d.pct) + " of the supply",
46
- BRAND_COPY: (d) => "Uses the name of " + d.brand + ", a real company with no token on Solana: it is not official, almost certainly an imitation to draw buyers",
47
- BRAND_NAME: (d) => "Uses the name of " + d.brand + ", a real company: it is not an official " + d.brand + " token",
48
- COPYCAT: (d) => "There " + (d.n === 1 ? "is another token" : "are " + d.n + " more tokens") + " with the same name and ticker; the oldest one with a real market (" + short(d.original) + ", " + d.days + (d.days === 1 ? " day" : " days") + " old) is not this one: check you have the right address",
49
- HOLD_GROUP: (d) => d.n + " holders got their first SOL from the same wallet and together hold " + pct(d.pct) + " of the supply: most likely one person or team",
50
- CTL_CREATOR_HISTORY: (d) => "Of the " + d.old + " tokens the creator launched before (over 24 h ago), " + d.dead + " stayed under $10,000 market cap (per RugCheck): their launches rarely take off",
51
- IMPOSTOR: (d) => "Not the original " + d.symbol + ". Make sure it is the token you want",
52
-
53
- CON_SKIPPED: () => "Holder concentration not checked",
54
- CON_UNAVAILABLE: () => "Could not check holder concentration (the service did not answer; try again in a while)",
55
- CON_ALL_POOLS: (d) => "Almost all the supply is in pools or programs" + prog(d),
56
- CON_OK: (d) => "No worrying concentration (largest individual wallet: " + pct(d.w1) + ")" + prog(d),
57
- CON_TRUSTED: (d) => "Not counted: in a token from " + d.issuer + " the large holders are its treasury, custodians, exchanges and protocols",
58
- CON_ISSUER: (d) => "The largest wallet holds " + pct(d.w1) + " and the top 10 hold " + pct(d.w10) + ": with a verified issuer these are usually its treasury, custodians, exchanges or protocols, so it does not count as a risk" + prog(d),
59
- CON_HIGH: (d) => "The largest individual wallet holds " + pct(d.w1) + " and the top 10 hold " + pct(d.w10) + " of the supply" + prog(d),
60
- CON_UNSPLIT: (d) => "Could not separate pools from people. The largest account holds " + pct(d.top1) + " of the supply",
61
-
62
- MKT_LIQ_INFLATED: (d) => "Inflated liquidity: DexScreener says " + usd(d.reported) + ", but the pool only has about " + usd(d.real) + " in real tokens (USDC, USDT or SOL). That is the most you could get out when selling" + (d.reported >= 100 * Math.max(d.real, 1) ? ". A gap like that is no accident: it is set up to make the token look established" : ""),
63
- MKT_LIQ_VERY_LOW: (d) => "Very low liquidity (" + usd(d.liq) + ")",
64
- MKT_LIQ_LOW: (d) => "Low liquidity (" + usd(d.liq) + ")",
65
- MKT_VOLUME_LOW: (d) => "Almost no 24h volume (" + usd(d.vol) + ")",
66
- MKT_NEW: (d) => "Very new market (" + (d.days < 1 ? "less than a day" : d.days + (d.days === 1 ? " day" : " days")) + ")",
67
- MKT_POSITION_HEAVY: (d) => "This wallet's position equals " + pct(d.pct) + " of the liquidity: selling at once would move the price a lot",
68
- MKT_LP_UNLOCKED: (d) => "Only " + pct(d.pct) + " of the liquidity is locked or burned (per RugCheck): the rest can be pulled at once",
69
- MKT_LP_PARTLY_LOCKED: (d) => "Only " + pct(d.pct) + " of the liquidity is locked or burned (per RugCheck)",
70
- MKT_OK: (d) => "Liquidity " + usd(d.liq) + " · 24h volume " + usd(d.vol),
71
-
72
- DEP_PROGRAM_AUTHORITY: () => "A program controls the mint or freeze (bridge or protocol): you have to trust its code",
73
- DEP_PERMANENT_DELEGATE: () => "The issuer can move or burn your tokens (permanent delegate): you trust the issuer",
74
- DEP_STABLE_ISSUER: () => "Its value depends on whoever issues and backs it",
75
- DEP_TRUSTED_ISSUER: (d) => "Issued by " + d.issuer + ", one of the few regulated issuers SolFlag trusts. Like any issuer, it can freeze or claw back tokens under a legal order",
76
- DEP_KNOWN_ISSUER: (d) => "Issued by " + d.issuer + ": it can mint, freeze or move tokens, like any regulated issuer. You trust the issuer",
77
- DEP_NONE: () => "Does not depend on an issuer or a bridge"
78
- },
79
- offSolana: " and its main market may be outside Solana",
80
- levels: {
81
- HIGH: "High risk", MEDIUM: "Medium risk", LOW: "Low risk", SPAM: "Likely spam",
82
- NO_DATA: "Not checked", NO_MARKET: "No market", MEDIUM_DATA_ONLY: "Medium due to missing data"
83
- },
84
- types: {
85
- STABLE: { label: "Stablecoin", note: "Judged by its liquidity and trust in the issuer; concentration matters less." },
86
- TOKENIZED: { label: "Tokenized or regulated", note: "The issuer normally keeps control (permanent delegate). The real risk is trusting the issuer and having liquidity to exit." },
87
- BRIDGED: { label: "Bridged or protocol", note: "A program normally controls the mint. The real risk is trusting that bridge and its Solana market being small, since the main one may be on another chain." },
88
- CREATOR: { label: "Creator-controlled", note: "A wallet can mint more or freeze accounts: the typical scam pattern, so it is judged more strictly." },
89
- OPEN: { label: "Open token", note: "No creator authorities, typical of memecoins and new projects. Concentration in people and liquidity matter most." }
90
- },
91
- lights: { control: "Creator control", concentration: "Concentration", market: "Market and exit", dependency: "Dependency" },
92
- missing: { control: "who controls the token", concentration: "holder concentration", market: "the market", dependency: "issuer dependency" },
93
- steps: {
94
- address: "Checking the address…", wallet: "Reading the wallet…", markets: "Fetching prices and liquidity…",
95
- tokens: "Reviewing tokens…", token: "Reading the token…", owners: "Finding who owns each account…",
96
- kinds: "Telling wallets from pools and programs…", bots: "Separating people from bots and exchanges…",
97
- funders: "Looking for wallets funded from the same source…", exchangeSources: "Checking whether each group's source is an exchange…",
98
- creator: "Looking up who created the token (RugCheck)…", creatorTokens: "Reviewing the creator's other tokens…",
99
- networks: "Checking what wallet networks hold today…", wallets: "Reading wallets…",
100
- pnl: "Estimating each wallet's result…", done: "Done"
101
- },
102
- notes: {
103
- PNL_NO_HELIUS: "Wallet results were not estimated because there is no Helius key.",
104
- PNL_PARTIAL: "Some wallets' history could not be read.",
105
- PNL_APPROX: "SOL price history was unavailable: today's price was used and results may be far off."
106
- },
107
- errors: {
108
- CANCELLED: () => "Cancelled.",
109
- INVALID_ADDRESS: () => "That does not look like a Solana address. They are 32 to 44 letters and digits and do not start with 0x.",
110
- NOT_A_TOKEN: () => "That address is not a token.",
111
- IS_NFT: () => "That address is an NFT, not a token. The scanner does not review NFTs.",
112
- NO_HOLDERS: () => "The RPC returned no holder data.",
113
- HELIUS_REQUIRED: () => "Estimating results needs a Helius API key (or a Helius RPC URL with the key).",
114
- SOL_PRICE: () => "Could not get the SOL price to compute the result. Try again in a while.",
115
- DEX_UNREACHABLE: () => "Could not connect to DexScreener. Check your internet connection and try again.",
116
- TOO_FEW_WALLETS: (d) => d && d.filter ? "Only " + d.n + (d.n === 1 ? " wallet passes" : " wallets pass") + " the result filter (of " + d.total + " read)." : "At least 2 readable wallets are needed.",
117
- TOO_FEW_TOKENS: () => "Give at least 2 Solana token addresses.",
118
- NETWORK_PUBLIC: () => "The free Solana services did not answer (they get saturated sometimes). Wait a minute and try again, or use your own RPC URL (Helius has a free plan).",
119
- NETWORK_OWN: () => "Could not connect to your RPC URL. Check it was copied correctly (with the key at the end).",
120
- UNKNOWN: (d) => "Something failed: " + d.message + ". Try again or use another RPC."
121
- }
122
- };
1
+ function usd(n) {
2
+ if (!n) return "$0";
3
+ if (n < 0.01) return "<$0.01";
4
+ return "$" + n.toLocaleString("en-US", { minimumFractionDigits: n < 1000 ? 2 : 0, maximumFractionDigits: n < 1000 ? 2 : 0 });
5
+ }
6
+ function pct(n) { return Math.round(n) + "%"; }
7
+ function short(a) { return a.slice(0, 4) + "…" + a.slice(-4); }
8
+ function prog(d) {
9
+ let s = d && d.prog >= 20 ? ". Pools and programs hold " + pct(d.prog) : "";
10
+ // named exchanges: their users' funds, not one person who can sell (not counted)
11
+ if (d && d.ex >= 1) s += ". " + (d.exn && d.exn.length ? d.exn.slice(0, 2).join(" and ") + (d.exn.length > 2 ? " and other exchanges" : "") : "Exchanges") +
12
+ " hold" + (d.exn && d.exn.length === 1 ? "s" : "") + " " + pct(d.ex) + ": their users' funds, not counted";
13
+ if (d && d.mm >= 1 && d.mmn && d.mmn.length) s += ". " + d.mmn.slice(0, 2).join(" and ") + " (market maker" + (d.mmn.length > 1 ? "s" : "") + ") " +
14
+ (d.mmn.length > 1 ? "hold" : "holds") + " " + pct(d.mm) + ": counted, as " + (d.mmn.length > 1 ? "they" : "it") + " can sell it";
15
+ return s;
16
+ }
17
+
18
+ const EXT = {
19
+ permanentDelegate: "The issuer can move or burn your tokens (permanent delegate). Normal for tokenized stocks, but you have to trust the issuer",
20
+ transferHook: "Has a transfer hook: runs external code on every transfer",
21
+ transferFeeConfig: "Charges a fee on every transfer",
22
+ nonTransferable: "Cannot be transferred",
23
+ defaultAccountState: "New accounts can be created frozen"
24
+ };
25
+
26
+ export default {
27
+ fmt: { usd: usd, pct: pct, short: short },
28
+ signals: {
29
+ NO_INFO: () => "Could not read the token's information",
30
+ MINT_BY_PROGRAM: () => "A program controls the mint (usually a bridge or protocol): you have to trust that code",
31
+ MINT_ACTIVE: (d) => "The creator can still mint more tokens (mint authority active" + (d && d.byWallet ? ", held by a wallet" : "") + ")",
32
+ FREEZE_BY_PROGRAM: () => "A program controls freezing: it can freeze accounts according to its code",
33
+ FREEZE_ACTIVE: (d) => "The creator can freeze accounts (freeze authority active" + (d && d.byWallet ? ", held by a wallet" : "") + ")",
34
+ EXTENSION: (d) => EXT[d.ext] || ("Extension " + d.ext),
35
+ NO_MARKET: () => "No market on DexScreener (no price or liquidity)",
36
+ MARKET_UNCHECKED: () => "Could not check this token's market (network error reaching DexScreener): analyse it again to check",
37
+ KNOWN_TOKEN: () => "Well-known token",
38
+
39
+ CTL_MINT_ACTIVE: () => "The creator can mint more tokens (mint authority active)",
40
+ CTL_FREEZE_ACTIVE: () => "The creator can freeze accounts (freeze authority active)",
41
+ CTL_TRANSFER_HOOK: () => "Runs external code on every transfer",
42
+ CTL_TRANSFER_FEE: () => "Charges a fee on every transfer",
43
+ CTL_NON_TRANSFERABLE: () => "Cannot be transferred",
44
+ CTL_DEFAULT_FROZEN: () => "New accounts can be created frozen",
45
+ CTL_ONLY_PROGRAMS: () => "Only program-controlled authorities (see dependency)",
46
+ CTL_KNOWN_ISSUER: (d) => "Controlled by its issuer, " + d.issuer + " (see dependency)",
47
+ CTL_NONE: () => "No active authorities: nobody can mint more or freeze",
48
+ CTL_SERIAL_CREATOR: (d) => "The creator launched " + d.n + " other tokens in the last 24 h (per RugCheck): a serial launcher, who usually drops each token as soon as buyers arrive",
49
+ CTL_SERIAL_PAYER: (d) => "The wallet that paid for this launch launched " + d.n + " other tokens in the last 24 h (counted on chain): a serial launcher, who usually drops each token as soon as buyers arrive",
50
+ MAP_GROUP: (d) => d.n + " holders got their first SOL from the same wallet and together hold " + pct(d.pct) + " of the supply: most likely one person or team",
51
+ MAP_SWARM: (d) => d.n + " of the " + d.of + " largest holders got their first SOL from the same wallet (together " + pct(d.pct) + "): this many wallets from one source is usually the team splitting its supply",
52
+ MAP_HUB: (d) => "One wallet handed tokens to " + d.n + " wallets: teams often split the supply this way to look more spread out",
53
+ MAP_WHALE: (d) => "A single person (not an exchange or a pool) holds " + pct(d.pct) + " of the supply",
54
+ BRAND_COPY: (d) => "Uses the name of " + d.brand + ", a real company with no token on Solana: it is not official, almost certainly an imitation to draw buyers",
55
+ BRAND_NAME: (d) => "Uses the name of " + d.brand + ", a real company: it is not an official " + d.brand + " token",
56
+ COPYCAT: (d) => "There " + (d.n === 1 ? "is another token" : "are " + d.n + " more tokens") + " with the same name and ticker; the oldest one with a real market (" + short(d.original) + ", " + d.days + (d.days === 1 ? " day" : " days") + " old) is not this one: check you have the right address",
57
+ HOLD_GROUP: (d) => d.n + " holders got their first SOL from the same wallet and together hold " + pct(d.pct) + " of the supply: most likely one person or team",
58
+ CTL_CREATOR_HISTORY: (d) => "Of the " + d.old + " tokens the creator launched before (over 24 h ago), " + d.dead + " stayed under $10,000 market cap (per RugCheck): their launches rarely take off",
59
+ IMPOSTOR: (d) => "Not the original " + d.symbol + ". Make sure it is the token you want",
60
+
61
+ CON_SKIPPED: () => "Holder concentration not checked",
62
+ CON_UNAVAILABLE: () => "Could not check holder concentration (the service did not answer; try again in a while)",
63
+ CON_ALL_POOLS: (d) => "Almost all the supply is in pools or programs" + prog(d),
64
+ CON_EXCHANGES: (d) => "Almost all the supply is in exchanges, pools or programs" + prog(d),
65
+ CON_OK: (d) => "No worrying concentration (largest individual wallet: " + pct(d.w1) + ")" + prog(d),
66
+ CON_TRUSTED: (d) => "Not counted: in a token from " + d.issuer + " the large holders are its treasury, custodians, exchanges and protocols",
67
+ CON_ISSUER: (d) => "The largest wallet holds " + pct(d.w1) + " and the top 10 hold " + pct(d.w10) + ": with a verified issuer these are usually its treasury, custodians, exchanges or protocols, so it does not count as a risk" + prog(d),
68
+ CON_HIGH: (d) => "The largest individual wallet holds " + pct(d.w1) + " and the top 10 hold " + pct(d.w10) + " of the supply" + prog(d),
69
+ CON_UNSPLIT: (d) => "Could not separate pools from people. The largest account holds " + pct(d.top1) + " of the supply",
70
+
71
+ MKT_LIQ_INFLATED: (d) => "Inflated liquidity: DexScreener says " + usd(d.reported) + ", but the pool only has about " + usd(d.real) + " in real tokens (USDC, USDT or SOL). That is the most you could get out when selling" + (d.reported >= 100 * Math.max(d.real, 1) ? ". A gap like that is no accident: it is set up to make the token look established" : ""),
72
+ MKT_LIQ_VERY_LOW: (d) => "Very low liquidity (" + usd(d.liq) + ")",
73
+ MKT_LIQ_LOW: (d) => "Low liquidity (" + usd(d.liq) + ")",
74
+ MKT_VOLUME_LOW: (d) => "Almost no 24h volume (" + usd(d.vol) + ")",
75
+ MKT_NEW: (d) => "Very new market (" + (d.days < 1 ? "less than a day" : d.days + (d.days === 1 ? " day" : " days")) + ")",
76
+ MKT_POSITION_HEAVY: (d) => "This wallet's position equals " + pct(d.pct) + " of the liquidity: selling at once would move the price a lot",
77
+ MKT_LP_UNLOCKED: (d) => "Only " + pct(d.pct) + " of the liquidity is locked or burned (per RugCheck): the rest can be pulled at once",
78
+ MKT_LP_PARTLY_LOCKED: (d) => "Only " + pct(d.pct) + " of the liquidity is locked or burned (per RugCheck)",
79
+ MKT_OK: (d) => "Liquidity " + usd(d.liq) + " · 24h volume " + usd(d.vol),
80
+
81
+ DEP_PROGRAM_AUTHORITY: () => "A program controls the mint or freeze (bridge or protocol): you have to trust its code",
82
+ DEP_PERMANENT_DELEGATE: () => "The issuer can move or burn your tokens (permanent delegate): you trust the issuer",
83
+ DEP_STABLE_ISSUER: () => "Its value depends on whoever issues and backs it",
84
+ DEP_TRUSTED_ISSUER: (d) => "Issued by " + d.issuer + ", one of the few regulated issuers SolFlag trusts. Like any issuer, it can freeze or claw back tokens under a legal order",
85
+ DEP_KNOWN_ISSUER: (d) => "Issued by " + d.issuer + ": it can mint, freeze or move tokens, like any regulated issuer. You trust the issuer",
86
+ DEP_NONE: () => "Does not depend on an issuer or a bridge"
87
+ },
88
+ offSolana: " and its main market may be outside Solana",
89
+ levels: {
90
+ HIGH: "High risk", MEDIUM: "Medium risk", LOW: "Low risk", SPAM: "Likely spam",
91
+ NO_DATA: "Not checked", NO_MARKET: "No market", MEDIUM_DATA_ONLY: "Medium due to missing data"
92
+ },
93
+ types: {
94
+ STABLE: { label: "Stablecoin", note: "Judged by its liquidity and trust in the issuer; concentration matters less." },
95
+ TOKENIZED: { label: "Tokenized or regulated", note: "The issuer normally keeps control (permanent delegate). The real risk is trusting the issuer and having liquidity to exit." },
96
+ BRIDGED: { label: "Bridged or protocol", note: "A program normally controls the mint. The real risk is trusting that bridge and its Solana market being small, since the main one may be on another chain." },
97
+ CREATOR: { label: "Creator-controlled", note: "A wallet can mint more or freeze accounts: the typical scam pattern, so it is judged more strictly." },
98
+ OPEN: { label: "Open token", note: "No creator authorities, typical of memecoins and new projects. Concentration in people and liquidity matter most." }
99
+ },
100
+ lights: { control: "Creator control", concentration: "Concentration", market: "Market and exit", dependency: "Dependency" },
101
+ missing: { control: "who controls the token", concentration: "holder concentration", market: "the market", dependency: "issuer dependency" },
102
+ steps: {
103
+ address: "Checking the address…", wallet: "Reading the wallet…", markets: "Fetching prices and liquidity…",
104
+ tokens: "Reviewing tokens…", token: "Reading the token…", owners: "Finding who owns each account…",
105
+ kinds: "Telling wallets from pools and programs…", bots: "Separating people from bots and exchanges…",
106
+ funders: "Looking for wallets funded from the same source…", exchangeSources: "Checking whether each group's source is an exchange…",
107
+ creator: "Looking up who created the token (RugCheck)…", creatorTokens: "Reviewing the creator's other tokens…",
108
+ networks: "Checking what wallet networks hold today…", wallets: "Reading wallets…",
109
+ pnl: "Estimating each wallet's result…", done: "Done"
110
+ },
111
+ notes: {
112
+ PNL_NO_HELIUS: "Wallet results were not estimated because there is no Helius key.",
113
+ PNL_PARTIAL: "Some wallets' history could not be read.",
114
+ PNL_APPROX: "SOL price history was unavailable: today's price was used and results may be far off."
115
+ },
116
+ errors: {
117
+ CANCELLED: () => "Cancelled.",
118
+ INVALID_ADDRESS: () => "That does not look like a Solana address. They are 32 to 44 letters and digits and do not start with 0x.",
119
+ NOT_A_TOKEN: () => "That address is not a token.",
120
+ IS_NFT: () => "That address is an NFT, not a token. The scanner does not review NFTs.",
121
+ NO_HOLDERS: () => "The RPC returned no holder data.",
122
+ HELIUS_REQUIRED: () => "Estimating results needs a Helius API key (or a Helius RPC URL with the key).",
123
+ SOL_PRICE: () => "Could not get the SOL price to compute the result. Try again in a while.",
124
+ DEX_UNREACHABLE: () => "Could not connect to DexScreener. Check your internet connection and try again.",
125
+ TOO_FEW_WALLETS: (d) => d && d.filter ? "Only " + d.n + (d.n === 1 ? " wallet passes" : " wallets pass") + " the result filter (of " + d.total + " read)." : "At least 2 readable wallets are needed.",
126
+ TOO_FEW_TOKENS: () => "Give at least 2 Solana token addresses.",
127
+ NETWORK_PUBLIC: () => "The free Solana services did not answer (they get saturated sometimes). Wait a minute and try again, or use your own RPC URL (Helius has a free plan).",
128
+ NETWORK_OWN: () => "Could not connect to your RPC URL. Check it was copied correctly (with the key at the end).",
129
+ UNKNOWN: (d) => "Something failed: " + d.message + ". Try again or use another RPC."
130
+ }
131
+ };