Options
All
  • Public
  • Public/Protected
  • All
Menu
class

Context

package

Swapable

subpackage

Contracts

since

v1.0.0

description

Class that describes a digital asset command execution context.

Hierarchy

  • Context

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

actor

actor: PublicAccount
description

Execution actor

Protected argv

argv: CommandOption[] | undefined
description

Execution parameters

parameters

description

Transaction parameters

reader

reader: Reader
description

Blockchain reader adapter.

revision

revision: number
description

Standard revision

Methods

getInput

  • getInput<ValueType>(name: string, defaultValue: ValueType): ValueType
  • Read an input by its' name in argv options.

    Type parameters

    • ValueType

    Parameters

    • name: string
    • defaultValue: ValueType

    Returns ValueType

setInput

  • setInput<ValueType>(name: string, value: ValueType): Context
  • Set the value of an input by its' name in argv options.

    Type parameters

    • ValueType

    Parameters

    • name: string
    • value: ValueType

    Returns Context

Generated using TypeDoc