Skip to content

Commit

Permalink
Add contract spec type for hash (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayz22 authored Apr 15, 2024
1 parent 9b19baf commit e93d612
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Stellar-contract-spec.x
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum SCSpecType
SC_SPEC_TYPE_MAP = 1004,
SC_SPEC_TYPE_TUPLE = 1005,
SC_SPEC_TYPE_BYTES_N = 1006,
SC_SPEC_TYPE_HASH = 1007,

// User defined types.
SC_SPEC_TYPE_UDT = 2000
Expand Down Expand Up @@ -79,6 +80,11 @@ struct SCSpecTypeBytesN
uint32 n;
};

struct SCSpectTypeHash
{
uint32 n;
};

struct SCSpecTypeUDT
{
string name<60>;
Expand Down Expand Up @@ -117,6 +123,8 @@ case SC_SPEC_TYPE_TUPLE:
SCSpecTypeTuple tuple;
case SC_SPEC_TYPE_BYTES_N:
SCSpecTypeBytesN bytesN;
case SC_SPEC_TYPE_HASH:
SCSpectTypeHash hash;
case SC_SPEC_TYPE_UDT:
SCSpecTypeUDT udt;
};
Expand Down

0 comments on commit e93d612

Please sign in to comment.