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
const JSONPostParser = (parser = null) => ({ result }) => | |
parser && typeof parser === 'function' ? parser(result) : result; | |
const JSONErrorHandler = (handler = null) => e => { | |
if (handler && typeof handler === 'function') { | |
return handler(e); | |
} else { | |
throw Error(e.message); | |
} |
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
import abi from 'ethereumjs-abi'; | |
class AbiFunction { | |
constant; | |
inputs; | |
name; | |
outputs; | |
payable; | |
type; | |
methodInputTypes; |
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
0x5732f471a5408C69E99a49F38Cb4C0Bce0830cE6 |
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
import EthApi from './eth-api' | |
import store from '../store' | |
import * as actionCreator from '../actions/proj-actions' | |
import Utils from './api-helpers' | |
const loadAppState = async () => { | |
const ethApi = new EthApi() | |
console.log('Loading and deploying contracts') | |
await ethApi.loadContracts() | |
await ethApi.deployContract({ | |
_contract: EthApi.projResolver, |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
NewerOlder