Skip to content

Instantly share code, notes, and snippets.

View Matleo's full-sized avatar

Matthias Leopold Matleo

  • IVF Hartmann
  • Neuhausen
View GitHub Profile
@Matleo
Matleo / tekken_onthefly.sol
Created October 24, 2018 14:49
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.25+commit.59dbf8f1.js&optimize=false&gist=
pragma solidity ^0.4.25;
contract owned {
address public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner {
@Matleo
Matleo / tekken_interface
Created October 18, 2018 12:24
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.25+commit.59dbf8f1.js&optimize=false&gist=
pragma solidity ^0.4.7;
contract TekkenInterface{
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals;
uint256 public sellPrice;
uint256 public buyPrice;
uint256 public totalSupply;
@Matleo
Matleo / buy_ERC20.sol
Created October 17, 2018 14:23
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.25+commit.59dbf8f1.js&optimize=false&gist=
pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {