Skip to content

Instantly share code, notes, and snippets.

Tom Haile bthaile

  • TerraValue
  • Austin TX
Block or report user

Report or block bthaile

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bthaile
bthaile / market no prices
Created Apr 7, 2020
Market from db but has no prices
View market no prices
{
"name": "MarketFinalized",
"universe": "0x0fF6ee01f88145298761a29A0372Ed24E16E73B1",
"endTime": 1606358735,
"extraInfo": {
"categories": [
"flash",
"reasonable",
"yesno"
],
View zeroX mesh order failure
[ '0x913dA4198E6bE1D5f5E4a40D0667f70C0B5430Eb',
'0x0000000000000000000000000000000000000000',
'0x0000000000000000000000000000000000000000',
'0x0000000000000000000000000000000000000000',
BigNumber { _hex: '0x29a334f4279ac000' },
BigNumber { _hex: '0x29a334f4279ac000' },
BigNumber { _hex: '0x00' },
BigNumber { _hex: '0x00' },
BigNumber { _hex: '0x5dfa3fbc' },
BigNumber { _hex: '0x016f195b3367' },
View Dexie error
(node:19220) UnhandledPromiseRejectionWarning: MissingAPIError: indexedDB API not found. If using IE10+, make sure to run your code on a server URL (not locally). If using old Safari versions, make sure to include indexedDB polyfill.
at /Users/bthaile/gitrepos/augur/node_modules/dexie/src/Dexie.js:492:35
at executePromiseTask (/Users/bthaile/gitrepos/augur/node_modules/dexie/src/Promise.js:373:9)
at new Promise (/Users/bthaile/gitrepos/augur/node_modules/dexie/src/Promise.js:172:5)
at Dexie.open (/Users/bthaile/gitrepos/augur/node_modules/dexie/src/Dexie.js:485:45)
at DB.<anonymous> (/Users/bthaile/gitrepos/augur/packages/augur-sdk/src/state/db/DB.ts:156:24)
at step (/Users/bthaile/gitrepos/augur/packages/augur-sdk/build/state/db/DB.js:33:23)
at Object.next (/Users/bthaile/gitrepos/augur/packages/augur-sdk/build/state/db/DB.js:14:53)
at /Users/bthaile/gitrepos/augur/packages/augur-sdk/build/state/db/DB.js:8:71
at new Promise (<anonymous>)
@bthaile
bthaile / error with connect in flash.
Last active Sep 10, 2019
trying to connect in flash and getting error
View error with connect in flash.
[bthaile@mbp:~/gitrepos/augur (fix-scalar-reporting *)]$ yarn flash interactive
yarn run v1.17.3
$ yarn workspace @augurproject/tools flash interactive
$ ts-node ./src/flash/cli interactive
augur$ connect -u
(node:34346) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 destroyed listeners added. Use emitter.setMaxListeners() to increase limit
(node:34346) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 closed listeners added. Use emitter.setMaxListeners() to increase limit
(node:34346) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 destroyed listeners added. Use emitter.setMaxListeners() to increase limit
(node:34346) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 closed listeners added. Use emitter.setMaxListeners() to increase limit
(node:34346) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 destroyed listeners added. Use emitter.setMaxListeners() to increase limit
View user created YesNo market reverse long position to short.md
market: 0x1EB92Bb28C4dE30B4b6E17f44bd11ce4ed8CB16D
first trade 
  long 3 at 0.5, cost 1.50
{"_direction":"0","_market":"0x4a87EC1fbfd76233e0Ab8BC56c75E9C52631E536","_outcome":"2","_amount":"30000000000000000","_price":"50","_betterOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_worseOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_tradeGroupId":"0x363537303765612d636239332d346238352d393964632d346630376362616500","_loopLimit":"2","_affiliateAddress":"0x0000000000000000000000000000000000000000","_kycToken":"0x0000000000000000000000000000000000000000"}
View profit loss, cat long to short position.md
market: 0x25D690355b8E2C5e6966FB902C16373fEBbD0f48
first trade 
  long 5 at 0.31, cost 1.55
{"_direction":"0","_market":"0x25D690355b8E2C5e6966FB902C16373fEBbD0f48","_outcome":"5","_amount":"50000000000000000","_price":"31","_betterOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_worseOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_tradeGroupId":"0x303531616132322d373838632d346335382d613136662d393064396531316300","_loopLimit":"1","_affiliateAddress":"0x0000000000000000000000000000000000000000","_kycToken":"0x0000000000000000000000000000000000000000"}
View Profit and loss (long then short pos).md

First example user goes long then short.

market: 0x2626DA305c91d0535216a59d793f3330f829074F
first trade 
  long 5 at 0.4, cost 2
{"_direction":"0","_market":"0x2626DA305c91d0535216a59d793f3330f829074F","_outcome":"1","_amount":"50000000000000000","_price":"40","_betterOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_worseOrderId":"0x0000000000000000000000000000000000000000000000000000000000000000","_tradeGroupId":"0x656236663431332d633535612d343963642d386364652d333065623838363200","_loopLimit":"2","_affiliateAddress":"0x0000000000000000000000000000000000000000","_kycToken":"0x0000000000000000000000000000000000000000"}
View gist:c0c8290ba6fce0f880757d3aba743900
{id: "a0f41b2c42c747b49064aee66e7ccc79", status: "LOAD_CRP",…}
id: "a0f41b2c42c747b49064aee66e7ccc79"
payload: [{Id: 0, DocumentId: "FvfPjyvzYLfsZaTpI9GY", Created: "2019-07-27T12:00:03.886714Z",…},…]
0: {Id: 0, DocumentId: "FvfPjyvzYLfsZaTpI9GY", Created: "2019-07-27T12:00:03.886714Z",…}
1: {Id: 0, DocumentId: "htHcZrwfddWGyCIiMkyO", Created: "2019-07-27T11:59:46.949218Z",…}
2: {Id: 0, DocumentId: "KQNReTm9awQ0utoyfbpH", Created: "2019-07-26T12:18:49.879107Z",…}
3: {Id: 0, DocumentId: "iFfmABLWX1uNNBL0VXXR", Created: "2019-07-26T12:18:53.035363Z",…}
4: {Id: 0, DocumentId: "PkfWA5oUtEOSqoUvvwbs", Created: "2019-07-25T12:32:27.366528Z",…}
5: {Id: 0, DocumentId: "szr9szUMJ24f5JYyabX5", Created: "2019-07-24T10:59:01.33505Z",…}
6: {Id: 0, DocumentId: "USskBNHZJBr7shVJFxCi", Created: "2019-07-24T10:59:01.428796Z",…}
@bthaile
bthaile / gist:63d3b249dafae5487ecd2061c0c7897a
Created Jul 17, 2019
Cannot read property 'rollback' of undefined
View gist:63d3b249dafae5487ecd2061c0c7897a
DB.ts?b8fd:315 Uncaught (in promise) TypeError: Cannot read property 'rollback' of undefined
at DB.eval (DB.ts?b8fd:315)
at step (DB.js:32)
at Object.eval [as next] (DB.js:13)
at fulfilled (DB.js:4)
(anonymous) @ DB.ts?b8fd:315
step @ DB.js:32
(anonymous) @ DB.js:13
fulfilled @ DB.js:4
Promise.then (async)
@bthaile
bthaile / gist:cd8c058c37d2fc2ab13cbc093cc4e2ec
Created Jul 17, 2019
TypeError: Cannot read property 'sync' of undefined
View gist:cd8c058c37d2fc2ab13cbc093cc4e2ec
Uncaught (in promise) TypeError: Cannot read property 'sync' of undefined
at DB.eval (DB.ts?b8fd:204)
at step (DB.js:32)
at Object.eval [as next] (DB.js:13)
at fulfilled (DB.js:4)
(anonymous) @ DB.ts?b8fd:204
step @ DB.js:32
(anonymous) @ DB.js:13
fulfilled @ DB.js:4
Promise.then (async)
You can’t perform that action at this time.