Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ProcessorConfig

label

COMMON

interface

ProcessorConfig

description

The dApp network configuration. This configuration object is used to determine how information is processed into operations for this dApp.

link

ProcessorConfig

since

v0.2.0

Hierarchy

  • ProcessorConfig

Index

Properties

contracts: string[]

A list of enable contracts. Note that this configuration field accepts a contract identifier which does not include the dApp identifier.

Note that operations are only processed given the presence of the contract in this configuration field, i.e. if your dApp must process authentication operations, make sure to add the "auth" contract in this configuration field.

CAUTION: By removing an entry of this configuration field, changes will occur to the list of recent operations that have been processed and thereby affect the data loaded by the backend runtime.

example

["auth", "earn"]

access

public

var

{string[]}

operations: OperationParameters[]

An operations configuration object. This consists of an array of OperationParameters which are used to process subjects according to custom transaction queries, i.e. elevate defines an authentication contract whereby the discovery source is always a singular account, this is one query parameter that is used.

CAUTION: By modifying the content of this configuration field, changes may occur for the Operations that a dApp processes and may thereby affect the data loaded by the backend runtime.

example

Example operation configuration object

{
contract: "elevate:auth"
label: "Session|Sessions",
query: {
sourceAddress: "NDAPPH6ZGD4D6LBWFLGFZUT2KQ5OLBLU32K3HNY"
}
}
access

public

var

{OperationParameters[]}

Generated using TypeDoc