Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/beta-render-et-al
This commit is contained in:
commit
c87e68f833
@ -1,358 +1,350 @@
|
|||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
resource_class: medium+
|
resource_class: medium+
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:9
|
- image: circleci/node:9
|
||||||
environment:
|
environment:
|
||||||
CONTRACTS_COMMIT_HASH: '9ed05f5'
|
CONTRACTS_COMMIT_HASH: '9ed05f5'
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: echo 'export PATH=$HOME/CIRCLE_PROJECT_REPONAME/node_modules/.bin:$PATH' >> $BASH_ENV
|
- run: echo 'export PATH=$HOME/CIRCLE_PROJECT_REPONAME/node_modules/.bin:$PATH' >> $BASH_ENV
|
||||||
- run:
|
- run:
|
||||||
name: install-yarn
|
name: install-yarn
|
||||||
command: sudo npm install --global yarn@1.9.4
|
command: sudo npm install --global yarn@1.9.4
|
||||||
- run:
|
- run:
|
||||||
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
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: repo-{{ .Environment.CIRCLE_SHA1 }}
|
key: repo-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
paths:
|
paths:
|
||||||
- ~/repo
|
- ~/repo
|
||||||
build-website:
|
build-website:
|
||||||
resource_class: medium+
|
resource_class: medium+
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:9
|
- image: circleci/node:9
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
steps:
|
steps:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
- run: cd packages/website && yarn build
|
- run: cd packages/website && yarn build
|
||||||
test-contracts-ganache:
|
test-contracts-ganache:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:9
|
- image: circleci/node:9
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
steps:
|
steps:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
- run: yarn wsrun test:circleci contracts
|
- run: yarn wsrun test:circleci contracts
|
||||||
test-contracts-geth:
|
test-contracts-geth:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:9
|
- image: circleci/node:9
|
||||||
- image: 0xorg/devnet
|
- image: 0xorg/devnet
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
steps:
|
steps:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
# HACK(albrow): we need to sleep 10 seconds to ensure the devnet is
|
# HACK(albrow): we need to sleep 10 seconds to ensure the devnet is
|
||||||
# initialized
|
# initialized
|
||||||
- run: sleep 10 && TEST_PROVIDER=geth yarn wsrun test contracts
|
- run: sleep 10 && TEST_PROVIDER=geth yarn wsrun test contracts
|
||||||
test-publish:
|
test-publish:
|
||||||
resource_class: medium+
|
resource_class: medium+
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:9
|
- image: circleci/node:9
|
||||||
- image: 0xorg/verdaccio
|
- image: 0xorg/verdaccio
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
steps:
|
steps:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
- run: yarn test:publish:circleci
|
- run: yarn test:publish:circleci
|
||||||
test-doc-generation:
|
test-doc-generation:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:9
|
- image: circleci/node:9
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
steps:
|
steps:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
- run: yarn test:generate_docs:circleci
|
- run: yarn test:generate_docs:circleci
|
||||||
test-rest:
|
test-rest:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:9
|
- image: circleci/node:9
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
steps:
|
steps:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
- run: yarn wsrun test:circleci @0xproject/abi-gen
|
- run: yarn wsrun test:circleci @0x/abi-gen
|
||||||
- run: yarn wsrun test:circleci @0xproject/assert
|
- run: yarn wsrun test:circleci @0x/assert
|
||||||
- run: yarn wsrun test:circleci @0xproject/base-contract
|
- run: yarn wsrun test:circleci @0x/base-contract
|
||||||
- run: yarn wsrun test:circleci @0xproject/connect
|
- run: yarn wsrun test:circleci @0x/connect
|
||||||
- run: yarn wsrun test:circleci @0xproject/contract-wrappers
|
- run: yarn wsrun test:circleci @0x/contract-wrappers
|
||||||
- run: yarn wsrun test:circleci @0xproject/dev-utils
|
- run: yarn wsrun test:circleci @0x/dev-utils
|
||||||
- run: yarn wsrun test:circleci @0xproject/json-schemas
|
- run: yarn wsrun test:circleci @0x/json-schemas
|
||||||
- run: yarn wsrun test:circleci @0xproject/metacoin
|
- run: yarn wsrun test:circleci @0x/metacoin
|
||||||
- run: yarn wsrun test:circleci @0xproject/order-utils
|
- run: yarn wsrun test:circleci @0x/order-utils
|
||||||
- run: yarn wsrun test:circleci @0xproject/order-watcher
|
- run: yarn wsrun test:circleci @0x/order-watcher
|
||||||
- run: yarn wsrun test:circleci @0xproject/sol-compiler
|
- run: yarn wsrun test:circleci @0x/sol-compiler
|
||||||
- run: yarn wsrun test:circleci @0xproject/sol-cov
|
- run: yarn wsrun test:circleci @0x/sol-cov
|
||||||
- run: yarn wsrun test:circleci @0xproject/sol-doc
|
- run: yarn wsrun test:circleci @0x/sol-doc
|
||||||
- run: yarn wsrun test:circleci @0xproject/sra-report
|
- run: yarn wsrun test:circleci @0x/subproviders
|
||||||
- run: yarn wsrun test:circleci @0xproject/subproviders
|
- run: yarn wsrun test:circleci @0x/web3-wrapper
|
||||||
- run: yarn wsrun test:circleci @0xproject/web3-wrapper
|
- run: yarn wsrun test:circleci @0x/utils
|
||||||
- run: yarn wsrun test:circleci @0xproject/utils
|
- run: yarn wsrun test:circleci @0x/instant
|
||||||
- run: yarn wsrun test:circleci @0xproject/instant
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-abi-gen-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-abi-gen-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/abi-gen/coverage/lcov.info
|
||||||
- ~/repo/packages/abi-gen/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-assert-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-assert-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/assert/coverage/lcov.info
|
||||||
- ~/repo/packages/assert/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-base-contract-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-base-contract-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/base-contract/coverage/lcov.info
|
||||||
- ~/repo/packages/base-contract/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-connect-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-connect-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/connect/coverage/lcov.info
|
||||||
- ~/repo/packages/connect/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-contract-wrappers-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-contract-wrappers-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/contract-wrappers/coverage/lcov.info
|
||||||
- ~/repo/packages/contract-wrappers/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-dev-utils-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-dev-utils-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/dev-utils/coverage/lcov.info
|
||||||
- ~/repo/packages/dev-utils/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-json-schemas-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-json-schemas-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/json-schemas/coverage/lcov.info
|
||||||
- ~/repo/packages/json-schemas/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-metacoin-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-metacoin-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/metacoin/coverage/lcov.info
|
||||||
- ~/repo/packages/metacoin/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-order-utils-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-order-utils-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/order-utils/coverage/lcov.info
|
||||||
- ~/repo/packages/order-utils/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-order-watcher-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-order-watcher-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/order-watcher/coverage/lcov.info
|
||||||
- ~/repo/packages/order-watcher/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-sol-compiler-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-sol-compiler-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/sol-compiler/coverage/lcov.info
|
||||||
- ~/repo/packages/sol-compiler/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-sol-cov-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-sol-cov-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/sol-cov/coverage/lcov.info
|
||||||
- ~/repo/packages/sol-cov/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-sol-doc-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-sol-doc-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/sol-doc/coverage/lcov.info
|
||||||
- ~/repo/packages/sol-doc/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-subproviders-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-sra-report-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/subproviders/coverage/lcov.info
|
||||||
- ~/repo/packages/sra-report/coverage/lcov.info
|
- save_cache:
|
||||||
- save_cache:
|
key: coverage-web3-wrapper-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
key: coverage-subproviders-{{ .Environment.CIRCLE_SHA1 }}
|
paths:
|
||||||
paths:
|
- ~/repo/packages/web3-wrapper/coverage/lcov.info
|
||||||
- ~/repo/packages/subproviders/coverage/lcov.info
|
test-python:
|
||||||
- save_cache:
|
working_directory: ~/repo
|
||||||
key: coverage-web3-wrapper-{{ .Environment.CIRCLE_SHA1 }}
|
docker:
|
||||||
paths:
|
- image: circleci/python
|
||||||
- ~/repo/packages/web3-wrapper/coverage/lcov.info
|
steps:
|
||||||
test-python:
|
- checkout
|
||||||
working_directory: ~/repo
|
- run: sudo chown -R circleci:circleci /usr/local/bin
|
||||||
docker:
|
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages
|
||||||
- image: circleci/python
|
- restore_cache:
|
||||||
steps:
|
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
- checkout
|
- run:
|
||||||
- run: sudo chown -R circleci:circleci /usr/local/bin
|
command: |
|
||||||
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages
|
cd python-packages/order_utils
|
||||||
- restore_cache:
|
python -m ensurepip
|
||||||
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
python -m pip install -e .[dev]
|
||||||
- run:
|
- save_cache:
|
||||||
command: |
|
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
cd python-packages/order_utils
|
paths:
|
||||||
python -m ensurepip
|
- '/usr/local/bin'
|
||||||
python -m pip install -e .[dev]
|
- '/usr/local/lib/python3.7/site-packages'
|
||||||
- save_cache:
|
- '.eggs'
|
||||||
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
- '.mypy_cache'
|
||||||
paths:
|
- '.pytest_cache'
|
||||||
- "/usr/local/bin"
|
- '.tox'
|
||||||
- "/usr/local/lib/python3.7/site-packages"
|
- run:
|
||||||
- ".eggs"
|
command: |
|
||||||
- ".mypy_cache"
|
cd python-packages/order_utils
|
||||||
- ".pytest_cache"
|
coverage run setup.py test
|
||||||
- ".tox"
|
- save_cache:
|
||||||
- run:
|
key: coverage-python-order-utils-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
command: |
|
paths:
|
||||||
cd python-packages/order_utils
|
- ~/repo/python-packages/order_utils/.coverage
|
||||||
coverage run setup.py test
|
test-rest-python:
|
||||||
- save_cache:
|
working_directory: ~/repo
|
||||||
key: coverage-python-order-utils-{{ .Environment.CIRCLE_SHA1 }}
|
docker:
|
||||||
paths:
|
- image: circleci/python
|
||||||
- ~/repo/python-packages/order_utils/.coverage
|
steps:
|
||||||
test-rest-python:
|
- checkout
|
||||||
working_directory: ~/repo
|
- run: sudo chown -R circleci:circleci /usr/local/bin
|
||||||
docker:
|
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages
|
||||||
- image: circleci/python
|
- restore_cache:
|
||||||
steps:
|
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
- checkout
|
- run:
|
||||||
- run: sudo chown -R circleci:circleci /usr/local/bin
|
command: |
|
||||||
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages
|
cd python-packages/order_utils
|
||||||
- restore_cache:
|
python -m ensurepip
|
||||||
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
python -m pip install -e .[dev]
|
||||||
- run:
|
- save_cache:
|
||||||
command: |
|
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
cd python-packages/order_utils
|
paths:
|
||||||
python -m ensurepip
|
- '/usr/local/bin'
|
||||||
python -m pip install -e .[dev]
|
- '/usr/local/lib/python3.7/site-packages'
|
||||||
- save_cache:
|
- '.eggs'
|
||||||
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
- '.mypy_cache'
|
||||||
paths:
|
- '.pytest_cache'
|
||||||
- "/usr/local/bin"
|
- '.tox'
|
||||||
- "/usr/local/lib/python3.7/site-packages"
|
- run:
|
||||||
- ".eggs"
|
command: |
|
||||||
- ".mypy_cache"
|
cd python-packages/order_utils
|
||||||
- ".pytest_cache"
|
tox
|
||||||
- ".tox"
|
static-tests-python:
|
||||||
- run:
|
working_directory: ~/repo
|
||||||
command: |
|
docker:
|
||||||
cd python-packages/order_utils
|
- image: circleci/python
|
||||||
tox
|
steps:
|
||||||
static-tests-python:
|
- checkout
|
||||||
working_directory: ~/repo
|
- run: sudo chown -R circleci:circleci /usr/local/bin
|
||||||
docker:
|
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages
|
||||||
- image: circleci/python
|
- restore_cache:
|
||||||
steps:
|
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
- checkout
|
- run:
|
||||||
- run: sudo chown -R circleci:circleci /usr/local/bin
|
command: |
|
||||||
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages
|
cd python-packages/order_utils
|
||||||
- restore_cache:
|
python -m ensurepip
|
||||||
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
python -m pip install -e .[dev]
|
||||||
- run:
|
- save_cache:
|
||||||
command: |
|
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
cd python-packages/order_utils
|
paths:
|
||||||
python -m ensurepip
|
- '/usr/local/bin'
|
||||||
python -m pip install -e .[dev]
|
- '/usr/local/lib/python3.7/site-packages'
|
||||||
- save_cache:
|
- run:
|
||||||
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
command: |
|
||||||
paths:
|
cd python-packages/order_utils
|
||||||
- "/usr/local/bin"
|
python setup.py lint
|
||||||
- "/usr/local/lib/python3.7/site-packages"
|
static-tests:
|
||||||
- run:
|
working_directory: ~/repo
|
||||||
command: |
|
docker:
|
||||||
cd python-packages/order_utils
|
- image: circleci/node:9
|
||||||
python setup.py lint
|
steps:
|
||||||
static-tests:
|
- restore_cache:
|
||||||
working_directory: ~/repo
|
keys:
|
||||||
docker:
|
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
- image: circleci/node:9
|
- run: yarn lerna run lint
|
||||||
steps:
|
- run: yarn prettier:ci
|
||||||
- restore_cache:
|
- run: cd packages/0x.js && yarn build:umd:prod
|
||||||
keys:
|
- run: yarn bundlewatch
|
||||||
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
submit-coverage:
|
||||||
- run: yarn lerna run lint
|
docker:
|
||||||
- run: yarn prettier:ci
|
- image: circleci/node:9
|
||||||
- run: cd packages/0x.js && yarn build:umd:prod
|
working_directory: ~/repo
|
||||||
- run: yarn bundlewatch
|
steps:
|
||||||
submit-coverage:
|
- restore_cache:
|
||||||
docker:
|
keys:
|
||||||
- image: circleci/node:9
|
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
working_directory: ~/repo
|
- restore_cache:
|
||||||
steps:
|
keys:
|
||||||
- restore_cache:
|
- coverage-abi-gen-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-assert-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-abi-gen-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-base-contract-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-assert-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-connect-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-base-contract-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-contract-wrappers-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-connect-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-dev-utils-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-contract-wrappers-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-json-schemas-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-dev-utils-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-metacoin-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-json-schemas-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-order-utils-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-metacoin-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-order-watcher-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-order-utils-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-sol-compiler-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-order-watcher-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-sol-cov-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-sol-compiler-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-sol-doc-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-sol-cov-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-subproviders-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-sol-doc-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-web3-wrapper-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-sra-report-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-contracts-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- restore_cache:
|
||||||
- coverage-subproviders-{{ .Environment.CIRCLE_SHA1 }}
|
keys:
|
||||||
- restore_cache:
|
- coverage-python-order-utils-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
keys:
|
- run: yarn report_coverage
|
||||||
- coverage-web3-wrapper-{{ .Environment.CIRCLE_SHA1 }}
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- coverage-contracts-{{ .Environment.CIRCLE_SHA1 }}
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- coverage-python-order-utils-{{ .Environment.CIRCLE_SHA1 }}
|
|
||||||
- run: yarn report_coverage
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
main:
|
main:
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
|
||||||
- build-website:
|
|
||||||
requires:
|
|
||||||
- build
|
- build
|
||||||
- test-contracts-ganache:
|
- build-website:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
- test-contracts-geth:
|
- test-contracts-ganache:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
- test-rest:
|
- test-contracts-geth:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
- static-tests:
|
- test-rest:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
- test-publish:
|
- static-tests:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
- test-doc-generation:
|
- test-publish:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
- submit-coverage:
|
- test-doc-generation:
|
||||||
requires:
|
requires:
|
||||||
- test-rest
|
- build
|
||||||
|
- submit-coverage:
|
||||||
|
requires:
|
||||||
|
- test-rest
|
||||||
|
- test-python
|
||||||
- test-python
|
- test-python
|
||||||
- test-python
|
- static-tests-python
|
||||||
- static-tests-python
|
# skip python tox run for now, as we don't yet have multiple test environments to support.
|
||||||
# skip python tox run for now, as we don't yet have multiple test environments to support.
|
#- test-rest-python
|
||||||
#- test-rest-python
|
|
||||||
|
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1,5 +1,7 @@
|
|||||||
*.sol linguist-language=Solidity
|
*.sol linguist-language=Solidity
|
||||||
|
|
||||||
# Automatically collapse generated files in GitHub.
|
# Automatically collapse generated files in GitHub.
|
||||||
|
*.svg linguist-generated
|
||||||
packages/contract-artifacts/artifacts/*json linguist-generated
|
packages/contract-artifacts/artifacts/*json linguist-generated
|
||||||
packages/abi-gen-wrappers/wrappers/*.ts liguist-generated
|
packages/abi-gen-wrappers/wrappers/*.ts liguist-generated
|
||||||
|
|
||||||
|
69
README.md
69
README.md
@ -20,39 +20,38 @@ If you're developing on 0x now or are interested in using 0x infrastructure in t
|
|||||||
|
|
||||||
### Published Packages
|
### Published Packages
|
||||||
|
|
||||||
| Package | Version | Description |
|
| Package | Version | Description |
|
||||||
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
|
| -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| [`0x.js`](/packages/0x.js) | [](https://www.npmjs.com/package/0x.js) | A Javascript library for interacting with the 0x protocol |
|
| [`0x.js`](/packages/0x.js) | [](https://www.npmjs.com/package/0x.js) | A Javascript library for interacting with the 0x protocol |
|
||||||
| [`@0xproject/abi-gen`](/packages/abi-gen) | [](https://www.npmjs.com/package/@0xproject/abi-gen) | Tool to generate TS wrappers from smart contract ABIs |
|
| [`@0x/abi-gen`](/packages/abi-gen) | [](https://www.npmjs.com/package/@0x/abi-gen) | Tool to generate TS wrappers from smart contract ABIs |
|
||||||
| [`@0xproject/assert`](/packages/assert) | [](https://www.npmjs.com/package/@0xproject/assert) | Type and schema assertions used by our packages |
|
| [`@0x/assert`](/packages/assert) | [](https://www.npmjs.com/package/@0x/assert) | Type and schema assertions used by our packages |
|
||||||
| [`@0xproject/asset-buyer`](/packages/asset-buyer) | [](https://www.npmjs.com/package/@0xproject/asset-buyer) | Convenience package for discovering and buying assets with Ether. |
|
| [`@0x/asset-buyer`](/packages/asset-buyer) | [](https://www.npmjs.com/package/@0x/asset-buyer) | Convenience package for discovering and buying assets with Ether. |
|
||||||
| [`@0xproject/base-contract`](/packages/base-contract) | [](https://www.npmjs.com/package/@0xproject/base-contract) | BaseContract used by auto-generated `abi-gen` wrapper contracts |
|
| [`@0x/base-contract`](/packages/base-contract) | [](https://www.npmjs.com/package/@0x/base-contract) | BaseContract used by auto-generated `abi-gen` wrapper contracts |
|
||||||
| [`@0xproject/connect`](/packages/connect) | [](https://www.npmjs.com/package/@0xproject/connect) | A Javascript library for interacting with the Standard Relayer API |
|
| [`@0x/connect`](/packages/connect) | [](https://www.npmjs.com/package/@0x/connect) | A Javascript library for interacting with the Standard Relayer API |
|
||||||
| [`@0xproject/dev-utils`](/packages/dev-utils) | [](https://www.npmjs.com/package/@0xproject/dev-utils) | Dev utils to be shared across 0x projects and packages |
|
| [`@0x/dev-utils`](/packages/dev-utils) | [](https://www.npmjs.com/package/@0x/dev-utils) | Dev utils to be shared across 0x projects and packages |
|
||||||
| [`@0xproject/json-schemas`](/packages/json-schemas) | [](https://www.npmjs.com/package/@0xproject/json-schemas) | 0x-related json schemas |
|
| [`@0x/json-schemas`](/packages/json-schemas) | [](https://www.npmjs.com/package/@0x/json-schemas) | 0x-related json schemas |
|
||||||
| [`@0xproject/monorepo-scripts`](/packages/monorepo-scripts) | [](https://www.npmjs.com/package/@0xproject/monorepo-scripts) | Monorepo scripts |
|
| [`@0x/monorepo-scripts`](/packages/monorepo-scripts) | [](https://www.npmjs.com/package/@0x/monorepo-scripts) | Monorepo scripts |
|
||||||
| [`@0xproject/order-utils`](/packages/order-utils) | [](https://www.npmjs.com/package/@0xproject/order-utils) | A set of utilities for generating, parsing, signing and validating 0x orders. |
|
| [`@0x/order-utils`](/packages/order-utils) | [](https://www.npmjs.com/package/@0x/order-utils) | A set of utilities for generating, parsing, signing and validating 0x orders. |
|
||||||
| [`@0xproject/react-docs`](/packages/react-docs) | [](https://www.npmjs.com/package/@0xproject/react-docs) | React documentation component for rendering TypeDoc & Doxity generated JSON |
|
| [`@0x/react-docs`](/packages/react-docs) | [](https://www.npmjs.com/package/@0x/react-docs) | React documentation component for rendering TypeDoc & Doxity generated JSON |
|
||||||
| [`@0xproject/react-shared`](/packages/react-shared) | [](https://www.npmjs.com/package/@0xproject/react-shared) | 0x shared react components |
|
| [`@0x/react-shared`](/packages/react-shared) | [](https://www.npmjs.com/package/@0x/react-shared) | 0x shared react components |
|
||||||
| [`@0xproject/sol-compiler`](/packages/sol-compiler) | [](https://www.npmjs.com/package/@0xproject/sol-compiler) | A thin wrapper around Solc.js that outputs artifacts, resolves imports, only re-compiles when needed, and other niceties. |
|
| [`@0x/sol-compiler`](/packages/sol-compiler) | [](https://www.npmjs.com/package/@0x/sol-compiler) | A thin wrapper around Solc.js that outputs artifacts, resolves imports, only re-compiles when needed, and other niceties. |
|
||||||
| [`@0xproject/sol-cov`](/packages/sol-cov) | [](https://www.npmjs.com/package/@0xproject/sol-cov) | Solidity test coverage tool |
|
| [`@0x/sol-cov`](/packages/sol-cov) | [](https://www.npmjs.com/package/@0x/sol-cov) | Solidity test coverage tool |
|
||||||
| [`@0xproject/sra-spec`](/packages/sra-spec) | [](https://www.npmjs.com/package/@0xproject/sra-spec) | OpenAPI specification for the standard relayer API |
|
| [`@0x/sra-spec`](/packages/sra-spec) | [](https://www.npmjs.com/package/@0x/sra-spec) | OpenAPI specification for the standard relayer API |
|
||||||
| [`@0xproject/sra-report`](/packages/sra-report) | [](https://www.npmjs.com/package/@0xproject/sra-report) | Generate reports for standard relayer API compliance |
|
| [`@0x/subproviders`](/packages/subproviders) | [](https://www.npmjs.com/package/@0x/subproviders) | Useful web3 subproviders (e.g LedgerSubprovider) |
|
||||||
| [`@0xproject/subproviders`](/packages/subproviders) | [](https://www.npmjs.com/package/@0xproject/subproviders) | Useful web3 subproviders (e.g LedgerSubprovider) |
|
| [`@0x/tslint-config`](/packages/tslint-config) | [](https://www.npmjs.com/package/@0x/tslint-config) | Custom 0x development TSLint rules |
|
||||||
| [`@0xproject/tslint-config`](/packages/tslint-config) | [](https://www.npmjs.com/package/@0xproject/tslint-config) | Custom 0x development TSLint rules |
|
| [`@0x/types`](/packages/types) | [](https://www.npmjs.com/package/@0x/types) | Shared type declarations |
|
||||||
| [`@0xproject/types`](/packages/types) | [](https://www.npmjs.com/package/@0xproject/types) | Shared type declarations |
|
| [`@0x/typescript-typings`](/packages/typescript-typings) | [](https://www.npmjs.com/package/@0x/typescript-typings) | Repository of types for external packages |
|
||||||
| [`@0xproject/typescript-typings`](/packages/typescript-typings) | [](https://www.npmjs.com/package/@0xproject/typescript-typings) | Repository of types for external packages |
|
| [`@0x/utils`](/packages/utils) | [](https://www.npmjs.com/package/@0x/utils) | Shared utilities |
|
||||||
| [`@0xproject/utils`](/packages/utils) | [](https://www.npmjs.com/package/@0xproject/utils) | Shared utilities |
|
| [`@0x/web3-wrapper`](/packages/web3-wrapper) | [](https://www.npmjs.com/package/@0x/web3-wrapper) | Web3 wrapper |
|
||||||
| [`@0xproject/web3-wrapper`](/packages/web3-wrapper) | [](https://www.npmjs.com/package/@0xproject/web3-wrapper) | Web3 wrapper |
|
|
||||||
|
|
||||||
### Private Packages
|
### Private Packages
|
||||||
|
|
||||||
| Package | Description |
|
| Package | Description |
|
||||||
| --------------------------------------------------------------- | ---------------------------------------------------------------- |
|
| -------------------------------------------------------- | ---------------------------------------------------------------- |
|
||||||
| [`@0xproject/contracts`](/packages/contracts) | 0x solidity smart contracts & tests |
|
| [`@0x/contracts`](/packages/contracts) | 0x solidity smart contracts & tests |
|
||||||
| [`@0xproject/react-docs-example`](/packages/react-docs-example) | Example documentation site created with `@0xproject/react-docs` |
|
| [`@0x/react-docs-example`](/packages/react-docs-example) | Example documentation site created with `@0x/react-docs` |
|
||||||
| [`@0xproject/testnet-faucets`](/packages/testnet-faucets) | A faucet micro-service that dispenses test ERC20 tokens or Ether |
|
| [`@0x/testnet-faucets`](/packages/testnet-faucets) | A faucet micro-service that dispenses test ERC20 tokens or Ether |
|
||||||
| [`@0xproject/website`](/packages/website) | 0x website & Portal DApp |
|
| [`@0x/website`](/packages/website) | 0x website & Portal DApp |
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@ -71,10 +70,10 @@ Dedicated documentation pages:
|
|||||||
Node version >= 6.12 is required.
|
Node version >= 6.12 is required.
|
||||||
|
|
||||||
Most of the packages require additional typings for external dependencies.
|
Most of the packages require additional typings for external dependencies.
|
||||||
You can include those by prepending the `@0xproject/typescript-typings` package to your [`typeRoots`](http://www.typescriptlang.org/docs/handbook/tsconfig-json.html) config.
|
You can include those by prepending the `@0x/typescript-typings` package to your [`typeRoots`](http://www.typescriptlang.org/docs/handbook/tsconfig-json.html) config.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"],
|
"typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
@ -104,7 +103,7 @@ yarn build
|
|||||||
To build a specific package:
|
To build a specific package:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/web3-wrapper yarn build
|
PKG=@0x/web3-wrapper yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
### Watch
|
### Watch
|
||||||
@ -121,7 +120,7 @@ To watch a specific package and all it's dependent packages:
|
|||||||
PKG=[NPM_PACKAGE_NAME] yarn watch
|
PKG=[NPM_PACKAGE_NAME] yarn watch
|
||||||
|
|
||||||
e.g
|
e.g
|
||||||
PKG=@0xproject/web3-wrapper yarn watch
|
PKG=@0x/web3-wrapper yarn watch
|
||||||
```
|
```
|
||||||
|
|
||||||
### Clean
|
### Clean
|
||||||
@ -177,5 +176,5 @@ yarn test
|
|||||||
Run a specific package's test:
|
Run a specific package's test:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/web3-wrapper yarn test
|
PKG=@0x/web3-wrapper yarn test
|
||||||
```
|
```
|
||||||
|
16
package.json
16
package.json
@ -23,9 +23,9 @@
|
|||||||
"wsrun": "wsrun",
|
"wsrun": "wsrun",
|
||||||
"lerna": "lerna",
|
"lerna": "lerna",
|
||||||
"build": "wsrun build $PKG --fast-exit -r --stages",
|
"build": "wsrun build $PKG --fast-exit -r --stages",
|
||||||
"build:no_website": "wsrun build $PKG --fast-exit -r --stages --exclude @0xproject/website",
|
"build:no_website": "wsrun build $PKG --fast-exit -r --stages --exclude @0x/website",
|
||||||
"build:ci:no_website": "wsrun build:ci $PKG --fast-exit -r --stages --exclude @0xproject/website",
|
"build:ci:no_website": "wsrun build:ci $PKG --fast-exit -r --stages --exclude @0x/website",
|
||||||
"build:monorepo_scripts": "PKG=@0xproject/monorepo-scripts yarn build",
|
"build:monorepo_scripts": "PKG=@0x/monorepo-scripts yarn build",
|
||||||
"build:ts": "tsc -b",
|
"build:ts": "tsc -b",
|
||||||
"watch:ts": "tsc -b -w",
|
"watch:ts": "tsc -b -w",
|
||||||
"clean": "wsrun clean $PKG --fast-exit -r --parallel",
|
"clean": "wsrun clean $PKG --fast-exit -r --parallel",
|
||||||
@ -42,7 +42,7 @@
|
|||||||
"mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic",
|
"mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic",
|
||||||
"packagesWithDocPages": "0x.js connect json-schemas subproviders web3-wrapper contract-wrappers order-utils order-watcher sol-compiler sol-cov ethereum-types asset-buyer"
|
"packagesWithDocPages": "0x.js connect json-schemas subproviders web3-wrapper contract-wrappers order-utils order-watcher sol-compiler sol-cov ethereum-types asset-buyer"
|
||||||
},
|
},
|
||||||
"bundlewatch" : {
|
"bundlewatch": {
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"path": "packages/0x.js/_bundles/index.min.js",
|
"path": "packages/0x.js/_bundles/index.min.js",
|
||||||
@ -54,18 +54,22 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ci": {
|
"ci": {
|
||||||
"trackBranches": ["master", "development"],
|
"trackBranches": [
|
||||||
|
"master",
|
||||||
|
"development"
|
||||||
|
],
|
||||||
"repoBranchBase": "development"
|
"repoBranchBase": "development"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0x-lerna-fork/lerna": "3.0.0-beta.25",
|
"@0x-lerna-fork/lerna": "3.0.0-beta.25",
|
||||||
|
"@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",
|
||||||
"coveralls": "^3.0.0",
|
"coveralls": "^3.0.0",
|
||||||
"ganache-cli": "6.1.8",
|
"ganache-cli": "6.1.8",
|
||||||
"lcov-result-merger": "^3.0.0",
|
"lcov-result-merger": "^3.0.0",
|
||||||
"@0xproject/npm-cli-login": "^0.0.11",
|
"lerna": "^3.0.0-beta.25",
|
||||||
"npm-run-all": "^4.1.2",
|
"npm-run-all": "^4.1.2",
|
||||||
"prettier": "^1.11.1",
|
"prettier": "^1.11.1",
|
||||||
"source-map-support": "^0.5.6",
|
"source-map-support": "^0.5.6",
|
||||||
|
@ -29,7 +29,8 @@
|
|||||||
"note": "Export new `AssetData` type from types",
|
"note": "Export new `AssetData` type from types",
|
||||||
"pr": 1131
|
"pr": 1131
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"timestamp": 1539871071
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"version": "1.0.8",
|
"version": "1.0.8",
|
||||||
|
@ -5,6 +5,15 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
|
## v2.0.0 - _October 18, 2018_
|
||||||
|
|
||||||
|
* Add support for `eth_signTypedData`. (#1102)
|
||||||
|
* Added `MetamaskSubprovider` to handle inconsistencies in Metamask's signing JSON RPC endpoints. (#1102)
|
||||||
|
* Removed `SignerType` (including `SignerType.Metamask`). Please use the `MetamaskSubprovider` to wrap `web3.currentProvider`. (#1102)
|
||||||
|
* Updated to use new modularized artifacts and the latest version of @0xproject/contract-wrappers (#1105)
|
||||||
|
* Make web3-provider-engine types a 'dependency' so it's available to users of the library (#1105)
|
||||||
|
* Export new `AssetData` type from types (#1131)
|
||||||
|
|
||||||
## v1.0.8 - _October 4, 2018_
|
## v1.0.8 - _October 4, 2018_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
@ -49,7 +58,7 @@ CHANGELOG
|
|||||||
|
|
||||||
* Re-organize the exported interface of 0x.js. Remove the `ZeroEx` class, and instead export the same exports as `0x.js`'s sub-packages: `@0xproject/contract-wrappers`, `@0xproject/order-utils` and `@0xproject/order-watcher` (#963)
|
* Re-organize the exported interface of 0x.js. Remove the `ZeroEx` class, and instead export the same exports as `0x.js`'s sub-packages: `@0xproject/contract-wrappers`, `@0xproject/order-utils` and `@0xproject/order-watcher` (#963)
|
||||||
|
|
||||||
## v1.0.1-rc.3 - _August 13, 2018_
|
## v1.0.1-rc.3 - _August 14, 2018_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
* Update ecSignOrderHashAsync to return the signature as a string for immediate use in contracts (#914)
|
* Update ecSignOrderHashAsync to return the signature as a string for immediate use in contracts (#914)
|
||||||
|
@ -33,7 +33,7 @@ If your project is in [TypeScript](https://www.typescriptlang.org/), add the fol
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"],
|
"typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "0x.js",
|
"name": "0x.js",
|
||||||
"version": "1.0.8",
|
"version": "2.0.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
},
|
},
|
||||||
@ -42,13 +42,12 @@
|
|||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0xproject/contract-addresses": "^1.0.0",
|
"@0x/abi-gen": "^1.0.14",
|
||||||
"@0xproject/abi-gen": "^1.0.13",
|
"@0x/abi-gen-wrappers": "^1.0.1",
|
||||||
"@0xproject/abi-gen-wrappers": "^1.0.0",
|
"@0x/contract-addresses": "^1.0.1",
|
||||||
"@0xproject/dev-utils": "^1.0.12",
|
"@0x/dev-utils": "^1.0.13",
|
||||||
"@0xproject/migrations": "^1.0.14",
|
"@0x/migrations": "^2.0.0",
|
||||||
"@0xproject/monorepo-scripts": "^1.0.11",
|
"@0x/tslint-config": "^1.0.9",
|
||||||
"@0xproject/tslint-config": "^1.0.8",
|
|
||||||
"@types/lodash": "4.14.104",
|
"@types/lodash": "4.14.104",
|
||||||
"@types/mocha": "^2.2.42",
|
"@types/mocha": "^2.2.42",
|
||||||
"@types/node": "*",
|
"@types/node": "*",
|
||||||
@ -74,18 +73,18 @@
|
|||||||
"webpack": "^4.20.2"
|
"webpack": "^4.20.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@0xproject/assert": "^1.0.13",
|
"@0x/assert": "^1.0.14",
|
||||||
"@0xproject/base-contract": "^3.0.1",
|
"@0x/base-contract": "^3.0.2",
|
||||||
"@0xproject/contract-wrappers": "^2.0.2",
|
"@0x/contract-wrappers": "^3.0.0",
|
||||||
"@0xproject/order-utils": "^1.0.7",
|
"@0x/order-utils": "^2.0.0",
|
||||||
"@0xproject/order-watcher": "^2.1.1",
|
"@0x/order-watcher": "^2.2.0",
|
||||||
"@0xproject/subproviders": "^2.0.7",
|
"@0x/subproviders": "^2.1.0",
|
||||||
"@0xproject/types": "^1.1.4",
|
"@0x/types": "^1.2.0",
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.3",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.3",
|
||||||
"@0xproject/web3-wrapper": "^3.0.3",
|
"@0x/web3-wrapper": "^3.1.0",
|
||||||
"@types/web3-provider-engine": "^14.0.0",
|
"@types/web3-provider-engine": "^14.0.0",
|
||||||
"ethereum-types": "^1.0.11",
|
"ethereum-types": "^1.1.1",
|
||||||
"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,6 +1,6 @@
|
|||||||
export { ContractAddresses } from '@0xproject/contract-addresses';
|
export { ContractAddresses } from '@0x/contract-addresses';
|
||||||
|
|
||||||
export { assetDataUtils, signatureUtils, generatePseudoRandomSalt, orderHashUtils } from '@0xproject/order-utils';
|
export { assetDataUtils, signatureUtils, generatePseudoRandomSalt, orderHashUtils } from '@0x/order-utils';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
ContractWrappers,
|
ContractWrappers,
|
||||||
@ -27,7 +27,7 @@ export {
|
|||||||
OrderAndTraderInfo,
|
OrderAndTraderInfo,
|
||||||
TraderInfo,
|
TraderInfo,
|
||||||
ValidateOrderFillableOpts,
|
ValidateOrderFillableOpts,
|
||||||
} from '@0xproject/contract-wrappers';
|
} from '@0x/contract-wrappers';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
WETH9Events,
|
WETH9Events,
|
||||||
@ -52,9 +52,9 @@ export {
|
|||||||
ExchangeCancelEventArgs,
|
ExchangeCancelEventArgs,
|
||||||
ExchangeEventArgs,
|
ExchangeEventArgs,
|
||||||
ExchangeEvents,
|
ExchangeEvents,
|
||||||
} from '@0xproject/abi-gen-wrappers';
|
} from '@0x/abi-gen-wrappers';
|
||||||
|
|
||||||
export { OrderWatcher, OnOrderStateChangeCallback, OrderWatcherConfig } from '@0xproject/order-watcher';
|
export { OrderWatcher, OnOrderStateChangeCallback, OrderWatcherConfig } from '@0x/order-watcher';
|
||||||
|
|
||||||
export import Web3ProviderEngine = require('web3-provider-engine');
|
export import Web3ProviderEngine = require('web3-provider-engine');
|
||||||
|
|
||||||
@ -64,11 +64,11 @@ export {
|
|||||||
JSONRPCRequestPayloadWithMethod,
|
JSONRPCRequestPayloadWithMethod,
|
||||||
ErrorCallback,
|
ErrorCallback,
|
||||||
MetamaskSubprovider,
|
MetamaskSubprovider,
|
||||||
} from '@0xproject/subproviders';
|
} from '@0x/subproviders';
|
||||||
|
|
||||||
export { AbiDecoder } from '@0xproject/utils';
|
export { AbiDecoder } from '@0x/utils';
|
||||||
|
|
||||||
export { BigNumber } from '@0xproject/utils';
|
export { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
ExchangeContractErrs,
|
ExchangeContractErrs,
|
||||||
@ -85,7 +85,7 @@ export {
|
|||||||
SignatureType,
|
SignatureType,
|
||||||
OrderRelevantState,
|
OrderRelevantState,
|
||||||
Stats,
|
Stats,
|
||||||
} from '@0xproject/types';
|
} from '@0x/types';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
BlockParamLiteral,
|
BlockParamLiteral,
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@0xproject/tslint-config"]
|
"extends": ["@0x/tslint-config"]
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"timestamp": 1539871071,
|
||||||
|
"version": "1.0.1",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"note": "Dependencies updated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"changes": [
|
"changes": [
|
||||||
|
14
packages/abi-gen-wrappers/CHANGELOG.md
Normal file
14
packages/abi-gen-wrappers/CHANGELOG.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<!--
|
||||||
|
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.1 - _October 18, 2018_
|
||||||
|
|
||||||
|
* Dependencies updated
|
||||||
|
|
||||||
|
## v1.0.0 - _Invalid date_
|
||||||
|
|
||||||
|
* Initial release (#1105)
|
@ -1,29 +1,29 @@
|
|||||||
## @0xproject/abi-gen-wrappers
|
## @0x/abi-gen-wrappers
|
||||||
|
|
||||||
Low-level 0x smart contract wrappers generated using @0xproject/abi-gen. These
|
Low-level 0x smart contract wrappers generated using @0x/abi-gen. These
|
||||||
low-level wrappers are imported by other packages in the 0x monorepo and
|
low-level wrappers are imported by other packages in the 0x monorepo and
|
||||||
application developers are not expected to import this package directly.
|
application developers are not expected to import this package directly.
|
||||||
|
|
||||||
You may also be interested in the
|
You may also be interested in the
|
||||||
[@0xproject/contract-wrappers](../contract-wrappers/README.md) package which
|
[@0x/contract-wrappers](../contract-wrappers/README.md) package which
|
||||||
includes some higher-level features.
|
includes some higher-level features.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add @0xproject/abi-gen-wrappers
|
yarn add @0x/abi-gen-wrappers
|
||||||
```
|
```
|
||||||
|
|
||||||
**Import**
|
**Import**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import * as wrappers from '@0xproject/abi-gen-wrappers';
|
import * as wrappers from '@0x/abi-gen-wrappers';
|
||||||
```
|
```
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var wrappers = require('@0xproject/abi-gen-wrappers');
|
var wrappers = require('@0x/abi-gen-wrappers');
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
@ -51,7 +51,7 @@ yarn install
|
|||||||
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/abi-gen-wrappers yarn build
|
PKG=@0x/abi-gen-wrappers yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
### Clean
|
### Clean
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/abi-gen-wrappers",
|
"name": "@0x/abi-gen-wrappers",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
},
|
},
|
||||||
"description": "Low-level 0x smart contract wrappers generated using @0xproject/abi-gen",
|
"description": "Low-level 0x smart contract wrappers generated using @0x/abi-gen",
|
||||||
"main": "lib/src/index.js",
|
"main": "lib/src/index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
"test": "test"
|
"test": "test"
|
||||||
@ -12,6 +12,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn pre_build && tsc -b",
|
"build": "yarn pre_build && tsc -b",
|
||||||
"build:ci": "yarn build",
|
"build:ci": "yarn build",
|
||||||
|
"lint": "tslint --project .",
|
||||||
"pre_build": "yarn generate_contract_wrappers",
|
"pre_build": "yarn generate_contract_wrappers",
|
||||||
"clean": "shx rm -rf lib wrappers",
|
"clean": "shx rm -rf lib wrappers",
|
||||||
"generate_contract_wrappers": "abi-gen --abis ${npm_package_config_abis} --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/generated-wrappers --backend ethers"
|
"generate_contract_wrappers": "abi-gen --abis ${npm_package_config_abis} --template ../contract_templates/contract.handlebars --partials '../contract_templates/partials/**/*.handlebars' --output src/generated-wrappers --backend ethers"
|
||||||
@ -29,11 +30,17 @@
|
|||||||
},
|
},
|
||||||
"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": {
|
||||||
"@0xproject/abi-gen": "^1.0.12",
|
"@0x/abi-gen": "^1.0.14",
|
||||||
|
"@0x/tslint-config": "^1.0.9",
|
||||||
|
"@0x/utils": "^2.0.3",
|
||||||
|
"@0x/web3-wrapper": "^3.1.0",
|
||||||
|
"ethereum-types": "^1.1.1",
|
||||||
|
"ethers": "~4.0.4",
|
||||||
|
"lodash": "^4.17.5",
|
||||||
"shx": "^0.2.2"
|
"shx": "^0.2.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@0xproject/base-contract": "^3.0.1"
|
"@0x/base-contract": "^3.0.2"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace class-name
|
||||||
// tslint:disable:no-unused-variable
|
// tslint:disable:no-unused-variable
|
||||||
// tslint:disable:no-unbound-method
|
// tslint:disable:no-unbound-method
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types';
|
||||||
import { BigNumber, classUtils, logUtils } from '@0xproject/utils';
|
import { BigNumber, classUtils, logUtils } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import * as ethers from 'ethers';
|
import * as ethers from 'ethers';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
// tslint:enable:no-unused-variable
|
// tslint:enable:no-unused-variable
|
||||||
|
3
packages/abi-gen-wrappers/tslint.json
Normal file
3
packages/abi-gen-wrappers/tslint.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": ["@0x/tslint-config"]
|
||||||
|
}
|
@ -1,4 +1,13 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"timestamp": 1539871071,
|
||||||
|
"version": "1.0.14",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"note": "Dependencies updated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "1.0.13",
|
"version": "1.0.13",
|
||||||
"changes": [
|
"changes": [
|
||||||
|
@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
|
## v1.0.14 - _October 18, 2018_
|
||||||
|
|
||||||
|
* Dependencies updated
|
||||||
|
|
||||||
## v1.0.13 - _October 4, 2018_
|
## v1.0.13 - _October 4, 2018_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
@ -37,7 +41,7 @@ CHANGELOG
|
|||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
|
|
||||||
## v1.0.5 - _August 13, 2018_
|
## v1.0.5 - _August 14, 2018_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ You can write your custom handlebars templates which will allow you to seamlessl
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
`yarn add -g @0xproject/abi-gen`
|
`yarn add -g @0x/abi-gen`
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@ -82,13 +82,13 @@ yarn install
|
|||||||
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/abi-gen yarn build
|
PKG=@0x/abi-gen yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
Or continuously rebuild on change:
|
Or continuously rebuild on change:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/abi-gen yarn watch
|
PKG=@0x/abi-gen yarn watch
|
||||||
```
|
```
|
||||||
|
|
||||||
### Clean
|
### Clean
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/abi-gen",
|
"name": "@0x/abi-gen",
|
||||||
"version": "1.0.13",
|
"version": "1.0.14",
|
||||||
"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": {
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.3",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.3",
|
||||||
"chalk": "^2.3.0",
|
"chalk": "^2.3.0",
|
||||||
"ethereum-types": "^1.0.11",
|
"ethereum-types": "^1.1.1",
|
||||||
"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": {
|
||||||
"@0xproject/tslint-config": "^1.0.8",
|
"@0x/tslint-config": "^1.0.9",
|
||||||
"@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,6 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
import { abiUtils, logUtils } from '@0xproject/utils';
|
import { abiUtils, logUtils } from '@0x/utils';
|
||||||
import chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
import { AbiDefinition, ConstructorAbi, EventAbi, MethodAbi } from 'ethereum-types';
|
import { AbiDefinition, ConstructorAbi, EventAbi, MethodAbi } from 'ethereum-types';
|
||||||
import { sync as globSync } from 'glob';
|
import { sync as globSync } from 'glob';
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@0xproject/tslint-config"]
|
"extends": ["@0x/tslint-config"]
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"timestamp": 1539871071,
|
||||||
|
"version": "1.0.14",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"note": "Dependencies updated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "1.0.13",
|
"version": "1.0.13",
|
||||||
"changes": [
|
"changes": [
|
||||||
|
@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
|
## v1.0.14 - _October 18, 2018_
|
||||||
|
|
||||||
|
* Dependencies updated
|
||||||
|
|
||||||
## v1.0.13 - _October 4, 2018_
|
## v1.0.13 - _October 4, 2018_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
@ -37,7 +41,7 @@ CHANGELOG
|
|||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
|
|
||||||
## v1.0.5 - _August 13, 2018_
|
## v1.0.5 - _August 14, 2018_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
|
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
## @0xproject/assert
|
## @0x/assert
|
||||||
|
|
||||||
Standard type and schema assertions to be used across all 0x projects and packages
|
Standard type and schema assertions to be used across all 0x projects and packages
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add @0xproject/assert
|
yarn add @0x/assert
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { assert } from '@0xproject/assert';
|
import { assert } from '@0x/assert';
|
||||||
|
|
||||||
assert.isValidBaseUnitAmount('baseUnitAmount', baseUnitAmount);
|
assert.isValidBaseUnitAmount('baseUnitAmount', baseUnitAmount);
|
||||||
```
|
```
|
||||||
@ -20,7 +20,7 @@ If your project is in [TypeScript](https://www.typescriptlang.org/), add the fol
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"],
|
"typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -49,13 +49,13 @@ yarn install
|
|||||||
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/assert yarn build
|
PKG=@0x/assert yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
Or continuously rebuild on change:
|
Or continuously rebuild on change:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/assert yarn watch
|
PKG=@0x/assert yarn watch
|
||||||
```
|
```
|
||||||
|
|
||||||
### Clean
|
### Clean
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/assert",
|
"name": "@0x/assert",
|
||||||
"version": "1.0.13",
|
"version": "1.0.14",
|
||||||
"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": {
|
||||||
"@0xproject/tslint-config": "^1.0.8",
|
"@0x/tslint-config": "^1.0.9",
|
||||||
"@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": {
|
||||||
"@0xproject/json-schemas": "^1.0.7",
|
"@0x/json-schemas": "^2.0.0",
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.3",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.3",
|
||||||
"lodash": "^4.17.5",
|
"lodash": "^4.17.5",
|
||||||
"valid-url": "^1.0.9"
|
"valid-url": "^1.0.9"
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Schema, SchemaValidator } from '@0xproject/json-schemas';
|
import { Schema, SchemaValidator } from '@0x/json-schemas';
|
||||||
import { addressUtils, BigNumber } from '@0xproject/utils';
|
import { addressUtils, BigNumber } from '@0x/utils';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
import * as validUrl from 'valid-url';
|
import * as validUrl from 'valid-url';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import * as chai from 'chai';
|
import * as chai from 'chai';
|
||||||
import * as dirtyChai from 'dirty-chai';
|
import * as dirtyChai from 'dirty-chai';
|
||||||
import 'mocha';
|
import 'mocha';
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@0xproject/tslint-config"]
|
"extends": ["@0x/tslint-config"]
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,8 @@
|
|||||||
"note": "Add missing types to public interface",
|
"note": "Add missing types to public interface",
|
||||||
"pr": 1139
|
"pr": 1139
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"timestamp": 1539871071
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
|
@ -5,6 +5,15 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
|
## v2.1.0 - _October 18, 2018_
|
||||||
|
|
||||||
|
* Add `gasLimit` and `gasPrice` as optional properties on `BuyQuoteExecutionOpts`
|
||||||
|
* Export `BuyQuoteInfo` type (#1131)
|
||||||
|
* Updated to use new modularized artifacts and the latest version of @0xproject/contract-wrappers (#1105)
|
||||||
|
* Add `gasLimit` and `gasPrice` as optional properties on `BuyQuoteExecutionOpts` (#1116)
|
||||||
|
* Add `docs:json` command to package.json (#1139)
|
||||||
|
* Add missing types to public interface (#1139)
|
||||||
|
|
||||||
## v2.0.0 - _October 4, 2018_
|
## v2.0.0 - _October 4, 2018_
|
||||||
|
|
||||||
* Expand AssetBuyer to work with multiple assets at once (#1086)
|
* Expand AssetBuyer to work with multiple assets at once (#1086)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## @0xproject/asset-buyer
|
## @0x/asset-buyer
|
||||||
|
|
||||||
**Warning: In Beta, has not been extensively tested.**
|
**Warning: In Beta, has not been extensively tested.**
|
||||||
|
|
||||||
@ -9,26 +9,26 @@ In its more advanced and useful form, it integrates with the [Standard Relayer A
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add @0xproject/asset-buyer
|
yarn add @0x/asset-buyer
|
||||||
```
|
```
|
||||||
|
|
||||||
**Import**
|
**Import**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { AssetBuyer } from '@0xproject/asset-buyer';
|
import { AssetBuyer } from '@0x/asset-buyer';
|
||||||
```
|
```
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var AssetBuyer = require('@0xproject/asset-buyer').AssetBuyer;
|
var AssetBuyer = require('@0x/asset-buyer').AssetBuyer;
|
||||||
```
|
```
|
||||||
|
|
||||||
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
|
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"],
|
"typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -57,13 +57,13 @@ yarn install
|
|||||||
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/asset-buyer yarn build
|
PKG=@0x/asset-buyer yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
Or continuously rebuild on change:
|
Or continuously rebuild on change:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/asset-buyer yarn watch
|
PKG=@0x/asset-buyer yarn watch
|
||||||
```
|
```
|
||||||
|
|
||||||
### Clean
|
### Clean
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/asset-buyer",
|
"name": "@0x/asset-buyer",
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"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": {
|
||||||
"@0xproject/assert": "^1.0.13",
|
"@0x/assert": "^1.0.14",
|
||||||
"@0xproject/connect": "^3.0.1",
|
"@0x/connect": "^3.0.2",
|
||||||
"@0xproject/contract-wrappers": "^2.0.2",
|
"@0x/contract-wrappers": "^3.0.0",
|
||||||
"@0xproject/json-schemas": "^1.0.7",
|
"@0x/json-schemas": "^2.0.0",
|
||||||
"@0xproject/order-utils": "^1.0.7",
|
"@0x/order-utils": "^2.0.0",
|
||||||
"@0xproject/subproviders": "^2.0.7",
|
"@0x/subproviders": "^2.1.0",
|
||||||
"@0xproject/types": "^1.1.4",
|
"@0x/types": "^1.2.0",
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.3",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.3",
|
||||||
"@0xproject/web3-wrapper": "^3.0.3",
|
"@0x/web3-wrapper": "^3.1.0",
|
||||||
"ethereum-types": "^1.0.11",
|
"ethereum-types": "^1.1.1",
|
||||||
"lodash": "^4.17.10"
|
"lodash": "^4.17.10"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0xproject/tslint-config": "^1.0.8",
|
"@0x/tslint-config": "^1.0.9",
|
||||||
"@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,9 +1,9 @@
|
|||||||
import { ContractWrappers } from '@0xproject/contract-wrappers';
|
import { ContractWrappers } from '@0x/contract-wrappers';
|
||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import { SignedOrder } from '@0xproject/order-utils';
|
import { SignedOrder } from '@0x/order-utils';
|
||||||
import { ObjectMap } from '@0xproject/types';
|
import { ObjectMap } from '@0x/types';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { Provider } from 'ethereum-types';
|
import { Provider } from 'ethereum-types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
import { AssetBuyerOpts, BuyQuoteExecutionOpts, BuyQuoteRequestOpts } from './types';
|
import { AssetBuyerOpts, BuyQuoteExecutionOpts, BuyQuoteRequestOpts } from './types';
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ export {
|
|||||||
JSONRPCErrorCallback,
|
JSONRPCErrorCallback,
|
||||||
Provider,
|
Provider,
|
||||||
} from 'ethereum-types';
|
} from 'ethereum-types';
|
||||||
export { SignedOrder } from '@0xproject/types';
|
export { SignedOrder } from '@0x/types';
|
||||||
export { BigNumber } from '@0xproject/utils';
|
export { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
export { AssetBuyer } from './asset_buyer';
|
export { AssetBuyer } from './asset_buyer';
|
||||||
export { BasicOrderProvider } from './order_providers/basic_order_provider';
|
export { BasicOrderProvider } from './order_providers/basic_order_provider';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import { SignedOrder } from '@0xproject/types';
|
import { SignedOrder } from '@0x/types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
import { OrderProvider, OrderProviderRequest, OrderProviderResponse } from '../types';
|
import { OrderProvider, OrderProviderRequest, OrderProviderResponse } from '../types';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { HttpClient } from '@0xproject/connect';
|
import { HttpClient } from '@0x/connect';
|
||||||
import { APIOrder, OrderbookResponse } from '@0xproject/types';
|
import { APIOrder, OrderbookResponse } from '@0x/types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { SignedOrder } from '@0xproject/types';
|
import { SignedOrder } from '@0x/types';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* makerAssetData: The assetData representing the desired makerAsset.
|
* makerAssetData: The assetData representing the desired makerAsset.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { assert as sharedAssert } from '@0xproject/assert';
|
import { assert as sharedAssert } from '@0x/assert';
|
||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import { SignedOrder } from '@0xproject/types';
|
import { SignedOrder } from '@0x/types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
import { BuyQuote, BuyQuoteInfo, OrderProvider, OrderProviderRequest } from '../types';
|
import { BuyQuote, BuyQuoteInfo, OrderProvider, OrderProviderRequest } from '../types';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ContractWrappers } from '@0xproject/contract-wrappers';
|
import { ContractWrappers } from '@0x/contract-wrappers';
|
||||||
import { assetDataUtils as sharedAssetDataUtils } from '@0xproject/order-utils';
|
import { assetDataUtils as sharedAssetDataUtils } from '@0x/order-utils';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
export const assetDataUtils = {
|
export const assetDataUtils = {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { marketUtils, rateUtils } from '@0xproject/order-utils';
|
import { marketUtils, rateUtils } from '@0x/order-utils';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
import { constants } from '../constants';
|
import { constants } from '../constants';
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { OrderAndTraderInfo, OrderStatus, OrderValidatorWrapper } from '@0xproject/contract-wrappers';
|
import { OrderAndTraderInfo, OrderStatus, OrderValidatorWrapper } from '@0x/contract-wrappers';
|
||||||
import { sortingUtils } from '@0xproject/order-utils';
|
import { sortingUtils } from '@0x/order-utils';
|
||||||
import { RemainingFillableCalculator } from '@0xproject/order-utils/lib/src/remaining_fillable_calculator';
|
import { RemainingFillableCalculator } from '@0x/order-utils/lib/src/remaining_fillable_calculator';
|
||||||
import { SignedOrder } from '@0xproject/types';
|
import { SignedOrder } from '@0x/types';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
import { constants } from '../constants';
|
import { constants } from '../constants';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { SignedOrder } from '@0xproject/types';
|
import { SignedOrder } from '@0x/types';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
import { constants } from '../constants';
|
import { constants } from '../constants';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { orderFactory } from '@0xproject/order-utils/lib/src/order_factory';
|
import { orderFactory } from '@0x/order-utils/lib/src/order_factory';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import * as chai from 'chai';
|
import * as chai from 'chai';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
import 'mocha';
|
import 'mocha';
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@0xproject/tslint-config"]
|
"extends": ["@0x/tslint-config"]
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"timestamp": 1539871071,
|
||||||
|
"version": "3.0.2",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"note": "Dependencies updated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"changes": [
|
"changes": [
|
||||||
|
@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
|
## v3.0.2 - _October 18, 2018_
|
||||||
|
|
||||||
|
* Dependencies updated
|
||||||
|
|
||||||
## v3.0.1 - _October 4, 2018_
|
## v3.0.1 - _October 4, 2018_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
@ -38,7 +42,7 @@ CHANGELOG
|
|||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
|
|
||||||
## v2.0.0-rc.1 - _August 13, 2018_
|
## v2.0.0-rc.1 - _August 14, 2018_
|
||||||
|
|
||||||
* Added strict encoding/decoding checks for sendTransaction and call (#915)
|
* Added strict encoding/decoding checks for sendTransaction and call (#915)
|
||||||
|
|
||||||
|
@ -1,25 +1,25 @@
|
|||||||
## @0xproject/base-contract
|
## @0x/base-contract
|
||||||
|
|
||||||
BaseContract to derive all auto-generated wrappers from
|
BaseContract to derive all auto-generated wrappers from
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add @0xproject/base-contract
|
yarn add @0x/base-contract
|
||||||
```
|
```
|
||||||
|
|
||||||
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
|
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"],
|
"typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import { BaseContract } from '@0xproject/base-contract';
|
import { BaseContract } from '@0x/base-contract';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
@ -47,13 +47,13 @@ yarn install
|
|||||||
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/base-contract yarn build
|
PKG=@0x/base-contract yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
Or continuously rebuild on change:
|
Or continuously rebuild on change:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/base-contract yarn watch
|
PKG=@0x/base-contract yarn watch
|
||||||
```
|
```
|
||||||
|
|
||||||
### Lint
|
### Lint
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/base-contract",
|
"name": "@0x/base-contract",
|
||||||
"version": "3.0.1",
|
"version": "3.0.2",
|
||||||
"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": {
|
||||||
"@0xproject/tslint-config": "^1.0.8",
|
"@0x/tslint-config": "^1.0.9",
|
||||||
"@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": {
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.3",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.3",
|
||||||
"@0xproject/web3-wrapper": "^3.0.3",
|
"@0x/web3-wrapper": "^3.1.0",
|
||||||
"ethereum-types": "^1.0.11",
|
"ethereum-types": "^1.1.1",
|
||||||
"ethers": "~4.0.4",
|
"ethers": "~4.0.4",
|
||||||
"lodash": "^4.17.5"
|
"lodash": "^4.17.5"
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { abiUtils, BigNumber } from '@0xproject/utils';
|
import { abiUtils, BigNumber } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import {
|
import {
|
||||||
AbiDefinition,
|
AbiDefinition,
|
||||||
AbiType,
|
AbiType,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import * as chai from 'chai';
|
import * as chai from 'chai';
|
||||||
import 'mocha';
|
import 'mocha';
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@0xproject/tslint-config"]
|
"extends": ["@0x/tslint-config"]
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"timestamp": 1539871071,
|
||||||
|
"version": "3.0.2",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"note": "Dependencies updated"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"changes": [
|
"changes": [
|
||||||
|
@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
|
## v3.0.2 - _October 18, 2018_
|
||||||
|
|
||||||
|
* Dependencies updated
|
||||||
|
|
||||||
## v3.0.1 - _October 4, 2018_
|
## v3.0.1 - _October 4, 2018_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
@ -42,7 +46,7 @@ CHANGELOG
|
|||||||
* Updated for SRA v2 (#974)
|
* Updated for SRA v2 (#974)
|
||||||
* Stopped exporting `Order` type (#924)
|
* Stopped exporting `Order` type (#924)
|
||||||
|
|
||||||
## v1.0.5 - _August 13, 2018_
|
## v1.0.5 - _August 14, 2018_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
|
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
## @0xproject/connect
|
## @0x/connect
|
||||||
|
|
||||||
This repository contains a Javascript library that makes it easy to interact with Relayers that conform to the [Standard Relayer API](https://github.com/0xProject/standard-relayer-api)
|
This repository contains a Javascript library that makes it easy to interact with Relayers that conform to the [Standard Relayer API](https://github.com/0xProject/standard-relayer-api)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add @0xproject/connect
|
yarn add @0x/connect
|
||||||
```
|
```
|
||||||
|
|
||||||
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
|
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"],
|
"typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -46,13 +46,13 @@ yarn install
|
|||||||
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/connect yarn build
|
PKG=@0x/connect yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
Or continuously rebuild on change:
|
Or continuously rebuild on change:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/connect yarn watch
|
PKG=@0x/connect yarn watch
|
||||||
```
|
```
|
||||||
|
|
||||||
### Clean
|
### Clean
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/connect",
|
"name": "@0x/connect",
|
||||||
"version": "3.0.1",
|
"version": "3.0.2",
|
||||||
"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": {
|
||||||
"@0xproject/assert": "^1.0.13",
|
"@0x/assert": "^1.0.14",
|
||||||
"@0xproject/json-schemas": "^1.0.7",
|
"@0x/json-schemas": "^2.0.0",
|
||||||
"@0xproject/order-utils": "^1.0.7",
|
"@0x/order-utils": "^2.0.0",
|
||||||
"@0xproject/types": "^1.1.4",
|
"@0x/types": "^1.2.0",
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.3",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.3",
|
||||||
"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": {
|
||||||
"@0xproject/tslint-config": "^1.0.8",
|
"@0x/tslint-config": "^1.0.9",
|
||||||
"@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,5 +1,5 @@
|
|||||||
import { assert } from '@0xproject/assert';
|
import { assert } from '@0x/assert';
|
||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import {
|
import {
|
||||||
APIOrder,
|
APIOrder,
|
||||||
AssetPairsRequestOpts,
|
AssetPairsRequestOpts,
|
||||||
@ -14,8 +14,8 @@ import {
|
|||||||
PagedRequestOpts,
|
PagedRequestOpts,
|
||||||
RequestOpts,
|
RequestOpts,
|
||||||
SignedOrder,
|
SignedOrder,
|
||||||
} from '@0xproject/types';
|
} from '@0x/types';
|
||||||
import { fetchAsync } from '@0xproject/utils';
|
import { fetchAsync } from '@0x/utils';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
import * as queryString from 'query-string';
|
import * as queryString from 'query-string';
|
||||||
|
|
||||||
|
@ -17,4 +17,4 @@ export {
|
|||||||
PaginatedCollection,
|
PaginatedCollection,
|
||||||
RequestOpts,
|
RequestOpts,
|
||||||
SignedOrder,
|
SignedOrder,
|
||||||
} from '@0xproject/types';
|
} from '@0x/types';
|
||||||
|
@ -12,7 +12,7 @@ import {
|
|||||||
PagedRequestOpts,
|
PagedRequestOpts,
|
||||||
PaginatedCollection,
|
PaginatedCollection,
|
||||||
SignedOrder,
|
SignedOrder,
|
||||||
} from '@0xproject/types';
|
} from '@0x/types';
|
||||||
|
|
||||||
export interface Client {
|
export interface Client {
|
||||||
getAssetPairsAsync: (
|
getAssetPairsAsync: (
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { assert as sharedAssert } from '@0xproject/assert';
|
import { assert as sharedAssert } from '@0x/assert';
|
||||||
// HACK: We need those two unused imports because they're actually used by sharedAssert which gets injected here
|
// HACK: We need those two unused imports because they're actually used by sharedAssert which gets injected here
|
||||||
// tslint:disable-next-line:no-unused-variable
|
// tslint:disable-next-line:no-unused-variable
|
||||||
import { Schema, schemas } from '@0xproject/json-schemas';
|
import { Schema, schemas } from '@0x/json-schemas';
|
||||||
// tslint:disable-next-line:no-unused-variable
|
// tslint:disable-next-line:no-unused-variable
|
||||||
import { ECSignature } from '@0xproject/types';
|
import { ECSignature } from '@0x/types';
|
||||||
// tslint:disable-next-line:no-unused-variable
|
// tslint:disable-next-line:no-unused-variable
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
export const assert = {
|
export const assert = {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { assert } from '@0xproject/assert';
|
import { assert } from '@0x/assert';
|
||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
import { OrdersChannelMessage, OrdersChannelMessageTypes } from '@0xproject/types';
|
import { OrdersChannelMessage, OrdersChannelMessageTypes } from '@0x/types';
|
||||||
|
|
||||||
import { relayerResponseJsonParsers } from './relayer_response_json_parsers';
|
import { relayerResponseJsonParsers } from './relayer_response_json_parsers';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { assert } from '@0xproject/assert';
|
import { assert } from '@0x/assert';
|
||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import { orderParsingUtils } from '@0xproject/order-utils';
|
import { orderParsingUtils } from '@0x/order-utils';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
APIOrder,
|
APIOrder,
|
||||||
@ -9,7 +9,7 @@ import {
|
|||||||
OrderbookResponse,
|
OrderbookResponse,
|
||||||
OrderConfigResponse,
|
OrderConfigResponse,
|
||||||
OrdersResponse,
|
OrdersResponse,
|
||||||
} from '@0xproject/types';
|
} from '@0x/types';
|
||||||
|
|
||||||
import { typeConverters } from './type_converters';
|
import { typeConverters } from './type_converters';
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { orderParsingUtils } from '@0xproject/order-utils';
|
import { orderParsingUtils } from '@0x/order-utils';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
import { APIOrder } from '@0xproject/types';
|
import { APIOrder } from '@0x/types';
|
||||||
|
|
||||||
export const typeConverters = {
|
export const typeConverters = {
|
||||||
convertOrderbookStringFieldsToBigNumber(orderbook: any): any {
|
convertOrderbookStringFieldsToBigNumber(orderbook: any): any {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { OrdersChannelMessageTypes, OrdersChannelSubscriptionOpts } from '@0xproject/types';
|
import { OrdersChannelMessageTypes, OrdersChannelSubscriptionOpts } from '@0x/types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
import { v4 as uuid } from 'uuid';
|
import { v4 as uuid } from 'uuid';
|
||||||
import * as WebSocket from 'websocket';
|
import * as WebSocket from 'websocket';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
import { AssetPairsResponse } from '@0xproject/types';
|
import { AssetPairsResponse } from '@0x/types';
|
||||||
|
|
||||||
export const assetDataPairsResponse: AssetPairsResponse = {
|
export const assetDataPairsResponse: AssetPairsResponse = {
|
||||||
total: 43,
|
total: 43,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { FeeRecipientsResponse } from '@0xproject/types';
|
import { FeeRecipientsResponse } from '@0x/types';
|
||||||
|
|
||||||
export const feeRecipientsResponse: FeeRecipientsResponse = {
|
export const feeRecipientsResponse: FeeRecipientsResponse = {
|
||||||
total: 3,
|
total: 3,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
export const orderResponse = {
|
export const orderResponse = {
|
||||||
order: {
|
order: {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
import { OrderConfigResponse } from '@0xproject/types';
|
import { OrderConfigResponse } from '@0x/types';
|
||||||
|
|
||||||
export const orderConfigResponse: OrderConfigResponse = {
|
export const orderConfigResponse: OrderConfigResponse = {
|
||||||
senderAddress: '0xa2b31dacf30a9c50ca473337c01d8a201ae33e32',
|
senderAddress: '0xa2b31dacf30a9c50ca473337c01d8a201ae33e32',
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
import { OrderbookResponse } from '@0xproject/types';
|
import { OrderbookResponse } from '@0x/types';
|
||||||
|
|
||||||
export const orderbookResponse: OrderbookResponse = {
|
export const orderbookResponse: OrderbookResponse = {
|
||||||
bids: {
|
bids: {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
import { OrdersResponse } from '@0xproject/types';
|
import { OrdersResponse } from '@0x/types';
|
||||||
|
|
||||||
export const ordersResponse: OrdersResponse = {
|
export const ordersResponse: OrdersResponse = {
|
||||||
total: 984,
|
total: 984,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import * as chai from 'chai';
|
import * as chai from 'chai';
|
||||||
import * as chaiAsPromised from 'chai-as-promised';
|
import * as chaiAsPromised from 'chai-as-promised';
|
||||||
import * as dirtyChai from 'dirty-chai';
|
import * as dirtyChai from 'dirty-chai';
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@0xproject/tslint-config"]
|
"extends": ["@0x/tslint-config"]
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,20 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"changes": [
|
"changes": [
|
||||||
{
|
{
|
||||||
"pr": 1105,
|
"pr": 1105,
|
||||||
"note": "Initial release"
|
"note": "Initial release"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"timestamp": 1539871071
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "1.0.0",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"note": "Unpublished Package"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
14
packages/contract-addresses/CHANGELOG.md
Normal file
14
packages/contract-addresses/CHANGELOG.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<!--
|
||||||
|
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.1 - _October 18, 2018_
|
||||||
|
|
||||||
|
* Initial release (#1105)
|
||||||
|
|
||||||
|
## v1.0.0 - _Invalid date_
|
||||||
|
|
||||||
|
* Unpublished Package
|
@ -1,4 +1,4 @@
|
|||||||
## @0xproject/contract-addresses
|
## @0x/contract-addresses
|
||||||
|
|
||||||
A tiny utility library for getting known deployed contract addresses for a
|
A tiny utility library for getting known deployed contract addresses for a
|
||||||
particular network.
|
particular network.
|
||||||
@ -6,20 +6,19 @@ particular network.
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add @0xproject/contract-addresses
|
yarn add @0x/contract-addresses
|
||||||
```
|
```
|
||||||
|
|
||||||
**Import**
|
**Import**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { getContractAddressesForNetworkOrThrow } from '@0xproject/contract-addresses';
|
import { getContractAddressesForNetworkOrThrow } from '@0x/contract-addresses';
|
||||||
```
|
```
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var getContractAddressesForNetworkOrThrow = require('@0xproject/contract-addresses')
|
var getContractAddressesForNetworkOrThrow = require('@0x/contract-addresses').getContractAddressesForNetworkOrThrow;
|
||||||
.getContractAddressesForNetworkOrThrow;
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
@ -47,7 +46,7 @@ yarn install
|
|||||||
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/contract-addresses yarn build
|
PKG=@0x/contract-addresses yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
### Clean
|
### Clean
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/contract-addresses",
|
"name": "@0x/contract-addresses",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
},
|
},
|
||||||
@ -25,8 +25,8 @@
|
|||||||
"homepage": "https://github.com/0xProject/0x-monorepo/packages/contract-addresses/README.md",
|
"homepage": "https://github.com/0xProject/0x-monorepo/packages/contract-addresses/README.md",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/lodash": "4.14.104",
|
"@types/lodash": "4.14.104",
|
||||||
"typescript": "3.0.1",
|
"shx": "^0.2.2",
|
||||||
"shx": "^0.2.2"
|
"typescript": "3.0.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lodash": "^4.17.5"
|
"lodash": "^4.17.5"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@0xproject/tslint-config"]
|
"extends": ["@0x/tslint-config"]
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,20 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"changes": [
|
"changes": [
|
||||||
{
|
{
|
||||||
"pr": 1105,
|
"pr": 1105,
|
||||||
"note": "Initial release"
|
"note": "Initial release"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"timestamp": 1539871071
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "1.0.0",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"note": "Unpublished Package"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
14
packages/contract-artifacts/CHANGELOG.md
Normal file
14
packages/contract-artifacts/CHANGELOG.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<!--
|
||||||
|
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.1 - _October 18, 2018_
|
||||||
|
|
||||||
|
* Initial release (#1105)
|
||||||
|
|
||||||
|
## v1.0.0 - _Invalid date_
|
||||||
|
|
||||||
|
* Unpublished Package
|
@ -1,23 +1,23 @@
|
|||||||
## @0xproject/contract-artifacts
|
## @0x/contract-artifacts
|
||||||
|
|
||||||
Smart contract compilation artifacts for the latest version of the 0x Protocol.
|
Smart contract compilation artifacts for the latest version of the 0x Protocol.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add @0xproject/contract-artifacts
|
yarn add @0x/contract-artifacts
|
||||||
```
|
```
|
||||||
|
|
||||||
**Import**
|
**Import**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import * as artifacts from '@0xproject/contract-artifacts';
|
import * as artifacts from '@0x/contract-artifacts';
|
||||||
```
|
```
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var artifacts = require('@0xproject/contract-artifacts');
|
var artifacts = require('@0x/contract-artifacts');
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
@ -45,7 +45,7 @@ yarn install
|
|||||||
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/contract-artifacts yarn build
|
PKG=@0x/contract-artifacts yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
### Clean
|
### Clean
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/contract-artifacts",
|
"name": "@0x/contract-artifacts",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
},
|
},
|
||||||
@ -24,8 +24,8 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/0xProject/0x-monorepo/packages/contract-artifacts/README.md",
|
"homepage": "https://github.com/0xProject/0x-monorepo/packages/contract-artifacts/README.md",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "3.0.1",
|
"shx": "^0.2.2",
|
||||||
"shx": "^0.2.2"
|
"typescript": "3.0.1"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@0xproject/tslint-config"]
|
"extends": ["@0x/tslint-config"]
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,8 @@
|
|||||||
"Removed ContractNotFound errors. Checking for this error was somewhat ineffecient. Relevant methods/functions now return the default error from web3-wrapper, which we feel provides enough information.",
|
"Removed ContractNotFound errors. Checking for this error was somewhat ineffecient. Relevant methods/functions now return the default error from web3-wrapper, which we feel provides enough information.",
|
||||||
"pr": 1105
|
"pr": 1105
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"timestamp": 1539871071
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
|
@ -5,6 +5,17 @@ Edit the package's CHANGELOG.json file only.
|
|||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
|
||||||
|
## v3.0.0 - _October 18, 2018_
|
||||||
|
|
||||||
|
* Add optional validation to the forwarder wrapper methods
|
||||||
|
* Updated to use new modularized artifacts. (#1105)
|
||||||
|
* Top-level `ContractWrappers` class has a new optional `contractAddresses` parameter. (#1105)
|
||||||
|
* Default contract addresses are no longer stored in artifacts and are instead loaded from the `@0xproject/contract-addresses` package. (#1105)
|
||||||
|
* Most contract addresses are now defined at instantiation time and are available as properties (e.g., `exchangeWrapper.address`) instead of methods (e.g., `exchangeWrapper.getContractAddress()`). (#1105)
|
||||||
|
* Removed `setProvider` method in top-level `ContractWrapper` class and added new `unsubscribeAll` method. (#1105)
|
||||||
|
* Some properties and methods have been renamed. For example, some methods that previously could throw no longer can, and so their names have been updated accordingly. (#1105)
|
||||||
|
* Removed ContractNotFound errors. Checking for this error was somewhat ineffecient. Relevant methods/functions now return the default error from web3-wrapper, which we feel provides enough information. (#1105)
|
||||||
|
|
||||||
## v2.0.2 - _October 4, 2018_
|
## v2.0.2 - _October 4, 2018_
|
||||||
|
|
||||||
* Dependencies updated
|
* Dependencies updated
|
||||||
@ -51,7 +62,7 @@ CHANGELOG
|
|||||||
* Remove superfluous exported types: `ContractEvent`, `Token`, `OrderFillRequest`, `ContractEventArgs`, `LogEvent`, `OnOrderStateChangeCallback`, `ECSignature`, `OrderStateValid`, `OrderStateInvalid`, `OrderState`, `FilterObject`, `TransactionReceipt` & `TransactionReceiptWithDecodedLogs` (#924)
|
* Remove superfluous exported types: `ContractEvent`, `Token`, `OrderFillRequest`, `ContractEventArgs`, `LogEvent`, `OnOrderStateChangeCallback`, `ECSignature`, `OrderStateValid`, `OrderStateInvalid`, `OrderState`, `FilterObject`, `TransactionReceipt` & `TransactionReceiptWithDecodedLogs` (#924)
|
||||||
* Added Transaction Encoder for use with 0x Exchange executeTransaction (#975)
|
* Added Transaction Encoder for use with 0x Exchange executeTransaction (#975)
|
||||||
|
|
||||||
## v1.0.1-rc.3 - _August 13, 2018_
|
## v1.0.1-rc.3 - _August 14, 2018_
|
||||||
|
|
||||||
* Added strict encoding/decoding checks for sendTransaction and call (#915)
|
* Added strict encoding/decoding checks for sendTransaction and call (#915)
|
||||||
* Add ForwarderWrapper (#934)
|
* Add ForwarderWrapper (#934)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## @0xproject/contract-wrappers
|
## @0x/contract-wrappers
|
||||||
|
|
||||||
Smart TS wrappers for 0x smart contracts. The wrappers have simplified interfaces, perform client-side validation on transactions and throw helpful error messages.
|
Smart TS wrappers for 0x smart contracts. The wrappers have simplified interfaces, perform client-side validation on transactions and throw helpful error messages.
|
||||||
|
|
||||||
@ -9,20 +9,20 @@ Smart TS wrappers for 0x smart contracts. The wrappers have simplified interface
|
|||||||
**Install**
|
**Install**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install @0xproject/contract-wrappers --save
|
npm install @0x/contract-wrappers --save
|
||||||
```
|
```
|
||||||
|
|
||||||
**Import**
|
**Import**
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import { ContractWrappers } from '@0xproject/contract-wrappers';
|
import { ContractWrappers } from '@0x/contract-wrappers';
|
||||||
```
|
```
|
||||||
|
|
||||||
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
|
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"],
|
"typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -51,13 +51,13 @@ yarn install
|
|||||||
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/contract-wrappers yarn build
|
PKG=@0x/contract-wrappers yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
Or continuously rebuild on change:
|
Or continuously rebuild on change:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PKG=@0xproject/contract-wrappers yarn watch
|
PKG=@0x/contract-wrappers yarn watch
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/contract-wrappers",
|
"name": "@0x/contract-wrappers",
|
||||||
"version": "2.0.2",
|
"version": "3.0.0",
|
||||||
"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": {
|
||||||
"@0xproject/dev-utils": "^1.0.12",
|
"@0x/dev-utils": "^1.0.13",
|
||||||
"@0xproject/migrations": "^1.0.14",
|
"@0x/migrations": "^2.0.0",
|
||||||
"@0xproject/subproviders": "^2.0.7",
|
"@0x/subproviders": "^2.1.0",
|
||||||
"@0xproject/tslint-config": "^1.0.8",
|
"@0x/tslint-config": "^1.0.9",
|
||||||
"@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": {
|
||||||
"@0xproject/abi-gen-wrappers": "^1.0.0",
|
"@0x/abi-gen-wrappers": "^1.0.1",
|
||||||
"@0xproject/assert": "^1.0.13",
|
"@0x/assert": "^1.0.14",
|
||||||
"@0xproject/contract-addresses": "^1.0.0",
|
"@0x/contract-addresses": "^1.0.1",
|
||||||
"@0xproject/contract-artifacts": "^1.0.0",
|
"@0x/contract-artifacts": "^1.0.1",
|
||||||
"@0xproject/fill-scenarios": "^1.0.7",
|
"@0x/fill-scenarios": "^1.0.8",
|
||||||
"@0xproject/json-schemas": "^1.0.7",
|
"@0x/json-schemas": "^2.0.0",
|
||||||
"@0xproject/order-utils": "^1.0.7",
|
"@0x/order-utils": "^2.0.0",
|
||||||
"@0xproject/types": "^1.1.4",
|
"@0x/types": "^1.2.0",
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.3",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.3",
|
||||||
"@0xproject/web3-wrapper": "^3.0.3",
|
"@0x/web3-wrapper": "^3.1.0",
|
||||||
"ethereum-types": "^1.0.11",
|
"ethereum-types": "^1.1.1",
|
||||||
"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",
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user