Introduce publicFacingContracts config in all package.jsons, refactor all imports from src in contracts packages

This commit is contained in:
fabioberger
2019-11-11 15:10:15 +00:00
parent bc1dca3f6f
commit 86b76a3e75
123 changed files with 288 additions and 663 deletions

View File

@@ -1,7 +1,9 @@
import * as _ from 'lodash';
import * as process from 'process';
import { blockchainTests, constants, describe, expect } from '../src';
import { expect } from '../src/chai_setup';
import { constants } from '../src/constants';
import { blockchainTests, describe } from '../src/mocha_blockchain';
blockchainTests('mocha blockchain extensions', env => {
describe('blockchainTests()', () => {

View File

@@ -1,4 +1,5 @@
import { blockchainTests, BlockchainTestsEnvironment, expect } from '../../src';
import { expect } from '../../src/chai_setup';
import { blockchainTests, BlockchainTestsEnvironment } from '../../src/mocha_blockchain';
// tslint:disable: no-default-export completed-docs
export function append(env: BlockchainTestsEnvironment): void {

View File

@@ -1,6 +1,7 @@
import { AnyRevertError, StringRevertError } from '@0x/utils';
import { expect } from '../src';
import { expect } from '../src/chai_setup';
import { testWithReferenceFuncAsync } from '../src/test_with_reference';
async function divAsync(x: number, y: number): Promise<number> {