Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Stellar-contract-spec.x
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ enum SCSpecType
SC_SPEC_TYPE_BYTES_N = 1006,

// User defined types.
SC_SPEC_TYPE_UDT = 2000
SC_SPEC_TYPE_UDT = 2000,
SC_SPEC_TYPE_UDT_V2 = 2001
};

struct SCSpecTypeOption
Expand Down Expand Up @@ -85,6 +86,11 @@ struct SCSpecTypeUDT
string name<60>;
};

struct SCSpecTypeUDTV2
{
opaque id[8];
};

union SCSpecTypeDef switch (SCSpecType type)
{
case SC_SPEC_TYPE_VAL:
Expand Down Expand Up @@ -121,6 +127,8 @@ case SC_SPEC_TYPE_BYTES_N:
SCSpecTypeBytesN bytesN;
case SC_SPEC_TYPE_UDT:
SCSpecTypeUDT udt;
case SC_SPEC_TYPE_UDT_V2:
SCSpecTypeUDTV2 udtV2;
};

struct SCSpecUDTStructFieldV0
Expand Down
Loading