UNPKG

@saberhq/sail

Version:

Account caching and batched loading for React-based Solana applications.

21 lines 840 B
import { PublicKey } from "@solana/web3.js"; import type { AccountDatum } from "../types"; export * from "./falsy"; export * from "./fetchNullable"; export declare const accountsEqual: (a: AccountDatum, b: AccountDatum) => boolean; export declare const serializeKeys: (keys: readonly (PublicKey | string | null | undefined)[]) => (string | null | undefined)[]; /** * Generates a list of unique {@link PublicKey}s. * @param keys * @returns */ export declare const uniqKeys: (keys: readonly (PublicKey | string)[]) => readonly PublicKey[]; /** * Makes a memo key for a list of strings. * @param list * @returns */ export declare const makeListMemoKey: <T extends { toString: () => string; }>(list: readonly (NonNullable<T> | null | undefined)[] | null | undefined) => string | null | undefined; //# sourceMappingURL=index.d.ts.map