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
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 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 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 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 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 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"; | |
////////////////////////////////////////////////// | |
export class BorshBoolean extends BufferLayout.Layout<boolean> { | |
constructor(property?: string) { | |
super(1, property); | |
} |
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
// --- `@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 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'; |
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
import web3 from "@solana/web3.js"; | |
import mmw from "@raydium-io/raydium-sdk"; | |
import QuickLRU from "quick-lru"; | |
////////////////////////////////////////////////// | |
export const OPAQUE_SIGNATURE = "1111111111111111111111111111111111111111111111111111111111111111"; | |
export const SIGNATURE_PROGRAM = "Program "; |
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
import web3 from "@solana/web3.js"; | |
import * as BufferLayout from "@solana/buffer-layout"; | |
import bs58 from "bs58"; | |
////////////////////////////////////////////////// | |
class BorshString extends BufferLayout.Layout<string> { | |
constructor(property?: string) { | |
super(-1, property); | |
} |
NewerOlder