Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
feat: support renamed parameters in RFQT maker endpoint (#258)
Browse files Browse the repository at this point in the history
* Re-pin asset-swapper to monorepo PR branch

0xProject/0x-monorepo@dde0c76

* Adapt tests to renamed req parms on maker endpoint

* Re-pin asset-swapper to monorepo PR branch

0xProject/0x-monorepo@7162935

* Re-pin asset-swapper to monorepo PR branch

0xProject/0x-monorepo@187dd2f

* Re-pin asset-swapper to monorepo PR branch

0xProject/0x-monorepo@b8cc164

* Re-pin asset-swapper to monorepo `development`

0xProject/0x-monorepo@73c779c
  • Loading branch information
feuGeneA authored Jun 19, 2020
1 parent 8443d22 commit d83bbb1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
},
"dependencies": {
"@0x/assert": "^3.0.4",
"@0x/asset-swapper": "0xProject/gitpkg-registry#0x-asset-swapper-v4.4.0-f14b6f2ba",
"@0x/asset-swapper": "0xProject/gitpkg-registry#0x-asset-swapper-v4.4.0-73c779c13",
"@0x/connect": "^6.0.4",
"@0x/contract-addresses": "0xProject/gitpkg-registry#0x-contract-addresses-v4.9.0-f14b6f2ba",
"@0x/contract-wrappers": "0xProject/gitpkg-registry#0x-contract-wrappers-v13.6.3-f14b6f2ba",
Expand Down
12 changes: 6 additions & 6 deletions test/rfqt_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ describe(SUITE_NAME, () => {
responseCode: 200,
requestApiKey: 'koolApiKey1',
requestParams: {
sellToken: contractAddresses.etherToken,
buyToken: contractAddresses.zrxToken,
sellAmount: DEFAULT_SELL_AMOUNT.toString(),
buyAmount: undefined,
sellTokenAddress: contractAddresses.etherToken,
buyTokenAddress: contractAddresses.zrxToken,
sellAmountBaseUnits: DEFAULT_SELL_AMOUNT,
buyAmountBaseUnits: undefined,
takerAddress,
},
};
Expand Down Expand Up @@ -118,7 +118,7 @@ describe(SUITE_NAME, () => {
[
{
...DEFAULT_RFQT_RESPONSE_DATA,
responseData: ganacheZrxWethOrder1,
responseData: { signedOrder: ganacheZrxWethOrder1 },
},
],
async () => {
Expand Down Expand Up @@ -236,7 +236,7 @@ describe(SUITE_NAME, () => {
[
{
...DEFAULT_RFQT_RESPONSE_DATA,
responseData: ganacheZrxWethOrder1,
responseData: { signedOrder: ganacheZrxWethOrder1 },
},
],
async () => {
Expand Down
25 changes: 21 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,22 @@
lodash "^4.17.11"
valid-url "^1.0.9"

"@0x/asset-swapper@0xProject/gitpkg-registry#0x-asset-swapper-v4.4.0-f14b6f2ba":
"@0x/asset-swapper@0xProject/gitpkg-registry#0x-asset-swapper-v4.4.0-73c779c13":
version "4.4.0"
resolved "https://codeload.github.com/0xProject/gitpkg-registry/tar.gz/bb8498654e8c753be460de7b026e0019ae08b8ea"
resolved "https://codeload.github.com/0xProject/gitpkg-registry/tar.gz/b48045a98140f5a93c2fab2c691979e35a9b0dbc"
dependencies:
"@0x/assert" "^3.0.7"
"@0x/contract-addresses" "^4.9.0"
"@0x/contract-wrappers" "^13.6.3"
"@0x/json-schemas" "^5.0.7"
"@0x/order-utils" "^10.2.4"
"@0x/orderbook" "^2.2.5"
"@0x/quote-server" "^2.0.2"
"@0x/utils" "^5.4.1"
"@0x/web3-wrapper" "^7.0.7"
axios "^0.19.2"
axios-mock-adapter "^1.18.1"
ethereumjs-util "^5.1.1"
heartbeats "^5.0.1"
lodash "^4.17.11"

Expand Down Expand Up @@ -403,6 +405,19 @@
"@0x/order-utils" "^10.2.4"
"@0x/utils" "^5.4.1"

"@0x/quote-server@^2.0.2":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@0x/quote-server/-/quote-server-2.0.2.tgz#60d0665c1cad378c9abb89b5491bdc55b4c8412c"
integrity sha512-ScK8lHj2AN0RaEjSYplnxsABGy30j6bATG3GjmGMWOx5Bmj2X6UGHpD2ZJ0UH+oJqyDHyZ31vgpMbCSlBLFlzQ==
dependencies:
"@0x/json-schemas" "^5.0.7"
"@0x/order-utils" "^10.2.4"
"@0x/utils" "^5.4.1"
"@types/express" "^4.17.3"
express "^4.17.1"
express-async-handler "^1.1.4"
http-status-codes "^1.4.0"

"@0x/sol-compiler@^4.0.8":
version "4.0.8"
resolved "https://registry.yarnpkg.com/@0x/sol-compiler/-/sol-compiler-4.0.8.tgz#e60634423d47c4241a404e48edbdfff99098ab5f"
Expand Down Expand Up @@ -878,9 +893,10 @@
"@types/node" "*"
"@types/range-parser" "*"

"@types/express@*", "@types/express@^4.17.1":
"@types/express@*", "@types/express@^4.17.1", "@types/express@^4.17.3":
version "4.17.6"
resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.6.tgz#6bce49e49570507b86ea1b07b806f04697fac45e"
integrity sha512-n/mr9tZI83kd4azlPG5y997C/M4DNABK9yErhFM6hKdym4kkmd9j0vtsJyjFIwfRBxtrxZtAfGZCNRIBMFLK5w==
dependencies:
"@types/body-parser" "*"
"@types/express-serve-static-core" "*"
Expand Down Expand Up @@ -4346,9 +4362,10 @@ http-signature@~1.2.0:
jsprim "^1.2.2"
sshpk "^1.7.0"

http-status-codes@^1.3.2:
http-status-codes@^1.3.2, http-status-codes@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/http-status-codes/-/http-status-codes-1.4.0.tgz#6e4c15d16ff3a9e2df03b89f3a55e1aae05fb477"
integrity sha512-JrT3ua+WgH8zBD3HEJYbeEgnuQaAnUeRRko/YojPAJjGmIfGD3KPU/asLdsLwKjfxOmQe5nXMQ0pt/7MyapVbQ==

human-signals@^1.1.1:
version "1.1.1"
Expand Down

0 comments on commit d83bbb1

Please sign in to comment.