Skip to content

Instantly share code, notes, and snippets.

@goastoman
goastoman / multipleTokenTimelock.sol
Last active June 22, 2018 12:22
MultipleTokenTimelock.sol
pragma solidity 0.4.24;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
contract MultipleTokenTimelock {
// SafeERC20 contains safe methods which throw instead of returning false.
using SafeERC20 for ERC20;
pragma solidity ^0.4.18;
/**
* @title Simple Voting
*/
contract SimpleVoting {
string public votingName;
string[] public variants;
@goastoman
goastoman / CrowdSale.sol
Last active March 5, 2018 09:33
SimpleToken
pragma solidity ^0.4.18;
import "zeppelin-solidity/contracts/token/StandardToken.sol";
import "./SimpleToken.sol";
import "./WhiteListable.sol";
import "zeppelin-solidity/contracts/lifecycle/Pausable.sol";
@goastoman
goastoman / App.js
Created March 2, 2018 09:37
Lottery
import React, { Component } from 'react';
import './App.css';
import web3 from './web3.js';
import lottery from './lottery.js';
class App extends Component {
state = {
manager : '',
players : [],
balance : '',
@goastoman
goastoman / ico.sol
Created February 18, 2018 11:37
preico/ico
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
@goastoman
goastoman / preico
Created February 16, 2018 10:27
preico
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
0x4f207eaE259c0353Adbd0d50e541EA1eC8C71D9c
@goastoman
goastoman / list.php
Created January 27, 2018 09:06
AmoCRM
$subdomain = 'ХХХ.com'; #Наш аккаунт - поддомен
/*
Подключаемся
*/
$link='https://'.$subdomain.'.amocrm.ru/private/api/v2/json/leads/list';
$curl=curl_init();
@goastoman
goastoman / SCT.sol
Created January 22, 2018 10:21
Simple Coin Token
pragma solidity ^0.4.18;
contract Ownable {
address public owner;
function Ownable() public {
owner = msg.sender;
}
@goastoman
goastoman / geth
Created January 21, 2018 06:03
Setting Up geth console
brew update
brew upgrade
brew tap ethereum/ethereum
brew install cpp-ethereum
brew linkapps cpp-ethereum
//get the way to binar
export PATH=*YOURWAYTOBIN*:$PATH