@opiumteam/opium-sdk-v2
Version:
one-stop-shop SDK to interact with the Opium-v2 protocol contracts, subgraphs and APIs
14 lines (13 loc) • 562 B
TypeScript
import { protocolErrors, semanticErrors } from '../constants/protocolErrors';
import { TConfigByChainOrUndefined } from '../types';
export declare const pickError: (semanticError: typeof semanticErrors[keyof typeof semanticErrors]) => typeof protocolErrors[keyof typeof semanticErrors];
export declare const configByChain: (chainIds: {
[key: string]: number;
}, chainId: number) => TConfigByChainOrUndefined;
/**
*
*
* below: taken from yearn
*/
export declare function struct(tuple: any): any;
export declare function structArray(tuples: any[]): any[];