Skip to content

Instantly share code, notes, and snippets.

View DenisShayahmetov's full-sized avatar

Denis Shayahmetov DenisShayahmetov

View GitHub Profile
pragma solidity ^0.4.21;
contract QZCrowdsale {
address public owner;
uint public fundingGoal;
uint public amountRaised;
uint public deadline;
address[] investors;
mapping(address => uint256) public balanceOf;
bool public fundingGoalReached;
pragma solidity ^0.4.11;
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) constant returns (uint256);
pragma solidity ^0.4.13;
interface token {
function transfer(address receiver, uint256 amount);
function burn(uint256 value);
contract PreQZCrowdSale {
address public beneficiary;
uint public fundingGoal;