Skip to main content

defineContract

Callable

  • defineContract<T>(config: { descriptor: T; id?: string }): InkContract<T>
  • defineContract<T>(config: { descriptor: T; id?: string; type: ink }): InkContract<T>
  • defineContract<T>(config: { abi: T; id?: string; type: solidity }): SolidityContract<T>

  • @deprecated

    Specify the contract type explicitly


    Type parameters

    • T: GenericInkDescriptors

    Parameters

    • config: { descriptor: T; id?: string }
      • descriptor: T
      • optionalid: string

    Returns InkContract<T>