-
Notifications
You must be signed in to change notification settings - Fork 36
/
config.ts
65 lines (44 loc) · 2.61 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { Connection, PublicKey, Keypair } from "@solana/web3.js";
import {
TxVersion, Token,Currency,
TOKEN_PROGRAM_ID,
SOL,
CacheLTA,
LOOKUP_TABLE_CACHE
} from "@raydium-io/raydium-sdk";
import * as bs58 from 'bs58';
// define these
export const blockEngineUrl = 'tokyo.mainnet.block-engine.jito.wtf';
const jito_auth_private_key = "aaaaaaaaaaaaaaaa";
const wallet_2_pay_jito_fees = "aaaaaaaaaaaaaaaa";
const LP_wallet_private_key = "aaaaaaaaaaaaaaaa";
const swap_wallet_private_key = "aaaaaaaaaaaaaaaa";
export const rpc_https_url = "http://mainnet.helius-rpc.com/?api-key=aaaaaaaaaaaaaaaaaaaaaa";
export const market_id = new PublicKey("aaaaaaaaaaaaaaaaaaag6snCe2iUR3A");
export const input_baseMint_tokens_percentage = 1; //ABC-Mint amount of tokens you want to add in Lp e.g. 1% = 100%. 0.9= 90%
export const delay_pool_open_time = Number(0); //dont change it because then you wont be able to perform swap in bundle.
export let quote_Mint_amount = 0.5; //COIN-SOL, amount of SOL u want to add to Pool amount
// remove lp:
export const LP_remove_tokens_percentage = 1; //ABC-Mint amount of tokens in Lp that you want to remove e.g. 1% = 100%. 0.9= 90%
export const LP_remove_tokens_take_profit_at_sol = 2; //I want to remove all lp when sol reached 2 SOL
// swap info:
export const swap_sol_amount = 0.5; //Amount of SOl u want to invest
export const sell_swap_tokens_percentage = 0.5; // % of tokens u want to sell=> 1 means 100%
export const sell_swap_take_profit_ratio = 2; // take profit e.g. 2x 3x
// swap sell and remove lp fees in lamports.
export const sell_remove_fees = 5000000;
// ignore these
export const jito_auth_keypair = Keypair.fromSecretKey(new Uint8Array(bs58.decode(jito_auth_private_key)));
export const wallet_2_pay_jito_fees_keypair = Keypair.fromSecretKey(new Uint8Array(bs58.decode(wallet_2_pay_jito_fees)));
export const LP_wallet_keypair = Keypair.fromSecretKey(new Uint8Array(bs58.decode(LP_wallet_private_key)));
export const swap_wallet_keypair = Keypair.fromSecretKey(new Uint8Array(bs58.decode(swap_wallet_private_key)));
export const lookupTableCache= {}
export const connection = new Connection(rpc_https_url, "confirmed");
export const makeTxVersion = TxVersion.V0 // LEGACY
export const addLookupTableInfo = LOOKUP_TABLE_CACHE // only mainnet. other = undefined
export const DEFAULT_TOKEN = {
SOL: SOL,
SOL1: new Currency(9, 'USDC', 'USDC'),
WSOL: new Token(TOKEN_PROGRAM_ID, new PublicKey('So11111111111111111111111111111111111111112'), 9, 'WSOL', 'WSOL'),
USDC: new Token(TOKEN_PROGRAM_ID, new PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'), 6, 'USDC', 'USDC'),
}