This repository has been archived by the owner on Jul 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into fix/dev-tools-pages/finalTouches
* development: (49 commits) upgrade to ddex api v3 (#1507) Add new deployment related instructions to pipeline README (#1499) feature: implement logging and friendly wallet name for Opera Fix prettier Add missing dependencies Remove second yarn call Add .gitkeep Rename sol-trace-based-tools-common to sol-tracing-utils Update packages/sol-trace/README.md Update packages/sol-trace/CHANGELOG.json Update packages/sol-trace-based-tools-common/src/source_maps.ts Update packages/sol-trace-based-tools-common/CHANGELOG.json Update packages/sol-profiler/CHANGELOG.json Update packages/sol-coverage/CHANGELOG.json Update packages/monorepo-scripts/src/test_installation.ts chore: changelog update fix: account for undefined errors in promisify, not only null Clean up docs before publish In README's, don't mention non-existent tests (#1497) fix: use getBackendBaseUrl instead of hardcoded string ...
- Loading branch information
Showing
167 changed files
with
1,631 additions
and
722 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
command: sudo npm install --global [email protected] | ||
- run: | ||
name: yarn | ||
command: yarn --frozen-lockfile --ignore-engines install || yarn --frozen-lockfile --ignore-engines install | ||
command: yarn --frozen-lockfile --ignore-engines install | ||
- run: yarn build:ci:no_website | ||
- run: yarn build:ts | ||
- save_cache: | ||
|
@@ -118,7 +118,7 @@ jobs: | |
- run: yarn wsrun test:circleci @0x/order-utils | ||
- run: yarn wsrun test:circleci @0x/order-watcher | ||
- run: yarn wsrun test:circleci @0x/sol-compiler | ||
- run: yarn wsrun test:circleci @0x/sol-cov | ||
- run: yarn wsrun test:circleci @0x/sol-tracing-utils | ||
- run: yarn wsrun test:circleci @0x/sol-doc | ||
- run: yarn wsrun test:circleci @0x/subproviders | ||
- run: yarn wsrun test:circleci @0x/web3-wrapper | ||
|
@@ -169,9 +169,9 @@ jobs: | |
paths: | ||
- ~/repo/packages/sol-compiler/coverage/lcov.info | ||
- save_cache: | ||
key: coverage-sol-cov-{{ .Environment.CIRCLE_SHA1 }} | ||
key: coverage-sol-tracing-utils-{{ .Environment.CIRCLE_SHA1 }} | ||
paths: | ||
- ~/repo/packages/sol-cov/coverage/lcov.info | ||
- ~/repo/packages/sol-tracing-utils/coverage/lcov.info | ||
- save_cache: | ||
key: coverage-sol-doc-{{ .Environment.CIRCLE_SHA1 }} | ||
paths: | ||
|
@@ -335,7 +335,7 @@ jobs: | |
- coverage-sol-compiler-{{ .Environment.CIRCLE_SHA1 }} | ||
- restore_cache: | ||
keys: | ||
- coverage-sol-cov-{{ .Environment.CIRCLE_SHA1 }} | ||
- coverage-sol-tracing-utils-{{ .Environment.CIRCLE_SHA1 }} | ||
- restore_cache: | ||
keys: | ||
- coverage-sol-doc-{{ .Environment.CIRCLE_SHA1 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { BigNumber } from '@0x/utils'; | ||
|
||
import { AssetBuyerError } from './types'; | ||
|
||
/** | ||
* Error class representing insufficient asset liquidity | ||
*/ | ||
export class InsufficientAssetLiquidityError extends Error { | ||
/** | ||
* The amount availabe to fill (in base units) factoring in slippage. | ||
*/ | ||
public amountAvailableToFill: BigNumber; | ||
/** | ||
* @param amountAvailableToFill The amount availabe to fill (in base units) factoring in slippage | ||
*/ | ||
constructor(amountAvailableToFill: BigNumber) { | ||
super(AssetBuyerError.InsufficientAssetLiquidity); | ||
this.amountAvailableToFill = amountAvailableToFill; | ||
// Setting prototype so instanceof works. See https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work | ||
Object.setPrototypeOf(this, InsufficientAssetLiquidityError.prototype); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.