2023-07-19 21:37:11 +00:00
|
|
|
enum OrdCollection {
|
|
|
|
punks,
|
|
|
|
moonbirds,
|
|
|
|
}
|
|
|
|
|
2023-07-18 16:15:05 +00:00
|
|
|
class Ordinal {
|
|
|
|
final String name;
|
|
|
|
final String inscription;
|
|
|
|
final String rank;
|
2023-07-19 21:37:11 +00:00
|
|
|
final OrdCollection collection;
|
|
|
|
|
|
|
|
// following two are used to look up the UTXO object in isar combined w/ walletId
|
|
|
|
final String utxoTXID;
|
|
|
|
final int utxoVOUT;
|
2023-07-18 16:15:05 +00:00
|
|
|
|
2023-07-19 21:37:11 +00:00
|
|
|
// TODO: make a proper Isar class instead of this placeholder
|
2023-07-18 16:15:05 +00:00
|
|
|
|
|
|
|
Ordinal({
|
|
|
|
required this.name,
|
|
|
|
required this.inscription,
|
|
|
|
required this.rank,
|
2023-07-19 21:37:11 +00:00
|
|
|
required this.collection,
|
|
|
|
required this.utxoTXID,
|
|
|
|
required this.utxoVOUT,
|
2023-07-18 16:15:05 +00:00
|
|
|
});
|
|
|
|
}
|