Function enlist

Source
pub fn enlist<T: Config>(
    collateral: AuthorAsset<T>,
    fortitude: FortitudeWrapper,
)
Expand description

Enlist the caller as an author by locking the required collateral.

Establishes the caller as an author by placing collateral under the author role commitment.

§Requirements

  • Provided collateral must be at least MinCollateral.
  • Fails if the caller is already enrolled as an author.

§Behavior

  • Locks the required collateral and associates it with the author role.
  • Ensures at least the minimum collateral is maintained.

§Execution Controls

Emits: Event::AuthorEnlisted

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::enlist.