Crates.io | sov-bank |
lib.rs | sov-bank |
version | 0.3.0 |
source | src |
created_at | 2023-05-31 16:36:06.079539 |
updated_at | 2023-10-20 17:18:06.993757 |
description | A Sovereign SDK managing fungible tokens |
homepage | https://www.sovereign.xyz |
repository | https://github.com/sovereign-labs/sovereign-sdk |
max_upload_size | |
id | 878978 |
size | 74,499 |
sov-bank
moduleThe sov-bank
module is responsible for managing tokens on the rollup.
sov-bank
module offers the following functionality:Calls:
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.
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.
The CallMessage::Burn
message burns the specified amount of tokens.