This file contains hidden or 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
{ | |
"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA", | |
"metadata": {"name": "pump_amm", "version": "0.1.0", "spec": "0.1.0", "description": "Created with Anchor"}, | |
"instructions": [ | |
{ | |
"name": "buy", | |
"discriminator": [102, 6, 61, 18, 1, 218, 235, 234], | |
"accounts": [ | |
{"name": "pool"}, | |
{"name": "user", "writable": true, "signer": true}, |
This file contains hidden or 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
<?php | |
// | |
// NOTE: only one dependency is needed: `firebase/php-jwt`. | |
// (install using: `composer require firebase/php-jwt`) | |
// | |
require(dirname(__FILE__) . "/vendor/autoload.php"); | |
//////////////////////////////////////////////////////////////////////////////// |
This file contains hidden or 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 (rpcEndpoint) { | |
if (typeof rpcEndpoint !== "string" || !rpcEndpoint.length) return -1; | |
rpcEndpoint = rpcEndpoint.trim(); | |
const wsEndpoint = rpcEndpoint.replace(/^http(s?)/gm, "ws$1"); | |
const root = document.getElementById('root'); | |
if (!root) return -2; | |
const reactId = Object.keys(root).find(s => s.startsWith("__reactContainer")); | |
if (root[reactId] === null || typeof root[reactId] !== "object" || !root[reactId].stateNode) return -2; | |
let ctx = root[reactId].stateNode; |
This file contains hidden or 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
import web3 from "@solana/web3.js"; | |
import * as BufferLayout from "@solana/buffer-layout"; | |
import QuickLRU from "quick-lru"; | |
//////////////////////////////////////////////////////////////////////////////// | |
export class BorshBoolean extends BufferLayout.Layout<boolean> { | |
constructor(property?: string) { | |
super(1, property); |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
[ | |
{"mint":"6GatMp82G4xrijpzQX8XaVRRFac3QkGCQ1JCuGYSpump","name":"EchoBot LOL","symbol":"ECHOBT"}, | |
{"mint":"HAkahawiL6c921fBpmfnmDtTLLGhNHVAuq9GrmmEpump","name":"butterfly","symbol":"BUTTERFLY"}, | |
{"mint":"BgmFhJEcEfXP4zngop2iSGq3vr3vnbaGA8kXor8YJ9t5","name":"Trumpcat","symbol":"TCAT"}, | |
{"mint":"Dg6SGuRbnuBLwfhj9a2o9W5owa4mgHACxX9aMpTL3rDs","name":"Delusionals","symbol":"DELUSIONAL"}, | |
{"mint":"8vnqNoW5cC5Dyw2xZBm4pEXnvNEUtkZjZYnbxrsypump","name":"SOLidity ","symbol":"SOLidity"}, | |
{"mint":"xGcvfQHMMGLZsigVQ6z8GyCz13f5uyakiP8SfQxpump","name":"THUG LIFE GLASSES","symbol":"TGG"}, | |
{"mint":"7CfzXt5DLbDA5tSYpahYM3Q9LXReYJBphnAQ2Vkjpump","name":"hypno cat","symbol":"hypno"}, | |
{"mint":"Btf9E81MhMhCof94B56SqyhjMtCqwdhUpM1b2yuQi1EV","name":"No. 1 sugar glider on TikTok","symbol":"Rose"}, |
This file contains hidden or 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
import web3 from "@solana/web3.js"; | |
import bs58 from "bs58"; | |
////////////////////////////////////////////////// | |
const utf8TextDecoder = new TextDecoder("utf-8"); | |
function decodeVariableUtf8String(buffer: Buffer, start: number, maxLength: number): string { | |
const end = start + maxLength; | |
let pos = start; |
This file contains hidden or 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
import { | |
address, | |
createDefaultRpcSubscriptionsTransport, | |
createSubscriptionRpc, | |
} from '@solana/web3.js'; | |
import { DEFAULT_RPC_CONFIG } from '@solana/rpc'; | |
import { createSolanaRpcEnhancedSubscriptionsApi } from './enhanced-notifications'; | |
// ----------------------------------------------------------------------------- |
This file contains hidden or 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
use std::str::FromStr as _; | |
use solana_client::{ | |
client_error::{ClientError, ClientErrorKind}, | |
rpc_client::GetConfirmedSignaturesForAddress2Config, | |
rpc_request::RpcRequest, | |
}; | |
use solana_program::pubkey::Pubkey; | |
use solana_sdk::commitment_config::CommitmentConfig; | |
use solext::rpc::{Client as _, GetAllSignaturesForAddress as _, GetMarkerSignature as _}; |
This file contains hidden or 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
// --- `@solana/web3.js` v1 --- | |
import web3 from '@solana/web3.js'; | |
(async (rpcUrl: string) => { | |
const rpc = new web3.Connection(rpcUrl); | |
const subject = new web3.PublicKey('j1oAbxxiDUWvoHxEDhWE7THLjEkDQW2cSHYn2vttxTF'); | |
const signatures = await rpc.getSignaturesForAddress(subject, { | |
limit: 1000, | |
}, 'finalized'); |
This file contains hidden or 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
import type { | |
Commitment, | |
TransactionForAccounts, | |
TransactionForFullBase58, | |
TransactionForFullBase64, | |
TransactionForFullJsonParsed, | |
} from '@solana/rpc-types'; | |
import type { TransactionVersion } from '@solana/transaction-messages'; | |
import type { Address } from '@solana/addresses'; | |
import type { Signature } from '@solana/keys'; |
NewerOlder