Move to lerna repo (#19)

* Pull api-* packages into lerna repo

* Bootstrap with hoist

* Update jest alias config

* Add api-jsonrpc

* Pull in jsonrpc

* Update badges

* Don't hoist, use workspaces

* .eslintrc to root

* Cleanups, build from root

* Shorthand commands

* Update to @polkadot/dev 0.9.1

* Update description
This commit is contained in:
Jaco Greeff
2017-11-28 18:03:48 +01:00
committed by GitHub
parent bf6880d5b0
commit e8ccc9aa79
64 changed files with 2378 additions and 136 deletions
@@ -0,0 +1,21 @@
// ISC, Copyright 2017 Jaco Greeff
// @flow
import type { InterfaceMethodDefinition } from '../types';
/**
@name getHeader
@signature chain_getHeader (hash: HeaderHash): Header
@summary Retrieves the header for a specific block.
@description
Given a block header specified by `hash`, return the full block `Header` information.
*/
module.exports = ({
inputs: [
{
name: 'hash',
type: 'HeaderHash'
}
],
output: { type: 'Header' }
}: InterfaceMethodDefinition);