Remove extra_* namespace (#65)
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
// 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 { InterfaceMethodDefinition } from '../types';
|
||||
|
||||
/**
|
||||
@name getBlockNumber
|
||||
@signature extra_getBlockNumber (): BlockNumber
|
||||
@summary Retrieves the best blockNumber
|
||||
@description
|
||||
Returns the best blockNumber available on the client
|
||||
*/
|
||||
module.exports = ({
|
||||
isSubscription: true,
|
||||
inputs: [],
|
||||
output: { type: 'BlockNumber' }
|
||||
}: InterfaceMethodDefinition);
|
||||
@@ -1,19 +0,0 @@
|
||||
// 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 { InterfaceMethodDefinition } from '../types';
|
||||
|
||||
/**
|
||||
@name getClientTime
|
||||
@signature extra_getClientTime (): U64
|
||||
@summary Retrieves the current time
|
||||
@description
|
||||
Returns the current time on the running node
|
||||
*/
|
||||
module.exports = ({
|
||||
isSubscription: true,
|
||||
inputs: [],
|
||||
output: { type: 'U64' }
|
||||
}: InterfaceMethodDefinition);
|
||||
@@ -1,19 +0,0 @@
|
||||
// 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 getBlockNumber = require('./getBlockNumber');
|
||||
const getClientTime = require('./getClientTime');
|
||||
|
||||
/**
|
||||
@summary Extended methods not available in all clients.
|
||||
*/
|
||||
module.exports = ({
|
||||
methods: {
|
||||
getBlockNumber,
|
||||
getClientTime
|
||||
}
|
||||
}: InterfaceDefinition);
|
||||
@@ -7,7 +7,6 @@ import type { InterfaceDefinitions } from './types';
|
||||
|
||||
const author = require('./author');
|
||||
const chain = require('./chain');
|
||||
const extra = require('./extra');
|
||||
const state = require('./state');
|
||||
|
||||
/**
|
||||
@@ -16,6 +15,5 @@ const state = require('./state');
|
||||
module.exports = ({
|
||||
author,
|
||||
chain,
|
||||
extra,
|
||||
state
|
||||
}: InterfaceDefinitions);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// @flow
|
||||
|
||||
export type InterfaceTypes = 'author' | 'chain' | 'extra' | 'state';
|
||||
export type InterfaceTypes = 'author' | 'chain' | 'state';
|
||||
|
||||
export type FormatInputType = 'Bytes' | 'H256' | 'HeaderHash' | 'String';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user