Skip to content

Instantly share code, notes, and snippets.

pragma solidity 0.4.21;
contract Hourglass {
function transfer(address, uint256) public returns(bool){}
function buy(address) public payable returns(uint256) {}
}
contract Escrow {
struct Job {
bool started;
@p3c-bot
p3c-bot / escrow.sol
Last active February 11, 2019 15:01
pragma solidity 0.4.21;
contract Escrow {
struct Job {
bool started;
bool complete;
bytes32 customerPasswordHash;
uint256 deadline;
uint256 price;
@p3c-bot
p3c-bot / nodefornode.sol
Last active August 10, 2020 00:00
Node for Node Game
pragma solidity ^0.4.21;
/***
* _ _ _ ______ _ _ _
* | \ | | | | | ___| | \ | | | |
* | \| | ___ __| | ___| |_ ___ _ __| \| | ___ __| | ___
* | . ` |/ _ \ / _` |/ _ \ _/ _ \| '__| . ` |/ _ \ / _` |/ _ \
* | |\ | (_) | (_| | __/ || (_) | | | |\ | (_) | (_| | __/
* \_| \_/\___/ \__,_|\___\_| \___/|_| \_| \_/\___/ \__,_|\___|
*
* v 1.0.0
@p3c-bot
p3c-bot / url.js
Last active April 7, 2020 04:14
Implementation of URL
// FOR ALL PURCHASED TO GO THROUGH SINGLE MASTERNODE - REPLACE THIS
// var masternode = "0x0000000000000000000000000000000000000000"
///////////// and comment this out otherwise leave it
var masternode = getURL(window.location.search.substring(1)).ref;
///////////////////////////////////////////////////