ContractResult: {
    abi: any[];
    compilerVersion: string;
    devdoc?: any;
    evmVersion: string;
    getSources?: (() => Promise<ContractSources>);
    name: string | null;
    ok: boolean;
    runs: number;
    userdoc?: any;
}

Type declaration

  • abi: any[]
  • compilerVersion: string
  • Optionaldevdoc?: any
  • evmVersion: string
  • OptionalgetSources?: (() => Promise<ContractSources>)

    getSources returns the imports -> source code mapping for the contract, if available.

    Caveats:

    • Not all loaders support this, so the property could be undefined.
    • This call could trigger additional fetch requests, depending on the loader.
  • name: string | null
  • ok: boolean
  • runs: number
  • Optionaluserdoc?: any