Files
api/packages/api-jsonrpc/src/chain/index.js
T
Jaco Greeff 68edc80e82 API Subscriptions (#62)
* Upgrades

* Add getHead & newHead

* Handle pubsub interfaces

* Flow fixes
2018-04-16 09:03:06 +02:00

22 lines
492 B
JavaScript

// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow
import type { InterfaceDefinition } from '../types';
const getHead = require('./getHead');
const getHeader = require('./getHeader');
const newHead = require('./newHead');
/**
@summary Methods to retrieve chain data.
*/
module.exports = ({
methods: {
getHead,
getHeader,
newHead
}
}: InterfaceDefinition);