This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from web3 import Web3 | |
import json | |
from web3.providers.rpc import HTTPProvider | |
CONTRACT_ABI = ''' | |
[{"constant": false,"inputs": [{"name": "hash","type": "bytes32"}],"name": "apply","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [{"name": "email","type": "string"}],"name": "getApplicationID","outputs": [{"name": "","type": "uint256"}],"payable": false,"stateMutability": "view","type": "function"}] | |
''' | |
CONTRACT_ADDRESS = '0xcbbfbafedb0eb83016d2a96a4e80d30b20fa3e30' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import web3 | |
from web3 import Web3, HTTPProvider, TestRPCProvider | |
from solc import compile_source | |
from web3.contract import ConciseContract | |
#w3 = Web3(TestRPCProvider()) | |
etherscan_provider = Web3.HTTPProvider( 'https://api.etherscan.io/api') | |
w3 = Web3(etherscan_provider) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.13; | |
contract NotaryPersistentStorage { | |
mapping (bytes32 => bool) private proofs; | |
function NotaryStorage() { | |
} | |
function storeProof(bytes32 _proof) public returns (bool) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nginx.conf | |
upstream django { | |
# connect to this socket | |
# server unix:///tmp/uwsgi.sock; # for a file socket | |
server 127.0.0.1:8001; # for a web port socket | |
} | |
server { | |
# the port your site will be served on | |
listen 8000; |
NewerOlder