Use @polkadot/dev for common tasks (#6)

* Use @polkadot/dev for common tasks

* Use scripts from @polkadot/dev

* js code hints

* Cleanup scripts
This commit is contained in:
Jaco Greeff
2017-11-21 00:20:22 +01:00
committed by GitHub
parent 8bff3d927d
commit 6f80b51d3c
12 changed files with 2287 additions and 256 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ npm install --save @polkadot/api
Initialisation -
```
```js
import Api from '@polkadot/api';
import HttpProvider from '@polkadot/api-provider/http';
@@ -29,7 +29,7 @@ const api = new Api(provider);
Making calls -
```
```js
api.chain
.getHeader('0x1234567890')
.then((header) => console.log(header))
@@ -38,4 +38,4 @@ api.chain
## Available methods
For a list of currently exposed methods, see the [@polkadot/jsonrpc](https://github.com/polkadot-js/jsonrpc) repository.
For a list of currently exposed methods, see the [@polkadot/jsonrpc](https://github.com/polkadot-js/jsonrpc#readme) repository.