Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "contracts/typeGenerator"

Index

Type aliases

GeneratorLevel

GeneratorLevel: Array<string | IndentedGeneratorLevel>

IndentedGeneratorLevel

IndentedGeneratorLevel: object

Type declaration

Variables

Const glob

glob: __promisify__ = promisify(globWithCallbacks)

Functions

Const generateAllTypes

  • generateAllTypes(): Promise<void>
  • Loads all .abi files and generates types

    Returns Promise<void>

Const generateTypes

  • generateTypes(contractIdentifier: string): Promise<void>
  • Generates a Typescript definition file from a contract ABI file

    Parameters

    • contractIdentifier: string

      Path to file without extension

    Returns Promise<void>

Const mapParameterType

  • mapParameterType(__namedParameters: object): string
  • Parses a C++ type definition into a Typescript definition

    Parameters

    • __namedParameters: object
      • contractName: undefined | string
      • contractStructs: any
      • eosType: string

    Returns string

Const saveInterface

  • Writes the contract interface to file

    Parameters

    Returns Promise<void>

Generated using TypeDoc