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 { FetchResult, Operation } from "@apollo/client"; | |
import { Observable } from "@apollo/client"; | |
import { MockLink } from "@apollo/client/testing"; | |
import type { Observer } from "@apollo/client/utilities"; | |
// Apollo Client's out of the box utilities for testing subscriptions are limited: | |
// - The `mocks` argument provided to Apollo's `MockedProvider` is only capable of mocking a | |
// single subscription payload per subscription. | |
// - Apollo's `MockSubscriptionLink` can be used to mock multiple subscription payloads via | |
// a `simulateResult` method. However, the `simulateResult` method delivers data to _every_ |
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
// 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 |