Skip to content

Instantly share code, notes, and snippets.

View LionelB5's full-sized avatar
👾

Lionel Bersee LionelB5

👾
  • Melbourne, Australia
View GitHub Profile
@LionelB5
LionelB5 / solana-balance.ts
Last active December 5, 2024 04:20
find-solana-balance
// Find a Solana address matching an arbitrary criteria that is based on:
// - Address's last activity
// - Balance of the address
//
// Script is rough and quickly put together, use at your own risk. Intended to be run in a Deno notebook.
import { Connection, PublicKey } from "npm:@solana/web3.js@latest";
const RPC_ENDPOINT = "https://api.mainnet-beta.solana.com";
const MIN_BALANCE = 20 * 1e9; // 20 SOL in lamports
@LionelB5
LionelB5 / MockedLink.ts
Last active March 10, 2025 19:28
Apollo Client V3 link that supports mocking GraphQL subscriptions, mutations and queries. Particularly useful when testing components that rely on queries/mutations that execute concurrently to subscriptions that must be mocked.