2021-12-24 12:52:08 +00:00
|
|
|
import 'dart:ffi';
|
|
|
|
import 'package:ffi/ffi.dart';
|
|
|
|
|
|
|
|
class PendingTransactionRaw extends Struct {
|
|
|
|
@Int64()
|
|
|
|
int amount;
|
|
|
|
|
|
|
|
@Int64()
|
|
|
|
int fee;
|
|
|
|
|
|
|
|
Pointer<Utf8> hash;
|
|
|
|
|
2022-06-22 11:39:48 +00:00
|
|
|
Pointer<Utf8> hex;
|
|
|
|
|
|
|
|
Pointer<Utf8> txKey;
|
|
|
|
|
2021-12-24 12:52:08 +00:00
|
|
|
String getHash() => Utf8.fromUtf8(hash);
|
2022-06-22 11:39:48 +00:00
|
|
|
|
|
|
|
String getHex() => Utf8.fromUtf8(hex);
|
|
|
|
|
|
|
|
String getKey() => Utf8.fromUtf8(txKey);
|
2021-12-24 12:52:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class PendingTransactionDescription {
|
2022-06-22 11:39:48 +00:00
|
|
|
PendingTransactionDescription({
|
|
|
|
this.amount,
|
|
|
|
this.fee,
|
|
|
|
this.hash,
|
|
|
|
this.hex,
|
|
|
|
this.txKey,
|
|
|
|
this.pointerAddress});
|
2021-12-24 12:52:08 +00:00
|
|
|
|
|
|
|
final int amount;
|
|
|
|
final int fee;
|
|
|
|
final String hash;
|
2022-06-22 11:39:48 +00:00
|
|
|
final String hex;
|
|
|
|
final String txKey;
|
2021-12-24 12:52:08 +00:00
|
|
|
final int pointerAddress;
|
|
|
|
}
|