Options
All
  • Public
  • Public/Protected
  • All
Menu

Export Registry Provider

Hierarchy

  • RegistryProvider

Index

Constructors

Properties

_document: Document

Document instance. Should be set inside the React hooks.

_fetch: ((input: RequestInfo, init?: RequestInit) => Promise<Response>) & ((input: RequestInfo, init?: RequestInit) => Promise<Response>)

fetch instance. Should be set inside the React hooks.

_networkType: NetworkType = NetworkType.mainnet

Network type is stored at private.

_storage: Storage

Storage instance. Should be set inside the React hooks.

_window: Window

Window instance

instance: RegistryProvider = null

Singleton described as a public and static property.

Accessors

  • get document(): Document
  • set document(value: Document): void
  • Document getter

    Returns Document

  • Document setter

    Parameters

    • value: Document

    Returns void

  • get fetch(): ((input: RequestInfo, init?: RequestInit) => Promise<Response>)
  • set fetch(value: ((input: RequestInfo, init?: RequestInit) => Promise<Response>)): void
  • fetch getter

    Returns ((input: RequestInfo, init?: RequestInit) => Promise<Response>)

      • (input: RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo
        • Optional init: RequestInit

        Returns Promise<Response>

  • fetch setter

    Parameters

    • value: ((input: RequestInfo, init?: RequestInit) => Promise<Response>)
        • (input: RequestInfo, init?: RequestInit): Promise<Response>
        • Parameters

          • input: RequestInfo
          • Optional init: RequestInit

          Returns Promise<Response>

    Returns void

  • NetworkType getter

    Returns NetworkType

  • NetworkType setter

    Parameters

    Returns void

  • get storage(): Storage
  • set storage(value: Storage): void
  • Storage getter.

    Returns Storage

  • Storage setter.

    Parameters

    • value: Storage

    Returns void

  • window instance

    Returns Window

  • set window instance

    Parameters

    Returns void

Methods

  • Public static method to get the singleton instance.

    Returns RegistryProvider

  • initializeBrowserRegistry(window: any, document: any, fetch: any, storage: any): void
  • Initialize browser registry

    Parameters

    • window: any
    • document: any
    • fetch: any
    • storage: any

    Returns void

  • initializeServerRegistry(global: any, fetch: any, storage: any): void
  • Initialize server registry

    Parameters

    • global: any
    • fetch: any
    • storage: any

    Returns void

Generated using TypeDoc