Skip to content

Instantly share code, notes, and snippets.

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

nachinius nachinius

🐻
Working...
  • Berlin, DE
  • 03:12 (UTC +01:00)
View GitHub Profile
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".
* @dev The God
*/
contract GodOwner {
address payable _owner;
pragma solidity 0.5.3;
contract Addressable {
address payable public target;
function addressSet(address payable y) public {
target = y;
}
}
@nachinius
nachinius / Payable.sol
Created January 31, 2019 19:16
/** * Can receive money. * Can be stolen. * Payable at address. */
pragma solidity 0.5.3;
/**
* Can receive money.
* Can be stolen.
* Payable at address.
*/
contract Beta {
function stealMyEth() public {
@nachinius
nachinius / nonPayable.sol
Created January 31, 2019 19:15
/** * Can receive money. * Can be stolen. * Non payable at address. */
pragma solidity 0.5.3;
/**
* Can receive money.
* Can be stolen.
* Non payable at address.
*/
contract Alfa {
function stealMyEth() public {
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;
@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;
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))