Don't export object literal because the docs cannot yet render them, moved type to types file
This commit is contained in:
parent
9ab6ab1bf9
commit
34df5af295
@ -9,6 +9,9 @@
|
|||||||
{
|
{
|
||||||
"note": "Add `getNodeTypeAsync` method",
|
"note": "Add `getNodeTypeAsync` method",
|
||||||
"pr": 812
|
"pr": 812
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"notes": "Stop exporting uniqueVersionIds object"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
export { Web3Wrapper, uniqueVersionIds, NodeType } from './web3_wrapper';
|
export { Web3Wrapper } from './web3_wrapper';
|
||||||
export { Web3WrapperErrors } from './types';
|
export { Web3WrapperErrors, NodeType } from './types';
|
||||||
export { marshaller } from './marshaller';
|
export { marshaller } from './marshaller';
|
||||||
|
@ -57,3 +57,9 @@ export interface TxDataRPC extends CallTxDataBaseRPC {
|
|||||||
export interface CallDataRPC extends CallTxDataBaseRPC {
|
export interface CallDataRPC extends CallTxDataBaseRPC {
|
||||||
from?: string;
|
from?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NodeType represents the type of the backing Ethereum node.
|
||||||
|
export enum NodeType {
|
||||||
|
Geth = 'GETH',
|
||||||
|
Ganache = 'GANACHE',
|
||||||
|
}
|
||||||
|
@ -22,24 +22,18 @@ import {
|
|||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
import { marshaller } from './marshaller';
|
import { marshaller } from './marshaller';
|
||||||
import { BlockWithoutTransactionDataRPC, BlockWithTransactionDataRPC, Web3WrapperErrors } from './types';
|
import { BlockWithoutTransactionDataRPC, BlockWithTransactionDataRPC, NodeType, Web3WrapperErrors } from './types';
|
||||||
import { utils } from './utils';
|
import { utils } from './utils';
|
||||||
|
|
||||||
const BASE_TEN = 10;
|
const BASE_TEN = 10;
|
||||||
|
|
||||||
// These are unique identifiers contained in the response of the
|
// These are unique identifiers contained in the response of the
|
||||||
// web3_clientVersion call.
|
// web3_clientVersion call.
|
||||||
export const uniqueVersionIds = {
|
const uniqueVersionIds = {
|
||||||
geth: 'Geth',
|
geth: 'Geth',
|
||||||
ganache: 'EthereumJS TestRPC',
|
ganache: 'EthereumJS TestRPC',
|
||||||
};
|
};
|
||||||
|
|
||||||
// NodeType represents the type of the backing Ethereum node.
|
|
||||||
export enum NodeType {
|
|
||||||
Geth = 'GETH',
|
|
||||||
Ganache = 'GANACHE',
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An alternative to the Web3.js library that provides a consistent, clean, promise-based interface.
|
* An alternative to the Web3.js library that provides a consistent, clean, promise-based interface.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user