Function pallet_schemas::pallet::dispatchables::create_schema_via_governance
source · pub fn create_schema_via_governance<T: Config>(
creator_key: T::AccountId,
model: BoundedVec<u8, T::SchemaModelMaxBytesBoundedVecLimit>,
model_type: ModelType,
payload_location: PayloadLocation,
settings: BoundedVec<SchemaSetting, T::MaxSchemaSettingsPerSchema>
)
Expand description
Create a schema by means of council approval
Events
Errors
Error::LessThanMinSchemaModelBytes
- The schema’s length is less than the minimum schema lengthError::ExceedsMaxSchemaModelBytes
- The schema’s length is greater than the maximum schema lengthError::InvalidSchema
- Schema is malformed in some wayError::SchemaCountOverflow
- The schema count has exceeded its bounds
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
.