Skip to content

Instantly share code, notes, and snippets.

View bitdollarfund's full-sized avatar

Bitdollar Fund bitdollarfund

View GitHub Profile
@bitdollarfund
bitdollarfund / BTDVesting1Yr.sol
Created June 2, 2018 17:54
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 './Token.sol';
import './SafeMath.sol';
/**
* @title BTDVesting1Yr
* @dev BTDVesting1Yr is a token holder contract that allows the specified beneficiary
* to claim stored tokens after 3 month intervals
*/
pragma solidity 0.4.18;
import './Token.sol';
import './SafeMath.sol';
/**
* @title BTDVesting4Wk
* @dev BTDVesting4Wk is a token holder contract that allows the specified beneficiary
* to claim stored tokens after 1 week intervals
*/
pragma solidity 0.4.18;
import './Token.sol';
import './SafeMath.sol';
/**
* @title BTDVesting1Yr
* @dev BTDVesting1Yr is a token holder contract that allows the specified beneficiary
* to claim stored tokens after 3 month intervals
*/
pragma solidity 0.4.18;
import './Token.sol';
import './SafeMath.sol';
/**
* @title BTDVesting2Yr
* @dev BTDVesting2Yr is a token holder contract that allows the specified beneficiary
* to claim stored tokens after 6 month intervals
*/
pragma solidity 0.4.18;
contract Token { // ERC20 standard
function balanceOf(address _owner) constant public returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
function approve(address _spender, uint256 _value) public returns (bool success);
function allowance(address _owner, address _spender) constant public returns (uint256 remaining);
pragma solidity 0.4.18;
contract SafeMath {
function safeMul(uint a, uint b) internal pure returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
pragma solidity 0.4.18;
import './StandardToken.sol';
contract BTD is StandardToken {
// FIELDS
pragma solidity 0.4.18;
import './SafeMath.sol';
import './Token.sol';
contract StandardToken is Token, SafeMath {
uint256 public totalSupply;
pragma solidity ^0.4.18;
contract owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {