CreditInterface<LogicType extends Logic> constructor

CreditInterface<LogicType extends Logic>(
  1. LogicType data, {
  2. CreditContract contract = const CreditContract.unspecified(),
})

Creates a single-pool credit interface with the given payload shape.

Implementation

CreditInterface(
  this.data, {
  this.contract = const CreditContract.unspecified(),
}) : super(
        portsFromProvider: [data, Logic.port('valid')],
        portsFromConsumer: [Logic.port('creditReturn')],
      );