sov-bank

Crates.iosov-bank
lib.rssov-bank
version0.3.0
sourcesrc
created_at2023-05-31 16:36:06.079539
updated_at2023-10-20 17:18:06.993757
descriptionA Sovereign SDK managing fungible tokens
homepagehttps://www.sovereign.xyz
repositoryhttps://github.com/sovereign-labs/sovereign-sdk
max_upload_size
id878978
size74,499
Preston Evans (preston-evans98)

documentation

README

sov-bank module

The sov-bank module is responsible for managing tokens on the rollup.

The sov-bank module offers the following functionality:

Calls:

  1. The CallMessage::CreateToken message creates a new token with an initial balance allocated to the minter. Conceptually a token is a mapping from users addresses to balances. Each token has a name and a unique address created automatically by the sov-bank module during the creation phase.

  2. The CallMessage::Transfer message facilitates the transfer of tokens between two accounts. To initiate the transfer, the sender must provide the beneficiary's account, the amount of tokens to be transferred, and the token address. It is important to note that the sender's account balance must be greater than the amount being transferred.

  3. The CallMessage::Burn message burns the specified amount of tokens.

Commit count: 752

cargo fmt