Compare commits

...

93 Commits

Author SHA1 Message Date
Leonid Logvinov
397496aff0 Publish
- 0x.js@6.0.3
 - @0x/abi-gen@2.0.6
 - @0x/abi-gen-wrappers@4.0.2
 - @0x/assert@2.0.6
 - @0x/asset-buyer@6.0.3
 - @0x/base-contract@5.0.2
 - @0x/connect@5.0.2
 - @0x/contract-wrappers@8.0.3
 - @0x/contracts-gen@1.0.5
 - @0x/dev-tools-pages@0.0.22
 - @0x/dev-utils@2.1.3
 - @0x/fill-scenarios@3.0.2
 - @0x/instant@1.0.17
 - @0x/json-schemas@3.0.6
 - @0x/metacoin@0.0.44
 - @0x/migrations@4.0.3
 - @0x/monorepo-scripts@1.0.27
 - @0x/order-utils@7.0.2
 - @0x/order-watcher@4.0.3
 - @0x/pipeline@1.0.14
 - @0x/react-docs@2.0.7
 - @0x/react-shared@2.0.7
 - @0x/sol-compiler@3.1.3
 - @0x/sol-coverage@3.0.0
 - @0x/sol-doc@2.0.7
 - @0x/sol-profiler@3.1.2
 - @0x/sol-trace@2.0.8
 - @0x/sol-tracing-utils@6.0.7
 - @0x/sra-spec@2.0.6
 - @0x/subproviders@4.0.2
 - @0x/testnet-faucets@1.0.73
 - @0x/utils@4.2.2
 - @0x/web3-wrapper@6.0.2
 - @0x/website@0.0.76
 - @0x/contracts-asset-proxy@1.0.9
 - @0x/contracts-erc20@1.0.9
 - @0x/contracts-erc721@1.0.9
 - @0x/contracts-exchange@1.0.9
 - @0x/contracts-exchange-forwarder@1.0.9
 - @0x/contracts-exchange-libs@1.1.3
 - @0x/contracts-extensions@2.0.8
 - @0x/contracts-multisig@2.0.8
 - @0x/contracts-tec@0.0.4
 - @0x/contracts-test-utils@3.0.8
 - @0x/contracts-utils@2.0.8
2019-03-01 14:34:26 -08:00
Leonid Logvinov
7458fe0d81 Updated CHANGELOGS 2019-03-01 14:34:15 -08:00
Leonid Logvinov
453c81f634 Merge pull request #1663 from 0xProject/fix/sol-profiler
Sol profiler improvements and bug fixes
2019-03-01 14:19:41 -08:00
Leonid Logvinov
eebce4b54d Fix linter errors 2019-03-01 13:59:56 -08:00
Fabio B
f7976e18f1 Update packages/sol-profiler/src/profiler_subprovider.ts
Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
2019-03-01 13:46:47 -08:00
Fabio B
d951fe9988 Update packages/sol-tracing-utils/CHANGELOG.json
Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
2019-03-01 13:46:42 -08:00
Fabio B
fd4da78075 Update packages/sol-profiler/src/profiler_subprovider.ts
Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
2019-03-01 13:46:35 -08:00
Fabio B
a025ae3f54 Update packages/sol-profiler/src/profiler_subprovider.ts
Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
2019-03-01 13:46:27 -08:00
Jacob Evans
a75ba0d903 Merge pull request #1662 from 0xProject/bug/move-contracts-test-utils
Move contracts-test-utils to dev dependencies
2019-03-01 10:35:59 -05:00
Alex Svanevik
99318ae2ba Merge pull request #1658 from 0xProject/fix/pipeline/edps-rate-limiting
Added bottleneck for EDPS to deal with rate-limiting
2019-03-01 18:11:18 +08:00
Leonid Logvinov
8369bcb605 Fix linter issues 2019-02-28 22:37:32 -08:00
askeluv
338cc69034 Removed logging 2019-03-01 14:33:19 +08:00
Leonid Logvinov
4526c52fe8 Add PR numbers 2019-02-28 20:23:24 -08:00
Leonid Logvinov
81f9bda502 Add CHANGELOG entries 2019-02-28 20:19:47 -08:00
Leonid Logvinov
46bc5463ca Change the way we access the stack in traces 2019-02-28 20:19:05 -08:00
Leonid Logvinov
bb346537ba Make sol-profiler faster 2019-02-28 20:18:44 -08:00
F. Eugene Aumson
3b5f0d5c30 Adapt to Bloxy API change (#1659)
* Adapt to Bloxy API change

We were using the `days` parameter, but that's no longer available in
the API, so our fetching of previous days (before "today") was broken.

This change gets rid of the concept of "days", and uses the API's new
`from_date` and `till_date` parameters to fetch previous days' trades.

The change to the query in `getLastSeenTimestampAsync()` was necessary
because it was returning a string (despite the `as Array<{ tx_timestamp:
number }>` cast), which was later causing problems trying to pass that
value into `new Date()`.  It worked before because we were doing some
math operations on it (multiplying it by some numbers), so coercion was
saving us.  With the change from a raw query to a `typeorm` call, the
`numberToBigIntTransformer` specified in the `DexTrade` entity is now
doing the proper type conversion for us.

The new `MAX_DAYS` constant in `pull_competing_dex_trades.ts` is
necessary in order to avoid trying to pull data all the way back to 1969
:D, which induces the API to return an HTTP 503.

* Increase trades per query to match current API doc

This is needed in order to be able to pull more than a handful of days
of data at a time (at least, with the script the way its currently
written).
2019-02-28 20:28:00 -05:00
Leonid Logvinov
808ce969d9 Fix a bug with OpCode gas costs being incorrect or NaN 2019-02-28 16:53:59 -08:00
Leonid Logvinov
16f8339f3c Add HEX_BASE to constants 2019-02-28 16:52:18 -08:00
Leonid Logvinov
25d68c3904 Add opCodeToGasCost and opCodeToParamToStackOffset to constants 2019-02-28 16:51:29 -08:00
Leonid Logvinov
77ad8e1a80 Fix a bug when TruffleArtifactAdapter wasn't correctly parsing solc config in the pre 5.0 version of trufle 2019-02-28 16:46:08 -08:00
Jacob Evans
9e8c18075a Move fill-scenarios to devDependecies 2019-02-28 17:48:40 -05:00
Jacob Evans
4278cdfd29 Add CHANGELOG 2019-02-28 17:32:08 -05:00
Jacob Evans
142c2bd0f0 Move contracts-test-utils to dev dependencies 2019-02-28 16:50:23 -05:00
Jacob Evans
13ee8686bb Merge pull request #1660 from 0xProject/bug/log-utils-process
Check for process in browser environments
2019-02-28 16:45:54 -05:00
Jacob Evans
5c06df2635 Update changelog PR 2019-02-28 15:43:07 -05:00
Jacob Evans
d69bf76341 Update CHANGELOG 2019-02-28 15:28:09 -05:00
Jacob Evans
d0d1b295b4 Check for process in browser environments 2019-02-28 15:26:07 -05:00
askeluv
e450191548 Added bottleneck to deal with rate-limiting 2019-02-28 13:08:09 +08:00
Francesco Agosti
3aee83f3d8 Merge pull request #1633 from 0xProject/feature/pipeline/concepts-schema-and-radar-depth-table
[pipeline] Add concepts schema and radar orderbook USD price concept
2019-02-27 20:40:00 -08:00
fragosti
3610a2bc8d Run linter 2019-02-27 20:23:10 -08:00
fragosti
ab559d4620 Include new test path in package.json 2019-02-27 20:11:48 -08:00
fragosti
15d308d4c5 Remove isCli method 2019-02-27 19:34:35 -08:00
Alex Svanevik
e7ea66afb5 Merge pull request #1629 from 0xProject/etherscan-exchange-transactions
Pull exchange contract transactions from Etherscan
2019-02-28 08:30:05 +08:00
David Sun
d9a1d8bde6 Merge pull request #1655 from 0xProject/feature/extensions-page-freds-jank-pr-mirror
Feature/extensions page freds jank pr mirror
2019-02-27 16:38:41 -05:00
Leonid Logvinov
9ac4486403 Merge pull request #1656 from 0xProject/fix/1635
Allow project specific coverage ignore paths by specifying `config.ignoreFilesGlobs`
2019-02-27 13:35:11 -08:00
David Sun
428afabaa3 disabling lint for prettier 2019-02-27 16:21:00 -05:00
Leonid Logvinov
9162189fa6 Add PR numbers 2019-02-27 13:09:30 -08:00
Leonid Logvinov
154ca9b760 Merge branch 'development' into fix/1635 2019-02-27 13:09:04 -08:00
Leonid Logvinov
9fcead3973 Fix the docs 2019-02-27 13:07:03 -08:00
Leonid Logvinov
2fd9d0359c Ignore node_modules, test and interfaces coverage in contracts 2019-02-27 13:06:54 -08:00
Leonid Logvinov
4cf9e030a2 Add ignoreFilesGlobs config option to sol-coverage 2019-02-27 13:06:30 -08:00
David Sun
5570d14179 fixed build issues 2019-02-27 16:05:48 -05:00
David Sun
fd3c546994 changed links 2019-02-27 15:54:09 -05:00
Leonid Logvinov
e81ae05df9 Publish
- 0x.js@6.0.2
 - @0x/asset-buyer@6.0.2
 - @0x/contract-wrappers@8.0.2
 - @0x/instant@1.0.16
 - @0x/metacoin@0.0.43
 - @0x/migrations@4.0.2
 - @0x/order-watcher@4.0.2
 - @0x/pipeline@1.0.13
 - @0x/sol-compiler@3.1.2
 - @0x/sol-coverage@2.0.6
 - @0x/sol-doc@2.0.6
 - @0x/sol-profiler@3.1.1
 - @0x/sol-trace@2.0.7
 - @0x/sol-tracing-utils@6.0.6
 - @0x/testnet-faucets@1.0.72
 - @0x/website@0.0.75
 - @0x/contracts-asset-proxy@1.0.8
 - @0x/contracts-erc20@1.0.8
 - @0x/contracts-erc721@1.0.8
 - @0x/contracts-exchange@1.0.8
 - @0x/contracts-exchange-forwarder@1.0.8
 - @0x/contracts-exchange-libs@1.1.2
 - @0x/contracts-extensions@2.0.7
 - @0x/contracts-multisig@2.0.7
 - @0x/contracts-tec@0.0.3
 - @0x/contracts-test-utils@3.0.7
 - @0x/contracts-utils@2.0.7
2019-02-27 12:45:19 -08:00
Leonid Logvinov
cb394f3a1c Updated CHANGELOGS 2019-02-27 12:45:09 -08:00
David Sun
03ed057ff6 fixed linting + prettier issues 2019-02-27 15:34:24 -05:00
Leonid Logvinov
807290ff38 Merge pull request #1654 from 0xProject/fix/truffle-config-parsing
Fix a bug when TruffleArtifactAdapter was incorrectly parsing the truffle config of the newest version
2019-02-27 12:29:05 -08:00
Leonid Logvinov
40a4b4fa7a Add an explanatory comment 2019-02-27 12:28:41 -08:00
Leonid Logvinov
b7d2ad3651 Merge pull request #1653 from 0xProject/fix/remove-redundant-log
Remove redundant logging from sol-compiler
2019-02-27 12:26:45 -08:00
David Sun
faac286f70 fixed links 2019-02-27 15:21:07 -05:00
David Sun
c6c7f6f907 added title for extensions 2019-02-27 15:01:59 -05:00
fragosti
ccd0da58cb fix build errors 2019-02-27 11:34:04 -08:00
Francesco Agosti
500e5f1b5d Merge pull request #1630 from bakkenbaeck/website-updates
[WIP] Extensions page and tweaks to website
2019-02-27 11:09:57 -08:00
Fred Carlsen
ebb6177271 Update link to whitelist filter 2019-02-27 10:49:41 +01:00
Fred Carlsen
951c256980 Remove redundant fragment 2019-02-27 10:47:59 +01:00
Fred Carlsen
a134ef03dd Update illustrations and copy 2019-02-27 10:45:39 +01:00
Leonid Logvinov
f21a9d16d0 Fix a bug when TruffleArtifactAdapter was incorrectly parsing the truffle config of the newest version 2019-02-26 16:16:44 -08:00
fragosti
42c3bb00ec move to using require.main === module 2019-02-26 16:05:20 -08:00
Leonid Logvinov
0d0fcfe49a Remove redundant logging from sol-compiler 2019-02-26 15:03:06 -08:00
Leonid Logvinov
3f0db92be6 Fix prettier 2019-02-26 14:50:34 -08:00
fragosti
eb212de70e run linter and add doc string 2019-02-26 14:05:18 -08:00
fragosti
8fbdef2a1d Make job look at last timestamp, fix tests 2019-02-26 13:52:18 -08:00
Fred Carlsen
e6594cecce Fix jumping part of animated hero logo 2019-02-26 12:41:09 +01:00
askeluv
85ed5d27f5 Bumped up timeout to 4 mins 2019-02-26 19:37:59 +08:00
askeluv
6ac9e11245 Linting 2019-02-26 11:46:21 +08:00
askeluv
9fbd809344 Improved testing - added fixtures 2019-02-26 11:42:53 +08:00
Fred Carlsen
cf65d4a909 Prettier fixes 2019-02-25 15:32:57 +01:00
Fred Carlsen
079f627b34 Fix linting issues 2019-02-25 15:29:24 +01:00
Fred Carlsen
f6c6cbc343 Constrain icon size to container 2019-02-25 15:22:48 +01:00
Fred Carlsen
c6cdea77b6 Fix website errors related to props/children 2019-02-25 15:22:35 +01:00
fragosti
3191de68b8 Fix typo in query 2019-02-22 16:13:48 -08:00
fragosti
f3da56773e Run prettier 2019-02-22 12:02:58 -08:00
fragosti
5197758579 Add missing file 2019-02-22 10:36:30 -08:00
Fred Carlsen
d48af7c4c2 Add icons 2019-02-22 13:42:17 +01:00
Fred Carlsen
bbafe0fc46 Add link to extensions in footer 2019-02-22 13:27:18 +01:00
Fred Carlsen
9a91f917e0 Tweak cards + add links 2019-02-22 13:03:30 +01:00
Fred Carlsen
1f681f02ae More cleanup 2019-02-22 11:23:55 +01:00
Fred Carlsen
778a86e7eb Fix linting issues 2019-02-22 11:18:04 +01:00
askeluv
6eb923d22f Throw error when API key is missing + use response in parser test 2019-02-22 11:21:33 +08:00
fragosti
e602afcd5f add documentation 2019-02-21 18:24:11 -08:00
askeluv
bf1115d417 Backfills automatically + prettier 2019-02-22 09:45:25 +08:00
fragosti
f5d668af31 Add radar_orderbook_usd_prices concept 2019-02-21 15:45:36 -08:00
fragosti
62373f969c Add concepts migrations 2019-02-21 12:51:27 -08:00
Fred Carlsen
30f2e3b606 Remove placeholder extensions 2019-02-21 13:49:35 +01:00
Fred Carlsen
7d3d997083 Merge remote-tracking branch 'upstream/development' into website-updates 2019-02-21 13:45:40 +01:00
Fred Carlsen
3955e2c84a Tweak padding 2019-02-21 13:43:47 +01:00
Fred Carlsen
6a6c41df26 Tweak extensions width 2019-02-21 13:42:03 +01:00
Fred Carlsen
1dfd2aec50 Tweak banner 2019-02-21 13:41:33 +01:00
askeluv
8885f543ae Pull exchange contract transactions from Etherscan 2019-02-21 20:37:55 +08:00
Fred Carlsen
8804e6c2ca Tweak banner 2019-02-21 11:17:01 +01:00
Fred Carlsen
88b7c214f7 Add extensions page 2019-02-21 11:16:52 +01:00
Fred Carlsen
9a7ccc20e8 Add new 404 page 2019-02-20 16:41:42 +01:00
189 changed files with 2410 additions and 566 deletions

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "1.0.9",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "1.0.8",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "1.0.7",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v1.0.9 - _March 1, 2019_
* Dependencies updated
## v1.0.8 - _February 27, 2019_
* Dependencies updated
## v1.0.7 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contracts-asset-proxy",
"version": "1.0.7",
"version": "1.0.9",
"engines": {
"node": ">=6.12"
},
@@ -46,11 +46,11 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/protocol/README.md",
"devDependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/contracts-gen": "^1.0.4",
"@0x/contracts-test-utils": "^3.0.6",
"@0x/dev-utils": "^2.1.2",
"@0x/sol-compiler": "^3.1.1",
"@0x/abi-gen": "^2.0.6",
"@0x/contracts-gen": "^1.0.5",
"@0x/contracts-test-utils": "^3.0.8",
"@0x/dev-utils": "^2.1.3",
"@0x/sol-compiler": "^3.1.3",
"@0x/tslint-config": "^3.0.0",
"@types/lodash": "4.14.104",
"@types/node": "*",
@@ -67,15 +67,15 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/base-contract": "^5.0.1",
"@0x/contracts-erc20": "^1.0.7",
"@0x/contracts-erc721": "^1.0.7",
"@0x/base-contract": "^5.0.2",
"@0x/contracts-erc20": "^1.0.9",
"@0x/contracts-erc721": "^1.0.9",
"@0x/contracts-utils": "2.0.1",
"@0x/order-utils": "^7.0.1",
"@0x/order-utils": "^7.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"lodash": "^4.17.11"
},

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "1.0.9",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "1.0.8",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "1.0.7",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v1.0.9 - _March 1, 2019_
* Dependencies updated
## v1.0.8 - _February 27, 2019_
* Dependencies updated
## v1.0.7 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contracts-erc20",
"version": "1.0.7",
"version": "1.0.9",
"engines": {
"node": ">=6.12"
},
@@ -46,11 +46,11 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/tokens/README.md",
"devDependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/contracts-gen": "^1.0.4",
"@0x/contracts-test-utils": "^3.0.6",
"@0x/dev-utils": "^2.1.2",
"@0x/sol-compiler": "^3.1.1",
"@0x/abi-gen": "^2.0.6",
"@0x/contracts-gen": "^1.0.5",
"@0x/contracts-test-utils": "^3.0.8",
"@0x/dev-utils": "^2.1.3",
"@0x/sol-compiler": "^3.1.3",
"@0x/tslint-config": "^3.0.0",
"@types/lodash": "4.14.104",
"@types/node": "*",
@@ -67,13 +67,13 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/base-contract": "^5.0.1",
"@0x/base-contract": "^5.0.2",
"@0x/contracts-exchange-libs": "1.0.2",
"@0x/contracts-utils": "2.0.1",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"lodash": "^4.17.11"
},

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "1.0.9",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "1.0.8",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "1.0.7",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v1.0.9 - _March 1, 2019_
* Dependencies updated
## v1.0.8 - _February 27, 2019_
* Dependencies updated
## v1.0.7 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contracts-erc721",
"version": "1.0.7",
"version": "1.0.9",
"engines": {
"node": ">=6.12"
},
@@ -46,11 +46,11 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/tokens/README.md",
"devDependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/contracts-gen": "^1.0.4",
"@0x/contracts-test-utils": "^3.0.6",
"@0x/dev-utils": "^2.1.2",
"@0x/sol-compiler": "^3.1.1",
"@0x/abi-gen": "^2.0.6",
"@0x/contracts-gen": "^1.0.5",
"@0x/contracts-test-utils": "^3.0.8",
"@0x/dev-utils": "^2.1.3",
"@0x/sol-compiler": "^3.1.3",
"@0x/tslint-config": "^3.0.0",
"@types/lodash": "4.14.104",
"@types/node": "*",
@@ -67,12 +67,12 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/base-contract": "^5.0.1",
"@0x/base-contract": "^5.0.2",
"@0x/contracts-utils": "2.0.1",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"lodash": "^4.17.11"
},

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "1.0.9",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "1.0.8",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "1.0.7",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v1.0.9 - _March 1, 2019_
* Dependencies updated
## v1.0.8 - _February 27, 2019_
* Dependencies updated
## v1.0.7 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contracts-exchange-forwarder",
"version": "1.0.7",
"version": "1.0.9",
"engines": {
"node": ">=6.12"
},
@@ -46,12 +46,12 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md",
"devDependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/contract-wrappers": "^8.0.1",
"@0x/contracts-gen": "^1.0.4",
"@0x/contracts-test-utils": "^3.0.6",
"@0x/dev-utils": "^2.1.2",
"@0x/sol-compiler": "^3.1.1",
"@0x/abi-gen": "^2.0.6",
"@0x/contract-wrappers": "^8.0.3",
"@0x/contracts-gen": "^1.0.5",
"@0x/contracts-test-utils": "^3.0.8",
"@0x/dev-utils": "^2.1.3",
"@0x/sol-compiler": "^3.1.3",
"@0x/tslint-config": "^3.0.0",
"@types/lodash": "4.14.104",
"@types/node": "*",
@@ -68,18 +68,18 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/base-contract": "^5.0.1",
"@0x/contracts-asset-proxy": "^1.0.7",
"@0x/contracts-erc20": "^1.0.7",
"@0x/contracts-erc721": "^1.0.7",
"@0x/base-contract": "^5.0.2",
"@0x/contracts-asset-proxy": "^1.0.9",
"@0x/contracts-erc20": "^1.0.9",
"@0x/contracts-erc721": "^1.0.9",
"@0x/contracts-exchange": "1.0.2",
"@0x/contracts-exchange-libs": "1.0.2",
"@0x/contracts-utils": "2.0.1",
"@0x/order-utils": "^7.0.1",
"@0x/order-utils": "^7.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"lodash": "^4.17.11"
},

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "1.1.3",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "1.1.2",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "1.1.1",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v1.1.3 - _March 1, 2019_
* Dependencies updated
## v1.1.2 - _February 27, 2019_
* Dependencies updated
## v1.1.1 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contracts-exchange-libs",
"version": "1.1.1",
"version": "1.1.3",
"engines": {
"node": ">=6.12"
},
@@ -46,11 +46,11 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/libs/README.md",
"devDependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/contracts-gen": "^1.0.4",
"@0x/contracts-test-utils": "^3.0.6",
"@0x/dev-utils": "^2.1.2",
"@0x/sol-compiler": "^3.1.1",
"@0x/abi-gen": "^2.0.6",
"@0x/contracts-gen": "^1.0.5",
"@0x/contracts-test-utils": "^3.0.8",
"@0x/dev-utils": "^2.1.3",
"@0x/sol-compiler": "^3.1.3",
"@0x/tslint-config": "^3.0.0",
"@types/lodash": "4.14.104",
"@types/node": "*",
@@ -67,13 +67,13 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/base-contract": "^5.0.1",
"@0x/contracts-utils": "^2.0.6",
"@0x/order-utils": "^7.0.1",
"@0x/base-contract": "^5.0.2",
"@0x/contracts-utils": "^2.0.8",
"@0x/order-utils": "^7.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"lodash": "^4.17.11"
},

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "1.0.9",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "1.0.8",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "1.0.7",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v1.0.9 - _March 1, 2019_
* Dependencies updated
## v1.0.8 - _February 27, 2019_
* Dependencies updated
## v1.0.7 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contracts-exchange",
"version": "1.0.7",
"version": "1.0.9",
"engines": {
"node": ">=6.12"
},
@@ -46,11 +46,11 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/protocol/README.md",
"devDependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/contracts-gen": "^1.0.4",
"@0x/contracts-test-utils": "^3.0.6",
"@0x/dev-utils": "^2.1.2",
"@0x/sol-compiler": "^3.1.1",
"@0x/abi-gen": "^2.0.6",
"@0x/contracts-gen": "^1.0.5",
"@0x/contracts-test-utils": "^3.0.8",
"@0x/dev-utils": "^2.1.3",
"@0x/sol-compiler": "^3.1.3",
"@0x/tslint-config": "^3.0.0",
"@types/lodash": "4.14.104",
"@types/node": "*",
@@ -67,17 +67,17 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/base-contract": "^5.0.1",
"@0x/contracts-asset-proxy": "^1.0.7",
"@0x/contracts-erc20": "^1.0.7",
"@0x/contracts-erc721": "^1.0.7",
"@0x/base-contract": "^5.0.2",
"@0x/contracts-asset-proxy": "^1.0.9",
"@0x/contracts-erc20": "^1.0.9",
"@0x/contracts-erc721": "^1.0.9",
"@0x/contracts-exchange-libs": "1.0.2",
"@0x/contracts-utils": "2.0.1",
"@0x/order-utils": "^7.0.1",
"@0x/order-utils": "^7.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"ethereumjs-util": "^5.1.1",
"lodash": "^4.17.11"

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "2.0.8",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "2.0.7",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "2.0.6",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v2.0.8 - _March 1, 2019_
* Dependencies updated
## v2.0.7 - _February 27, 2019_
* Dependencies updated
## v2.0.6 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contracts-extensions",
"version": "2.0.6",
"version": "2.0.8",
"engines": {
"node": ">=6.12"
},
@@ -46,12 +46,12 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md",
"devDependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/contract-wrappers": "^8.0.1",
"@0x/contracts-gen": "^1.0.4",
"@0x/contracts-test-utils": "^3.0.6",
"@0x/dev-utils": "^2.1.2",
"@0x/sol-compiler": "^3.1.1",
"@0x/abi-gen": "^2.0.6",
"@0x/contract-wrappers": "^8.0.3",
"@0x/contracts-gen": "^1.0.5",
"@0x/contracts-test-utils": "^3.0.8",
"@0x/dev-utils": "^2.1.3",
"@0x/sol-compiler": "^3.1.3",
"@0x/tslint-config": "^3.0.0",
"@types/lodash": "4.14.104",
"@types/node": "*",
@@ -68,18 +68,18 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/base-contract": "^5.0.1",
"@0x/contracts-asset-proxy": "^1.0.7",
"@0x/contracts-erc20": "^1.0.7",
"@0x/contracts-erc721": "^1.0.7",
"@0x/base-contract": "^5.0.2",
"@0x/contracts-asset-proxy": "^1.0.9",
"@0x/contracts-erc20": "^1.0.9",
"@0x/contracts-erc721": "^1.0.9",
"@0x/contracts-exchange": "1.0.2",
"@0x/contracts-exchange-libs": "1.0.2",
"@0x/contracts-utils": "2.0.1",
"@0x/order-utils": "^7.0.1",
"@0x/order-utils": "^7.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"lodash": "^4.17.11"
},

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "2.0.8",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "2.0.7",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "2.0.6",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v2.0.8 - _March 1, 2019_
* Dependencies updated
## v2.0.7 - _February 27, 2019_
* Dependencies updated
## v2.0.6 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contracts-multisig",
"version": "2.0.6",
"version": "2.0.8",
"engines": {
"node": ">=6.12"
},
@@ -46,11 +46,11 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/multisig/README.md",
"devDependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/contracts-gen": "^1.0.4",
"@0x/contracts-test-utils": "^3.0.6",
"@0x/dev-utils": "^2.1.2",
"@0x/sol-compiler": "^3.1.1",
"@0x/abi-gen": "^2.0.6",
"@0x/contracts-gen": "^1.0.5",
"@0x/contracts-test-utils": "^3.0.8",
"@0x/dev-utils": "^2.1.3",
"@0x/sol-compiler": "^3.1.3",
"@0x/tslint-config": "^3.0.0",
"@types/lodash": "4.14.104",
"@types/node": "*",
@@ -67,14 +67,14 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/base-contract": "^5.0.1",
"@0x/contracts-asset-proxy": "^1.0.7",
"@0x/contracts-erc20": "^1.0.7",
"@0x/base-contract": "^5.0.2",
"@0x/contracts-asset-proxy": "^1.0.9",
"@0x/contracts-erc20": "^1.0.9",
"@0x/contracts-utils": "2.0.1",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"lodash": "^4.17.11"
},

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "0.0.4",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "0.0.3",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "0.0.2",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v0.0.4 - _March 1, 2019_
* Dependencies updated
## v0.0.3 - _February 27, 2019_
* Dependencies updated
## v0.0.2 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contracts-tec",
"version": "0.0.2",
"version": "0.0.4",
"engines": {
"node": ">=6.12"
},
@@ -46,11 +46,11 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md",
"devDependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/contracts-gen": "^1.0.4",
"@0x/contracts-test-utils": "^3.0.6",
"@0x/dev-utils": "^2.1.2",
"@0x/sol-compiler": "^3.1.1",
"@0x/abi-gen": "^2.0.6",
"@0x/contracts-gen": "^1.0.5",
"@0x/contracts-test-utils": "^3.0.8",
"@0x/dev-utils": "^2.1.3",
"@0x/sol-compiler": "^3.1.3",
"@0x/tslint-config": "^3.0.0",
"@types/lodash": "4.14.104",
"@types/node": "*",
@@ -67,17 +67,17 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/base-contract": "^5.0.1",
"@0x/contracts-asset-proxy": "^1.0.7",
"@0x/contracts-erc20": "^1.0.7",
"@0x/base-contract": "^5.0.2",
"@0x/contracts-asset-proxy": "^1.0.9",
"@0x/contracts-erc20": "^1.0.9",
"@0x/contracts-exchange": "1.0.2",
"@0x/contracts-exchange-libs": "^1.1.1",
"@0x/contracts-utils": "^2.0.6",
"@0x/order-utils": "^7.0.1",
"@0x/contracts-exchange-libs": "^1.1.3",
"@0x/contracts-utils": "^2.0.8",
"@0x/order-utils": "^7.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"ethereumjs-util": "^5.1.1",
"lodash": "^4.17.11"

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "3.0.8",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "3.0.7",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "3.0.6",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v3.0.8 - _March 1, 2019_
* Dependencies updated
## v3.0.7 - _February 27, 2019_
* Dependencies updated
## v3.0.6 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contracts-test-utils",
"version": "3.0.6",
"version": "3.0.8",
"engines": {
"node": ">=6.12"
},
@@ -40,19 +40,19 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/dev-utils": "^2.1.2",
"@0x/order-utils": "^7.0.1",
"@0x/sol-compiler": "^3.1.1",
"@0x/sol-coverage": "^2.0.5",
"@0x/sol-profiler": "^3.1.0",
"@0x/sol-trace": "^2.0.6",
"@0x/subproviders": "^4.0.1",
"@0x/abi-gen": "^2.0.6",
"@0x/dev-utils": "^2.1.3",
"@0x/order-utils": "^7.0.2",
"@0x/sol-compiler": "^3.1.3",
"@0x/sol-coverage": "^3.0.0",
"@0x/sol-profiler": "^3.1.2",
"@0x/sol-trace": "^2.0.8",
"@0x/subproviders": "^4.0.2",
"@0x/tslint-config": "^3.0.0",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"@types/bn.js": "^4.11.0",
"@types/js-combinatorics": "^0.5.29",
"@types/lodash": "4.14.104",

View File

@@ -14,8 +14,15 @@ export const coverage = {
_getCoverageSubprovider(): CoverageSubprovider {
const defaultFromAddress = devConstants.TESTRPC_FIRST_ADDRESS;
const solCompilerArtifactAdapter = new SolCompilerArtifactAdapter();
const isVerbose = true;
const subprovider = new CoverageSubprovider(solCompilerArtifactAdapter, defaultFromAddress, isVerbose);
const coverageSubproviderConfig = {
isVerbose: true,
ignoreFilesGlobs: ['**/node_modules/**', '**/interfaces/**', '**/test/**'],
};
const subprovider = new CoverageSubprovider(
solCompilerArtifactAdapter,
defaultFromAddress,
coverageSubproviderConfig,
);
return subprovider;
},
};

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "2.0.8",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "2.0.7",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "2.0.6",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v2.0.8 - _March 1, 2019_
* Dependencies updated
## v2.0.7 - _February 27, 2019_
* Dependencies updated
## v2.0.6 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contracts-utils",
"version": "2.0.6",
"version": "2.0.8",
"engines": {
"node": ">=6.12"
},
@@ -46,11 +46,11 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/utils/README.md",
"devDependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/contracts-gen": "^1.0.4",
"@0x/contracts-test-utils": "^3.0.6",
"@0x/dev-utils": "^2.1.2",
"@0x/sol-compiler": "^3.1.1",
"@0x/abi-gen": "^2.0.6",
"@0x/contracts-gen": "^1.0.5",
"@0x/contracts-test-utils": "^3.0.8",
"@0x/dev-utils": "^2.1.3",
"@0x/sol-compiler": "^3.1.3",
"@0x/tslint-config": "^3.0.0",
"@types/bn.js": "^4.11.0",
"@types/lodash": "4.14.104",
@@ -68,12 +68,12 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/base-contract": "^5.0.1",
"@0x/order-utils": "^7.0.1",
"@0x/base-contract": "^5.0.2",
"@0x/order-utils": "^7.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"bn.js": "^4.11.8",
"ethereum-types": "^2.1.0",
"ethereumjs-util": "^5.1.1",

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "6.0.3",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "6.0.2",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "6.0.1",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v6.0.3 - _March 1, 2019_
* Dependencies updated
## v6.0.2 - _February 27, 2019_
* Dependencies updated
## v6.0.1 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "0x.js",
"version": "6.0.1",
"version": "6.0.3",
"engines": {
"node": ">=6.12"
},
@@ -42,10 +42,10 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@0x/abi-gen-wrappers": "^4.0.1",
"@0x/abi-gen-wrappers": "^4.0.2",
"@0x/contract-addresses": "^2.2.2",
"@0x/dev-utils": "^2.1.2",
"@0x/migrations": "^4.0.1",
"@0x/dev-utils": "^2.1.3",
"@0x/migrations": "^4.0.3",
"@0x/tslint-config": "^3.0.0",
"@types/lodash": "4.14.104",
"@types/mocha": "^2.2.42",
@@ -72,16 +72,16 @@
"webpack": "^4.20.2"
},
"dependencies": {
"@0x/assert": "^2.0.5",
"@0x/base-contract": "^5.0.1",
"@0x/contract-wrappers": "^8.0.1",
"@0x/order-utils": "^7.0.1",
"@0x/order-watcher": "^4.0.1",
"@0x/subproviders": "^4.0.1",
"@0x/assert": "^2.0.6",
"@0x/base-contract": "^5.0.2",
"@0x/contract-wrappers": "^8.0.3",
"@0x/order-utils": "^7.0.2",
"@0x/order-watcher": "^4.0.3",
"@0x/subproviders": "^4.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"@types/web3-provider-engine": "^14.0.0",
"ethereum-types": "^2.1.0",
"ethers": "~4.0.4",

View File

@@ -1,4 +1,13 @@
[
{
"timestamp": 1551479279,
"version": "4.0.2",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "4.0.1",

View File

@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v4.0.2 - _March 1, 2019_
* Dependencies updated
## v4.0.1 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/abi-gen-wrappers",
"version": "4.0.1",
"version": "4.0.2",
"engines": {
"node": ">=6.12"
},
@@ -30,19 +30,19 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/packages/abi-gen-wrappers/README.md",
"devDependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/abi-gen": "^2.0.6",
"@0x/abi-gen-templates": "^2.0.1",
"@0x/tslint-config": "^3.0.0",
"@0x/types": "^2.1.1",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"ethers": "~4.0.4",
"lodash": "^4.17.11",
"shx": "^0.2.2"
},
"dependencies": {
"@0x/base-contract": "^5.0.1"
"@0x/base-contract": "^5.0.2"
},
"publishConfig": {
"access": "public"

View File

@@ -1,4 +1,13 @@
[
{
"timestamp": 1551479279,
"version": "2.0.6",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "2.0.5",

View File

@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v2.0.6 - _March 1, 2019_
* Dependencies updated
## v2.0.5 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/abi-gen",
"version": "2.0.5",
"version": "2.0.6",
"engines": {
"node": ">=6.12"
},
@@ -32,7 +32,7 @@
"homepage": "https://github.com/0xProject/0x-monorepo/packages/abi-gen/README.md",
"dependencies": {
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/utils": "^4.2.2",
"chalk": "^2.3.0",
"ethereum-types": "^2.1.0",
"glob": "^7.1.2",

View File

@@ -1,4 +1,13 @@
[
{
"timestamp": 1551479279,
"version": "2.0.6",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "2.0.5",

View File

@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v2.0.6 - _March 1, 2019_
* Dependencies updated
## v2.0.5 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/assert",
"version": "2.0.5",
"version": "2.0.6",
"engines": {
"node": ">=6.12"
},
@@ -44,9 +44,9 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/json-schemas": "^3.0.5",
"@0x/json-schemas": "^3.0.6",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/utils": "^4.2.2",
"lodash": "^4.17.11",
"valid-url": "^1.0.9"
},

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "6.0.3",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "6.0.2",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "6.0.1",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v6.0.3 - _March 1, 2019_
* Dependencies updated
## v6.0.2 - _February 27, 2019_
* Dependencies updated
## v6.0.1 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/asset-buyer",
"version": "6.0.1",
"version": "6.0.3",
"engines": {
"node": ">=6.12"
},
@@ -36,16 +36,16 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/packages/asset-buyer/README.md",
"dependencies": {
"@0x/assert": "^2.0.5",
"@0x/connect": "^5.0.1",
"@0x/contract-wrappers": "^8.0.1",
"@0x/json-schemas": "^3.0.5",
"@0x/order-utils": "^7.0.1",
"@0x/subproviders": "^4.0.1",
"@0x/assert": "^2.0.6",
"@0x/connect": "^5.0.2",
"@0x/contract-wrappers": "^8.0.3",
"@0x/json-schemas": "^3.0.6",
"@0x/order-utils": "^7.0.2",
"@0x/subproviders": "^4.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"lodash": "^4.17.11"
},

View File

@@ -1,4 +1,13 @@
[
{
"timestamp": 1551479279,
"version": "5.0.2",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "5.0.1",

View File

@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v5.0.2 - _March 1, 2019_
* Dependencies updated
## v5.0.1 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/base-contract",
"version": "5.0.1",
"version": "5.0.2",
"engines": {
"node": ">=6.12"
},
@@ -41,8 +41,8 @@
},
"dependencies": {
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"ethers": "~4.0.4",
"lodash": "^4.17.11"

View File

@@ -1,4 +1,13 @@
[
{
"timestamp": 1551479279,
"version": "5.0.2",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "5.0.1",

View File

@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v5.0.2 - _March 1, 2019_
* Dependencies updated
## v5.0.1 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/connect",
"version": "5.0.1",
"version": "5.0.2",
"engines": {
"node": ">=6.12"
},
@@ -44,12 +44,12 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/packages/connect/README.md",
"dependencies": {
"@0x/assert": "^2.0.5",
"@0x/json-schemas": "^3.0.5",
"@0x/order-utils": "^7.0.1",
"@0x/assert": "^2.0.6",
"@0x/json-schemas": "^3.0.6",
"@0x/order-utils": "^7.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/utils": "^4.2.2",
"lodash": "^4.17.11",
"query-string": "^6.0.0",
"sinon": "^4.0.0",

View File

@@ -1,4 +1,23 @@
[
{
"version": "8.0.3",
"changes": [
{
"note": "Move contracts-test-utils and fill-scenarios to dev dependency",
"pr": 1657
}
],
"timestamp": 1551479279
},
{
"timestamp": 1551299797,
"version": "8.0.2",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "8.0.1",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v8.0.3 - _March 1, 2019_
* Move contracts-test-utils and fill-scenarios to dev dependency (#1657)
## v8.0.2 - _February 27, 2019_
* Dependencies updated
## v8.0.1 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contract-wrappers",
"version": "8.0.1",
"version": "8.0.3",
"description": "Smart TS wrappers for 0x smart contracts",
"keywords": [
"0xproject",
@@ -37,9 +37,11 @@
"node": ">=6.0.0"
},
"devDependencies": {
"@0x/dev-utils": "^2.1.2",
"@0x/migrations": "^4.0.1",
"@0x/subproviders": "^4.0.1",
"@0x/contracts-test-utils": "^3.0.8",
"@0x/dev-utils": "^2.1.3",
"@0x/fill-scenarios": "^3.0.2",
"@0x/migrations": "^4.0.3",
"@0x/subproviders": "^4.0.2",
"@0x/tslint-config": "^3.0.0",
"@types/lodash": "4.14.104",
"@types/mocha": "^2.2.42",
@@ -65,18 +67,16 @@
"web3-provider-engine": "14.0.6"
},
"dependencies": {
"@0x/abi-gen-wrappers": "^4.0.1",
"@0x/assert": "^2.0.5",
"@0x/abi-gen-wrappers": "^4.0.2",
"@0x/assert": "^2.0.6",
"@0x/contract-addresses": "^2.2.2",
"@0x/contract-artifacts": "^1.3.0",
"@0x/contracts-test-utils": "^3.0.6",
"@0x/fill-scenarios": "^3.0.1",
"@0x/json-schemas": "^3.0.5",
"@0x/order-utils": "^7.0.1",
"@0x/json-schemas": "^3.0.6",
"@0x/order-utils": "^7.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"ethereumjs-abi": "0.6.5",
"ethereumjs-blockstream": "6.0.0",

View File

@@ -1,4 +1,13 @@
[
{
"timestamp": 1551479279,
"version": "1.0.5",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "1.0.4",

View File

@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v1.0.5 - _March 1, 2019_
* Dependencies updated
## v1.0.4 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/contracts-gen",
"version": "1.0.4",
"version": "1.0.5",
"engines": {
"node": ">=6.12"
},
@@ -29,7 +29,7 @@
"@0x/sol-resolver": "^2.0.4",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/utils": "^4.2.2",
"ethereum-types": "^2.1.0",
"lodash": "^4.17.11",
"prettier": "^1.16.3",

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/dev-tools-pages",
"version": "0.0.21",
"version": "0.0.22",
"engines": {
"node": ">=6.12"
},
@@ -26,7 +26,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@0x/react-shared": "^2.0.6",
"@0x/react-shared": "^2.0.7",
"basscss": "^8.0.3",
"bowser": "^1.9.4",
"highlight.js": "^9.13.1",

View File

@@ -1,4 +1,13 @@
[
{
"timestamp": 1551479279,
"version": "2.1.3",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "2.1.2",

View File

@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v2.1.3 - _March 1, 2019_
* Dependencies updated
## v2.1.2 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/dev-utils",
"version": "2.1.2",
"version": "2.1.3",
"engines": {
"node": ">=6.12"
},
@@ -41,11 +41,11 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/subproviders": "^4.0.1",
"@0x/subproviders": "^4.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"@types/web3-provider-engine": "^14.0.0",
"chai": "^4.0.1",
"ethereum-types": "^2.1.0",

View File

@@ -1,4 +1,13 @@
[
{
"timestamp": 1551479279,
"version": "3.0.2",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "3.0.1",

View File

@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v3.0.2 - _March 1, 2019_
* Dependencies updated
## v3.0.1 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/fill-scenarios",
"version": "3.0.1",
"version": "3.0.2",
"description": "0x order fill scenario generator",
"main": "lib/index.js",
"types": "lib/index.d.ts",
@@ -28,14 +28,14 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/abi-gen-wrappers": "^4.0.1",
"@0x/base-contract": "^5.0.1",
"@0x/abi-gen-wrappers": "^4.0.2",
"@0x/base-contract": "^5.0.2",
"@0x/contract-artifacts": "^1.3.0",
"@0x/order-utils": "^7.0.1",
"@0x/order-utils": "^7.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"ethereum-types": "^2.1.0",
"ethers": "~4.0.4",
"lodash": "^4.17.11"

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/instant",
"version": "1.0.15",
"version": "1.0.17",
"engines": {
"node": ">=6.12"
},
@@ -42,15 +42,15 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/packages/instant/README.md",
"dependencies": {
"@0x/assert": "^2.0.5",
"@0x/asset-buyer": "^6.0.1",
"@0x/json-schemas": "^3.0.5",
"@0x/order-utils": "^7.0.1",
"@0x/subproviders": "^4.0.1",
"@0x/assert": "^2.0.6",
"@0x/asset-buyer": "^6.0.3",
"@0x/json-schemas": "^3.0.6",
"@0x/order-utils": "^7.0.2",
"@0x/subproviders": "^4.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"babel-runtime": "^6.26.0",
"bowser": "^1.9.4",
"copy-to-clipboard": "^3.0.8",

View File

@@ -1,4 +1,13 @@
[
{
"timestamp": 1551479279,
"version": "3.0.6",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "3.0.5",

View File

@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v3.0.6 - _March 1, 2019_
* Dependencies updated
## v3.0.5 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/json-schemas",
"version": "3.0.5",
"version": "3.0.6",
"engines": {
"node": ">=6.12"
},
@@ -46,7 +46,7 @@
},
"devDependencies": {
"@0x/tslint-config": "^3.0.0",
"@0x/utils": "^4.2.1",
"@0x/utils": "^4.2.2",
"@types/lodash.foreach": "^4.5.3",
"@types/lodash.values": "^4.3.3",
"@types/mocha": "^2.2.42",

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/metacoin",
"version": "0.0.42",
"version": "0.0.44",
"engines": {
"node": ">=6.12"
},
@@ -30,19 +30,18 @@
"author": "",
"license": "Apache-2.0",
"dependencies": {
"@0x/abi-gen": "^2.0.5",
"@0x/abi-gen": "^2.0.6",
"@0x/abi-gen-templates": "^2.0.1",
"@0x/base-contract": "^5.0.1",
"@0x/contracts-test-utils": "^3.0.6",
"@0x/sol-coverage": "^2.0.5",
"@0x/sol-profiler": "^3.1.0",
"@0x/sol-trace": "^2.0.6",
"@0x/subproviders": "^4.0.1",
"@0x/base-contract": "^5.0.2",
"@0x/sol-coverage": "^3.0.0",
"@0x/sol-profiler": "^3.1.2",
"@0x/sol-trace": "^2.0.8",
"@0x/subproviders": "^4.0.2",
"@0x/tslint-config": "^3.0.0",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"@types/mocha": "^2.2.42",
"copyfiles": "^2.0.0",
"ethereum-types": "^2.1.0",
@@ -51,8 +50,9 @@
"run-s": "^0.0.0"
},
"devDependencies": {
"@0x/dev-utils": "^2.1.2",
"@0x/sol-compiler": "^3.1.1",
"@0x/contracts-test-utils": "^3.0.8",
"@0x/dev-utils": "^2.1.3",
"@0x/sol-compiler": "^3.1.3",
"chai": "^4.0.1",
"chai-as-promised": "^7.1.0",
"chai-bignumber": "^3.0.0",

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "4.0.3",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "4.0.2",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "4.0.1",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v4.0.3 - _March 1, 2019_
* Dependencies updated
## v4.0.2 - _February 27, 2019_
* Dependencies updated
## v4.0.1 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/migrations",
"version": "4.0.1",
"version": "4.0.3",
"engines": {
"node": ">=6.12"
},
@@ -35,7 +35,7 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@0x/dev-utils": "^2.1.2",
"@0x/dev-utils": "^2.1.3",
"@0x/tslint-config": "^3.0.0",
"@0x/types": "^2.1.1",
"@types/yargs": "^11.0.0",
@@ -49,16 +49,16 @@
"yargs": "^10.0.3"
},
"dependencies": {
"@0x/abi-gen-wrappers": "^4.0.1",
"@0x/base-contract": "^5.0.1",
"@0x/abi-gen-wrappers": "^4.0.2",
"@0x/base-contract": "^5.0.2",
"@0x/contract-addresses": "^2.2.2",
"@0x/contract-artifacts": "^1.3.0",
"@0x/order-utils": "^7.0.1",
"@0x/sol-compiler": "^3.1.1",
"@0x/subproviders": "^4.0.1",
"@0x/order-utils": "^7.0.2",
"@0x/sol-compiler": "^3.1.3",
"@0x/subproviders": "^4.0.2",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"@ledgerhq/hw-app-eth": "^4.3.0",
"@types/web3-provider-engine": "^14.0.0",
"ethereum-types": "^2.1.0",

View File

@@ -1,7 +1,7 @@
{
"private": true,
"name": "@0x/monorepo-scripts",
"version": "1.0.26",
"version": "1.0.27",
"engines": {
"node": ">=6.12"
},
@@ -48,7 +48,7 @@
},
"dependencies": {
"@0x/types": "^2.1.1",
"@0x/utils": "^4.2.1",
"@0x/utils": "^4.2.2",
"@lerna/batch-packages": "^3.0.0-beta.18",
"@types/depcheck": "^0.6.0",
"async-child-process": "^1.1.1",

View File

@@ -1,4 +1,13 @@
[
{
"timestamp": 1551479279,
"version": "7.0.2",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "7.0.1",

View File

@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v7.0.2 - _March 1, 2019_
* Dependencies updated
## v7.0.1 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/order-utils",
"version": "7.0.1",
"version": "7.0.2",
"engines": {
"node": ">=6.12"
},
@@ -35,7 +35,7 @@
},
"homepage": "https://github.com/0xProject/0x-monorepo/packages/order-utils/README.md",
"devDependencies": {
"@0x/dev-utils": "^2.1.2",
"@0x/dev-utils": "^2.1.3",
"@0x/tslint-config": "^3.0.0",
"@types/bn.js": "^4.11.0",
"@types/lodash": "4.14.104",
@@ -55,16 +55,16 @@
"web3-provider-engine": "14.0.6"
},
"dependencies": {
"@0x/abi-gen-wrappers": "^4.0.1",
"@0x/assert": "^2.0.5",
"@0x/base-contract": "^5.0.1",
"@0x/abi-gen-wrappers": "^4.0.2",
"@0x/assert": "^2.0.6",
"@0x/base-contract": "^5.0.2",
"@0x/contract-addresses": "^2.2.2",
"@0x/contract-artifacts": "^1.3.0",
"@0x/json-schemas": "^3.0.5",
"@0x/json-schemas": "^3.0.6",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"@types/node": "*",
"bn.js": "^4.11.8",
"ethereum-types": "^2.1.0",

View File

@@ -1,4 +1,22 @@
[
{
"timestamp": 1551479279,
"version": "4.0.3",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551299797,
"version": "4.0.2",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1551220833,
"version": "4.0.1",

View File

@@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only.
CHANGELOG
## v4.0.3 - _March 1, 2019_
* Dependencies updated
## v4.0.2 - _February 27, 2019_
* Dependencies updated
## v4.0.1 - _February 26, 2019_
* Dependencies updated

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/order-watcher",
"version": "4.0.1",
"version": "4.0.3",
"description": "An order watcher daemon that watches for order validity",
"keywords": [
"0x",
@@ -38,9 +38,9 @@
"node": ">=6.0.0"
},
"devDependencies": {
"@0x/dev-utils": "^2.1.2",
"@0x/migrations": "^4.0.1",
"@0x/subproviders": "^4.0.1",
"@0x/dev-utils": "^2.1.3",
"@0x/migrations": "^4.0.3",
"@0x/subproviders": "^4.0.2",
"@0x/tslint-config": "^3.0.0",
"@types/bintrees": "^1.0.2",
"@types/lodash": "4.14.104",
@@ -63,19 +63,19 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/abi-gen-wrappers": "^4.0.1",
"@0x/assert": "^2.0.5",
"@0x/base-contract": "^5.0.1",
"@0x/abi-gen-wrappers": "^4.0.2",
"@0x/assert": "^2.0.6",
"@0x/base-contract": "^5.0.2",
"@0x/contract-addresses": "^2.2.2",
"@0x/contract-artifacts": "^1.3.0",
"@0x/contract-wrappers": "^8.0.1",
"@0x/fill-scenarios": "^3.0.1",
"@0x/json-schemas": "^3.0.5",
"@0x/order-utils": "^7.0.1",
"@0x/contract-wrappers": "^8.0.3",
"@0x/fill-scenarios": "^3.0.2",
"@0x/json-schemas": "^3.0.6",
"@0x/order-utils": "^7.0.2",
"@0x/types": "^2.1.1",
"@0x/typescript-typings": "^4.1.0",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"bintrees": "^1.0.2",
"ethereum-types": "^2.1.0",
"ethereumjs-blockstream": "6.0.0",

View File

@@ -0,0 +1,36 @@
import { MigrationInterface, QueryRunner, Table } from 'typeorm';
const table = new Table({
name: 'raw.etherscan_transactions',
columns: [
{ name: 'hash', type: 'varchar', isPrimary: true },
{ name: 'block_number', type: 'numeric', isNullable: false },
{ name: 'timestamp', type: 'numeric', isNullable: false },
{ name: 'block_hash', type: 'varchar', isNullable: false },
{ name: 'transaction_index', type: 'numeric', isNullable: false },
{ name: 'nonce', type: 'numeric', isNullable: false },
{ name: 'from', type: 'varchar', isNullable: false },
{ name: 'to', type: 'varchar', isNullable: false },
{ name: 'value', type: 'numeric', isNullable: false },
{ name: 'gas', type: 'numeric', isNullable: false },
{ name: 'gas_price', type: 'numeric', isNullable: false },
{ name: 'is_error', type: 'boolean', isNullable: false },
{ name: 'txreceipt_status', type: 'varchar', isNullable: true },
{ name: 'input', type: 'varchar', isNullable: false },
{ name: 'contract_address', type: 'varchar', isNullable: false },
{ name: 'cumulative_gas_used', type: 'numeric', isNullable: false },
{ name: 'gas_used', type: 'numeric', isNullable: false },
{ name: 'confirmations', type: 'numeric', isNullable: false },
],
});
export class CreateEtherscanTransactions1550749543417 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.createTable(table);
}
public async down(queryRunner: QueryRunner): Promise<any> {
await queryRunner.dropTable(table);
}
}

View File

@@ -0,0 +1,15 @@
import { MigrationInterface, QueryRunner } from 'typeorm';
export class AddConceptsSchema1550782075583 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.query(`
CREATE SCHEMA IF NOT EXISTS concepts;
`);
}
public async down(queryRunner: QueryRunner): Promise<any> {
await queryRunner.query(`
DROP SCHEMA IF EXISTS concepts;
`);
}
}

View File

@@ -0,0 +1,32 @@
import { MigrationInterface, QueryRunner, Table } from 'typeorm';
const table = new Table({
name: 'concepts.radar_orderbook_usd_prices',
columns: [
{ name: 'trade_usd_value', type: 'numeric' },
{ name: 'base_asset_price', type: 'numeric', isNullable: true },
{ name: 'quote_asset_price', type: 'numeric', isNullable: true },
{ name: 'observed_timestamp', type: 'bigint', isPrimary: true },
{ name: 'price', type: 'numeric', isPrimary: true },
{ name: 'base_asset_address', type: 'char(42)' },
{ name: 'base_asset_symbol', type: 'varchar', isPrimary: true },
{ name: 'base_volume', type: 'numeric' },
{ name: 'quote_asset_address', type: 'char(42)' },
{ name: 'quote_asset_symbol', type: 'varchar', isPrimary: true },
{ name: 'quote_volume', type: 'numeric' },
{ name: 'maker_address', type: 'char(42)', isPrimary: true },
{ name: 'order_type', type: 'order_t', isPrimary: true },
],
});
export class CreateRadarOrderbookUsdPrices1550881763949 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.createTable(table);
}
public async down(queryRunner: QueryRunner): Promise<any> {
await queryRunner.dropTable(table);
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@0x/pipeline",
"version": "1.0.12",
"version": "1.0.14",
"private": true,
"description": "Data pipeline for offline analysis",
"scripts": {
@@ -11,8 +11,8 @@
"test:db": "yarn run_mocha:db",
"test:all": "run-s test test:db",
"test:circleci": "yarn test:coverage",
"run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/!(entities)/**/*_test.js' --bail --exit",
"run_mocha:db": "mocha --require source-map-support/register --require make-promises-safe lib/test/db_global_hooks.js 'lib/test/entities/*_test.js' --bail --exit --timeout 60000",
"run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/!(entities|queries)/**/*_test.js' --bail --exit",
"run_mocha:db": "mocha --require source-map-support/register --require make-promises-safe lib/test/db_global_hooks.js 'lib/test/{entities,queries}/*_test.js' --bail --exit --timeout 60000",
"test:coverage": "nyc npm run test:all --all && yarn coverage:report:lcov",
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
"clean": "shx rm -rf lib",
@@ -39,16 +39,16 @@
"typescript": "3.0.1"
},
"dependencies": {
"@0x/connect": "^5.0.1",
"@0x/connect": "^5.0.2",
"@0x/contract-addresses": "^2.2.2",
"@0x/contract-artifacts": "^1.3.0",
"@0x/contract-wrappers": "^8.0.1",
"@0x/dev-utils": "^2.1.2",
"@0x/order-utils": "^7.0.1",
"@0x/subproviders": "^4.0.1",
"@0x/contract-wrappers": "^8.0.3",
"@0x/dev-utils": "^2.1.3",
"@0x/order-utils": "^7.0.2",
"@0x/subproviders": "^4.0.2",
"@0x/types": "^2.1.1",
"@0x/utils": "^4.2.1",
"@0x/web3-wrapper": "^6.0.1",
"@0x/utils": "^4.2.2",
"@0x/web3-wrapper": "^6.0.2",
"@radarrelay/types": "^1.2.1",
"@types/dockerode": "^2.5.9",
"@types/p-limit": "^2.0.0",

View File

@@ -6,23 +6,18 @@ import { logUtils } from '@0x/utils';
// URL to use for getting dex trades from Bloxy.
export const BLOXY_DEX_TRADES_URL = 'https://bloxy.info/api/dex/trades';
// Number of trades to get at once. Must be less than or equal to MAX_OFFSET.
const TRADES_PER_QUERY = 10000;
const TRADES_PER_QUERY = 100000;
// Maximum offset supported by the Bloxy API.
const MAX_OFFSET = 100000;
// Buffer to subtract from offset. This means we will request some trades twice
// but we have less chance on missing out on any data.
const OFFSET_BUFFER = 1000;
// Maximum number of days supported by the Bloxy API.
const MAX_DAYS = 30;
// Buffer used for comparing the last seen timestamp to the last returned
// timestamp. Increasing this reduces chances of data loss but also creates more
// redundancy and can impact performance.
// tslint:disable-next-line:custom-no-magic-numbers
const LAST_SEEN_TIMESTAMP_BUFFER_MS = 1000 * 60 * 30; // 30 minutes
// tslint:disable-next-line:custom-no-magic-numbers
const millisecondsPerDay = 1000 * 60 * 60 * 24; // ms/d = ms/s * s/m * m/h * h/d
export interface BloxyTrade {
tx_hash: string;
tx_time: string;
@@ -87,9 +82,6 @@ export class BloxySource {
private async _scrapeAllDexTradesAsync(lastSeenTimestamp: number): Promise<BloxyTrade[]> {
let allTrades: BloxyTrade[] = [];
// Clamp numberOfDays so that it is always between 1 and MAX_DAYS (inclusive)
const numberOfDays = R.clamp(1, MAX_DAYS, getDaysSinceTimestamp(lastSeenTimestamp));
// Keep getting trades until we hit one of the following conditions:
//
// 1. Offset hits MAX_OFFSET (we can't go back any further).
@@ -98,7 +90,7 @@ export class BloxySource {
// some buffer).
//
for (let offset = 0; offset <= MAX_OFFSET; offset += TRADES_PER_QUERY - OFFSET_BUFFER) {
const trades = await this._getTradesWithOffsetAsync(numberOfDays, offset);
const trades = await this._getTradesWithOffsetAsync(lastSeenTimestamp, offset);
if (trades.length === 0) {
// There are no more trades left for the days we are querying.
// This means we are done.
@@ -118,11 +110,12 @@ export class BloxySource {
return allTrades;
}
private async _getTradesWithOffsetAsync(numberOfDays: number, offset: number): Promise<BloxyTrade[]> {
private async _getTradesWithOffsetAsync(lastSeenTimestamp: number, offset: number): Promise<BloxyTrade[]> {
const resp = await axios.get<BloxyTradeResponse>(BLOXY_DEX_TRADES_URL, {
params: {
key: this._apiKey,
days: numberOfDays,
from_date: dateToISO8601ExtendedCalendarDateFormat(new Date(lastSeenTimestamp)),
till_date: dateToISO8601ExtendedCalendarDateFormat(new Date()),
limit: TRADES_PER_QUERY,
offset,
},
@@ -134,10 +127,8 @@ export class BloxySource {
}
}
// Computes the number of days between the given timestamp and the current
// timestamp (rounded up).
function getDaysSinceTimestamp(timestamp: number): number {
const msSinceTimestamp = Date.now() - timestamp;
const daysSinceTimestamp = msSinceTimestamp / millisecondsPerDay;
return Math.ceil(daysSinceTimestamp);
// Converts a Date object to the format like 'YYYY-MM-DD', which is expected by
// the Bloxy API for its from_date and till_date parameters.
function dateToISO8601ExtendedCalendarDateFormat(date: Date): string {
return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`;
}

View File

@@ -1,5 +1,7 @@
import { fetchAsync } from '@0x/utils';
import Bottleneck from 'bottleneck';
const ONE_SECOND = 1000;
const EDPS_BASE_URL = 'http://35.185.219.196:1337';
export type EdpsResponse = EdpsWrapper[];
@@ -21,12 +23,20 @@ export interface EdpsExchange {
// tslint:disable:prefer-function-over-method
// ^ Keep consistency with other sources and help logical organization
export class EdpsSource {
// rate-limit for all API calls through this class instance
private readonly _limiter: Bottleneck;
constructor(maxReqsPerSecond: number) {
this._limiter = new Bottleneck({
minTime: ONE_SECOND / maxReqsPerSecond,
});
}
/**
* Call Ethereum DEX Price Service API.
*/
public async getEdpsAsync(direction: string, symbol: string, amount: number): Promise<EdpsWrapper> {
const edpsUrl = `${EDPS_BASE_URL}/${direction}?amount=${amount}&symbol=${symbol}&decimals=`;
const resp = await fetchAsync(edpsUrl);
const resp = await this._limiter.schedule(() => fetchAsync(edpsUrl));
const respJson: EdpsResponse = await resp.json();
const allExchanges: EdpsWrapper = {};
// The below unwraps the response so we get 1 single EdpsWrapper object

View File

@@ -0,0 +1,50 @@
import { fetchAsync } from '@0x/utils';
const TIMEOUT = 240000;
export interface EtherscanResponse {
status: string;
message: string;
result: EtherscanTransactionResponse[];
}
export interface EtherscanTransactionResponse {
blockNumber: string;
timeStamp: string;
hash: string;
nonce: string;
blockHash: string;
transactionIndex: string;
from: string;
to: string;
value: string;
gas: string;
gasPrice: string;
isError: string;
txreceipt_status: string;
input: string;
contractAddress: string;
cumulativeGasUsed: string;
gasUsed: string;
confirmations: string;
}
// tslint:disable:prefer-function-over-method
// ^ Keep consistency with other sources and help logical organization
export class EtherscanSource {
public readonly _urlBase: string;
constructor(apiKey: string, startBlock: number, endBlock: number) {
this._urlBase = `http://api.etherscan.io/api?module=account&action=txlist&startblock=${startBlock}&endblock=${endBlock}&sort=asc&apikey=${apiKey}&address=`;
}
/**
* Call Etherscan API and return result.
*/
public async getEtherscanTransactionsForAddressAsync(address: string): Promise<EtherscanTransactionResponse[]> {
const urlWithAddress = this._urlBase + address;
const resp = await fetchAsync(urlWithAddress, {}, TIMEOUT);
const respJson: EtherscanResponse = await resp.json();
return respJson.result;
}
}

View File

@@ -0,0 +1,61 @@
import { BigNumber } from '@0x/utils';
import { Column, Entity, PrimaryColumn } from 'typeorm';
import { bigNumberTransformer, numberToBigIntTransformer } from '../utils';
@Entity({ name: 'etherscan_transactions', schema: 'raw' })
export class EtherscanTransaction {
@PrimaryColumn({ name: 'hash' })
public hash!: string;
@Column({ name: 'block_number', type: 'bigint', transformer: bigNumberTransformer })
public blockNumber!: BigNumber;
@Column({ name: 'timestamp', type: 'bigint', transformer: bigNumberTransformer })
public timeStamp!: BigNumber;
@Column({ name: 'block_hash' })
public blockHash!: string;
@Column({ name: 'transaction_index', transformer: numberToBigIntTransformer })
public transactionIndex!: number;
@Column({ name: 'nonce', transformer: numberToBigIntTransformer })
public nonce!: number;
@Column({ name: 'from' })
public from!: string;
@Column({ name: 'to' })
public to!: string;
@Column({ name: 'value', type: 'bigint', transformer: bigNumberTransformer })
public value!: BigNumber;
@Column({ name: 'gas', type: 'bigint', transformer: bigNumberTransformer })
public gas!: BigNumber;
@Column({ name: 'gas_price', type: 'bigint', transformer: bigNumberTransformer })
public gasPrice!: BigNumber;
@Column({ name: 'is_error', type: 'boolean', nullable: true })
public isError!: boolean;
@Column({ name: 'txreceipt_status' })
public txreceiptStatus?: string;
@Column({ name: 'input' })
public input!: string;
@Column({ name: 'contract_address' })
public contractAddress!: string;
@Column({ name: 'cumulative_gas_used', type: 'bigint', transformer: bigNumberTransformer })
public cumulativeGasUsed!: BigNumber;
@Column({ name: 'gas_used', type: 'bigint', transformer: bigNumberTransformer })
public gasUsed!: BigNumber;
@Column({ name: 'confirmations', type: 'bigint', transformer: bigNumberTransformer })
public confirmations!: BigNumber;
}

View File

@@ -4,6 +4,7 @@ import { ExchangeFillEvent } from './exchange_fill_event';
export { Block } from './block';
export { DexTrade } from './dex_trade';
export { EtherscanTransaction } from './etherscan_transaction';
export { ExchangeCancelEvent } from './exchange_cancel_event';
export { ExchangeCancelUpToEvent } from './exchange_cancel_up_to_event';
export { ExchangeFillEvent } from './exchange_fill_event';

View File

@@ -9,6 +9,7 @@ import {
CopperOpportunity,
DexTrade,
ERC20ApprovalEvent,
EtherscanTransaction,
ExchangeCancelEvent,
ExchangeCancelUpToEvent,
ExchangeFillEvent,
@@ -31,6 +32,7 @@ const entities = [
CopperCustomField,
CopperLead,
DexTrade,
EtherscanTransaction,
ExchangeCancelEvent,
ExchangeCancelUpToEvent,
ExchangeFillEvent,

View File

@@ -0,0 +1,42 @@
import { BigNumber } from '@0x/utils';
import * as R from 'ramda';
import { EtherscanTransactionResponse } from '../../data_sources/etherscan';
import { EtherscanTransaction } from '../../entities';
/**
* Parses an Etherscan response from the Etherscan API and returns an array of
* EtherscanTransaction entities.
* @param rawTrades A raw order response from an SRA endpoint.
*/
export function parseEtherscanTransactions(rawTransactions: EtherscanTransactionResponse[]): EtherscanTransaction[] {
return R.map(_parseEtherscanTransaction, rawTransactions);
}
/**
* Converts a single Etherscan transction into an EtherscanTransaction entity.
* @param rawTx A single Etherscan transaction from the Etherscan API.
*/
export function _parseEtherscanTransaction(rawTx: EtherscanTransactionResponse): EtherscanTransaction {
const parsedTx = new EtherscanTransaction();
parsedTx.blockNumber = new BigNumber(rawTx.blockNumber);
parsedTx.timeStamp = new BigNumber(rawTx.timeStamp);
parsedTx.hash = rawTx.hash;
parsedTx.blockHash = rawTx.blockHash;
parsedTx.transactionIndex = Number(rawTx.transactionIndex);
parsedTx.nonce = Number(rawTx.nonce);
parsedTx.from = rawTx.from;
parsedTx.to = rawTx.to;
parsedTx.value = new BigNumber(rawTx.value);
parsedTx.gas = new BigNumber(rawTx.gas);
parsedTx.gasPrice = new BigNumber(rawTx.gasPrice);
parsedTx.isError = rawTx.isError === '0' ? false : true;
parsedTx.txreceiptStatus = rawTx.txreceipt_status;
parsedTx.input = rawTx.input;
parsedTx.contractAddress = rawTx.contractAddress;
parsedTx.cumulativeGasUsed = new BigNumber(rawTx.cumulativeGasUsed);
parsedTx.gasUsed = new BigNumber(rawTx.gasUsed);
parsedTx.confirmations = new BigNumber(rawTx.confirmations);
return parsedTx;
}

View File

@@ -0,0 +1,58 @@
import { logUtils } from '@0x/utils';
import { Connection } from 'typeorm';
/**
* Join raw radar orderbook data with USD data.
* Radar is the only relayer for which we have maker_address data for.
* We join on pricing data twice, once to get the price of the quote asset if available,
* and once to get the price of the base asset if available.
* This query filters out rows that have both those fields null,
* ie. it filters out rows it was not able to find a USD price for.
* @param connection database connection
* @param fromTimestampMs the timestamp to create the table from in ms
*/
export async function updateRadarOrderbookUsdPricesAsync(
connection: Connection,
fromTimestampMs: number,
): Promise<void> {
logUtils.log(`Updating concepts.radar_orderbook_usd_prices starting from ${fromTimestampMs}`);
await connection.query(
`
insert into concepts.radar_orderbook_usd_prices
with usd_prices as (
select * from raw.ohlcv_external
where to_symbol = 'USD' and end_time > ${fromTimestampMs}
), radar_orderbook as (
select * from raw.token_orderbook_snapshots
where source = 'radar' and observed_timestamp > ${fromTimestampMs}
)
select
    case
when (usd_prices2.close is not null) then usd_prices2.close * radar_orderbook.base_volume
when (usd_prices1.close is not null) then usd_prices1.close * radar_orderbook.quote_volume
end as trade_usd_value,
usd_prices2.close as base_asset_price,
    usd_prices1.close as quote_asset_price,
    radar_orderbook.observed_timestamp,
    radar_orderbook.price,
    radar_orderbook.base_asset_address,
    radar_orderbook.base_asset_symbol,
    radar_orderbook.base_volume,
    radar_orderbook.quote_asset_address,
    radar_orderbook.quote_asset_symbol,
    radar_orderbook.quote_volume,
radar_orderbook.maker_address,
radar_orderbook.order_type
from radar_orderbook
left join usd_prices usd_prices1 on radar_orderbook.observed_timestamp between usd_prices1.start_time and usd_prices1.end_time
and (usd_prices1.from_symbol = radar_orderbook.quote_asset_symbol or (usd_prices1.from_symbol = 'ETH' and (radar_orderbook.quote_asset_symbol = 'WETH' or radar_orderbook.quote_asset_symbol = 'Veil ETH')))
left join usd_prices usd_prices2 on radar_orderbook.observed_timestamp between usd_prices2.start_time and usd_prices2.end_time
and (
not (usd_prices2.from_symbol = radar_orderbook.quote_asset_symbol or (usd_prices2.from_symbol = 'ETH' and (radar_orderbook.quote_asset_symbol = 'WETH' or radar_orderbook.quote_asset_symbol = 'Veil ETH')))
and (usd_prices2.from_symbol = radar_orderbook.base_asset_symbol or (usd_prices2.from_symbol = 'ETH' and (radar_orderbook.base_asset_symbol = 'WETH' or radar_orderbook.quote_asset_symbol = 'Veil ETH')))
)
where usd_prices2.close is not null or usd_prices1.close is not null
`.replace(/\s/g, ' '),
);
logUtils.log('Done updating radar_orderbook_usd_prices');
}

View File

@@ -12,6 +12,11 @@ import { handleError } from '../utils';
// Number of trades to save at once.
const BATCH_SAVE_SIZE = 1000;
// maximum number of days into the past for which trades will be pulled. this
// is arbitrary and can be tweaked, but deep history takes a significant amount
// of time to pull.
const MAX_DAYS = 30;
let connection: Connection;
(async () => {
@@ -39,14 +44,29 @@ async function getAndSaveTradesAsync(): Promise<void> {
}
async function getLastSeenTimestampAsync(tradesRepository: Repository<DexTrade>): Promise<number> {
const hoursPerDay = 24;
const minutesPerHour = 60;
const secondsPerMinute = 60;
const millisecondsPerSecond = 1000;
const millisecondsPerDay = millisecondsPerSecond * secondsPerMinute * minutesPerHour * hoursPerDay;
const oldestTimestampWilling = Date.now() - MAX_DAYS * millisecondsPerDay;
if ((await tradesRepository.count()) === 0) {
return 0;
return oldestTimestampWilling;
}
const response = (await connection.query(
'SELECT tx_timestamp FROM raw.dex_trades ORDER BY tx_timestamp DESC LIMIT 1',
)) as Array<{ tx_timestamp: number }>;
if (response.length === 0) {
return 0;
const lastTrade: DexTrade | undefined = await tradesRepository.manager
.createQueryBuilder()
.select('trade')
.from(DexTrade, 'trade')
.orderBy('tx_timestamp', 'DESC')
.limit(1)
.getOne();
if (lastTrade === undefined) {
return oldestTimestampWilling;
}
return response[0].tx_timestamp;
return lastTrade.txTimestamp;
}

View File

@@ -0,0 +1,66 @@
import { Connection, ConnectionOptions, createConnection, Repository } from 'typeorm';
import { getContractAddressesForNetworkOrThrow, NetworkId } from '@0x/contract-addresses';
import { web3Factory } from '@0x/dev-utils';
import { Web3ProviderEngine } from '@0x/subproviders';
import { logUtils } from '@0x/utils';
import { Web3Wrapper } from '@0x/web3-wrapper';
import { EtherscanSource } from '../data_sources/etherscan';
import { EtherscanTransaction } from '../entities';
import * as ormConfig from '../ormconfig';
import { parseEtherscanTransactions } from '../parsers/etherscan';
import { EXCHANGE_START_BLOCK, handleError, INFURA_ROOT_URL } from '../utils';
const BATCH_SAVE_SIZE = 1000; // Number of orders to save at once.
const START_BLOCK_OFFSET = 100; // Number of blocks before the last known block to consider when updating fill events.
const BLOCK_FINALITY_THRESHOLD = 10; // When to consider blocks as final. Used to compute default endBlock.
let connection: Connection;
(async () => {
const apiKey = process.env.ETHERSCAN_API_KEY;
if (apiKey === undefined) {
throw new Error('Missing required env var: ETHERSCAN_API_KEY');
}
connection = await createConnection(ormConfig as ConnectionOptions);
const provider = web3Factory.getRpcProvider({
rpcUrl: INFURA_ROOT_URL,
});
const EtherscanTransactionRepository = connection.getRepository(EtherscanTransaction);
const startBlock = await getStartBlockAsync(EtherscanTransactionRepository);
logUtils.log(`Start block: ${startBlock}`);
const endBlock = await calculateEndBlockAsync(provider);
logUtils.log(`End block: ${endBlock}`);
const etherscanSource = new EtherscanSource(apiKey, startBlock, endBlock);
const exchangeContractAddress = getContractAddressesForNetworkOrThrow(NetworkId.Mainnet).exchange;
logUtils.log('Fetching exchange transactions from Etherscan...');
const rawTransactions = await etherscanSource.getEtherscanTransactionsForAddressAsync(exchangeContractAddress);
const transactions = parseEtherscanTransactions(rawTransactions);
logUtils.log(`Saving ${transactions.length} records to database`);
await EtherscanTransactionRepository.save(transactions, {
chunk: Math.ceil(transactions.length / BATCH_SAVE_SIZE),
});
logUtils.log('Done');
process.exit(0);
})().catch(handleError);
async function getStartBlockAsync<T>(repository: Repository<T>): Promise<number> {
const transactionsCount = await repository.count();
if (transactionsCount === 0) {
logUtils.log(`No existing ${repository.metadata.name}s found.`);
return EXCHANGE_START_BLOCK;
}
const tableName = repository.metadata.tableName;
const queryResult = await connection.query(
`SELECT block_number FROM raw.${tableName} ORDER BY block_number DESC LIMIT 1`,
);
const lastKnownBlock = queryResult[0].block_number;
return lastKnownBlock - START_BLOCK_OFFSET;
}
async function calculateEndBlockAsync(provider: Web3ProviderEngine): Promise<number> {
const web3Wrapper = new Web3Wrapper(provider);
const currentBlock = await web3Wrapper.getBlockNumberAsync();
return currentBlock - BLOCK_FINALITY_THRESHOLD;
}

View File

@@ -12,6 +12,9 @@ import { handleError } from '../utils';
// Number of orders to save at once.
const BATCH_SAVE_SIZE = 1000;
// Max requests to make to API per second;
const EDPS_MAX_REQUESTS_PER_SECOND = 1;
// Maximum requests per second to CryptoCompare
const CRYPTO_COMPARE_MAX_REQS_PER_SECOND = 60;
@@ -26,7 +29,7 @@ let connection: Connection;
(async () => {
connection = await createConnection(ormConfig as ConnectionOptions);
const edpsSource = new EdpsSource();
const edpsSource = new EdpsSource(EDPS_MAX_REQUESTS_PER_SECOND);
const cryptoCompareSource = new CryptoCompareOHLCVSource(CRYPTO_COMPARE_MAX_REQS_PER_SECOND);
logUtils.log('Fetching slippage records');

View File

@@ -0,0 +1,24 @@
import { Connection, ConnectionOptions, createConnection } from 'typeorm';
import * as ormConfig from '../ormconfig';
import { updateRadarOrderbookUsdPricesAsync } from '../queries/update_radar_orderbook_usd_prices';
import { handleError } from '../utils';
(async () => {
const currentDate = new Date();
const oneMonthAgoTimestampMs = currentDate.setMonth(currentDate.getMonth() - 1);
const connection = await createConnection(ormConfig as ConnectionOptions);
const fromTimestampMs = (await getLastSeenTimestampAsync(connection)) || oneMonthAgoTimestampMs;
await updateRadarOrderbookUsdPricesAsync(connection, fromTimestampMs);
process.exit(0);
})().catch(handleError);
async function getLastSeenTimestampAsync(connection: Connection): Promise<number | undefined> {
const response = (await connection.query(
'SELECT observed_timestamp FROM concepts.radar_orderbook_usd_prices ORDER BY observed_timestamp DESC LIMIT 1',
)) as Array<{ observed_timestamp: number }>;
if (response.length === 0) {
return;
}
return response[0].observed_timestamp;
}

Some files were not shown because too many files have changed in this diff Show More