Merge branch 'development' into feature/instant/usd-eth-toggle
This commit is contained in:
		@@ -18,6 +18,7 @@ jobs:
 | 
				
			|||||||
                  name: yarn
 | 
					                  name: yarn
 | 
				
			||||||
                  command: yarn --frozen-lockfile install || yarn --frozen-lockfile install
 | 
					                  command: yarn --frozen-lockfile install || yarn --frozen-lockfile install
 | 
				
			||||||
            - run: yarn build:ci:no_website
 | 
					            - run: yarn build:ci:no_website
 | 
				
			||||||
 | 
					            - run: yarn build:ts
 | 
				
			||||||
            - save_cache:
 | 
					            - save_cache:
 | 
				
			||||||
                  key: repo-{{ .Environment.CIRCLE_SHA1 }}
 | 
					                  key: repo-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
                  paths:
 | 
					                  paths:
 | 
				
			||||||
@@ -190,6 +191,9 @@ jobs:
 | 
				
			|||||||
            - image: 0xorg/ganache-cli
 | 
					            - image: 0xorg/ganache-cli
 | 
				
			||||||
              command: |
 | 
					              command: |
 | 
				
			||||||
                  ganache-cli --gasLimit 10000000 --noVMErrorsOnRPCResponse --db /snapshot --noVMErrorsOnRPCResponse -p 8545 --networkId 50 -m "concert load couple harbor equip island argue ramp clarify fence smart topic"
 | 
					                  ganache-cli --gasLimit 10000000 --noVMErrorsOnRPCResponse --db /snapshot --noVMErrorsOnRPCResponse -p 8545 --networkId 50 -m "concert load couple harbor equip island argue ramp clarify fence smart topic"
 | 
				
			||||||
 | 
					            - image: 0xorg/launch-kit-ci
 | 
				
			||||||
 | 
					              command: |
 | 
				
			||||||
 | 
					                  yarn start:ts -p 3000:3000
 | 
				
			||||||
        steps:
 | 
					        steps:
 | 
				
			||||||
            - checkout
 | 
					            - checkout
 | 
				
			||||||
            - run: sudo chown -R circleci:circleci /usr/local/bin
 | 
					            - run: sudo chown -R circleci:circleci /usr/local/bin
 | 
				
			||||||
@@ -201,6 +205,11 @@ jobs:
 | 
				
			|||||||
                      cd python-packages/order_utils
 | 
					                      cd python-packages/order_utils
 | 
				
			||||||
                      python -m ensurepip
 | 
					                      python -m ensurepip
 | 
				
			||||||
                      python -m pip install -e .[dev]
 | 
					                      python -m pip install -e .[dev]
 | 
				
			||||||
 | 
					            - run:
 | 
				
			||||||
 | 
					                  command: |
 | 
				
			||||||
 | 
					                      cd python-packages/sra_client
 | 
				
			||||||
 | 
					                      python -m ensurepip
 | 
				
			||||||
 | 
					                      python -m pip install -e .
 | 
				
			||||||
            - save_cache:
 | 
					            - save_cache:
 | 
				
			||||||
                  key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
 | 
					                  key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
                  paths:
 | 
					                  paths:
 | 
				
			||||||
@@ -214,10 +223,18 @@ jobs:
 | 
				
			|||||||
                  command: |
 | 
					                  command: |
 | 
				
			||||||
                      cd python-packages/order_utils
 | 
					                      cd python-packages/order_utils
 | 
				
			||||||
                      coverage run setup.py test
 | 
					                      coverage run setup.py test
 | 
				
			||||||
 | 
					            - run:
 | 
				
			||||||
 | 
					                  command: |
 | 
				
			||||||
 | 
					                      cd python-packages/sra_client
 | 
				
			||||||
 | 
					                      coverage run setup.py test
 | 
				
			||||||
            - save_cache:
 | 
					            - save_cache:
 | 
				
			||||||
                  key: coverage-python-order-utils-{{ .Environment.CIRCLE_SHA1 }}
 | 
					                  key: coverage-python-order-utils-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
                  paths:
 | 
					                  paths:
 | 
				
			||||||
                      - ~/repo/python-packages/order_utils/.coverage
 | 
					                      - ~/repo/python-packages/order_utils/.coverage
 | 
				
			||||||
 | 
					            - save_cache:
 | 
				
			||||||
 | 
					                  key: coverage-python-sra-client-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					                  paths:
 | 
				
			||||||
 | 
					                      - ~/repo/python-packages/sra_client/.coverage
 | 
				
			||||||
    test-rest-python:
 | 
					    test-rest-python:
 | 
				
			||||||
        working_directory: ~/repo
 | 
					        working_directory: ~/repo
 | 
				
			||||||
        docker:
 | 
					        docker:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,8 +25,9 @@ Visit our [developer portal](https://0xproject.com/docs/order-utils) for a compr
 | 
				
			|||||||
### Python Packages
 | 
					### Python Packages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| Package                                          | Version                                                                                               | Description                                                                                       |
 | 
					| Package                                          | Version                                                                                               | Description                                                                                       |
 | 
				
			||||||
| --------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
 | 
					| ------------------------------------------------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
 | 
				
			||||||
| [`0x-order-utils.py`](/python-packages/order_utils) | [](https://pypi.org/project/0x-order-utils/) | A set of utilities for generating, parsing, signing and validating 0x orders |
 | 
					| [`0x-order-utils`](/python-packages/order_utils) | [](https://pypi.org/project/0x-order-utils/) | A set of utilities for generating, parsing, signing and validating 0x orders                      |
 | 
				
			||||||
 | 
					| [`0x-sra-client`](/python-packages/sra_client)   | [](https://pypi.org/project/0x-sra-client/)   | A Python client for interacting with servers conforming to the Standard Relayer API specification |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Typescript/Javascript Packages
 | 
					### Typescript/Javascript Packages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										11
									
								
								contracts/examples/CHANGELOG.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								contracts/examples/CHANGELOG.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "timestamp": 1544741676,
 | 
				
			||||||
 | 
					        "version": "1.0.2",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
							
								
								
									
										10
									
								
								contracts/examples/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								contracts/examples/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<!--
 | 
				
			||||||
 | 
					changelogUtils.file is auto-generated using the monorepo-scripts package. Don't edit directly.
 | 
				
			||||||
 | 
					Edit the package's CHANGELOG.json file only.
 | 
				
			||||||
 | 
					-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v1.0.2 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "private": true,
 | 
					 | 
				
			||||||
    "name": "@0x/contracts-examples",
 | 
					    "name": "@0x/contracts-examples",
 | 
				
			||||||
    "version": "1.0.0",
 | 
					    "version": "1.0.2",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -33,13 +32,13 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/examples/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/examples/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/contracts-test-utils": "^1.0.0",
 | 
					        "@0x/abi-gen": "^1.0.19",
 | 
				
			||||||
        "@0x/abi-gen": "^1.0.17",
 | 
					        "@0x/contracts-test-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.19",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/sol-compiler": "^1.1.14",
 | 
					        "@0x/sol-compiler": "^1.1.16",
 | 
				
			||||||
        "@0x/sol-cov": "^2.1.14",
 | 
					        "@0x/sol-cov": "^2.1.16",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/bn.js": "^4.11.0",
 | 
					        "@types/bn.js": "^4.11.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/node": "*",
 | 
					        "@types/node": "*",
 | 
				
			||||||
@@ -48,8 +47,8 @@
 | 
				
			|||||||
        "chai-as-promised": "^7.1.0",
 | 
					        "chai-as-promised": "^7.1.0",
 | 
				
			||||||
        "chai-bignumber": "^2.0.1",
 | 
					        "chai-bignumber": "^2.0.1",
 | 
				
			||||||
        "dirty-chai": "^2.0.1",
 | 
					        "dirty-chai": "^2.0.1",
 | 
				
			||||||
        "make-promises-safe": "^1.1.0",
 | 
					 | 
				
			||||||
        "ethereumjs-abi": "0.6.5",
 | 
					        "ethereumjs-abi": "0.6.5",
 | 
				
			||||||
 | 
					        "make-promises-safe": "^1.1.0",
 | 
				
			||||||
        "mocha": "^4.1.0",
 | 
					        "mocha": "^4.1.0",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
@@ -60,20 +59,20 @@
 | 
				
			|||||||
        "yargs": "^10.0.3"
 | 
					        "yargs": "^10.0.3"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/contracts-interfaces": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-multisig": "^1.0.0",
 | 
					        "@0x/contracts-libs": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-utils": "^1.0.0",
 | 
					        "@0x/contracts-multisig": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-tokens": "^1.0.0",
 | 
					        "@0x/contracts-tokens": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-libs": "^1.0.0",
 | 
					        "@0x/contracts-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-interfaces": "^1.0.0",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "@types/js-combinatorics": "^0.5.29",
 | 
					        "@types/js-combinatorics": "^0.5.29",
 | 
				
			||||||
        "bn.js": "^4.11.8",
 | 
					        "bn.js": "^4.11.8",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethereumjs-util": "^5.1.1",
 | 
					        "ethereumjs-util": "^5.1.1",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										11
									
								
								contracts/extensions/CHANGELOG.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								contracts/extensions/CHANGELOG.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "timestamp": 1544741676,
 | 
				
			||||||
 | 
					        "version": "1.0.2",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
							
								
								
									
										10
									
								
								contracts/extensions/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								contracts/extensions/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<!--
 | 
				
			||||||
 | 
					changelogUtils.file is auto-generated using the monorepo-scripts package. Don't edit directly.
 | 
				
			||||||
 | 
					Edit the package's CHANGELOG.json file only.
 | 
				
			||||||
 | 
					-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v1.0.2 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
							
								
								
									
										31
									
								
								contracts/extensions/DEPLOYS.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								contracts/extensions/DEPLOYS.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,31 @@
 | 
				
			|||||||
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name": "Forwarder",
 | 
				
			||||||
 | 
					        "version": "1.1.0",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Round up when calculating remaining amounts in marketBuy functions",
 | 
				
			||||||
 | 
					                "pr": 1162,
 | 
				
			||||||
 | 
					                "networks": {
 | 
				
			||||||
 | 
					                    "1": "0x5468a1dc173652ee28d249c271fa9933144746b1",
 | 
				
			||||||
 | 
					                    "3": "0x2240dab907db71e64d3e0dba4800c83b5c502d4e",
 | 
				
			||||||
 | 
					                    "42": "0x17992e4ffb22730138e4b62aaa6367fa9d3699a6"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name": "Forwarder",
 | 
				
			||||||
 | 
					        "version": "1.0.0",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "protocol v2 deploy",
 | 
				
			||||||
 | 
					                "networks": {
 | 
				
			||||||
 | 
					                    "1": "0x7afc2d5107af94c462a194d2c21b5bdd238709d6",
 | 
				
			||||||
 | 
					                    "3": "0x3983e204b12b3c02fb0638caf2cd406a62e0ead3",
 | 
				
			||||||
 | 
					                    "42": "0xd85e2fa7e7e252b27b01bf0d65c946959d2f45b8"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "private": true,
 | 
					 | 
				
			||||||
    "name": "@0x/contracts-extensions",
 | 
					    "name": "@0x/contracts-extensions",
 | 
				
			||||||
    "version": "1.0.0",
 | 
					    "version": "1.0.2",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -19,8 +18,7 @@
 | 
				
			|||||||
        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
					        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
				
			||||||
        "test:profiler": "SOLIDITY_PROFILER=true run-s build run_mocha profiler:report:html",
 | 
					        "test:profiler": "SOLIDITY_PROFILER=true run-s build run_mocha profiler:report:html",
 | 
				
			||||||
        "test:trace": "SOLIDITY_REVERT_TRACE=true run-s build run_mocha",
 | 
					        "test:trace": "SOLIDITY_REVERT_TRACE=true run-s build run_mocha",
 | 
				
			||||||
        "run_mocha":
 | 
					        "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
				
			||||||
            "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
					 | 
				
			||||||
        "compile": "sol-compiler --contracts-dir contracts",
 | 
					        "compile": "sol-compiler --contracts-dir contracts",
 | 
				
			||||||
        "clean": "shx rm -rf lib generated-artifacts generated-wrappers",
 | 
					        "clean": "shx rm -rf lib generated-artifacts generated-wrappers",
 | 
				
			||||||
        "generate_contract_wrappers": "abi-gen --abis  ${npm_package_config_abis} --template ../../node_modules/@0x/abi-gen-templates/contract.handlebars --partials '../../node_modules/@0x/abi-gen-templates/partials/**/*.handlebars' --output generated-wrappers --backend ethers",
 | 
					        "generate_contract_wrappers": "abi-gen --abis  ${npm_package_config_abis} --template ../../node_modules/@0x/abi-gen-templates/contract.handlebars --partials '../../node_modules/@0x/abi-gen-templates/partials/**/*.handlebars' --output generated-wrappers --backend ethers",
 | 
				
			||||||
@@ -45,13 +43,13 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/contracts-test-utils": "^1.0.0",
 | 
					        "@0x/abi-gen": "^1.0.19",
 | 
				
			||||||
        "@0x/abi-gen": "^1.0.17",
 | 
					        "@0x/contracts-test-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.19",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/sol-compiler": "^1.1.14",
 | 
					        "@0x/sol-compiler": "^1.1.16",
 | 
				
			||||||
        "@0x/sol-cov": "^2.1.14",
 | 
					        "@0x/sol-cov": "^2.1.16",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/bn.js": "^4.11.0",
 | 
					        "@types/bn.js": "^4.11.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/node": "*",
 | 
					        "@types/node": "*",
 | 
				
			||||||
@@ -60,8 +58,8 @@
 | 
				
			|||||||
        "chai-as-promised": "^7.1.0",
 | 
					        "chai-as-promised": "^7.1.0",
 | 
				
			||||||
        "chai-bignumber": "^2.0.1",
 | 
					        "chai-bignumber": "^2.0.1",
 | 
				
			||||||
        "dirty-chai": "^2.0.1",
 | 
					        "dirty-chai": "^2.0.1",
 | 
				
			||||||
        "make-promises-safe": "^1.1.0",
 | 
					 | 
				
			||||||
        "ethereumjs-abi": "0.6.5",
 | 
					        "ethereumjs-abi": "0.6.5",
 | 
				
			||||||
 | 
					        "make-promises-safe": "^1.1.0",
 | 
				
			||||||
        "mocha": "^4.1.0",
 | 
					        "mocha": "^4.1.0",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
@@ -72,20 +70,20 @@
 | 
				
			|||||||
        "yargs": "^10.0.3"
 | 
					        "yargs": "^10.0.3"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/contracts-interfaces": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-utils": "^1.0.0",
 | 
					        "@0x/contracts-libs": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-protocol": "^2.1.56",
 | 
					        "@0x/contracts-protocol": "^2.1.59",
 | 
				
			||||||
        "@0x/contracts-tokens": "^1.0.0",
 | 
					        "@0x/contracts-tokens": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-libs": "^1.0.0",
 | 
					        "@0x/contracts-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-interfaces": "^1.0.0",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "@types/js-combinatorics": "^0.5.29",
 | 
					        "@types/js-combinatorics": "^0.5.29",
 | 
				
			||||||
        "bn.js": "^4.11.8",
 | 
					        "bn.js": "^4.11.8",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethereumjs-util": "^5.1.1",
 | 
					        "ethereumjs-util": "^5.1.1",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										11
									
								
								contracts/interfaces/CHANGELOG.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								contracts/interfaces/CHANGELOG.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "timestamp": 1544741676,
 | 
				
			||||||
 | 
					        "version": "1.0.2",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
							
								
								
									
										10
									
								
								contracts/interfaces/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								contracts/interfaces/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<!--
 | 
				
			||||||
 | 
					changelogUtils.file is auto-generated using the monorepo-scripts package. Don't edit directly.
 | 
				
			||||||
 | 
					Edit the package's CHANGELOG.json file only.
 | 
				
			||||||
 | 
					-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v1.0.2 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "private": true,
 | 
					 | 
				
			||||||
    "name": "@0x/contracts-interfaces",
 | 
					    "name": "@0x/contracts-interfaces",
 | 
				
			||||||
    "version": "1.0.0",
 | 
					    "version": "1.0.2",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -30,9 +29,9 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/interfaces/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/interfaces/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/abi-gen": "^1.0.17",
 | 
					        "@0x/abi-gen": "^1.0.19",
 | 
				
			||||||
        "@0x/sol-compiler": "^1.1.14",
 | 
					        "@0x/sol-compiler": "^1.1.16",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
        "solhint": "^1.4.1",
 | 
					        "solhint": "^1.4.1",
 | 
				
			||||||
@@ -41,14 +40,14 @@
 | 
				
			|||||||
        "yargs": "^10.0.3"
 | 
					        "yargs": "^10.0.3"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/contracts-utils": "^1.0.0",
 | 
					        "@0x/contracts-libs": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-libs": "^1.0.0",
 | 
					        "@0x/contracts-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "publishConfig": {
 | 
					    "publishConfig": {
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										11
									
								
								contracts/libs/CHANGELOG.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								contracts/libs/CHANGELOG.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "timestamp": 1544741676,
 | 
				
			||||||
 | 
					        "version": "1.0.2",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
							
								
								
									
										10
									
								
								contracts/libs/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								contracts/libs/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<!--
 | 
				
			||||||
 | 
					changelogUtils.file is auto-generated using the monorepo-scripts package. Don't edit directly.
 | 
				
			||||||
 | 
					Edit the package's CHANGELOG.json file only.
 | 
				
			||||||
 | 
					-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v1.0.2 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "private": true,
 | 
					 | 
				
			||||||
    "name": "@0x/contracts-libs",
 | 
					    "name": "@0x/contracts-libs",
 | 
				
			||||||
    "version": "1.0.0",
 | 
					    "version": "1.0.2",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -19,8 +18,7 @@
 | 
				
			|||||||
        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
					        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
				
			||||||
        "test:profiler": "SOLIDITY_PROFILER=true run-s build run_mocha profiler:report:html",
 | 
					        "test:profiler": "SOLIDITY_PROFILER=true run-s build run_mocha profiler:report:html",
 | 
				
			||||||
        "test:trace": "SOLIDITY_REVERT_TRACE=true run-s build run_mocha",
 | 
					        "test:trace": "SOLIDITY_REVERT_TRACE=true run-s build run_mocha",
 | 
				
			||||||
        "run_mocha":
 | 
					        "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
				
			||||||
            "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
					 | 
				
			||||||
        "compile": "sol-compiler --contracts-dir contracts",
 | 
					        "compile": "sol-compiler --contracts-dir contracts",
 | 
				
			||||||
        "clean": "shx rm -rf lib generated-artifacts generated-wrappers",
 | 
					        "clean": "shx rm -rf lib generated-artifacts generated-wrappers",
 | 
				
			||||||
        "generate_contract_wrappers": "abi-gen --abis  ${npm_package_config_abis} --template ../../node_modules/@0x/abi-gen-templates/contract.handlebars --partials '../../node_modules/@0x/abi-gen-templates/partials/**/*.handlebars' --output generated-wrappers --backend ethers",
 | 
					        "generate_contract_wrappers": "abi-gen --abis  ${npm_package_config_abis} --template ../../node_modules/@0x/abi-gen-templates/contract.handlebars --partials '../../node_modules/@0x/abi-gen-templates/partials/**/*.handlebars' --output generated-wrappers --backend ethers",
 | 
				
			||||||
@@ -45,13 +43,13 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/libs/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/libs/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/contracts-test-utils": "^1.0.0",
 | 
					        "@0x/abi-gen": "^1.0.19",
 | 
				
			||||||
        "@0x/abi-gen": "^1.0.17",
 | 
					        "@0x/contracts-test-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.19",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/sol-compiler": "^1.1.14",
 | 
					        "@0x/sol-compiler": "^1.1.16",
 | 
				
			||||||
        "@0x/sol-cov": "^2.1.14",
 | 
					        "@0x/sol-cov": "^2.1.16",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/bn.js": "^4.11.0",
 | 
					        "@types/bn.js": "^4.11.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/node": "*",
 | 
					        "@types/node": "*",
 | 
				
			||||||
@@ -60,8 +58,8 @@
 | 
				
			|||||||
        "chai-as-promised": "^7.1.0",
 | 
					        "chai-as-promised": "^7.1.0",
 | 
				
			||||||
        "chai-bignumber": "^2.0.1",
 | 
					        "chai-bignumber": "^2.0.1",
 | 
				
			||||||
        "dirty-chai": "^2.0.1",
 | 
					        "dirty-chai": "^2.0.1",
 | 
				
			||||||
        "make-promises-safe": "^1.1.0",
 | 
					 | 
				
			||||||
        "ethereumjs-abi": "0.6.5",
 | 
					        "ethereumjs-abi": "0.6.5",
 | 
				
			||||||
 | 
					        "make-promises-safe": "^1.1.0",
 | 
				
			||||||
        "mocha": "^4.1.0",
 | 
					        "mocha": "^4.1.0",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
@@ -72,17 +70,17 @@
 | 
				
			|||||||
        "yargs": "^10.0.3"
 | 
					        "yargs": "^10.0.3"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/contracts-multisig": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-multisig": "^1.0.0",
 | 
					        "@0x/contracts-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-utils": "^1.0.0",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "@types/js-combinatorics": "^0.5.29",
 | 
					        "@types/js-combinatorics": "^0.5.29",
 | 
				
			||||||
        "bn.js": "^4.11.8",
 | 
					        "bn.js": "^4.11.8",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethereumjs-util": "^5.1.1",
 | 
					        "ethereumjs-util": "^5.1.1",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1,11 @@
 | 
				
			|||||||
[]
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "timestamp": 1544741676,
 | 
				
			||||||
 | 
					        "version": "1.0.2",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								contracts/multisig/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								contracts/multisig/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<!--
 | 
				
			||||||
 | 
					changelogUtils.file is auto-generated using the monorepo-scripts package. Don't edit directly.
 | 
				
			||||||
 | 
					Edit the package's CHANGELOG.json file only.
 | 
				
			||||||
 | 
					-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v1.0.2 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "private": true,
 | 
					 | 
				
			||||||
    "name": "@0x/contracts-multisig",
 | 
					    "name": "@0x/contracts-multisig",
 | 
				
			||||||
    "version": "1.0.0",
 | 
					    "version": "1.0.2",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -44,13 +43,13 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/multisig/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/multisig/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/contracts-test-utils": "^1.0.0",
 | 
					        "@0x/abi-gen": "^1.0.19",
 | 
				
			||||||
        "@0x/abi-gen": "^1.0.17",
 | 
					        "@0x/contracts-test-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.18",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/sol-compiler": "^1.1.13",
 | 
					        "@0x/sol-compiler": "^1.1.16",
 | 
				
			||||||
        "@0x/sol-cov": "^2.1.13",
 | 
					        "@0x/sol-cov": "^2.1.16",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.5",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/bn.js": "^4.11.0",
 | 
					        "@types/bn.js": "^4.11.0",
 | 
				
			||||||
        "@types/ethereumjs-abi": "^0.6.0",
 | 
					        "@types/ethereumjs-abi": "^0.6.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
@@ -71,13 +70,13 @@
 | 
				
			|||||||
        "yargs": "^10.0.3"
 | 
					        "yargs": "^10.0.3"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/base-contract": "^3.0.7",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.3",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.5",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "publishConfig": {
 | 
					    "publishConfig": {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,120 +1,10 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "name": "MultiAssetProxy",
 | 
					        "timestamp": 1544741676,
 | 
				
			||||||
        "version": "1.0.0",
 | 
					        "version": "2.1.59",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Add MultiAssetProxy implementation",
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
                "pr": 1224
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        "name": "OrderValidator",
 | 
					 | 
				
			||||||
        "version": "1.0.1",
 | 
					 | 
				
			||||||
        "changes": [
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                "note": "remove `getApproved` check from ERC721 approval query",
 | 
					 | 
				
			||||||
                "pr": 1149
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        "name": "Forwarder",
 | 
					 | 
				
			||||||
        "version": "1.1.0",
 | 
					 | 
				
			||||||
        "changes": [
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                "note": "Round up when calculating remaining amounts in marketBuy functions",
 | 
					 | 
				
			||||||
                "pr": 1162,
 | 
					 | 
				
			||||||
                "networks": {
 | 
					 | 
				
			||||||
                    "1": "0x5468a1dc173652ee28d249c271fa9933144746b1",
 | 
					 | 
				
			||||||
                    "3": "0x2240dab907db71e64d3e0dba4800c83b5c502d4e",
 | 
					 | 
				
			||||||
                    "42": "0x17992e4ffb22730138e4b62aaa6367fa9d3699a6"
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        "name": "Forwarder",
 | 
					 | 
				
			||||||
        "version": "1.0.0",
 | 
					 | 
				
			||||||
        "changes": [
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                "note": "protocol v2 deploy",
 | 
					 | 
				
			||||||
                "networks": {
 | 
					 | 
				
			||||||
                    "1": "0x7afc2d5107af94c462a194d2c21b5bdd238709d6",
 | 
					 | 
				
			||||||
                    "3": "0x3983e204b12b3c02fb0638caf2cd406a62e0ead3",
 | 
					 | 
				
			||||||
                    "42": "0xd85e2fa7e7e252b27b01bf0d65c946959d2f45b8"
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        "name": "OrderValidator",
 | 
					 | 
				
			||||||
        "version": "1.0.0",
 | 
					 | 
				
			||||||
        "changes": [
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                "note": "protocol v2 deploy",
 | 
					 | 
				
			||||||
                "networks": {
 | 
					 | 
				
			||||||
                    "1": "0x9463e518dea6810309563c81d5266c1b1d149138",
 | 
					 | 
				
			||||||
                    "3": "0x90431a90516ab49af23a0530e04e8c7836e7122f",
 | 
					 | 
				
			||||||
                    "42": "0xb389da3d204b412df2f75c6afb3d0a7ce0bc283d"
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        "name": "Exchange",
 | 
					 | 
				
			||||||
        "version": "2.0.0",
 | 
					 | 
				
			||||||
        "changes": [
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                "note": "protocol v2 deploy",
 | 
					 | 
				
			||||||
                "networks": {
 | 
					 | 
				
			||||||
                    "1": "0x4f833a24e1f95d70f028921e27040ca56e09ab0b",
 | 
					 | 
				
			||||||
                    "3": "0x4530c0483a1633c7a1c97d2c53721caff2caaaaf",
 | 
					 | 
				
			||||||
                    "42": "0x35dd2932454449b14cee11a94d3674a936d5d7b2"
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        "name": "ERC20Proxy",
 | 
					 | 
				
			||||||
        "version": "1.0.0",
 | 
					 | 
				
			||||||
        "changes": [
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                "note": "protocol v2 deploy",
 | 
					 | 
				
			||||||
                "networks": {
 | 
					 | 
				
			||||||
                    "1": "0x2240dab907db71e64d3e0dba4800c83b5c502d4e",
 | 
					 | 
				
			||||||
                    "3": "0xb1408f4c245a23c31b98d2c626777d4c0d766caa",
 | 
					 | 
				
			||||||
                    "42": "0xf1ec01d6236d3cd881a0bf0130ea25fe4234003e"
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        "name": "ERC721Proxy",
 | 
					 | 
				
			||||||
        "version": "1.0.0",
 | 
					 | 
				
			||||||
        "changes": [
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                "note": "protocol v2 deploy",
 | 
					 | 
				
			||||||
                "networks": {
 | 
					 | 
				
			||||||
                    "1": "0x208e41fb445f1bb1b6780d58356e81405f3e6127",
 | 
					 | 
				
			||||||
                    "3": "0xe654aac058bfbf9f83fcaee7793311dd82f6ddb4",
 | 
					 | 
				
			||||||
                    "42": "0x2a9127c745688a165106c11cd4d647d2220af821"
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        ]
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        "name": "AssetProxyOwner",
 | 
					 | 
				
			||||||
        "version": "1.0.0",
 | 
					 | 
				
			||||||
        "changes": [
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                "note": "protocol v2 deploy",
 | 
					 | 
				
			||||||
                "networks": {
 | 
					 | 
				
			||||||
                    "1": "0x17992e4ffb22730138e4b62aaa6367fa9d3699a6",
 | 
					 | 
				
			||||||
                    "3": "0xf5fa5b5fed2727a0e44ac67f6772e97977aa358b",
 | 
					 | 
				
			||||||
                    "42": "0x2c824d2882baa668e0d5202b1e7f2922278703f8"
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								contracts/protocol/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								contracts/protocol/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<!--
 | 
				
			||||||
 | 
					changelogUtils.file is auto-generated using the monorepo-scripts package. Don't edit directly.
 | 
				
			||||||
 | 
					Edit the package's CHANGELOG.json file only.
 | 
				
			||||||
 | 
					-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v2.1.59 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
							
								
								
									
										92
									
								
								contracts/protocol/DEPLOYS.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										92
									
								
								contracts/protocol/DEPLOYS.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,92 @@
 | 
				
			|||||||
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name": "MultiAssetProxy",
 | 
				
			||||||
 | 
					        "version": "1.0.0",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Add MultiAssetProxy implementation",
 | 
				
			||||||
 | 
					                "pr": 1224
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name": "OrderValidator",
 | 
				
			||||||
 | 
					        "version": "1.0.0",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "remove `getApproved` check from ERC721 approval query",
 | 
				
			||||||
 | 
					                "pr": 1149
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name": "OrderValidator",
 | 
				
			||||||
 | 
					        "version": "1.0.0",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "protocol v2 deploy",
 | 
				
			||||||
 | 
					                "networks": {
 | 
				
			||||||
 | 
					                    "1": "0x9463e518dea6810309563c81d5266c1b1d149138",
 | 
				
			||||||
 | 
					                    "3": "0x90431a90516ab49af23a0530e04e8c7836e7122f",
 | 
				
			||||||
 | 
					                    "42": "0xb389da3d204b412df2f75c6afb3d0a7ce0bc283d"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name": "Exchange",
 | 
				
			||||||
 | 
					        "version": "2.0.0",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "protocol v2 deploy",
 | 
				
			||||||
 | 
					                "networks": {
 | 
				
			||||||
 | 
					                    "1": "0x4f833a24e1f95d70f028921e27040ca56e09ab0b",
 | 
				
			||||||
 | 
					                    "3": "0x4530c0483a1633c7a1c97d2c53721caff2caaaaf",
 | 
				
			||||||
 | 
					                    "42": "0x35dd2932454449b14cee11a94d3674a936d5d7b2"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name": "ERC20Proxy",
 | 
				
			||||||
 | 
					        "version": "1.0.0",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "protocol v2 deploy",
 | 
				
			||||||
 | 
					                "networks": {
 | 
				
			||||||
 | 
					                    "1": "0x2240dab907db71e64d3e0dba4800c83b5c502d4e",
 | 
				
			||||||
 | 
					                    "3": "0xb1408f4c245a23c31b98d2c626777d4c0d766caa",
 | 
				
			||||||
 | 
					                    "42": "0xf1ec01d6236d3cd881a0bf0130ea25fe4234003e"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name": "ERC721Proxy",
 | 
				
			||||||
 | 
					        "version": "1.0.0",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "protocol v2 deploy",
 | 
				
			||||||
 | 
					                "networks": {
 | 
				
			||||||
 | 
					                    "1": "0x208e41fb445f1bb1b6780d58356e81405f3e6127",
 | 
				
			||||||
 | 
					                    "3": "0xe654aac058bfbf9f83fcaee7793311dd82f6ddb4",
 | 
				
			||||||
 | 
					                    "42": "0x2a9127c745688a165106c11cd4d647d2220af821"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name": "AssetProxyOwner",
 | 
				
			||||||
 | 
					        "version": "1.0.0",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "protocol v2 deploy",
 | 
				
			||||||
 | 
					                "networks": {
 | 
				
			||||||
 | 
					                    "1": "0x17992e4ffb22730138e4b62aaa6367fa9d3699a6",
 | 
				
			||||||
 | 
					                    "3": "0xf5fa5b5fed2727a0e44ac67f6772e97977aa358b",
 | 
				
			||||||
 | 
					                    "42": "0x2c824d2882baa668e0d5202b1e7f2922278703f8"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "private": true,
 | 
					 | 
				
			||||||
    "name": "@0x/contracts-protocol",
 | 
					    "name": "@0x/contracts-protocol",
 | 
				
			||||||
    "version": "2.1.56",
 | 
					    "version": "2.1.59",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -19,8 +18,7 @@
 | 
				
			|||||||
        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
					        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
				
			||||||
        "test:profiler": "SOLIDITY_PROFILER=true run-s build run_mocha profiler:report:html",
 | 
					        "test:profiler": "SOLIDITY_PROFILER=true run-s build run_mocha profiler:report:html",
 | 
				
			||||||
        "test:trace": "SOLIDITY_REVERT_TRACE=true run-s build run_mocha",
 | 
					        "test:trace": "SOLIDITY_REVERT_TRACE=true run-s build run_mocha",
 | 
				
			||||||
        "run_mocha":
 | 
					        "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
				
			||||||
            "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
					 | 
				
			||||||
        "compile": "sol-compiler --contracts-dir contracts",
 | 
					        "compile": "sol-compiler --contracts-dir contracts",
 | 
				
			||||||
        "clean": "shx rm -rf lib generated-artifacts generated-wrappers",
 | 
					        "clean": "shx rm -rf lib generated-artifacts generated-wrappers",
 | 
				
			||||||
        "generate_contract_wrappers": "abi-gen --abis  ${npm_package_config_abis} --template ../../node_modules/@0x/abi-gen-templates/contract.handlebars --partials '../../node_modules/@0x/abi-gen-templates/partials/**/*.handlebars' --output generated-wrappers --backend ethers",
 | 
					        "generate_contract_wrappers": "abi-gen --abis  ${npm_package_config_abis} --template ../../node_modules/@0x/abi-gen-templates/contract.handlebars --partials '../../node_modules/@0x/abi-gen-templates/partials/**/*.handlebars' --output generated-wrappers --backend ethers",
 | 
				
			||||||
@@ -45,13 +43,13 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/protocol/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/protocol/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/contracts-test-utils": "^1.0.0",
 | 
					        "@0x/abi-gen": "^1.0.19",
 | 
				
			||||||
        "@0x/abi-gen": "^1.0.17",
 | 
					        "@0x/contracts-test-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.19",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/sol-compiler": "^1.1.14",
 | 
					        "@0x/sol-compiler": "^1.1.16",
 | 
				
			||||||
        "@0x/sol-cov": "^2.1.14",
 | 
					        "@0x/sol-cov": "^2.1.16",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/bn.js": "^4.11.0",
 | 
					        "@types/bn.js": "^4.11.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/node": "*",
 | 
					        "@types/node": "*",
 | 
				
			||||||
@@ -60,8 +58,8 @@
 | 
				
			|||||||
        "chai-as-promised": "^7.1.0",
 | 
					        "chai-as-promised": "^7.1.0",
 | 
				
			||||||
        "chai-bignumber": "^2.0.1",
 | 
					        "chai-bignumber": "^2.0.1",
 | 
				
			||||||
        "dirty-chai": "^2.0.1",
 | 
					        "dirty-chai": "^2.0.1",
 | 
				
			||||||
        "make-promises-safe": "^1.1.0",
 | 
					 | 
				
			||||||
        "ethereumjs-abi": "0.6.5",
 | 
					        "ethereumjs-abi": "0.6.5",
 | 
				
			||||||
 | 
					        "make-promises-safe": "^1.1.0",
 | 
				
			||||||
        "mocha": "^4.1.0",
 | 
					        "mocha": "^4.1.0",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
@@ -72,21 +70,21 @@
 | 
				
			|||||||
        "yargs": "^10.0.3"
 | 
					        "yargs": "^10.0.3"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/contracts-examples": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-multisig": "^1.0.0",
 | 
					        "@0x/contracts-interfaces": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-utils": "^1.0.0",
 | 
					        "@0x/contracts-libs": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-tokens": "^1.0.0",
 | 
					        "@0x/contracts-multisig": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-examples": "^1.0.0",
 | 
					        "@0x/contracts-tokens": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-libs": "^1.0.0",
 | 
					        "@0x/contracts-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-interfaces": "^1.0.0",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "@types/js-combinatorics": "^0.5.29",
 | 
					        "@types/js-combinatorics": "^0.5.29",
 | 
				
			||||||
        "bn.js": "^4.11.8",
 | 
					        "bn.js": "^4.11.8",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethereumjs-util": "^5.1.1",
 | 
					        "ethereumjs-util": "^5.1.1",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,11 +1,11 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "1.0.2",
 | 
				
			||||||
        "version": "1.0.1",
 | 
					 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,6 +5,6 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v1.0.1 - _December 10, 2018_
 | 
					## v1.0.2 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/contracts-test-utils",
 | 
					    "name": "@0x/contracts-test-utils",
 | 
				
			||||||
    "version": "1.0.0",
 | 
					    "version": "1.0.2",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -40,34 +40,34 @@
 | 
				
			|||||||
        "typescript": "3.0.1"
 | 
					        "typescript": "3.0.1"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/abi-gen": "^1.0.17",
 | 
					        "@0x/abi-gen": "^1.0.19",
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.18",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/sol-compiler": "^1.1.13",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.5",
 | 
					        "@0x/sol-compiler": "^1.1.16",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/sol-cov": "^2.1.16",
 | 
				
			||||||
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "@types/bn.js": "^4.11.0",
 | 
					        "@types/bn.js": "^4.11.0",
 | 
				
			||||||
        "@types/ethereumjs-abi": "^0.6.0",
 | 
					        "@types/ethereumjs-abi": "^0.6.0",
 | 
				
			||||||
 | 
					        "@types/js-combinatorics": "^0.5.29",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/node": "*",
 | 
					        "@types/node": "*",
 | 
				
			||||||
 | 
					        "bn.js": "^4.11.8",
 | 
				
			||||||
        "chai": "^4.0.1",
 | 
					        "chai": "^4.0.1",
 | 
				
			||||||
 | 
					        "chai-as-promised": "^7.1.0",
 | 
				
			||||||
        "chai-bignumber": "^2.0.1",
 | 
					        "chai-bignumber": "^2.0.1",
 | 
				
			||||||
        "dirty-chai": "^2.0.1",
 | 
					        "dirty-chai": "^2.0.1",
 | 
				
			||||||
        "make-promises-safe": "^1.1.0",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.3",
 | 
					 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					 | 
				
			||||||
        "@0x/sol-cov": "^2.1.13",
 | 
					 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.5",
 | 
					 | 
				
			||||||
        "@types/js-combinatorics": "^0.5.29",
 | 
					 | 
				
			||||||
        "chai-as-promised": "^7.1.0",
 | 
					 | 
				
			||||||
        "bn.js": "^4.11.8",
 | 
					 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					 | 
				
			||||||
        "ethereumjs-abi": "0.6.5",
 | 
					        "ethereumjs-abi": "0.6.5",
 | 
				
			||||||
        "ethereumjs-util": "^5.1.1",
 | 
					        "ethereumjs-util": "^5.1.1",
 | 
				
			||||||
        "ethers": "~4.0.4",
 | 
					        "ethers": "~4.0.4",
 | 
				
			||||||
        "js-combinatorics": "^0.5.3",
 | 
					        "js-combinatorics": "^0.5.3",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5",
 | 
				
			||||||
 | 
					        "make-promises-safe": "^1.1.0"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "publishConfig": {
 | 
					    "publishConfig": {
 | 
				
			||||||
        "access": "public"
 | 
					        "access": "public"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,7 +23,7 @@ export type sendTransactionResult = Promise<TransactionReceipt | TransactionRece
 | 
				
			|||||||
 * @returns either the given ganacheError or gethError depending on the backing
 | 
					 * @returns either the given ganacheError or gethError depending on the backing
 | 
				
			||||||
 * node.
 | 
					 * node.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
async function _getGanacheOrGethError(ganacheError: string, gethError: string): Promise<string> {
 | 
					async function _getGanacheOrGethErrorAsync(ganacheError: string, gethError: string): Promise<string> {
 | 
				
			||||||
    if (_.isUndefined(nodeType)) {
 | 
					    if (_.isUndefined(nodeType)) {
 | 
				
			||||||
        nodeType = await web3Wrapper.getNodeTypeAsync();
 | 
					        nodeType = await web3Wrapper.getNodeTypeAsync();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -38,15 +38,15 @@ async function _getGanacheOrGethError(ganacheError: string, gethError: string):
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
async function _getInsufficientFundsErrorMessageAsync(): Promise<string> {
 | 
					async function _getInsufficientFundsErrorMessageAsync(): Promise<string> {
 | 
				
			||||||
    return _getGanacheOrGethError("sender doesn't have enough funds", 'insufficient funds');
 | 
					    return _getGanacheOrGethErrorAsync("sender doesn't have enough funds", 'insufficient funds');
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
async function _getTransactionFailedErrorMessageAsync(): Promise<string> {
 | 
					async function _getTransactionFailedErrorMessageAsync(): Promise<string> {
 | 
				
			||||||
    return _getGanacheOrGethError('revert', 'always failing transaction');
 | 
					    return _getGanacheOrGethErrorAsync('revert', 'always failing transaction');
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
async function _getContractCallFailedErrorMessageAsync(): Promise<string> {
 | 
					async function _getContractCallFailedErrorMessageAsync(): Promise<string> {
 | 
				
			||||||
    return _getGanacheOrGethError('revert', 'Contract call failed');
 | 
					    return _getGanacheOrGethErrorAsync('revert', 'Contract call failed');
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
@@ -54,7 +54,7 @@ async function _getContractCallFailedErrorMessageAsync(): Promise<string> {
 | 
				
			|||||||
 * contract call. The exact error message depends on the backing Ethereum node.
 | 
					 * contract call. The exact error message depends on the backing Ethereum node.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export async function getInvalidOpcodeErrorMessageForCallAsync(): Promise<string> {
 | 
					export async function getInvalidOpcodeErrorMessageForCallAsync(): Promise<string> {
 | 
				
			||||||
    return _getGanacheOrGethError('invalid opcode', 'Contract call failed');
 | 
					    return _getGanacheOrGethErrorAsync('invalid opcode', 'Contract call failed');
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
@@ -65,7 +65,7 @@ export async function getInvalidOpcodeErrorMessageForCallAsync(): Promise<string
 | 
				
			|||||||
 * @returns the expected error message.
 | 
					 * @returns the expected error message.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export async function getRevertReasonOrErrorMessageForSendTransactionAsync(reason: RevertReason): Promise<string> {
 | 
					export async function getRevertReasonOrErrorMessageForSendTransactionAsync(reason: RevertReason): Promise<string> {
 | 
				
			||||||
    return _getGanacheOrGethError(reason, 'always failing transaction');
 | 
					    return _getGanacheOrGethErrorAsync(reason, 'always failing transaction');
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,7 +26,7 @@ type PromiseResult<T> = Value<T> | ErrorMessage;
 | 
				
			|||||||
// TODO(albrow): This seems like a generic utility function that could exist in
 | 
					// TODO(albrow): This seems like a generic utility function that could exist in
 | 
				
			||||||
// lodash. We should replace it by a library implementation, or move it to our
 | 
					// lodash. We should replace it by a library implementation, or move it to our
 | 
				
			||||||
// own.
 | 
					// own.
 | 
				
			||||||
async function evaluatePromise<T>(promise: Promise<T>): Promise<PromiseResult<T>> {
 | 
					async function evaluatePromiseAsync<T>(promise: Promise<T>): Promise<PromiseResult<T>> {
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
        return new Value<T>(await promise);
 | 
					        return new Value<T>(await promise);
 | 
				
			||||||
    } catch (e) {
 | 
					    } catch (e) {
 | 
				
			||||||
@@ -93,10 +93,10 @@ export async function testWithReferenceFuncAsync(
 | 
				
			|||||||
    values: any[],
 | 
					    values: any[],
 | 
				
			||||||
): Promise<void> {
 | 
					): Promise<void> {
 | 
				
			||||||
    // Measure correct behaviour
 | 
					    // Measure correct behaviour
 | 
				
			||||||
    const expected = await evaluatePromise(referenceFuncAsync(...values));
 | 
					    const expected = await evaluatePromiseAsync(referenceFuncAsync(...values));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Measure actual behaviour
 | 
					    // Measure actual behaviour
 | 
				
			||||||
    const actual = await evaluatePromise(testFuncAsync(...values));
 | 
					    const actual = await evaluatePromiseAsync(testFuncAsync(...values));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Compare behaviour
 | 
					    // Compare behaviour
 | 
				
			||||||
    if (expected instanceof ErrorMessage) {
 | 
					    if (expected instanceof ErrorMessage) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,15 +1,10 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "name": "ZRXToken",
 | 
					        "timestamp": 1544741676,
 | 
				
			||||||
        "version": "1.0.0",
 | 
					        "version": "1.0.2",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "protocol v1 deploy",
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
                "networks": {
 | 
					 | 
				
			||||||
                    "1": "0xe41d2489571d322189246dafa5ebde1f4699f498",
 | 
					 | 
				
			||||||
                    "3": "0xff67881f8d12f372d91baae9752eb3631ff0ed00",
 | 
					 | 
				
			||||||
                    "42": "0x2002d3812f58e35f0ea1ffbf80a75a38c32175fa"
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								contracts/tokens/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								contracts/tokens/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<!--
 | 
				
			||||||
 | 
					changelogUtils.file is auto-generated using the monorepo-scripts package. Don't edit directly.
 | 
				
			||||||
 | 
					Edit the package's CHANGELOG.json file only.
 | 
				
			||||||
 | 
					-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v1.0.2 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
							
								
								
									
										16
									
								
								contracts/tokens/DEPLOYS.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								contracts/tokens/DEPLOYS.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "name": "ZRXToken",
 | 
				
			||||||
 | 
					        "version": "1.0.0",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "protocol v1 deploy",
 | 
				
			||||||
 | 
					                "networks": {
 | 
				
			||||||
 | 
					                    "1": "0xe41d2489571d322189246dafa5ebde1f4699f498",
 | 
				
			||||||
 | 
					                    "3": "0xff67881f8d12f372d91baae9752eb3631ff0ed00",
 | 
				
			||||||
 | 
					                    "42": "0x2002d3812f58e35f0ea1ffbf80a75a38c32175fa"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "private": true,
 | 
					 | 
				
			||||||
    "name": "@0x/contracts-tokens",
 | 
					    "name": "@0x/contracts-tokens",
 | 
				
			||||||
    "version": "1.0.0",
 | 
					    "version": "1.0.2",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -19,8 +18,7 @@
 | 
				
			|||||||
        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
					        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
				
			||||||
        "test:profiler": "SOLIDITY_PROFILER=true run-s build run_mocha profiler:report:html",
 | 
					        "test:profiler": "SOLIDITY_PROFILER=true run-s build run_mocha profiler:report:html",
 | 
				
			||||||
        "test:trace": "SOLIDITY_REVERT_TRACE=true run-s build run_mocha",
 | 
					        "test:trace": "SOLIDITY_REVERT_TRACE=true run-s build run_mocha",
 | 
				
			||||||
        "run_mocha":
 | 
					        "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
				
			||||||
            "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
					 | 
				
			||||||
        "compile": "sol-compiler --contracts-dir contracts",
 | 
					        "compile": "sol-compiler --contracts-dir contracts",
 | 
				
			||||||
        "clean": "shx rm -rf lib generated-artifacts generated-wrappers",
 | 
					        "clean": "shx rm -rf lib generated-artifacts generated-wrappers",
 | 
				
			||||||
        "generate_contract_wrappers": "abi-gen --abis  ${npm_package_config_abis} --template ../../node_modules/@0x/abi-gen-templates/contract.handlebars --partials '../../node_modules/@0x/abi-gen-templates/partials/**/*.handlebars' --output generated-wrappers --backend ethers",
 | 
					        "generate_contract_wrappers": "abi-gen --abis  ${npm_package_config_abis} --template ../../node_modules/@0x/abi-gen-templates/contract.handlebars --partials '../../node_modules/@0x/abi-gen-templates/partials/**/*.handlebars' --output generated-wrappers --backend ethers",
 | 
				
			||||||
@@ -45,13 +43,13 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/tokens/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/tokens/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/contracts-test-utils": "^1.0.0",
 | 
					        "@0x/abi-gen": "^1.0.19",
 | 
				
			||||||
        "@0x/abi-gen": "^1.0.17",
 | 
					        "@0x/contracts-test-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.19",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/sol-compiler": "^1.1.14",
 | 
					        "@0x/sol-compiler": "^1.1.16",
 | 
				
			||||||
        "@0x/sol-cov": "^2.1.14",
 | 
					        "@0x/sol-cov": "^2.1.16",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/bn.js": "^4.11.0",
 | 
					        "@types/bn.js": "^4.11.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/node": "*",
 | 
					        "@types/node": "*",
 | 
				
			||||||
@@ -60,8 +58,8 @@
 | 
				
			|||||||
        "chai-as-promised": "^7.1.0",
 | 
					        "chai-as-promised": "^7.1.0",
 | 
				
			||||||
        "chai-bignumber": "^2.0.1",
 | 
					        "chai-bignumber": "^2.0.1",
 | 
				
			||||||
        "dirty-chai": "^2.0.1",
 | 
					        "dirty-chai": "^2.0.1",
 | 
				
			||||||
        "make-promises-safe": "^1.1.0",
 | 
					 | 
				
			||||||
        "ethereumjs-abi": "0.6.5",
 | 
					        "ethereumjs-abi": "0.6.5",
 | 
				
			||||||
 | 
					        "make-promises-safe": "^1.1.0",
 | 
				
			||||||
        "mocha": "^4.1.0",
 | 
					        "mocha": "^4.1.0",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
@@ -72,19 +70,19 @@
 | 
				
			|||||||
        "yargs": "^10.0.3"
 | 
					        "yargs": "^10.0.3"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/contracts-interfaces": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-multisig": "^1.0.0",
 | 
					        "@0x/contracts-libs": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-utils": "^1.0.0",
 | 
					        "@0x/contracts-multisig": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-libs": "^1.0.0",
 | 
					        "@0x/contracts-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-interfaces": "^1.0.0",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "@types/js-combinatorics": "^0.5.29",
 | 
					        "@types/js-combinatorics": "^0.5.29",
 | 
				
			||||||
        "bn.js": "^4.11.8",
 | 
					        "bn.js": "^4.11.8",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethereumjs-util": "^5.1.1",
 | 
					        "ethereumjs-util": "^5.1.1",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										11
									
								
								contracts/utils/CHANGELOG.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								contracts/utils/CHANGELOG.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "timestamp": 1544741676,
 | 
				
			||||||
 | 
					        "version": "1.0.2",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
							
								
								
									
										10
									
								
								contracts/utils/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								contracts/utils/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<!--
 | 
				
			||||||
 | 
					changelogUtils.file is auto-generated using the monorepo-scripts package. Don't edit directly.
 | 
				
			||||||
 | 
					Edit the package's CHANGELOG.json file only.
 | 
				
			||||||
 | 
					-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v1.0.2 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "private": true,
 | 
					 | 
				
			||||||
    "name": "@0x/contracts-utils",
 | 
					    "name": "@0x/contracts-utils",
 | 
				
			||||||
    "version": "1.0.0",
 | 
					    "version": "1.0.2",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -19,8 +18,7 @@
 | 
				
			|||||||
        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
					        "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov",
 | 
				
			||||||
        "test:profiler": "SOLIDITY_PROFILER=true run-s build run_mocha profiler:report:html",
 | 
					        "test:profiler": "SOLIDITY_PROFILER=true run-s build run_mocha profiler:report:html",
 | 
				
			||||||
        "test:trace": "SOLIDITY_REVERT_TRACE=true run-s build run_mocha",
 | 
					        "test:trace": "SOLIDITY_REVERT_TRACE=true run-s build run_mocha",
 | 
				
			||||||
        "run_mocha":
 | 
					        "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
				
			||||||
            "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit",
 | 
					 | 
				
			||||||
        "compile": "sol-compiler --contracts-dir contracts",
 | 
					        "compile": "sol-compiler --contracts-dir contracts",
 | 
				
			||||||
        "clean": "shx rm -rf lib generated-artifacts generated-wrappers",
 | 
					        "clean": "shx rm -rf lib generated-artifacts generated-wrappers",
 | 
				
			||||||
        "generate_contract_wrappers": "abi-gen --abis  ${npm_package_config_abis} --template ../../node_modules/@0x/abi-gen-templates/contract.handlebars --partials '../../node_modules/@0x/abi-gen-templates/partials/**/*.handlebars' --output generated-wrappers --backend ethers",
 | 
					        "generate_contract_wrappers": "abi-gen --abis  ${npm_package_config_abis} --template ../../node_modules/@0x/abi-gen-templates/contract.handlebars --partials '../../node_modules/@0x/abi-gen-templates/partials/**/*.handlebars' --output generated-wrappers --backend ethers",
 | 
				
			||||||
@@ -45,13 +43,13 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/utils/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/contracts/utils/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/contracts-test-utils": "^1.0.0",
 | 
					        "@0x/abi-gen": "^1.0.19",
 | 
				
			||||||
        "@0x/abi-gen": "^1.0.17",
 | 
					        "@0x/contracts-test-utils": "^1.0.2",
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.19",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/sol-compiler": "^1.1.14",
 | 
					        "@0x/sol-compiler": "^1.1.16",
 | 
				
			||||||
        "@0x/sol-cov": "^2.1.14",
 | 
					        "@0x/sol-cov": "^2.1.16",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/bn.js": "^4.11.0",
 | 
					        "@types/bn.js": "^4.11.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/node": "*",
 | 
					        "@types/node": "*",
 | 
				
			||||||
@@ -61,8 +59,8 @@
 | 
				
			|||||||
        "chai-as-promised": "^7.1.0",
 | 
					        "chai-as-promised": "^7.1.0",
 | 
				
			||||||
        "chai-bignumber": "^2.0.1",
 | 
					        "chai-bignumber": "^2.0.1",
 | 
				
			||||||
        "dirty-chai": "^2.0.1",
 | 
					        "dirty-chai": "^2.0.1",
 | 
				
			||||||
        "make-promises-safe": "^1.1.0",
 | 
					 | 
				
			||||||
        "ethereumjs-abi": "0.6.5",
 | 
					        "ethereumjs-abi": "0.6.5",
 | 
				
			||||||
 | 
					        "make-promises-safe": "^1.1.0",
 | 
				
			||||||
        "mocha": "^4.1.0",
 | 
					        "mocha": "^4.1.0",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
@@ -73,14 +71,14 @@
 | 
				
			|||||||
        "yargs": "^10.0.3"
 | 
					        "yargs": "^10.0.3"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/contracts-multisig": "^1.0.2",
 | 
				
			||||||
        "@0x/contracts-multisig": "^1.0.0",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethereumjs-util": "^5.1.1",
 | 
					        "ethereumjs-util": "^5.1.1",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -63,7 +63,7 @@
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x-lerna-fork/lerna": "3.0.0-beta.25",
 | 
					        "@0x-lerna-fork/lerna": "3.0.0-beta.26",
 | 
				
			||||||
        "@0xproject/npm-cli-login": "^0.0.11",
 | 
					        "@0xproject/npm-cli-login": "^0.0.11",
 | 
				
			||||||
        "async-child-process": "^1.1.1",
 | 
					        "async-child-process": "^1.1.1",
 | 
				
			||||||
        "bundlewatch": "^0.2.1",
 | 
					        "bundlewatch": "^0.2.1",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "2.0.8",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "2.0.7",
 | 
					        "version": "2.0.7",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1543401373,
 | 
					        "timestamp": 1543401373,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v2.0.7 - _December 10, 2018_
 | 
					## v2.0.8 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v2.0.7 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "0x.js",
 | 
					    "name": "0x.js",
 | 
				
			||||||
    "version": "2.0.6",
 | 
					    "version": "2.0.8",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -42,11 +42,11 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "license": "Apache-2.0",
 | 
					    "license": "Apache-2.0",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/abi-gen-wrappers": "^2.0.0",
 | 
					        "@0x/abi-gen-wrappers": "^2.0.2",
 | 
				
			||||||
        "@0x/contract-addresses": "^2.0.0",
 | 
					        "@0x/contract-addresses": "^2.0.0",
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.19",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/migrations": "^2.2.0",
 | 
					        "@0x/migrations": "^2.2.2",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/mocha": "^2.2.42",
 | 
					        "@types/mocha": "^2.2.42",
 | 
				
			||||||
        "@types/node": "*",
 | 
					        "@types/node": "*",
 | 
				
			||||||
@@ -72,18 +72,18 @@
 | 
				
			|||||||
        "webpack": "^4.20.2"
 | 
					        "webpack": "^4.20.2"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/assert": "^1.0.18",
 | 
					        "@0x/assert": "^1.0.20",
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/contract-wrappers": "^4.1.1",
 | 
					        "@0x/contract-wrappers": "^4.1.3",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/order-watcher": "^2.2.6",
 | 
					        "@0x/order-watcher": "^2.2.8",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "@types/web3-provider-engine": "^14.0.0",
 | 
					        "@types/web3-provider-engine": "^14.0.0",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethers": "~4.0.4",
 | 
					        "ethers": "~4.0.4",
 | 
				
			||||||
        "lodash": "^4.17.5",
 | 
					        "lodash": "^4.17.5",
 | 
				
			||||||
        "web3-provider-engine": "14.0.6"
 | 
					        "web3-provider-engine": "14.0.6"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "2.0.2",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "2.0.1",
 | 
					        "version": "2.0.1",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "version": "2.0.0",
 | 
					        "version": "2.0.0",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v2.0.1 - _December 10, 2018_
 | 
					## v2.0.2 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v2.0.1 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/abi-gen-wrappers",
 | 
					    "name": "@0x/abi-gen-wrappers",
 | 
				
			||||||
    "version": "2.0.0",
 | 
					    "version": "2.0.2",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -30,19 +30,19 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/abi-gen-wrappers/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/abi-gen-wrappers/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/abi-gen": "^1.0.17",
 | 
					        "@0x/abi-gen": "^1.0.19",
 | 
				
			||||||
        "@0x/abi-gen-templates": "^1.0.1",
 | 
					        "@0x/abi-gen-templates": "^1.0.1",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethers": "~4.0.4",
 | 
					        "ethers": "~4.0.4",
 | 
				
			||||||
        "lodash": "^4.17.5",
 | 
					        "lodash": "^4.17.5",
 | 
				
			||||||
        "shx": "^0.2.2"
 | 
					        "shx": "^0.2.2"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8"
 | 
					        "@0x/base-contract": "^3.0.10"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "publishConfig": {
 | 
					    "publishConfig": {
 | 
				
			||||||
        "access": "public"
 | 
					        "access": "public"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "1.0.19",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "1.0.18",
 | 
					        "version": "1.0.18",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1542821676,
 | 
					        "timestamp": 1542821676,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v1.0.18 - _December 10, 2018_
 | 
					## v1.0.19 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v1.0.18 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/abi-gen",
 | 
					    "name": "@0x/abi-gen",
 | 
				
			||||||
    "version": "1.0.17",
 | 
					    "version": "1.0.19",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -31,10 +31,10 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/abi-gen/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/abi-gen/README.md",
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "chalk": "^2.3.0",
 | 
					        "chalk": "^2.3.0",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "glob": "^7.1.2",
 | 
					        "glob": "^7.1.2",
 | 
				
			||||||
        "handlebars": "^4.0.11",
 | 
					        "handlebars": "^4.0.11",
 | 
				
			||||||
        "lodash": "^4.17.5",
 | 
					        "lodash": "^4.17.5",
 | 
				
			||||||
@@ -45,7 +45,7 @@
 | 
				
			|||||||
        "yargs": "^10.0.3"
 | 
					        "yargs": "^10.0.3"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/glob": "5.0.35",
 | 
					        "@types/glob": "5.0.35",
 | 
				
			||||||
        "@types/handlebars": "^4.0.36",
 | 
					        "@types/handlebars": "^4.0.36",
 | 
				
			||||||
        "@types/mkdirp": "^0.5.1",
 | 
					        "@types/mkdirp": "^0.5.1",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "1.0.20",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "1.0.19",
 | 
					        "version": "1.0.19",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1542821676,
 | 
					        "timestamp": 1542821676,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v1.0.19 - _December 10, 2018_
 | 
					## v1.0.20 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v1.0.19 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/assert",
 | 
					    "name": "@0x/assert",
 | 
				
			||||||
    "version": "1.0.18",
 | 
					    "version": "1.0.20",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -29,7 +29,7 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/assert/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/assert/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/mocha": "^2.2.42",
 | 
					        "@types/mocha": "^2.2.42",
 | 
				
			||||||
        "@types/valid-url": "^1.0.2",
 | 
					        "@types/valid-url": "^1.0.2",
 | 
				
			||||||
@@ -44,9 +44,9 @@
 | 
				
			|||||||
        "typescript": "3.0.1"
 | 
					        "typescript": "3.0.1"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/json-schemas": "^2.1.2",
 | 
					        "@0x/json-schemas": "^2.1.4",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "lodash": "^4.17.5",
 | 
					        "lodash": "^4.17.5",
 | 
				
			||||||
        "valid-url": "^1.0.9"
 | 
					        "valid-url": "^1.0.9"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,13 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "version": "3.0.4",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "version": "3.0.3",
 | 
					        "version": "3.0.3",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
@@ -6,7 +15,7 @@
 | 
				
			|||||||
                "note": "Update SRA order provider to include Dai"
 | 
					                "note": "Update SRA order provider to include Dai"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
        "timestamp": 1544482891
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1543401373,
 | 
					        "timestamp": 1543401373,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v3.0.3 - _December 10, 2018_
 | 
					## v3.0.4 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v3.0.3 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Update SRA order provider to include Dai
 | 
					    * Update SRA order provider to include Dai
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/asset-buyer",
 | 
					    "name": "@0x/asset-buyer",
 | 
				
			||||||
    "version": "3.0.2",
 | 
					    "version": "3.0.4",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -36,21 +36,21 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/asset-buyer/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/asset-buyer/README.md",
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/assert": "^1.0.18",
 | 
					        "@0x/assert": "^1.0.20",
 | 
				
			||||||
        "@0x/connect": "^3.0.8",
 | 
					        "@0x/connect": "^3.0.10",
 | 
				
			||||||
        "@0x/contract-wrappers": "^4.1.1",
 | 
					        "@0x/contract-wrappers": "^4.1.3",
 | 
				
			||||||
        "@0x/json-schemas": "^2.1.2",
 | 
					        "@0x/json-schemas": "^2.1.4",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/lodash": "^4.14.116",
 | 
					        "@types/lodash": "^4.14.116",
 | 
				
			||||||
        "@types/mocha": "^2.2.42",
 | 
					        "@types/mocha": "^2.2.42",
 | 
				
			||||||
        "@types/node": "*",
 | 
					        "@types/node": "*",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "3.0.10",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "3.0.9",
 | 
					        "version": "3.0.9",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1543401373,
 | 
					        "timestamp": 1543401373,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v3.0.9 - _December 10, 2018_
 | 
					## v3.0.10 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v3.0.9 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/base-contract",
 | 
					    "name": "@0x/base-contract",
 | 
				
			||||||
    "version": "3.0.8",
 | 
					    "version": "3.0.10",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -29,7 +29,7 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/base-contract/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/base-contract/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "chai": "^4.0.1",
 | 
					        "chai": "^4.0.1",
 | 
				
			||||||
        "make-promises-safe": "^1.1.0",
 | 
					        "make-promises-safe": "^1.1.0",
 | 
				
			||||||
@@ -40,10 +40,10 @@
 | 
				
			|||||||
        "typescript": "3.0.1"
 | 
					        "typescript": "3.0.1"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethers": "~4.0.4",
 | 
					        "ethers": "~4.0.4",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "3.0.10",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "3.0.9",
 | 
					        "version": "3.0.9",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1543401373,
 | 
					        "timestamp": 1543401373,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v3.0.9 - _December 10, 2018_
 | 
					## v3.0.10 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v3.0.9 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/connect",
 | 
					    "name": "@0x/connect",
 | 
				
			||||||
    "version": "3.0.8",
 | 
					    "version": "3.0.10",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -44,12 +44,12 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/connect/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/connect/README.md",
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/assert": "^1.0.18",
 | 
					        "@0x/assert": "^1.0.20",
 | 
				
			||||||
        "@0x/json-schemas": "^2.1.2",
 | 
					        "@0x/json-schemas": "^2.1.4",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "lodash": "^4.17.5",
 | 
					        "lodash": "^4.17.5",
 | 
				
			||||||
        "query-string": "^5.0.1",
 | 
					        "query-string": "^5.0.1",
 | 
				
			||||||
        "sinon": "^4.0.0",
 | 
					        "sinon": "^4.0.0",
 | 
				
			||||||
@@ -57,7 +57,7 @@
 | 
				
			|||||||
        "websocket": "^1.0.25"
 | 
					        "websocket": "^1.0.25"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/fetch-mock": "^6.0.3",
 | 
					        "@types/fetch-mock": "^6.0.3",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/mocha": "^2.2.42",
 | 
					        "@types/mocha": "^2.2.42",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "4.1.3",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "4.1.2",
 | 
					        "version": "4.1.2",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1543401373,
 | 
					        "timestamp": 1543401373,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v4.1.2 - _December 10, 2018_
 | 
					## v4.1.3 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v4.1.2 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/contract-wrappers",
 | 
					    "name": "@0x/contract-wrappers",
 | 
				
			||||||
    "version": "4.1.1",
 | 
					    "version": "4.1.3",
 | 
				
			||||||
    "description": "Smart TS wrappers for 0x smart contracts",
 | 
					    "description": "Smart TS wrappers for 0x smart contracts",
 | 
				
			||||||
    "keywords": [
 | 
					    "keywords": [
 | 
				
			||||||
        "0xproject",
 | 
					        "0xproject",
 | 
				
			||||||
@@ -37,10 +37,10 @@
 | 
				
			|||||||
        "node": ">=6.0.0"
 | 
					        "node": ">=6.0.0"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.19",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/migrations": "^2.2.0",
 | 
					        "@0x/migrations": "^2.2.2",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/mocha": "^2.2.42",
 | 
					        "@types/mocha": "^2.2.42",
 | 
				
			||||||
        "@types/node": "*",
 | 
					        "@types/node": "*",
 | 
				
			||||||
@@ -65,18 +65,18 @@
 | 
				
			|||||||
        "web3-provider-engine": "14.0.6"
 | 
					        "web3-provider-engine": "14.0.6"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/abi-gen-wrappers": "^2.0.0",
 | 
					        "@0x/abi-gen-wrappers": "^2.0.2",
 | 
				
			||||||
        "@0x/assert": "^1.0.18",
 | 
					        "@0x/assert": "^1.0.20",
 | 
				
			||||||
        "@0x/contract-addresses": "^2.0.0",
 | 
					        "@0x/contract-addresses": "^2.0.0",
 | 
				
			||||||
        "@0x/contract-artifacts": "^1.1.2",
 | 
					        "@0x/contract-artifacts": "^1.1.2",
 | 
				
			||||||
        "@0x/fill-scenarios": "^1.0.14",
 | 
					        "@0x/fill-scenarios": "^1.0.16",
 | 
				
			||||||
        "@0x/json-schemas": "^2.1.2",
 | 
					        "@0x/json-schemas": "^2.1.4",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethereumjs-blockstream": "6.0.0",
 | 
					        "ethereumjs-blockstream": "6.0.0",
 | 
				
			||||||
        "ethereumjs-util": "^5.1.1",
 | 
					        "ethereumjs-util": "^5.1.1",
 | 
				
			||||||
        "ethers": "~4.0.4",
 | 
					        "ethers": "~4.0.4",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/dev-tools-pages",
 | 
					    "name": "@0x/dev-tools-pages",
 | 
				
			||||||
    "version": "0.0.8",
 | 
					    "version": "0.0.10",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -16,7 +16,7 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "license": "Apache-2.0",
 | 
					    "license": "Apache-2.0",
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/react-shared": "^1.0.23",
 | 
					        "@0x/react-shared": "^1.0.25",
 | 
				
			||||||
        "basscss": "^8.0.3",
 | 
					        "basscss": "^8.0.3",
 | 
				
			||||||
        "bowser": "^1.9.3",
 | 
					        "bowser": "^1.9.3",
 | 
				
			||||||
        "less": "^2.7.2",
 | 
					        "less": "^2.7.2",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "1.0.21",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "1.0.20",
 | 
					        "version": "1.0.20",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1543401373,
 | 
					        "timestamp": 1543401373,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v1.0.20 - _December 10, 2018_
 | 
					## v1.0.21 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v1.0.20 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/dev-utils",
 | 
					    "name": "@0x/dev-utils",
 | 
				
			||||||
    "version": "1.0.19",
 | 
					    "version": "1.0.21",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -29,7 +29,7 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/dev-utils/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/dev-utils/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/mocha": "^2.2.42",
 | 
					        "@types/mocha": "^2.2.42",
 | 
				
			||||||
        "make-promises-safe": "^1.1.0",
 | 
					        "make-promises-safe": "^1.1.0",
 | 
				
			||||||
@@ -41,14 +41,14 @@
 | 
				
			|||||||
        "typescript": "3.0.1"
 | 
					        "typescript": "3.0.1"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "@types/web3-provider-engine": "^14.0.0",
 | 
					        "@types/web3-provider-engine": "^14.0.0",
 | 
				
			||||||
        "chai": "^4.0.1",
 | 
					        "chai": "^4.0.1",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "publishConfig": {
 | 
					    "publishConfig": {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "1.1.4",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "1.1.3",
 | 
					        "version": "1.1.3",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "version": "1.1.2",
 | 
					        "version": "1.1.2",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v1.1.3 - _December 10, 2018_
 | 
					## v1.1.4 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v1.1.3 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "ethereum-types",
 | 
					    "name": "ethereum-types",
 | 
				
			||||||
    "version": "1.1.2",
 | 
					    "version": "1.1.4",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -29,7 +29,7 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/ethereum-types/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/ethereum-types/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "make-promises-safe": "^1.1.0",
 | 
					        "make-promises-safe": "^1.1.0",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
        "tslint": "5.11.0",
 | 
					        "tslint": "5.11.0",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "1.0.16",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "1.0.15",
 | 
					        "version": "1.0.15",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1543401373,
 | 
					        "timestamp": 1543401373,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v1.0.15 - _December 10, 2018_
 | 
					## v1.0.16 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v1.0.15 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/fill-scenarios",
 | 
					    "name": "@0x/fill-scenarios",
 | 
				
			||||||
    "version": "1.0.14",
 | 
					    "version": "1.0.16",
 | 
				
			||||||
    "description": "0x order fill scenario generator",
 | 
					    "description": "0x order fill scenario generator",
 | 
				
			||||||
    "main": "lib/index.js",
 | 
					    "main": "lib/index.js",
 | 
				
			||||||
    "types": "lib/index.d.ts",
 | 
					    "types": "lib/index.d.ts",
 | 
				
			||||||
@@ -20,7 +20,7 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/fill-scenarios/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/fill-scenarios/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "make-promises-safe": "^1.1.0",
 | 
					        "make-promises-safe": "^1.1.0",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
@@ -28,15 +28,15 @@
 | 
				
			|||||||
        "typescript": "3.0.1"
 | 
					        "typescript": "3.0.1"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/abi-gen-wrappers": "^2.0.0",
 | 
					        "@0x/abi-gen-wrappers": "^2.0.2",
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/contract-artifacts": "^1.1.2",
 | 
					        "@0x/contract-artifacts": "^1.1.2",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethers": "~4.0.4",
 | 
					        "ethers": "~4.0.4",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/instant",
 | 
					    "name": "@0x/instant",
 | 
				
			||||||
    "version": "1.0.2",
 | 
					    "version": "1.0.4",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -24,7 +24,10 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "config": {
 | 
					    "config": {
 | 
				
			||||||
        "postpublish": {
 | 
					        "postpublish": {
 | 
				
			||||||
            "assets": ["packages/instant/umd/instant.js", "packages/instant/umd/instant.js.map"]
 | 
					            "assets": [
 | 
				
			||||||
 | 
					                "packages/instant/umd/instant.js",
 | 
				
			||||||
 | 
					                "packages/instant/umd/instant.js.map"
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "repository": {
 | 
					    "repository": {
 | 
				
			||||||
@@ -38,18 +41,18 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/instant/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/instant/README.md",
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/assert": "^1.0.18",
 | 
					        "@0x/assert": "^1.0.20",
 | 
				
			||||||
        "@0x/asset-buyer": "^3.0.2",
 | 
					        "@0x/asset-buyer": "^3.0.4",
 | 
				
			||||||
        "@0x/json-schemas": "^2.1.2",
 | 
					        "@0x/json-schemas": "^2.1.4",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "bowser": "^1.9.4",
 | 
					        "bowser": "^1.9.4",
 | 
				
			||||||
        "copy-to-clipboard": "^3.0.8",
 | 
					        "copy-to-clipboard": "^3.0.8",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "lodash": "^4.17.5",
 | 
					        "lodash": "^4.17.5",
 | 
				
			||||||
        "polished": "^2.2.0",
 | 
					        "polished": "^2.2.0",
 | 
				
			||||||
        "react": "^16.5.2",
 | 
					        "react": "^16.5.2",
 | 
				
			||||||
@@ -62,7 +65,7 @@
 | 
				
			|||||||
        "ts-optchain": "^0.1.1"
 | 
					        "ts-optchain": "^0.1.1"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@static/discharge": "https://github.com/0xProject/discharge.git",
 | 
					        "@static/discharge": "https://github.com/0xProject/discharge.git",
 | 
				
			||||||
        "@types/enzyme": "^3.1.14",
 | 
					        "@types/enzyme": "^3.1.14",
 | 
				
			||||||
        "@types/enzyme-adapter-react-16": "^1.0.3",
 | 
					        "@types/enzyme-adapter-react-16": "^1.0.3",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -58,6 +58,7 @@ export class ScalingAmountInput extends React.Component<ScalingAmountInputProps,
 | 
				
			|||||||
        const { textLengthThreshold, fontColor, maxFontSizePx, onFontSizeChange } = this.props;
 | 
					        const { textLengthThreshold, fontColor, maxFontSizePx, onFontSizeChange } = this.props;
 | 
				
			||||||
        return (
 | 
					        return (
 | 
				
			||||||
            <ScalingInput
 | 
					            <ScalingInput
 | 
				
			||||||
 | 
					                type="number"
 | 
				
			||||||
                maxFontSizePx={maxFontSizePx}
 | 
					                maxFontSizePx={maxFontSizePx}
 | 
				
			||||||
                textLengthThreshold={textLengthThreshold}
 | 
					                textLengthThreshold={textLengthThreshold}
 | 
				
			||||||
                onFontSizeChange={onFontSizeChange}
 | 
					                onFontSizeChange={onFontSizeChange}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					import { ObjectMap } from '@0x/types';
 | 
				
			||||||
import * as _ from 'lodash';
 | 
					import * as _ from 'lodash';
 | 
				
			||||||
import * as React from 'react';
 | 
					import * as React from 'react';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -13,10 +14,15 @@ export enum ScalingInputPhase {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export interface ScalingSettings {
 | 
					export interface ScalingSettings {
 | 
				
			||||||
    percentageToReduceFontSizePerCharacter: number;
 | 
					    percentageToReduceFontSizePerCharacter: number;
 | 
				
			||||||
    constantPxToIncreaseWidthPerCharacter: number;
 | 
					    // 1ch = the width of the 0 chararacter.
 | 
				
			||||||
 | 
					    // Allow to customize 'char' length for different characters.
 | 
				
			||||||
 | 
					    characterWidthOverrides: ObjectMap<number>;
 | 
				
			||||||
 | 
					    // How much room to leave to the right of the scaling input.
 | 
				
			||||||
 | 
					    additionalInputSpaceInCh: number;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export interface ScalingInputProps {
 | 
					export interface ScalingInputProps {
 | 
				
			||||||
 | 
					    type?: string;
 | 
				
			||||||
    textLengthThreshold: number;
 | 
					    textLengthThreshold: number;
 | 
				
			||||||
    maxFontSizePx: number;
 | 
					    maxFontSizePx: number;
 | 
				
			||||||
    value: string;
 | 
					    value: string;
 | 
				
			||||||
@@ -31,32 +37,29 @@ export interface ScalingInputProps {
 | 
				
			|||||||
    hasAutofocus: boolean;
 | 
					    hasAutofocus: boolean;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export interface ScalingInputState {
 | 
					 | 
				
			||||||
    inputWidthPxAtPhaseChange?: number;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export interface ScalingInputSnapshot {
 | 
					export interface ScalingInputSnapshot {
 | 
				
			||||||
    inputWidthPx: number;
 | 
					    inputWidthPx: number;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// These are magic numbers that were determined experimentally.
 | 
					// These are magic numbers that were determined experimentally.
 | 
				
			||||||
const defaultScalingSettings: ScalingSettings = {
 | 
					const defaultScalingSettings: ScalingSettings = {
 | 
				
			||||||
    percentageToReduceFontSizePerCharacter: 0.125,
 | 
					    percentageToReduceFontSizePerCharacter: 0.1,
 | 
				
			||||||
    constantPxToIncreaseWidthPerCharacter: 4,
 | 
					    characterWidthOverrides: {
 | 
				
			||||||
 | 
					        '1': 0.7,
 | 
				
			||||||
 | 
					        '.': 0.4,
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    additionalInputSpaceInCh: 0.4,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export class ScalingInput extends React.Component<ScalingInputProps, ScalingInputState> {
 | 
					export class ScalingInput extends React.Component<ScalingInputProps> {
 | 
				
			||||||
    public static defaultProps = {
 | 
					    public static defaultProps = {
 | 
				
			||||||
        onChange: util.boundNoop,
 | 
					        onChange: util.boundNoop,
 | 
				
			||||||
        onFontSizeChange: util.boundNoop,
 | 
					        onFontSizeChange: util.boundNoop,
 | 
				
			||||||
        maxLength: 7,
 | 
					        maxLength: 9,
 | 
				
			||||||
        scalingSettings: defaultScalingSettings,
 | 
					        scalingSettings: defaultScalingSettings,
 | 
				
			||||||
        isDisabled: false,
 | 
					        isDisabled: false,
 | 
				
			||||||
        hasAutofocus: false,
 | 
					        hasAutofocus: false,
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    public state: ScalingInputState = {
 | 
					 | 
				
			||||||
        inputWidthPxAtPhaseChange: undefined,
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
    private readonly _inputRef = React.createRef<HTMLInputElement>();
 | 
					    private readonly _inputRef = React.createRef<HTMLInputElement>();
 | 
				
			||||||
    public static getPhase(textLengthThreshold: number, value: string): ScalingInputPhase {
 | 
					    public static getPhase(textLengthThreshold: number, value: string): ScalingInputPhase {
 | 
				
			||||||
        if (value.length <= textLengthThreshold) {
 | 
					        if (value.length <= textLengthThreshold) {
 | 
				
			||||||
@@ -93,36 +96,15 @@ export class ScalingInput extends React.Component<ScalingInputProps, ScalingInpu
 | 
				
			|||||||
            scalingSettings.percentageToReduceFontSizePerCharacter,
 | 
					            scalingSettings.percentageToReduceFontSizePerCharacter,
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    public getSnapshotBeforeUpdate(): ScalingInputSnapshot {
 | 
					 | 
				
			||||||
        return {
 | 
					 | 
				
			||||||
            inputWidthPx: this._getInputWidthInPx(),
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    public componentDidMount(): void {
 | 
					    public componentDidMount(): void {
 | 
				
			||||||
        // Trigger an initial notification of the calculated fontSize.
 | 
					        // Trigger an initial notification of the calculated fontSize.
 | 
				
			||||||
        const currentPhase = ScalingInput.getPhaseFromProps(this.props);
 | 
					        const currentPhase = ScalingInput.getPhaseFromProps(this.props);
 | 
				
			||||||
        const currentFontSize = ScalingInput.calculateFontSizeFromProps(this.props, currentPhase);
 | 
					        const currentFontSize = ScalingInput.calculateFontSizeFromProps(this.props, currentPhase);
 | 
				
			||||||
        this.props.onFontSizeChange(currentFontSize);
 | 
					        this.props.onFontSizeChange(currentFontSize);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    public componentDidUpdate(
 | 
					    public componentDidUpdate(prevProps: ScalingInputProps): void {
 | 
				
			||||||
        prevProps: ScalingInputProps,
 | 
					 | 
				
			||||||
        prevState: ScalingInputState,
 | 
					 | 
				
			||||||
        snapshot: ScalingInputSnapshot,
 | 
					 | 
				
			||||||
    ): void {
 | 
					 | 
				
			||||||
        const prevPhase = ScalingInput.getPhaseFromProps(prevProps);
 | 
					        const prevPhase = ScalingInput.getPhaseFromProps(prevProps);
 | 
				
			||||||
        const curPhase = ScalingInput.getPhaseFromProps(this.props);
 | 
					        const curPhase = ScalingInput.getPhaseFromProps(this.props);
 | 
				
			||||||
        // if we went from fixed to scaling, save the width from the transition
 | 
					 | 
				
			||||||
        if (prevPhase !== ScalingInputPhase.ScalingFontSize && curPhase === ScalingInputPhase.ScalingFontSize) {
 | 
					 | 
				
			||||||
            this.setState({
 | 
					 | 
				
			||||||
                inputWidthPxAtPhaseChange: snapshot.inputWidthPx,
 | 
					 | 
				
			||||||
            });
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        // if we went from scaling to fixed, revert back to scaling using `ch`
 | 
					 | 
				
			||||||
        if (prevPhase === ScalingInputPhase.ScalingFontSize && curPhase !== ScalingInputPhase.ScalingFontSize) {
 | 
					 | 
				
			||||||
            this.setState({
 | 
					 | 
				
			||||||
                inputWidthPxAtPhaseChange: undefined,
 | 
					 | 
				
			||||||
            });
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        const prevFontSize = ScalingInput.calculateFontSizeFromProps(prevProps, prevPhase);
 | 
					        const prevFontSize = ScalingInput.calculateFontSizeFromProps(prevProps, prevPhase);
 | 
				
			||||||
        const curFontSize = ScalingInput.calculateFontSizeFromProps(this.props, curPhase);
 | 
					        const curFontSize = ScalingInput.calculateFontSizeFromProps(this.props, curPhase);
 | 
				
			||||||
        // If font size has changed, notify.
 | 
					        // If font size has changed, notify.
 | 
				
			||||||
@@ -131,13 +113,14 @@ export class ScalingInput extends React.Component<ScalingInputProps, ScalingInpu
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    public render(): React.ReactNode {
 | 
					    public render(): React.ReactNode {
 | 
				
			||||||
        const { hasAutofocus, isDisabled, fontColor, onChange, placeholder, value, maxLength } = this.props;
 | 
					        const { type, hasAutofocus, isDisabled, fontColor, placeholder, value, maxLength } = this.props;
 | 
				
			||||||
        const phase = ScalingInput.getPhaseFromProps(this.props);
 | 
					        const phase = ScalingInput.getPhaseFromProps(this.props);
 | 
				
			||||||
        return (
 | 
					        return (
 | 
				
			||||||
            <Input
 | 
					            <Input
 | 
				
			||||||
 | 
					                type={type}
 | 
				
			||||||
                ref={this._inputRef as any}
 | 
					                ref={this._inputRef as any}
 | 
				
			||||||
                fontColor={fontColor}
 | 
					                fontColor={fontColor}
 | 
				
			||||||
                onChange={onChange}
 | 
					                onChange={this._handleChange}
 | 
				
			||||||
                value={value}
 | 
					                value={value}
 | 
				
			||||||
                placeholder={placeholder}
 | 
					                placeholder={placeholder}
 | 
				
			||||||
                fontSize={`${this._calculateFontSize(phase)}px`}
 | 
					                fontSize={`${this._calculateFontSize(phase)}px`}
 | 
				
			||||||
@@ -149,32 +132,34 @@ export class ScalingInput extends React.Component<ScalingInputProps, ScalingInpu
 | 
				
			|||||||
        );
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    private readonly _calculateWidth = (phase: ScalingInputPhase): string => {
 | 
					    private readonly _calculateWidth = (phase: ScalingInputPhase): string => {
 | 
				
			||||||
        const { value, textLengthThreshold, scalingSettings } = this.props;
 | 
					        const { value, scalingSettings } = this.props;
 | 
				
			||||||
        if (_.isEmpty(value)) {
 | 
					        if (_.isEmpty(value)) {
 | 
				
			||||||
            return `${this.props.emptyInputWidthCh}ch`;
 | 
					            return `${this.props.emptyInputWidthCh}ch`;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        switch (phase) {
 | 
					        const lengthInCh = _.reduce(
 | 
				
			||||||
            case ScalingInputPhase.FixedFontSize:
 | 
					            value.split(''),
 | 
				
			||||||
                return `${value.length}ch`;
 | 
					            (sum, char) => {
 | 
				
			||||||
            case ScalingInputPhase.ScalingFontSize:
 | 
					                const widthOverride = scalingSettings.characterWidthOverrides[char];
 | 
				
			||||||
                const { inputWidthPxAtPhaseChange } = this.state;
 | 
					                if (!_.isUndefined(widthOverride)) {
 | 
				
			||||||
                if (!_.isUndefined(inputWidthPxAtPhaseChange)) {
 | 
					                    // tslint is confused
 | 
				
			||||||
                    const charactersOverMax = value.length - textLengthThreshold;
 | 
					                    // tslint:disable-next-line:restrict-plus-operands
 | 
				
			||||||
                    const scalingAmount = scalingSettings.constantPxToIncreaseWidthPerCharacter * charactersOverMax;
 | 
					                    return sum + widthOverride;
 | 
				
			||||||
                    const width = inputWidthPxAtPhaseChange + scalingAmount;
 | 
					 | 
				
			||||||
                    return `${width}px`;
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                return `${textLengthThreshold}ch`;
 | 
					 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					                return sum + 1;
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            scalingSettings.additionalInputSpaceInCh,
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					        return `${lengthInCh}ch`;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    private readonly _calculateFontSize = (phase: ScalingInputPhase): number => {
 | 
					    private readonly _calculateFontSize = (phase: ScalingInputPhase): number => {
 | 
				
			||||||
        return ScalingInput.calculateFontSizeFromProps(this.props, phase);
 | 
					        return ScalingInput.calculateFontSizeFromProps(this.props, phase);
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    private readonly _getInputWidthInPx = (): number => {
 | 
					    private readonly _handleChange = (event: React.ChangeEvent<HTMLInputElement>): void => {
 | 
				
			||||||
        const ref = this._inputRef.current;
 | 
					        const value = event.target.value;
 | 
				
			||||||
        if (!ref) {
 | 
					        const { maxLength } = this.props;
 | 
				
			||||||
            return 0;
 | 
					        if (!_.isUndefined(value) && !_.isUndefined(maxLength) && value.length > maxLength) {
 | 
				
			||||||
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return ref.getBoundingClientRect().width;
 | 
					        this.props.onChange(event);
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ import * as React from 'react';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import { ColorOption, styled } from '../../style/theme';
 | 
					import { ColorOption, styled } from '../../style/theme';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export interface InputProps {
 | 
					export interface InputProps extends React.HTMLAttributes<HTMLInputElement> {
 | 
				
			||||||
    tabIndex?: number;
 | 
					    tabIndex?: number;
 | 
				
			||||||
    className?: string;
 | 
					    className?: string;
 | 
				
			||||||
    value?: string;
 | 
					    value?: string;
 | 
				
			||||||
@@ -32,6 +32,10 @@ export const Input =
 | 
				
			|||||||
            color: ${props => props.theme[props.fontColor || 'white']} !important;
 | 
					            color: ${props => props.theme[props.fontColor || 'white']} !important;
 | 
				
			||||||
            opacity: 0.5 !important;
 | 
					            opacity: 0.5 !important;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        &::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
 | 
				
			||||||
 | 
					            -webkit-appearance: none;
 | 
				
			||||||
 | 
					            margin: 0;
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
`;
 | 
					`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -99,6 +99,7 @@ export const asyncData = {
 | 
				
			|||||||
        if (
 | 
					        if (
 | 
				
			||||||
            !_.isUndefined(selectedAssetUnitAmount) &&
 | 
					            !_.isUndefined(selectedAssetUnitAmount) &&
 | 
				
			||||||
            !_.isUndefined(selectedAsset) &&
 | 
					            !_.isUndefined(selectedAsset) &&
 | 
				
			||||||
 | 
					            selectedAssetUnitAmount.greaterThan(BIG_NUMBER_ZERO) &&
 | 
				
			||||||
            buyOrderState.processState === OrderProcessState.None &&
 | 
					            buyOrderState.processState === OrderProcessState.None &&
 | 
				
			||||||
            selectedAsset.metaData.assetProxyId === AssetProxyId.ERC20
 | 
					            selectedAsset.metaData.assetProxyId === AssetProxyId.ERC20
 | 
				
			||||||
        ) {
 | 
					        ) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "2.1.4",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "2.1.3",
 | 
					        "version": "2.1.3",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1542821676,
 | 
					        "timestamp": 1542821676,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v2.1.3 - _December 10, 2018_
 | 
					## v2.1.4 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v2.1.3 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/json-schemas",
 | 
					    "name": "@0x/json-schemas",
 | 
				
			||||||
    "version": "2.1.2",
 | 
					    "version": "2.1.4",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -39,14 +39,14 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/json-schemas/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/json-schemas/README.md",
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@types/node": "*",
 | 
					        "@types/node": "*",
 | 
				
			||||||
        "jsonschema": "^1.2.0",
 | 
					        "jsonschema": "^1.2.0",
 | 
				
			||||||
        "lodash.values": "^4.3.0"
 | 
					        "lodash.values": "^4.3.0"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@types/lodash.foreach": "^4.5.3",
 | 
					        "@types/lodash.foreach": "^4.5.3",
 | 
				
			||||||
        "@types/lodash.values": "^4.3.3",
 | 
					        "@types/lodash.values": "^4.3.3",
 | 
				
			||||||
        "@types/mocha": "^2.2.42",
 | 
					        "@types/mocha": "^2.2.42",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/metacoin",
 | 
					    "name": "@0x/metacoin",
 | 
				
			||||||
    "version": "0.0.30",
 | 
					    "version": "0.0.32",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -29,26 +29,26 @@
 | 
				
			|||||||
    "author": "",
 | 
					    "author": "",
 | 
				
			||||||
    "license": "Apache-2.0",
 | 
					    "license": "Apache-2.0",
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/abi-gen": "^1.0.17",
 | 
					        "@0x/abi-gen": "^1.0.19",
 | 
				
			||||||
        "@0x/abi-gen-templates": "^1.0.1",
 | 
					        "@0x/abi-gen-templates": "^1.0.1",
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/sol-cov": "^2.1.14",
 | 
					        "@0x/sol-cov": "^2.1.16",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "@types/mocha": "^5.2.2",
 | 
					        "@types/mocha": "^5.2.2",
 | 
				
			||||||
        "copyfiles": "^2.0.0",
 | 
					        "copyfiles": "^2.0.0",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethers": "~4.0.4",
 | 
					        "ethers": "~4.0.4",
 | 
				
			||||||
        "lodash": "^4.17.5",
 | 
					        "lodash": "^4.17.5",
 | 
				
			||||||
        "run-s": "^0.0.0"
 | 
					        "run-s": "^0.0.0"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.19",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/sol-compiler": "^1.1.14",
 | 
					        "@0x/sol-compiler": "^1.1.16",
 | 
				
			||||||
        "chai": "^4.0.1",
 | 
					        "chai": "^4.0.1",
 | 
				
			||||||
        "chai-as-promised": "^7.1.0",
 | 
					        "chai-as-promised": "^7.1.0",
 | 
				
			||||||
        "chai-bignumber": "^2.0.1",
 | 
					        "chai-bignumber": "^2.0.1",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "2.2.2",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "2.2.1",
 | 
					        "version": "2.2.1",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "version": "2.2.0",
 | 
					        "version": "2.2.0",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v2.2.1 - _December 10, 2018_
 | 
					## v2.2.2 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v2.2.1 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/migrations",
 | 
					    "name": "@0x/migrations",
 | 
				
			||||||
    "version": "2.2.0",
 | 
					    "version": "2.2.2",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -26,9 +26,9 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "license": "Apache-2.0",
 | 
					    "license": "Apache-2.0",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.19",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@types/yargs": "^10.0.0",
 | 
					        "@types/yargs": "^10.0.0",
 | 
				
			||||||
        "make-promises-safe": "^1.1.0",
 | 
					        "make-promises-safe": "^1.1.0",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
@@ -39,18 +39,18 @@
 | 
				
			|||||||
        "yargs": "^10.0.3"
 | 
					        "yargs": "^10.0.3"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/abi-gen-wrappers": "^2.0.0",
 | 
					        "@0x/abi-gen-wrappers": "^2.0.2",
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/contract-addresses": "^2.0.0",
 | 
					        "@0x/contract-addresses": "^2.0.0",
 | 
				
			||||||
        "@0x/contract-artifacts": "^1.1.2",
 | 
					        "@0x/contract-artifacts": "^1.1.2",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/sol-compiler": "^1.1.14",
 | 
					        "@0x/sol-compiler": "^1.1.16",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.6",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "@ledgerhq/hw-app-eth": "^4.3.0",
 | 
					        "@ledgerhq/hw-app-eth": "^4.3.0",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethers": "~4.0.4",
 | 
					        "ethers": "~4.0.4",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "private": true,
 | 
					    "private": true,
 | 
				
			||||||
    "name": "@0x/monorepo-scripts",
 | 
					    "name": "@0x/monorepo-scripts",
 | 
				
			||||||
    "version": "1.0.14",
 | 
					    "version": "1.0.15",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,13 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "version": "3.0.7",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "version": "3.0.6",
 | 
					        "version": "3.0.6",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
@@ -6,7 +15,8 @@
 | 
				
			|||||||
                "note": "Fix bug in wallet signature type verification",
 | 
					                "note": "Fix bug in wallet signature type verification",
 | 
				
			||||||
                "pr": 1414
 | 
					                "pr": 1414
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "timestamp": 1544482891,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v3.0.7 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v3.0.6 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Fix bug in wallet signature type verification (#1414)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v3.0.5 - _December 10, 2018_
 | 
					## v3.0.5 - _December 10, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/order-utils",
 | 
					    "name": "@0x/order-utils",
 | 
				
			||||||
    "version": "3.0.4",
 | 
					    "version": "3.0.7",
 | 
				
			||||||
    "engines": {
 | 
					    "engines": {
 | 
				
			||||||
        "node": ">=6.12"
 | 
					        "node": ">=6.12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -35,8 +35,8 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "homepage": "https://github.com/0xProject/0x-monorepo/packages/order-utils/README.md",
 | 
					    "homepage": "https://github.com/0xProject/0x-monorepo/packages/order-utils/README.md",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.19",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/bn.js": "^4.11.0",
 | 
					        "@types/bn.js": "^4.11.0",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "chai": "^4.0.1",
 | 
					        "chai": "^4.0.1",
 | 
				
			||||||
@@ -53,18 +53,18 @@
 | 
				
			|||||||
        "typescript": "3.0.1"
 | 
					        "typescript": "3.0.1"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/abi-gen-wrappers": "^2.0.0",
 | 
					        "@0x/abi-gen-wrappers": "^2.0.2",
 | 
				
			||||||
        "@0x/assert": "^1.0.18",
 | 
					        "@0x/assert": "^1.0.20",
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/contract-artifacts": "^1.1.2",
 | 
					        "@0x/contract-artifacts": "^1.1.2",
 | 
				
			||||||
        "@0x/json-schemas": "^2.1.2",
 | 
					        "@0x/json-schemas": "^2.1.4",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "@types/node": "*",
 | 
					        "@types/node": "*",
 | 
				
			||||||
        "bn.js": "^4.11.8",
 | 
					        "bn.js": "^4.11.8",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethereumjs-abi": "0.6.5",
 | 
					        "ethereumjs-abi": "0.6.5",
 | 
				
			||||||
        "ethereumjs-util": "^5.1.1",
 | 
					        "ethereumjs-util": "^5.1.1",
 | 
				
			||||||
        "ethers": "~4.0.4",
 | 
					        "ethers": "~4.0.4",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,21 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1544482891,
 | 
					        "version": "2.2.8",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544739608
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
        "version": "2.2.7",
 | 
					        "version": "2.2.7",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                "note": "Dependencies updated"
 | 
					                "note": "Dependencies updated"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]
 | 
					        ],
 | 
				
			||||||
 | 
					        "timestamp": 1544570656
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "timestamp": 1543401373,
 | 
					        "timestamp": 1543401373,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,7 +5,11 @@ Edit the package's CHANGELOG.json file only.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CHANGELOG
 | 
					CHANGELOG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## v2.2.7 - _December 10, 2018_
 | 
					## v2.2.8 - _December 13, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## v2.2.7 - _December 11, 2018_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    * Dependencies updated
 | 
					    * Dependencies updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/order-watcher",
 | 
					    "name": "@0x/order-watcher",
 | 
				
			||||||
    "version": "2.2.6",
 | 
					    "version": "2.2.8",
 | 
				
			||||||
    "description": "An order watcher daemon that watches for order validity",
 | 
					    "description": "An order watcher daemon that watches for order validity",
 | 
				
			||||||
    "keywords": [
 | 
					    "keywords": [
 | 
				
			||||||
        "0x",
 | 
					        "0x",
 | 
				
			||||||
@@ -33,9 +33,9 @@
 | 
				
			|||||||
        "node": ">=6.0.0"
 | 
					        "node": ">=6.0.0"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.19",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/migrations": "^2.2.0",
 | 
					        "@0x/migrations": "^2.2.2",
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.10",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/bintrees": "^1.0.2",
 | 
					        "@types/bintrees": "^1.0.2",
 | 
				
			||||||
        "@types/lodash": "4.14.104",
 | 
					        "@types/lodash": "4.14.104",
 | 
				
			||||||
        "@types/mocha": "^2.2.42",
 | 
					        "@types/mocha": "^2.2.42",
 | 
				
			||||||
@@ -57,21 +57,21 @@
 | 
				
			|||||||
        "typescript": "3.0.1"
 | 
					        "typescript": "3.0.1"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/abi-gen-wrappers": "^2.0.0",
 | 
					        "@0x/abi-gen-wrappers": "^2.0.2",
 | 
				
			||||||
        "@0x/assert": "^1.0.18",
 | 
					        "@0x/assert": "^1.0.20",
 | 
				
			||||||
        "@0x/base-contract": "^3.0.8",
 | 
					        "@0x/base-contract": "^3.0.10",
 | 
				
			||||||
        "@0x/contract-addresses": "^2.0.0",
 | 
					        "@0x/contract-addresses": "^2.0.0",
 | 
				
			||||||
        "@0x/contract-artifacts": "^1.1.2",
 | 
					        "@0x/contract-artifacts": "^1.1.2",
 | 
				
			||||||
        "@0x/contract-wrappers": "^4.1.1",
 | 
					        "@0x/contract-wrappers": "^4.1.3",
 | 
				
			||||||
        "@0x/fill-scenarios": "^1.0.14",
 | 
					        "@0x/fill-scenarios": "^1.0.16",
 | 
				
			||||||
        "@0x/json-schemas": "^2.1.2",
 | 
					        "@0x/json-schemas": "^2.1.4",
 | 
				
			||||||
        "@0x/order-utils": "^3.0.4",
 | 
					        "@0x/order-utils": "^3.0.7",
 | 
				
			||||||
        "@0x/types": "^1.3.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/typescript-typings": "^3.0.4",
 | 
					        "@0x/typescript-typings": "^3.0.6",
 | 
				
			||||||
        "@0x/utils": "^2.0.6",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.6",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "bintrees": "^1.0.2",
 | 
					        "bintrees": "^1.0.2",
 | 
				
			||||||
        "ethereum-types": "^1.1.2",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "ethereumjs-blockstream": "6.0.0",
 | 
					        "ethereumjs-blockstream": "6.0.0",
 | 
				
			||||||
        "ethers": "~4.0.4",
 | 
					        "ethers": "~4.0.4",
 | 
				
			||||||
        "lodash": "^4.17.5"
 | 
					        "lodash": "^4.17.5"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					import { MigrationInterface, QueryRunner, Table } from 'typeorm';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const erc20ApprovalEvents = new Table({
 | 
				
			||||||
 | 
					    name: 'raw.erc20_approval_events',
 | 
				
			||||||
 | 
					    columns: [
 | 
				
			||||||
 | 
					        { name: 'token_address', type: 'varchar(42)', isPrimary: true },
 | 
				
			||||||
 | 
					        { name: 'log_index', type: 'integer', isPrimary: true },
 | 
				
			||||||
 | 
					        { name: 'block_number', type: 'bigint', isPrimary: true },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        { name: 'raw_data', type: 'varchar' },
 | 
				
			||||||
 | 
					        { name: 'transaction_hash', type: 'varchar' },
 | 
				
			||||||
 | 
					        { name: 'owner_address', type: 'varchar(42)' },
 | 
				
			||||||
 | 
					        { name: 'spender_address', type: 'varchar(42)' },
 | 
				
			||||||
 | 
					        { name: 'amount', type: 'numeric' },
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export class CreateERC20TokenApprovalEvents1544131464368 implements MigrationInterface {
 | 
				
			||||||
 | 
					    public async up(queryRunner: QueryRunner): Promise<any> {
 | 
				
			||||||
 | 
					        await queryRunner.createTable(erc20ApprovalEvents);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public async down(queryRunner: QueryRunner): Promise<any> {
 | 
				
			||||||
 | 
					        await queryRunner.dropTable(erc20ApprovalEvents);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,33 @@
 | 
				
			|||||||
 | 
					import { MigrationInterface, QueryRunner } from 'typeorm';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export class TokenOrderbookSnapshotAddOrderType1544131658904 implements MigrationInterface {
 | 
				
			||||||
 | 
					    public async up(queryRunner: QueryRunner): Promise<any> {
 | 
				
			||||||
 | 
					        await queryRunner.query(
 | 
				
			||||||
 | 
					            `ALTER TABLE raw.token_orderbook_snapshots
 | 
				
			||||||
 | 
					                DROP CONSTRAINT "PK_8a16487e7cb6862ec5a84ed3495",
 | 
				
			||||||
 | 
					                ADD PRIMARY KEY (observed_timestamp, source, order_type, price, base_asset_symbol, quote_asset_symbol);
 | 
				
			||||||
 | 
					            `,
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					        await queryRunner.query(
 | 
				
			||||||
 | 
					            `ALTER TABLE raw.token_orderbook_snapshots
 | 
				
			||||||
 | 
					                ALTER COLUMN quote_asset_address DROP NOT NULL,
 | 
				
			||||||
 | 
					                ALTER COLUMN base_asset_address DROP NOT NULL;
 | 
				
			||||||
 | 
					            `,
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public async down(queryRunner: QueryRunner): Promise<any> {
 | 
				
			||||||
 | 
					        await queryRunner.query(
 | 
				
			||||||
 | 
					            `ALTER TABLE raw.token_orderbook_snapshots
 | 
				
			||||||
 | 
					                ALTER COLUMN quote_asset_address SET NOT NULL,
 | 
				
			||||||
 | 
					                ALTER COLUMN base_asset_address SET NOT NULL;
 | 
				
			||||||
 | 
					            `,
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					        await queryRunner.query(
 | 
				
			||||||
 | 
					            `ALTER TABLE raw.token_orderbook_snapshots
 | 
				
			||||||
 | 
					                DROP CONSTRAINT token_orderbook_snapshots_pkey,
 | 
				
			||||||
 | 
					                ADD CONSTRAINT "PK_8a16487e7cb6862ec5a84ed3495" PRIMARY KEY (observed_timestamp, source, price, base_asset_symbol, quote_asset_symbol);
 | 
				
			||||||
 | 
					            `,
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@0x/pipeline",
 | 
					    "name": "@0x/pipeline",
 | 
				
			||||||
    "version": "1.0.0",
 | 
					    "version": "1.0.2",
 | 
				
			||||||
    "private": true,
 | 
					    "private": true,
 | 
				
			||||||
    "description": "Data pipeline for offline analysis",
 | 
					    "description": "Data pipeline for offline analysis",
 | 
				
			||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
@@ -27,7 +27,7 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "license": "Apache-2.0",
 | 
					    "license": "Apache-2.0",
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0x/tslint-config": "^1.0.9",
 | 
					        "@0x/tslint-config": "^2.0.0",
 | 
				
			||||||
        "@types/axios": "^0.14.0",
 | 
					        "@types/axios": "^0.14.0",
 | 
				
			||||||
        "@types/ramda": "^0.25.38",
 | 
					        "@types/ramda": "^0.25.38",
 | 
				
			||||||
        "chai": "^4.1.2",
 | 
					        "chai": "^4.1.2",
 | 
				
			||||||
@@ -39,22 +39,23 @@
 | 
				
			|||||||
        "typescript": "3.0.1"
 | 
					        "typescript": "3.0.1"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
        "@0x/connect": "^3.0.2",
 | 
					        "@0x/connect": "^3.0.10",
 | 
				
			||||||
 | 
					        "@0x/contract-addresses": "^2.0.0",
 | 
				
			||||||
        "@0x/contract-artifacts": "^1.0.1",
 | 
					        "@0x/contract-artifacts": "^1.0.1",
 | 
				
			||||||
        "@0x/contract-wrappers": "^3.0.0",
 | 
					        "@0x/contract-wrappers": "^3.0.0",
 | 
				
			||||||
        "@0x/dev-utils": "^1.0.13",
 | 
					        "@0x/dev-utils": "^1.0.21",
 | 
				
			||||||
        "@0x/order-utils": "^2.0.0",
 | 
					        "@0x/order-utils": "^2.0.0",
 | 
				
			||||||
        "@0x/subproviders": "^2.1.0",
 | 
					        "@0x/subproviders": "^2.1.8",
 | 
				
			||||||
        "@0x/types": "^1.2.0",
 | 
					        "@0x/types": "^1.4.1",
 | 
				
			||||||
        "@0x/utils": "^2.0.3",
 | 
					        "@0x/utils": "^2.0.8",
 | 
				
			||||||
        "@0x/web3-wrapper": "^3.1.0",
 | 
					        "@0x/web3-wrapper": "^3.2.1",
 | 
				
			||||||
        "@types/dockerode": "^2.5.9",
 | 
					        "@types/dockerode": "^2.5.9",
 | 
				
			||||||
        "@types/p-limit": "^2.0.0",
 | 
					        "@types/p-limit": "^2.0.0",
 | 
				
			||||||
        "async-parallel": "^1.2.3",
 | 
					        "async-parallel": "^1.2.3",
 | 
				
			||||||
        "axios": "^0.18.0",
 | 
					        "axios": "^0.18.0",
 | 
				
			||||||
        "bottleneck": "^2.13.2",
 | 
					        "bottleneck": "^2.13.2",
 | 
				
			||||||
        "dockerode": "^2.5.7",
 | 
					        "dockerode": "^2.5.7",
 | 
				
			||||||
        "ethereum-types": "^1.0.6",
 | 
					        "ethereum-types": "^1.1.4",
 | 
				
			||||||
        "pg": "^7.5.0",
 | 
					        "pg": "^7.5.0",
 | 
				
			||||||
        "prettier": "^1.15.3",
 | 
					        "prettier": "^1.15.3",
 | 
				
			||||||
        "ramda": "^0.25.0",
 | 
					        "ramda": "^0.25.0",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1,45 @@
 | 
				
			|||||||
 | 
					import {
 | 
				
			||||||
 | 
					    ContractWrappers,
 | 
				
			||||||
 | 
					    ERC20TokenApprovalEventArgs,
 | 
				
			||||||
 | 
					    ERC20TokenEvents,
 | 
				
			||||||
 | 
					    ERC20TokenWrapper,
 | 
				
			||||||
 | 
					} from '@0x/contract-wrappers';
 | 
				
			||||||
 | 
					import { Web3ProviderEngine } from '@0x/subproviders';
 | 
				
			||||||
 | 
					import { LogWithDecodedArgs } from 'ethereum-types';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import { GetEventsFunc, getEventsWithPaginationAsync } from './utils';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export class ERC20EventsSource {
 | 
				
			||||||
 | 
					    private readonly _erc20Wrapper: ERC20TokenWrapper;
 | 
				
			||||||
 | 
					    private readonly _tokenAddress: string;
 | 
				
			||||||
 | 
					    constructor(provider: Web3ProviderEngine, networkId: number, tokenAddress: string) {
 | 
				
			||||||
 | 
					        const contractWrappers = new ContractWrappers(provider, { networkId });
 | 
				
			||||||
 | 
					        this._erc20Wrapper = contractWrappers.erc20Token;
 | 
				
			||||||
 | 
					        this._tokenAddress = tokenAddress;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public async getApprovalEventsAsync(
 | 
				
			||||||
 | 
					        startBlock: number,
 | 
				
			||||||
 | 
					        endBlock: number,
 | 
				
			||||||
 | 
					    ): Promise<Array<LogWithDecodedArgs<ERC20TokenApprovalEventArgs>>> {
 | 
				
			||||||
 | 
					        return getEventsWithPaginationAsync(
 | 
				
			||||||
 | 
					            this._getApprovalEventsForRangeAsync.bind(this) as GetEventsFunc<ERC20TokenApprovalEventArgs>,
 | 
				
			||||||
 | 
					            startBlock,
 | 
				
			||||||
 | 
					            endBlock,
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // Gets all approval events of for a specific sub-range. This getter
 | 
				
			||||||
 | 
					    // function will be called during each step of pagination.
 | 
				
			||||||
 | 
					    private async _getApprovalEventsForRangeAsync(
 | 
				
			||||||
 | 
					        fromBlock: number,
 | 
				
			||||||
 | 
					        toBlock: number,
 | 
				
			||||||
 | 
					    ): Promise<Array<LogWithDecodedArgs<ERC20TokenApprovalEventArgs>>> {
 | 
				
			||||||
 | 
					        return this._erc20Wrapper.getLogsAsync<ERC20TokenApprovalEventArgs>(
 | 
				
			||||||
 | 
					            this._tokenAddress,
 | 
				
			||||||
 | 
					            ERC20TokenEvents.Approval,
 | 
				
			||||||
 | 
					            { fromBlock, toBlock },
 | 
				
			||||||
 | 
					            {},
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -8,78 +8,52 @@ import {
 | 
				
			|||||||
    ExchangeWrapper,
 | 
					    ExchangeWrapper,
 | 
				
			||||||
} from '@0x/contract-wrappers';
 | 
					} from '@0x/contract-wrappers';
 | 
				
			||||||
import { Web3ProviderEngine } from '@0x/subproviders';
 | 
					import { Web3ProviderEngine } from '@0x/subproviders';
 | 
				
			||||||
import { Web3Wrapper } from '@0x/web3-wrapper';
 | 
					 | 
				
			||||||
import { LogWithDecodedArgs } from 'ethereum-types';
 | 
					import { LogWithDecodedArgs } from 'ethereum-types';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { EXCHANGE_START_BLOCK } from '../../utils';
 | 
					import { GetEventsFunc, getEventsWithPaginationAsync } from './utils';
 | 
				
			||||||
 | 
					 | 
				
			||||||
const BLOCK_FINALITY_THRESHOLD = 10; // When to consider blocks as final. Used to compute default toBlock.
 | 
					 | 
				
			||||||
const NUM_BLOCKS_PER_QUERY = 20000; // Number of blocks to query for events at a time.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
export class ExchangeEventsSource {
 | 
					export class ExchangeEventsSource {
 | 
				
			||||||
    private readonly _exchangeWrapper: ExchangeWrapper;
 | 
					    private readonly _exchangeWrapper: ExchangeWrapper;
 | 
				
			||||||
    private readonly _web3Wrapper: Web3Wrapper;
 | 
					 | 
				
			||||||
    constructor(provider: Web3ProviderEngine, networkId: number) {
 | 
					    constructor(provider: Web3ProviderEngine, networkId: number) {
 | 
				
			||||||
        this._web3Wrapper = new Web3Wrapper(provider);
 | 
					 | 
				
			||||||
        const contractWrappers = new ContractWrappers(provider, { networkId });
 | 
					        const contractWrappers = new ContractWrappers(provider, { networkId });
 | 
				
			||||||
        this._exchangeWrapper = contractWrappers.exchange;
 | 
					        this._exchangeWrapper = contractWrappers.exchange;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public async getFillEventsAsync(
 | 
					    public async getFillEventsAsync(
 | 
				
			||||||
        fromBlock?: number,
 | 
					        startBlock: number,
 | 
				
			||||||
        toBlock?: number,
 | 
					        endBlock: number,
 | 
				
			||||||
    ): Promise<Array<LogWithDecodedArgs<ExchangeFillEventArgs>>> {
 | 
					    ): Promise<Array<LogWithDecodedArgs<ExchangeFillEventArgs>>> {
 | 
				
			||||||
        return this._getEventsAsync<ExchangeFillEventArgs>(ExchangeEvents.Fill, fromBlock, toBlock);
 | 
					        const getFillEventsForRangeAsync = this._makeGetterFuncForEventType<ExchangeFillEventArgs>(ExchangeEvents.Fill);
 | 
				
			||||||
 | 
					        return getEventsWithPaginationAsync(getFillEventsForRangeAsync, startBlock, endBlock);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public async getCancelEventsAsync(
 | 
					    public async getCancelEventsAsync(
 | 
				
			||||||
        fromBlock?: number,
 | 
					        startBlock: number,
 | 
				
			||||||
        toBlock?: number,
 | 
					        endBlock: number,
 | 
				
			||||||
    ): Promise<Array<LogWithDecodedArgs<ExchangeCancelEventArgs>>> {
 | 
					    ): Promise<Array<LogWithDecodedArgs<ExchangeCancelEventArgs>>> {
 | 
				
			||||||
        return this._getEventsAsync<ExchangeCancelEventArgs>(ExchangeEvents.Cancel, fromBlock, toBlock);
 | 
					        const getCancelEventsForRangeAsync = this._makeGetterFuncForEventType<ExchangeCancelEventArgs>(
 | 
				
			||||||
 | 
					            ExchangeEvents.Cancel,
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					        return getEventsWithPaginationAsync(getCancelEventsForRangeAsync, startBlock, endBlock);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public async getCancelUpToEventsAsync(
 | 
					    public async getCancelUpToEventsAsync(
 | 
				
			||||||
        fromBlock?: number,
 | 
					        startBlock: number,
 | 
				
			||||||
        toBlock?: number,
 | 
					        endBlock: number,
 | 
				
			||||||
    ): Promise<Array<LogWithDecodedArgs<ExchangeCancelUpToEventArgs>>> {
 | 
					    ): Promise<Array<LogWithDecodedArgs<ExchangeCancelUpToEventArgs>>> {
 | 
				
			||||||
        return this._getEventsAsync<ExchangeCancelUpToEventArgs>(ExchangeEvents.CancelUpTo, fromBlock, toBlock);
 | 
					        const getCancelUpToEventsForRangeAsync = this._makeGetterFuncForEventType<ExchangeCancelUpToEventArgs>(
 | 
				
			||||||
 | 
					            ExchangeEvents.CancelUpTo,
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					        return getEventsWithPaginationAsync(getCancelUpToEventsForRangeAsync, startBlock, endBlock);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private async _getEventsAsync<ArgsType extends ExchangeEventArgs>(
 | 
					    // Returns a getter function which gets all events of a specific type for a
 | 
				
			||||||
        eventName: ExchangeEvents,
 | 
					    // specific sub-range. This getter function will be called during each step
 | 
				
			||||||
        fromBlock: number = EXCHANGE_START_BLOCK,
 | 
					    // of pagination.
 | 
				
			||||||
        toBlock?: number,
 | 
					    private _makeGetterFuncForEventType<ArgsType extends ExchangeEventArgs>(
 | 
				
			||||||
    ): Promise<Array<LogWithDecodedArgs<ArgsType>>> {
 | 
					        eventType: ExchangeEvents,
 | 
				
			||||||
        const calculatedToBlock =
 | 
					    ): GetEventsFunc<ArgsType> {
 | 
				
			||||||
            toBlock === undefined
 | 
					        return async (fromBlock: number, toBlock: number) =>
 | 
				
			||||||
                ? (await this._web3Wrapper.getBlockNumberAsync()) - BLOCK_FINALITY_THRESHOLD
 | 
					            this._exchangeWrapper.getLogsAsync<ArgsType>(eventType, { fromBlock, toBlock }, {});
 | 
				
			||||||
                : toBlock;
 | 
					 | 
				
			||||||
        let events: Array<LogWithDecodedArgs<ArgsType>> = [];
 | 
					 | 
				
			||||||
        for (let currFromBlock = fromBlock; currFromBlock <= calculatedToBlock; currFromBlock += NUM_BLOCKS_PER_QUERY) {
 | 
					 | 
				
			||||||
            events = events.concat(
 | 
					 | 
				
			||||||
                await this._getEventsForRangeAsync<ArgsType>(
 | 
					 | 
				
			||||||
                    eventName,
 | 
					 | 
				
			||||||
                    currFromBlock,
 | 
					 | 
				
			||||||
                    Math.min(currFromBlock + NUM_BLOCKS_PER_QUERY - 1, calculatedToBlock),
 | 
					 | 
				
			||||||
                ),
 | 
					 | 
				
			||||||
            );
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        return events;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    private async _getEventsForRangeAsync<ArgsType extends ExchangeEventArgs>(
 | 
					 | 
				
			||||||
        eventName: ExchangeEvents,
 | 
					 | 
				
			||||||
        fromBlock: number,
 | 
					 | 
				
			||||||
        toBlock: number,
 | 
					 | 
				
			||||||
    ): Promise<Array<LogWithDecodedArgs<ArgsType>>> {
 | 
					 | 
				
			||||||
        return this._exchangeWrapper.getLogsAsync<ArgsType>(
 | 
					 | 
				
			||||||
            eventName,
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                fromBlock,
 | 
					 | 
				
			||||||
                toBlock,
 | 
					 | 
				
			||||||
            },
 | 
					 | 
				
			||||||
            {},
 | 
					 | 
				
			||||||
        );
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1,67 @@
 | 
				
			|||||||
 | 
					import { DecodedLogArgs, LogWithDecodedArgs } from 'ethereum-types';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const NUM_BLOCKS_PER_QUERY = 10000; // Number of blocks to query for events at a time.
 | 
				
			||||||
 | 
					const NUM_RETRIES = 3; // Number of retries if a request fails or times out.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export type GetEventsFunc<ArgsType extends DecodedLogArgs> = (
 | 
				
			||||||
 | 
					    fromBlock: number,
 | 
				
			||||||
 | 
					    toBlock: number,
 | 
				
			||||||
 | 
					) => Promise<Array<LogWithDecodedArgs<ArgsType>>>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Gets all events between the given startBlock and endBlock by querying for
 | 
				
			||||||
 | 
					 * NUM_BLOCKS_PER_QUERY at a time. Accepts a getter function in order to
 | 
				
			||||||
 | 
					 * maximize code re-use and allow for getting different types of events for
 | 
				
			||||||
 | 
					 * different contracts. If the getter function throws with a retryable error,
 | 
				
			||||||
 | 
					 * it will automatically be retried up to NUM_RETRIES times.
 | 
				
			||||||
 | 
					 * @param getEventsAsync A getter function which will be called for each step during pagination.
 | 
				
			||||||
 | 
					 * @param startBlock The start of the entire block range to get events for.
 | 
				
			||||||
 | 
					 * @param endBlock The end of the entire block range to get events for.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					export async function getEventsWithPaginationAsync<ArgsType extends DecodedLogArgs>(
 | 
				
			||||||
 | 
					    getEventsAsync: GetEventsFunc<ArgsType>,
 | 
				
			||||||
 | 
					    startBlock: number,
 | 
				
			||||||
 | 
					    endBlock: number,
 | 
				
			||||||
 | 
					): Promise<Array<LogWithDecodedArgs<ArgsType>>> {
 | 
				
			||||||
 | 
					    let events: Array<LogWithDecodedArgs<ArgsType>> = [];
 | 
				
			||||||
 | 
					    for (let fromBlock = startBlock; fromBlock <= endBlock; fromBlock += NUM_BLOCKS_PER_QUERY) {
 | 
				
			||||||
 | 
					        const toBlock = Math.min(fromBlock + NUM_BLOCKS_PER_QUERY - 1, endBlock);
 | 
				
			||||||
 | 
					        const eventsInRange = await _getEventsWithRetriesAsync(getEventsAsync, NUM_RETRIES, fromBlock, toBlock);
 | 
				
			||||||
 | 
					        events = events.concat(eventsInRange);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return events;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Calls the getEventsAsync function and retries up to numRetries times if it
 | 
				
			||||||
 | 
					 * throws with an error that is considered retryable.
 | 
				
			||||||
 | 
					 * @param getEventsAsync a function that will be called on each iteration.
 | 
				
			||||||
 | 
					 * @param numRetries the maximum number times to retry getEventsAsync if it fails with a retryable error.
 | 
				
			||||||
 | 
					 * @param fromBlock the start of the sub-range of blocks we are getting events for.
 | 
				
			||||||
 | 
					 * @param toBlock the end of the sub-range of blocks we are getting events for.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					export async function _getEventsWithRetriesAsync<ArgsType extends DecodedLogArgs>(
 | 
				
			||||||
 | 
					    getEventsAsync: GetEventsFunc<ArgsType>,
 | 
				
			||||||
 | 
					    numRetries: number,
 | 
				
			||||||
 | 
					    fromBlock: number,
 | 
				
			||||||
 | 
					    toBlock: number,
 | 
				
			||||||
 | 
					): Promise<Array<LogWithDecodedArgs<ArgsType>>> {
 | 
				
			||||||
 | 
					    let eventsInRange: Array<LogWithDecodedArgs<ArgsType>> = [];
 | 
				
			||||||
 | 
					    for (let i = 0; i <= numRetries; i++) {
 | 
				
			||||||
 | 
					        try {
 | 
				
			||||||
 | 
					            eventsInRange = await getEventsAsync(fromBlock, toBlock);
 | 
				
			||||||
 | 
					        } catch (err) {
 | 
				
			||||||
 | 
					            if (isErrorRetryable(err) && i < numRetries) {
 | 
				
			||||||
 | 
					                continue;
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					                throw err;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        break;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return eventsInRange;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function isErrorRetryable(err: Error): boolean {
 | 
				
			||||||
 | 
					    return err.message.includes('network timeout');
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										82
									
								
								packages/pipeline/src/data_sources/idex/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										82
									
								
								packages/pipeline/src/data_sources/idex/index.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,82 @@
 | 
				
			|||||||
 | 
					import { fetchAsync } from '@0x/utils';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const IDEX_BASE_URL = 'https://api.idex.market';
 | 
				
			||||||
 | 
					const MARKETS_URL = `${IDEX_BASE_URL}/returnTicker`;
 | 
				
			||||||
 | 
					const ORDERBOOK_URL = `${IDEX_BASE_URL}/returnOrderBook`;
 | 
				
			||||||
 | 
					const MAX_ORDER_COUNT = 100; // Maximum based on https://github.com/AuroraDAO/idex-api-docs#returnorderbook
 | 
				
			||||||
 | 
					export const IDEX_SOURCE = 'idex';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface IdexMarketsResponse {
 | 
				
			||||||
 | 
					    [marketName: string]: IdexMarket;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface IdexMarket {
 | 
				
			||||||
 | 
					    last: string;
 | 
				
			||||||
 | 
					    high: string;
 | 
				
			||||||
 | 
					    low: string;
 | 
				
			||||||
 | 
					    lowestAsk: string;
 | 
				
			||||||
 | 
					    highestBid: string;
 | 
				
			||||||
 | 
					    percentChange: string;
 | 
				
			||||||
 | 
					    baseVolume: string;
 | 
				
			||||||
 | 
					    quoteVolume: string;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface IdexOrderbook {
 | 
				
			||||||
 | 
					    asks: IdexOrder[];
 | 
				
			||||||
 | 
					    bids: IdexOrder[];
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface IdexOrder {
 | 
				
			||||||
 | 
					    price: string;
 | 
				
			||||||
 | 
					    amount: string;
 | 
				
			||||||
 | 
					    total: string;
 | 
				
			||||||
 | 
					    orderHash: string;
 | 
				
			||||||
 | 
					    params: IdexOrderParam;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface IdexOrderParam {
 | 
				
			||||||
 | 
					    tokenBuy: string;
 | 
				
			||||||
 | 
					    buySymbol: string;
 | 
				
			||||||
 | 
					    buyPrecision: number;
 | 
				
			||||||
 | 
					    amountBuy: string;
 | 
				
			||||||
 | 
					    tokenSell: string;
 | 
				
			||||||
 | 
					    sellSymbol: string;
 | 
				
			||||||
 | 
					    sellPrecision: number;
 | 
				
			||||||
 | 
					    amountSell: string;
 | 
				
			||||||
 | 
					    expires: number;
 | 
				
			||||||
 | 
					    nonce: number;
 | 
				
			||||||
 | 
					    user: string;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// tslint:disable:prefer-function-over-method
 | 
				
			||||||
 | 
					// ^ Keep consistency with other sources and help logical organization
 | 
				
			||||||
 | 
					export class IdexSource {
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Call Idex API to find out which markets they are maintaining orderbooks for.
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public async getMarketsAsync(): Promise<string[]> {
 | 
				
			||||||
 | 
					        const params = { method: 'POST' };
 | 
				
			||||||
 | 
					        const resp = await fetchAsync(MARKETS_URL, params);
 | 
				
			||||||
 | 
					        const respJson: IdexMarketsResponse = await resp.json();
 | 
				
			||||||
 | 
					        const markets: string[] = Object.keys(respJson);
 | 
				
			||||||
 | 
					        return markets;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Retrieve orderbook from Idex API for a given market.
 | 
				
			||||||
 | 
					     * @param marketId String identifying the market we want data for. Eg. 'REP_AUG'
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public async getMarketOrderbookAsync(marketId: string): Promise<IdexOrderbook> {
 | 
				
			||||||
 | 
					        const params = {
 | 
				
			||||||
 | 
					            method: 'POST',
 | 
				
			||||||
 | 
					            headers: { 'Content-Type': 'application/json' },
 | 
				
			||||||
 | 
					            body: JSON.stringify({
 | 
				
			||||||
 | 
					                market: marketId,
 | 
				
			||||||
 | 
					                count: MAX_ORDER_COUNT,
 | 
				
			||||||
 | 
					            }),
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					        const resp = await fetchAsync(ORDERBOOK_URL, params);
 | 
				
			||||||
 | 
					        const respJson: IdexOrderbook = await resp.json();
 | 
				
			||||||
 | 
					        return respJson;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										103
									
								
								packages/pipeline/src/data_sources/oasis/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										103
									
								
								packages/pipeline/src/data_sources/oasis/index.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,103 @@
 | 
				
			|||||||
 | 
					import { fetchAsync } from '@0x/utils';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const OASIS_BASE_URL = 'https://data.makerdao.com/v1';
 | 
				
			||||||
 | 
					const OASIS_MARKET_QUERY = `query {
 | 
				
			||||||
 | 
					  oasisMarkets(period: "1 week") {
 | 
				
			||||||
 | 
					    nodes {
 | 
				
			||||||
 | 
					      id
 | 
				
			||||||
 | 
					      base
 | 
				
			||||||
 | 
					      quote
 | 
				
			||||||
 | 
					      buyVol
 | 
				
			||||||
 | 
					      sellVol
 | 
				
			||||||
 | 
					      price
 | 
				
			||||||
 | 
					      high
 | 
				
			||||||
 | 
					      low
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}`;
 | 
				
			||||||
 | 
					const OASIS_ORDERBOOK_QUERY = `query ($market: String!) {
 | 
				
			||||||
 | 
					  allOasisOrders(condition: { market: $market }) {
 | 
				
			||||||
 | 
					    totalCount
 | 
				
			||||||
 | 
					    nodes {
 | 
				
			||||||
 | 
					      market
 | 
				
			||||||
 | 
					      offerId
 | 
				
			||||||
 | 
					      price
 | 
				
			||||||
 | 
					      amount
 | 
				
			||||||
 | 
					      act
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}`;
 | 
				
			||||||
 | 
					export const OASIS_SOURCE = 'oasis';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface OasisMarket {
 | 
				
			||||||
 | 
					    id: string; // market symbol e.g MKRDAI
 | 
				
			||||||
 | 
					    base: string; // base symbol   e.g MKR
 | 
				
			||||||
 | 
					    quote: string; // quote symbol  e.g DAI
 | 
				
			||||||
 | 
					    buyVol: number; // total buy volume (base)
 | 
				
			||||||
 | 
					    sellVol: number; // total sell volume (base)
 | 
				
			||||||
 | 
					    price: number; // volume weighted price (quote)
 | 
				
			||||||
 | 
					    high: number; // max sell price
 | 
				
			||||||
 | 
					    low: number; // min buy price
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface OasisMarketResponse {
 | 
				
			||||||
 | 
					    data: {
 | 
				
			||||||
 | 
					        oasisMarkets: {
 | 
				
			||||||
 | 
					            nodes: OasisMarket[];
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface OasisOrder {
 | 
				
			||||||
 | 
					    offerId: number; // Offer Id
 | 
				
			||||||
 | 
					    market: string; // Market symbol (base/quote)
 | 
				
			||||||
 | 
					    price: string; // Offer price (quote)
 | 
				
			||||||
 | 
					    amount: string; // Offer amount (base)
 | 
				
			||||||
 | 
					    act: string; // Action (ask|bid)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface OasisOrderbookResponse {
 | 
				
			||||||
 | 
					    data: {
 | 
				
			||||||
 | 
					        allOasisOrders: {
 | 
				
			||||||
 | 
					            totalCount: number;
 | 
				
			||||||
 | 
					            nodes: OasisOrder[];
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// tslint:disable:prefer-function-over-method
 | 
				
			||||||
 | 
					// ^ Keep consistency with other sources and help logical organization
 | 
				
			||||||
 | 
					export class OasisSource {
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Call Ddex API to find out which markets they are maintaining orderbooks for.
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public async getActiveMarketsAsync(): Promise<OasisMarket[]> {
 | 
				
			||||||
 | 
					        const params = {
 | 
				
			||||||
 | 
					            method: 'POST',
 | 
				
			||||||
 | 
					            headers: { 'Content-Type': 'application/json' },
 | 
				
			||||||
 | 
					            body: JSON.stringify({ query: OASIS_MARKET_QUERY }),
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					        const resp = await fetchAsync(OASIS_BASE_URL, params);
 | 
				
			||||||
 | 
					        const respJson: OasisMarketResponse = await resp.json();
 | 
				
			||||||
 | 
					        const markets = respJson.data.oasisMarkets.nodes;
 | 
				
			||||||
 | 
					        return markets;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Retrieve orderbook from Oasis API for a given market.
 | 
				
			||||||
 | 
					     * @param marketId String identifying the market we want data for. Eg. 'REPAUG'.
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public async getMarketOrderbookAsync(marketId: string): Promise<OasisOrder[]> {
 | 
				
			||||||
 | 
					        const input = {
 | 
				
			||||||
 | 
					            market: marketId,
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					        const params = {
 | 
				
			||||||
 | 
					            method: 'POST',
 | 
				
			||||||
 | 
					            headers: { 'Content-Type': 'application/json' },
 | 
				
			||||||
 | 
					            body: JSON.stringify({ query: OASIS_ORDERBOOK_QUERY, variables: input }),
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					        const resp = await fetchAsync(OASIS_BASE_URL, params);
 | 
				
			||||||
 | 
					        const respJson: OasisOrderbookResponse = await resp.json();
 | 
				
			||||||
 | 
					        return respJson.data.allOasisOrders.nodes;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										26
									
								
								packages/pipeline/src/entities/erc20_approval_event.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								packages/pipeline/src/entities/erc20_approval_event.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					import { BigNumber } from '@0x/utils';
 | 
				
			||||||
 | 
					import { Column, Entity, PrimaryColumn } from 'typeorm';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import { bigNumberTransformer, numberToBigIntTransformer } from '../utils';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Entity({ name: 'erc20_approval_events', schema: 'raw' })
 | 
				
			||||||
 | 
					export class ERC20ApprovalEvent {
 | 
				
			||||||
 | 
					    @PrimaryColumn({ name: 'token_address' })
 | 
				
			||||||
 | 
					    public tokenAddress!: string;
 | 
				
			||||||
 | 
					    @PrimaryColumn({ name: 'log_index' })
 | 
				
			||||||
 | 
					    public logIndex!: number;
 | 
				
			||||||
 | 
					    @PrimaryColumn({ name: 'block_number', transformer: numberToBigIntTransformer })
 | 
				
			||||||
 | 
					    public blockNumber!: number;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Column({ name: 'raw_data' })
 | 
				
			||||||
 | 
					    public rawData!: string;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Column({ name: 'transaction_hash' })
 | 
				
			||||||
 | 
					    public transactionHash!: string;
 | 
				
			||||||
 | 
					    @Column({ name: 'owner_address' })
 | 
				
			||||||
 | 
					    public ownerAddress!: string;
 | 
				
			||||||
 | 
					    @Column({ name: 'spender_address' })
 | 
				
			||||||
 | 
					    public spenderAddress!: string;
 | 
				
			||||||
 | 
					    @Column({ name: 'amount', type: 'numeric', transformer: bigNumberTransformer })
 | 
				
			||||||
 | 
					    public amount!: BigNumber;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -14,5 +14,6 @@ export { SraOrdersObservedTimeStamp, createObservedTimestampForOrder } from './s
 | 
				
			|||||||
export { TokenMetadata } from './token_metadata';
 | 
					export { TokenMetadata } from './token_metadata';
 | 
				
			||||||
export { TokenOrderbookSnapshot } from './token_order';
 | 
					export { TokenOrderbookSnapshot } from './token_order';
 | 
				
			||||||
export { Transaction } from './transaction';
 | 
					export { Transaction } from './transaction';
 | 
				
			||||||
 | 
					export { ERC20ApprovalEvent } from './erc20_approval_event';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export type ExchangeEvent = ExchangeFillEvent | ExchangeCancelEvent | ExchangeCancelUpToEvent;
 | 
					export type ExchangeEvent = ExchangeFillEvent | ExchangeCancelEvent | ExchangeCancelUpToEvent;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,20 +10,20 @@ export class TokenOrderbookSnapshot {
 | 
				
			|||||||
    public observedTimestamp!: number;
 | 
					    public observedTimestamp!: number;
 | 
				
			||||||
    @PrimaryColumn({ name: 'source' })
 | 
					    @PrimaryColumn({ name: 'source' })
 | 
				
			||||||
    public source!: string;
 | 
					    public source!: string;
 | 
				
			||||||
    @Column({ name: 'order_type' })
 | 
					    @PrimaryColumn({ name: 'order_type' })
 | 
				
			||||||
    public orderType!: OrderType;
 | 
					    public orderType!: OrderType;
 | 
				
			||||||
    @PrimaryColumn({ name: 'price', type: 'numeric', transformer: bigNumberTransformer })
 | 
					    @PrimaryColumn({ name: 'price', type: 'numeric', transformer: bigNumberTransformer })
 | 
				
			||||||
    public price!: BigNumber;
 | 
					    public price!: BigNumber;
 | 
				
			||||||
    @PrimaryColumn({ name: 'base_asset_symbol' })
 | 
					    @PrimaryColumn({ name: 'base_asset_symbol' })
 | 
				
			||||||
    public baseAssetSymbol!: string;
 | 
					    public baseAssetSymbol!: string;
 | 
				
			||||||
    @Column({ name: 'base_asset_address' })
 | 
					    @Column({ nullable: true, type: String, name: 'base_asset_address' })
 | 
				
			||||||
    public baseAssetAddress!: string;
 | 
					    public baseAssetAddress!: string | null;
 | 
				
			||||||
    @Column({ name: 'base_volume', type: 'numeric', transformer: bigNumberTransformer })
 | 
					    @Column({ name: 'base_volume', type: 'numeric', transformer: bigNumberTransformer })
 | 
				
			||||||
    public baseVolume!: BigNumber;
 | 
					    public baseVolume!: BigNumber;
 | 
				
			||||||
    @PrimaryColumn({ name: 'quote_asset_symbol' })
 | 
					    @PrimaryColumn({ name: 'quote_asset_symbol' })
 | 
				
			||||||
    public quoteAssetSymbol!: string;
 | 
					    public quoteAssetSymbol!: string;
 | 
				
			||||||
    @Column({ name: 'quote_asset_address' })
 | 
					    @Column({ nullable: true, type: String, name: 'quote_asset_address' })
 | 
				
			||||||
    public quoteAssetAddress!: string;
 | 
					    public quoteAssetAddress!: string | null;
 | 
				
			||||||
    @Column({ name: 'quote_volume', type: 'numeric', transformer: bigNumberTransformer })
 | 
					    @Column({ name: 'quote_volume', type: 'numeric', transformer: bigNumberTransformer })
 | 
				
			||||||
    public quoteVolume!: BigNumber;
 | 
					    public quoteVolume!: BigNumber;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,6 +3,7 @@ import { ConnectionOptions } from 'typeorm';
 | 
				
			|||||||
import {
 | 
					import {
 | 
				
			||||||
    Block,
 | 
					    Block,
 | 
				
			||||||
    DexTrade,
 | 
					    DexTrade,
 | 
				
			||||||
 | 
					    ERC20ApprovalEvent,
 | 
				
			||||||
    ExchangeCancelEvent,
 | 
					    ExchangeCancelEvent,
 | 
				
			||||||
    ExchangeCancelUpToEvent,
 | 
					    ExchangeCancelUpToEvent,
 | 
				
			||||||
    ExchangeFillEvent,
 | 
					    ExchangeFillEvent,
 | 
				
			||||||
@@ -21,6 +22,7 @@ const entities = [
 | 
				
			|||||||
    ExchangeCancelEvent,
 | 
					    ExchangeCancelEvent,
 | 
				
			||||||
    ExchangeCancelUpToEvent,
 | 
					    ExchangeCancelUpToEvent,
 | 
				
			||||||
    ExchangeFillEvent,
 | 
					    ExchangeFillEvent,
 | 
				
			||||||
 | 
					    ERC20ApprovalEvent,
 | 
				
			||||||
    OHLCVExternal,
 | 
					    OHLCVExternal,
 | 
				
			||||||
    Relayer,
 | 
					    Relayer,
 | 
				
			||||||
    SraOrder,
 | 
					    SraOrder,
 | 
				
			||||||
 
 | 
				
			|||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user