Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Registry

Controls the connections to the registry

Hierarchy

  • Registry

Index

Constructors

constructor

Properties

connectionManager

connectionManager: ConnectionManager

identityManager

identityManager: IdentityManager

ipfs

ipfs: IPFS

orbit

orbit: Orbit

registryConfig

registryConfig: RegistryConfig

Methods

addChain

  • addChain(name: string, symbol: string, chainId: number): Promise<default<RegistryEntry>>
  • Add new chain to the registry, this must be done by someone with adequate permissions.

    Parameters

    • name: string

      Chain name, example: Ethereum

    • symbol: string

      Chain symbol, example: ETH

    • chainId: number

      Chain ID for chain, this provides guidance for signing

    Returns Promise<default<RegistryEntry>>

    New listed chain db connection

bootstrap

  • bootstrap(environment?: string, version?: number): Promise<default<RegistryEntry>>

get

  • Parameters

    • Optional id: string

      Chain ID for the targeted registry

    Returns Promise<RegistryEntry[]>

    Array of supported chains and their associated strategies store address

getChain

  • Get chain details from the registry

    throws

    Error if chain is not found

    Parameters

    • chainId: number

      Chain ID for the chain

    Returns Promise<RegistryEntry>

    Chain details

getChains

getConnection

getStrategiesRegistry

  • Return the StrategyRegistry class wrapper around a specific strategy registry

    Parameters

    • strategies: string

      Store address associated with the strategy registry

    Returns Promise<StrategyRegistry>

    Wrapper class for strategy registry

register

Generated using TypeDoc