UNPKG

@dethcrypto/eth-sdk

Version:

🛠 Generate type-safe, lightweight SDK for your Ethereum smart contracts

14 lines (13 loc) • 615 B
import { Address } from '../../config'; import { FetchJson } from '../../peripherals/fetchJson'; import { Abi } from '../../types'; import { NetworkSymbol, UserProvidedNetworkSymbol } from './../networks'; /** * given networkSymbol and address we fetch from Sourcify HTTP endpoint GET /files/:chain/:address */ export declare const getAbiFromSourcify: (networkSymbol: NetworkSymbol, address: Address, userNetworkIds: Record<UserProvidedNetworkSymbol, number | undefined>, fetch: FetchJson<SourcifyFile[]>) => Promise<Abi>; /** @internal */ export interface SourcifyFile { name: string; content: string; }