merge v2-prototype
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1531919263,
|
||||
"version": "0.5.4",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1531149657,
|
||||
"version": "0.5.3",
|
||||
|
||||
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v0.5.4 - _July 18, 2018_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v0.5.3 - _July 9, 2018_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0xproject/sol-compiler",
|
||||
"version": "0.5.3",
|
||||
"version": "0.5.4",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -53,7 +53,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/0xProject/0x-monorepo/packages/sol-compiler/README.md",
|
||||
"devDependencies": {
|
||||
"@0xproject/dev-utils": "^0.4.5",
|
||||
"@0xproject/dev-utils": "^0.4.6",
|
||||
"@0xproject/monorepo-scripts": "^0.2.2",
|
||||
"@0xproject/tslint-config": "^0.4.21",
|
||||
"@types/mkdirp": "^0.5.2",
|
||||
@@ -68,7 +68,7 @@
|
||||
"npm-run-all": "^4.1.2",
|
||||
"nyc": "^11.0.1",
|
||||
"shx": "^0.2.2",
|
||||
"tslint": "5.8.0",
|
||||
"tslint": "5.11.0",
|
||||
"typedoc": "0xProject/typedoc",
|
||||
"types-bn": "^0.0.1",
|
||||
"typescript": "2.7.1",
|
||||
@@ -77,17 +77,16 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@0xproject/assert": "0.2.13",
|
||||
"@0xproject/json-schemas": "0.8.2",
|
||||
"@0xproject/json-schemas": "0.8.3",
|
||||
"@0xproject/sol-resolver": "^0.0.8",
|
||||
"@0xproject/types": "^0.8.2",
|
||||
"@0xproject/typescript-typings": "^0.4.2",
|
||||
"@0xproject/utils": "^0.7.2",
|
||||
"@0xproject/web3-wrapper": "^0.7.2",
|
||||
"@0xproject/typescript-typings": "^0.4.3",
|
||||
"@0xproject/utils": "^0.7.3",
|
||||
"@0xproject/web3-wrapper": "^0.7.3",
|
||||
"@types/yargs": "^11.0.0",
|
||||
"ethereum-types": "^0.0.2",
|
||||
"chalk": "^2.3.0",
|
||||
"ethereumjs-util": "^5.1.1",
|
||||
"isomorphic-fetch": "^2.2.1",
|
||||
"lodash": "^4.17.4",
|
||||
"mkdirp": "^0.5.1",
|
||||
"require-from-string": "^2.0.1",
|
||||
|
||||
@@ -8,11 +8,10 @@ import {
|
||||
Resolver,
|
||||
URLResolver,
|
||||
} from '@0xproject/sol-resolver';
|
||||
import { logUtils } from '@0xproject/utils';
|
||||
import { fetchAsync, logUtils } from '@0xproject/utils';
|
||||
import chalk from 'chalk';
|
||||
import * as ethUtil from 'ethereumjs-util';
|
||||
import * as fs from 'fs';
|
||||
import 'isomorphic-fetch';
|
||||
import * as _ from 'lodash';
|
||||
import * as path from 'path';
|
||||
import * as requireFromString from 'require-from-string';
|
||||
@@ -59,13 +58,13 @@ const CONFIG_FILE = 'compiler.json';
|
||||
* to artifact files.
|
||||
*/
|
||||
export class Compiler {
|
||||
private _resolver: Resolver;
|
||||
private _nameResolver: NameResolver;
|
||||
private _contractsDir: string;
|
||||
private _compilerSettings: solc.CompilerSettings;
|
||||
private _artifactsDir: string;
|
||||
private _solcVersionIfExists: string | undefined;
|
||||
private _specifiedContracts: string[] | TYPE_ALL_FILES_IDENTIFIER;
|
||||
private readonly _resolver: Resolver;
|
||||
private readonly _nameResolver: NameResolver;
|
||||
private readonly _contractsDir: string;
|
||||
private readonly _compilerSettings: solc.CompilerSettings;
|
||||
private readonly _artifactsDir: string;
|
||||
private readonly _solcVersionIfExists: string | undefined;
|
||||
private readonly _specifiedContracts: string[] | TYPE_ALL_FILES_IDENTIFIER;
|
||||
/**
|
||||
* Instantiates a new instance of the Compiler class.
|
||||
* @return An instance of the Compiler class.
|
||||
@@ -149,7 +148,7 @@ export class Compiler {
|
||||
} else {
|
||||
logUtils.log(`Downloading ${fullSolcVersion}...`);
|
||||
const url = `${constants.BASE_COMPILER_URL}${fullSolcVersion}`;
|
||||
const response = await fetch(url);
|
||||
const response = await fetchAsync(url);
|
||||
const SUCCESS_STATUS = 200;
|
||||
if (response.status !== SUCCESS_STATUS) {
|
||||
throw new Error(`Failed to load ${fullSolcVersion}`);
|
||||
|
||||
@@ -12,7 +12,7 @@ import { constants } from './util/constants';
|
||||
const expect = chai.expect;
|
||||
|
||||
describe('#Compiler', function(): void {
|
||||
this.timeout(constants.timeoutMs);
|
||||
this.timeout(constants.timeoutMs); // tslint:disable-line:no-invalid-this
|
||||
const artifactsDir = `${__dirname}/fixtures/artifacts`;
|
||||
const contractsDir = `${__dirname}/fixtures/contracts`;
|
||||
const exchangeArtifactPath = `${artifactsDir}/Exchange.json`;
|
||||
|
||||
Reference in New Issue
Block a user