Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | 1x 1x 1x 1x 1x 1x 1x 1x | export const DEX_PROGRAMS = {
// Dex Aggregators
JUPITER: {
id: 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4',
name: 'Jupiter',
tags: ['route'],
},
JUPITER_DCA: {
id: 'DCAK36VfExkPdAkYUQg6ewgxyinvcEyPLyHjRbmveKFw',
name: 'JupiterDCA',
tags: ['route'],
},
JUPITER_V4: {
id: 'JUP4Fb2cqiRUcaTHdrPC8h2gNsA2ETXiPDD33WcGuJB',
name: 'JupiterV4',
tags: ['route'],
},
PHOENIX: {
id: 'PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY',
name: 'Phoenix',
tags: ['route', 'amm'],
},
OKX_DEX: {
id: '6m2CDdhRgxpH4WjvdzxAYbGxwdGUz5MziiL5jek2kBma',
name: 'OKX',
tags: ['route'],
},
SANCTUM: {
id: 'stkitrT1Uoy18Dk1fTrgPw8W6MVzoCfYoAFT4MLsmhq',
name: 'Sanctum',
tags: ['route'],
},
// Trading Bot Programs
BANANA_GUN: {
id: 'BANANAjs7FJiPQqJTGFzkZJndT9o7UmKiYYGaJz6frGu',
name: 'BananaGun',
tags: ['bot'],
},
MINTECH: {
id: 'minTcHYRLVPubRK8nt6sqe2ZpWrGDLQoNLipDJCGocY',
name: 'Mintech',
tags: ['bot'],
},
BLOOM: {
id: 'b1oomGGqPKGD6errbyfbVMBuzSC8WtAAYo8MwNafWW1',
name: 'Bloom',
tags: ['bot'],
},
MAESTRO: {
id: 'MaestroAAe9ge5HTc64VbBQZ6fP77pwvrhM8i1XWSAx',
name: 'Maestro',
tags: ['bot'],
},
NOVA: {
id: 'NoVA1TmDUqksaj2hB1nayFkPysjJbFiU76dT4qPw2wm',
name: 'Nova',
tags: ['bot'],
},
APEPRO: {
id: 'JSW99DKmxNyREQM14SQLDykeBvEUG63TeohrvmofEiw',
name: 'Apepro',
tags: ['bot'],
},
// DEX Protocol Programs
RAYDIUM_V4: {
id: '675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8',
name: 'RaydiumV4',
tags: ['amm'],
},
RAYDIUM_ROUTE: {
id: 'routeUGWgWzqBWFcrCfv8tritsqukccJPu3q5GPP3xS',
name: 'RaydiumRoute',
tags: ['route'],
},
RAYDIUM_CPMM: {
id: 'CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C',
name: 'RaydiumCPMM',
tags: ['amm'],
},
RAYDIUM_CL: {
id: 'CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK',
name: 'RaydiumCL',
tags: ['amm'],
},
METEORA: {
id: 'LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo',
name: 'MeteoraDLMM', //DLMM
tags: ['amm'],
},
METEORA_VAULT: {
id: '24Uqj9JCLxUeoC3hGfh5W3s9FM9uCHDS2SG3LYwBpyTi',
name: 'MeteoraVault',
tags: ['vault'],
},
METEORA_POOLS: {
id: 'Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB',
name: 'MeteoraPools',
tags: ['amm'],
},
MOONSHOT: {
id: 'MoonCVVNZFSYkqNXP6bxHLPL6QQJiMagDL3qcqUQTrG',
name: 'Moonshot',
tags: ['amm'],
},
ORCA: {
id: 'whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc',
name: 'Orca',
tags: ['amm'],
},
ORCA_V2: {
id: '9W959DqEETiGZocYWCQPaJ6sBmUzgfxXfqGeTEdp3aQP',
name: 'OrcaV2',
tags: ['amm'],
},
ORCA_V1: {
id: 'DjVE6JNiYqPL2QXyCUUh8rNjHrbz9hXHNYt99MQ59qw1',
name: 'OrcaV1',
tags: ['amm'],
},
PUMP_FUN: {
id: '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P',
name: 'Pumpfun',
tags: ['amm'],
},
PUMP_SWAP: {
id: 'pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA',
name: 'Pumpswap',
tags: ['amm'],
},
LIFINITY: {
id: 'EewxydAPCCVuNEyrVN68PuSYdQ7wKn27V9Gjeoi8dy3S',
name: 'Lifinity',
tags: ['amm'],
},
LIFINITY_V2: {
id: '2wT8Yq49kHgDzXuPxZSaeLaH1qbmGXtEyPy64bL7aD3c',
name: 'LifinityV2',
tags: ['amm'],
},
STABBEL: {
id: 'swapNyd8XiQwJ6ianp9snpu4brUqFxadzvHebnAXjJZ',
name: 'Stabble',
tags: ['amm'],
},
STABBEL_VAULT: {
id: 'vo1tWgqZMjG61Z2T9qUaMYKqZ75CYzMuaZ2LZP1n7HV',
name: 'StabbleVault',
tags: ['vault'],
},
STABBEL_WEIGHT: {
id: 'swapFpHZwjELNnjvThjajtiVmkz3yPQEHjLtka2fwHW',
name: 'StabbleWeight',
tags: ['amm'],
},
};
export const SYSTEM_PROGRAMS = [
'ComputeBudget111111111111111111111111111111',
'11111111111111111111111111111111',
'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA',
'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL',
'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s',
'srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX', // openbook
];
export const PUMPFUN_MIGRATORS = ['39azUYFWPz3VHgKCf3VChUwbpURdCHRxjWVowf5jUJjg'];
// Known token addresses
export const TOKENS = {
NATIVE: '11111111111111111111111111111111',
SOL: 'So11111111111111111111111111111111111111112', // Wrapped SOL
USDC: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
USDT: 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB',
};
export const TOKEN_DECIMALS = {
[TOKENS.SOL]: 9,
[TOKENS.USDC]: 6,
[TOKENS.USDT]: 6,
};
// Instruction Discriminators
export const DISCRIMINATORS = {
JUPITER: {
ROUTE_EVENT: new Uint8Array([228, 69, 165, 46, 81, 203, 154, 29, 64, 198, 205, 232, 38, 8, 113, 226]),
},
PUMPFUN: {
TRADE_EVENT: new Uint8Array([228, 69, 165, 46, 81, 203, 154, 29, 189, 219, 127, 211, 78, 230, 97, 238]),
CREATE_EVENT: new Uint8Array([228, 69, 165, 46, 81, 203, 154, 29, 27, 114, 169, 77, 222, 235, 99, 118]),
COMPLETE_EVENT: new Uint8Array([228, 69, 165, 46, 81, 203, 154, 29, 95, 114, 97, 156, 212, 46, 152, 8]),
BUY: new Uint8Array([102, 6, 61, 18, 1, 218, 235, 234]),
SELL: new Uint8Array([51, 230, 133, 164, 1, 127, 131, 173]), // SELL
},
PUMPSWAP: {
CREATE_POOL: new Uint8Array([228, 69, 165, 46, 81, 203, 154, 29, 177, 49, 12, 210, 160, 118, 167, 116]),
ADD_LIQUIDITY: new Uint8Array([228, 69, 165, 46, 81, 203, 154, 29, 120, 248, 61, 83, 31, 142, 107, 144]),
REMOVE_LIQUIDITY: new Uint8Array([228, 69, 165, 46, 81, 203, 154, 29, 22, 9, 133, 26, 160, 44, 71, 192]),
BUY: new Uint8Array([228, 69, 165, 46, 81, 203, 154, 29, 103, 244, 82, 31, 44, 245, 119, 119]),
SELL: new Uint8Array([228, 69, 165, 46, 81, 203, 154, 29, 62, 47, 55, 10, 165, 3, 220, 42]), // SELL
},
MOONSHOT: {
BUY: new Uint8Array([102, 6, 61, 18, 1, 218, 235, 234]),
SELL: new Uint8Array([51, 230, 133, 164, 1, 127, 131, 173]),
},
RAYDIUM: {
CREATE: new Uint8Array([1]),
ADD_LIQUIDITY: new Uint8Array([3]),
REMOVE_LIQUIDITY: new Uint8Array([4]),
},
RAYDIUM_CL: {
CREATE: {
openPosition: new Uint8Array([135, 128, 47, 77, 15, 152, 240, 49]), // openPosition
openPositionV2: new Uint8Array([77, 184, 74, 214, 112, 86, 241, 199]), // openPositionV2
openPositionWithToken22Nft: new Uint8Array([77, 255, 174, 82, 125, 29, 201, 46]), // openPositionWithToken22Nft
},
ADD_LIQUIDITY: {
increaseLiquidity: new Uint8Array([46, 156, 243, 118, 13, 205, 251, 178]), // increaseLiquidity
increaseLiquidityV2: new Uint8Array([133, 29, 89, 223, 69, 238, 176, 10]), // increaseLiquidityV2
},
REMOVE_LIQUIDITY: {
decreaseLiquidity: new Uint8Array([160, 38, 208, 111, 104, 91, 44, 1]), // decreaseLiquidity
decreaseLiquidityV2: new Uint8Array([58, 127, 188, 62, 79, 82, 196, 96]), // decreaseLiquidityV2
},
},
RAYDIUM_CPMM: {
CREATE: new Uint8Array([175, 175, 109, 31, 13, 152, 155, 237]), // initialize
ADD_LIQUIDITY: new Uint8Array([242, 35, 198, 137, 82, 225, 242, 182]), // deposit
REMOVE_LIQUIDITY: new Uint8Array([183, 18, 70, 156, 148, 109, 161, 34]), // withdraw
},
METEORA_DLMM: {
ADD_LIQUIDITY: {
addLiquidity: new Uint8Array([181, 157, 89, 67, 143, 182, 52, 72]), //addLiquidity
addLiquidityByStrategy: new Uint8Array([7, 3, 150, 127, 148, 40, 61, 200]), // addLiquidityByStrategy
addLiquidityByStrategyOneSide: new Uint8Array([41, 5, 238, 175, 100, 225, 6, 205]), //addLiquidityByStrategyOneSide
addLiquidityOneSide: new Uint8Array([94, 155, 103, 151, 70, 95, 220, 165]), //addLiquidityOneSide
addLiquidityOneSidePrecise: new Uint8Array([161, 194, 103, 84, 171, 71, 250, 154]), //addLiquidityOneSidePrecise
addLiquidityByWeight: new Uint8Array([28, 140, 238, 99, 231, 162, 21, 149]), //addLiquidityByWeight
},
REMOVE_LIQUIDITY: {
removeLiquidity: new Uint8Array([80, 85, 209, 72, 24, 206, 177, 108]), //removeLiquidity
removeLiquidityByRange: new Uint8Array([26, 82, 102, 152, 240, 74, 105, 26]), // removeLiquidityByRange
removeAllLiquidity: new Uint8Array([10, 51, 61, 35, 112, 105, 24, 85]), // removeAllLiquidity
},
OTHERS: {
claimFee: new Uint8Array([169, 32, 79, 137, 136, 232, 70, 137]), //claimFee
},
},
METEORA_POOLS: {
CREATE: new Uint8Array([7, 166, 138, 171, 206, 171, 236, 244]), // initializePermissionlessConstantProductPoolWithConfig
ADD_LIQUIDITY: new Uint8Array([168, 227, 50, 62, 189, 171, 84, 176]), // addBalanceLiquidity
REMOVE_LIQUIDITY: new Uint8Array([133, 109, 44, 179, 56, 238, 114, 33]), // removeBalanceLiquidity
},
ORCA: {
CREATE: new Uint8Array([242, 29, 134, 48, 58, 110, 14, 60]), // openPositionWithMetadata
CREATE2: new Uint8Array([212, 47, 95, 92, 114, 102, 131, 250]), // openPositionWithTokenExtensions
ADD_LIQUIDITY: new Uint8Array([46, 156, 243, 118, 13, 205, 251, 178]), // increaseLiquidity
ADD_LIQUIDITY2: new Uint8Array([133, 29, 89, 223, 69, 238, 176, 10]), // increaseLiquidityV2
REMOVE_LIQUIDITY: new Uint8Array([160, 38, 208, 111, 104, 91, 44, 1]), // decreaseLiquidity
OTHER1: new Uint8Array([164, 152, 207, 99, 30, 186, 19, 182]), // collectFees
OTHER2: new Uint8Array([70, 5, 132, 87, 86, 235, 177, 34]), //collectReward
},
} as const;
export const SPL_TOKEN_INSTRUCTION_TYPES = {
InitializeMint: 0,
InitializeAccount: 1,
InitializeMultisig: 2,
Transfer: 3,
Approve: 4,
Revoke: 5,
SetAuthority: 6,
MintTo: 7,
Burn: 8,
CloseAccount: 9,
FreezeAccount: 10,
ThawAccount: 11,
TransferChecked: 12,
ApproveChecked: 13,
MintToChecked: 14,
BurnChecked: 15,
} as const;
export const SYSTEM_INSTRUCTION_TYPES = {
CreateAccount: 0,
Assign: 1,
Transfer: 2,
CreateAccountWithSeed: 3,
AdvanceNonceAccount: 4,
WithdrawNonceAccount: 5,
InitializeNonceAccount: 6,
AuthorizeNonceAccount: 7,
Allocate: 8,
AllocateWithSeed: 9,
AssignWithSeed: 10,
TransferWithSeed: 11,
UpgradeNonceAccount: 12,
CreateAccountWithSeedChecked: 13,
CreateIdempotent: 14,
} as const;
|