Skip to content

Instantly share code, notes, and snippets.

View feuGeneA's full-sized avatar

F. Eugene Aumson feuGeneA

View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 15 columns, instead of 2. in line 5.
"ticker",1515560759,"ZRX-USD","0.390001","0.34731000","39437110.06834000","0.34528000","0.42000000","518728639.20200000","0.390000","0.390001","buy","2020-05-16T04:59:39.929270Z",3173641,"2521.37951"
"ticker",389265530,"ZRX-BTC","0.00004105","0.00003670","12472174.63182000","0.00003579","0.00004418","116580684.99951000","0.00004096","0.00004105","buy","2020-05-16T04:59:44.045942Z",1173904,"10.84547"
"ticker",14107271427,"BTC-USD","9498.46","9462.88000000","19504.41900474","9120.00000000","9720.67000000","660299.88053727","9496.16","9498.46","buy","2020-05-16T05:00:05.865986Z",92110134,"0.02518042"
"ticker",9118095931,"ETH-USD","201.75","198.70000000","128129.73160766","191.35000000","201.91000000","6122285.09944941","201.75","201.76","sell","2020-05-16T05:00:03.824946Z",58300115,"0.01492187"
"ticker",14107272203,"BTC-USD","9498.41","9462.88000000","19504.43912922","9120.00000000","9720.67000000","660299.90066175","9498.39","9499.97","sell","2020-05-16T05:00:07.753926Z",92110135,"0.02012448"
"ticker",141072722
-- Create the (hyper)table that represents the stream of tick data coming
-- from the 'ticker' channel of Coinbase Pro's Websocket feed
-- (https://docs.pro.coinbase.com/#the-ticker-channel)
CREATE TYPE coinbase_pro_ticker_side AS ENUM ('buy', 'sell');
CREATE TYPE coinbase_pro_ticker_type AS ENUM ('ticker');
-- other Websocket Feed channels use messages with other types, but 'ticker' is
-- the only type used in the 'ticker' channel.

This is my test output when I say warningLogger: logger.warn:

{"level":"info","time":1587619076038,"pid":14312,"hostname":"precision5510","msg":"Uncaught error {}","v":1}
{"level":"error","time":1587619076040,"pid":14312,"hostname":"precision5510","isAPIError":true,"statusCode":500,"msg":"this[writeSym] is not a function","stack":"Error: this[writeSym] is not a function\n    at SwapHandlers.<anonymous> (/home/gene/dev/0x-api/src/handlers/swap_handlers.ts:185:19)\n    at Generator.throw (<anonymous>)\n    at rejected (/home/gene/dev/0x-api/lib/src/handlers/swap_handlers.js:5:65)\n    at <anonymous>\n    at process._tickCallback (internal/process/next_tick.js:189:7)","type":"Error","v":1}
{"level":"info","time":1587619076047,"pid":14312,"hostname":"precision5510","req":{"url":"/swap/v0/price","method":"GET","headers":{"user-agent":"node-superagent/3.8.3","host":"127.0.0.1:45239"},"body":{},"query":{"buyToken":"ZRX","sellToken":"WETH","sellAmount":"100000000000000000","takerAddress":"0x6ecbe1db9ef729cbe97
diff --git a/contracts/utils/package.json b/contracts/utils/package.json
index fbcfa5b54..82b059897 100644
--- a/contracts/utils/package.json
+++ b/contracts/utils/package.json
@@ -38,7 +38,7 @@
"config": {
"publicInterfaceContracts": "Authorizable,IAuthorizable,IOwnable,LibAddress,LibAddressArray,LibAddressArrayRichErrors,LibAuthorizableRichErrors,LibBytes,LibBytesRichErrors,LibEIP1271,LibEIP712,LibFractions,LibOwnableRichErrors,LibReentrancyGuardRichErrors,LibRichErrors,LibSafeMath,LibSafeMathRichErrors,Ownable,ReentrancyGuard,Refundable",
"abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually.",
- "abis": "./test/generated-artifacts/@(Authorizable|D18|DeploymentConstants|IAuthorizable|IOwnable|LibAddress|LibAddressArray|LibAddressArrayRichErrors|LibAuthorizableRichErrors|LibBytes|LibBytesRichErrors|LibEIP1271|LibEIP712|LibFractions|LibOwnableRichErrors|LibReentrancyGuardRichErrors|LibRichErrors|LibSafeMath|LibSafeMathRichErrors|Ownable|ReentrancyGua
1Apr16:52:48 rc=2 [1 job] ~/dev/0x-api[rfqt *$%<>]$ b
yarn run v1.19.1
$ tsc -p tsconfig.json
node_modules/ganache-core/typings/index.d.ts:47:18 - error TS2300: Duplicate identifier 'Ganache'.
47 export default Ganache;
~~~~~~~
../0x-monorepo/node_modules/ganache-core/typings/index.d.ts:47:18
47 export default Ganache;
26Mar00:28:54 rc=130 ~/dev/0x-api[rfqt *%=]$ b && yarn dev
yarn run v1.19.1
$ tsc -p tsconfig.json
Done in 12.63s.
yarn run v1.19.1
$ ETHEREUM_RPC_URL=http://localhost:8545 HTTP_PORT=3001 CHAIN_ID=1337 RFQT_API_KEY_WHITELIST='["koolApiKey1"]' RFQT_MAKER_ENDPOINTS='["http://localhost:3000"]' nodemon -r dotenv/config src/index.ts -- --inspect-brk | pino-pretty
[nodemon] 1.19.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): src/**/*
[nodemon] watching extensions: ts,js,json,yaml,yml
12Mar13:01:07 [2 jobs] ~/dev/0x-monorepo/packages/asset-swapper[asset-swapper-rfqt $%<>]$ yarn build
yarn run v1.19.1
$ yarn tsc -b
$ /home/gene/dev/0x-monorepo/node_modules/.bin/tsc -b
src/utils/market_operation_utils/index.ts:94:13 - error TS2345: Argument of type 'BigNumber' is not assignable to parameter of type 'BigNumber[]'.
Property 'length' is missing in type 'BigNumber'.
94 fillableAmounts,
~~~~~~~~~~~~~~~
2020-01-25 00:25:27,594 - 10 - hummingbot.data_feed.coin_gecko_data_feed - INFO - Network status has changed to NetworkStatus.CONNECTED. Starting networking...
2020-01-25 00:25:28,124 - 10 - hummingbot.data_feed.coin_cap_data_feed - INFO - Network status has changed to NetworkStatus.CONNECTED. Starting networking...
2020-01-25 00:33:13,923 - 10 - hummingbot.market.coinbase_pro.coinbase_pro_market - INFO - Network status has changed to NetworkStatus.CONNECTED. Starting networking...
2020-01-25 00:33:14,307 - 10 - hummingbot.market.coinbase_pro.coinbase_pro_api_order_book_data_source - INFO - Initialized order book for ZRX-USD. 1/1 completed.
2020-01-25 00:33:14,913 - 10 - hummingbot.market.coinbase_pro.coinbase_pro_order_book_tracker - INFO - Started order book tracking for ZRX-USD.
2020-01-25 00:33:15,027 - 10 - hummingbot.strategy.pure_market_making.pure_market_making_v2 - INFO - (ZRX-USD) Creating limit bid orders at (Size, Price): ['1E+2 ZRX, 0.210122 USD'] [clock=2020-01-25 00:33:15+00:00]
2020-01-25 00:3
########################################################
### Pure market making strategy config ###
########################################################
template_version: 6
# The following configuations are only required for the
# pure market making strategy
# Exchange and token parameters
$ docker logs -f neptune-mesh-lk_relayer_1
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
Standard relayer API (HTTP) listening on port 4000!
Config: {
"WHITELISTED_TOKENS": "*",
"HTTP_PORT": 4000,
"CHAIN_ID": 1,
"MESH_ENDPOINT": "ws://mesh:60557",
"FEE_RECIPIENT": "0x0000000000000000000000000000000000000000",