-
Notifications
You must be signed in to change notification settings - Fork 1
/
ledger-entries-asset.x
57 lines (49 loc) · 1.55 KB
/
ledger-entries-asset.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
%#include "xdr/types.h"
namespace stellar
{
enum AssetPolicy
{
//: Defines whether or not asset can be transfered using payments
TRANSFERABLE = 1,
//: Defines whether or not asset is considered base
BASE_ASSET = 2,
//: [[Deprecated]]
STATS_QUOTE_ASSET = 4,
//: Defines whether or not asset can be withdrawed from the system
WITHDRAWABLE = 8,
//: Defines whether or not manual review for issuance of asset is required
ISSUANCE_MANUAL_REVIEW_REQUIRED = 16,
//: Defines whether or not asset can be base in atomic swap
CAN_BE_BASE_IN_ATOMIC_SWAP = 32,
//: Defines whether or not asset can be quote in atomic swap
CAN_BE_QUOTE_IN_ATOMIC_SWAP = 64,
SWAPPABLE = 128
};
struct AssetEntry
{
//: Code of the asset
AssetCode code;
//: Owner(creator) of the asset
AccountID owner;
//: Account responsible for preissuance of the asset
AccountID preissuedAssetSigner;
//: Arbitrary stringified JSON object that can be used to attach data to asset
longstring details;
//: Maximal amount of tokens that can be issued
uint64 maxIssuanceAmount;
//: Amount of tokens available for issuance
uint64 availableForIssueance;
//: Amount of tokens issued already
uint64 issued;
//: Amount of tokens to be issued which is locked. `pendingIssuance+issued <= maxIssuanceAmount`
uint64 pendingIssuance;
//: Policies of the asset
uint32 policies;
//: Used to restrict usage. Used in account rules
uint64 type;
//: Number of decimal places. Must be <= 6
uint32 trailingDigitsCount;
//: Reserved for future use
EmptyExt ext;
};
}