Type Alias AutoloadResult

AutoloadResult: {
    abi: ABI;
    abiLoadedFrom?: ABILoader;
    address: string;
    contractResult?: ContractResult;
    followProxies?: ((selector?: string) => Promise<AutoloadResult>);
    isFactory?: boolean;
    proxies: ProxyResolver[];
}

AutoloadResult is the return type for the autoload function.

Type declaration

  • abi: ABI
  • OptionalabiLoadedFrom?: ABILoader

    Whether the abi is loaded from a verified source

  • address: string
  • OptionalcontractResult?: ContractResult

    Full contract metadata result, only included if AutoloadConfig.loadContractResult is true.

  • OptionalfollowProxies?: ((selector?: string) => Promise<AutoloadResult>)

    Follow proxies to next result. If multiple proxies were detected, some reasonable ordering of attempts will be made. Note: Some proxies operate relative to a specific selector (such as DiamondProxy facets), in this case we'll need to specify a selector that we care about.

  • Optional ExperimentalisFactory?: boolean

    Set to true when a CREATE or CREATE2 opcode is present in the bytecode. This means that some of the results could have been mistaken from the embedded contract that gets created by the factory. For example, we can have a non-proxy contract which creates a proxy contract on call. WhatsABI may not yet be able to distinguish them reliably.

  • proxies: ProxyResolver[]

    List of resolveable proxies detected in the contract