Skip to content

Instantly share code, notes, and snippets.

View dworznik's full-sized avatar

Patryk Dwórznik dworznik

  • Seoul, South Korea
  • 23:25 (UTC +09:00)
View GitHub Profile
@dworznik
dworznik / -
Created November 2, 2017 04:46
pragma solidity ^0.4.13;
contract ERC20_ {
uint public totalSupply;
function balanceOf(address who) constant returns (uint);
function allowance(address owner, address spender) constant returns (uint);
function transfer(address to, uint value) returns (bool ok);
function transferFrom(address from, address to, uint value) returns (bool ok);
function approve(address spender, uint value) returns (bool ok);
@dworznik
dworznik / -
Created November 2, 2017 04:38
pragma solidity ^0.4.13;
contract VeritaseumToken {
string public name = "Veritaseum"; // name of the token
string public symbol = "VERI"; // ERC20 compliant 4 digit token code
uint public decimals = 18; // token has 18 digit precision
uint public totalSupply = 100000000 ether; // total supply of 100 Million Tokens
@dworznik
dworznik / -
Created November 1, 2017 16:47
pragma solidity ^0.4.13;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
@dworznik
dworznik / -
Created November 1, 2017 13:26
pragma solidity ^0.4.13;
contract SafeMath_ {
function safeMul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function safeDiv(uint a, uint b) internal returns (uint) {
@dworznik
dworznik / -
Created October 19, 2017 09:55
pragma solidity ^0.4.13;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
@dworznik
dworznik / -
Created October 19, 2017 09:29
pragma solidity ^0.4.13;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function safeDiv(uint a, uint b) internal returns (uint) {
@dworznik
dworznik / -
Created October 19, 2017 08:34
pragma solidity ^0.4.13;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
@dworznik
dworznik / -
Created October 16, 2017 12:43
pragma solidity ^0.4.13;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
pragma solidity ^0.4.13;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
pragma solidity ^0.4.13;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {