Options
All
  • Public
  • Public/Protected
  • All
Menu

Certificate authority class

Hierarchy

  • Base
    • CertificateAuthority

Index

Constructors

constructor

Properties

contract

contract: any = null

Protected contractAbi

contractAbi: any[]

Protected contractName

contractName: BaseContracts

Protected factoryContract

factoryContract: any

Protected web3

web3: default

Accessors

fromAddress

  • get fromAddress(): string
  • Returns string

Methods

allCertificateAutorities

  • Get certificate authorities

    Parameters

    • full: boolean = true

      Include certificate authority details

    Returns Promise<ICertificateAuthority[] | string[]>

    Certificate authorities

certificates

  • Get certificates of address

    Parameters

    • address: string = ...

      Address with certificates

    Returns Promise<ICertificate[]>

    Certificates info

createCertificate

createCertificateAuthority

  • Create a certificate authority

    Parameters

    • options: { name: string }

      Create certificate authority options

      • name: string

        Certificate authority name

    Returns Transaction<{ CertificateAuthorityCreated: CertificateAuthorityCreatedEvent }>

    Create certifiate authority events

ensureContract

  • ensureContract(): Promise<any>

getByCode

  • Get certificate by code

    Parameters

    • code: number

      Certificate code

    Returns Promise<null | ICertificate>

    Certificate informations

getCertificateAuthority

  • Get certificate authority by address

    Parameters

    • address: string

      Owner addres

    Returns Promise<null | ICertificateAuthority>

    Certificate authority details

getContractAddress

  • getContractAddress(): Promise<any>

getPastEvents

  • getPastEvents<T>(eventName: string, filter?: object, includeBlockData?: boolean): Promise<T[]>
  • Type parameters

    • T

    Parameters

    • eventName: string
    • filter: object = {}
    • includeBlockData: boolean = false

    Returns Promise<T[]>

getRawPastEvents

  • getRawPastEvents(eventName: string, filter?: object): Promise<default[]>
  • Parameters

    • eventName: string
    • filter: object = {}

    Returns Promise<default[]>

hasCertificateAuthority

  • hasCertificateAuthority(address?: string): Promise<boolean>
  • Check if an address has a certificate authority

    Parameters

    • address: string = ...

      Owner address

    Returns Promise<boolean>

    True if the address has a certificate authority

minimumStake

  • minimumStake(): Promise<string>
  • Get the minimum allowed stake

    Returns Promise<string>

    Minimum stake in wei

Generated using TypeDoc