mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2025-11-13 08:12:38 +10:00
make Sets and Map into consts
This commit is contained in:
8
buy.ts
8
buy.ts
@ -53,16 +53,16 @@ const solanaConnection = new Connection(RPC_ENDPOINT, {
|
|||||||
wsEndpoint: RPC_WEBSOCKET_ENDPOINT,
|
wsEndpoint: RPC_WEBSOCKET_ENDPOINT,
|
||||||
});
|
});
|
||||||
|
|
||||||
export type MinimalTokenAccountData = {
|
export interface MinimalTokenAccountData {
|
||||||
mint: PublicKey;
|
mint: PublicKey;
|
||||||
address: PublicKey;
|
address: PublicKey;
|
||||||
poolKeys?: LiquidityPoolKeys;
|
poolKeys?: LiquidityPoolKeys;
|
||||||
market?: MinimalMarketLayoutV3;
|
market?: MinimalMarketLayoutV3;
|
||||||
};
|
};
|
||||||
|
|
||||||
let existingLiquidityPools: Set<string> = new Set<string>();
|
const existingLiquidityPools: Set<string> = new Set<string>();
|
||||||
let existingOpenBookMarkets: Set<string> = new Set<string>();
|
const existingOpenBookMarkets: Set<string> = new Set<string>();
|
||||||
let existingTokenAccounts: Map<string, MinimalTokenAccountData> = new Map<string, MinimalTokenAccountData>();
|
const existingTokenAccounts: Map<string, MinimalTokenAccountData> = new Map<string, MinimalTokenAccountData>();
|
||||||
|
|
||||||
let wallet: Keypair;
|
let wallet: Keypair;
|
||||||
let quoteToken: Token;
|
let quoteToken: Token;
|
||||||
|
|||||||
Reference in New Issue
Block a user