-
Notifications
You must be signed in to change notification settings - Fork 1
/
ledger-entries-account.x
57 lines (43 loc) · 1.13 KB
/
ledger-entries-account.x
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
// Copyright 2015 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
%#include "xdr/types.h"
namespace stellar
{
struct Limits
{
int64 dailyOut;
int64 weeklyOut;
int64 monthlyOut;
int64 annualOut;
// reserved for future use
union switch (LedgerVersion v)
{
case EMPTY_VERSION:
void;
}
ext;
};
/* AccountEntry
Main entry representing a user in Tokend. All transactions are
performed using an account.
Other ledger entries created require an account.
*/
struct AccountEntry
{
AccountID accountID; // master public key for this account
// Referral marketing
AccountID* referrer; // parent account
// sequenctial ID - unique identifier of the account, used by ingesting applications to
// identify account, while keeping size of index small
uint64 sequentialID;
uint64 roleID;
// reserved for future use
union switch (LedgerVersion v)
{
case EMPTY_VERSION:
void;
}
ext;
};
}