|
A simple SIP-10 token. |
|
|
Defines the token with the identifier |
|
|
When a user lacks funds. |
|
|
When a user acts on behalf of another user. |
|
|
Mint 100,000 uExample and send it to the contract deployer. |
|
|
User to user transfering. |
|
|
Amount of tokens being sent. |
|
|
Sender of tokens. |
|
|
Receiver of tokens. |
|
|
Optionally stores arbitrary data. |
|
|
Makes sure sender is the contract caller. |
|
|
Makes sure the sender has the funds. |
|
|
Send the tokens or panic. |
|
|
|
|
The human-readable name of the token. |
|
|
The ticker of the token. |
|
|
Where the decimal point is stored. |
|
|
URL of the manifest (or none). |
|
|
Follows this specification. |
|
|
The total supply of tokens. |
|
|
The balance of a specific user. |
|
|
Create our contract. |
|
|
Now add the source to the contract
located at |
|
|
Enter the REPL. |
|
|
List of contracts and callable functions. |
|
|
Wallets loaded in from |
|
|
Now we can call the public functions. |
|
|
Get the total supply of example. |
|
|
Transfer 100 of our uExample to a random user. |
|