Workflows of Magnet Network

1. The node monitors the latest block of the relay chain and retrieves the storage state root of the relay chain block. It then calls the order pallet to obtain the OnDemandOrderPlaced event within it, aiming to determine whether an order has been placed, who placed it, and the actual price.

2. When transaction information is generated, the system initially checks for available coretime. If none is found, it proceeds to enter the order process.

3. A double check is conducted to determine if the coretime price threshold or the time threshold has been reached. If either condition is met, a coretime purchase will be initiated.

4. Once the coretime event information indicates that coretime has been obtained, the process transitions to the block packaging phase. At the same time, coretime order information is recorded and the block will be submitted to the relaychain for block verification.

5. The block is synchronized with other nodes, and these nodes verify the block information. Upon successful verification, the block generation is considered complete.

Workflow of TXs generation

  1. When users have sufficient DOT as Gas fees in the Magnet EVM, they can directly deploy contracts or initiate transactions using the Magnet EVM.

  2. If users do not have enough DOT for gas fees in the Magnet EVM, but have sufficient DOT in their Magnet Substrate account, they can perform an Asset Bridge operation to transfer DOT to the Magnet EVM.

  3. Before bridging, an account binding must be performed. This step prepares for the bridge of Token assets (other than DOT).

  4. After account binding, users can transfer DOT between the substrate account and the EVM account via the Asset Bridge for subsequent operations.

  5. If users have no DOT in Magnet, they need to transfer DOT to their Magnet Substrate account via XCM, after which they can continue with their operations.

Last updated