Skip to content

Instantly share code, notes, and snippets.

View janfilips's full-sized avatar
🏅
ETH Zürich - Academic Visitor

Jan Filips janfilips

🏅
ETH Zürich - Academic Visitor
  • 14:32 (UTC +03:00)
View GitHub Profile
import os
import sys
import time
import json
import web3
from web3.auto import w3
from web3 import Web3, Account
pragma solidity ^0.4.24;
contract Notary {
address public jan = 0x45f5c8b556c3f2887b50184c823d1223f41a4156;
address public investor = 0x33c42ED630e29B939EB9cAc3B8AbfA1a711EA1f0;
address NotaryPersistentStorageAddress = 0x8439dacB099826eba3c56A8B2d3A15F108a89552;
pragma solidity ^0.4.24;
contract DollarAuction {
address player;
uint public price;
uint public playersCount;
mapping(address => uint) playersBids;
mapping(uint => address) players;
@janfilips
janfilips / oraclizeRandomOrg.sol
Created December 26, 2018 22:13
working oraclized dice contract with random.org
pragma solidity ^0.5.0;
import "github.com/oraclize/ethereum-api/oraclizeAPI.sol";
contract Dice is usingOraclize {
uint minimumBet;
// The oraclize callback structure: we use several oraclize calls.
// All oraclize calls will result in a common callback to __callback(...).