mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Some pocket watch stuff for the future
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
namespace KfChatDotNetBot.Models;
|
||||
namespace KfChatDotNetBot.Models.DbModels;
|
||||
|
||||
public class PocketWatchModel
|
||||
public class PocketWatchAddressDbModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string Network { get; set; }
|
||||
public required string Address { get; set; }
|
||||
public required string Label { get; set; }
|
||||
public required bool BypassGambaSeshPresenceDetection { get; set; }
|
||||
public required int CheckIntervalSec { get; set; }
|
||||
// Used internally to detect new transactions
|
||||
public required DateTime LastChecked { get; set; } = DateTime.Now;
|
||||
public required DateTimeOffset LastChecked { get; set; } = DateTimeOffset.UtcNow;
|
||||
}
|
||||
|
||||
public class PocketWatchEventModel
|
||||
public class PocketWatchTransactionDbModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string TransactionHash { get; set; }
|
||||
public required DateTimeOffset Time { get; set; }
|
||||
public required string Currency { get; set; }
|
||||
@@ -22,5 +23,4 @@ public class PocketWatchEventModel
|
||||
public required long Balance { get; set; }
|
||||
public required float UsdRate { get; set; }
|
||||
public required bool IsMempool { get; set; }
|
||||
public required PocketWatchModel PocketWatch { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user