/
Stellar-operation-manage-external-system-id-pool-entry.x
97 lines (79 loc) · 1.9 KB
/
Stellar-operation-manage-external-system-id-pool-entry.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
%#include "xdr/Stellar-ledger-entries.h"
namespace stellar
{
/*ManageExternalSystemAccountIdPoolEntry
Threshold: high
Result: ManageExternalSystemAccountIdPoolEntryResult
*/
enum ManageExternalSystemAccountIdPoolEntryAction
{
CREATE = 0,
REMOVE = 1
};
struct CreateExternalSystemAccountIdPoolEntryActionInput
{
int32 externalSystemType;
longstring data;
uint64 parent;
union switch (LedgerVersion v)
{
case EMPTY_VERSION:
void;
}
ext;
};
struct DeleteExternalSystemAccountIdPoolEntryActionInput
{
uint64 poolEntryID;
union switch (LedgerVersion v)
{
case EMPTY_VERSION:
void;
}
ext;
};
struct ManageExternalSystemAccountIdPoolEntryOp
{
union switch (ManageExternalSystemAccountIdPoolEntryAction action)
{
case CREATE:
CreateExternalSystemAccountIdPoolEntryActionInput createExternalSystemAccountIdPoolEntryActionInput;
case REMOVE:
DeleteExternalSystemAccountIdPoolEntryActionInput deleteExternalSystemAccountIdPoolEntryActionInput;
} actionInput;
union switch (LedgerVersion v)
{
case EMPTY_VERSION:
void;
}
ext;
};
/******* ManageExternalSystemAccountIdPoolEntry Result ********/
enum ManageExternalSystemAccountIdPoolEntryResultCode
{
// codes considered as "success" for the operation
SUCCESS = 0,
// codes considered as "failure" for the operation
MALFORMED = -1,
ALREADY_EXISTS = -2,
AUTO_GENERATED_TYPE_NOT_ALLOWED = -3,
NOT_FOUND = -4
};
struct ManageExternalSystemAccountIdPoolEntrySuccess {
uint64 poolEntryID;
// reserved for future use
union switch (LedgerVersion v)
{
case EMPTY_VERSION:
void;
}
ext;
};
union ManageExternalSystemAccountIdPoolEntryResult switch (ManageExternalSystemAccountIdPoolEntryResultCode code)
{
case SUCCESS:
ManageExternalSystemAccountIdPoolEntrySuccess success;
default:
void;
};
}