Skip to content

Instantly share code, notes, and snippets.

View adityadees's full-sized avatar
🏠
Work From Home

Aditya Dharmawan Saputra adityadees

🏠
Work From Home
  • indonesia
  • 11:14 (UTC +07:00)
View GitHub Profile
@adityadees
adityadees / index.ts
Created May 10, 2024 17:10 — forked from endrsmar/index.ts
Raydium new pool listener
import { LiquidityPoolKeysV4, MARKET_STATE_LAYOUT_V3, Market, TOKEN_PROGRAM_ID } from "@raydium-io/raydium-sdk";
import { Connection, Logs, ParsedInnerInstruction, ParsedInstruction, ParsedTransactionWithMeta, PartiallyDecodedInstruction, PublicKey } from "@solana/web3.js";
const RPC_ENDPOINT = 'https://api.mainnet-beta.solana.com';
const RAYDIUM_POOL_V4_PROGRAM_ID = '675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8';
const SERUM_OPENBOOK_PROGRAM_ID = 'srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX';
const SOL_MINT = 'So11111111111111111111111111111111111111112';
const SOL_DECIMALS = 9;
const connection = new Connection(RPC_ENDPOINT);
This file has been truncated, but you can view the full file.
/*! For license information please see edge-delta-globe.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.EdgeDeltaGlobeLib=t():e.EdgeDeltaGlobeLib=t()}(this,(()=>(()=>{var e={422:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(601),i=n.n(r),a=n(314),A=n.n(a)()(i());A.push([e.id,"\n\n#edge-delta-globe {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100vh;\n}\n\n#scene-container {\n position: relative;\n width: 90%;\n height: 90%;\n overflow: hidden;\n}\n\n#scene-container canvas {\n position: absolute;\n bottom: -50%;\n}\n\n@media screen and (max-width: 1024px) {\n #scene-container canvas {\n bottom: -40%;\n }\n\n #globe-canvas {\n width: 600px !important;\n height: 600px !important;\n }\n}\n\n@media screen and (max-width: 768px) {\n h1 {\n font-size: 2rem;\n margin-top: 50px;\n }\n}\n\n@media scree