Skip to content

Instantly share code, notes, and snippets.

View nachinius's full-sized avatar
🐻
Working...

nachinius nachinius

🐻
Working...
  • Berlin, DE
  • 03:38 (UTC +01:00)
View GitHub Profile
@nachinius
nachinius / MortalPayableGreeter.solidty
Created December 6, 2018 17:38
A contract that can receive money in its address, can be killed, and is a greeter.
pragma solidity >=0.4.22 <0.6.0;
contract Mortal {
/* Define variable owner of the type address */
address owner;
/* This constructor is executed at initialization and sets the owner of the contract */
constructor() public { owner = msg.sender; }
/* Function to recover the funds on the contract */
pragma solidity >=0.4.22 <0.6.0;
contract Mortal {
/* Define variable owner of the type address */
address owner;
/* This constructor is executed at initialization and sets the owner of the contract */
constructor() public { owner = msg.sender; }
/* Function to recover the funds on the contract */
pragma solidity >=0.4.22 <0.6.0;
contract Mortal {
/* Define variable owner of the type address */
address owner;
/* This constructor is executed at initialization and sets the owner of the contract */
constructor() public { owner = msg.sender; }
/* Function to recover the funds on the contract */
pragma solidity >=0.4.22 <0.6.0;
contract Mortal {
/* Define variable owner of the type address */
address owner;
/* This constructor is executed at initialization and sets the owner of the contract */
constructor() public { owner = msg.sender; }
/* Function to recover the funds on the contract */
class TestNestedJsonParserTest extends FreeSpec {
"test" in {
case class User(name: String, friends: Seq[User])
lazy val reader: Reads[User] = {
(
(JsPath \ "name").read[String] and
(JsPath \ "friends").lazyRead(Reads.seq[User](reader))
@nachinius
nachinius / MoneyEater.sol
Created January 16, 2019 12:47
A ethereum contract, which can be owned, has a creator, receives mony on address, and can spread, and withdraw
pragma solidity ^0.5.2;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address payable _owner;
address payable _creator;
pragma solidity ^0.5.2;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address payable _owner;
address payable _creator;
pragma solidity ^0.5.2;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address payable _owner;
address payable _creator;
pragma solidity ^0.5.2;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address payable _owner;
address payable _creator;
pragma solidity ^0.5.2;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address payable _owner;
address payable _creator;