This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (window, document, App, $, _) { | |
'use strict'; | |
App.prototype.Components || (App.prototype.Components = {}); | |
var supports3d = false, | |
prefixes = ['Webkit', 'Moz', 'ms', 'O'], | |
div = document.createElement('div'); | |
if (typeof div.style.perspective !== 'undefined') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { MAINNET_PROGRAM_ID, LIQUIDITY_STATE_LAYOUT_V4, Token } = require("@raydium-io/raydium-sdk") | |
const { Connection } = require("@solana/web3.js") | |
const bs58 = require('bs58') | |
const connection = new Connection('RPC URL') | |
let timeoutRef | |
const raydiumSubscriptionId = connection.onProgramAccountChange( | |
MAINNET_PROGRAM_ID.AmmV4, | |
async updatedAccountInfo => { |