2022-03-30 15:57:04 +00:00
|
|
|
import 'dart:ffi';
|
|
|
|
import 'package:ffi/ffi.dart';
|
|
|
|
|
|
|
|
class PendingTransactionRaw extends Struct {
|
|
|
|
@Int64()
|
2022-10-12 17:09:57 +00:00
|
|
|
external int amount;
|
2022-03-30 15:57:04 +00:00
|
|
|
|
|
|
|
@Int64()
|
2022-10-12 17:09:57 +00:00
|
|
|
external int fee;
|
2022-03-30 15:57:04 +00:00
|
|
|
|
2022-10-12 17:09:57 +00:00
|
|
|
external Pointer<Utf8> hash;
|
2022-03-30 15:57:04 +00:00
|
|
|
|
2022-10-12 17:09:57 +00:00
|
|
|
String getHash() => hash.toDartString();
|
2022-03-30 15:57:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class PendingTransactionDescription {
|
2022-10-12 17:09:57 +00:00
|
|
|
PendingTransactionDescription({
|
|
|
|
required this.amount,
|
|
|
|
required this.fee,
|
|
|
|
required this.hash,
|
|
|
|
required this.pointerAddress});
|
2022-03-30 15:57:04 +00:00
|
|
|
|
|
|
|
final int amount;
|
|
|
|
final int fee;
|
|
|
|
final String hash;
|
|
|
|
final int pointerAddress;
|
|
|
|
}
|