pub fn create_schema_via_governance_v2<T: Config>(
    creator_key: T::AccountId,
    model: BoundedVec<u8, T::SchemaModelMaxBytesBoundedVecLimit>,
    model_type: ModelType,
    payload_location: PayloadLocation,
    settings: BoundedVec<SchemaSetting, T::MaxSchemaSettingsPerSchema>,
    schema_name: Option<SchemaNamePayload>,
)Expand description
Create a schema by means of council approval
§Events
§Errors
- Error::LessThanMinSchemaModelBytes- The schema’s length is less than the minimum schema length
- Error::ExceedsMaxSchemaModelBytes- The schema’s length is greater than the maximum schema length
- Error::InvalidSchema- Schema is malformed in some way
- Error::SchemaCountOverflow- The schema count has exceeded its bounds
- Error::InvalidSchemaNameEncoding- The schema name has invalid encoding
- Error::InvalidSchemaNameCharacters- The schema name has invalid characters
- Error::InvalidSchemaNameStructure- The schema name has invalid structure
- Error::InvalidSchemaNameLength- The schema name has invalid length
- Error::InvalidSchemaNamespaceLength- The schema namespace has invalid length
- Error::InvalidSchemaDescriptorLength- The schema descriptor has invalid length
- Error::ExceedsMaxNumberOfVersions- The schema name reached max number of versions
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::create_schema_via_governance_v2.