pallet_timegraph::pallet::dispatchables

Function deposit

Source
pub fn deposit<T: Config>(amount: BalanceOf<T>)
Expand description

The extrinsic from timegraph allows user to deposit funds into the timegraph account

§Flow

  1. Ensure the origin is a signed account.
  2. Validate the amount is greater than zero.
  3. Ensure the sender .
  4. Transfer the funds.
  5. Increment the deposit sequence number for origin.
  6. Emit a Event::Deposit event.

§Warning: Doc-Only

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