-
Notifications
You must be signed in to change notification settings - Fork 260
Expand file tree
/
Copy pathTokenContractState.cs
More file actions
70 lines (49 loc) · 2.95 KB
/
TokenContractState.cs
File metadata and controls
70 lines (49 loc) · 2.95 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
using AElf.Sdk.CSharp.State;
using AElf.Types;
namespace AElf.Contracts.MultiToken;
public partial class TokenContractState : ContractState
{
public StringState NativeTokenSymbol { get; set; }
public StringState ChainPrimaryTokenSymbol { get; set; }
public MappedState<string, TokenInfo> TokenInfos { get; set; }
public MappedState<string, string> SymbolSeedMap { get; set; }
public MappedState<Address, string, long> Balances { get; set; }
public MappedState<Address, Address, string, long> Allowances { get; set; }
public SingletonState<Address> FeeReceiver { get; set; }
/// <summary>
/// Contract Address -> Advance Address -> Resource Token Symbol -> Amount.
/// </summary>
public MappedState<Address, Address, string, long> AdvancedResourceToken { get; set; }
/// <summary>
/// Contract Address -> (Owning) Resource Token Symbol -> Amount.
/// </summary>
public MappedState<Address, string, long> OwningResourceToken { get; set; }
public BoolState InitializedFromParentChain { get; set; }
public SingletonState<AuthorityInfo> CrossChainTokenContractRegistrationController { get; set; }
public SingletonState<UserFeeController> UserFeeController { get; set; }
public SingletonState<DeveloperFeeController> DeveloperFeeController { get; set; }
public SingletonState<AuthorityInfo> SymbolToPayTxFeeController { get; set; }
public SingletonState<AuthorityInfo> SideChainRentalController { get; set; }
/// <summary>
/// symbol -> address -> is in white list.
/// </summary>
public MappedState<string, Address, bool> LockWhiteLists { get; set; }
public MappedState<int, Address> CrossChainTransferWhiteList { get; set; }
public MappedState<Hash, bool> VerifiedCrossChainTransferTransaction { get; set; }
public SingletonState<AuthorityInfo> MethodFeeController { get; set; }
public SingletonState<Hash> LatestTotalResourceTokensMapsHash { get; set; }
public SingletonState<Hash> LatestTotalTransactionFeesMapHash { get; set; }
public SingletonState<long> ClaimTransactionFeeExecuteHeight { get; set; }
public SingletonState<long> DonateResourceTokenExecuteHeight { get; set; }
public SingletonState<Address> NFTContractAddress { get; set; }
public MappedState<Address, bool> CreateTokenWhiteListMap { get; set; }
public MappedState<Address, TransactionFeeDelegatees> TransactionFeeDelegateesMap { get; set; }
/// <summary>
/// delegator address -> contract address -> method name -> delegatee info
/// </summary>
public MappedState<Address, Address, string, TransactionFeeDelegatees> TransactionFeeDelegateInfoMap { get; set; }
public SingletonState<Address> ElectionContractAddress { get; set; }
public SingletonState<Address> VoteContractAddress { get; set; }
public SingletonState<bool> TokenIssuerAndOwnerModificationDisabled { get; set; }
public SingletonState<int> MaxBatchApproveCount { get; set; }
}