This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include "List.aes" | |
contract SomeBasicToken = | |
record state = { | |
balances: map(address, int)} // define map for balances | |
stateful entrypoint init() : state = { | |
balances = {[Call.caller] = 1337}} // give the deployer some tokens | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
import "https://github.com/staramba/com.staramba.token.STT/StandardToken.sol"; | |
import "https://github.com/staramba/com.staramba.token.STT/RelocationToken.sol"; | |
/** | |
* @title The STT Token contract. | |
* | |
* By Nikita Fuchs | |
* Credit: Taking ideas from BAT token, NET token and Nimiq token. |