Skip to content

Instantly share code, notes, and snippets.

pragma solidity 0.5.4;
/* https://docs.uniswap.io/smart-contract-integration/interface#exchange-interface */
interface IUniswapExchange {
// Address of ERC20 token sold on this exchange
function tokenAddress() external view returns (address token);
// Address of Uniswap Factory
function factoryAddress() external view returns (address factory);
Collecting vyper==0.1.0b4 (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/b3/45/220ddcb3dc72ad50d104398c9605afac9e7c2d2386dcd9189a9cee24966a/vyper-0.1.0b4-py3-none-any.whl
Collecting web3==4.4.1 (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/9a/37/240392b6c966f97be53f0a097b77979dddf86e7b75141e142fffad4483f8/web3-4.4.1-py3-none-any.whl
Collecting eth-tester[py-evm]==0.1.0b33 (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/ce/fe/2c31120840f049e04ea4ad45d6ffe3ef96eb86e01b7b6430ca8206343f09/eth_tester-0.1.0b33-py3-none-any.whl
Collecting pytest (from -r requirements.txt (line 4))
Using cached https://files.pythonhosted.org/packages/51/b2/2fa8e8b179c792c457c2f7800f1313bfbd34f515e3a833e6083121844c14/pytest-4.3.0-py2.py3-none-any.whl
Collecting pycryptodome<4,>=3.5.1 (from vyper==0.1.0b4->-r requirements.txt (line 1))
Collecting eth-hash[pycryptodome] (from web3==4.4.1->-r requirements.
#!/usr/bin/env node
const fs = require('fs');
const semver = require('semver');
// node sol-compiler-json-to-truffle.js inputFilename
const inputFilename = process.argv[2];
console.error('Converting ' + inputFilename + ' to a truffle artifact...');
const inputObj = JSON.parse(fs.readFileSync(inputFilename, 'utf8'));
@BlinkyStitt
BlinkyStitt / Bank.json
Created February 7, 2019 20:47
This crashses ganache 2
{
"contractName": "Bank",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "account",
"type": "address"
}
@BlinkyStitt
BlinkyStitt / gist:d1536bf19ff754c2bbc0f3d6aa0508e2
Created February 4, 2019 02:44
external compile abi validation failure
my output:
{"contractName":"BankTeller","abi":[{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"setBank","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addWhitelisted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"setGasToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_addresses","type":"address[]"},{"name":"_calldatas","type":"bytes[]"}],"name":"encodeContractCalls","outputs":[{"name":"script","type":"bytes"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"removeWhitelisted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name
{
"contractName": "GasToken2",
"abi": [
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
{
"contractName": "GasToken2",
"abi": [
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
{
"contractName": "GasToken2",
"abi": [
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
# I put commit f14b54de (https://github.com/kvhnuke/etherwallet/commit/f14b54deaead01d42c0288e4da1d83086dca0ded) up at https://gateway.ipfs.io/ipfs/QmdqK6pHSFN3Q2eAUi1k9yC91H6hZRxvut7jBHkrZZ4PZf.
# Don't trust me? Good, you shouldn't. Verify yourself with these 2 commands
$ git clone --depth 1 https://github.com/kvhnuke/etherwallet.git
$ ipfs add --recursive etherwallet/dist
97.87 KB / ? added QmaqgRA1gr3bgkddRG8GEoaM6mLVVoXQRXwWUMz3xr1QGu dist/README.md
added QmV1Np7u48tGF4W6NtkqBqGGGyMBX9KD3ieSvmEyJyKuBS dist/bin/startMEW.js
added QmUbEXo4bAou54JE74NFnzxUdUxSFf6BupYPwhmGw46QDr dist/contest.html
added QmQwTpJGf5AmLfwpJjmNFBeTLwi5BbzxgRD99JMhMmK6Eg dist/css/etherwallet-master.min.css
# docker-compose up -d
# docker-compose exec runner bash
# # gitlab-runner register
# # vi /etc/gitlab-runner/config.toml
#concurrent = $LIMIT
#check_interval = 0
#
#[[runners]]
# name = "$HOST"