StakeInfo constructor

StakeInfo({
  1. required String block,
  2. required String? changeAddress,
  3. required int? changeValue,
  4. required bool confirmed,
  5. required int epoch,
  6. required int fee,
  7. required String hash,
  8. required List<StakeInput> inputs,
  9. required int priority,
  10. required bool reverted,
  11. required int stakeValue,
  12. required int timestamp,
  13. required String validator,
  14. required int weight,
  15. required String withdrawer,
})

Implementation

StakeInfo({
  required this.block,
  required this.changeAddress,
  required this.changeValue,
  required this.confirmed,
  required this.epoch,
  required this.fee,
  required this.hash,
  required this.inputs,
  required this.priority,
  required this.reverted,
  required this.stakeValue,
  required this.timestamp,
  required this.validator,
  required this.weight,
  required this.withdrawer,
}) : super(
          txnHash: hash,
          txnTime: timestamp,
          status:
              TransactionStatus.fromValues(null, reverted, confirmed).status,
          type: TransactionType.stake,
          blockHash: block);