@cyberk/hyperion-sdk
Version:
Hyperion SDK from Cyberk
17 lines (16 loc) • 831 B
TypeScript
import type { QueryOptions } from "@tanstack/query-core";
import { CosmWasmClient } from "@cosmjs/cosmwasm-stargate";
import { PairInfo } from "../types/pair";
export interface GetAllPairsOptions {
client?: CosmWasmClient;
factoryAddress?: string;
limit?: number;
}
export declare const getAllPairsQueryMsg: ({ limit }: GetAllPairsOptions) => {
pairs: {
limit: number;
};
};
export declare const getAllPairsQueryKey: (options: GetAllPairsOptions) => readonly ["allPairs", string | undefined, number | undefined];
export declare const getAllPairsFn: (options: GetAllPairsOptions) => Promise<PairInfo[] | undefined>;
export declare const getAllPairsQueryOptions: (options: GetAllPairsOptions) => QueryOptions<PairInfo[] | undefined, Error, PairInfo[] | undefined, ReturnType<typeof getAllPairsQueryKey>>;