The BaseModule represents Lisk modules by providing a generic interface, from which each module extends from.

Hierarchy

Constructors

Properties

_moduleConfig: ModuleConfig
_randomMethod: RandomMethod
_tokenMethod: TokenMethod
commands: BaseCommand<unknown>[] = []
configSchema: {
    $id: string;
    properties: {
        brackets: {
            items: {
                format: string;
                type: string;
            };
            type: string;
        };
        distance: {
            minimum: number;
            type: string;
        };
        offset: {
            minimum: number;
            type: string;
        };
        tokenID: {
            format: string;
            maxLength: number;
            minLength: number;
            type: string;
        };
    };
    required: string[];
    type: string;
} = configSchema

Type declaration

  • $id: string
  • properties: {
        brackets: {
            items: {
                format: string;
                type: string;
            };
            type: string;
        };
        distance: {
            minimum: number;
            type: string;
        };
        offset: {
            minimum: number;
            type: string;
        };
        tokenID: {
            format: string;
            maxLength: number;
            minLength: number;
            type: string;
        };
    }
    • brackets: {
          items: {
              format: string;
              type: string;
          };
          type: string;
      }
      • items: {
            format: string;
            type: string;
        }
        • format: string
        • type: string
      • type: string
    • distance: {
          minimum: number;
          type: string;
      }
      • minimum: number
      • type: string
    • offset: {
          minimum: number;
          type: string;
      }
      • minimum: number
      • type: string
    • tokenID: {
          format: string;
          maxLength: number;
          minLength: number;
          type: string;
      }
      • format: string
      • maxLength: number
      • minLength: number
      • type: string
  • required: string[]
  • type: string
endpoint: RewardEndpoint = ...
events: NamedRegistry = ...
method: RewardMethod = ...
offchainStores: NamedRegistry = ...
stores: NamedRegistry = ...

Accessors

Methods

  • Parameters

    • tokenMethod: TokenMethod
    • randomMethod: RandomMethod

    Returns void

  • Returns {
        assets: never[];
        commands: {
            name: string;
            params: Schema;
        }[];
        endpoints: never[];
        events: {
            data: Schema;
            name: string;
        }[];
        stores: {
            data: Schema;
            key: string;
        }[];
    }

    • assets: never[]
    • commands: {
          name: string;
          params: Schema;
      }[]
    • endpoints: never[]
    • events: {
          data: Schema;
          name: string;
      }[]
    • stores: {
          data: Schema;
          key: string;
      }[]

Generated using TypeDoc