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

Hierarchy

Constructors

Properties

_feePoolAddress?: Buffer
_maxBlockHeightZeroFeePerByte: number
_minFeePerByte: number
_tokenID: Buffer
_tokenMethod: TokenMethod
commands: BaseCommand<unknown>[] = []
configSchema: {
    $id: string;
    properties: {
        feePoolAddress: {
            format: string;
            type: string;
        };
        feeTokenID: {
            format: string;
            type: string;
        };
        maxBlockHeightZeroFeePerByte: {
            format: string;
            type: string;
        };
        minFeePerByte: {
            format: string;
            type: string;
        };
    };
    required: string[];
    type: string;
} = configSchema

Type declaration

  • $id: string
  • properties: {
        feePoolAddress: {
            format: string;
            type: string;
        };
        feeTokenID: {
            format: string;
            type: string;
        };
        maxBlockHeightZeroFeePerByte: {
            format: string;
            type: string;
        };
        minFeePerByte: {
            format: string;
            type: string;
        };
    }
    • feePoolAddress: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • feeTokenID: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • maxBlockHeightZeroFeePerByte: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • minFeePerByte: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
  • required: string[]
  • type: string
crossChainCommand: BaseCCCommand<unknown>[] = []
crossChainMethod: FeeInteroperableMethod = ...
endpoint: FeeEndpoint = ...
events: NamedRegistry = ...
method: FeeMethod = ...
offchainStores: NamedRegistry = ...
stores: NamedRegistry = ...

Accessors

Methods

  • Parameters

    • blockHeight: number
    • transactionByteLength: number

    Returns bigint

  • Parameters

    • tokenMethod: TokenMethod
    • interopMethod: InteroperabilityMethod

    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