Hierarchy

  • BasePlugin
    • ForgerPlugin

Constructors

Properties

_forgerPluginDB: Database
_forgersList: BufferMap<boolean>
configSchema?: SchemaWithDefault
endpoint: Endpoint = ...
logger: Logger

Accessors

  • get apiClient(): APIClient
  • Returns APIClient

  • get appConfig(): ApplicationConfigForPlugin
  • Returns ApplicationConfigForPlugin

  • get config(): T
  • Returns T

  • get dataPath(): string
  • Returns string

  • get name(): string
  • Returns string

Methods

  • Parameters

    • header: {
          aggregateCommit: { readonly height: number; readonly aggregationBits: string; readonly certificateSignature: string; };
          assetRoot?: string;
          eventRoot?: string;
          generatorAddress: string;
          height: number;
          id?: string;
          impliesMaxPrevotes: boolean;
          maxHeightGenerated: number;
          maxHeightPrevoted: number;
          previousBlockID: string;
          signature?: string;
          stateRoot?: string;
          timestamp: number;
          transactionRoot?: string;
          validatorsHash?: string;
          version: number;
      }
      • Readonly aggregateCommit: { readonly height: number; readonly aggregationBits: string; readonly certificateSignature: string; }
      • Optional Readonly assetRoot?: string
      • Optional Readonly eventRoot?: string
      • Readonly generatorAddress: string
      • Readonly height: number
      • Optional id?: string
      • Readonly impliesMaxPrevotes: boolean
      • Readonly maxHeightGenerated: number
      • Readonly maxHeightPrevoted: number
      • Readonly previousBlockID: string
      • Optional signature?: string
      • Optional Readonly stateRoot?: string
      • Readonly timestamp: number
      • Optional Readonly transactionRoot?: string
      • Optional Readonly validatorsHash?: string
      • Readonly version: number
    • forgerTransactionsInfo: ForgerTransactionsInfo

    Returns Promise<void>

  • Parameters

    • header: {
          aggregateCommit: { readonly height: number; readonly aggregationBits: string; readonly certificateSignature: string; };
          assetRoot?: string;
          eventRoot?: string;
          generatorAddress: string;
          height: number;
          id?: string;
          impliesMaxPrevotes: boolean;
          maxHeightGenerated: number;
          maxHeightPrevoted: number;
          previousBlockID: string;
          signature?: string;
          stateRoot?: string;
          timestamp: number;
          transactionRoot?: string;
          validatorsHash?: string;
          version: number;
      }
      • Readonly aggregateCommit: { readonly height: number; readonly aggregationBits: string; readonly certificateSignature: string; }
      • Optional Readonly assetRoot?: string
      • Optional Readonly eventRoot?: string
      • Readonly generatorAddress: string
      • Readonly height: number
      • Optional id?: string
      • Readonly impliesMaxPrevotes: boolean
      • Readonly maxHeightGenerated: number
      • Readonly maxHeightPrevoted: number
      • Readonly previousBlockID: string
      • Optional signature?: string
      • Optional Readonly stateRoot?: string
      • Readonly timestamp: number
      • Optional Readonly transactionRoot?: string
      • Optional Readonly validatorsHash?: string
      • Readonly version: number
    • transactions: TransactionJSON[]

    Returns ForgerTransactionsInfo

  • Parameters

    • header: {
          aggregateCommit: { readonly height: number; readonly aggregationBits: string; readonly certificateSignature: string; };
          assetRoot?: string;
          eventRoot?: string;
          generatorAddress: string;
          height: number;
          id?: string;
          impliesMaxPrevotes: boolean;
          maxHeightGenerated: number;
          maxHeightPrevoted: number;
          previousBlockID: string;
          signature?: string;
          stateRoot?: string;
          timestamp: number;
          transactionRoot?: string;
          validatorsHash?: string;
          version: number;
      }
      • Readonly aggregateCommit: { readonly height: number; readonly aggregationBits: string; readonly certificateSignature: string; }
      • Optional Readonly assetRoot?: string
      • Optional Readonly eventRoot?: string
      • Readonly generatorAddress: string
      • Readonly height: number
      • Optional id?: string
      • Readonly impliesMaxPrevotes: boolean
      • Readonly maxHeightGenerated: number
      • Readonly maxHeightPrevoted: number
      • Readonly previousBlockID: string
      • Optional signature?: string
      • Optional Readonly stateRoot?: string
      • Readonly timestamp: number
      • Optional Readonly transactionRoot?: string
      • Optional Readonly validatorsHash?: string
      • Readonly version: number
    • transactions: TransactionJSON[]

    Returns Promise<void>

Generated using TypeDoc