Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "contracts/typeGenerator"

Index

Type aliases

GeneratorLevel

GeneratorLevel: Array<string | IndentedGeneratorLevel>

IndentedGeneratorLevel

IndentedGeneratorLevel: {}

Type declaration

Variables

Const glob

glob: __promisify__ = promisify(globWithCallbacks)

Functions

Const flattenGeneratorLevels

  • Parameters

    Returns string

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 generateTypesFromString

  • generateTypesFromString(rawABI: string, contractName: string): Promise<string>
  • Parameters

    • rawABI: string
    • contractName: string

    Returns Promise<string>

Const mapParameterType

  • mapParameterType(__namedParameters: { contractName: undefined | string; contractStructs: any; eosType: string }): string
  • Parses a C++ type definition into a Typescript definition

    Parameters

    • __namedParameters: { contractName: undefined | string; contractStructs: any; eosType: string }
      • contractName: undefined | string
      • contractStructs: any
      • eosType: string

    Returns string

Const saveInterface

  • saveInterface(contractIdentifier: string, interfaceContent: string): Promise<void>
  • Writes the contract interface to file

    Parameters

    • contractIdentifier: string

      Path to file without extension

    • interfaceContent: string

      Generated contract interface as a string

    Returns Promise<void>

Generated using TypeDoc