UNPKG

@dzapio/sdk

Version:

A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.

37 lines (36 loc) 1.44 kB
export declare function createConfig(): { getApiKey: () => string | null; setApiKey: (apiKey: string) => void; getRpcUrlsByChainId: (chainId: number) => string[]; setRpcUrlsByChainId: (rpcUrlsByChainId: Record<number, string[]>) => void; getEip2612DisabledChains: () => number[]; setEip2612DisabledChains: (chains: number[]) => void; getAppEnv: () => string; setAppEnv: (env: string) => void; getBaseApiUrl: () => string; setBaseApiUrl: (url: string) => void; getZapApiUrl: () => string; setZapApiUrl: (url: string) => void; getVersionPostfix: () => string; setVersionPostfix: (postfix: string) => void; getBaseUrl: () => string; getBaseZapUrl: () => string; }; export declare const config: { getApiKey: () => string | null; setApiKey: (apiKey: string) => void; getRpcUrlsByChainId: (chainId: number) => string[]; setRpcUrlsByChainId: (rpcUrlsByChainId: Record<number, string[]>) => void; getEip2612DisabledChains: () => number[]; setEip2612DisabledChains: (chains: number[]) => void; getAppEnv: () => string; setAppEnv: (env: string) => void; getBaseApiUrl: () => string; setBaseApiUrl: (url: string) => void; getZapApiUrl: () => string; setZapApiUrl: (url: string) => void; getVersionPostfix: () => string; setVersionPostfix: (postfix: string) => void; getBaseUrl: () => string; getBaseZapUrl: () => string; };