pub fn create_intent<T: Config>(
intent_name: SchemaNamePayload,
payload_location: PayloadLocation,
settings: BoundedVec<IntentSetting, T::MaxSchemaSettingsPerSchema>,
)Expand description
Creates a new Intent with a name (testnet)
§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.