Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Core

EVA Redux SDK core which handles configuration and provides shared request implementation

export

Hierarchy

  • Core

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

hasBootstrapped

hasBootstrapped: boolean = false

Indicates the core has completed the bootstrap at least once

memberof

Core

state$

state$: BehaviorSubject<IRootState> = new BehaviorSubject( store.getState() )

Methods

bootstrap

dump

  • Resets the store state to initial and returns the previous state

    memberof

    Core

    Parameters

    Returns IRootState

    The state before the dump

fetch

  • fetch(uri: string, options?: any, timeout?: number, authorisationToken?: undefined | string, elevationToken?: undefined | string, serviceContext?: string, chainContext?: undefined | string): Promise<any>
  • Wraps the low level fetch API adding the default request headers for EVA

    memberof

    Core

    Parameters

    • uri: string
    • Optional options: any
    • Default value timeout: number = 15000
    • Optional authorisationToken: undefined | string
    • Optional elevationToken: undefined | string
    • Default value serviceContext: string = uuid()
    • Optional chainContext: undefined | string

    Returns Promise<any>