Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Commit

Permalink
Updated labels api -> abi
Browse files Browse the repository at this point in the history
  • Loading branch information
tinybike committed Aug 15, 2017
1 parent 2c8e45e commit 86617b9
Show file tree
Hide file tree
Showing 16 changed files with 30,522 additions and 32,556 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://travis-ci.org/ethereumjs/ethereumjs-connect.svg)](https://travis-ci.org/ethereumjs/ethereumjs-connect) [![Coverage Status](https://coveralls.io/repos/ethereumjs/ethereumjs-connect/badge.svg?branch=master&service=github)](https://coveralls.io/github/ethereumjs/ethereumjs-connect?branch=master) [![npm version](https://badge.fury.io/js/ethereumjs-connect.svg)](http://badge.fury.io/js/ethereumjs-connect)

ethereumjs-connect automates a few basic Ethereum network connection tasks: looks up the network ID, the coinbase address, sets the `from` field for transaction objects, and (optionally) will setup functions and events APIs for use with [ethrpc](https://github.com/AugurProject/ethrpc). For examples of contracts and API inputs, see [augur-contracts](https://github.com/AugurProject/augur-contracts). (Important note: the static API setup in ethereumjs-connect is not yet compatible with [web3](https://github.com/ethereum/web3)!)
ethereumjs-connect automates a few basic Ethereum network connection tasks: looks up the network ID, the coinbase address, sets the `from` field for transaction objects, and (optionally) will setup functions and events ABIs for use with [ethrpc](https://github.com/AugurProject/ethrpc). For examples of contracts and API inputs, see [augur-contracts](https://github.com/AugurProject/augur-contracts). (Important note: the static API setup in ethereumjs-connect is not yet compatible with [web3](https://github.com/ethereum/web3)!)

## Usage

Expand Down Expand Up @@ -52,7 +52,7 @@ connector.connect({http: "https://eth3.augur.net", ws: "ws://ws.augur.net"}, fun
By default, `vitals.coinbase` is used to set the `from` field for outgoing transactions. However, you can manually set it to something else (for example, for client-side transactions):

```javascript
info.api.functions = connector.setFrom(info.api.functions, "0x0000000000000000000000000000000000000b0b");
info.abi.functions = connector.setFrom(info.abi.functions, "0x0000000000000000000000000000000000000b0b");
```

## Tests
Expand Down
Loading

0 comments on commit 86617b9

Please sign in to comment.