diff --git a/src/generated.rs b/src/generated.rs index b8ee1a76..fbd254c4 100644 --- a/src/generated.rs +++ b/src/generated.rs @@ -40,7 +40,7 @@ pub const XDR_FILES_SHA256: [(&str, &str); 13] = [ ), ( "xdr/Stellar-contract-spec.x", - "f0655f82e0a28a79e067c02f427cc709db1e4323a50c9b85f730f812b9612dbd", + "cf99fae0d9d977d47a83b868cb503948763195e9b326c7778c86070b764a3cbd", ), ( "xdr/Stellar-contract.x", @@ -5003,6 +5003,9 @@ pub use sc_meta_entry::*; mod sc_spec_doc_limit; #[allow(unused_imports)] pub use sc_spec_doc_limit::*; +mod sc_spec_type_name_limit; +#[allow(unused_imports)] +pub use sc_spec_type_name_limit::*; mod sc_spec_type; #[allow(unused_imports)] pub use sc_spec_type::*; diff --git a/src/generated/sc_spec_event_v0.rs b/src/generated/sc_spec_event_v0.rs index 13d0c941..3d5d219c 100644 --- a/src/generated/sc_spec_event_v0.rs +++ b/src/generated/sc_spec_event_v0.rs @@ -8,7 +8,7 @@ use super::*; /// { /// string doc; /// string lib<80>; -/// SCSymbol name; +/// string name; /// SCSymbol prefixTopics<2>; /// SCSpecEventParamV0 params<>; /// SCSpecEventDataFormat dataFormat; @@ -29,7 +29,7 @@ use super::*; pub struct ScSpecEventV0 { pub doc: StringM<1024>, pub lib: StringM<80>, - pub name: ScSymbol, + pub name: StringM<256>, pub prefix_topics: VecM, pub params: VecM, pub data_format: ScSpecEventDataFormat, @@ -42,7 +42,7 @@ impl ReadXdr for ScSpecEventV0 { Ok(Self { doc: StringM::<1024>::read_xdr(r)?, lib: StringM::<80>::read_xdr(r)?, - name: ScSymbol::read_xdr(r)?, + name: StringM::<256>::read_xdr(r)?, prefix_topics: VecM::::read_xdr(r)?, params: VecM::::read_xdr(r)?, data_format: ScSpecEventDataFormat::read_xdr(r)?, @@ -72,7 +72,7 @@ impl WriteXdr for ScSpecEventV0 { pub struct ScSpecEventV0View<'a> { pub doc: StringMView<'a, 1024>, pub lib: StringMView<'a, 80>, - pub name: ScSymbolView<'a>, + pub name: StringMView<'a, 256>, pub prefix_topics: VecMView<'a, ScSymbolView<'a>, 2>, pub params: VecMView<'a, ScSpecEventParamV0View<'a>>, pub data_format: ScSpecEventDataFormat, @@ -85,7 +85,7 @@ impl From<&ScSpecEventV0View<'_>> for ScSpecEventV0 { Self { doc: v.doc.to_stringm(), lib: v.lib.to_stringm(), - name: (&v.name).into(), + name: v.name.to_stringm(), prefix_topics: v.prefix_topics.to_vecm_from(), params: v.params.to_vecm_from(), data_format: v.data_format, @@ -124,7 +124,7 @@ impl ScSpecEventV0View<'_> { w.enter_depth(); w.write_len_prefixed(self.doc.as_slice()); w.write_len_prefixed(self.lib.as_slice()); - self.name.const_write_xdr(w); + w.write_len_prefixed(self.name.as_slice()); { w.enter_depth(); let __s0 = self.prefix_topics.as_slice(); diff --git a/src/generated/sc_spec_type_name_limit.rs b/src/generated/sc_spec_type_name_limit.rs new file mode 100644 index 00000000..4a908fda --- /dev/null +++ b/src/generated/sc_spec_type_name_limit.rs @@ -0,0 +1,10 @@ +#[allow(unused_imports, clippy::wildcard_imports)] +use super::*; + +/// ScSpecTypeNameLimit is an XDR Const defined as: +/// +/// ```text +/// const SC_SPEC_TYPE_NAME_LIMIT = 256; +/// ``` +/// +pub const SC_SPEC_TYPE_NAME_LIMIT: u64 = 256; diff --git a/src/generated/sc_spec_type_udt.rs b/src/generated/sc_spec_type_udt.rs index 82944bfd..8e82354c 100644 --- a/src/generated/sc_spec_type_udt.rs +++ b/src/generated/sc_spec_type_udt.rs @@ -6,7 +6,7 @@ use super::*; /// ```text /// struct SCSpecTypeUDT /// { -/// string name<60>; +/// string name; /// }; /// ``` /// @@ -22,7 +22,7 @@ use super::*; )] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] pub struct ScSpecTypeUdt { - pub name: StringM<60>, + pub name: StringM<256>, } impl ReadXdr for ScSpecTypeUdt { @@ -30,7 +30,7 @@ impl ReadXdr for ScSpecTypeUdt { fn read_xdr(r: &mut Limited) -> Result { r.with_limited_depth(|r| { Ok(Self { - name: StringM::<60>::read_xdr(r)?, + name: StringM::<256>::read_xdr(r)?, }) }) } @@ -50,7 +50,7 @@ impl WriteXdr for ScSpecTypeUdt { /// const contexts and convertible to the owned type via [`From`]/[`Into`]. #[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] pub struct ScSpecTypeUdtView<'a> { - pub name: StringMView<'a, 60>, + pub name: StringMView<'a, 256>, } #[cfg(feature = "alloc")] diff --git a/src/generated/sc_spec_udt_enum_v0.rs b/src/generated/sc_spec_udt_enum_v0.rs index 965e4f30..19282d5c 100644 --- a/src/generated/sc_spec_udt_enum_v0.rs +++ b/src/generated/sc_spec_udt_enum_v0.rs @@ -8,7 +8,7 @@ use super::*; /// { /// string doc; /// string lib<80>; -/// string name<60>; +/// string name; /// SCSpecUDTEnumCaseV0 cases<>; /// }; /// ``` @@ -27,7 +27,7 @@ use super::*; pub struct ScSpecUdtEnumV0 { pub doc: StringM<1024>, pub lib: StringM<80>, - pub name: StringM<60>, + pub name: StringM<256>, pub cases: VecM, } @@ -38,7 +38,7 @@ impl ReadXdr for ScSpecUdtEnumV0 { Ok(Self { doc: StringM::<1024>::read_xdr(r)?, lib: StringM::<80>::read_xdr(r)?, - name: StringM::<60>::read_xdr(r)?, + name: StringM::<256>::read_xdr(r)?, cases: VecM::::read_xdr(r)?, }) }) @@ -64,7 +64,7 @@ impl WriteXdr for ScSpecUdtEnumV0 { pub struct ScSpecUdtEnumV0View<'a> { pub doc: StringMView<'a, 1024>, pub lib: StringMView<'a, 80>, - pub name: StringMView<'a, 60>, + pub name: StringMView<'a, 256>, pub cases: VecMView<'a, ScSpecUdtEnumCaseV0View<'a>>, } diff --git a/src/generated/sc_spec_udt_error_enum_v0.rs b/src/generated/sc_spec_udt_error_enum_v0.rs index 07a96825..4a29ea8e 100644 --- a/src/generated/sc_spec_udt_error_enum_v0.rs +++ b/src/generated/sc_spec_udt_error_enum_v0.rs @@ -8,7 +8,7 @@ use super::*; /// { /// string doc; /// string lib<80>; -/// string name<60>; +/// string name; /// SCSpecUDTErrorEnumCaseV0 cases<>; /// }; /// ``` @@ -27,7 +27,7 @@ use super::*; pub struct ScSpecUdtErrorEnumV0 { pub doc: StringM<1024>, pub lib: StringM<80>, - pub name: StringM<60>, + pub name: StringM<256>, pub cases: VecM, } @@ -38,7 +38,7 @@ impl ReadXdr for ScSpecUdtErrorEnumV0 { Ok(Self { doc: StringM::<1024>::read_xdr(r)?, lib: StringM::<80>::read_xdr(r)?, - name: StringM::<60>::read_xdr(r)?, + name: StringM::<256>::read_xdr(r)?, cases: VecM::::read_xdr(r)?, }) }) @@ -64,7 +64,7 @@ impl WriteXdr for ScSpecUdtErrorEnumV0 { pub struct ScSpecUdtErrorEnumV0View<'a> { pub doc: StringMView<'a, 1024>, pub lib: StringMView<'a, 80>, - pub name: StringMView<'a, 60>, + pub name: StringMView<'a, 256>, pub cases: VecMView<'a, ScSpecUdtErrorEnumCaseV0View<'a>>, } diff --git a/src/generated/sc_spec_udt_struct_v0.rs b/src/generated/sc_spec_udt_struct_v0.rs index daefc73f..ecc0a1e4 100644 --- a/src/generated/sc_spec_udt_struct_v0.rs +++ b/src/generated/sc_spec_udt_struct_v0.rs @@ -8,7 +8,7 @@ use super::*; /// { /// string doc; /// string lib<80>; -/// string name<60>; +/// string name; /// SCSpecUDTStructFieldV0 fields<>; /// }; /// ``` @@ -27,7 +27,7 @@ use super::*; pub struct ScSpecUdtStructV0 { pub doc: StringM<1024>, pub lib: StringM<80>, - pub name: StringM<60>, + pub name: StringM<256>, pub fields: VecM, } @@ -38,7 +38,7 @@ impl ReadXdr for ScSpecUdtStructV0 { Ok(Self { doc: StringM::<1024>::read_xdr(r)?, lib: StringM::<80>::read_xdr(r)?, - name: StringM::<60>::read_xdr(r)?, + name: StringM::<256>::read_xdr(r)?, fields: VecM::::read_xdr(r)?, }) }) @@ -64,7 +64,7 @@ impl WriteXdr for ScSpecUdtStructV0 { pub struct ScSpecUdtStructV0View<'a> { pub doc: StringMView<'a, 1024>, pub lib: StringMView<'a, 80>, - pub name: StringMView<'a, 60>, + pub name: StringMView<'a, 256>, pub fields: VecMView<'a, ScSpecUdtStructFieldV0View<'a>>, } diff --git a/src/generated/sc_spec_udt_union_v0.rs b/src/generated/sc_spec_udt_union_v0.rs index 0fc481ea..43834dac 100644 --- a/src/generated/sc_spec_udt_union_v0.rs +++ b/src/generated/sc_spec_udt_union_v0.rs @@ -8,7 +8,7 @@ use super::*; /// { /// string doc; /// string lib<80>; -/// string name<60>; +/// string name; /// SCSpecUDTUnionCaseV0 cases<>; /// }; /// ``` @@ -27,7 +27,7 @@ use super::*; pub struct ScSpecUdtUnionV0 { pub doc: StringM<1024>, pub lib: StringM<80>, - pub name: StringM<60>, + pub name: StringM<256>, pub cases: VecM, } @@ -38,7 +38,7 @@ impl ReadXdr for ScSpecUdtUnionV0 { Ok(Self { doc: StringM::<1024>::read_xdr(r)?, lib: StringM::<80>::read_xdr(r)?, - name: StringM::<60>::read_xdr(r)?, + name: StringM::<256>::read_xdr(r)?, cases: VecM::::read_xdr(r)?, }) }) @@ -64,7 +64,7 @@ impl WriteXdr for ScSpecUdtUnionV0 { pub struct ScSpecUdtUnionV0View<'a> { pub doc: StringMView<'a, 1024>, pub lib: StringMView<'a, 80>, - pub name: StringMView<'a, 60>, + pub name: StringMView<'a, 256>, pub cases: VecMView<'a, ScSpecUdtUnionCaseV0View<'a>>, } diff --git a/xdr b/xdr index 9c9c1459..46ed9010 160000 --- a/xdr +++ b/xdr @@ -1 +1 @@ -Subproject commit 9c9c145953e80990d6ff1ae3a6a973a0ce6d0694 +Subproject commit 46ed9010e912c2b29d45a5fa4182ebcbd80d2050 diff --git a/xdr-definitions-json/xdr.json b/xdr-definitions-json/xdr.json index a5c73c9c..785d21d1 100644 --- a/xdr-definitions-json/xdr.json +++ b/xdr-definitions-json/xdr.json @@ -19,7 +19,7 @@ }, { "name": "xdr/Stellar-contract-spec.x", - "sha256": "f0655f82e0a28a79e067c02f427cc709db1e4323a50c9b85f730f812b9612dbd" + "sha256": "cf99fae0d9d977d47a83b868cb503948763195e9b326c7778c86070b764a3cbd" }, { "name": "xdr/Stellar-contract.x", @@ -1893,6 +1893,13 @@ "source": "const SC_SPEC_DOC_LIMIT = 1024;", "file_index": 4 }, + { + "kind": "const", + "name": "SC_SPEC_TYPE_NAME_LIMIT", + "value": 256, + "source": "const SC_SPEC_TYPE_NAME_LIMIT = 256;", + "file_index": 4 + }, { "kind": "enum", "name": "SCSpecType", @@ -2124,14 +2131,14 @@ "kind": "struct", "name": "SCSpecTypeUDT", "fixed_size": null, - "source": "struct SCSpecTypeUDT\n{\n string name<60>;\n};", + "source": "struct SCSpecTypeUDT\n{\n string name;\n};", "file_index": 4, "fields": [ { "name": "name", "type": { "kind": "string", - "max_size": 60 + "max_size": 256 } } ] @@ -2358,7 +2365,7 @@ "kind": "struct", "name": "SCSpecUDTStructV0", "fixed_size": null, - "source": "struct SCSpecUDTStructV0\n{\n string doc;\n string lib<80>;\n string name<60>;\n SCSpecUDTStructFieldV0 fields<>;\n};", + "source": "struct SCSpecUDTStructV0\n{\n string doc;\n string lib<80>;\n string name;\n SCSpecUDTStructFieldV0 fields<>;\n};", "file_index": 4, "fields": [ { @@ -2379,7 +2386,7 @@ "name": "name", "type": { "kind": "string", - "max_size": 60 + "max_size": 256 } }, { @@ -2513,7 +2520,7 @@ "kind": "struct", "name": "SCSpecUDTUnionV0", "fixed_size": null, - "source": "struct SCSpecUDTUnionV0\n{\n string doc;\n string lib<80>;\n string name<60>;\n SCSpecUDTUnionCaseV0 cases<>;\n};", + "source": "struct SCSpecUDTUnionV0\n{\n string doc;\n string lib<80>;\n string name;\n SCSpecUDTUnionCaseV0 cases<>;\n};", "file_index": 4, "fields": [ { @@ -2534,7 +2541,7 @@ "name": "name", "type": { "kind": "string", - "max_size": 60 + "max_size": 256 } }, { @@ -2583,7 +2590,7 @@ "kind": "struct", "name": "SCSpecUDTEnumV0", "fixed_size": null, - "source": "struct SCSpecUDTEnumV0\n{\n string doc;\n string lib<80>;\n string name<60>;\n SCSpecUDTEnumCaseV0 cases<>;\n};", + "source": "struct SCSpecUDTEnumV0\n{\n string doc;\n string lib<80>;\n string name;\n SCSpecUDTEnumCaseV0 cases<>;\n};", "file_index": 4, "fields": [ { @@ -2604,7 +2611,7 @@ "name": "name", "type": { "kind": "string", - "max_size": 60 + "max_size": 256 } }, { @@ -2653,7 +2660,7 @@ "kind": "struct", "name": "SCSpecUDTErrorEnumV0", "fixed_size": null, - "source": "struct SCSpecUDTErrorEnumV0\n{\n string doc;\n string lib<80>;\n string name<60>;\n SCSpecUDTErrorEnumCaseV0 cases<>;\n};", + "source": "struct SCSpecUDTErrorEnumV0\n{\n string doc;\n string lib<80>;\n string name;\n SCSpecUDTErrorEnumCaseV0 cases<>;\n};", "file_index": 4, "fields": [ { @@ -2674,7 +2681,7 @@ "name": "name", "type": { "kind": "string", - "max_size": 60 + "max_size": 256 } }, { @@ -2842,7 +2849,7 @@ "kind": "struct", "name": "SCSpecEventV0", "fixed_size": null, - "source": "struct SCSpecEventV0\n{\n string doc;\n string lib<80>;\n SCSymbol name;\n SCSymbol prefixTopics<2>;\n SCSpecEventParamV0 params<>;\n SCSpecEventDataFormat dataFormat;\n};", + "source": "struct SCSpecEventV0\n{\n string doc;\n string lib<80>;\n string name;\n SCSymbol prefixTopics<2>;\n SCSpecEventParamV0 params<>;\n SCSpecEventDataFormat dataFormat;\n};", "file_index": 4, "fields": [ { @@ -2862,8 +2869,8 @@ { "name": "name", "type": { - "kind": "ref", - "name": "SCSymbol" + "kind": "string", + "max_size": 256 } }, { diff --git a/xdr-json/ScSpecEntry.json b/xdr-json/ScSpecEntry.json index 488b6418..37ff3860 100644 --- a/xdr-json/ScSpecEntry.json +++ b/xdr-json/ScSpecEntry.json @@ -119,7 +119,7 @@ } }, "ScSpecEventV0": { - "description": "ScSpecEventV0 is an XDR Struct defined as:\n\n```text struct SCSpecEventV0 { string doc; string lib<80>; SCSymbol name; SCSymbol prefixTopics<2>; SCSpecEventParamV0 params<>; SCSpecEventDataFormat dataFormat; }; ```", + "description": "ScSpecEventV0 is an XDR Struct defined as:\n\n```text struct SCSpecEventV0 { string doc; string lib<80>; string name; SCSymbol prefixTopics<2>; SCSpecEventParamV0 params<>; SCSpecEventDataFormat dataFormat; }; ```", "type": "object", "required": [ "data_format", @@ -140,7 +140,7 @@ "$ref": "#/definitions/StringM<80>" }, "name": { - "$ref": "#/definitions/ScSymbol" + "$ref": "#/definitions/StringM<256>" }, "params": { "type": "array", @@ -391,14 +391,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -437,7 +437,7 @@ } }, "ScSpecUdtEnumV0": { - "description": "ScSpecUdtEnumV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTEnumV0 { string doc; string lib<80>; string name<60>; SCSpecUDTEnumCaseV0 cases<>; }; ```", + "description": "ScSpecUdtEnumV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTEnumV0 { string doc; string lib<80>; string name; SCSpecUDTEnumCaseV0 cases<>; }; ```", "type": "object", "required": [ "cases", @@ -460,7 +460,7 @@ "$ref": "#/definitions/StringM<80>" }, "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -487,7 +487,7 @@ } }, "ScSpecUdtErrorEnumV0": { - "description": "ScSpecUdtErrorEnumV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTErrorEnumV0 { string doc; string lib<80>; string name<60>; SCSpecUDTErrorEnumCaseV0 cases<>; }; ```", + "description": "ScSpecUdtErrorEnumV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTErrorEnumV0 { string doc; string lib<80>; string name; SCSpecUDTErrorEnumCaseV0 cases<>; }; ```", "type": "object", "required": [ "cases", @@ -510,7 +510,7 @@ "$ref": "#/definitions/StringM<80>" }, "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -535,7 +535,7 @@ } }, "ScSpecUdtStructV0": { - "description": "ScSpecUdtStructV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTStructV0 { string doc; string lib<80>; string name<60>; SCSpecUDTStructFieldV0 fields<>; }; ```", + "description": "ScSpecUdtStructV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTStructV0 { string doc; string lib<80>; string name; SCSpecUDTStructFieldV0 fields<>; }; ```", "type": "object", "required": [ "doc", @@ -558,7 +558,7 @@ "$ref": "#/definitions/StringM<80>" }, "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -630,7 +630,7 @@ } }, "ScSpecUdtUnionV0": { - "description": "ScSpecUdtUnionV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTUnionV0 { string doc; string lib<80>; string name<60>; SCSpecUDTUnionCaseV0 cases<>; }; ```", + "description": "ScSpecUdtUnionV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTUnionV0 { string doc; string lib<80>; string name; SCSpecUDTUnionCaseV0 cases<>; }; ```", "type": "object", "required": [ "cases", @@ -653,7 +653,7 @@ "$ref": "#/definitions/StringM<80>" }, "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -665,6 +665,10 @@ "type": "string", "maxLength": 1024 }, + "StringM<256>": { + "type": "string", + "maxLength": 256 + }, "StringM<30>": { "type": "string", "maxLength": 30 diff --git a/xdr-json/ScSpecEventParamV0.json b/xdr-json/ScSpecEventParamV0.json index eb5ed50c..5fbd0347 100644 --- a/xdr-json/ScSpecEventParamV0.json +++ b/xdr-json/ScSpecEventParamV0.json @@ -217,14 +217,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -244,13 +244,13 @@ "type": "string", "maxLength": 1024 }, - "StringM<30>": { + "StringM<256>": { "type": "string", - "maxLength": 30 + "maxLength": 256 }, - "StringM<60>": { + "StringM<30>": { "type": "string", - "maxLength": 60 + "maxLength": 30 } } } \ No newline at end of file diff --git a/xdr-json/ScSpecEventV0.json b/xdr-json/ScSpecEventV0.json index 8b4c64ce..5c85f412 100644 --- a/xdr-json/ScSpecEventV0.json +++ b/xdr-json/ScSpecEventV0.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "ScSpecEventV0", - "description": "ScSpecEventV0 is an XDR Struct defined as:\n\n```text struct SCSpecEventV0 { string doc; string lib<80>; SCSymbol name; SCSymbol prefixTopics<2>; SCSpecEventParamV0 params<>; SCSpecEventDataFormat dataFormat; }; ```", + "description": "ScSpecEventV0 is an XDR Struct defined as:\n\n```text struct SCSpecEventV0 { string doc; string lib<80>; string name; SCSymbol prefixTopics<2>; SCSpecEventParamV0 params<>; SCSpecEventDataFormat dataFormat; }; ```", "type": "object", "required": [ "data_format", @@ -25,7 +25,7 @@ "$ref": "#/definitions/StringM<80>" }, "name": { - "$ref": "#/definitions/ScSymbol" + "$ref": "#/definitions/StringM<256>" }, "params": { "type": "array", @@ -266,14 +266,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -297,6 +297,10 @@ "type": "string", "maxLength": 1024 }, + "StringM<256>": { + "type": "string", + "maxLength": 256 + }, "StringM<30>": { "type": "string", "maxLength": 30 @@ -305,10 +309,6 @@ "type": "string", "maxLength": 32 }, - "StringM<60>": { - "type": "string", - "maxLength": 60 - }, "StringM<80>": { "type": "string", "maxLength": 80 diff --git a/xdr-json/ScSpecFunctionInputV0.json b/xdr-json/ScSpecFunctionInputV0.json index 1063ca41..ff6c8ac6 100644 --- a/xdr-json/ScSpecFunctionInputV0.json +++ b/xdr-json/ScSpecFunctionInputV0.json @@ -205,14 +205,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -232,13 +232,13 @@ "type": "string", "maxLength": 1024 }, - "StringM<30>": { + "StringM<256>": { "type": "string", - "maxLength": 30 + "maxLength": 256 }, - "StringM<60>": { + "StringM<30>": { "type": "string", - "maxLength": 60 + "maxLength": 30 } } } \ No newline at end of file diff --git a/xdr-json/ScSpecFunctionV0.json b/xdr-json/ScSpecFunctionV0.json index ea6fff62..10e23748 100644 --- a/xdr-json/ScSpecFunctionV0.json +++ b/xdr-json/ScSpecFunctionV0.json @@ -237,14 +237,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -268,6 +268,10 @@ "type": "string", "maxLength": 1024 }, + "StringM<256>": { + "type": "string", + "maxLength": 256 + }, "StringM<30>": { "type": "string", "maxLength": 30 @@ -275,10 +279,6 @@ "StringM<32>": { "type": "string", "maxLength": 32 - }, - "StringM<60>": { - "type": "string", - "maxLength": 60 } } } \ No newline at end of file diff --git a/xdr-json/ScSpecTypeDef.json b/xdr-json/ScSpecTypeDef.json index a0d492a5..3e9fc74a 100644 --- a/xdr-json/ScSpecTypeDef.json +++ b/xdr-json/ScSpecTypeDef.json @@ -293,14 +293,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -316,9 +316,9 @@ } } }, - "StringM<60>": { + "StringM<256>": { "type": "string", - "maxLength": 60 + "maxLength": 256 } } } \ No newline at end of file diff --git a/xdr-json/ScSpecTypeMap.json b/xdr-json/ScSpecTypeMap.json index 38f09bc7..b944069f 100644 --- a/xdr-json/ScSpecTypeMap.json +++ b/xdr-json/ScSpecTypeMap.json @@ -201,14 +201,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -224,9 +224,9 @@ } } }, - "StringM<60>": { + "StringM<256>": { "type": "string", - "maxLength": 60 + "maxLength": 256 } } } \ No newline at end of file diff --git a/xdr-json/ScSpecTypeOption.json b/xdr-json/ScSpecTypeOption.json index 74f48476..6e8e6cf2 100644 --- a/xdr-json/ScSpecTypeOption.json +++ b/xdr-json/ScSpecTypeOption.json @@ -197,14 +197,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -220,9 +220,9 @@ } } }, - "StringM<60>": { + "StringM<256>": { "type": "string", - "maxLength": 60 + "maxLength": 256 } } } \ No newline at end of file diff --git a/xdr-json/ScSpecTypeResult.json b/xdr-json/ScSpecTypeResult.json index 5360f226..d6d5fac7 100644 --- a/xdr-json/ScSpecTypeResult.json +++ b/xdr-json/ScSpecTypeResult.json @@ -201,14 +201,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -224,9 +224,9 @@ } } }, - "StringM<60>": { + "StringM<256>": { "type": "string", - "maxLength": 60 + "maxLength": 256 } } } \ No newline at end of file diff --git a/xdr-json/ScSpecTypeTuple.json b/xdr-json/ScSpecTypeTuple.json index 3912f671..eac24584 100644 --- a/xdr-json/ScSpecTypeTuple.json +++ b/xdr-json/ScSpecTypeTuple.json @@ -201,14 +201,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -224,9 +224,9 @@ } } }, - "StringM<60>": { + "StringM<256>": { "type": "string", - "maxLength": 60 + "maxLength": 256 } } } \ No newline at end of file diff --git a/xdr-json/ScSpecTypeUdt.json b/xdr-json/ScSpecTypeUdt.json index 6e47333d..a6cb637e 100644 --- a/xdr-json/ScSpecTypeUdt.json +++ b/xdr-json/ScSpecTypeUdt.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "ScSpecTypeUdt", - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" @@ -11,14 +11,14 @@ "type": "string" }, "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } }, "unevaluatedProperties": false, "definitions": { - "StringM<60>": { + "StringM<256>": { "type": "string", - "maxLength": 60 + "maxLength": 256 } } } \ No newline at end of file diff --git a/xdr-json/ScSpecTypeVec.json b/xdr-json/ScSpecTypeVec.json index abced42f..c0451f69 100644 --- a/xdr-json/ScSpecTypeVec.json +++ b/xdr-json/ScSpecTypeVec.json @@ -197,14 +197,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -220,9 +220,9 @@ } } }, - "StringM<60>": { + "StringM<256>": { "type": "string", - "maxLength": 60 + "maxLength": 256 } } } \ No newline at end of file diff --git a/xdr-json/ScSpecUdtEnumV0.json b/xdr-json/ScSpecUdtEnumV0.json index 538a0d5d..9648b81d 100644 --- a/xdr-json/ScSpecUdtEnumV0.json +++ b/xdr-json/ScSpecUdtEnumV0.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "ScSpecUdtEnumV0", - "description": "ScSpecUdtEnumV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTEnumV0 { string doc; string lib<80>; string name<60>; SCSpecUDTEnumCaseV0 cases<>; }; ```", + "description": "ScSpecUdtEnumV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTEnumV0 { string doc; string lib<80>; string name; SCSpecUDTEnumCaseV0 cases<>; }; ```", "type": "object", "required": [ "cases", @@ -27,7 +27,7 @@ "$ref": "#/definitions/StringM<80>" }, "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } }, "unevaluatedProperties": false, @@ -58,6 +58,10 @@ "type": "string", "maxLength": 1024 }, + "StringM<256>": { + "type": "string", + "maxLength": 256 + }, "StringM<60>": { "type": "string", "maxLength": 60 diff --git a/xdr-json/ScSpecUdtErrorEnumV0.json b/xdr-json/ScSpecUdtErrorEnumV0.json index 67b4f157..07315e7e 100644 --- a/xdr-json/ScSpecUdtErrorEnumV0.json +++ b/xdr-json/ScSpecUdtErrorEnumV0.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "ScSpecUdtErrorEnumV0", - "description": "ScSpecUdtErrorEnumV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTErrorEnumV0 { string doc; string lib<80>; string name<60>; SCSpecUDTErrorEnumCaseV0 cases<>; }; ```", + "description": "ScSpecUdtErrorEnumV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTErrorEnumV0 { string doc; string lib<80>; string name; SCSpecUDTErrorEnumCaseV0 cases<>; }; ```", "type": "object", "required": [ "cases", @@ -27,7 +27,7 @@ "$ref": "#/definitions/StringM<80>" }, "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } }, "unevaluatedProperties": false, @@ -58,6 +58,10 @@ "type": "string", "maxLength": 1024 }, + "StringM<256>": { + "type": "string", + "maxLength": 256 + }, "StringM<60>": { "type": "string", "maxLength": 60 diff --git a/xdr-json/ScSpecUdtStructFieldV0.json b/xdr-json/ScSpecUdtStructFieldV0.json index ef690b09..7c536bd6 100644 --- a/xdr-json/ScSpecUdtStructFieldV0.json +++ b/xdr-json/ScSpecUdtStructFieldV0.json @@ -205,14 +205,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -232,13 +232,13 @@ "type": "string", "maxLength": 1024 }, - "StringM<30>": { + "StringM<256>": { "type": "string", - "maxLength": 30 + "maxLength": 256 }, - "StringM<60>": { + "StringM<30>": { "type": "string", - "maxLength": 60 + "maxLength": 30 } } } \ No newline at end of file diff --git a/xdr-json/ScSpecUdtStructV0.json b/xdr-json/ScSpecUdtStructV0.json index 35db4da9..ffd99cab 100644 --- a/xdr-json/ScSpecUdtStructV0.json +++ b/xdr-json/ScSpecUdtStructV0.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "ScSpecUdtStructV0", - "description": "ScSpecUdtStructV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTStructV0 { string doc; string lib<80>; string name<60>; SCSpecUDTStructFieldV0 fields<>; }; ```", + "description": "ScSpecUdtStructV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTStructV0 { string doc; string lib<80>; string name; SCSpecUDTStructFieldV0 fields<>; }; ```", "type": "object", "required": [ "doc", @@ -27,7 +27,7 @@ "$ref": "#/definitions/StringM<80>" }, "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } }, "unevaluatedProperties": false, @@ -213,14 +213,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -260,13 +260,13 @@ "type": "string", "maxLength": 1024 }, - "StringM<30>": { + "StringM<256>": { "type": "string", - "maxLength": 30 + "maxLength": 256 }, - "StringM<60>": { + "StringM<30>": { "type": "string", - "maxLength": 60 + "maxLength": 30 }, "StringM<80>": { "type": "string", diff --git a/xdr-json/ScSpecUdtUnionCaseTupleV0.json b/xdr-json/ScSpecUdtUnionCaseTupleV0.json index 7f776df9..b94d6d8f 100644 --- a/xdr-json/ScSpecUdtUnionCaseTupleV0.json +++ b/xdr-json/ScSpecUdtUnionCaseTupleV0.json @@ -209,14 +209,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -236,6 +236,10 @@ "type": "string", "maxLength": 1024 }, + "StringM<256>": { + "type": "string", + "maxLength": 256 + }, "StringM<60>": { "type": "string", "maxLength": 60 diff --git a/xdr-json/ScSpecUdtUnionCaseV0.json b/xdr-json/ScSpecUdtUnionCaseV0.json index 697fd4f6..c59a50f7 100644 --- a/xdr-json/ScSpecUdtUnionCaseV0.json +++ b/xdr-json/ScSpecUdtUnionCaseV0.json @@ -214,14 +214,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -281,6 +281,10 @@ "type": "string", "maxLength": 1024 }, + "StringM<256>": { + "type": "string", + "maxLength": 256 + }, "StringM<60>": { "type": "string", "maxLength": 60 diff --git a/xdr-json/ScSpecUdtUnionV0.json b/xdr-json/ScSpecUdtUnionV0.json index 74d90ee6..8700bac7 100644 --- a/xdr-json/ScSpecUdtUnionV0.json +++ b/xdr-json/ScSpecUdtUnionV0.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "ScSpecUdtUnionV0", - "description": "ScSpecUdtUnionV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTUnionV0 { string doc; string lib<80>; string name<60>; SCSpecUDTUnionCaseV0 cases<>; }; ```", + "description": "ScSpecUdtUnionV0 is an XDR Struct defined as:\n\n```text struct SCSpecUDTUnionV0 { string doc; string lib<80>; string name; SCSpecUDTUnionCaseV0 cases<>; }; ```", "type": "object", "required": [ "cases", @@ -27,7 +27,7 @@ "$ref": "#/definitions/StringM<80>" }, "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } }, "unevaluatedProperties": false, @@ -213,14 +213,14 @@ } }, "ScSpecTypeUdt": { - "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name<60>; }; ```", + "description": "ScSpecTypeUdt is an XDR Struct defined as:\n\n```text struct SCSpecTypeUDT { string name; }; ```", "type": "object", "required": [ "name" ], "properties": { "name": { - "$ref": "#/definitions/StringM<60>" + "$ref": "#/definitions/StringM<256>" } } }, @@ -307,6 +307,10 @@ "type": "string", "maxLength": 1024 }, + "StringM<256>": { + "type": "string", + "maxLength": 256 + }, "StringM<60>": { "type": "string", "maxLength": 60 diff --git a/xdr-version b/xdr-version index 0b697893..aff7f3cf 100644 --- a/xdr-version +++ b/xdr-version @@ -1 +1 @@ -9c9c145953e80990d6ff1ae3a6a973a0ce6d0694 \ No newline at end of file +46ed9010e912c2b29d45a5fa4182ebcbd80d2050 \ No newline at end of file