Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BootstrapService

Main entry point for API integration.

Hierarchy

  • BootstrapService

Index

Constructors

Methods

  • It generates the docker-compose.yaml file from the previously generated configuration.

    The config method/command needs to be called before this method

    Parameters

    • config: ComposeParams

      the params of the compose command.

    • Optional passedPresetData: ConfigPreset

      the created preset if you know it, otherwise will load the latest one resolved from the target folder.

    • Optional passedAddresses: Addresses

      the created addresses if you know if, otherwise will load the latest one resolved form the target folder.

    Returns Promise<DockerCompose>

  • healthCheck(config: { target: string }): Promise<void>
  • It checks if the health of the running services is ok.

    Parameters

    • config: { target: string }

      the params of the clean command.

      • target: string

    Returns Promise<void>

  • It calls a running server announcing all the node transactions like VRF and Voting.

    This command is useful to link the nodes keys to an existing running network like testnet.

    Parameters

    • config: LinkParams

      the params passed

    • Optional passedPresetData: ConfigPreset

      the created preset if you know it, otherwise will load the latest one resolved from the target folder.

    • Optional passedAddresses: Addresses

      the created addresses if you know it, otherwise will load the latest one resolved from the target folder.

    Returns Promise<void>

  • It converts main account into multisig account or modifies multisig structure

    Parameters

    • config: ModifyMultisigParams

      the params passed

    • Optional passedPresetData: ConfigPreset

      the created preset if you know it, otherwise will load the latest one resolved from the target folder.

    • Optional passedAddresses: Addresses

      the created addresses if you know it, otherwise will load the latest one resolved from the target folder.

    Returns Promise<void>

  • It generates reStructuredText (.rst) reports describing the configuration of each node.

    The config method/command needs to be called before this method

    Parameters

    • config: ReportParams

      the params of the report command.

    • Optional passedPresetData: ConfigPreset

      the created preset if you know if, otherwise will load the latest one resolved from the target folder.

    Returns Promise<string[]>

    the paths of the created reports.

  • resetData(config: { target: string }): Promise<void>
  • It resets the data keeping generated configuration, block 1, certificates and keys.

    Parameters

    • config: { target: string }

      the params of the clean command.

      • target: string

    Returns Promise<void>

  • It boots the network via docker using the generated docker-compose.yml file and configuration

    The config and compose methods/commands need to be called before this method.

    This is just a wrapper for docker-compose up bash call.

    Parameters

    • config: RunParams

      the params of the run command.

    Returns Promise<void>

  • It stops the docker-compose network if running.

    This is just a wrapper for docker-compose down bash call.

    Parameters

    • config: RunParams

      the params necessary to detect and stop the network.

    Returns Promise<void>

Generated using TypeDoc