Compare commits
10 Commits
@0x/contra
...
@0x/metaco
Author | SHA1 | Date | |
---|---|---|---|
|
2d3fe02cd7 | ||
|
7d61cb6bac | ||
|
a804433a7a | ||
|
11082320c2 | ||
|
9f9797b123 | ||
|
05d34616b7 | ||
|
c7f474ada1 | ||
|
b4b34e4890 | ||
|
eec016380d | ||
|
dcab272be0 |
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "2.1.4",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1557799313,
|
||||
"version": "2.1.3",
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v2.1.4 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v2.1.3 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contracts-asset-proxy",
|
||||
"version": "2.1.3",
|
||||
"version": "2.1.4",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -49,7 +49,7 @@
|
||||
"devDependencies": {
|
||||
"@0x/abi-gen": "^2.0.10",
|
||||
"@0x/contracts-gen": "^1.0.9",
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
@@ -69,11 +69,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contracts-erc1155": "^1.1.4",
|
||||
"@0x/contracts-erc20": "^2.2.3",
|
||||
"@0x/contracts-erc721": "^2.1.4",
|
||||
"@0x/contracts-utils": "^3.1.4",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/contracts-erc1155": "^1.1.5",
|
||||
"@0x/contracts-erc20": "^2.2.4",
|
||||
"@0x/contracts-erc721": "^2.1.5",
|
||||
"@0x/contracts-utils": "^3.1.5",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "2.0.3",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1557799313,
|
||||
"version": "2.0.2",
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v2.0.3 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v2.0.2 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contracts-coordinator",
|
||||
"version": "2.0.2",
|
||||
"version": "2.0.3",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -49,7 +49,7 @@
|
||||
"devDependencies": {
|
||||
"@0x/abi-gen": "^2.0.10",
|
||||
"@0x/contracts-gen": "^1.0.9",
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
@@ -69,12 +69,12 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contracts-asset-proxy": "^2.1.3",
|
||||
"@0x/contracts-erc20": "^2.2.3",
|
||||
"@0x/contracts-asset-proxy": "^2.1.4",
|
||||
"@0x/contracts-erc20": "^2.2.4",
|
||||
"@0x/contracts-exchange": "1.0.2",
|
||||
"@0x/contracts-exchange-libs": "^2.1.4",
|
||||
"@0x/contracts-utils": "^3.1.4",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/contracts-exchange-libs": "^2.1.5",
|
||||
"@0x/contracts-utils": "^3.1.5",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "1.1.5",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "1.1.4",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v1.1.5 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v1.1.4 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contracts-erc1155",
|
||||
"version": "1.1.4",
|
||||
"version": "1.1.5",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -68,8 +68,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-utils": "^3.1.4",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/contracts-utils": "^3.1.5",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "2.2.4",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "2.2.3",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v2.2.4 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v2.2.3 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contracts-erc20",
|
||||
"version": "2.2.3",
|
||||
"version": "2.2.4",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -49,7 +49,7 @@
|
||||
"devDependencies": {
|
||||
"@0x/abi-gen": "^2.0.10",
|
||||
"@0x/contracts-gen": "^1.0.9",
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
@@ -69,8 +69,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contracts-exchange-libs": "^2.1.4",
|
||||
"@0x/contracts-utils": "^3.1.4",
|
||||
"@0x/contracts-exchange-libs": "^2.1.5",
|
||||
"@0x/contracts-utils": "^3.1.5",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "2.1.5",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "2.1.4",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v2.1.5 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v2.1.4 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contracts-erc721",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -49,7 +49,7 @@
|
||||
"devDependencies": {
|
||||
"@0x/abi-gen": "^2.0.10",
|
||||
"@0x/contracts-gen": "^1.0.9",
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
@@ -69,7 +69,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contracts-utils": "^3.1.4",
|
||||
"@0x/contracts-utils": "^3.1.5",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "3.0.2",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1557799313,
|
||||
"version": "3.0.1",
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v3.0.2 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v3.0.1 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contracts-exchange-forwarder",
|
||||
"version": "3.0.1",
|
||||
"version": "3.0.2",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -47,9 +47,9 @@
|
||||
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md",
|
||||
"devDependencies": {
|
||||
"@0x/abi-gen": "^2.0.10",
|
||||
"@0x/contract-wrappers": "^9.1.2",
|
||||
"@0x/contract-wrappers": "^9.1.3",
|
||||
"@0x/contracts-gen": "^1.0.9",
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
@@ -69,13 +69,13 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contracts-asset-proxy": "^2.1.3",
|
||||
"@0x/contracts-erc20": "^2.2.3",
|
||||
"@0x/contracts-erc721": "^2.1.4",
|
||||
"@0x/contracts-exchange": "^2.1.3",
|
||||
"@0x/contracts-exchange-libs": "^2.1.4",
|
||||
"@0x/contracts-utils": "^3.1.4",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/contracts-asset-proxy": "^2.1.4",
|
||||
"@0x/contracts-erc20": "^2.2.4",
|
||||
"@0x/contracts-erc721": "^2.1.5",
|
||||
"@0x/contracts-exchange": "^2.1.4",
|
||||
"@0x/contracts-exchange-libs": "^2.1.5",
|
||||
"@0x/contracts-utils": "^3.1.5",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.1",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "2.1.5",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "2.1.4",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v2.1.5 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v2.1.4 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contracts-exchange-libs",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -49,7 +49,7 @@
|
||||
"devDependencies": {
|
||||
"@0x/abi-gen": "^2.0.10",
|
||||
"@0x/contracts-gen": "^1.0.9",
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
@@ -69,8 +69,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contracts-utils": "^3.1.4",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/contracts-utils": "^3.1.5",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "2.1.4",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1557799313,
|
||||
"version": "2.1.3",
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v2.1.4 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v2.1.3 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contracts-exchange",
|
||||
"version": "2.1.3",
|
||||
"version": "2.1.4",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -49,7 +49,7 @@
|
||||
"devDependencies": {
|
||||
"@0x/abi-gen": "^2.0.10",
|
||||
"@0x/contracts-gen": "^1.0.9",
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
@@ -69,13 +69,13 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contracts-asset-proxy": "^2.1.3",
|
||||
"@0x/contracts-erc1155": "^1.1.4",
|
||||
"@0x/contracts-erc20": "^2.2.3",
|
||||
"@0x/contracts-erc721": "^2.1.4",
|
||||
"@0x/contracts-exchange-libs": "^2.1.4",
|
||||
"@0x/contracts-utils": "^3.1.4",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/contracts-asset-proxy": "^2.1.4",
|
||||
"@0x/contracts-erc1155": "^1.1.5",
|
||||
"@0x/contracts-erc20": "^2.2.4",
|
||||
"@0x/contracts-erc721": "^2.1.5",
|
||||
"@0x/contracts-exchange-libs": "^2.1.5",
|
||||
"@0x/contracts-utils": "^3.1.5",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "3.1.4",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1557799313,
|
||||
"version": "3.1.3",
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v3.1.4 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v3.1.3 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contracts-extensions",
|
||||
"version": "3.1.3",
|
||||
"version": "3.1.4",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -48,9 +48,9 @@
|
||||
"homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md",
|
||||
"devDependencies": {
|
||||
"@0x/abi-gen": "^2.0.10",
|
||||
"@0x/contract-wrappers": "^9.1.2",
|
||||
"@0x/contract-wrappers": "^9.1.3",
|
||||
"@0x/contracts-gen": "^1.0.9",
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
@@ -70,13 +70,13 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contracts-asset-proxy": "^2.1.3",
|
||||
"@0x/contracts-erc20": "^2.2.3",
|
||||
"@0x/contracts-erc721": "^2.1.4",
|
||||
"@0x/contracts-exchange": "^2.1.3",
|
||||
"@0x/contracts-exchange-libs": "^2.1.4",
|
||||
"@0x/contracts-utils": "^3.1.4",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/contracts-asset-proxy": "^2.1.4",
|
||||
"@0x/contracts-erc20": "^2.2.4",
|
||||
"@0x/contracts-erc721": "^2.1.5",
|
||||
"@0x/contracts-exchange": "^2.1.4",
|
||||
"@0x/contracts-exchange-libs": "^2.1.5",
|
||||
"@0x/contracts-utils": "^3.1.5",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "3.1.4",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1557799313,
|
||||
"version": "3.1.3",
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v3.1.4 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v3.1.3 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contracts-multisig",
|
||||
"version": "3.1.3",
|
||||
"version": "3.1.4",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -49,7 +49,7 @@
|
||||
"devDependencies": {
|
||||
"@0x/abi-gen": "^2.0.10",
|
||||
"@0x/contracts-gen": "^1.0.9",
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
@@ -69,8 +69,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contracts-asset-proxy": "^2.1.3",
|
||||
"@0x/contracts-erc20": "^2.2.3",
|
||||
"@0x/contracts-asset-proxy": "^2.1.4",
|
||||
"@0x/contracts-erc20": "^2.2.4",
|
||||
"@0x/contracts-utils": "2.0.1",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "3.1.6",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.1.5",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v3.1.6 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v3.1.5 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contracts-test-utils",
|
||||
"version": "3.1.5",
|
||||
"version": "3.1.6",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -43,7 +43,7 @@
|
||||
"dependencies": {
|
||||
"@0x/abi-gen": "^2.0.10",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"@0x/sol-coverage": "^3.0.4",
|
||||
"@0x/sol-profiler": "^3.1.6",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "3.1.5",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.1.4",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v3.1.5 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v3.1.4 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contracts-utils",
|
||||
"version": "3.1.4",
|
||||
"version": "3.1.5",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -49,7 +49,7 @@
|
||||
"devDependencies": {
|
||||
"@0x/abi-gen": "^2.0.10",
|
||||
"@0x/contracts-gen": "^1.0.9",
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
@@ -70,7 +70,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "6.0.9",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1557799313,
|
||||
"version": "6.0.8",
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v6.0.9 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v6.0.8 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "0x.js",
|
||||
"version": "6.0.8",
|
||||
"version": "6.0.9",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -46,7 +46,7 @@
|
||||
"@0x/abi-gen-wrappers": "^4.3.0",
|
||||
"@0x/contract-addresses": "^2.3.3",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/migrations": "^4.1.4",
|
||||
"@0x/migrations": "^4.1.5",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
"@types/lodash": "4.14.104",
|
||||
"@types/mocha": "^2.2.42",
|
||||
@@ -75,9 +75,9 @@
|
||||
"dependencies": {
|
||||
"@0x/assert": "^2.0.10",
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contract-wrappers": "^9.1.2",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/order-watcher": "^4.0.9",
|
||||
"@0x/contract-wrappers": "^9.1.3",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/order-watcher": "^4.0.10",
|
||||
"@0x/subproviders": "^4.0.6",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "6.1.4",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "6.1.3",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v6.1.4 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v6.1.3 - _May 14, 2019_
|
||||
|
||||
* Convert `metaData.remainingTakerAssetAmount` to BigNumber if present in APIOrder (#1810)
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/asset-buyer",
|
||||
"version": "6.1.3",
|
||||
"version": "6.1.4",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -38,10 +38,10 @@
|
||||
"homepage": "https://github.com/0xProject/0x-monorepo/packages/asset-buyer/README.md",
|
||||
"dependencies": {
|
||||
"@0x/assert": "^2.0.10",
|
||||
"@0x/connect": "^5.0.8",
|
||||
"@0x/contract-wrappers": "^9.1.2",
|
||||
"@0x/connect": "^5.0.9",
|
||||
"@0x/contract-wrappers": "^9.1.3",
|
||||
"@0x/json-schemas": "^3.0.10",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/subproviders": "^4.0.6",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "5.0.9",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "5.0.8",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v5.0.9 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v5.0.8 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/connect",
|
||||
"version": "5.0.8",
|
||||
"version": "5.0.9",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -47,7 +47,7 @@
|
||||
"dependencies": {
|
||||
"@0x/assert": "^2.0.10",
|
||||
"@0x/json-schemas": "^3.0.10",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,4 +1,18 @@
|
||||
[
|
||||
{
|
||||
"version": "9.1.3",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Fix decoding bug in `DutchAuctionWrapper.decodeDutchAuctionData`",
|
||||
"pr": 1815
|
||||
},
|
||||
{
|
||||
"note": "Fallback to eth_sign if eth_signedTypedData fails",
|
||||
"pr": 1817
|
||||
}
|
||||
],
|
||||
"timestamp": 1557961111
|
||||
},
|
||||
{
|
||||
"version": "9.1.2",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,11 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v9.1.3 - _May 15, 2019_
|
||||
|
||||
* Fix decoding bug in `DutchAuctionWrapper.decodeDutchAuctionData` (#1815)
|
||||
* Fallback to eth_sign if eth_signedTypedData fails (#1817)
|
||||
|
||||
## v9.1.2 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/contract-wrappers",
|
||||
"version": "9.1.2",
|
||||
"version": "9.1.3",
|
||||
"description": "Smart TS wrappers for 0x smart contracts",
|
||||
"keywords": [
|
||||
"0xproject",
|
||||
@@ -38,11 +38,11 @@
|
||||
"node": ">=6.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/coordinator-server": "0.1.1",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/fill-scenarios": "^3.0.8",
|
||||
"@0x/migrations": "^4.1.4",
|
||||
"@0x/fill-scenarios": "^3.0.9",
|
||||
"@0x/migrations": "^4.1.5",
|
||||
"@0x/subproviders": "^4.0.6",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
"@types/lodash": "4.14.104",
|
||||
@@ -76,7 +76,7 @@
|
||||
"@0x/contract-addresses": "^2.3.3",
|
||||
"@0x/contract-artifacts": "^1.5.1",
|
||||
"@0x/json-schemas": "^3.0.10",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -740,7 +740,7 @@ export class CoordinatorWrapper extends ContractWrapper {
|
||||
data,
|
||||
verifyingContractAddress: this.exchangeAddress,
|
||||
};
|
||||
const signedTransaction = await signatureUtils.ecSignTypedDataTransactionAsync(
|
||||
const signedTransaction = await signatureUtils.ecSignTransactionAsync(
|
||||
this._web3Wrapper.getProvider(),
|
||||
transaction,
|
||||
transaction.signerAddress,
|
||||
|
@@ -71,8 +71,8 @@ export class DutchAuctionWrapper extends ContractWrapper {
|
||||
['uint256', 'uint256'],
|
||||
dutchAuctionDetailsBuffer,
|
||||
);
|
||||
const beginTimeSeconds = new BigNumber(`0x${beginTimeSecondsAsBN.toString()}`);
|
||||
const beginAmount = new BigNumber(`0x${beginAmountAsBN.toString()}`);
|
||||
const beginTimeSeconds = new BigNumber(beginTimeSecondsAsBN.toString());
|
||||
const beginAmount = new BigNumber(beginAmountAsBN.toString());
|
||||
return {
|
||||
assetData,
|
||||
beginTimeSeconds,
|
||||
|
@@ -1,12 +1,12 @@
|
||||
import { expectTransactionFailedAsync, getLatestBlockTimestampAsync } from '@0x/contracts-test-utils';
|
||||
import { BlockchainLifecycle } from '@0x/dev-utils';
|
||||
import { assetDataUtils } from '@0x/order-utils';
|
||||
import { RevertReason, SignedOrder } from '@0x/types';
|
||||
import { ERC20AssetData, RevertReason, SignedOrder } from '@0x/types';
|
||||
import { BigNumber } from '@0x/utils';
|
||||
import * as chai from 'chai';
|
||||
import 'mocha';
|
||||
|
||||
import { ContractWrappers } from '../src';
|
||||
import { ContractWrappers, DutchAuctionWrapper } from '../src';
|
||||
|
||||
import { chaiSetup } from './utils/chai_setup';
|
||||
import { constants } from './utils/constants';
|
||||
@@ -91,6 +91,21 @@ describe('DutchAuctionWrapper', () => {
|
||||
afterEach(async () => {
|
||||
await blockchainLifecycle.revertAsync();
|
||||
});
|
||||
describe('.decodeDutchAuctionAssetData', () => {
|
||||
it('decodes to the encoded values', async () => {
|
||||
const encodedAssetData = DutchAuctionWrapper.encodeDutchAuctionAssetData(
|
||||
makerTokenAssetData,
|
||||
auctionBeginTimeSeconds,
|
||||
makerAssetAmount,
|
||||
);
|
||||
const decodedAssetData = DutchAuctionWrapper.decodeDutchAuctionData(encodedAssetData);
|
||||
// tslint:disable-next-line:no-unnecessary-type-assertion
|
||||
const erc20AssetData = decodedAssetData.assetData as ERC20AssetData;
|
||||
expect(erc20AssetData.tokenAddress).to.eq(makerTokenAddress);
|
||||
expect(decodedAssetData.beginAmount).to.be.bignumber.eq(makerAssetAmount);
|
||||
expect(decodedAssetData.beginTimeSeconds).to.be.bignumber.eq(auctionBeginTimeSeconds);
|
||||
});
|
||||
});
|
||||
describe('#matchOrdersAsync', () => {
|
||||
it('should match two orders', async () => {
|
||||
const txHash = await contractWrappers.dutchAuction.matchOrdersAsync(buyOrder, sellOrder, takerAddress);
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "3.0.9",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "3.0.8",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v3.0.9 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v3.0.8 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/fill-scenarios",
|
||||
"version": "3.0.8",
|
||||
"version": "3.0.9",
|
||||
"description": "0x order fill scenario generator",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
@@ -32,7 +32,7 @@
|
||||
"@0x/abi-gen-wrappers": "^4.3.0",
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contract-artifacts": "^1.5.1",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/instant",
|
||||
"version": "1.0.22",
|
||||
"version": "1.0.23",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -44,9 +44,9 @@
|
||||
"homepage": "https://github.com/0xProject/0x-monorepo/packages/instant/README.md",
|
||||
"dependencies": {
|
||||
"@0x/assert": "^2.0.10",
|
||||
"@0x/asset-buyer": "^6.1.3",
|
||||
"@0x/asset-buyer": "^6.1.4",
|
||||
"@0x/json-schemas": "^3.0.10",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/subproviders": "^4.0.6",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/metacoin",
|
||||
"version": "0.0.49",
|
||||
"version": "0.0.50",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -51,7 +51,7 @@
|
||||
"run-s": "^0.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@0x/contracts-test-utils": "^3.1.5",
|
||||
"@0x/contracts-test-utils": "^3.1.6",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"chai": "^4.0.1",
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "4.1.5",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "4.1.4",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v4.1.5 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v4.1.4 - _May 14, 2019_
|
||||
|
||||
* Add --pk flag to accept private key when migrating (#1811)
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/migrations",
|
||||
"version": "4.1.4",
|
||||
"version": "4.1.5",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -54,7 +54,7 @@
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contract-addresses": "^2.3.3",
|
||||
"@0x/contract-artifacts": "^1.5.1",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/sol-compiler": "^3.1.7",
|
||||
"@0x/subproviders": "^4.0.6",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "@0x/monorepo-scripts",
|
||||
"version": "1.0.31",
|
||||
"version": "1.0.32",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
|
@@ -18,7 +18,7 @@ async function prepublishChecksAsync(): Promise<void> {
|
||||
await checkCurrentVersionMatchesLatestPublishedNPMPackageAsync(updatedPublicPackages);
|
||||
await checkChangelogFormatAsync(updatedPublicPackages);
|
||||
await checkGitTagsForNextVersionAndDeleteIfExistAsync(updatedPublicPackages);
|
||||
await checkPublishRequiredSetupAsync();
|
||||
await checkPublishRequiredSetupAsync(updatedPublicPackages);
|
||||
await checkDockerHubSetupAsync();
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ async function checkChangelogFormatAsync(updatedPublicPackages: Package[]): Prom
|
||||
}
|
||||
}
|
||||
|
||||
async function checkPublishRequiredSetupAsync(): Promise<void> {
|
||||
async function checkPublishRequiredSetupAsync(updatedPublicPackages: Package[]): Promise<void> {
|
||||
// check to see if logged into npm before publishing
|
||||
try {
|
||||
// HACK: for some reason on some setups, the `npm whoami` will not recognize a logged-in user
|
||||
@@ -141,6 +141,22 @@ async function checkPublishRequiredSetupAsync(): Promise<void> {
|
||||
throw new Error('You must be logged into npm in the commandline to publish. Run `npm login` and try again.');
|
||||
}
|
||||
|
||||
// check to see that all required write permissions exist
|
||||
utils.log(`Checking that all necessary npm write permissions exist...`);
|
||||
const pkgPermissionsResult = await execAsync(`sudo npm access ls-packages`);
|
||||
const pkgPermissions = JSON.parse(pkgPermissionsResult.stdout);
|
||||
const writePermissions = Object.keys(pkgPermissions).filter(pkgName => {
|
||||
return pkgPermissions[pkgName] === 'read-write';
|
||||
});
|
||||
const unwriteablePkgs = updatedPublicPackages.filter(pkg => !writePermissions.includes(pkg.packageJson.name));
|
||||
if (unwriteablePkgs.length > 0) {
|
||||
utils.log(`Missing write permissions for the following packages:`);
|
||||
unwriteablePkgs.forEach(pkg => {
|
||||
utils.log(pkg.packageJson.name);
|
||||
});
|
||||
throw new Error(`Obtain necessary write permissions to continue.`);
|
||||
}
|
||||
|
||||
// Check to see if Git personal token setup
|
||||
if (constants.githubPersonalAccessToken === undefined) {
|
||||
throw new Error(
|
||||
|
@@ -1,4 +1,14 @@
|
||||
[
|
||||
{
|
||||
"version": "8.1.0",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Add `ecSignTransactionAsync`",
|
||||
"pr": 1817
|
||||
}
|
||||
],
|
||||
"timestamp": 1557961111
|
||||
},
|
||||
{
|
||||
"version": "8.0.2",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v8.1.0 - _May 15, 2019_
|
||||
|
||||
* Add `ecSignTransactionAsync` (#1817)
|
||||
|
||||
## v8.0.2 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/order-utils",
|
||||
"version": "8.0.2",
|
||||
"version": "8.1.0",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
|
@@ -20,6 +20,7 @@ import * as _ from 'lodash';
|
||||
import { assert } from './assert';
|
||||
import { eip712Utils } from './eip712_utils';
|
||||
import { orderHashUtils } from './order_hash';
|
||||
import { transactionHashUtils } from './transaction_hash';
|
||||
import { TypedDataError } from './types';
|
||||
import { utils } from './utils';
|
||||
|
||||
@@ -292,6 +293,50 @@ export const signatureUtils = {
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Signs a transaction and returns a SignedZeroExTransaction. First `eth_signTypedData` is requested
|
||||
* then a fallback to `eth_sign` if not available on the supplied provider.
|
||||
* @param supportedProvider Web3 provider to use for all JSON RPC requests
|
||||
* @param transaction The ZeroExTransaction to sign.
|
||||
* @param signerAddress The hex encoded Ethereum address you wish to sign it with. This address
|
||||
* must be available via the supplied Provider.
|
||||
* @return A SignedTransaction containing the order and Elliptic curve signature with Signature Type.
|
||||
*/
|
||||
async ecSignTransactionAsync(
|
||||
supportedProvider: SupportedProvider,
|
||||
transaction: ZeroExTransaction,
|
||||
signerAddress: string,
|
||||
): Promise<SignedZeroExTransaction> {
|
||||
assert.doesConformToSchema('transaction', transaction, schemas.zeroExTransactionSchema, [schemas.hexSchema]);
|
||||
try {
|
||||
const signedTransaction = await signatureUtils.ecSignTypedDataTransactionAsync(
|
||||
supportedProvider,
|
||||
transaction,
|
||||
signerAddress,
|
||||
);
|
||||
return signedTransaction;
|
||||
} catch (err) {
|
||||
// HACK: We are unable to handle specific errors thrown since provider is not an object
|
||||
// under our control. It could be Metamask Web3, Ethers, or any general RPC provider.
|
||||
// We check for a user denying the signature request in a way that supports Metamask and
|
||||
// Coinbase Wallet. Unfortunately for signers with a different error message,
|
||||
// they will receive two signature requests.
|
||||
if (err.message.includes('User denied message signature')) {
|
||||
throw err;
|
||||
}
|
||||
const transactionHash = transactionHashUtils.getTransactionHashHex(transaction);
|
||||
const signatureHex = await signatureUtils.ecSignHashAsync(
|
||||
supportedProvider,
|
||||
transactionHash,
|
||||
signerAddress,
|
||||
);
|
||||
const signedTransaction = {
|
||||
...transaction,
|
||||
signature: signatureHex,
|
||||
};
|
||||
return signedTransaction;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Signs a ZeroExTransaction using `eth_signTypedData` and returns a SignedZeroExTransaction.
|
||||
* @param supportedProvider Web3 provider to use for all JSON RPC requests
|
||||
@@ -495,3 +540,4 @@ function parseSignatureHexAsRSV(signatureHex: string): ECSignature {
|
||||
};
|
||||
return ecSignature;
|
||||
}
|
||||
// tslint:disable:max-file-line-count
|
||||
|
@@ -1,4 +1,5 @@
|
||||
import { Order, SignatureType } from '@0x/types';
|
||||
import { assert } from '@0x/assert';
|
||||
import { Order, SignatureType, ZeroExTransaction } from '@0x/types';
|
||||
import { BigNumber } from '@0x/utils';
|
||||
import * as chai from 'chai';
|
||||
import { JSONRPCErrorCallback, JSONRPCRequestPayload } from 'ethereum-types';
|
||||
@@ -6,7 +7,7 @@ import * as ethUtil from 'ethereumjs-util';
|
||||
import * as _ from 'lodash';
|
||||
import 'mocha';
|
||||
|
||||
import { generatePseudoRandomSalt, orderHashUtils } from '../src';
|
||||
import { generatePseudoRandomSalt, orderHashUtils, transactionHashUtils } from '../src';
|
||||
import { constants } from '../src/constants';
|
||||
import { signatureUtils } from '../src/signature_utils';
|
||||
|
||||
@@ -20,6 +21,7 @@ describe('Signature utils', () => {
|
||||
let makerAddress: string;
|
||||
const fakeExchangeContractAddress = '0x1dc4c1cefef38a777b15aa20260a54e584b16c48';
|
||||
let order: Order;
|
||||
let transaction: ZeroExTransaction;
|
||||
before(async () => {
|
||||
const availableAddreses = await web3Wrapper.getAvailableAddressesAsync();
|
||||
makerAddress = availableAddreses[0];
|
||||
@@ -38,6 +40,12 @@ describe('Signature utils', () => {
|
||||
takerAssetAmount: new BigNumber(0),
|
||||
expirationTimeSeconds: new BigNumber(0),
|
||||
};
|
||||
transaction = {
|
||||
verifyingContractAddress: fakeExchangeContractAddress,
|
||||
salt: generatePseudoRandomSalt(),
|
||||
signerAddress: makerAddress,
|
||||
data: '0x6927e990021d23b1eb7b8789f6a6feaf98fe104bb0cf8259421b79f9a34222b0',
|
||||
};
|
||||
});
|
||||
describe('#isValidSignatureAsync', () => {
|
||||
let dataHex = '0x6927e990021d23b1eb7b8789f6a6feaf98fe104bb0cf8259421b79f9a34222b0';
|
||||
@@ -197,6 +205,55 @@ describe('Signature utils', () => {
|
||||
);
|
||||
});
|
||||
});
|
||||
describe('#ecSignTransactionAsync', () => {
|
||||
it('should default to eth_sign if eth_signTypedData is unavailable', async () => {
|
||||
const fakeProvider = {
|
||||
async sendAsync(payload: JSONRPCRequestPayload, callback: JSONRPCErrorCallback): Promise<void> {
|
||||
if (payload.method === 'eth_signTypedData') {
|
||||
callback(new Error('Internal RPC Error'));
|
||||
} else if (payload.method === 'eth_sign') {
|
||||
const [address, message] = payload.params;
|
||||
const signature = await web3Wrapper.signMessageAsync(address, message);
|
||||
callback(null, {
|
||||
id: 42,
|
||||
jsonrpc: '2.0',
|
||||
result: signature,
|
||||
});
|
||||
} else {
|
||||
callback(null, { id: 42, jsonrpc: '2.0', result: [makerAddress] });
|
||||
}
|
||||
},
|
||||
};
|
||||
const signedTransaction = await signatureUtils.ecSignTransactionAsync(
|
||||
fakeProvider,
|
||||
transaction,
|
||||
makerAddress,
|
||||
);
|
||||
assert.isHexString('signedTransaction.signature', signedTransaction.signature);
|
||||
});
|
||||
it('should throw if the user denies the signing request', async () => {
|
||||
const fakeProvider = {
|
||||
async sendAsync(payload: JSONRPCRequestPayload, callback: JSONRPCErrorCallback): Promise<void> {
|
||||
if (payload.method === 'eth_signTypedData') {
|
||||
callback(new Error('User denied message signature'));
|
||||
} else if (payload.method === 'eth_sign') {
|
||||
const [address, message] = payload.params;
|
||||
const signature = await web3Wrapper.signMessageAsync(address, message);
|
||||
callback(null, {
|
||||
id: 42,
|
||||
jsonrpc: '2.0',
|
||||
result: signature,
|
||||
});
|
||||
} else {
|
||||
callback(null, { id: 42, jsonrpc: '2.0', result: [makerAddress] });
|
||||
}
|
||||
},
|
||||
};
|
||||
expect(
|
||||
signatureUtils.ecSignTransactionAsync(fakeProvider, transaction, makerAddress),
|
||||
).to.to.be.rejectedWith('User denied message signature');
|
||||
});
|
||||
});
|
||||
describe('#ecSignHashAsync', () => {
|
||||
before(async () => {
|
||||
const availableAddreses = await web3Wrapper.getAvailableAddressesAsync();
|
||||
@@ -319,6 +376,60 @@ describe('Signature utils', () => {
|
||||
expect(signedOrder.signature).to.equal(expectedSignature);
|
||||
});
|
||||
});
|
||||
describe('#ecSignTypedDataTransactionAsync', () => {
|
||||
it('should result in the same signature as signing the order hash without an ethereum message prefix', async () => {
|
||||
// Note: Since order hash is an EIP712 hash the result of a valid EIP712 signature
|
||||
// of order hash is the same as signing the order without the Ethereum Message prefix.
|
||||
const transactionHashHex = transactionHashUtils.getTransactionHashHex(transaction);
|
||||
const sig = ethUtil.ecsign(
|
||||
ethUtil.toBuffer(transactionHashHex),
|
||||
Buffer.from('F2F48EE19680706196E2E339E5DA3491186E0C4C5030670656B0E0164837257D', 'hex'),
|
||||
);
|
||||
const signatureBuffer = Buffer.concat([
|
||||
ethUtil.toBuffer(sig.v),
|
||||
ethUtil.toBuffer(sig.r),
|
||||
ethUtil.toBuffer(sig.s),
|
||||
ethUtil.toBuffer(SignatureType.EIP712),
|
||||
]);
|
||||
const signatureHex = `0x${signatureBuffer.toString('hex')}`;
|
||||
const signedTransaction = await signatureUtils.ecSignTypedDataTransactionAsync(
|
||||
provider,
|
||||
transaction,
|
||||
makerAddress,
|
||||
);
|
||||
const isValidSignature = await signatureUtils.isValidSignatureAsync(
|
||||
provider,
|
||||
transactionHashHex,
|
||||
signedTransaction.signature,
|
||||
makerAddress,
|
||||
);
|
||||
expect(signatureHex).to.eq(signedTransaction.signature);
|
||||
expect(isValidSignature).to.eq(true);
|
||||
});
|
||||
it('should return the correct Signature for signatureHex concatenated as R + S + V', async () => {
|
||||
const fakeProvider = {
|
||||
async sendAsync(payload: JSONRPCRequestPayload, callback: JSONRPCErrorCallback): Promise<void> {
|
||||
if (payload.method === 'eth_signTypedData') {
|
||||
const [address, typedData] = payload.params;
|
||||
const signature = await web3Wrapper.signTypedDataAsync(address, typedData);
|
||||
callback(null, {
|
||||
id: 42,
|
||||
jsonrpc: '2.0',
|
||||
result: signature,
|
||||
});
|
||||
} else {
|
||||
callback(null, { id: 42, jsonrpc: '2.0', result: [makerAddress] });
|
||||
}
|
||||
},
|
||||
};
|
||||
const signedTransaction = await signatureUtils.ecSignTypedDataTransactionAsync(
|
||||
fakeProvider,
|
||||
transaction,
|
||||
makerAddress,
|
||||
);
|
||||
assert.isHexString('signedTransaction.signature', signedTransaction.signature);
|
||||
});
|
||||
});
|
||||
describe('#convertECSignatureToSignatureHex', () => {
|
||||
const ecSignature: ECSignature = {
|
||||
v: 27,
|
||||
|
@@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"timestamp": 1557961111,
|
||||
"version": "4.0.10",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Dependencies updated"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "4.0.9",
|
||||
"changes": [
|
||||
|
@@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only.
|
||||
|
||||
CHANGELOG
|
||||
|
||||
## v4.0.10 - _May 15, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
||||
## v4.0.9 - _May 14, 2019_
|
||||
|
||||
* Dependencies updated
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/order-watcher",
|
||||
"version": "4.0.9",
|
||||
"version": "4.0.10",
|
||||
"description": "An order watcher daemon that watches for order validity",
|
||||
"keywords": [
|
||||
"0x",
|
||||
@@ -40,7 +40,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/migrations": "^4.1.4",
|
||||
"@0x/migrations": "^4.1.5",
|
||||
"@0x/subproviders": "^4.0.6",
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
"@types/bintrees": "^1.0.2",
|
||||
@@ -69,10 +69,10 @@
|
||||
"@0x/base-contract": "^5.1.0",
|
||||
"@0x/contract-addresses": "^2.3.3",
|
||||
"@0x/contract-artifacts": "^1.5.1",
|
||||
"@0x/contract-wrappers": "^9.1.2",
|
||||
"@0x/fill-scenarios": "^3.0.8",
|
||||
"@0x/contract-wrappers": "^9.1.3",
|
||||
"@0x/fill-scenarios": "^3.0.9",
|
||||
"@0x/json-schemas": "^3.0.10",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/pipeline",
|
||||
"version": "1.0.19",
|
||||
"version": "1.0.20",
|
||||
"private": true,
|
||||
"description": "Data pipeline for offline analysis",
|
||||
"scripts": {
|
||||
@@ -40,12 +40,12 @@
|
||||
"typescript": "3.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@0x/connect": "^5.0.8",
|
||||
"@0x/connect": "^5.0.9",
|
||||
"@0x/contract-addresses": "^2.3.3",
|
||||
"@0x/contract-artifacts": "^1.5.1",
|
||||
"@0x/contract-wrappers": "^9.1.2",
|
||||
"@0x/contract-wrappers": "^9.1.3",
|
||||
"@0x/dev-utils": "^2.2.2",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/subproviders": "^4.0.6",
|
||||
"@0x/types": "^2.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "@0x/testnet-faucets",
|
||||
"version": "1.0.78",
|
||||
"version": "1.0.79",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -19,7 +19,7 @@
|
||||
"author": "Fabio Berger",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"0x.js": "^6.0.8",
|
||||
"0x.js": "^6.0.9",
|
||||
"@0x/subproviders": "^4.0.6",
|
||||
"@0x/typescript-typings": "^4.2.2",
|
||||
"@0x/utils": "^4.3.3",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@0x/website",
|
||||
"version": "0.0.81",
|
||||
"version": "0.0.82",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
@@ -21,11 +21,11 @@
|
||||
"author": "Fabio Berger",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@0x/asset-buyer": "^6.1.3",
|
||||
"@0x/asset-buyer": "^6.1.4",
|
||||
"@0x/contract-addresses": "^2.3.3",
|
||||
"@0x/contract-wrappers": "^9.1.2",
|
||||
"@0x/contract-wrappers": "^9.1.3",
|
||||
"@0x/json-schemas": "^3.0.10",
|
||||
"@0x/order-utils": "^8.0.2",
|
||||
"@0x/order-utils": "^8.1.0",
|
||||
"@0x/react-docs": "^2.0.11",
|
||||
"@0x/react-shared": "^2.0.11",
|
||||
"@0x/subproviders": "^4.0.6",
|
||||
|
30
yarn.lock
30
yarn.lock
@@ -13888,6 +13888,16 @@ react-dom@^16.3.2:
|
||||
object-assign "^4.1.1"
|
||||
prop-types "^15.6.0"
|
||||
|
||||
react-dom@^16.4.2:
|
||||
version "16.8.6"
|
||||
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.6.tgz#71d6303f631e8b0097f56165ef608f051ff6e10f"
|
||||
integrity sha512-1nL7PIq9LTL3fthPqwkvr2zY7phIPjYrT0jp4HjyEQrEROnw4dG41VVwi/wfoCneoleqrNX7iAD+pXebJZwrwA==
|
||||
dependencies:
|
||||
loose-envify "^1.1.0"
|
||||
object-assign "^4.1.1"
|
||||
prop-types "^15.6.2"
|
||||
scheduler "^0.13.6"
|
||||
|
||||
react-dom@^16.5.2:
|
||||
version "16.5.2"
|
||||
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.5.2.tgz#b69ee47aa20bab5327b2b9d7c1fe2a30f2cfa9d7"
|
||||
@@ -13945,8 +13955,6 @@ react-highlight@0xproject/react-highlight#react-peer-deps:
|
||||
dependencies:
|
||||
highlight.js "^9.11.0"
|
||||
highlightjs-solidity "^1.0.5"
|
||||
react "^16.4.2"
|
||||
react-dom "^16.4.2"
|
||||
|
||||
react-hot-loader@^4.3.3:
|
||||
version "4.3.4"
|
||||
@@ -14191,6 +14199,16 @@ react@^16.3.2:
|
||||
object-assign "^4.1.1"
|
||||
prop-types "^15.6.0"
|
||||
|
||||
react@^16.4.2:
|
||||
version "16.8.6"
|
||||
resolved "https://registry.yarnpkg.com/react/-/react-16.8.6.tgz#ad6c3a9614fd3a4e9ef51117f54d888da01f2bbe"
|
||||
integrity sha512-pC0uMkhLaHm11ZSJULfOBqV4tIZkx87ZLvbbQYunNixAAvjnC+snJCg0XQXn9VIsttVsbZP/H/ewzgsd5fxKXw==
|
||||
dependencies:
|
||||
loose-envify "^1.1.0"
|
||||
object-assign "^4.1.1"
|
||||
prop-types "^15.6.2"
|
||||
scheduler "^0.13.6"
|
||||
|
||||
react@^16.5.2:
|
||||
version "16.5.2"
|
||||
resolved "https://registry.yarnpkg.com/react/-/react-16.5.2.tgz#19f6b444ed139baa45609eee6dc3d318b3895d42"
|
||||
@@ -15070,6 +15088,14 @@ schedule@^0.5.0:
|
||||
dependencies:
|
||||
object-assign "^4.1.1"
|
||||
|
||||
scheduler@^0.13.6:
|
||||
version "0.13.6"
|
||||
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.13.6.tgz#466a4ec332467b31a91b9bf74e5347072e4cd889"
|
||||
integrity sha512-IWnObHt413ucAYKsD9J1QShUKkbKLQQHdxRyw73sw4FN26iWr3DY/H34xGPe4nmL1DwXyWmSWmMrA9TfQbE/XQ==
|
||||
dependencies:
|
||||
loose-envify "^1.1.0"
|
||||
object-assign "^4.1.1"
|
||||
|
||||
schema-utils@^0.4.4:
|
||||
version "0.4.7"
|
||||
resolved "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.7.tgz#ba74f597d2be2ea880131746ee17d0a093c68187"
|
||||
|
Reference in New Issue
Block a user