Split providers into @polkadot/api-provider (#5)

This commit is contained in:
Jaco Greeff
2017-11-19 10:17:16 +01:00
committed by GitHub
parent 9c9cf1dd91
commit 041347b490
19 changed files with 944 additions and 803 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
# Polkadot JavaScript API
# API wrapper for RPC calls
[![Build Status](https://travis-ci.org/polkadot-js/api.svg?branch=master)](https://travis-ci.org/polkadot-js/api)
[![Coverage Status](https://coveralls.io/repos/github/polkadot-js/api/badge.svg?branch=master)](https://coveralls.io/github/polkadot-js/api?branch=master)
@@ -21,8 +21,9 @@ Initialisation -
```
import Api from '@polkadot/api';
import HttpProvider from '@polkadot/api-provider/http';
const provider = new Api.HttpProvider('http://127.0.0.1:9933');
const provider = new HttpProvider('http://127.0.0.1:9933');
const api = new Api(provider);
```