-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTokenTransferMonitoringOptions.cs
More file actions
74 lines (60 loc) · 2.17 KB
/
TokenTransferMonitoringOptions.cs
File metadata and controls
74 lines (60 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using System.Collections.Generic;
namespace AElfScanServer.Worker.Core.Options;
public class TokenTransferMonitoringOptions
{
/// <summary>
/// Enable or disable token transfer monitoring, default is true
/// </summary>
public bool EnableMonitoring { get; set; } = true;
/// <summary>
/// Enable or disable system contract transfer filtering, default is true
/// </summary>
public bool EnableSystemContractFilter { get; set; } = true;
/// <summary>
/// Blacklist addresses for monitoring
/// </summary>
public List<string> BlacklistAddresses { get; set; } = new();
/// <summary>
/// Addresses that are only monitored when they are recipients (to addresses)
/// </summary>
public List<string> ToOnlyMonitoredAddresses { get; set; } = new();
/// <summary>
/// Addresses that are only monitored for large amount transfers
/// </summary>
public List<string> LargeAmountOnlyAddresses { get; set; } = new();
/// <summary>
/// Addresses to ignore completely - no metrics will be recorded for these addresses
/// </summary>
public List<string> IgnoreAddresses { get; set; } = new();
/// <summary>
/// Minimum USD value threshold for histogram recording, default is 0
/// </summary>
public decimal MinUsdValueThreshold { get; set; } = 0m;
/// <summary>
/// List of tokens to monitor
/// </summary>
public List<string> MonitoredTokens { get; set; } = new() { "ELF", "USDT", "BTC", "ETH" };
/// <summary>
/// Scan configuration
/// </summary>
public ScanConfig ScanConfig { get; set; } = new();
}
public class ScanConfig
{
/// <summary>
/// Chain IDs to monitor
/// </summary>
public List<string> ChainIds { get; set; } = new() { "AELF", "tDVV" };
/// <summary>
/// Scan interval in seconds
/// </summary>
public int IntervalSeconds { get; set; } = 30;
/// <summary>
/// Batch size for each scan
/// </summary>
public int BatchSize { get; set; } = 1000;
/// <summary>
/// Redis key prefix for storing scan progress
/// </summary>
public string RedisKeyPrefix { get; set; } = "token_transfer_monitoring";
}