mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
parent
e7e419bc83
commit
01150ef2a7
213 changed files with 23972 additions and 672 deletions
44
cw_haven/lib/api/structs/transaction_info_row.dart
Normal file
44
cw_haven/lib/api/structs/transaction_info_row.dart
Normal file
|
@ -0,0 +1,44 @@
|
|||
import 'dart:ffi';
|
||||
import 'package:ffi/ffi.dart';
|
||||
|
||||
class TransactionInfoRow extends Struct {
|
||||
@Uint64()
|
||||
int amount;
|
||||
|
||||
@Uint64()
|
||||
int fee;
|
||||
|
||||
@Uint64()
|
||||
int blockHeight;
|
||||
|
||||
@Uint64()
|
||||
int confirmations;
|
||||
|
||||
@Uint32()
|
||||
int subaddrAccount;
|
||||
|
||||
@Int8()
|
||||
int direction;
|
||||
|
||||
@Int8()
|
||||
int isPending;
|
||||
|
||||
@Uint32()
|
||||
int subaddrIndex;
|
||||
|
||||
Pointer<Utf8> hash;
|
||||
|
||||
Pointer<Utf8> paymentId;
|
||||
|
||||
Pointer<Utf8> assetType;
|
||||
|
||||
@Int64()
|
||||
int datetime;
|
||||
|
||||
int getDatetime() => datetime;
|
||||
int getAmount() => amount >= 0 ? amount : amount * -1;
|
||||
bool getIsPending() => isPending != 0;
|
||||
String getHash() => Utf8.fromUtf8(hash);
|
||||
String getPaymentId() => Utf8.fromUtf8(paymentId);
|
||||
String getAssetType() => Utf8.fromUtf8(assetType);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue