3 releases (breaking)
0.3.0 | Oct 20, 2023 |
---|---|
0.2.0 | Sep 14, 2023 |
0.1.0 | May 31, 2023 |
#47 in #balance
68 downloads per month
Used in 3 crates
(2 directly)
305KB
6K
SLoC
sov-bank
module
The sov-bank
module is responsible for managing tokens on the rollup.
The sov-bank
module offers the following functionality:
Calls:
-
The
CallMessage::CreateToken
message creates a newtoken
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 thesov-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.
Dependencies
~7–21MB
~319K SLoC