SimBot 0.1.28 → 0.1.29

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8efaa639abdea13ef143bf2e6c9cb342d88b08f3ef9aba3bd7ab275c0f2a697
4
- data.tar.gz: 3d20c9ca89926fba085760d93b8b0791f47b91951a59dc19d1cd37521be9ce6f
3
+ metadata.gz: aa8e1dc118ee6925f55a9d32bd8cdd6b6d52def6f0867aa0d2b801940b347564
4
+ data.tar.gz: 89e55553ce0d0fa54fa261e7e56a4fa85a0fe775c33d0d3ec1b9c3e47b1795be
5
5
  SHA512:
6
- metadata.gz: 9bb05f18c41b500a4b6ad3b0a264f24662bea48d708cfb45d5665ad7c8d22945fddea8ff7e036246812c37add119b7da9c7683a091fe6db3a092ad39dd4f3225
7
- data.tar.gz: d3887c038d7454259171ddcaffd86f21eeefbc511b17204d644b867bff0989386f1c94c62ec6067e509f71a3518484bd7bbe958ec6e1a357352cb2c3d81a7688
6
+ metadata.gz: c2e1b168c514cd928fafee38393404cbb9b4c9a3e28ac9bcbc1397dc3419d837bb1287cd196abc2dc2a0001c8d13290c1b9a4d8d780feeb454bb93fd75e39dad
7
+ data.tar.gz: af1ae350b90060cc1cc010133a67d8ec69e8d39bc0650b3bab80485cfa30eb94d03729be4e17dd66402c1252faef180eab95831f2b2afb6f4501de672220bb71
data/.idea/workspace.xml CHANGED
@@ -2,6 +2,7 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="d905eaf2-5cab-434b-a4d1-1ccf165356a4" name="Default" comment="">
5
+ <change afterPath="$PROJECT_DIR$/lib/Deamons/geth.rb" afterDir="false" />
5
6
  <change afterPath="$PROJECT_DIR$/lib/Deamons/simple_mm.rb" afterDir="false" />
6
7
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
7
8
  <change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
@@ -38,8 +39,8 @@
38
39
  <file leaf-file-name="SimBot.rb" pinned="false" current-in-tab="true">
39
40
  <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
40
41
  <provider selected="true" editor-type-id="text-editor">
41
- <state relative-caret-position="236">
42
- <caret line="20" column="58" selection-start-line="20" selection-start-column="58" selection-end-line="20" selection-end-column="58" />
42
+ <state relative-caret-position="374">
43
+ <caret line="49" column="7" selection-start-line="49" selection-start-column="7" selection-end-line="49" selection-end-column="7" />
43
44
  </state>
44
45
  </provider>
45
46
  </entry>
@@ -65,8 +66,8 @@
65
66
  <file leaf-file-name="utils.rb" pinned="false" current-in-tab="false">
66
67
  <entry file="file://$PROJECT_DIR$/lib/utils.rb">
67
68
  <provider selected="true" editor-type-id="text-editor">
68
- <state relative-caret-position="2668">
69
- <caret line="116" column="93" selection-start-line="116" selection-start-column="31" selection-end-line="116" selection-end-column="93" />
69
+ <state relative-caret-position="23">
70
+ <caret line="116" column="81" selection-start-line="116" selection-start-column="81" selection-end-line="116" selection-end-column="81" />
70
71
  </state>
71
72
  </provider>
72
73
  </entry>
@@ -78,8 +79,17 @@
78
79
  <file leaf-file-name="barong.rb" pinned="false" current-in-tab="false">
79
80
  <entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
80
81
  <provider selected="true" editor-type-id="text-editor">
81
- <state relative-caret-position="299">
82
- <caret line="13" column="4" selection-start-line="13" selection-start-column="4" selection-end-line="13" selection-end-column="4" />
82
+ <state relative-caret-position="345">
83
+ <caret line="15" column="35" selection-start-line="15" selection-start-column="35" selection-end-line="15" selection-end-column="35" />
84
+ </state>
85
+ </provider>
86
+ </entry>
87
+ </file>
88
+ <file leaf-file-name="geth.rb" pinned="false" current-in-tab="false">
89
+ <entry file="file://$PROJECT_DIR$/lib/Deamons/geth.rb">
90
+ <provider selected="true" editor-type-id="text-editor">
91
+ <state relative-caret-position="368">
92
+ <caret line="24" column="31" lean-forward="true" selection-start-line="24" selection-start-column="31" selection-end-line="24" selection-end-column="31" />
83
93
  </state>
84
94
  </provider>
85
95
  </entry>
@@ -87,7 +97,7 @@
87
97
  <file leaf-file-name="peatio.rb" pinned="false" current-in-tab="false">
88
98
  <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
89
99
  <provider selected="true" editor-type-id="text-editor">
90
- <state relative-caret-position="208">
100
+ <state relative-caret-position="483">
91
101
  <caret line="21" column="49" selection-start-line="21" selection-start-column="49" selection-end-line="21" selection-end-column="49" />
92
102
  </state>
93
103
  </provider>
@@ -96,7 +106,7 @@
96
106
  <file leaf-file-name="wash_trade.rb" pinned="false" current-in-tab="false">
97
107
  <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
98
108
  <provider selected="true" editor-type-id="text-editor">
99
- <state relative-caret-position="186">
109
+ <state relative-caret-position="667">
100
110
  <caret line="29" column="19" selection-start-line="29" selection-start-column="19" selection-end-line="29" selection-end-column="19" />
101
111
  </state>
102
112
  </provider>
@@ -105,17 +115,8 @@
105
115
  <file leaf-file-name="simple_mm.rb" pinned="false" current-in-tab="false">
106
116
  <entry file="file://$PROJECT_DIR$/lib/Deamons/simple_mm.rb">
107
117
  <provider selected="true" editor-type-id="text-editor">
108
- <state relative-caret-position="231">
109
- <caret line="48" column="17" selection-start-line="48" selection-start-column="17" selection-end-line="48" selection-end-column="17" />
110
- </state>
111
- </provider>
112
- </entry>
113
- </file>
114
- <file leaf-file-name="mailer.rb" pinned="false" current-in-tab="false">
115
- <entry file="file://$PROJECT_DIR$/lib/mailer.rb">
116
- <provider selected="true" editor-type-id="text-editor">
117
- <state relative-caret-position="667">
118
- <caret line="29" column="5" selection-start-line="29" selection-start-column="5" selection-end-line="29" selection-end-column="5" />
118
+ <state relative-caret-position="621">
119
+ <caret line="27" column="7" selection-start-line="27" selection-start-column="7" selection-end-line="27" selection-end-column="7" />
119
120
  </state>
120
121
  </provider>
121
122
  </entry>
@@ -129,15 +130,6 @@
129
130
  </provider>
130
131
  </entry>
131
132
  </file>
132
- <file leaf-file-name="SimBot.gemspec" pinned="false" current-in-tab="false">
133
- <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
134
- <provider selected="true" editor-type-id="text-editor">
135
- <state relative-caret-position="943">
136
- <caret line="41" column="3" selection-start-line="41" selection-start-column="3" selection-end-line="41" selection-end-column="3" />
137
- </state>
138
- </provider>
139
- </entry>
140
- </file>
141
133
  </leaf>
142
134
  </split-second>
143
135
  </splitter>
@@ -177,18 +169,19 @@
177
169
  <option value="$PROJECT_DIR$/lib/mailer.rb" />
178
170
  <option value="$PROJECT_DIR$/SimBot.gemspec" />
179
171
  <option value="$PROJECT_DIR$/93964.outfile" />
180
- <option value="$PROJECT_DIR$/lib/ApiController/barong.rb" />
181
172
  <option value="$PROJECT_DIR$/99700.errfile" />
182
173
  <option value="$PROJECT_DIR$/2002.outfile" />
183
- <option value="$PROJECT_DIR$/lib/utils.rb" />
184
174
  <option value="$PROJECT_DIR$/90285.errfile" />
185
175
  <option value="$PROJECT_DIR$/90657.outfile" />
186
176
  <option value="$PROJECT_DIR$/90429.outfile" />
187
- <option value="$PROJECT_DIR$/lib/Deamons/simple_mm.rb" />
188
177
  <option value="$PROJECT_DIR$/98588.errfile" />
189
- <option value="$PROJECT_DIR$/lib/SimBot.rb" />
190
178
  <option value="$PROJECT_DIR$/lib/ApiController/peatio.rb" />
191
179
  <option value="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" />
180
+ <option value="$PROJECT_DIR$/lib/Deamons/simple_mm.rb" />
181
+ <option value="$PROJECT_DIR$/lib/utils.rb" />
182
+ <option value="$PROJECT_DIR$/lib/ApiController/barong.rb" />
183
+ <option value="$PROJECT_DIR$/lib/SimBot.rb" />
184
+ <option value="$PROJECT_DIR$/lib/Deamons/geth.rb" />
192
185
  <option value="$PROJECT_DIR$/lib/SimBot/version.rb" />
193
186
  </list>
194
187
  </option>
@@ -203,7 +196,7 @@
203
196
  <packageJsonPaths />
204
197
  </component>
205
198
  <component name="ProjectFrameBounds">
206
- <option name="x" value="1516" />
199
+ <option name="x" value="1615" />
207
200
  <option name="y" value="22" />
208
201
  <option name="width" value="1680" />
209
202
  <option name="height" value="1028" />
@@ -251,14 +244,15 @@
251
244
  <property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
252
245
  </component>
253
246
  <component name="RecentsManager">
254
- <key name="CopyFile.RECENT_KEYS">
255
- <recent name="$PROJECT_DIR$" />
256
- </key>
257
247
  <key name="MoveFile.RECENT_KEYS">
258
248
  <recent name="$PROJECT_DIR$/lib/ApiController" />
259
249
  <recent name="$PROJECT_DIR$/lib/Deamons" />
260
250
  <recent name="$PROJECT_DIR$/lib" />
261
251
  </key>
252
+ <key name="CopyFile.RECENT_KEYS">
253
+ <recent name="$PROJECT_DIR$/lib/Deamons" />
254
+ <recent name="$PROJECT_DIR$" />
255
+ </key>
262
256
  </component>
263
257
  <component name="RunDashboard">
264
258
  <option name="ruleStates">
@@ -314,12 +308,13 @@
314
308
  <workItem from="1532961242324" duration="27612000" />
315
309
  <workItem from="1534345863853" duration="3800000" />
316
310
  <workItem from="1535884475044" duration="1850000" />
317
- <workItem from="1538040677596" duration="3536000" />
311
+ <workItem from="1538040677596" duration="5889000" />
312
+ <workItem from="1539353817379" duration="1479000" />
318
313
  </task>
319
314
  <servers />
320
315
  </component>
321
316
  <component name="TimeTrackingManager">
322
- <option name="totallyTimeSpent" value="164426000" />
317
+ <option name="totallyTimeSpent" value="168258000" />
323
318
  </component>
324
319
  <component name="TodoView">
325
320
  <todo-panel id="selected-file">
@@ -331,21 +326,21 @@
331
326
  </todo-panel>
332
327
  </component>
333
328
  <component name="ToolWindowManager">
334
- <frame x="1516" y="22" width="1680" height="1028" extended-state="0" />
329
+ <frame x="1615" y="22" width="1680" height="1028" extended-state="0" />
335
330
  <editor active="true" />
336
331
  <layout>
337
- <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.17460318" />
332
+ <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.17643468" />
338
333
  <window_info anchor="bottom" id="TODO" order="6" weight="0.32995495" />
339
334
  <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
340
335
  <window_info anchor="bottom" id="Event Log" order="7" sideWeight="0.50904554" side_tool="true" weight="0.3457207" />
341
336
  <window_info anchor="right" id="Database" order="3" />
342
337
  <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
343
- <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48658764" weight="0.3536036" />
344
338
  <window_info anchor="bottom" id="Version Control" order="7" weight="0.3292683" />
339
+ <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48658764" weight="0.3536036" />
345
340
  <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
346
- <window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49095446" visible="true" weight="0.3490991" />
347
- <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
341
+ <window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49095446" visible="true" weight="0.34845132" />
348
342
  <window_info id="Favorites" order="2" side_tool="true" />
343
+ <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
349
344
  <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
350
345
  <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
351
346
  <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
@@ -359,19 +354,19 @@
359
354
  <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
360
355
  <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
361
356
  <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
362
- <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
363
357
  <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2123369" />
364
358
  <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
365
359
  <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
366
360
  <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
367
361
  <window_info anchor="bottom" id="TODO" order="6" />
362
+ <window_info anchor="bottom" id="Version Control" order="11" />
368
363
  <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48719722" weight="0.28540304" />
369
364
  <window_info anchor="bottom" id="Find" order="1" sideWeight="0.49896193" weight="0.32897604" />
370
365
  <window_info anchor="right" id="Database" order="3" />
371
366
  <window_info anchor="bottom" id="Terminal" order="9" sideWeight="0.49619377" weight="0.41463414" />
372
367
  <window_info anchor="bottom" id="Event Log" order="10" sideWeight="0.50380623" side_tool="true" weight="0.28540304" />
373
368
  <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
374
- <window_info anchor="bottom" id="Version Control" order="11" />
369
+ <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
375
370
  <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
376
371
  <window_info anchor="bottom" id="Message" order="0" />
377
372
  <window_info anchor="bottom" id="Messages" order="12" sideWeight="0.49965397" weight="0.3293348" />
@@ -393,118 +388,6 @@
393
388
  </breakpoint-manager>
394
389
  </component>
395
390
  <component name="editorHistoryManager">
396
- <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
397
- <provider selected="true" editor-type-id="text-editor">
398
- <state relative-caret-position="345">
399
- <caret line="15" column="7" lean-forward="true" selection-start-line="15" selection-start-column="7" selection-end-line="15" selection-end-column="7" />
400
- </state>
401
- </provider>
402
- </entry>
403
- <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
404
- <provider selected="true" editor-type-id="text-editor">
405
- <state relative-caret-position="368">
406
- <caret line="16" column="62" selection-start-line="16" selection-start-column="54" selection-end-line="16" selection-end-column="62" />
407
- </state>
408
- </provider>
409
- </entry>
410
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
411
- <provider selected="true" editor-type-id="text-editor">
412
- <state relative-caret-position="2668">
413
- <caret line="116" column="93" selection-start-line="116" selection-start-column="31" selection-end-line="116" selection-end-column="93" />
414
- </state>
415
- </provider>
416
- </entry>
417
- <entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
418
- <provider selected="true" editor-type-id="text-editor">
419
- <state relative-caret-position="299">
420
- <caret line="13" column="4" selection-start-line="13" selection-start-column="4" selection-end-line="13" selection-end-column="4" />
421
- </state>
422
- </provider>
423
- </entry>
424
- <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
425
- <provider selected="true" editor-type-id="text-editor">
426
- <state relative-caret-position="782">
427
- <caret line="34" column="24" selection-start-line="34" selection-start-column="24" selection-end-line="34" selection-end-column="24" />
428
- </state>
429
- </provider>
430
- </entry>
431
- <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
432
- <provider selected="true" editor-type-id="text-editor">
433
- <state relative-caret-position="920">
434
- <caret line="40" column="7" selection-start-line="40" selection-start-column="7" selection-end-line="40" selection-end-column="7" />
435
- </state>
436
- </provider>
437
- </entry>
438
- <entry file="file://$PROJECT_DIR$/lib/mailer.rb">
439
- <provider selected="true" editor-type-id="text-editor">
440
- <state relative-caret-position="667">
441
- <caret line="29" column="5" selection-start-line="29" selection-start-column="5" selection-end-line="29" selection-end-column="5" />
442
- </state>
443
- </provider>
444
- </entry>
445
- <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
446
- <provider selected="true" editor-type-id="text-editor">
447
- <state relative-caret-position="23">
448
- <caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
449
- </state>
450
- </provider>
451
- </entry>
452
- <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
453
- <provider selected="true" editor-type-id="text-editor">
454
- <state relative-caret-position="943">
455
- <caret line="41" column="3" selection-start-line="41" selection-start-column="3" selection-end-line="41" selection-end-column="3" />
456
- </state>
457
- </provider>
458
- </entry>
459
- <entry file="file://$PROJECT_DIR$/lib/Deamons/simple_mm.rb">
460
- <provider selected="true" editor-type-id="text-editor">
461
- <state relative-caret-position="1104">
462
- <caret line="48" column="17" selection-start-line="48" selection-start-column="17" selection-end-line="48" selection-end-column="17" />
463
- </state>
464
- </provider>
465
- </entry>
466
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
467
- <provider selected="true" editor-type-id="text-editor">
468
- <state relative-caret-position="2668">
469
- <caret line="116" column="78" selection-start-line="116" selection-start-column="78" selection-end-line="116" selection-end-column="78" />
470
- </state>
471
- </provider>
472
- </entry>
473
- <entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
474
- <provider selected="true" editor-type-id="text-editor">
475
- <state relative-caret-position="299">
476
- <caret line="13" column="4" selection-start-line="13" selection-start-column="4" selection-end-line="13" selection-end-column="4" />
477
- </state>
478
- </provider>
479
- </entry>
480
- <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
481
- <provider selected="true" editor-type-id="text-editor">
482
- <state relative-caret-position="782">
483
- <caret line="34" column="24" selection-start-line="34" selection-start-column="24" selection-end-line="34" selection-end-column="24" />
484
- </state>
485
- </provider>
486
- </entry>
487
- <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
488
- <provider selected="true" editor-type-id="text-editor">
489
- <state relative-caret-position="920">
490
- <caret line="40" column="7" lean-forward="true" selection-start-line="40" selection-start-column="7" selection-end-line="40" selection-end-column="7" />
491
- </state>
492
- </provider>
493
- </entry>
494
- <entry file="file://$PROJECT_DIR$/lib/mailer.rb">
495
- <provider selected="true" editor-type-id="text-editor">
496
- <state relative-caret-position="667">
497
- <caret line="29" column="5" lean-forward="true" selection-start-line="29" selection-start-column="5" selection-end-line="29" selection-end-column="5" />
498
- </state>
499
- </provider>
500
- </entry>
501
- <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
502
- <provider selected="true" editor-type-id="text-editor">
503
- <state relative-caret-position="23">
504
- <caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
505
- </state>
506
- </provider>
507
- </entry>
508
391
  <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
509
392
  <provider selected="true" editor-type-id="text-editor">
510
393
  <state relative-caret-position="943">
@@ -534,21 +417,7 @@
534
417
  <entry file="file://$PROJECT_DIR$/99548.outfile" />
535
418
  <entry file="file://$PROJECT_DIR$/99773.outfile" />
536
419
  <entry file="file://$PROJECT_DIR$/18251.errfile" />
537
- <entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
538
- <provider selected="true" editor-type-id="text-editor">
539
- <state relative-caret-position="299">
540
- <caret line="13" column="4" selection-start-line="13" selection-start-column="4" selection-end-line="13" selection-end-column="4" />
541
- </state>
542
- </provider>
543
- </entry>
544
420
  <entry file="file://$PROJECT_DIR$/90285.errfile" />
545
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
546
- <provider selected="true" editor-type-id="text-editor">
547
- <state relative-caret-position="2668">
548
- <caret line="116" column="93" selection-start-line="116" selection-start-column="31" selection-end-line="116" selection-end-column="93" />
549
- </state>
550
- </provider>
551
- </entry>
552
421
  <entry file="file://$PROJECT_DIR$/90657.outfile" />
553
422
  <entry file="file://$PROJECT_DIR$/90429.outfile" />
554
423
  <entry file="file://$PROJECT_DIR$/lib/mailer.rb">
@@ -567,59 +436,109 @@
567
436
  </state>
568
437
  </provider>
569
438
  </entry>
570
- <entry file="file://$PROJECT_DIR$/98588.errfile">
439
+ <entry file="file://$PROJECT_DIR$/98588.errfile" />
440
+ <entry file="file://$PROJECT_DIR$/spec/SimBot_spec.rb">
571
441
  <provider selected="true" editor-type-id="text-editor">
572
- <state relative-caret-position="452">
573
- <caret line="1053" lean-forward="true" selection-start-line="1053" selection-end-line="1053" />
442
+ <state relative-caret-position="161">
443
+ <caret line="7" column="5" selection-start-line="7" selection-start-column="5" selection-end-line="7" selection-end-column="5" />
574
444
  </state>
575
445
  </provider>
576
446
  </entry>
577
- <entry file="file://$PROJECT_DIR$/spec/SimBot_spec.rb">
447
+ <entry file="file://$PROJECT_DIR$/98672.errfile" />
448
+ <entry file="file://$PROJECT_DIR$/98975.errfile" />
449
+ <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
578
450
  <provider selected="true" editor-type-id="text-editor">
579
- <state relative-caret-position="161">
580
- <caret line="7" column="5" selection-start-line="7" selection-start-column="5" selection-end-line="7" selection-end-column="5" />
451
+ <state relative-caret-position="483">
452
+ <caret line="21" column="49" selection-start-line="21" selection-start-column="49" selection-end-line="21" selection-end-column="49" />
581
453
  </state>
582
454
  </provider>
583
455
  </entry>
584
- <entry file="file://$PROJECT_DIR$/98672.errfile">
456
+ <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
585
457
  <provider selected="true" editor-type-id="text-editor">
586
- <state relative-caret-position="161">
587
- <caret line="7" column="64" selection-start-line="7" selection-start-column="64" selection-end-line="7" selection-end-column="64" />
458
+ <state relative-caret-position="667">
459
+ <caret line="29" column="19" selection-start-line="29" selection-start-column="19" selection-end-line="29" selection-end-column="19" />
588
460
  </state>
589
461
  </provider>
590
462
  </entry>
591
- <entry file="file://$PROJECT_DIR$/98975.errfile">
463
+ <entry file="file://$PROJECT_DIR$/5834.errfile" />
464
+ <entry file="file://$PROJECT_DIR$/lib/utils.rb">
592
465
  <provider selected="true" editor-type-id="text-editor">
593
- <state relative-caret-position="207">
594
- <caret line="9" column="73" selection-start-line="9" selection-start-column="42" selection-end-line="9" selection-end-column="73" />
466
+ <state relative-caret-position="23">
467
+ <caret line="116" column="81" selection-start-line="116" selection-start-column="81" selection-end-line="116" selection-end-column="81" />
595
468
  </state>
596
469
  </provider>
597
470
  </entry>
598
- <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
471
+ <entry file="file://$PROJECT_DIR$/lib/Deamons/simple_mm.rb">
599
472
  <provider selected="true" editor-type-id="text-editor">
600
- <state relative-caret-position="208">
601
- <caret line="21" column="49" selection-start-line="21" selection-start-column="49" selection-end-line="21" selection-end-column="49" />
473
+ <state relative-caret-position="621">
474
+ <caret line="27" column="7" selection-start-line="27" selection-start-column="7" selection-end-line="27" selection-end-column="7" />
602
475
  </state>
603
476
  </provider>
604
477
  </entry>
605
- <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
478
+ <entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
606
479
  <provider selected="true" editor-type-id="text-editor">
607
- <state relative-caret-position="186">
608
- <caret line="29" column="19" selection-start-line="29" selection-start-column="19" selection-end-line="29" selection-end-column="19" />
480
+ <state relative-caret-position="345">
481
+ <caret line="15" column="35" selection-start-line="15" selection-start-column="35" selection-end-line="15" selection-end-column="35" />
609
482
  </state>
610
483
  </provider>
611
484
  </entry>
612
485
  <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
613
486
  <provider selected="true" editor-type-id="text-editor">
614
- <state relative-caret-position="236">
615
- <caret line="20" column="58" selection-start-line="20" selection-start-column="58" selection-end-line="20" selection-end-column="58" />
487
+ <state relative-caret-position="374">
488
+ <caret line="49" column="7" selection-start-line="49" selection-start-column="7" selection-end-line="49" selection-end-column="7" />
616
489
  </state>
617
490
  </provider>
618
491
  </entry>
619
- <entry file="file://$PROJECT_DIR$/lib/Deamons/simple_mm.rb">
492
+ <entry file="file://$PROJECT_DIR$/18219.pid">
493
+ <provider selected="true" editor-type-id="text-editor" />
494
+ </entry>
495
+ <entry file="file://$PROJECT_DIR$/18252.errfile">
496
+ <provider selected="true" editor-type-id="text-editor" />
497
+ </entry>
498
+ <entry file="file://$PROJECT_DIR$/18252.outfile">
499
+ <provider selected="true" editor-type-id="text-editor" />
500
+ </entry>
501
+ <entry file="file://$PROJECT_DIR$/18219.outfile">
502
+ <provider selected="true" editor-type-id="text-editor" />
503
+ </entry>
504
+ <entry file="file://$PROJECT_DIR$/18301.errfile">
505
+ <provider selected="true" editor-type-id="text-editor" />
506
+ </entry>
507
+ <entry file="file://$PROJECT_DIR$/18301.pid">
508
+ <provider selected="true" editor-type-id="text-editor" />
509
+ </entry>
510
+ <entry file="file://$PROJECT_DIR$/18301.outfile">
511
+ <provider selected="true" editor-type-id="text-editor">
512
+ <state relative-caret-position="23">
513
+ <caret line="1" lean-forward="true" selection-start-line="1" selection-end-line="1" />
514
+ </state>
515
+ </provider>
516
+ </entry>
517
+ <entry file="file://$PROJECT_DIR$/18341.errfile">
518
+ <provider selected="true" editor-type-id="text-editor" />
519
+ </entry>
520
+ <entry file="file://$PROJECT_DIR$/18341.outfile">
521
+ <provider selected="true" editor-type-id="text-editor" />
522
+ </entry>
523
+ <entry file="file://$PROJECT_DIR$/18584.outfile">
524
+ <provider selected="true" editor-type-id="text-editor" />
525
+ </entry>
526
+ <entry file="file://$PROJECT_DIR$/18799.outfile">
527
+ <provider selected="true" editor-type-id="text-editor" />
528
+ </entry>
529
+ <entry file="file://$PROJECT_DIR$/18834.errfile">
530
+ <provider selected="true" editor-type-id="text-editor" />
531
+ </entry>
532
+ <entry file="file://$PROJECT_DIR$/18834.outfile">
533
+ <provider selected="true" editor-type-id="text-editor" />
534
+ </entry>
535
+ <entry file="file://$PROJECT_DIR$/18862.outfile">
536
+ <provider selected="true" editor-type-id="text-editor" />
537
+ </entry>
538
+ <entry file="file://$PROJECT_DIR$/lib/Deamons/geth.rb">
620
539
  <provider selected="true" editor-type-id="text-editor">
621
- <state relative-caret-position="231">
622
- <caret line="48" column="17" selection-start-line="48" selection-start-column="17" selection-end-line="48" selection-end-column="17" />
540
+ <state relative-caret-position="368">
541
+ <caret line="24" column="31" lean-forward="true" selection-start-line="24" selection-start-column="31" selection-end-line="24" selection-end-column="31" />
623
542
  </state>
624
543
  </provider>
625
544
  </entry>
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- SimBot (0.1.27)
4
+ SimBot (0.1.28)
5
5
  json
6
6
  mail
7
7
  rest-client
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Deamons
4
+ # Simple process to add wash trades to a market in order to simulate trade matching for QA and dev
5
+ class Geth
6
+ require 'utils'
7
+
8
+ def initialize
9
+ Process.fork do
10
+ Process.daemon(true)
11
+ pid = Process.pid
12
+ redirect("#{pid}.outfile", "#{pid}.errfile")
13
+ write_pid_file(pid, "#{pid}.pid")
14
+ start
15
+ end
16
+ puts "Starting Daemon..."
17
+ end
18
+
19
+ def start
20
+ cmd = "#{ENV.fetch('GETH')} --syncmode=light --rinkeby --rpc --rpcaddr=0.0.0.0 --rpcport=8545 --port=30303 --rpcapi='db,personal,eth,net,web3' --rpccorsdomain='*' --rpcvhosts='*'"
21
+ system(cmd)
22
+ cmd = "#{ENV.fetch('NGROK')}./ngrok http 8545"
23
+ system(cmd)
24
+ rescue ::StandardError => e
25
+ STDERR.puts e.backtrace
26
+ STDERR.puts '\n'
27
+ end
28
+
29
+ # Attempts to write the pid of the forked process to the pid file.
30
+ # @param [Integer] pid
31
+ # @param [String] pidfile
32
+ # @return [Integer and File]
33
+ def write_pid_file(pid, pidfile)
34
+ File.open pidfile, "w" do |f|
35
+ f.write pid
36
+ end
37
+ rescue ::Exception => e
38
+ $stderr.puts "While writing the PID to file, unexpected #{e.class}: #{e}"
39
+ Process.kill "HUP", pid
40
+ end
41
+
42
+ # Send stdout and stderr to log files for the child process
43
+ # @param [String] outfile
44
+ # @param [String] errfile
45
+ # @return [TrueClass]
46
+ def redirect(outfile, errfile)
47
+ $stdin.reopen '/dev/null'
48
+ out = File.new outfile, "a"
49
+ err = File.new errfile, "a"
50
+ $stdout.reopen out
51
+ $stderr.reopen err
52
+ $stdout.sync = $stderr.sync = true
53
+ end
54
+ end
55
+ end
@@ -23,7 +23,7 @@ module Deamons
23
23
  count = 0
24
24
  puts "--------#{@market} -------"
25
25
  loop do
26
- data = Utils.binane_order_book
26
+ data = Utils.binance_order_book
27
27
  populate_order_book(data)
28
28
  count += 1
29
29
  rescue ::StandardError => e
data/lib/SimBot.rb CHANGED
@@ -8,6 +8,7 @@ require_relative 'mailer'
8
8
  require_relative 'ApiController/peatio'
9
9
  require_relative 'Deamons/wash_trade'
10
10
  require_relative 'Deamons/simple_mm'
11
+ require_relative 'Deamons/geth'
11
12
  module SimBot
12
13
  # CLI for controlling the SimBot
13
14
  class CLI < Thor
@@ -43,6 +44,10 @@ module SimBot
43
44
  def stop(pid)
44
45
  Utils.kill_process(pid)
45
46
  end
47
+ desc 'Start geth daemon', 'Start a geth damon light node in the background'
48
+ def geth
49
+ Deamons::Geth.new
50
+ end
46
51
  desc 'test_ws', 'connect to web socket and test it is working correctly'
47
52
  def test_ws
48
53
  # Create websocket connection.
@@ -1,3 +1,3 @@
1
1
  module SimBot
2
- VERSION = "0.1.28"
2
+ VERSION = "0.1.29"
3
3
  end
data/lib/utils.rb CHANGED
@@ -113,8 +113,8 @@ class Utils
113
113
 
114
114
  # fetch binance order book
115
115
  # @return [float] rate
116
- def self.binane_order_book
117
- response = RestClient.get('https://api.binance.com/api/v1/depth?symbol=BTCUSDT&limit=500')
116
+ def self.binance_order_book
117
+ response = RestClient.get('https://api.binance.com/api/v1/depth?symbol=BCCBTC&limit=500')
118
118
  hash = JSON.parse(response.body)
119
119
  bids = hash['bids']
120
120
  asks = hash['asks']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SimBot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Ovadia
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-27 00:00:00.000000000 Z
11
+ date: 2018-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -174,6 +174,7 @@ files:
174
174
  - exportToHTML/mailer.rb.html
175
175
  - lib/ApiController/barong.rb
176
176
  - lib/ApiController/peatio.rb
177
+ - lib/Deamons/geth.rb
177
178
  - lib/Deamons/simple_mm.rb
178
179
  - lib/Deamons/wash_trade.rb
179
180
  - lib/SimBot.rb