Merge pull request #1156 from 0xProject/feature/0x/npm-domain
Move package org from 0xproject to 0x
This commit is contained in:
@@ -81,23 +81,23 @@ jobs:
|
|||||||
- 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/subproviders
|
- run: yarn wsrun test:circleci @0x/subproviders
|
||||||
- run: yarn wsrun test:circleci @0xproject/web3-wrapper
|
- run: yarn wsrun test:circleci @0x/web3-wrapper
|
||||||
- run: yarn wsrun test:circleci @0xproject/utils
|
- run: yarn wsrun test:circleci @0x/utils
|
||||||
- run: yarn wsrun test:circleci @0xproject/instant
|
- run: yarn wsrun test:circleci @0x/instant
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: coverage-abi-gen-{{ .Environment.CIRCLE_SHA1 }}
|
key: coverage-abi-gen-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
paths:
|
paths:
|
||||||
@@ -176,12 +176,12 @@ jobs:
|
|||||||
- save_cache:
|
- save_cache:
|
||||||
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
paths:
|
paths:
|
||||||
- "/usr/local/bin"
|
- '/usr/local/bin'
|
||||||
- "/usr/local/lib/python3.7/site-packages"
|
- '/usr/local/lib/python3.7/site-packages'
|
||||||
- ".eggs"
|
- '.eggs'
|
||||||
- ".mypy_cache"
|
- '.mypy_cache'
|
||||||
- ".pytest_cache"
|
- '.pytest_cache'
|
||||||
- ".tox"
|
- '.tox'
|
||||||
- run:
|
- run:
|
||||||
command: |
|
command: |
|
||||||
cd python-packages/order_utils
|
cd python-packages/order_utils
|
||||||
@@ -208,12 +208,12 @@ jobs:
|
|||||||
- save_cache:
|
- save_cache:
|
||||||
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
paths:
|
paths:
|
||||||
- "/usr/local/bin"
|
- '/usr/local/bin'
|
||||||
- "/usr/local/lib/python3.7/site-packages"
|
- '/usr/local/lib/python3.7/site-packages'
|
||||||
- ".eggs"
|
- '.eggs'
|
||||||
- ".mypy_cache"
|
- '.mypy_cache'
|
||||||
- ".pytest_cache"
|
- '.pytest_cache'
|
||||||
- ".tox"
|
- '.tox'
|
||||||
- run:
|
- run:
|
||||||
command: |
|
command: |
|
||||||
cd python-packages/order_utils
|
cd python-packages/order_utils
|
||||||
@@ -236,8 +236,8 @@ jobs:
|
|||||||
- save_cache:
|
- save_cache:
|
||||||
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
key: deps9-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
paths:
|
paths:
|
||||||
- "/usr/local/bin"
|
- '/usr/local/bin'
|
||||||
- "/usr/local/lib/python3.7/site-packages"
|
- '/usr/local/lib/python3.7/site-packages'
|
||||||
- run:
|
- run:
|
||||||
command: |
|
command: |
|
||||||
cd python-packages/order_utils
|
cd python-packages/order_utils
|
||||||
|
62
README.md
62
README.md
@@ -21,37 +21,37 @@ 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/subproviders`](/packages/subproviders) | [](https://www.npmjs.com/package/@0xproject/subproviders) | Useful web3 subproviders (e.g LedgerSubprovider) |
|
| [`@0x/subproviders`](/packages/subproviders) | [](https://www.npmjs.com/package/@0x/subproviders) | Useful web3 subproviders (e.g LedgerSubprovider) |
|
||||||
| [`@0xproject/tslint-config`](/packages/tslint-config) | [](https://www.npmjs.com/package/@0xproject/tslint-config) | Custom 0x development TSLint rules |
|
| [`@0x/tslint-config`](/packages/tslint-config) | [](https://www.npmjs.com/package/@0x/tslint-config) | Custom 0x development TSLint rules |
|
||||||
| [`@0xproject/types`](/packages/types) | [](https://www.npmjs.com/package/@0xproject/types) | Shared type declarations |
|
| [`@0x/types`](/packages/types) | [](https://www.npmjs.com/package/@0x/types) | Shared type declarations |
|
||||||
| [`@0xproject/typescript-typings`](/packages/typescript-typings) | [](https://www.npmjs.com/package/@0xproject/typescript-typings) | Repository of types for external packages |
|
| [`@0x/typescript-typings`](/packages/typescript-typings) | [](https://www.npmjs.com/package/@0x/typescript-typings) | Repository of types for external packages |
|
||||||
| [`@0xproject/utils`](/packages/utils) | [](https://www.npmjs.com/package/@0xproject/utils) | Shared utilities |
|
| [`@0x/utils`](/packages/utils) | [](https://www.npmjs.com/package/@0x/utils) | Shared utilities |
|
||||||
| [`@0xproject/web3-wrapper`](/packages/web3-wrapper) | [](https://www.npmjs.com/package/@0xproject/web3-wrapper) | Web3 wrapper |
|
| [`@0x/web3-wrapper`](/packages/web3-wrapper) | [](https://www.npmjs.com/package/@0x/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
|
||||||
|
|
||||||
@@ -70,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
|
||||||
@@ -103,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
|
||||||
@@ -120,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
|
||||||
@@ -176,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",
|
||||||
|
@@ -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"],
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -42,13 +42,13 @@
|
|||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0xproject/contract-addresses": "^1.0.0",
|
"@0x/contract-addresses": "^1.0.0",
|
||||||
"@0xproject/abi-gen": "^1.0.13",
|
"@0x/abi-gen": "^1.0.13",
|
||||||
"@0xproject/abi-gen-wrappers": "^1.0.0",
|
"@0x/abi-gen-wrappers": "^1.0.0",
|
||||||
"@0xproject/dev-utils": "^1.0.12",
|
"@0x/dev-utils": "^1.0.12",
|
||||||
"@0xproject/migrations": "^1.0.14",
|
"@0x/migrations": "^1.0.14",
|
||||||
"@0xproject/monorepo-scripts": "^1.0.11",
|
"@0x/monorepo-scripts": "^1.0.11",
|
||||||
"@0xproject/tslint-config": "^1.0.8",
|
"@0x/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,16 +74,16 @@
|
|||||||
"webpack": "^4.20.2"
|
"webpack": "^4.20.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@0xproject/assert": "^1.0.13",
|
"@0x/assert": "^1.0.13",
|
||||||
"@0xproject/base-contract": "^3.0.1",
|
"@0x/base-contract": "^3.0.1",
|
||||||
"@0xproject/contract-wrappers": "^2.0.2",
|
"@0x/contract-wrappers": "^2.0.2",
|
||||||
"@0xproject/order-utils": "^1.0.7",
|
"@0x/order-utils": "^1.0.7",
|
||||||
"@0xproject/order-watcher": "^2.1.1",
|
"@0x/order-watcher": "^2.1.1",
|
||||||
"@0xproject/subproviders": "^2.0.7",
|
"@0x/subproviders": "^2.0.7",
|
||||||
"@0xproject/types": "^1.1.4",
|
"@0x/types": "^1.1.4",
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.2",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.2",
|
||||||
"@0xproject/web3-wrapper": "^3.0.3",
|
"@0x/web3-wrapper": "^3.0.3",
|
||||||
"@types/web3-provider-engine": "^14.0.0",
|
"@types/web3-provider-engine": "^14.0.0",
|
||||||
"ethereum-types": "^1.0.11",
|
"ethereum-types": "^1.0.11",
|
||||||
"ethers": "~4.0.4",
|
"ethers": "~4.0.4",
|
||||||
|
@@ -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,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.0",
|
||||||
"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"
|
||||||
@@ -30,12 +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.12",
|
||||||
"@0xproject/tslint-config": "^1.0.8",
|
"@0x/tslint-config": "^1.0.8",
|
||||||
|
"@0x/utils": "^2.0.2",
|
||||||
|
"@0x/web3-wrapper": "^3.0.3",
|
||||||
|
"ethereum-types": "^1.0.11",
|
||||||
|
"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.1"
|
||||||
},
|
},
|
||||||
"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
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@0xproject/tslint-config"]
|
"extends": ["@0x/tslint-config"]
|
||||||
}
|
}
|
||||||
|
@@ -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,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/abi-gen",
|
"name": "@0x/abi-gen",
|
||||||
"version": "1.0.13",
|
"version": "1.0.13",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
},
|
},
|
||||||
"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.2",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.2",
|
||||||
"chalk": "^2.3.0",
|
"chalk": "^2.3.0",
|
||||||
"ethereum-types": "^1.0.11",
|
"ethereum-types": "^1.0.11",
|
||||||
"glob": "^7.1.2",
|
"glob": "^7.1.2",
|
||||||
@@ -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.8",
|
||||||
"@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,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,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/assert",
|
"name": "@0x/assert",
|
||||||
"version": "1.0.13",
|
"version": "1.0.13",
|
||||||
"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.8",
|
||||||
"@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": "^1.0.7",
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.2",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.2",
|
||||||
"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"]
|
||||||
}
|
}
|
||||||
|
@@ -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,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/asset-buyer",
|
"name": "@0x/asset-buyer",
|
||||||
"version": "2.0.0",
|
"version": "2.0.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.13",
|
||||||
"@0xproject/connect": "^3.0.1",
|
"@0x/connect": "^3.0.1",
|
||||||
"@0xproject/contract-wrappers": "^2.0.2",
|
"@0x/contract-wrappers": "^2.0.2",
|
||||||
"@0xproject/json-schemas": "^1.0.7",
|
"@0x/json-schemas": "^1.0.7",
|
||||||
"@0xproject/order-utils": "^1.0.7",
|
"@0x/order-utils": "^1.0.7",
|
||||||
"@0xproject/subproviders": "^2.0.7",
|
"@0x/subproviders": "^2.0.7",
|
||||||
"@0xproject/types": "^1.1.4",
|
"@0x/types": "^1.1.4",
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.2",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.2",
|
||||||
"@0xproject/web3-wrapper": "^3.0.3",
|
"@0x/web3-wrapper": "^3.0.3",
|
||||||
"ethereum-types": "^1.0.11",
|
"ethereum-types": "^1.0.11",
|
||||||
"lodash": "^4.17.10"
|
"lodash": "^4.17.10"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@0xproject/tslint-config": "^1.0.8",
|
"@0x/tslint-config": "^1.0.8",
|
||||||
"@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,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,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/base-contract",
|
"name": "@0x/base-contract",
|
||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"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.8",
|
||||||
"@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,9 +40,9 @@
|
|||||||
"typescript": "3.0.1"
|
"typescript": "3.0.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.2",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.2",
|
||||||
"@0xproject/web3-wrapper": "^3.0.3",
|
"@0x/web3-wrapper": "^3.0.3",
|
||||||
"ethereum-types": "^1.0.11",
|
"ethereum-types": "^1.0.11",
|
||||||
"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,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,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/connect",
|
"name": "@0x/connect",
|
||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"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.13",
|
||||||
"@0xproject/json-schemas": "^1.0.7",
|
"@0x/json-schemas": "^1.0.7",
|
||||||
"@0xproject/order-utils": "^1.0.7",
|
"@0x/order-utils": "^1.0.7",
|
||||||
"@0xproject/types": "^1.1.4",
|
"@0x/types": "^1.1.4",
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.2",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.2",
|
||||||
"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.8",
|
||||||
"@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,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,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/contract-addresses",
|
"name": "@0x/contract-addresses",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@0xproject/tslint-config"]
|
"extends": ["@0x/tslint-config"]
|
||||||
}
|
}
|
||||||
|
@@ -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,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/contract-artifacts",
|
"name": "@0x/contract-artifacts",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.12"
|
"node": ">=6.12"
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": ["@0xproject/tslint-config"]
|
"extends": ["@0x/tslint-config"]
|
||||||
}
|
}
|
||||||
|
@@ -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,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@0xproject/contract-wrappers",
|
"name": "@0x/contract-wrappers",
|
||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
"description": "Smart TS wrappers for 0x smart contracts",
|
"description": "Smart TS wrappers for 0x smart contracts",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -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.12",
|
||||||
"@0xproject/migrations": "^1.0.14",
|
"@0x/migrations": "^1.0.14",
|
||||||
"@0xproject/subproviders": "^2.0.7",
|
"@0x/subproviders": "^2.0.7",
|
||||||
"@0xproject/tslint-config": "^1.0.8",
|
"@0x/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": "*",
|
||||||
@@ -65,17 +65,17 @@
|
|||||||
"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.0",
|
||||||
"@0xproject/assert": "^1.0.13",
|
"@0x/assert": "^1.0.13",
|
||||||
"@0xproject/contract-addresses": "^1.0.0",
|
"@0x/contract-addresses": "^1.0.0",
|
||||||
"@0xproject/contract-artifacts": "^1.0.0",
|
"@0x/contract-artifacts": "^1.0.0",
|
||||||
"@0xproject/fill-scenarios": "^1.0.7",
|
"@0x/fill-scenarios": "^1.0.7",
|
||||||
"@0xproject/json-schemas": "^1.0.7",
|
"@0x/json-schemas": "^1.0.7",
|
||||||
"@0xproject/order-utils": "^1.0.7",
|
"@0x/order-utils": "^1.0.7",
|
||||||
"@0xproject/types": "^1.1.4",
|
"@0x/types": "^1.1.4",
|
||||||
"@0xproject/typescript-typings": "^3.0.2",
|
"@0x/typescript-typings": "^3.0.2",
|
||||||
"@0xproject/utils": "^2.0.2",
|
"@0x/utils": "^2.0.2",
|
||||||
"@0xproject/web3-wrapper": "^3.0.3",
|
"@0x/web3-wrapper": "^3.0.3",
|
||||||
"ethereum-types": "^1.0.11",
|
"ethereum-types": "^1.0.11",
|
||||||
"ethereumjs-blockstream": "6.0.0",
|
"ethereumjs-blockstream": "6.0.0",
|
||||||
"ethereumjs-util": "^5.1.1",
|
"ethereumjs-util": "^5.1.1",
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
export abstract class AbstractBalanceAndProxyAllowanceLazyStore {
|
export abstract class AbstractBalanceAndProxyAllowanceLazyStore {
|
||||||
public abstract async getBalanceAsync(tokenAddress: string, userAddress: string): Promise<BigNumber>;
|
public abstract async getBalanceAsync(tokenAddress: string, userAddress: string): Promise<BigNumber>;
|
||||||
|
@@ -7,8 +7,8 @@ import {
|
|||||||
Forwarder,
|
Forwarder,
|
||||||
OrderValidator,
|
OrderValidator,
|
||||||
WETH9,
|
WETH9,
|
||||||
} from '@0xproject/contract-artifacts';
|
} from '@0x/contract-artifacts';
|
||||||
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,5 +1,5 @@
|
|||||||
import { AbiDecoder, intervalUtils, logUtils } from '@0xproject/utils';
|
import { AbiDecoder, intervalUtils, logUtils } from '@0x/utils';
|
||||||
import { marshaller, Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { marshaller, Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import {
|
import {
|
||||||
BlockParamLiteral,
|
BlockParamLiteral,
|
||||||
ContractAbi,
|
ContractAbi,
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import { ERC20ProxyContract } from '@0xproject/abi-gen-wrappers';
|
import { ERC20ProxyContract } from '@0x/abi-gen-wrappers';
|
||||||
import { ERC20Proxy } from '@0xproject/contract-artifacts';
|
import { ERC20Proxy } from '@0x/contract-artifacts';
|
||||||
import { AssetProxyId } from '@0xproject/types';
|
import { AssetProxyId } from '@0x/types';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { ContractAbi } from 'ethereum-types';
|
import { ContractAbi } from 'ethereum-types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
import { ERC20TokenContract, ERC20TokenEventArgs, ERC20TokenEvents } from '@0xproject/abi-gen-wrappers';
|
import { ERC20TokenContract, ERC20TokenEventArgs, ERC20TokenEvents } from '@0x/abi-gen-wrappers';
|
||||||
import { ERC20Token } from '@0xproject/contract-artifacts';
|
import { ERC20Token } from '@0x/contract-artifacts';
|
||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { ContractAbi, LogWithDecodedArgs } from 'ethereum-types';
|
import { ContractAbi, LogWithDecodedArgs } from 'ethereum-types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import { ERC721ProxyContract } from '@0xproject/abi-gen-wrappers';
|
import { ERC721ProxyContract } from '@0x/abi-gen-wrappers';
|
||||||
import { ERC721Proxy } from '@0xproject/contract-artifacts';
|
import { ERC721Proxy } from '@0x/contract-artifacts';
|
||||||
import { AssetProxyId } from '@0xproject/types';
|
import { AssetProxyId } from '@0x/types';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { ContractAbi } from 'ethereum-types';
|
import { ContractAbi } from 'ethereum-types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
import { ERC721TokenContract, ERC721TokenEventArgs, ERC721TokenEvents } from '@0xproject/abi-gen-wrappers';
|
import { ERC721TokenContract, ERC721TokenEventArgs, ERC721TokenEvents } from '@0x/abi-gen-wrappers';
|
||||||
import { ERC721Token } from '@0xproject/contract-artifacts';
|
import { ERC721Token } from '@0x/contract-artifacts';
|
||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { ContractAbi, LogWithDecodedArgs } from 'ethereum-types';
|
import { ContractAbi, LogWithDecodedArgs } from 'ethereum-types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
import { WETH9Contract, WETH9EventArgs, WETH9Events } from '@0xproject/abi-gen-wrappers';
|
import { WETH9Contract, WETH9EventArgs, WETH9Events } from '@0x/abi-gen-wrappers';
|
||||||
import { WETH9 } from '@0xproject/contract-artifacts';
|
import { WETH9 } from '@0x/contract-artifacts';
|
||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import { Web3Wrapper } from '@0xproject/web3-wrapper';
|
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||||
import { ContractAbi, LogWithDecodedArgs } from 'ethereum-types';
|
import { ContractAbi, LogWithDecodedArgs } from 'ethereum-types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
@@ -1,15 +1,15 @@
|
|||||||
import { ExchangeContract, ExchangeEventArgs, ExchangeEvents } from '@0xproject/abi-gen-wrappers';
|
import { ExchangeContract, ExchangeEventArgs, ExchangeEvents } from '@0x/abi-gen-wrappers';
|
||||||
import { Exchange } from '@0xproject/contract-artifacts';
|
import { Exchange } from '@0x/contract-artifacts';
|
||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import {
|
import {
|
||||||
assetDataUtils,
|
assetDataUtils,
|
||||||
BalanceAndProxyAllowanceLazyStore,
|
BalanceAndProxyAllowanceLazyStore,
|
||||||
ExchangeTransferSimulator,
|
ExchangeTransferSimulator,
|
||||||
OrderValidationUtils,
|
OrderValidationUtils,
|
||||||
} from '@0xproject/order-utils';
|
} from '@0x/order-utils';
|
||||||
import { AssetProxyId, Order, SignedOrder } from '@0xproject/types';
|
import { AssetProxyId, Order, SignedOrder } 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 { BlockParamLiteral, ContractAbi, LogWithDecodedArgs } from 'ethereum-types';
|
import { BlockParamLiteral, ContractAbi, LogWithDecodedArgs } from 'ethereum-types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
import { ForwarderContract } from '@0xproject/abi-gen-wrappers';
|
import { ForwarderContract } from '@0x/abi-gen-wrappers';
|
||||||
import { Forwarder } from '@0xproject/contract-artifacts';
|
import { Forwarder } from '@0x/contract-artifacts';
|
||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import { AssetProxyId, SignedOrder } from '@0xproject/types';
|
import { AssetProxyId, SignedOrder } 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 { ContractAbi } from 'ethereum-types';
|
import { ContractAbi } from 'ethereum-types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
import { OrderValidatorContract } from '@0xproject/abi-gen-wrappers';
|
import { OrderValidatorContract } from '@0x/abi-gen-wrappers';
|
||||||
import { OrderValidator } from '@0xproject/contract-artifacts';
|
import { OrderValidator } from '@0x/contract-artifacts';
|
||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import { SignedOrder } from '@0xproject/types';
|
import { SignedOrder } 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 { ContractAbi } from 'ethereum-types';
|
import { ContractAbi } from 'ethereum-types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
// tslint:disable:no-unnecessary-type-assertion
|
// tslint:disable:no-unnecessary-type-assertion
|
||||||
import { AbstractBalanceAndProxyAllowanceFetcher, assetDataUtils } from '@0xproject/order-utils';
|
import { AbstractBalanceAndProxyAllowanceFetcher, assetDataUtils } from '@0x/order-utils';
|
||||||
import { AssetProxyId, ERC20AssetData, ERC721AssetData } from '@0xproject/types';
|
import { AssetProxyId, ERC20AssetData, ERC721AssetData } from '@0x/types';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import { BlockParamLiteral } from 'ethereum-types';
|
import { BlockParamLiteral } from 'ethereum-types';
|
||||||
|
|
||||||
import { ERC20TokenWrapper } from '../contract_wrappers/erc20_token_wrapper';
|
import { ERC20TokenWrapper } from '../contract_wrappers/erc20_token_wrapper';
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
// tslint:disable:no-unnecessary-type-assertion
|
// tslint:disable:no-unnecessary-type-assertion
|
||||||
import { AbstractOrderFilledCancelledFetcher } from '@0xproject/order-utils';
|
import { AbstractOrderFilledCancelledFetcher } from '@0x/order-utils';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
import { BlockParamLiteral } from 'ethereum-types';
|
import { BlockParamLiteral } from 'ethereum-types';
|
||||||
|
|
||||||
import { ExchangeWrapper } from '../contract_wrappers/exchange_wrapper';
|
import { ExchangeWrapper } from '../contract_wrappers/exchange_wrapper';
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
export { ContractAddresses } from '@0xproject/contract-addresses';
|
export { ContractAddresses } from '@0x/contract-addresses';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
WETH9Events,
|
WETH9Events,
|
||||||
@@ -23,7 +23,7 @@ export {
|
|||||||
ExchangeCancelEventArgs,
|
ExchangeCancelEventArgs,
|
||||||
ExchangeEventArgs,
|
ExchangeEventArgs,
|
||||||
ExchangeEvents,
|
ExchangeEvents,
|
||||||
} from '@0xproject/abi-gen-wrappers';
|
} from '@0x/abi-gen-wrappers';
|
||||||
|
|
||||||
export { ContractWrappers } from './contract_wrappers';
|
export { ContractWrappers } from './contract_wrappers';
|
||||||
export { ERC20TokenWrapper } from './contract_wrappers/erc20_token_wrapper';
|
export { ERC20TokenWrapper } from './contract_wrappers/erc20_token_wrapper';
|
||||||
@@ -55,7 +55,7 @@ export {
|
|||||||
ValidateOrderFillableOpts,
|
ValidateOrderFillableOpts,
|
||||||
} from './types';
|
} from './types';
|
||||||
|
|
||||||
export { Order, SignedOrder, AssetProxyId } from '@0xproject/types';
|
export { Order, SignedOrder, AssetProxyId } from '@0x/types';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
BlockParamLiteral,
|
BlockParamLiteral,
|
||||||
@@ -81,7 +81,7 @@ export {
|
|||||||
StateMutability,
|
StateMutability,
|
||||||
} from 'ethereum-types';
|
} from 'ethereum-types';
|
||||||
|
|
||||||
export { AbstractBalanceAndProxyAllowanceFetcher, AbstractOrderFilledCancelledFetcher } from '@0xproject/order-utils';
|
export { AbstractBalanceAndProxyAllowanceFetcher, AbstractOrderFilledCancelledFetcher } from '@0x/order-utils';
|
||||||
|
|
||||||
export { AssetBalanceAndProxyAllowanceFetcher } from './fetchers/asset_balance_and_proxy_allowance_fetcher';
|
export { AssetBalanceAndProxyAllowanceFetcher } from './fetchers/asset_balance_and_proxy_allowance_fetcher';
|
||||||
export { OrderFilledCancelledFetcher } from './fetchers/order_filled_cancelled_fetcher';
|
export { OrderFilledCancelledFetcher } from './fetchers/order_filled_cancelled_fetcher';
|
||||||
|
@@ -7,10 +7,10 @@ import {
|
|||||||
ExchangeEvents,
|
ExchangeEvents,
|
||||||
WETH9EventArgs,
|
WETH9EventArgs,
|
||||||
WETH9Events,
|
WETH9Events,
|
||||||
} from '@0xproject/abi-gen-wrappers';
|
} from '@0x/abi-gen-wrappers';
|
||||||
import { ContractAddresses } from '@0xproject/contract-addresses';
|
import { ContractAddresses } from '@0x/contract-addresses';
|
||||||
import { OrderState, SignedOrder } from '@0xproject/types';
|
import { OrderState, SignedOrder } from '@0x/types';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
import { BlockParam, ContractEventArg, DecodedLogArgs, LogEntryEvent, LogWithDecodedArgs } from 'ethereum-types';
|
import { BlockParam, ContractEventArg, DecodedLogArgs, LogEntryEvent, LogWithDecodedArgs } from 'ethereum-types';
|
||||||
|
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
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
|
||||||
import { Schema } from '@0xproject/json-schemas'; // tslint:disable-line:no-unused-variable
|
import { Schema } from '@0x/json-schemas'; // tslint:disable-line:no-unused-variable
|
||||||
import { assetDataUtils, signatureUtils } from '@0xproject/order-utils';
|
import { assetDataUtils, signatureUtils } from '@0x/order-utils';
|
||||||
import { Order } from '@0xproject/types'; // tslint:disable-line:no-unused-variable
|
import { Order } from '@0x/types'; // tslint:disable-line:no-unused-variable
|
||||||
import { BigNumber } from '@0xproject/utils'; // tslint:disable-line:no-unused-variable
|
import { BigNumber } from '@0x/utils'; // tslint:disable-line:no-unused-variable
|
||||||
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 { SignedOrder } from '@0xproject/types';
|
import { SignedOrder } from '@0x/types';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
import { constants } from './constants';
|
import { constants } from './constants';
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
export const constants = {
|
export const constants = {
|
||||||
NULL_ADDRESS: '0x0000000000000000000000000000000000000000',
|
NULL_ADDRESS: '0x0000000000000000000000000000000000000000',
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { ContractAddresses, getContractAddressesForNetworkOrThrow, NetworkId } from '@0xproject/contract-addresses';
|
import { ContractAddresses, getContractAddressesForNetworkOrThrow, NetworkId } from '@0x/contract-addresses';
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { ExchangeContractErrs } from '@0xproject/types';
|
import { ExchangeContractErrs } from '@0x/types';
|
||||||
import { BigNumber } from '@0xproject/utils';
|
import { BigNumber } from '@0x/utils';
|
||||||
|
|
||||||
import { AbstractBalanceAndProxyAllowanceLazyStore } from '../abstract/abstract_balance_and_proxy_allowance_lazy_store';
|
import { AbstractBalanceAndProxyAllowanceLazyStore } from '../abstract/abstract_balance_and_proxy_allowance_lazy_store';
|
||||||
import { TradeSide, TransferType } from '../types';
|
import { TradeSide, TransferType } from '../types';
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
import { ExchangeContract } from '@0xproject/abi-gen-wrappers';
|
import { ExchangeContract } from '@0x/abi-gen-wrappers';
|
||||||
|
|
||||||
import { schemas } from '@0xproject/json-schemas';
|
import { schemas } from '@0x/json-schemas';
|
||||||
import { eip712Utils } from '@0xproject/order-utils';
|
import { eip712Utils } from '@0x/order-utils';
|
||||||
import { Order, SignedOrder } from '@0xproject/types';
|
import { Order, SignedOrder } from '@0x/types';
|
||||||
import { BigNumber, signTypedDataUtils } from '@0xproject/utils';
|
import { BigNumber, signTypedDataUtils } from '@0x/utils';
|
||||||
import _ = require('lodash');
|
import _ = require('lodash');
|
||||||
|
|
||||||
import { assert } from './assert';
|
import { assert } from './assert';
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user