Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "states"

Index

Variables

Const GLOBAL_STATE

GLOBAL_STATE: ego_contracts.KeyValuePairs

The global, extension-wide state object, which can store values as key/value pairs.

Const SCRIPT_STATES

SCRIPT_STATES: ego_contracts.FileStateStorage

Functions

getScriptState

  • getScriptState(script: string, storage?: ego_contracts.FileStateStorage, initialValue?: any): GetterAndSetter
  • Returns the getter and setter for the state of a script.

    Parameters

    • script: string

      The path of the script.

    • Optional storage: ego_contracts.FileStateStorage
    • Default value initialValue: any = {}

    Returns GetterAndSetter

    The getter and setter.

Generated using TypeDoc