mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 19:26:37 +00:00
models modification and simple export
This commit is contained in:
parent
279d7f37bd
commit
064421cfba
4 changed files with 9 additions and 3 deletions
|
@ -42,6 +42,7 @@ class Transaction {
|
|||
|
||||
final outputs = IsarLinks<Output>();
|
||||
|
||||
@Backlink(to: "transaction")
|
||||
final note = IsarLink<TransactionNote>();
|
||||
|
||||
int getConfirmations(int currentChainHeight) {
|
||||
|
|
7
lib/models/isar/models/isar_models.dart
Normal file
7
lib/models/isar/models/isar_models.dart
Normal file
|
@ -0,0 +1,7 @@
|
|||
export 'address/address.dart';
|
||||
export 'blockchain_data/input.dart';
|
||||
export 'blockchain_data/output.dart';
|
||||
export 'blockchain_data/transaction.dart';
|
||||
export 'blockchain_data/utxo.dart';
|
||||
export 'log.dart';
|
||||
export 'transaction_note.dart';
|
|
@ -9,6 +9,5 @@ class TransactionNote {
|
|||
|
||||
late String value;
|
||||
|
||||
@Backlink(to: 'note')
|
||||
final transaction = IsarLink<Transaction>();
|
||||
}
|
||||
|
|
|
@ -31,11 +31,10 @@ const TransactionNoteSchema = CollectionSchema(
|
|||
indexes: {},
|
||||
links: {
|
||||
r'transaction': LinkSchema(
|
||||
id: -3227504867737807188,
|
||||
id: -2827073548125040615,
|
||||
name: r'transaction',
|
||||
target: r'Transaction',
|
||||
single: true,
|
||||
linkName: r'note',
|
||||
)
|
||||
},
|
||||
embeddedSchemas: {},
|
||||
|
|
Loading…
Reference in a new issue