ethers.js/src.ts/index.ts

67 lines
962 B
TypeScript
Raw Normal View History

2018-06-13 22:39:39 +03:00
'use strict';
2018-06-22 09:07:57 +03:00
// This is empty in node, and used by browserify to inject extra goodies
import {} from './utils/shims';
2018-06-22 09:07:57 +03:00
2018-06-13 22:39:39 +03:00
import { Contract, Interface } from './contracts';
import * as providers from './providers';
2018-06-18 12:42:41 +03:00
import { getNetwork } from './providers/networks';
import * as utils from './utils';
2018-06-13 22:39:39 +03:00
import { HDNode, SigningKey, Wallet } from './wallet';
import * as wordlists from './wordlists';
2018-06-13 22:39:39 +03:00
2018-07-16 07:09:13 +03:00
import * as types from './utils/types';
import * as errors from './utils/errors';
import { version } from './_version';
2018-06-13 22:39:39 +03:00
const constants = utils.constants;
2018-06-13 22:39:39 +03:00
export {
Wallet,
HDNode,
SigningKey,
Contract,
Interface,
2018-06-18 12:42:41 +03:00
getNetwork,
2018-06-13 22:39:39 +03:00
providers,
types,
2018-06-13 22:39:39 +03:00
errors,
constants,
2018-06-13 22:39:39 +03:00
utils,
wordlists,
2018-06-19 09:12:57 +03:00
version
2018-06-13 22:39:39 +03:00
};
2018-07-16 07:39:29 +03:00
export const ethers = {
Wallet,
HDNode,
SigningKey,
2018-06-13 22:39:39 +03:00
Contract,
Interface,
2018-06-13 22:39:39 +03:00
getNetwork,
providers,
2018-06-13 22:39:39 +03:00
types,
errors,
constants,
utils,
2018-06-13 22:39:39 +03:00
wordlists,
2018-06-13 22:39:39 +03:00
version
2018-06-13 22:39:39 +03:00
}