@0xsplits/splits-sdk
Version:
SDK for the 0xSplits protocol
17 lines (16 loc) • 1.27 kB
TypeScript
import { GqlAccount, GqlPassThroughWallet, GqlSplit, GqlSwapper } from './types';
import { IAccountType, ILiquidSplit, IPassThroughWallet, ISplit, ISwapper, IVestingModule, IWaterfallModule } from './types';
import { Client } from '@urql/core';
export declare const MAX_UNIX_TIME = 2147480000;
export declare const ACCOUNT_QUERY: import("@urql/core").TypedDocumentNode<any, import("@urql/core").AnyVariables>;
export declare const FULL_ACCOUNT_QUERY: import("@urql/core").TypedDocumentNode<any, import("@urql/core").AnyVariables>;
export declare const ACCOUNTS_QUERY: import("@urql/core").TypedDocumentNode<any, import("@urql/core").AnyVariables>;
export declare const formatFullGqlAccount: (arg0: GqlAccount, arg1?: ISplit[], arg2?: IVestingModule[], arg3?: IWaterfallModule[], arg4?: ILiquidSplit[], arg5?: ISwapper[], arg6?: IPassThroughWallet[], arg7?: GqlSplit[], arg8?: GqlSplit[], arg9?: GqlSwapper[], arg10?: GqlPassThroughWallet[]) => IAccountType;
export declare const formatGqlAccount: (arg0: GqlAccount) => IAccountType;
export type GqlVariables = {
[key: string]: string | number | boolean | undefined | string[] | object;
};
export declare const getGraphqlClient: ({ apiKey, serverURL, }: {
apiKey: string;
serverURL?: string;
}) => Client;