UNPKG

efx-api-node

Version:

<img src="https://avatars3.githubusercontent.com/u/33315316?s=200&v=4" align="right" />

43 lines (40 loc) 1.34 kB
const nock = require('nock') module.exports = () => { const apiResponse = { "0x":{ "protocol":"0x", "minOrderTime":300, "tokenRegistry":{ "ETH":{ "decimals":18, "wrapperAddress":"0xaa7427d8f17d87a28f5e1ba3adbb270badbe1011", "minOrderSize":0.1 }, "USD":{ "decimals":6, "wrapperAddress":"0x1a9b2d827f26b7d7c18fec4c1b27c1e8deeba26e", "tokenAddress":"0xdac17f958d2ee523a2206206994597c13d831ec7", "minOrderSize":25, "settleSpread":-0.026 }, "ZRX":{ "decimals":18, "wrapperAddress":"0xcf67d7a481ceeca0a77f658991a00366fed558f7", "tokenAddress":"0xe41d2489571d322189246dafa5ebde1f4699f498", "minOrderSize":40 }, }, "ethfinexAddress":"0x61b9898c9b60a159fc91ae8026563cd226b7a0c1", // gets fee paid in "feeApiUrl": "https://staging-api.deversifi.com/v1/pub/feeRate/", "exchangeAddress":"0xdcdb42c9a256690bd153a7b409751adfc8dd5851", // actual exchange contract address "exchangeSymbols":[ "tETHUSD", "tZRXUSD", "tZRXETH" ] } } nock('https://test.ethfinex.com:443', {"encodedQueryParams":true}) .post('/trustless/v1/r/get/conf', {}) .reply(200, apiResponse) }