Skip to content

Instantly share code, notes, and snippets.

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
@nikita-fuchs
nikita-fuchs / StarambaToken.sol
Created August 29, 2018 17:18
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
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.