Skip to content

Instantly share code, notes, and snippets.

View ramvi's full-sized avatar

Jon Ramvi ramvi

View GitHub Profile
{
"@context": {
"kompetansespor": "https://gist.githubusercontent.com/username/gist_id/raw/context.jsonld",
"countryOfResidence": {
"@id": "kompetansespor:countryOfResidence",
"@type": "@id"
},
"passport": "kompetansespor:passport",
"dateOfIssue": "kompetansespor:dateOfIssue",
"dateOfExpiry": "kompetansespor:dateOfExpiry",
0x341eAc52B68bd79faA2180D2e7fa14712884e443
pragma solidity ^0.4.16;
contract My1stToken {
/// total amount of tokens
uint256 public totalSupply;
mapping (address => uint256) balances;
string public name; //fancy name: eg Simon Bucks
uint8 public decimals; //How many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like comparing 1 wei to 1 ether.
pragma solidity ^0.4.16;
contract TokenFactorySolution {
// creator -> token address
mapping(address => address[]) public created;
mapping(address => bool) public isMy1stToken; //verify that given address is of this token type
function createToken(uint256 _initialAmount, string _name, uint8 _decimals, string _symbol) returns (address) {
// create a new token with new My1StToken
import "browser/My1stToken.sol";
pragma solidity ^0.4.16;
contract TokenFactorySolution {
mapping(address => address[]) public created;
mapping(address => bool) public isMy1stToken; //verify that given address is of this token type
function createToken(uint256 _initialAmount, string _name, uint8 _decimals, string _symbol) returns (address) {
pragma solidity ^0.4.16;
contract My1stToken {
// TODO storage for total amount of tokens
// TODO storage for the how many tokens all the different accounts have / balances
// TODO storage for name of coin
// TODO storage for how many decimals to show. ie. There could 1000 base units with 3 decimals. Meaning 0.980 SBX = 980 base units. It's like comparing 1 wei to 1 ether.
// TODO storage for the symbol: An identifier eg SBX
0x341eAc52B68bd79faA2180D2e7fa14712884e443

Keybase proof

I hereby claim:

  • I am ramvi on github.
  • I am ramvi (https://keybase.io/ramvi) on keybase.
  • I have a public key whose fingerprint is B204 D23D 315A 4202 C6BE DC9B AB17 7CA5 7217 3523

To claim this, I am signing this object:

Verifying that +ramvi is my Bitcoin username. You can send me #bitcoin here: https://onename.io/ramvi