Variable bchVmVersionSchemaConst
bchVmVersionSchema: ZodEnum<
{
BCH_2020_05: "BCH_2020_05";
BCH_2021_05: "BCH_2021_05";
BCH_2022_05: "BCH_2022_05";
BCH_2023_05: "BCH_2023_05";
BCH_2024_05: "BCH_2024_05";
BCH_2025_05: "BCH_2025_05";
BCH_2026_05: "BCH_2026_05";
},
> = ...
Validation schema for a BCH VM version identifier. Defines the set of known BCH VM versions that XO templates declare support for.
Zod's
z.enumrequires the exact values to be defined inline because it needs to know each specific value at compile time to validate against them. Defining the versions here directly satisfies that requirement and allowsz.array(bchVmVersionSchema)to be used elsewhere