├── .env.copy ├── .gitignore ├── .prettierrc ├── LICENSE ├── LICENSE.md ├── README.md ├── buy.ts ├── package-lock.json ├── package.json ├── snipe-list.txt └── tsconfig.json /.env.copy: -------------------------------------------------------------------------------- 1 | PRIVATE_KEY= 2 | RPC_ENDPOINT=https://api.mainnet-beta.solana.com 3 | RPC_WEBSOCKET_ENDPOINT=wss://api.mainnet-beta.solana.com 4 | QUOTE_MINT=WSOL 5 | QUOTE_AMOUNT=0.01 6 | COMMITMENT_LEVEL=finalized 7 | USE_SNIPE_LIST=false 8 | SNIPE_LIST_REFRESH_INTERVAL=30000 9 | CHECK_IF_MINT_IS_RENOUNCED=false 10 | AUTO_SELL=true 11 | MAX_SELL_RETRIES=5 12 | AUTO_SELL_DELAY=1000 13 | LOG_LEVEL=info 14 | MIN_POOL_SIZE=10 15 | MAX_POOL_SIZE=50 16 | ONE_TOKEN_AT_A_TIME=true 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | .pnpm-debug.log* 9 | 10 | # Diagnostic reports (https://nodejs.org/api/report.html) 11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 12 | 13 | # Runtime data 14 | pids 15 | *.pid 16 | *.seed 17 | *.pid.lock 18 | 19 | # Directory for instrumented libs generated by jscoverage/JSCover 20 | lib-cov 21 | 22 | # Coverage directory used by tools like istanbul 23 | coverage 24 | *.lcov 25 | 26 | # nyc test coverage 27 | .nyc_output 28 | 29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 30 | .grunt 31 | 32 | # Bower dependency directory (https://bower.io/) 33 | bower_components 34 | 35 | # node-waf configuration 36 | .lock-wscript 37 | 38 | # Compiled binary addons (https://nodejs.org/api/addons.html) 39 | build/Release 40 | 41 | # Dependency directories 42 | node_modules/ 43 | jspm_packages/ 44 | 45 | # Snowpack dependency directory (https://snowpack.dev/) 46 | web_modules/ 47 | 48 | # TypeScript cache 49 | *.tsbuildinfo 50 | 51 | # Optional npm cache directory 52 | .npm 53 | 54 | # Optional eslint cache 55 | .eslintcache 56 | 57 | # Optional stylelint cache 58 | .stylelintcache 59 | 60 | # Microbundle cache 61 | .rpt2_cache/ 62 | .rts2_cache_cjs/ 63 | .rts2_cache_es/ 64 | .rts2_cache_umd/ 65 | 66 | # Optional REPL history 67 | .node_repl_history 68 | 69 | # Output of 'npm pack' 70 | *.tgz 71 | 72 | # Yarn Integrity file 73 | .yarn-integrity 74 | 75 | # dotenv environment variable files 76 | .env 77 | .env.development.local 78 | .env.test.local 79 | .env.production.local 80 | .env.local 81 | 82 | # parcel-bundler cache (https://parceljs.org/) 83 | .cache 84 | .parcel-cache 85 | 86 | # Next.js build output 87 | .next 88 | out 89 | 90 | # Nuxt.js build / generate output 91 | .nuxt 92 | dist 93 | 94 | # Gatsby files 95 | .cache/ 96 | # Comment in the public line in if your project uses Gatsby and not Next.js 97 | # https://nextjs.org/blog/next-9-1#public-directory-support 98 | # public 99 | 100 | # vuepress build output 101 | .vuepress/dist 102 | 103 | # vuepress v2.x temp and cache directory 104 | .temp 105 | .cache 106 | 107 | # Docusaurus cache and generated files 108 | .docusaurus 109 | 110 | # Serverless directories 111 | .serverless/ 112 | 113 | # FuseBox cache 114 | .fusebox/ 115 | 116 | # DynamoDB Local files 117 | .dynamodb/ 118 | 119 | # TernJS port file 120 | .tern-port 121 | 122 | # Stores VSCode versions used for testing VSCode extensions 123 | .vscode-test 124 | 125 | # PNPM 126 | pnpm-lock.yaml 127 | 128 | # yarn v2 129 | .yarn/cache 130 | .yarn/unplugged 131 | .yarn/build-state.yml 132 | .yarn/install-state.gz 133 | .pnp.* 134 | 135 | # JetBrains 136 | .idea 137 | 138 | # Visual Studio Code 139 | *.code-workspace 140 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "trailingComma": "all", 4 | "printWidth": 120 5 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Alex Jesús Cabello Leiva - AlexCocoPro 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Microsoft Public License (Ms-PL) 2 | 3 | This license governs use of the accompanying software. If you use the software, you 4 | accept this license. If you do not accept the license, do not use the software. 5 | 6 | 1. Definitions 7 | The terms "reproduce," "reproduction," "derivative works," and "distribution" have the 8 | same meaning here as under U.S. copyright law. 9 | A "contribution" is the original software, or any additions or changes to the software. 10 | A "contributor" is any person that distributes its contribution under this license. 11 | "Licensed patents" are a contributor's patent claims that read directly on its contribution. 12 | 13 | 2. Grant of Rights 14 | (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. 15 | (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. 16 | 17 | 3. Conditions and Limitations 18 | (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. 19 | (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. 20 | (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. 21 | (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. 22 | (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Solana Sniper Bot (Poc) 3 | This code is written as proof of concept to demonstrate how we can buy new tokens immediately after the liquidity pool is open for trading. 4 | 5 | Script listens to new Raydium USDC or SOL pools and buys tokens for a fixed amount in USDC/SOL. 6 | Depending on the speed of the RPC node, the purchase usually happens before the token is available on Raydium UI for swapping. 7 | 8 | This is provided as is, for learning purposes. 9 | 10 | ## Setup 11 | To run the script you need to: 12 | - Create a new empty Solana wallet 13 | - Transfer some SOL to it. 14 | - Convert some SOL to USDC or WSOL. 15 | - You need USDC or WSOL depending on the configuration set below. 16 | - Configure the script by updating `.env.copy` file (remove the .copy from the file name when done). 17 | - PRIVATE_KEY (your wallet private key) 18 | - RPC_ENDPOINT (https RPC endpoint) 19 | - RPC_WEBSOCKET_ENDPOINT (websocket RPC endpoint) 20 | - QUOTE_MINT (which pools to snipe, USDC or WSOL) 21 | - QUOTE_AMOUNT (amount used to buy each new token) 22 | - COMMITMENT_LEVEL 23 | - USE_SNIPE_LIST (buy only tokens listed in snipe-list.txt) 24 | - SNIPE_LIST_REFRESH_INTERVAL (how often snipe list should be refreshed in milliseconds) 25 | - CHECK_IF_MINT_IS_RENOUNCED (script will buy only if mint is renounced) 26 | - MIN_POOL_SIZE (EXPERIMENTAL) (script will buy only if pool size is greater than specified amount) 27 | - set to 0 to disable pool size check 28 | - Install dependencies by typing: `npm install` 29 | - Run the script by typing: `npm run buy` in terminal 30 | 31 | You should see the following output: 32 | ![output](readme/output.png) 33 | 34 | ## Snipe list 35 | By default, script buys each token which has a new liquidity pool created and open for trading. 36 | There are scenarios when you want to buy one specific token as soon as possible during the launch event. 37 | To achieve this, you'll have to use snipe list. 38 | - Change variable `USE_SNIPE_LIST` to `true` 39 | - Add token mint addresses you wish to buy in `snipe-list.txt` file 40 | - Add each address as a new line 41 | 42 | This will prevent script from buying everything, and instead it will buy just listed tokens. 43 | You can update the list while script is running. Script will check for new values in specified interval (`SNIPE_LIST_REFRESH_INTERVAL`). 44 | 45 | Pool must not exist before the script starts. 46 | It will buy only when new pool is open for trading. If you want to buy token that will be launched in the future, make sure that script is running before the launch. 47 | 48 | ## Auto Sell 49 | By default, auto sell is enabled. If you want to disable it, you need to: 50 | - Change variable `AUTO_SELL` to `false` 51 | - Update `MAX_SELL_RETRIES` to set the maximum number of retries for selling token 52 | - Update `AUTO_SELL_DELAY` to the number of milliseconds you want to wait before selling the token 53 | - This will sell the token after the specified delay. (+- RPC node speed) 54 | 55 | If you set AUTO_SELL_DELAY to 0, token will be sold immediately after it is bought. 56 | 57 | There is no guarantee that the token will be sold at a profit or even sold at all. The developer is not responsible for any losses incurred by using this feature. 58 | 59 | ## Common issues 60 | If you have an error which is not listed here, please create a new issue in this repository. 61 | To collect more information on an issue, please change `LOG_LEVEL` to `debug`. 62 | 63 | ### Empty transaction 64 | - If you see empty transactions on SolScan most likely fix is to change commitment level to `finalized`. 65 | 66 | ### Unsupported RPC node 67 | - If you see following error in your log file: 68 | `Error: 410 Gone: {"jsonrpc":"2.0","error":{"code": 410, "message":"The RPC call or parameters have been disabled."}, "id": "986f3599-b2b7-47c4-b951-074c19842bad" }` 69 | it means your RPC node doesn't support methods needed to execute script. 70 | - FIX: Change your RPC node. You can use Helius or Quicknode. 71 | 72 | ### No token account 73 | - If you see following error in your log file: 74 | `Error: No SOL token account found in wallet: ` 75 | it means that wallet you provided doesn't have USDC/WSOL token account. 76 | - FIX: Go to dex and swap some SOL to USDC/WSOL. For example when you swap sol to wsol you should see it in wallet as shown below: 77 | 78 | ![wsol](readme/wsol.png) 79 | 80 | ## Contact 81 | [![](https://img.shields.io/discord/1201826085655023616?color=5865F2&logo=Discord&style=flat-square)](https://discord.gg/xYUETCA2aP) 82 | 83 | ## Disclaimer 84 | 85 | Use this script at your own risk. 86 | -------------------------------------------------------------------------------- /buy.ts: -------------------------------------------------------------------------------- 1 | import { 2 | BigNumberish, 3 | Liquidity, 4 | LIQUIDITY_STATE_LAYOUT_V4, 5 | LiquidityPoolKeys, 6 | LiquidityStateV4, 7 | MARKET_STATE_LAYOUT_V3, 8 | MarketStateV3, 9 | Token, 10 | TokenAmount, 11 | } from '@raydium-io/raydium-sdk'; 12 | import { 13 | AccountLayout, 14 | createAssociatedTokenAccountIdempotentInstruction, 15 | createCloseAccountInstruction, 16 | getAssociatedTokenAddressSync, 17 | TOKEN_PROGRAM_ID, 18 | } from '@solana/spl-token'; 19 | import { 20 | Keypair, 21 | Connection, 22 | PublicKey, 23 | ComputeBudgetProgram, 24 | KeyedAccountInfo, 25 | TransactionMessage, 26 | VersionedTransaction, 27 | } from '@solana/web3.js'; 28 | import { getTokenAccounts, RAYDIUM_LIQUIDITY_PROGRAM_ID_V4, OPENBOOK_PROGRAM_ID, createPoolKeys } from './liquidity'; 29 | import { logger } from './utils'; 30 | import { getMinimalMarketV3, MinimalMarketLayoutV3 } from './market'; 31 | import { MintLayout } from './types'; 32 | import bs58 from 'bs58'; 33 | import * as fs from 'fs'; 34 | import * as path from 'path'; 35 | import { 36 | AUTO_SELL, 37 | AUTO_SELL_DELAY, 38 | CHECK_IF_MINT_IS_RENOUNCED, 39 | COMMITMENT_LEVEL, 40 | LOG_LEVEL, 41 | MAX_SELL_RETRIES, 42 | NETWORK, 43 | PRIVATE_KEY, 44 | QUOTE_AMOUNT, 45 | QUOTE_MINT, 46 | RPC_ENDPOINT, 47 | RPC_WEBSOCKET_ENDPOINT, 48 | SNIPE_LIST_REFRESH_INTERVAL, 49 | USE_SNIPE_LIST, 50 | MIN_POOL_SIZE, 51 | MAX_POOL_SIZE, 52 | ONE_TOKEN_AT_A_TIME, 53 | } from './constants'; 54 | 55 | const solanaConnection = new Connection(RPC_ENDPOINT, { 56 | wsEndpoint: RPC_WEBSOCKET_ENDPOINT, 57 | }); 58 | 59 | export interface MinimalTokenAccountData { 60 | mint: PublicKey; 61 | address: PublicKey; 62 | poolKeys?: LiquidityPoolKeys; 63 | market?: MinimalMarketLayoutV3; 64 | } 65 | 66 | const existingLiquidityPools: Set = new Set(); 67 | const existingOpenBookMarkets: Set = new Set(); 68 | const existingTokenAccounts: Map = new Map(); 69 | 70 | let wallet: Keypair; 71 | let quoteToken: Token; 72 | let quoteTokenAssociatedAddress: PublicKey; 73 | let quoteAmount: TokenAmount; 74 | let quoteMinPoolSizeAmount: TokenAmount; 75 | let quoteMaxPoolSizeAmount: TokenAmount; 76 | let processingToken: Boolean = false; 77 | 78 | 79 | 80 | let snipeList: string[] = []; 81 | 82 | async function init(): Promise { 83 | logger.level = LOG_LEVEL; 84 | 85 | // get wallet 86 | wallet = Keypair.fromSecretKey(bs58.decode(PRIVATE_KEY)); 87 | logger.info(`Wallet Address: ${wallet.publicKey}`); 88 | 89 | // get quote mint and amount 90 | switch (QUOTE_MINT) { 91 | case 'WSOL': { 92 | quoteToken = Token.WSOL; 93 | quoteAmount = new TokenAmount(Token.WSOL, QUOTE_AMOUNT, false); 94 | quoteMinPoolSizeAmount = new TokenAmount(quoteToken, MIN_POOL_SIZE, false); 95 | quoteMaxPoolSizeAmount = new TokenAmount(quoteToken, MAX_POOL_SIZE, false); 96 | break; 97 | } 98 | case 'USDC': { 99 | quoteToken = new Token( 100 | TOKEN_PROGRAM_ID, 101 | new PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'), 102 | 6, 103 | 'USDC', 104 | 'USDC', 105 | ); 106 | quoteAmount = new TokenAmount(quoteToken, QUOTE_AMOUNT, false); 107 | quoteMinPoolSizeAmount = new TokenAmount(quoteToken, MIN_POOL_SIZE, false); 108 | quoteMaxPoolSizeAmount = new TokenAmount(quoteToken, MAX_POOL_SIZE, false); 109 | break; 110 | } 111 | default: { 112 | throw new Error(`Unsupported quote mint "${QUOTE_MINT}". Supported values are USDC and WSOL`); 113 | } 114 | } 115 | 116 | logger.info(`Snipe list: ${USE_SNIPE_LIST}`); 117 | logger.info(`Check mint renounced: ${CHECK_IF_MINT_IS_RENOUNCED}`); 118 | logger.info( 119 | `Min pool size: ${quoteMinPoolSizeAmount.isZero() ? 'false' : quoteMinPoolSizeAmount.toFixed()} ${quoteToken.symbol}`, 120 | ); 121 | logger.info( 122 | `Max pool size: ${quoteMaxPoolSizeAmount.isZero() ? 'false' : quoteMaxPoolSizeAmount.toFixed()} ${quoteToken.symbol}`, 123 | ); 124 | logger.info(`One token at a time: ${ONE_TOKEN_AT_A_TIME}`); 125 | logger.info(`Buy amount: ${quoteAmount.toFixed()} ${quoteToken.symbol}`); 126 | logger.info(`Auto sell: ${AUTO_SELL}`); 127 | logger.info(`Sell delay: ${AUTO_SELL_DELAY === 0 ? 'false' : AUTO_SELL_DELAY}`); 128 | 129 | // check existing wallet for associated token account of quote mint 130 | const tokenAccounts = await getTokenAccounts(solanaConnection, wallet.publicKey, COMMITMENT_LEVEL); 131 | 132 | for (const ta of tokenAccounts) { 133 | existingTokenAccounts.set(ta.accountInfo.mint.toString(), { 134 | mint: ta.accountInfo.mint, 135 | address: ta.pubkey, 136 | }); 137 | } 138 | 139 | const tokenAccount = tokenAccounts.find((acc) => acc.accountInfo.mint.toString() === quoteToken.mint.toString())!; 140 | 141 | if (!tokenAccount) { 142 | throw new Error(`No ${quoteToken.symbol} token account found in wallet: ${wallet.publicKey}`); 143 | } 144 | 145 | quoteTokenAssociatedAddress = tokenAccount.pubkey; 146 | 147 | // load tokens to snipe 148 | loadSnipeList(); 149 | } 150 | 151 | function saveTokenAccount(mint: PublicKey, accountData: MinimalMarketLayoutV3) { 152 | const ata = getAssociatedTokenAddressSync(mint, wallet.publicKey); 153 | const tokenAccount = { 154 | address: ata, 155 | mint: mint, 156 | market: { 157 | bids: accountData.bids, 158 | asks: accountData.asks, 159 | eventQueue: accountData.eventQueue, 160 | }, 161 | }; 162 | existingTokenAccounts.set(mint.toString(), tokenAccount); 163 | return tokenAccount; 164 | } 165 | 166 | export async function processRaydiumPool(id: PublicKey, poolState: LiquidityStateV4) { 167 | if (!shouldBuy(poolState.baseMint.toString())) { 168 | return; 169 | } 170 | 171 | if (!quoteMinPoolSizeAmount.isZero()) { 172 | const poolSize = new TokenAmount(quoteToken, poolState.swapQuoteInAmount, true); 173 | logger.info(`Processing pool: ${id.toString()} with ${poolSize.toFixed()} ${quoteToken.symbol} in liquidity`); 174 | 175 | if (poolSize.lt(quoteMinPoolSizeAmount)) { 176 | logger.warn( 177 | { 178 | mint: poolState.baseMint, 179 | pooled: `${poolSize.toFixed()} ${quoteToken.symbol}`, 180 | }, 181 | `Skipping pool, smaller than ${quoteMinPoolSizeAmount.toFixed()} ${quoteToken.symbol}`, 182 | `Swap quote in amount: ${poolSize.toFixed()}`, 183 | ); 184 | logger.info(`-------------------🤖🔧------------------- \n`); 185 | return; 186 | } 187 | } 188 | 189 | if (!quoteMaxPoolSizeAmount.isZero()) { 190 | const poolSize = new TokenAmount(quoteToken, poolState.swapQuoteInAmount, true); 191 | 192 | if (poolSize.gt(quoteMaxPoolSizeAmount)) { 193 | logger.warn( 194 | { 195 | mint: poolState.baseMint, 196 | pooled: `${poolSize.toFixed()} ${quoteToken.symbol}`, 197 | }, 198 | `Skipping pool, bigger than ${quoteMaxPoolSizeAmount.toFixed()} ${quoteToken.symbol}`, 199 | `Swap quote in amount: ${poolSize.toFixed()}`, 200 | ); 201 | logger.info(`-------------------🤖🔧------------------- \n`); 202 | return; 203 | } 204 | } 205 | 206 | if (CHECK_IF_MINT_IS_RENOUNCED) { 207 | const mintOption = await checkMintable(poolState.baseMint); 208 | 209 | if (mintOption !== true) { 210 | logger.warn({ mint: poolState.baseMint }, 'Skipping, owner can mint tokens!'); 211 | return; 212 | } 213 | } 214 | 215 | await buy(id, poolState); 216 | } 217 | 218 | export async function checkMintable(vault: PublicKey): Promise { 219 | try { 220 | let { data } = (await solanaConnection.getAccountInfo(vault)) || {}; 221 | if (!data) { 222 | return; 223 | } 224 | const deserialize = MintLayout.decode(data); 225 | return deserialize.mintAuthorityOption === 0; 226 | } catch (e) { 227 | logger.debug(e); 228 | logger.error({ mint: vault }, `Failed to check if mint is renounced`); 229 | } 230 | } 231 | 232 | export async function processOpenBookMarket(updatedAccountInfo: KeyedAccountInfo) { 233 | let accountData: MarketStateV3 | undefined; 234 | try { 235 | accountData = MARKET_STATE_LAYOUT_V3.decode(updatedAccountInfo.accountInfo.data); 236 | 237 | // to be competitive, we collect market data before buying the token... 238 | if (existingTokenAccounts.has(accountData.baseMint.toString())) { 239 | return; 240 | } 241 | 242 | saveTokenAccount(accountData.baseMint, accountData); 243 | } catch (e) { 244 | logger.debug(e); 245 | logger.error({ mint: accountData?.baseMint }, `Failed to process market`); 246 | } 247 | } 248 | 249 | async function buy(accountId: PublicKey, accountData: LiquidityStateV4): Promise { 250 | try { 251 | let tokenAccount = existingTokenAccounts.get(accountData.baseMint.toString()); 252 | 253 | if (!tokenAccount) { 254 | // it's possible that we didn't have time to fetch open book data 255 | const market = await getMinimalMarketV3(solanaConnection, accountData.marketId, COMMITMENT_LEVEL); 256 | tokenAccount = saveTokenAccount(accountData.baseMint, market); 257 | } 258 | 259 | tokenAccount.poolKeys = createPoolKeys(accountId, accountData, tokenAccount.market!); 260 | const { innerTransaction } = Liquidity.makeSwapFixedInInstruction( 261 | { 262 | poolKeys: tokenAccount.poolKeys, 263 | userKeys: { 264 | tokenAccountIn: quoteTokenAssociatedAddress, 265 | tokenAccountOut: tokenAccount.address, 266 | owner: wallet.publicKey, 267 | }, 268 | amountIn: quoteAmount.raw, 269 | minAmountOut: 0, 270 | }, 271 | tokenAccount.poolKeys.version, 272 | ); 273 | 274 | const latestBlockhash = await solanaConnection.getLatestBlockhash({ 275 | commitment: COMMITMENT_LEVEL, 276 | }); 277 | const messageV0 = new TransactionMessage({ 278 | payerKey: wallet.publicKey, 279 | recentBlockhash: latestBlockhash.blockhash, 280 | instructions: [ 281 | ComputeBudgetProgram.setComputeUnitPrice({ microLamports: 421197 }), 282 | ComputeBudgetProgram.setComputeUnitLimit({ units: 101337 }), 283 | createAssociatedTokenAccountIdempotentInstruction( 284 | wallet.publicKey, 285 | tokenAccount.address, 286 | wallet.publicKey, 287 | accountData.baseMint, 288 | ), 289 | ...innerTransaction.instructions, 290 | ], 291 | }).compileToV0Message(); 292 | const transaction = new VersionedTransaction(messageV0); 293 | transaction.sign([wallet, ...innerTransaction.signers]); 294 | const signature = await solanaConnection.sendRawTransaction(transaction.serialize(), { 295 | preflightCommitment: COMMITMENT_LEVEL, 296 | }); 297 | logger.info({ mint: accountData.baseMint, signature }, `Sent buy tx`); 298 | processingToken = true; 299 | 300 | const confirmation = await solanaConnection.confirmTransaction( 301 | { 302 | signature, 303 | lastValidBlockHeight: latestBlockhash.lastValidBlockHeight, 304 | blockhash: latestBlockhash.blockhash, 305 | }, 306 | COMMITMENT_LEVEL, 307 | ); 308 | if (!confirmation.value.err) { 309 | logger.info(`-------------------🟢------------------- `); 310 | logger.info( 311 | { 312 | mint: accountData.baseMint, 313 | signature, 314 | url: `https://solscan.io/tx/${signature}?cluster=${NETWORK}`, 315 | }, 316 | `Confirmed buy tx`, 317 | ); 318 | } else { 319 | logger.debug(confirmation.value.err); 320 | logger.info({ mint: accountData.baseMint, signature }, `Error confirming buy tx`); 321 | } 322 | } catch (e) { 323 | logger.debug(e); 324 | processingToken = false; 325 | logger.error({ mint: accountData.baseMint }, `Failed to buy token`); 326 | } 327 | } 328 | 329 | async function sell(accountId: PublicKey, mint: PublicKey, amount: BigNumberish): Promise { 330 | let sold = false; 331 | let retries = 0; 332 | 333 | if (AUTO_SELL_DELAY > 0) { 334 | await new Promise((resolve) => setTimeout(resolve, AUTO_SELL_DELAY)); 335 | } 336 | 337 | do { 338 | try { 339 | const tokenAccount = existingTokenAccounts.get(mint.toString()); 340 | 341 | if (!tokenAccount) { 342 | return; 343 | } 344 | 345 | if (!tokenAccount.poolKeys) { 346 | logger.warn({ mint }, 'No pool keys found'); 347 | return; 348 | } 349 | 350 | if (amount === 0) { 351 | logger.info( 352 | { 353 | mint: tokenAccount.mint, 354 | }, 355 | `Empty balance, can't sell`, 356 | ); 357 | return; 358 | } 359 | 360 | const { innerTransaction } = Liquidity.makeSwapFixedInInstruction( 361 | { 362 | poolKeys: tokenAccount.poolKeys!, 363 | userKeys: { 364 | tokenAccountOut: quoteTokenAssociatedAddress, 365 | tokenAccountIn: tokenAccount.address, 366 | owner: wallet.publicKey, 367 | }, 368 | amountIn: amount, 369 | minAmountOut: 0, 370 | }, 371 | tokenAccount.poolKeys!.version, 372 | ); 373 | 374 | const latestBlockhash = await solanaConnection.getLatestBlockhash({ 375 | commitment: COMMITMENT_LEVEL, 376 | }); 377 | const messageV0 = new TransactionMessage({ 378 | payerKey: wallet.publicKey, 379 | recentBlockhash: latestBlockhash.blockhash, 380 | instructions: [ 381 | ComputeBudgetProgram.setComputeUnitPrice({ microLamports: 421197 }), 382 | ComputeBudgetProgram.setComputeUnitLimit({ units: 101337 }), 383 | ...innerTransaction.instructions, 384 | createCloseAccountInstruction(tokenAccount.address, wallet.publicKey, wallet.publicKey), 385 | ], 386 | }).compileToV0Message(); 387 | const transaction = new VersionedTransaction(messageV0); 388 | transaction.sign([wallet, ...innerTransaction.signers]); 389 | const signature = await solanaConnection.sendRawTransaction(transaction.serialize(), { 390 | preflightCommitment: COMMITMENT_LEVEL, 391 | }); 392 | logger.info({ mint, signature }, `Sent sell tx`); 393 | const confirmation = await solanaConnection.confirmTransaction( 394 | { 395 | signature, 396 | lastValidBlockHeight: latestBlockhash.lastValidBlockHeight, 397 | blockhash: latestBlockhash.blockhash, 398 | }, 399 | COMMITMENT_LEVEL, 400 | ); 401 | if (confirmation.value.err) { 402 | logger.debug(confirmation.value.err); 403 | logger.info({ mint, signature }, `Error confirming sell tx`); 404 | continue; 405 | } 406 | logger.info(`-------------------🔴------------------- `); 407 | logger.info( 408 | { 409 | dex: `https://dexscreener.com/solana/${mint}?maker=${wallet.publicKey}`, 410 | mint, 411 | signature, 412 | url: `https://solscan.io/tx/${signature}?cluster=${NETWORK}`, 413 | }, 414 | `Confirmed sell tx`, 415 | ); 416 | sold = true; 417 | processingToken = false; 418 | } catch (e: any) { 419 | // wait for a bit before retrying 420 | await new Promise((resolve) => setTimeout(resolve, 100)); 421 | retries++; 422 | logger.debug(e); 423 | logger.error({ mint }, `Failed to sell token, retry: ${retries}/${MAX_SELL_RETRIES}`); 424 | } 425 | } while (!sold && retries < MAX_SELL_RETRIES); 426 | processingToken = false; 427 | } 428 | 429 | function loadSnipeList() { 430 | if (!USE_SNIPE_LIST) { 431 | return; 432 | } 433 | 434 | const count = snipeList.length; 435 | const data = fs.readFileSync(path.join(__dirname, 'snipe-list.txt'), 'utf-8'); 436 | snipeList = data 437 | .split('\n') 438 | .map((a) => a.trim()) 439 | .filter((a) => a); 440 | 441 | if (snipeList.length != count) { 442 | logger.info(`Loaded snipe list: ${snipeList.length}`); 443 | } 444 | } 445 | 446 | function shouldBuy(key: string): boolean { 447 | logger.info(`-------------------🤖🔧------------------- `); 448 | logger.info(`Processing token: ${processingToken}`) 449 | return USE_SNIPE_LIST ? snipeList.includes(key) : ONE_TOKEN_AT_A_TIME ? !processingToken : true 450 | } 451 | 452 | const runListener = async () => { 453 | await init(); 454 | const runTimestamp = Math.floor(new Date().getTime() / 1000); 455 | const raydiumSubscriptionId = solanaConnection.onProgramAccountChange( 456 | RAYDIUM_LIQUIDITY_PROGRAM_ID_V4, 457 | async (updatedAccountInfo) => { 458 | const key = updatedAccountInfo.accountId.toString(); 459 | const poolState = LIQUIDITY_STATE_LAYOUT_V4.decode(updatedAccountInfo.accountInfo.data); 460 | const poolOpenTime = parseInt(poolState.poolOpenTime.toString()); 461 | const existing = existingLiquidityPools.has(key); 462 | 463 | if (poolOpenTime > runTimestamp && !existing) { 464 | existingLiquidityPools.add(key); 465 | const _ = processRaydiumPool(updatedAccountInfo.accountId, poolState); 466 | } 467 | }, 468 | COMMITMENT_LEVEL, 469 | [ 470 | { dataSize: LIQUIDITY_STATE_LAYOUT_V4.span }, 471 | { 472 | memcmp: { 473 | offset: LIQUIDITY_STATE_LAYOUT_V4.offsetOf('quoteMint'), 474 | bytes: quoteToken.mint.toBase58(), 475 | }, 476 | }, 477 | { 478 | memcmp: { 479 | offset: LIQUIDITY_STATE_LAYOUT_V4.offsetOf('marketProgramId'), 480 | bytes: OPENBOOK_PROGRAM_ID.toBase58(), 481 | }, 482 | }, 483 | { 484 | memcmp: { 485 | offset: LIQUIDITY_STATE_LAYOUT_V4.offsetOf('status'), 486 | bytes: bs58.encode([6, 0, 0, 0, 0, 0, 0, 0]), 487 | }, 488 | }, 489 | ], 490 | ); 491 | 492 | const openBookSubscriptionId = solanaConnection.onProgramAccountChange( 493 | OPENBOOK_PROGRAM_ID, 494 | async (updatedAccountInfo) => { 495 | const key = updatedAccountInfo.accountId.toString(); 496 | const existing = existingOpenBookMarkets.has(key); 497 | if (!existing) { 498 | existingOpenBookMarkets.add(key); 499 | const _ = processOpenBookMarket(updatedAccountInfo); 500 | } 501 | }, 502 | COMMITMENT_LEVEL, 503 | [ 504 | { dataSize: MARKET_STATE_LAYOUT_V3.span }, 505 | { 506 | memcmp: { 507 | offset: MARKET_STATE_LAYOUT_V3.offsetOf('quoteMint'), 508 | bytes: quoteToken.mint.toBase58(), 509 | }, 510 | }, 511 | ], 512 | ); 513 | 514 | if (AUTO_SELL) { 515 | const walletSubscriptionId = solanaConnection.onProgramAccountChange( 516 | TOKEN_PROGRAM_ID, 517 | async (updatedAccountInfo) => { 518 | const accountData = AccountLayout.decode(updatedAccountInfo.accountInfo!.data); 519 | 520 | if (updatedAccountInfo.accountId.equals(quoteTokenAssociatedAddress)) { 521 | return; 522 | } 523 | 524 | const _ = sell(updatedAccountInfo.accountId, accountData.mint, accountData.amount); 525 | }, 526 | COMMITMENT_LEVEL, 527 | [ 528 | { 529 | dataSize: 165, 530 | }, 531 | { 532 | memcmp: { 533 | offset: 32, 534 | bytes: wallet.publicKey.toBase58(), 535 | }, 536 | }, 537 | ], 538 | ); 539 | 540 | logger.info(`Listening for wallet changes: ${walletSubscriptionId}`); 541 | } 542 | 543 | logger.info(`Listening for raydium changes: ${raydiumSubscriptionId}`); 544 | logger.info(`Listening for open book changes: ${openBookSubscriptionId}`); 545 | 546 | logger.info('------------------- 🚀 ---------------------'); 547 | logger.info('Bot is running! Press CTRL + C to stop it.'); 548 | logger.info('------------------- 🚀 ---------------------'); 549 | 550 | if (USE_SNIPE_LIST) { 551 | setInterval(loadSnipeList, SNIPE_LIST_REFRESH_INTERVAL); 552 | } 553 | }; 554 | 555 | runListener(); 556 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "solana-sniper-bot", 3 | "lockfileVersion": 3, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "name": "solana-sniper-bot", 8 | "dependencies": { 9 | "@raydium-io/raydium-sdk": "^1.3.1-beta.47", 10 | "@solana/spl-token": "^0.4.0", 11 | "@solana/web3.js": "^1.89.1", 12 | "bigint-buffer": "^1.1.5", 13 | "bn.js": "^5.2.1", 14 | "bs58": "^5.0.0", 15 | "dotenv": "^16.4.1", 16 | "pino": "^8.18.0", 17 | "pino-pretty": "^10.3.1", 18 | "pino-std-serializers": "^6.2.2" 19 | }, 20 | "devDependencies": { 21 | "@types/bn.js": "^5.1.5", 22 | "prettier": "^3.2.4", 23 | "ts-node": "^10.9.2", 24 | "typescript": "^5.3.3" 25 | } 26 | }, 27 | "node_modules/@babel/runtime": { 28 | "version": "7.23.8", 29 | "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.8.tgz", 30 | "integrity": "sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==", 31 | "dependencies": { 32 | "regenerator-runtime": "^0.14.0" 33 | }, 34 | "engines": { 35 | "node": ">=6.9.0" 36 | } 37 | }, 38 | "node_modules/@cspotcode/source-map-support": { 39 | "version": "0.8.1", 40 | "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", 41 | "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", 42 | "dev": true, 43 | "dependencies": { 44 | "@jridgewell/trace-mapping": "0.3.9" 45 | }, 46 | "engines": { 47 | "node": ">=12" 48 | } 49 | }, 50 | "node_modules/@jridgewell/resolve-uri": { 51 | "version": "3.1.1", 52 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", 53 | "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", 54 | "dev": true, 55 | "engines": { 56 | "node": ">=6.0.0" 57 | } 58 | }, 59 | "node_modules/@jridgewell/sourcemap-codec": { 60 | "version": "1.4.15", 61 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", 62 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", 63 | "dev": true 64 | }, 65 | "node_modules/@jridgewell/trace-mapping": { 66 | "version": "0.3.9", 67 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", 68 | "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", 69 | "dev": true, 70 | "dependencies": { 71 | "@jridgewell/resolve-uri": "^3.0.3", 72 | "@jridgewell/sourcemap-codec": "^1.4.10" 73 | } 74 | }, 75 | "node_modules/@noble/curves": { 76 | "version": "1.3.0", 77 | "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz", 78 | "integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==", 79 | "dependencies": { 80 | "@noble/hashes": "1.3.3" 81 | }, 82 | "funding": { 83 | "url": "https://paulmillr.com/funding/" 84 | } 85 | }, 86 | "node_modules/@noble/hashes": { 87 | "version": "1.3.3", 88 | "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", 89 | "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", 90 | "engines": { 91 | "node": ">= 16" 92 | }, 93 | "funding": { 94 | "url": "https://paulmillr.com/funding/" 95 | } 96 | }, 97 | "node_modules/@raydium-io/raydium-sdk": { 98 | "version": "1.3.1-beta.47", 99 | "resolved": "https://registry.npmjs.org/@raydium-io/raydium-sdk/-/raydium-sdk-1.3.1-beta.47.tgz", 100 | "integrity": "sha512-vrUcFNq4lgkDHririlv83a2Sq/s438OZOYAsT56MWiVqoQLfC2u2muXMJhgp01M1OhXIqfsM5YSN/9/CrNnTvw==", 101 | "dependencies": { 102 | "@solana/buffer-layout": "^4.0.1", 103 | "@solana/spl-token": "^0.3.9", 104 | "axios": "^1.6.2", 105 | "big.js": "^6.2.1", 106 | "bn.js": "^5.2.1", 107 | "decimal.js": "^10.4.3", 108 | "decimal.js-light": "^2.5.1", 109 | "fecha": "^4.2.3", 110 | "lodash": "^4.17.21", 111 | "toformat": "^2.0.0" 112 | }, 113 | "peerDependencies": { 114 | "@solana/web3.js": "^1.73.0" 115 | } 116 | }, 117 | "node_modules/@raydium-io/raydium-sdk/node_modules/@solana/spl-token": { 118 | "version": "0.3.11", 119 | "resolved": "https://registry.npmjs.org/@solana/spl-token/-/spl-token-0.3.11.tgz", 120 | "integrity": "sha512-bvohO3rIMSVL24Pb+I4EYTJ6cL82eFpInEXD/I8K8upOGjpqHsKUoAempR/RnUlI1qSFNyFlWJfu6MNUgfbCQQ==", 121 | "dependencies": { 122 | "@solana/buffer-layout": "^4.0.0", 123 | "@solana/buffer-layout-utils": "^0.2.0", 124 | "@solana/spl-token-metadata": "^0.1.2", 125 | "buffer": "^6.0.3" 126 | }, 127 | "engines": { 128 | "node": ">=16" 129 | }, 130 | "peerDependencies": { 131 | "@solana/web3.js": "^1.88.0" 132 | } 133 | }, 134 | "node_modules/@solana/buffer-layout": { 135 | "version": "4.0.1", 136 | "resolved": "https://registry.npmjs.org/@solana/buffer-layout/-/buffer-layout-4.0.1.tgz", 137 | "integrity": "sha512-E1ImOIAD1tBZFRdjeM4/pzTiTApC0AOBGwyAMS4fwIodCWArzJ3DWdoh8cKxeFM2fElkxBh2Aqts1BPC373rHA==", 138 | "dependencies": { 139 | "buffer": "~6.0.3" 140 | }, 141 | "engines": { 142 | "node": ">=5.10" 143 | } 144 | }, 145 | "node_modules/@solana/buffer-layout-utils": { 146 | "version": "0.2.0", 147 | "resolved": "https://registry.npmjs.org/@solana/buffer-layout-utils/-/buffer-layout-utils-0.2.0.tgz", 148 | "integrity": "sha512-szG4sxgJGktbuZYDg2FfNmkMi0DYQoVjN2h7ta1W1hPrwzarcFLBq9UpX1UjNXsNpT9dn+chgprtWGioUAr4/g==", 149 | "dependencies": { 150 | "@solana/buffer-layout": "^4.0.0", 151 | "@solana/web3.js": "^1.32.0", 152 | "bigint-buffer": "^1.1.5", 153 | "bignumber.js": "^9.0.1" 154 | }, 155 | "engines": { 156 | "node": ">= 10" 157 | } 158 | }, 159 | "node_modules/@solana/codecs-core": { 160 | "version": "2.0.0-experimental.8618508", 161 | "resolved": "https://registry.npmjs.org/@solana/codecs-core/-/codecs-core-2.0.0-experimental.8618508.tgz", 162 | "integrity": "sha512-JCz7mKjVKtfZxkuDtwMAUgA7YvJcA2BwpZaA1NOLcted4OMC4Prwa3DUe3f3181ixPYaRyptbF0Ikq2MbDkYEA==" 163 | }, 164 | "node_modules/@solana/codecs-data-structures": { 165 | "version": "2.0.0-experimental.8618508", 166 | "resolved": "https://registry.npmjs.org/@solana/codecs-data-structures/-/codecs-data-structures-2.0.0-experimental.8618508.tgz", 167 | "integrity": "sha512-sLpjL9sqzaDdkloBPV61Rht1tgaKq98BCtIKRuyscIrmVPu3wu0Bavk2n/QekmUzaTsj7K1pVSniM0YqCdnEBw==", 168 | "dependencies": { 169 | "@solana/codecs-core": "2.0.0-experimental.8618508", 170 | "@solana/codecs-numbers": "2.0.0-experimental.8618508" 171 | } 172 | }, 173 | "node_modules/@solana/codecs-numbers": { 174 | "version": "2.0.0-experimental.8618508", 175 | "resolved": "https://registry.npmjs.org/@solana/codecs-numbers/-/codecs-numbers-2.0.0-experimental.8618508.tgz", 176 | "integrity": "sha512-EXQKfzFr3CkKKNzKSZPOOOzchXsFe90TVONWsSnVkonO9z+nGKALE0/L9uBmIFGgdzhhU9QQVFvxBMclIDJo2Q==", 177 | "dependencies": { 178 | "@solana/codecs-core": "2.0.0-experimental.8618508" 179 | } 180 | }, 181 | "node_modules/@solana/codecs-strings": { 182 | "version": "2.0.0-experimental.8618508", 183 | "resolved": "https://registry.npmjs.org/@solana/codecs-strings/-/codecs-strings-2.0.0-experimental.8618508.tgz", 184 | "integrity": "sha512-b2yhinr1+oe+JDmnnsV0641KQqqDG8AQ16Z/x7GVWO+AWHMpRlHWVXOq8U1yhPMA4VXxl7i+D+C6ql0VGFp0GA==", 185 | "dependencies": { 186 | "@solana/codecs-core": "2.0.0-experimental.8618508", 187 | "@solana/codecs-numbers": "2.0.0-experimental.8618508" 188 | }, 189 | "peerDependencies": { 190 | "fastestsmallesttextencoderdecoder": "^1.0.22" 191 | } 192 | }, 193 | "node_modules/@solana/options": { 194 | "version": "2.0.0-experimental.8618508", 195 | "resolved": "https://registry.npmjs.org/@solana/options/-/options-2.0.0-experimental.8618508.tgz", 196 | "integrity": "sha512-fy/nIRAMC3QHvnKi63KEd86Xr/zFBVxNW4nEpVEU2OT0gCEKwHY4Z55YHf7XujhyuM3PNpiBKg/YYw5QlRU4vg==", 197 | "dependencies": { 198 | "@solana/codecs-core": "2.0.0-experimental.8618508", 199 | "@solana/codecs-numbers": "2.0.0-experimental.8618508" 200 | } 201 | }, 202 | "node_modules/@solana/spl-token": { 203 | "version": "0.4.0", 204 | "resolved": "https://registry.npmjs.org/@solana/spl-token/-/spl-token-0.4.0.tgz", 205 | "integrity": "sha512-jjBIBG9IsclqQVl5Y82npGE6utdCh7Z9VFcF5qgJa5EUq2XgspW3Dt1wujWjH/vQDRnkp9zGO+BqQU/HhX/3wg==", 206 | "dependencies": { 207 | "@solana/buffer-layout": "^4.0.0", 208 | "@solana/buffer-layout-utils": "^0.2.0", 209 | "@solana/spl-token-metadata": "^0.1.2", 210 | "buffer": "^6.0.3" 211 | }, 212 | "engines": { 213 | "node": ">=16" 214 | }, 215 | "peerDependencies": { 216 | "@solana/web3.js": "^1.89.1" 217 | } 218 | }, 219 | "node_modules/@solana/spl-token-metadata": { 220 | "version": "0.1.2", 221 | "resolved": "https://registry.npmjs.org/@solana/spl-token-metadata/-/spl-token-metadata-0.1.2.tgz", 222 | "integrity": "sha512-hJYnAJNkDrtkE2Q41YZhCpeOGU/0JgRFXbtrtOuGGeKc3pkEUHB9DDoxZAxx+XRno13GozUleyBi0qypz4c3bw==", 223 | "dependencies": { 224 | "@solana/codecs-core": "2.0.0-experimental.8618508", 225 | "@solana/codecs-data-structures": "2.0.0-experimental.8618508", 226 | "@solana/codecs-numbers": "2.0.0-experimental.8618508", 227 | "@solana/codecs-strings": "2.0.0-experimental.8618508", 228 | "@solana/options": "2.0.0-experimental.8618508", 229 | "@solana/spl-type-length-value": "0.1.0" 230 | }, 231 | "engines": { 232 | "node": ">=16" 233 | }, 234 | "peerDependencies": { 235 | "@solana/web3.js": "^1.87.6" 236 | } 237 | }, 238 | "node_modules/@solana/spl-type-length-value": { 239 | "version": "0.1.0", 240 | "resolved": "https://registry.npmjs.org/@solana/spl-type-length-value/-/spl-type-length-value-0.1.0.tgz", 241 | "integrity": "sha512-JBMGB0oR4lPttOZ5XiUGyvylwLQjt1CPJa6qQ5oM+MBCndfjz2TKKkw0eATlLLcYmq1jBVsNlJ2cD6ns2GR7lA==", 242 | "dependencies": { 243 | "buffer": "^6.0.3" 244 | }, 245 | "engines": { 246 | "node": ">=16" 247 | } 248 | }, 249 | "node_modules/@solana/web3.js": { 250 | "version": "1.89.1", 251 | "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.89.1.tgz", 252 | "integrity": "sha512-t9TTLtPQxtQB3SAf/5E8xPXfVDsC6WGOsgKY02l2cbe0HLymT7ynE8Hu48Lk5qynHCquj6nhISfEHcjMkYpu/A==", 253 | "dependencies": { 254 | "@babel/runtime": "^7.23.4", 255 | "@noble/curves": "^1.2.0", 256 | "@noble/hashes": "^1.3.2", 257 | "@solana/buffer-layout": "^4.0.1", 258 | "agentkeepalive": "^4.5.0", 259 | "bigint-buffer": "^1.1.5", 260 | "bn.js": "^5.2.1", 261 | "borsh": "^0.7.0", 262 | "bs58": "^4.0.1", 263 | "buffer": "6.0.3", 264 | "fast-stable-stringify": "^1.0.0", 265 | "jayson": "^4.1.0", 266 | "node-fetch": "^2.7.0", 267 | "rpc-websockets": "^7.5.1", 268 | "superstruct": "^0.14.2" 269 | } 270 | }, 271 | "node_modules/@solana/web3.js/node_modules/base-x": { 272 | "version": "3.0.9", 273 | "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", 274 | "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", 275 | "dependencies": { 276 | "safe-buffer": "^5.0.1" 277 | } 278 | }, 279 | "node_modules/@solana/web3.js/node_modules/bs58": { 280 | "version": "4.0.1", 281 | "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", 282 | "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", 283 | "dependencies": { 284 | "base-x": "^3.0.2" 285 | } 286 | }, 287 | "node_modules/@solana/web3.js/node_modules/node-fetch": { 288 | "version": "2.7.0", 289 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", 290 | "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", 291 | "dependencies": { 292 | "whatwg-url": "^5.0.0" 293 | }, 294 | "engines": { 295 | "node": "4.x || >=6.0.0" 296 | }, 297 | "peerDependencies": { 298 | "encoding": "^0.1.0" 299 | }, 300 | "peerDependenciesMeta": { 301 | "encoding": { 302 | "optional": true 303 | } 304 | } 305 | }, 306 | "node_modules/@tsconfig/node10": { 307 | "version": "1.0.9", 308 | "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", 309 | "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", 310 | "dev": true 311 | }, 312 | "node_modules/@tsconfig/node12": { 313 | "version": "1.0.11", 314 | "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", 315 | "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", 316 | "dev": true 317 | }, 318 | "node_modules/@tsconfig/node14": { 319 | "version": "1.0.3", 320 | "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", 321 | "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", 322 | "dev": true 323 | }, 324 | "node_modules/@tsconfig/node16": { 325 | "version": "1.0.3", 326 | "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", 327 | "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", 328 | "dev": true 329 | }, 330 | "node_modules/@types/bn.js": { 331 | "version": "5.1.5", 332 | "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.5.tgz", 333 | "integrity": "sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A==", 334 | "dev": true, 335 | "dependencies": { 336 | "@types/node": "*" 337 | } 338 | }, 339 | "node_modules/@types/connect": { 340 | "version": "3.4.38", 341 | "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", 342 | "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", 343 | "dependencies": { 344 | "@types/node": "*" 345 | } 346 | }, 347 | "node_modules/@types/node": { 348 | "version": "12.20.55", 349 | "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", 350 | "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" 351 | }, 352 | "node_modules/@types/ws": { 353 | "version": "7.4.7", 354 | "resolved": "https://registry.npmjs.org/@types/ws/-/ws-7.4.7.tgz", 355 | "integrity": "sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==", 356 | "dependencies": { 357 | "@types/node": "*" 358 | } 359 | }, 360 | "node_modules/abort-controller": { 361 | "version": "3.0.0", 362 | "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", 363 | "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", 364 | "dependencies": { 365 | "event-target-shim": "^5.0.0" 366 | }, 367 | "engines": { 368 | "node": ">=6.5" 369 | } 370 | }, 371 | "node_modules/acorn": { 372 | "version": "8.8.2", 373 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", 374 | "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", 375 | "dev": true, 376 | "bin": { 377 | "acorn": "bin/acorn" 378 | }, 379 | "engines": { 380 | "node": ">=0.4.0" 381 | } 382 | }, 383 | "node_modules/acorn-walk": { 384 | "version": "8.2.0", 385 | "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", 386 | "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", 387 | "dev": true, 388 | "engines": { 389 | "node": ">=0.4.0" 390 | } 391 | }, 392 | "node_modules/agentkeepalive": { 393 | "version": "4.5.0", 394 | "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz", 395 | "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==", 396 | "dependencies": { 397 | "humanize-ms": "^1.2.1" 398 | }, 399 | "engines": { 400 | "node": ">= 8.0.0" 401 | } 402 | }, 403 | "node_modules/arg": { 404 | "version": "4.1.3", 405 | "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", 406 | "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", 407 | "dev": true 408 | }, 409 | "node_modules/asynckit": { 410 | "version": "0.4.0", 411 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 412 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" 413 | }, 414 | "node_modules/atomic-sleep": { 415 | "version": "1.0.0", 416 | "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", 417 | "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", 418 | "engines": { 419 | "node": ">=8.0.0" 420 | } 421 | }, 422 | "node_modules/axios": { 423 | "version": "1.6.7", 424 | "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", 425 | "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", 426 | "dependencies": { 427 | "follow-redirects": "^1.15.4", 428 | "form-data": "^4.0.0", 429 | "proxy-from-env": "^1.1.0" 430 | } 431 | }, 432 | "node_modules/base-x": { 433 | "version": "4.0.0", 434 | "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", 435 | "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==" 436 | }, 437 | "node_modules/base64-js": { 438 | "version": "1.5.1", 439 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", 440 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", 441 | "funding": [ 442 | { 443 | "type": "github", 444 | "url": "https://github.com/sponsors/feross" 445 | }, 446 | { 447 | "type": "patreon", 448 | "url": "https://www.patreon.com/feross" 449 | }, 450 | { 451 | "type": "consulting", 452 | "url": "https://feross.org/support" 453 | } 454 | ] 455 | }, 456 | "node_modules/big.js": { 457 | "version": "6.2.1", 458 | "resolved": "https://registry.npmjs.org/big.js/-/big.js-6.2.1.tgz", 459 | "integrity": "sha512-bCtHMwL9LeDIozFn+oNhhFoq+yQ3BNdnsLSASUxLciOb1vgvpHsIO1dsENiGMgbb4SkP5TrzWzRiLddn8ahVOQ==", 460 | "engines": { 461 | "node": "*" 462 | }, 463 | "funding": { 464 | "type": "opencollective", 465 | "url": "https://opencollective.com/bigjs" 466 | } 467 | }, 468 | "node_modules/bigint-buffer": { 469 | "version": "1.1.5", 470 | "resolved": "https://registry.npmjs.org/bigint-buffer/-/bigint-buffer-1.1.5.tgz", 471 | "integrity": "sha512-trfYco6AoZ+rKhKnxA0hgX0HAbVP/s808/EuDSe2JDzUnCp/xAsli35Orvk67UrTEcwuxZqYZDmfA2RXJgxVvA==", 472 | "hasInstallScript": true, 473 | "dependencies": { 474 | "bindings": "^1.3.0" 475 | }, 476 | "engines": { 477 | "node": ">= 10.0.0" 478 | } 479 | }, 480 | "node_modules/bignumber.js": { 481 | "version": "9.1.2", 482 | "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", 483 | "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", 484 | "engines": { 485 | "node": "*" 486 | } 487 | }, 488 | "node_modules/bindings": { 489 | "version": "1.5.0", 490 | "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", 491 | "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", 492 | "dependencies": { 493 | "file-uri-to-path": "1.0.0" 494 | } 495 | }, 496 | "node_modules/bn.js": { 497 | "version": "5.2.1", 498 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", 499 | "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" 500 | }, 501 | "node_modules/borsh": { 502 | "version": "0.7.0", 503 | "resolved": "https://registry.npmjs.org/borsh/-/borsh-0.7.0.tgz", 504 | "integrity": "sha512-CLCsZGIBCFnPtkNnieW/a8wmreDmfUtjU2m9yHrzPXIlNbqVs0AQrSatSG6vdNYUqdc83tkQi2eHfF98ubzQLA==", 505 | "dependencies": { 506 | "bn.js": "^5.2.0", 507 | "bs58": "^4.0.0", 508 | "text-encoding-utf-8": "^1.0.2" 509 | } 510 | }, 511 | "node_modules/borsh/node_modules/base-x": { 512 | "version": "3.0.9", 513 | "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", 514 | "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", 515 | "dependencies": { 516 | "safe-buffer": "^5.0.1" 517 | } 518 | }, 519 | "node_modules/borsh/node_modules/bs58": { 520 | "version": "4.0.1", 521 | "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", 522 | "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", 523 | "dependencies": { 524 | "base-x": "^3.0.2" 525 | } 526 | }, 527 | "node_modules/bs58": { 528 | "version": "5.0.0", 529 | "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", 530 | "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", 531 | "dependencies": { 532 | "base-x": "^4.0.0" 533 | } 534 | }, 535 | "node_modules/buffer": { 536 | "version": "6.0.3", 537 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", 538 | "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", 539 | "funding": [ 540 | { 541 | "type": "github", 542 | "url": "https://github.com/sponsors/feross" 543 | }, 544 | { 545 | "type": "patreon", 546 | "url": "https://www.patreon.com/feross" 547 | }, 548 | { 549 | "type": "consulting", 550 | "url": "https://feross.org/support" 551 | } 552 | ], 553 | "dependencies": { 554 | "base64-js": "^1.3.1", 555 | "ieee754": "^1.2.1" 556 | } 557 | }, 558 | "node_modules/bufferutil": { 559 | "version": "4.0.8", 560 | "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.8.tgz", 561 | "integrity": "sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==", 562 | "hasInstallScript": true, 563 | "optional": true, 564 | "dependencies": { 565 | "node-gyp-build": "^4.3.0" 566 | }, 567 | "engines": { 568 | "node": ">=6.14.2" 569 | } 570 | }, 571 | "node_modules/colorette": { 572 | "version": "2.0.20", 573 | "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", 574 | "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" 575 | }, 576 | "node_modules/combined-stream": { 577 | "version": "1.0.8", 578 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 579 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 580 | "dependencies": { 581 | "delayed-stream": "~1.0.0" 582 | }, 583 | "engines": { 584 | "node": ">= 0.8" 585 | } 586 | }, 587 | "node_modules/commander": { 588 | "version": "2.20.3", 589 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 590 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" 591 | }, 592 | "node_modules/create-require": { 593 | "version": "1.1.1", 594 | "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", 595 | "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", 596 | "dev": true 597 | }, 598 | "node_modules/dateformat": { 599 | "version": "4.6.3", 600 | "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", 601 | "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", 602 | "engines": { 603 | "node": "*" 604 | } 605 | }, 606 | "node_modules/decimal.js": { 607 | "version": "10.4.3", 608 | "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", 609 | "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" 610 | }, 611 | "node_modules/decimal.js-light": { 612 | "version": "2.5.1", 613 | "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz", 614 | "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==" 615 | }, 616 | "node_modules/delay": { 617 | "version": "5.0.0", 618 | "resolved": "https://registry.npmjs.org/delay/-/delay-5.0.0.tgz", 619 | "integrity": "sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw==", 620 | "engines": { 621 | "node": ">=10" 622 | }, 623 | "funding": { 624 | "url": "https://github.com/sponsors/sindresorhus" 625 | } 626 | }, 627 | "node_modules/delayed-stream": { 628 | "version": "1.0.0", 629 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 630 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", 631 | "engines": { 632 | "node": ">=0.4.0" 633 | } 634 | }, 635 | "node_modules/diff": { 636 | "version": "4.0.2", 637 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", 638 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", 639 | "dev": true, 640 | "engines": { 641 | "node": ">=0.3.1" 642 | } 643 | }, 644 | "node_modules/dotenv": { 645 | "version": "16.4.1", 646 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz", 647 | "integrity": "sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ==", 648 | "engines": { 649 | "node": ">=12" 650 | }, 651 | "funding": { 652 | "url": "https://github.com/motdotla/dotenv?sponsor=1" 653 | } 654 | }, 655 | "node_modules/end-of-stream": { 656 | "version": "1.4.4", 657 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 658 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 659 | "dependencies": { 660 | "once": "^1.4.0" 661 | } 662 | }, 663 | "node_modules/es6-promise": { 664 | "version": "4.2.8", 665 | "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", 666 | "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" 667 | }, 668 | "node_modules/es6-promisify": { 669 | "version": "5.0.0", 670 | "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", 671 | "integrity": "sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==", 672 | "dependencies": { 673 | "es6-promise": "^4.0.3" 674 | } 675 | }, 676 | "node_modules/event-target-shim": { 677 | "version": "5.0.1", 678 | "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", 679 | "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", 680 | "engines": { 681 | "node": ">=6" 682 | } 683 | }, 684 | "node_modules/eventemitter3": { 685 | "version": "4.0.7", 686 | "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", 687 | "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" 688 | }, 689 | "node_modules/events": { 690 | "version": "3.3.0", 691 | "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", 692 | "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", 693 | "engines": { 694 | "node": ">=0.8.x" 695 | } 696 | }, 697 | "node_modules/eyes": { 698 | "version": "0.1.8", 699 | "resolved": "https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", 700 | "integrity": "sha512-GipyPsXO1anza0AOZdy69Im7hGFCNB7Y/NGjDlZGJ3GJJLtwNSb2vrzYrTYJRrRloVx7pl+bhUaTB8yiccPvFQ==", 701 | "engines": { 702 | "node": "> 0.1.90" 703 | } 704 | }, 705 | "node_modules/fast-copy": { 706 | "version": "3.0.1", 707 | "resolved": "https://registry.npmjs.org/fast-copy/-/fast-copy-3.0.1.tgz", 708 | "integrity": "sha512-Knr7NOtK3HWRYGtHoJrjkaWepqT8thIVGAwt0p0aUs1zqkAzXZV4vo9fFNwyb5fcqK1GKYFYxldQdIDVKhUAfA==" 709 | }, 710 | "node_modules/fast-redact": { 711 | "version": "3.2.0", 712 | "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.2.0.tgz", 713 | "integrity": "sha512-zaTadChr+NekyzallAMXATXLOR8MNx3zqpZ0MUF2aGf4EathnG0f32VLODNlY8IuGY3HoRO2L6/6fSzNsLaHIw==", 714 | "engines": { 715 | "node": ">=6" 716 | } 717 | }, 718 | "node_modules/fast-safe-stringify": { 719 | "version": "2.1.1", 720 | "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", 721 | "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" 722 | }, 723 | "node_modules/fast-stable-stringify": { 724 | "version": "1.0.0", 725 | "resolved": "https://registry.npmjs.org/fast-stable-stringify/-/fast-stable-stringify-1.0.0.tgz", 726 | "integrity": "sha512-wpYMUmFu5f00Sm0cj2pfivpmawLZ0NKdviQ4w9zJeR8JVtOpOxHmLaJuj0vxvGqMJQWyP/COUkF75/57OKyRag==" 727 | }, 728 | "node_modules/fastestsmallesttextencoderdecoder": { 729 | "version": "1.0.22", 730 | "resolved": "https://registry.npmjs.org/fastestsmallesttextencoderdecoder/-/fastestsmallesttextencoderdecoder-1.0.22.tgz", 731 | "integrity": "sha512-Pb8d48e+oIuY4MaM64Cd7OW1gt4nxCHs7/ddPPZ/Ic3sg8yVGM7O9wDvZ7us6ScaUupzM+pfBolwtYhN1IxBIw==", 732 | "peer": true 733 | }, 734 | "node_modules/fecha": { 735 | "version": "4.2.3", 736 | "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz", 737 | "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==" 738 | }, 739 | "node_modules/file-uri-to-path": { 740 | "version": "1.0.0", 741 | "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", 742 | "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" 743 | }, 744 | "node_modules/follow-redirects": { 745 | "version": "1.15.5", 746 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", 747 | "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", 748 | "funding": [ 749 | { 750 | "type": "individual", 751 | "url": "https://github.com/sponsors/RubenVerborgh" 752 | } 753 | ], 754 | "engines": { 755 | "node": ">=4.0" 756 | }, 757 | "peerDependenciesMeta": { 758 | "debug": { 759 | "optional": true 760 | } 761 | } 762 | }, 763 | "node_modules/form-data": { 764 | "version": "4.0.0", 765 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", 766 | "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", 767 | "dependencies": { 768 | "asynckit": "^0.4.0", 769 | "combined-stream": "^1.0.8", 770 | "mime-types": "^2.1.12" 771 | }, 772 | "engines": { 773 | "node": ">= 6" 774 | } 775 | }, 776 | "node_modules/help-me": { 777 | "version": "5.0.0", 778 | "resolved": "https://registry.npmjs.org/help-me/-/help-me-5.0.0.tgz", 779 | "integrity": "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==" 780 | }, 781 | "node_modules/humanize-ms": { 782 | "version": "1.2.1", 783 | "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", 784 | "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", 785 | "dependencies": { 786 | "ms": "^2.0.0" 787 | } 788 | }, 789 | "node_modules/ieee754": { 790 | "version": "1.2.1", 791 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", 792 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", 793 | "funding": [ 794 | { 795 | "type": "github", 796 | "url": "https://github.com/sponsors/feross" 797 | }, 798 | { 799 | "type": "patreon", 800 | "url": "https://www.patreon.com/feross" 801 | }, 802 | { 803 | "type": "consulting", 804 | "url": "https://feross.org/support" 805 | } 806 | ] 807 | }, 808 | "node_modules/isomorphic-ws": { 809 | "version": "4.0.1", 810 | "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", 811 | "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==", 812 | "peerDependencies": { 813 | "ws": "*" 814 | } 815 | }, 816 | "node_modules/jayson": { 817 | "version": "4.1.0", 818 | "resolved": "https://registry.npmjs.org/jayson/-/jayson-4.1.0.tgz", 819 | "integrity": "sha512-R6JlbyLN53Mjku329XoRT2zJAE6ZgOQ8f91ucYdMCD4nkGCF9kZSrcGXpHIU4jeKj58zUZke2p+cdQchU7Ly7A==", 820 | "dependencies": { 821 | "@types/connect": "^3.4.33", 822 | "@types/node": "^12.12.54", 823 | "@types/ws": "^7.4.4", 824 | "commander": "^2.20.3", 825 | "delay": "^5.0.0", 826 | "es6-promisify": "^5.0.0", 827 | "eyes": "^0.1.8", 828 | "isomorphic-ws": "^4.0.1", 829 | "json-stringify-safe": "^5.0.1", 830 | "JSONStream": "^1.3.5", 831 | "uuid": "^8.3.2", 832 | "ws": "^7.4.5" 833 | }, 834 | "bin": { 835 | "jayson": "bin/jayson.js" 836 | }, 837 | "engines": { 838 | "node": ">=8" 839 | } 840 | }, 841 | "node_modules/joycon": { 842 | "version": "3.1.1", 843 | "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz", 844 | "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", 845 | "engines": { 846 | "node": ">=10" 847 | } 848 | }, 849 | "node_modules/json-stringify-safe": { 850 | "version": "5.0.1", 851 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 852 | "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" 853 | }, 854 | "node_modules/jsonparse": { 855 | "version": "1.3.1", 856 | "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", 857 | "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", 858 | "engines": [ 859 | "node >= 0.2.0" 860 | ] 861 | }, 862 | "node_modules/JSONStream": { 863 | "version": "1.3.5", 864 | "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", 865 | "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", 866 | "dependencies": { 867 | "jsonparse": "^1.2.0", 868 | "through": ">=2.2.7 <3" 869 | }, 870 | "bin": { 871 | "JSONStream": "bin.js" 872 | }, 873 | "engines": { 874 | "node": "*" 875 | } 876 | }, 877 | "node_modules/lodash": { 878 | "version": "4.17.21", 879 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 880 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" 881 | }, 882 | "node_modules/make-error": { 883 | "version": "1.3.6", 884 | "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", 885 | "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", 886 | "dev": true 887 | }, 888 | "node_modules/mime-db": { 889 | "version": "1.52.0", 890 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 891 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 892 | "engines": { 893 | "node": ">= 0.6" 894 | } 895 | }, 896 | "node_modules/mime-types": { 897 | "version": "2.1.35", 898 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 899 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 900 | "dependencies": { 901 | "mime-db": "1.52.0" 902 | }, 903 | "engines": { 904 | "node": ">= 0.6" 905 | } 906 | }, 907 | "node_modules/minimist": { 908 | "version": "1.2.8", 909 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", 910 | "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", 911 | "funding": { 912 | "url": "https://github.com/sponsors/ljharb" 913 | } 914 | }, 915 | "node_modules/ms": { 916 | "version": "2.1.3", 917 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 918 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 919 | }, 920 | "node_modules/node-gyp-build": { 921 | "version": "4.8.0", 922 | "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.0.tgz", 923 | "integrity": "sha512-u6fs2AEUljNho3EYTJNBfImO5QTo/J/1Etd+NVdCj7qWKUSN/bSLkZwhDv7I+w/MSC6qJ4cknepkAYykDdK8og==", 924 | "optional": true, 925 | "bin": { 926 | "node-gyp-build": "bin.js", 927 | "node-gyp-build-optional": "optional.js", 928 | "node-gyp-build-test": "build-test.js" 929 | } 930 | }, 931 | "node_modules/on-exit-leak-free": { 932 | "version": "2.1.0", 933 | "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.0.tgz", 934 | "integrity": "sha512-VuCaZZAjReZ3vUwgOB8LxAosIurDiAW0s13rI1YwmaP++jvcxP77AWoQvenZebpCA2m8WC1/EosPYPMjnRAp/w==" 935 | }, 936 | "node_modules/once": { 937 | "version": "1.4.0", 938 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 939 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 940 | "dependencies": { 941 | "wrappy": "1" 942 | } 943 | }, 944 | "node_modules/pino": { 945 | "version": "8.18.0", 946 | "resolved": "https://registry.npmjs.org/pino/-/pino-8.18.0.tgz", 947 | "integrity": "sha512-Mz/gKiRyuXu4HnpHgi1YWdHQCoWMufapzooisvFn78zl4dZciAxS+YeRkUxXl1ee/SzU80YCz1zpECCh4oC6Aw==", 948 | "dependencies": { 949 | "atomic-sleep": "^1.0.0", 950 | "fast-redact": "^3.1.1", 951 | "on-exit-leak-free": "^2.1.0", 952 | "pino-abstract-transport": "v1.1.0", 953 | "pino-std-serializers": "^6.0.0", 954 | "process-warning": "^3.0.0", 955 | "quick-format-unescaped": "^4.0.3", 956 | "real-require": "^0.2.0", 957 | "safe-stable-stringify": "^2.3.1", 958 | "sonic-boom": "^3.7.0", 959 | "thread-stream": "^2.0.0" 960 | }, 961 | "bin": { 962 | "pino": "bin.js" 963 | } 964 | }, 965 | "node_modules/pino-abstract-transport": { 966 | "version": "1.1.0", 967 | "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.1.0.tgz", 968 | "integrity": "sha512-lsleG3/2a/JIWUtf9Q5gUNErBqwIu1tUKTT3dUzaf5DySw9ra1wcqKjJjLX1VTY64Wk1eEOYsVGSaGfCK85ekA==", 969 | "dependencies": { 970 | "readable-stream": "^4.0.0", 971 | "split2": "^4.0.0" 972 | } 973 | }, 974 | "node_modules/pino-pretty": { 975 | "version": "10.3.1", 976 | "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.3.1.tgz", 977 | "integrity": "sha512-az8JbIYeN/1iLj2t0jR9DV48/LQ3RC6hZPpapKPkb84Q+yTidMCpgWxIT3N0flnBDilyBQ1luWNpOeJptjdp/g==", 978 | "dependencies": { 979 | "colorette": "^2.0.7", 980 | "dateformat": "^4.6.3", 981 | "fast-copy": "^3.0.0", 982 | "fast-safe-stringify": "^2.1.1", 983 | "help-me": "^5.0.0", 984 | "joycon": "^3.1.1", 985 | "minimist": "^1.2.6", 986 | "on-exit-leak-free": "^2.1.0", 987 | "pino-abstract-transport": "^1.0.0", 988 | "pump": "^3.0.0", 989 | "readable-stream": "^4.0.0", 990 | "secure-json-parse": "^2.4.0", 991 | "sonic-boom": "^3.0.0", 992 | "strip-json-comments": "^3.1.1" 993 | }, 994 | "bin": { 995 | "pino-pretty": "bin.js" 996 | } 997 | }, 998 | "node_modules/pino-std-serializers": { 999 | "version": "6.2.2", 1000 | "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", 1001 | "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==" 1002 | }, 1003 | "node_modules/prettier": { 1004 | "version": "3.2.4", 1005 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.4.tgz", 1006 | "integrity": "sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==", 1007 | "dev": true, 1008 | "bin": { 1009 | "prettier": "bin/prettier.cjs" 1010 | }, 1011 | "engines": { 1012 | "node": ">=14" 1013 | }, 1014 | "funding": { 1015 | "url": "https://github.com/prettier/prettier?sponsor=1" 1016 | } 1017 | }, 1018 | "node_modules/process": { 1019 | "version": "0.11.10", 1020 | "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", 1021 | "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", 1022 | "engines": { 1023 | "node": ">= 0.6.0" 1024 | } 1025 | }, 1026 | "node_modules/process-warning": { 1027 | "version": "3.0.0", 1028 | "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", 1029 | "integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==" 1030 | }, 1031 | "node_modules/proxy-from-env": { 1032 | "version": "1.1.0", 1033 | "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", 1034 | "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" 1035 | }, 1036 | "node_modules/pump": { 1037 | "version": "3.0.0", 1038 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 1039 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 1040 | "dependencies": { 1041 | "end-of-stream": "^1.1.0", 1042 | "once": "^1.3.1" 1043 | } 1044 | }, 1045 | "node_modules/quick-format-unescaped": { 1046 | "version": "4.0.4", 1047 | "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", 1048 | "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" 1049 | }, 1050 | "node_modules/readable-stream": { 1051 | "version": "4.5.2", 1052 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", 1053 | "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", 1054 | "dependencies": { 1055 | "abort-controller": "^3.0.0", 1056 | "buffer": "^6.0.3", 1057 | "events": "^3.3.0", 1058 | "process": "^0.11.10", 1059 | "string_decoder": "^1.3.0" 1060 | }, 1061 | "engines": { 1062 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1063 | } 1064 | }, 1065 | "node_modules/real-require": { 1066 | "version": "0.2.0", 1067 | "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", 1068 | "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", 1069 | "engines": { 1070 | "node": ">= 12.13.0" 1071 | } 1072 | }, 1073 | "node_modules/regenerator-runtime": { 1074 | "version": "0.14.1", 1075 | "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", 1076 | "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" 1077 | }, 1078 | "node_modules/rpc-websockets": { 1079 | "version": "7.9.0", 1080 | "resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.9.0.tgz", 1081 | "integrity": "sha512-DwKewQz1IUA5wfLvgM8wDpPRcr+nWSxuFxx5CbrI2z/MyyZ4nXLM86TvIA+cI1ZAdqC8JIBR1mZR55dzaLU+Hw==", 1082 | "dependencies": { 1083 | "@babel/runtime": "^7.17.2", 1084 | "eventemitter3": "^4.0.7", 1085 | "uuid": "^8.3.2", 1086 | "ws": "^8.5.0" 1087 | }, 1088 | "funding": { 1089 | "type": "paypal", 1090 | "url": "https://paypal.me/kozjak" 1091 | }, 1092 | "optionalDependencies": { 1093 | "bufferutil": "^4.0.1", 1094 | "utf-8-validate": "^5.0.2" 1095 | } 1096 | }, 1097 | "node_modules/rpc-websockets/node_modules/ws": { 1098 | "version": "8.16.0", 1099 | "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", 1100 | "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", 1101 | "engines": { 1102 | "node": ">=10.0.0" 1103 | }, 1104 | "peerDependencies": { 1105 | "bufferutil": "^4.0.1", 1106 | "utf-8-validate": ">=5.0.2" 1107 | }, 1108 | "peerDependenciesMeta": { 1109 | "bufferutil": { 1110 | "optional": true 1111 | }, 1112 | "utf-8-validate": { 1113 | "optional": true 1114 | } 1115 | } 1116 | }, 1117 | "node_modules/safe-buffer": { 1118 | "version": "5.2.1", 1119 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1120 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1121 | "funding": [ 1122 | { 1123 | "type": "github", 1124 | "url": "https://github.com/sponsors/feross" 1125 | }, 1126 | { 1127 | "type": "patreon", 1128 | "url": "https://www.patreon.com/feross" 1129 | }, 1130 | { 1131 | "type": "consulting", 1132 | "url": "https://feross.org/support" 1133 | } 1134 | ] 1135 | }, 1136 | "node_modules/safe-stable-stringify": { 1137 | "version": "2.4.3", 1138 | "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", 1139 | "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", 1140 | "engines": { 1141 | "node": ">=10" 1142 | } 1143 | }, 1144 | "node_modules/secure-json-parse": { 1145 | "version": "2.7.0", 1146 | "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", 1147 | "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==" 1148 | }, 1149 | "node_modules/sonic-boom": { 1150 | "version": "3.8.0", 1151 | "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.8.0.tgz", 1152 | "integrity": "sha512-ybz6OYOUjoQQCQ/i4LU8kaToD8ACtYP+Cj5qd2AO36bwbdewxWJ3ArmJ2cr6AvxlL2o0PqnCcPGUgkILbfkaCA==", 1153 | "dependencies": { 1154 | "atomic-sleep": "^1.0.0" 1155 | } 1156 | }, 1157 | "node_modules/split2": { 1158 | "version": "4.2.0", 1159 | "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", 1160 | "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", 1161 | "engines": { 1162 | "node": ">= 10.x" 1163 | } 1164 | }, 1165 | "node_modules/string_decoder": { 1166 | "version": "1.3.0", 1167 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", 1168 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", 1169 | "dependencies": { 1170 | "safe-buffer": "~5.2.0" 1171 | } 1172 | }, 1173 | "node_modules/strip-json-comments": { 1174 | "version": "3.1.1", 1175 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 1176 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 1177 | "engines": { 1178 | "node": ">=8" 1179 | }, 1180 | "funding": { 1181 | "url": "https://github.com/sponsors/sindresorhus" 1182 | } 1183 | }, 1184 | "node_modules/superstruct": { 1185 | "version": "0.14.2", 1186 | "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz", 1187 | "integrity": "sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==" 1188 | }, 1189 | "node_modules/text-encoding-utf-8": { 1190 | "version": "1.0.2", 1191 | "resolved": "https://registry.npmjs.org/text-encoding-utf-8/-/text-encoding-utf-8-1.0.2.tgz", 1192 | "integrity": "sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==" 1193 | }, 1194 | "node_modules/thread-stream": { 1195 | "version": "2.3.0", 1196 | "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.3.0.tgz", 1197 | "integrity": "sha512-kaDqm1DET9pp3NXwR8382WHbnpXnRkN9xGN9dQt3B2+dmXiW8X1SOwmFOxAErEQ47ObhZ96J6yhZNXuyCOL7KA==", 1198 | "dependencies": { 1199 | "real-require": "^0.2.0" 1200 | } 1201 | }, 1202 | "node_modules/through": { 1203 | "version": "2.3.8", 1204 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 1205 | "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" 1206 | }, 1207 | "node_modules/toformat": { 1208 | "version": "2.0.0", 1209 | "resolved": "https://registry.npmjs.org/toformat/-/toformat-2.0.0.tgz", 1210 | "integrity": "sha512-03SWBVop6nU8bpyZCx7SodpYznbZF5R4ljwNLBcTQzKOD9xuihRo/psX58llS1BMFhhAI08H3luot5GoXJz2pQ==" 1211 | }, 1212 | "node_modules/tr46": { 1213 | "version": "0.0.3", 1214 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", 1215 | "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" 1216 | }, 1217 | "node_modules/ts-node": { 1218 | "version": "10.9.2", 1219 | "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", 1220 | "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", 1221 | "dev": true, 1222 | "dependencies": { 1223 | "@cspotcode/source-map-support": "^0.8.0", 1224 | "@tsconfig/node10": "^1.0.7", 1225 | "@tsconfig/node12": "^1.0.7", 1226 | "@tsconfig/node14": "^1.0.0", 1227 | "@tsconfig/node16": "^1.0.2", 1228 | "acorn": "^8.4.1", 1229 | "acorn-walk": "^8.1.1", 1230 | "arg": "^4.1.0", 1231 | "create-require": "^1.1.0", 1232 | "diff": "^4.0.1", 1233 | "make-error": "^1.1.1", 1234 | "v8-compile-cache-lib": "^3.0.1", 1235 | "yn": "3.1.1" 1236 | }, 1237 | "bin": { 1238 | "ts-node": "dist/bin.js", 1239 | "ts-node-cwd": "dist/bin-cwd.js", 1240 | "ts-node-esm": "dist/bin-esm.js", 1241 | "ts-node-script": "dist/bin-script.js", 1242 | "ts-node-transpile-only": "dist/bin-transpile.js", 1243 | "ts-script": "dist/bin-script-deprecated.js" 1244 | }, 1245 | "peerDependencies": { 1246 | "@swc/core": ">=1.2.50", 1247 | "@swc/wasm": ">=1.2.50", 1248 | "@types/node": "*", 1249 | "typescript": ">=2.7" 1250 | }, 1251 | "peerDependenciesMeta": { 1252 | "@swc/core": { 1253 | "optional": true 1254 | }, 1255 | "@swc/wasm": { 1256 | "optional": true 1257 | } 1258 | } 1259 | }, 1260 | "node_modules/typescript": { 1261 | "version": "5.3.3", 1262 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", 1263 | "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", 1264 | "dev": true, 1265 | "bin": { 1266 | "tsc": "bin/tsc", 1267 | "tsserver": "bin/tsserver" 1268 | }, 1269 | "engines": { 1270 | "node": ">=14.17" 1271 | } 1272 | }, 1273 | "node_modules/utf-8-validate": { 1274 | "version": "5.0.10", 1275 | "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", 1276 | "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", 1277 | "hasInstallScript": true, 1278 | "optional": true, 1279 | "dependencies": { 1280 | "node-gyp-build": "^4.3.0" 1281 | }, 1282 | "engines": { 1283 | "node": ">=6.14.2" 1284 | } 1285 | }, 1286 | "node_modules/uuid": { 1287 | "version": "8.3.2", 1288 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", 1289 | "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", 1290 | "bin": { 1291 | "uuid": "dist/bin/uuid" 1292 | } 1293 | }, 1294 | "node_modules/v8-compile-cache-lib": { 1295 | "version": "3.0.1", 1296 | "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", 1297 | "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", 1298 | "dev": true 1299 | }, 1300 | "node_modules/webidl-conversions": { 1301 | "version": "3.0.1", 1302 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", 1303 | "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" 1304 | }, 1305 | "node_modules/whatwg-url": { 1306 | "version": "5.0.0", 1307 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", 1308 | "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", 1309 | "dependencies": { 1310 | "tr46": "~0.0.3", 1311 | "webidl-conversions": "^3.0.0" 1312 | } 1313 | }, 1314 | "node_modules/wrappy": { 1315 | "version": "1.0.2", 1316 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1317 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" 1318 | }, 1319 | "node_modules/ws": { 1320 | "version": "7.5.9", 1321 | "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", 1322 | "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", 1323 | "engines": { 1324 | "node": ">=8.3.0" 1325 | }, 1326 | "peerDependencies": { 1327 | "bufferutil": "^4.0.1", 1328 | "utf-8-validate": "^5.0.2" 1329 | }, 1330 | "peerDependenciesMeta": { 1331 | "bufferutil": { 1332 | "optional": true 1333 | }, 1334 | "utf-8-validate": { 1335 | "optional": true 1336 | } 1337 | } 1338 | }, 1339 | "node_modules/yn": { 1340 | "version": "3.1.1", 1341 | "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", 1342 | "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", 1343 | "dev": true, 1344 | "engines": { 1345 | "node": ">=6" 1346 | } 1347 | } 1348 | } 1349 | } 1350 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "solana-sniper-bot", 3 | "author": "Filip Dundjer", 4 | "scripts": { 5 | "buy": "ts-node buy.ts", 6 | "tsc": "tsc --noEmit" 7 | }, 8 | "dependencies": { 9 | "@raydium-io/raydium-sdk": "^1.3.1-beta.47", 10 | "@solana/spl-token": "^0.4.0", 11 | "@solana/web3.js": "^1.89.1", 12 | "bigint-buffer": "^1.1.5", 13 | "bn.js": "^5.2.1", 14 | "bs58": "^5.0.0", 15 | "dotenv": "^16.4.1", 16 | "pino": "^8.18.0", 17 | "pino-pretty": "^10.3.1", 18 | "pino-std-serializers": "^6.2.2" 19 | }, 20 | "devDependencies": { 21 | "@types/bn.js": "^5.1.5", 22 | "prettier": "^3.2.4", 23 | "ts-node": "^10.9.2", 24 | "typescript": "^5.3.3" 25 | } 26 | } -------------------------------------------------------------------------------- /snipe-list.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexcocopro/solana-sniper-bot/1c29e569dc933e3c791c6df1b9fdd7d82b6708f4/snipe-list.txt -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | /* Visit https://aka.ms/tsconfig to read more about this file */ 4 | 5 | /* Projects */ 6 | // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ 7 | // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ 8 | // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ 9 | // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ 10 | // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ 11 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ 12 | 13 | /* Language and Environment */ 14 | "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ 15 | // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ 16 | // "jsx": "preserve", /* Specify what JSX code is generated. */ 17 | // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ 18 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ 19 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ 20 | // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ 21 | // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ 22 | // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ 23 | // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ 24 | // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ 25 | // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ 26 | 27 | /* Modules */ 28 | "module": "commonjs", /* Specify what module code is generated. */ 29 | // "rootDir": "./", /* Specify the root folder within your source files. */ 30 | // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ 31 | // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ 32 | // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ 33 | // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ 34 | // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ 35 | // "types": [], /* Specify type package names to be included without being referenced in a source file. */ 36 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ 37 | // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ 38 | // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ 39 | // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ 40 | // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ 41 | // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ 42 | "resolveJsonModule": true, /* Enable importing .json files. */ 43 | // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ 44 | // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ 45 | 46 | /* JavaScript Support */ 47 | // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ 48 | // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ 49 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ 50 | 51 | /* Emit */ 52 | // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ 53 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */ 54 | // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ 55 | // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ 56 | // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ 57 | // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ 58 | // "outDir": "./", /* Specify an output folder for all emitted files. */ 59 | // "removeComments": true, /* Disable emitting comments. */ 60 | // "noEmit": true, /* Disable emitting files from a compilation. */ 61 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ 62 | // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */ 63 | // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ 64 | // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ 65 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ 66 | // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ 67 | // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ 68 | // "newLine": "crlf", /* Set the newline character for emitting files. */ 69 | // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ 70 | // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ 71 | // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ 72 | // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ 73 | // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ 74 | // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ 75 | 76 | /* Interop Constraints */ 77 | // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ 78 | // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ 79 | // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ 80 | "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ 81 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ 82 | "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ 83 | 84 | /* Type Checking */ 85 | "strict": true, /* Enable all strict type-checking options. */ 86 | // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ 87 | // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ 88 | // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ 89 | // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ 90 | // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ 91 | // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ 92 | // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ 93 | // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ 94 | // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ 95 | // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ 96 | // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ 97 | // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ 98 | // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ 99 | // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ 100 | // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ 101 | // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ 102 | // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ 103 | // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ 104 | 105 | /* Completeness */ 106 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ 107 | "skipLibCheck": true /* Skip type checking all .d.ts files. */ 108 | } 109 | } 110 | --------------------------------------------------------------------------------