pub fn create_intent_via_governance<T: Config>(
creator_key: T::AccountId,
payload_location: PayloadLocation,
settings: BoundedVec<IntentSetting, T::MaxSchemaSettingsPerSchema>,
intent_name: SchemaNamePayload,
)Expand description
Create an Intent by means of council approval
§Events
§Errors
Error::IntentCountOverflow- The Intent count has exceeded its boundsError::InvalidSetting- Invalid setting is providedError::NameAlreadyExists- The name already existsError::InvalidSchemaNameEncoding- The name has an invalid encodingError::InvalidSchemaNameCharacters- The name contains invalid charactersError::InvalidSchemaNameStructure- The name has an invalid structure (i.e., notprotocol.descriptor)Error::InvalidSchemaNameLength- The name exceeds the allowed overall name lengthError::InvalidSchemaNamespaceLength- The protocol portion of the name exceeds the max allowed lengthError::InvalidSchemaDescriptorLength- The descriptor portion of the name exceeds the max allowed length
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::create_intent_via_governance.