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 | |
gp_abi = json.loads('[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_owner","internalType":"address payable"},{"type":"address","name":"_batchExchange","internalType":"address"},{"type":"address","name":"_epochTokenLocker","internalType":"address"},{"type":"address[]","name":"_factoryWhitelist","internalType":"address[]"},{"type":"address","name":"_WETH","internalType":"address"},{"type":"address","name":"_oracleCreater","internalType":"contract OracleCreator"}]},{"type":"event","name":"NewOrder","inputs":[{"type":"uint256","name":"_orderIndex","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"PlacedExactTrade","inputs":[{"type":"uint16","name":"_gpOrderID","internalType":"uint16","indexed":false},{"type":"uint16","name":"buyToken","internalType":"uint16","indexed":false},{"type":"uint16","name":"sellToken","internalType":"uint16","indexed":false},{"type":"uint32","name":"validFrom","internalType":"uint32","indexed":fal |
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 eth_utils import address | |
from web3 import Web3 | |
from abis import gp_abi, be_abi | |
import requests | |
import pandas as pd | |
from datetime import datetime | |
from brownie import Wei | |
w3 = Web3(Web3.HTTPProvider("https://xdai-archive.blockscout.com/")) |
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 | |
import pandas as pd | |
from abi import voting_machine_abi | |
w3 = Web3(Web3.HTTPProvider('https://mainnet.infura.io/v3/INFURA_KEY')) | |
VOTING_MACHINE_0 = '0x1C18bAd5a3ee4e96611275B13a8ed062B4a13055' | |
VOTING_MACHINE_1 = '0x332B8C9734b4097dE50f302F7D9F273FFdB45B84' |