Remove extra_* namespace (#65)

This commit is contained in:
Jaco Greeff
2018-04-16 16:27:17 +02:00
committed by GitHub
parent e39a362993
commit e592f4787e
11 changed files with 17 additions and 81 deletions
@@ -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);
-19
View File
@@ -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);
-2
View File
@@ -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);
+1 -1
View File
@@ -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';