This file contains hidden or 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
{ | |
"contractName": "GasToken2", | |
"abi": [ | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "name", | |
"outputs": [ | |
{ | |
"name": "", |
This file contains hidden or 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
{ | |
"contractName": "GasToken2", | |
"abi": [ | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "name", | |
"outputs": [ | |
{ | |
"name": "", |
This file contains hidden or 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
{ | |
"contractName": "GasToken2", | |
"abi": [ | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "name", | |
"outputs": [ | |
{ | |
"name": "", |
This file contains hidden or 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
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 |
This file contains hidden or 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
{ | |
"contractName": "Bank", | |
"abi": [ | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "account", | |
"type": "address" | |
} |
This file contains hidden or 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
#!/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')); |
This file contains hidden or 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
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. |
This file contains hidden or 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.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); |
This file contains hidden or 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.5.4; | |
/* https://docs.uniswap.io/smart-contract-integration/interface#factory-interface */ | |
interface IUniswapFactory { | |
// Public Variables | |
// address public exchangeTemplate; | |
function exchangeTemplate() external view returns (address _exchangeTemplate); | |
// uint256 public tokenCount; | |
function tokenCount() external view returns (uint256 _tokenCount); |
This file contains hidden or 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
{ | |
"contractName": "GasToken2", | |
"abi": [ | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "name", | |
"outputs": [ | |
{ | |
"name": "", |