From 59fae84e7385bf726aa4768f97beca02470a6e23 Mon Sep 17 00:00:00 2001 From: Jay Geng Date: Fri, 12 Apr 2024 17:24:36 -0400 Subject: [PATCH] Add contract spec type for hash --- Stellar-contract-spec.x | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Stellar-contract-spec.x b/Stellar-contract-spec.x index 6988a63..5d3e029 100644 --- a/Stellar-contract-spec.x +++ b/Stellar-contract-spec.x @@ -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 @@ -79,6 +80,11 @@ struct SCSpecTypeBytesN uint32 n; }; +struct SCSpectTypeHash +{ + uint32 n; +}; + struct SCSpecTypeUDT { string name<60>; @@ -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; };