From 2ba4049554bb0564950e6d9213e01a60fc190f54 Mon Sep 17 00:00:00 2001 From: Jay Geng Date: Mon, 15 Apr 2024 15:18:07 -0400 Subject: [PATCH] Add contract spec type for hash (#182) --- 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; };