SimBot 0.1.30 → 0.1.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/.idea/workspace.xml +198 -137
- data/19071.errfile +17 -0
- data/19071.outfile +0 -0
- data/19071.pid +1 -0
- data/Gemfile.lock +1 -1
- data/lib/Deamons/bitcoind-abc.rb +53 -0
- data/lib/Deamons/bitcoind.rb +53 -0
- data/lib/Deamons/geth.rb +0 -2
- data/lib/Deamons/litecoind.rb +53 -0
- data/lib/SimBot.rb +15 -3
- data/lib/SimBot/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed21f15400040c91dd2d531c9c41a65f0e46a2f93a6093c9232b7947ec5a3448
|
4
|
+
data.tar.gz: e3740d40bdc90a118ff4f23ea67ba45e4b9be00755efcc192bd74cddc4997816
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c166de558decadf4528b908a305af34c15fb76174aeac9daa25fde59a4210ed13eecb64f41603a9cd52c15d046d8448f958a18fa4d061335d9934e2cf33d8e86
|
7
|
+
data.tar.gz: ff13663172d2d36aec5fef689c1065512a2743ae4407e2d25483de36ec8f8ab9e041c27b4c9f02d56214180255d0aaf9612093451ccae5aaa5a13e9779e37793
|
data/.DS_Store
CHANGED
Binary file
|
data/.idea/workspace.xml
CHANGED
@@ -2,22 +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" />
|
6
|
-
<change afterPath="$PROJECT_DIR$/lib/Deamons/ngrok.rb" afterDir="false" />
|
7
|
-
<change afterPath="$PROJECT_DIR$/lib/Deamons/simple_mm.rb" afterDir="false" />
|
8
|
-
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
9
|
-
<change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
|
10
|
-
<change beforePath="$PROJECT_DIR$/SimBot-0.1.18.gem" beforeDir="false" />
|
11
|
-
<change beforePath="$PROJECT_DIR$/SimBot-0.1.19.gem" beforeDir="false" />
|
12
|
-
<change beforePath="$PROJECT_DIR$/SimBot.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/SimBot.gemspec" afterDir="false" />
|
13
|
-
<change beforePath="$PROJECT_DIR$/lib/ApiController/barong.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/ApiController/barong.rb" afterDir="false" />
|
14
|
-
<change beforePath="$PROJECT_DIR$/lib/ApiController/peatio.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/ApiController/peatio.rb" afterDir="false" />
|
15
|
-
<change beforePath="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" afterDir="false" />
|
16
|
-
<change beforePath="$PROJECT_DIR$/lib/SimBot.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot.rb" afterDir="false" />
|
17
5
|
<change beforePath="$PROJECT_DIR$/lib/SimBot/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot/version.rb" afterDir="false" />
|
18
|
-
<change beforePath="$PROJECT_DIR$/lib/mailer.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/mailer.rb" afterDir="false" />
|
19
|
-
<change beforePath="$PROJECT_DIR$/lib/utils.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/utils.rb" afterDir="false" />
|
20
|
-
<change beforePath="$PROJECT_DIR$/project_email_data.xls" beforeDir="false" afterPath="$PROJECT_DIR$/project_email_data.xls" afterDir="false" />
|
21
6
|
</list>
|
22
7
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
23
8
|
<option name="TRACKING_ENABLED" value="true" />
|
@@ -33,6 +18,42 @@
|
|
33
18
|
<option name="printScope" value="1" />
|
34
19
|
<option name="OUTPUT_DIRECTORY" value="$PROJECT_DIR$/exportToHTML" />
|
35
20
|
</component>
|
21
|
+
<component name="FUSProjectUsageTrigger">
|
22
|
+
<session id="-694921373">
|
23
|
+
<usages-collector id="statistics.lifecycle.project">
|
24
|
+
<counts>
|
25
|
+
<entry key="project.open.time.10" value="1" />
|
26
|
+
<entry key="project.opened" value="1" />
|
27
|
+
</counts>
|
28
|
+
</usages-collector>
|
29
|
+
<usages-collector id="statistics.file.extensions.open">
|
30
|
+
<counts>
|
31
|
+
<entry key="Gemfile" value="1" />
|
32
|
+
<entry key="SimBot" value="1" />
|
33
|
+
<entry key="console" value="1" />
|
34
|
+
<entry key="gemspec" value="1" />
|
35
|
+
<entry key="rb" value="7" />
|
36
|
+
<entry key="setup" value="1" />
|
37
|
+
</counts>
|
38
|
+
</usages-collector>
|
39
|
+
<usages-collector id="statistics.file.types.open">
|
40
|
+
<counts>
|
41
|
+
<entry key="PLAIN_TEXT" value="1" />
|
42
|
+
<entry key="Ruby" value="11" />
|
43
|
+
</counts>
|
44
|
+
</usages-collector>
|
45
|
+
<usages-collector id="statistics.file.extensions.edit">
|
46
|
+
<counts>
|
47
|
+
<entry key="rb" value="200" />
|
48
|
+
</counts>
|
49
|
+
</usages-collector>
|
50
|
+
<usages-collector id="statistics.file.types.edit">
|
51
|
+
<counts>
|
52
|
+
<entry key="Ruby" value="200" />
|
53
|
+
</counts>
|
54
|
+
</usages-collector>
|
55
|
+
</session>
|
56
|
+
</component>
|
36
57
|
<component name="FileEditorManager">
|
37
58
|
<splitter split-orientation="horizontal" split-proportion="0.5059264">
|
38
59
|
<split-first>
|
@@ -40,27 +61,22 @@
|
|
40
61
|
<file leaf-file-name="SimBot.rb" pinned="false" current-in-tab="false">
|
41
62
|
<entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
|
42
63
|
<provider selected="true" editor-type-id="text-editor">
|
43
|
-
<state relative-caret-position="
|
44
|
-
<caret line="
|
64
|
+
<state relative-caret-position="1173">
|
65
|
+
<caret line="63" column="15" selection-start-line="63" selection-start-column="15" selection-end-line="63" selection-end-column="15" />
|
45
66
|
</state>
|
46
67
|
</provider>
|
47
68
|
</entry>
|
48
69
|
</file>
|
49
|
-
<file leaf-file-name="19071.outfile" pinned="false" current-in-tab="false">
|
50
|
-
<entry file="file://$PROJECT_DIR$/19071.outfile">
|
51
|
-
<provider selected="true" editor-type-id="text-editor" />
|
52
|
-
</entry>
|
53
|
-
</file>
|
54
70
|
<file leaf-file-name="19071.errfile" pinned="false" current-in-tab="false">
|
55
71
|
<entry file="file://$PROJECT_DIR$/19071.errfile">
|
56
72
|
<provider selected="true" editor-type-id="text-editor">
|
57
73
|
<state relative-caret-position="391">
|
58
|
-
<caret line="17"
|
74
|
+
<caret line="17" selection-start-line="17" selection-end-line="17" />
|
59
75
|
</state>
|
60
76
|
</provider>
|
61
77
|
</entry>
|
62
78
|
</file>
|
63
|
-
<file leaf-file-name="SimBot_spec.rb" pinned="false" current-in-tab="
|
79
|
+
<file leaf-file-name="SimBot_spec.rb" pinned="false" current-in-tab="false">
|
64
80
|
<entry file="file://$PROJECT_DIR$/spec/SimBot_spec.rb">
|
65
81
|
<provider selected="true" editor-type-id="text-editor">
|
66
82
|
<state relative-caret-position="161">
|
@@ -78,10 +94,10 @@
|
|
78
94
|
</provider>
|
79
95
|
</entry>
|
80
96
|
</file>
|
81
|
-
<file leaf-file-name="utils.rb" pinned="false" current-in-tab="
|
97
|
+
<file leaf-file-name="utils.rb" pinned="false" current-in-tab="true">
|
82
98
|
<entry file="file://$PROJECT_DIR$/lib/utils.rb">
|
83
99
|
<provider selected="true" editor-type-id="text-editor">
|
84
|
-
<state relative-caret-position="
|
100
|
+
<state relative-caret-position="290">
|
85
101
|
<caret line="116" column="81" selection-start-line="116" selection-start-column="81" selection-end-line="116" selection-end-column="81" />
|
86
102
|
</state>
|
87
103
|
</provider>
|
@@ -103,8 +119,8 @@
|
|
103
119
|
<file leaf-file-name="geth.rb" pinned="false" current-in-tab="false">
|
104
120
|
<entry file="file://$PROJECT_DIR$/lib/Deamons/geth.rb">
|
105
121
|
<provider selected="true" editor-type-id="text-editor">
|
106
|
-
<state relative-caret-position="
|
107
|
-
<caret line="
|
122
|
+
<state relative-caret-position="506">
|
123
|
+
<caret line="22" column="31" selection-start-line="22" selection-start-column="31" selection-end-line="22" selection-end-column="31" />
|
108
124
|
</state>
|
109
125
|
</provider>
|
110
126
|
</entry>
|
@@ -112,8 +128,8 @@
|
|
112
128
|
<file leaf-file-name="ngrok.rb" pinned="false" current-in-tab="false">
|
113
129
|
<entry file="file://$PROJECT_DIR$/lib/Deamons/ngrok.rb">
|
114
130
|
<provider selected="true" editor-type-id="text-editor">
|
115
|
-
<state relative-caret-position="
|
116
|
-
<caret line="
|
131
|
+
<state relative-caret-position="376">
|
132
|
+
<caret line="26" column="18" selection-start-line="26" selection-start-column="18" selection-end-line="26" selection-end-column="18" />
|
117
133
|
</state>
|
118
134
|
</provider>
|
119
135
|
</entry>
|
@@ -202,11 +218,11 @@
|
|
202
218
|
<option value="$PROJECT_DIR$/lib/ApiController/peatio.rb" />
|
203
219
|
<option value="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" />
|
204
220
|
<option value="$PROJECT_DIR$/lib/Deamons/simple_mm.rb" />
|
205
|
-
<option value="$PROJECT_DIR$/lib/utils.rb" />
|
206
221
|
<option value="$PROJECT_DIR$/lib/ApiController/barong.rb" />
|
207
222
|
<option value="$PROJECT_DIR$/lib/Deamons/geth.rb" />
|
208
223
|
<option value="$PROJECT_DIR$/lib/Deamons/ngrok.rb" />
|
209
224
|
<option value="$PROJECT_DIR$/lib/SimBot.rb" />
|
225
|
+
<option value="$PROJECT_DIR$/lib/utils.rb" />
|
210
226
|
<option value="$PROJECT_DIR$/lib/SimBot/version.rb" />
|
211
227
|
</list>
|
212
228
|
</option>
|
@@ -220,18 +236,16 @@
|
|
220
236
|
<component name="NodePackageJsonFileManager">
|
221
237
|
<packageJsonPaths />
|
222
238
|
</component>
|
223
|
-
<component name="ProjectFrameBounds">
|
224
|
-
<option name="
|
225
|
-
<option name="
|
226
|
-
<option name="
|
227
|
-
<option name="height" value="1028" />
|
239
|
+
<component name="ProjectFrameBounds" extendedState="6">
|
240
|
+
<option name="y" value="23" />
|
241
|
+
<option name="width" value="1440" />
|
242
|
+
<option name="height" value="823" />
|
228
243
|
</component>
|
229
244
|
<component name="ProjectView">
|
230
245
|
<navigator proportions="" version="1">
|
231
246
|
<foldersAlwaysOnTop value="true" />
|
232
247
|
</navigator>
|
233
248
|
<panes>
|
234
|
-
<pane id="Scope" />
|
235
249
|
<pane id="ProjectPane">
|
236
250
|
<subPane>
|
237
251
|
<expand>
|
@@ -244,12 +258,6 @@
|
|
244
258
|
<item name="SimBot" type="462c0819:PsiDirectoryNode" />
|
245
259
|
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
246
260
|
</path>
|
247
|
-
<path>
|
248
|
-
<item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
|
249
|
-
<item name="SimBot" type="462c0819:PsiDirectoryNode" />
|
250
|
-
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
251
|
-
<item name="Deamons" type="462c0819:PsiDirectoryNode" />
|
252
|
-
</path>
|
253
261
|
<path>
|
254
262
|
<item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
|
255
263
|
<item name="SimBot" type="462c0819:PsiDirectoryNode" />
|
@@ -265,6 +273,7 @@
|
|
265
273
|
<select />
|
266
274
|
</subPane>
|
267
275
|
</pane>
|
276
|
+
<pane id="Scope" />
|
268
277
|
</panes>
|
269
278
|
</component>
|
270
279
|
<component name="PropertiesComponent">
|
@@ -275,15 +284,15 @@
|
|
275
284
|
<property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
|
276
285
|
</component>
|
277
286
|
<component name="RecentsManager">
|
287
|
+
<key name="CopyFile.RECENT_KEYS">
|
288
|
+
<recent name="$PROJECT_DIR$/lib/Deamons" />
|
289
|
+
<recent name="$PROJECT_DIR$" />
|
290
|
+
</key>
|
278
291
|
<key name="MoveFile.RECENT_KEYS">
|
279
292
|
<recent name="$PROJECT_DIR$/lib/ApiController" />
|
280
293
|
<recent name="$PROJECT_DIR$/lib/Deamons" />
|
281
294
|
<recent name="$PROJECT_DIR$/lib" />
|
282
295
|
</key>
|
283
|
-
<key name="CopyFile.RECENT_KEYS">
|
284
|
-
<recent name="$PROJECT_DIR$/lib/Deamons" />
|
285
|
-
<recent name="$PROJECT_DIR$" />
|
286
|
-
</key>
|
287
296
|
</component>
|
288
297
|
<component name="RunDashboard">
|
289
298
|
<option name="ruleStates">
|
@@ -340,12 +349,14 @@
|
|
340
349
|
<workItem from="1534345863853" duration="3800000" />
|
341
350
|
<workItem from="1535884475044" duration="1850000" />
|
342
351
|
<workItem from="1538040677596" duration="5889000" />
|
343
|
-
<workItem from="1539353817379" duration="
|
352
|
+
<workItem from="1539353817379" duration="2621000" />
|
353
|
+
<workItem from="1539876285945" duration="1050000" />
|
354
|
+
<workItem from="1540108116200" duration="423000" />
|
344
355
|
</task>
|
345
356
|
<servers />
|
346
357
|
</component>
|
347
358
|
<component name="TimeTrackingManager">
|
348
|
-
<option name="totallyTimeSpent" value="
|
359
|
+
<option name="totallyTimeSpent" value="176486000" />
|
349
360
|
</component>
|
350
361
|
<component name="TodoView">
|
351
362
|
<todo-panel id="selected-file">
|
@@ -357,49 +368,61 @@
|
|
357
368
|
</todo-panel>
|
358
369
|
</component>
|
359
370
|
<component name="ToolWindowManager">
|
360
|
-
<frame x="
|
371
|
+
<frame x="1514" y="23" width="1440" height="877" extended-state="0" />
|
361
372
|
<editor active="true" />
|
362
373
|
<layout>
|
363
|
-
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.
|
374
|
+
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.18025751" />
|
364
375
|
<window_info anchor="bottom" id="TODO" order="6" weight="0.32995495" />
|
365
376
|
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
|
366
377
|
<window_info anchor="bottom" id="Event Log" order="7" sideWeight="0.50904554" side_tool="true" weight="0.3457207" />
|
367
378
|
<window_info anchor="right" id="Database" order="3" />
|
368
379
|
<window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
|
380
|
+
<window_info anchor="bottom" id="Run" order="2" sideWeight="0.48658764" visible="true" weight="0.35192564" />
|
369
381
|
<window_info anchor="bottom" id="Version Control" order="7" weight="0.3292683" />
|
370
|
-
<window_info anchor="bottom" id="Run" order="2" sideWeight="0.48658764" weight="0.3528761" />
|
371
382
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
372
|
-
<window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49095446"
|
373
|
-
<window_info id="Favorites" order="2" side_tool="true" />
|
383
|
+
<window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49095446" weight="0.34794158" />
|
374
384
|
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
385
|
+
<window_info id="Favorites" order="2" side_tool="true" />
|
375
386
|
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
387
|
+
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
|
376
388
|
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
389
|
+
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.18025751" />
|
390
|
+
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
377
391
|
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
378
392
|
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
379
|
-
<window_info anchor="bottom" id="
|
393
|
+
<window_info anchor="bottom" id="TODO" order="6" weight="0.32995495" />
|
394
|
+
<window_info anchor="bottom" id="Version Control" order="10" weight="0.3292683" />
|
395
|
+
<window_info anchor="bottom" id="Run" order="2" sideWeight="0.48658764" weight="0.3528761" />
|
396
|
+
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
397
|
+
<window_info anchor="right" id="Database" order="3" />
|
398
|
+
<window_info anchor="bottom" id="Messages" order="12" sideWeight="0.49965397" weight="0.3293348" />
|
380
399
|
<window_info anchor="bottom" id="Message" order="0" />
|
400
|
+
<window_info anchor="bottom" id="Event Log" order="11" sideWeight="0.50904554" side_tool="true" weight="0.3457207" />
|
401
|
+
<window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
|
381
402
|
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
382
|
-
<window_info anchor="bottom" id="Find" order="1" sideWeight="0.49896193" weight="0.
|
403
|
+
<window_info anchor="bottom" id="Find" order="1" sideWeight="0.49896193" weight="0.32876712" />
|
404
|
+
<window_info anchor="bottom" id="Terminal" order="9" sideWeight="0.49095446" weight="0.22328767" />
|
405
|
+
<window_info id="Favorites" order="2" side_tool="true" />
|
383
406
|
</layout>
|
384
407
|
<layout-to-restore>
|
385
408
|
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
386
409
|
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
|
387
410
|
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
411
|
+
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
388
412
|
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2123369" />
|
389
413
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
390
414
|
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
391
|
-
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
392
415
|
<window_info anchor="bottom" id="TODO" order="6" />
|
416
|
+
<window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
|
393
417
|
<window_info anchor="bottom" id="Version Control" order="11" />
|
394
418
|
<window_info anchor="bottom" id="Run" order="2" sideWeight="0.48719722" weight="0.28540304" />
|
395
|
-
<window_info anchor="bottom" id="
|
419
|
+
<window_info anchor="bottom" id="Message" order="0" />
|
420
|
+
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
396
421
|
<window_info anchor="right" id="Database" order="3" />
|
397
422
|
<window_info anchor="bottom" id="Terminal" order="9" sideWeight="0.49619377" weight="0.41463414" />
|
398
423
|
<window_info anchor="bottom" id="Event Log" order="10" sideWeight="0.50380623" side_tool="true" weight="0.28540304" />
|
399
|
-
<window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
|
400
424
|
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
401
|
-
<window_info anchor="bottom" id="
|
402
|
-
<window_info anchor="bottom" id="Message" order="0" />
|
425
|
+
<window_info anchor="bottom" id="Find" order="1" sideWeight="0.49896193" weight="0.32897604" />
|
403
426
|
<window_info anchor="bottom" id="Messages" order="12" sideWeight="0.49965397" weight="0.3293348" />
|
404
427
|
<window_info id="Favorites" order="2" side_tool="true" />
|
405
428
|
</layout-to-restore>
|
@@ -419,6 +442,71 @@
|
|
419
442
|
</breakpoint-manager>
|
420
443
|
</component>
|
421
444
|
<component name="editorHistoryManager">
|
445
|
+
<entry file="file://$PROJECT_DIR$/5834.errfile" />
|
446
|
+
<entry file="file://$PROJECT_DIR$/lib/Deamons/simple_mm.rb">
|
447
|
+
<provider selected="true" editor-type-id="text-editor">
|
448
|
+
<state relative-caret-position="621">
|
449
|
+
<caret line="27" column="7" selection-start-line="27" selection-start-column="7" selection-end-line="27" selection-end-column="7" />
|
450
|
+
</state>
|
451
|
+
</provider>
|
452
|
+
</entry>
|
453
|
+
<entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
|
454
|
+
<provider selected="true" editor-type-id="text-editor">
|
455
|
+
<state relative-caret-position="345">
|
456
|
+
<caret line="15" column="35" selection-start-line="15" selection-start-column="35" selection-end-line="15" selection-end-column="35" />
|
457
|
+
</state>
|
458
|
+
</provider>
|
459
|
+
</entry>
|
460
|
+
<entry file="file://$PROJECT_DIR$/18301.outfile" />
|
461
|
+
<entry file="file://$PROJECT_DIR$/lib/Deamons/geth.rb">
|
462
|
+
<provider selected="true" editor-type-id="text-editor">
|
463
|
+
<state relative-caret-position="552">
|
464
|
+
<caret line="24" column="31" selection-start-line="24" selection-start-column="31" selection-end-line="24" selection-end-column="31" />
|
465
|
+
</state>
|
466
|
+
</provider>
|
467
|
+
</entry>
|
468
|
+
<entry file="file://$PROJECT_DIR$/19071.errfile">
|
469
|
+
<provider selected="true" editor-type-id="text-editor">
|
470
|
+
<state relative-caret-position="391">
|
471
|
+
<caret line="17" selection-start-line="17" selection-end-line="17" />
|
472
|
+
</state>
|
473
|
+
</provider>
|
474
|
+
</entry>
|
475
|
+
<entry file="file://$PROJECT_DIR$/spec/SimBot_spec.rb">
|
476
|
+
<provider selected="true" editor-type-id="text-editor">
|
477
|
+
<state relative-caret-position="161">
|
478
|
+
<caret line="7" column="5" selection-start-line="7" selection-start-column="5" selection-end-line="7" selection-end-column="5" />
|
479
|
+
</state>
|
480
|
+
</provider>
|
481
|
+
</entry>
|
482
|
+
<entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
|
483
|
+
<provider selected="true" editor-type-id="text-editor">
|
484
|
+
<state relative-caret-position="23">
|
485
|
+
<caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
|
486
|
+
</state>
|
487
|
+
</provider>
|
488
|
+
</entry>
|
489
|
+
<entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
|
490
|
+
<provider selected="true" editor-type-id="text-editor">
|
491
|
+
<state relative-caret-position="1173">
|
492
|
+
<caret line="51" column="15" selection-start-line="51" selection-start-column="15" selection-end-line="51" selection-end-column="15" />
|
493
|
+
</state>
|
494
|
+
</provider>
|
495
|
+
</entry>
|
496
|
+
<entry file="file://$PROJECT_DIR$/lib/utils.rb">
|
497
|
+
<provider selected="true" editor-type-id="text-editor">
|
498
|
+
<state relative-caret-position="290">
|
499
|
+
<caret line="116" column="81" selection-start-line="116" selection-start-column="81" selection-end-line="116" selection-end-column="81" />
|
500
|
+
</state>
|
501
|
+
</provider>
|
502
|
+
</entry>
|
503
|
+
<entry file="file://$PROJECT_DIR$/lib/Deamons/ngrok.rb">
|
504
|
+
<provider selected="true" editor-type-id="text-editor">
|
505
|
+
<state relative-caret-position="376">
|
506
|
+
<caret line="26" column="18" selection-start-line="26" selection-start-column="18" selection-end-line="26" selection-end-column="18" />
|
507
|
+
</state>
|
508
|
+
</provider>
|
509
|
+
</entry>
|
422
510
|
<entry file="file://$PROJECT_DIR$/98808.errfile" />
|
423
511
|
<entry file="file://$PROJECT_DIR$/98808.outfile" />
|
424
512
|
<entry file="file://$PROJECT_DIR$/98990.outfile" />
|
@@ -445,35 +533,36 @@
|
|
445
533
|
</entry>
|
446
534
|
<entry file="file://$PROJECT_DIR$/90263.outfile" />
|
447
535
|
<entry file="file://$PROJECT_DIR$/92142.outfile" />
|
448
|
-
<entry file="file://$PROJECT_DIR
|
536
|
+
<entry file="file://$PROJECT_DIR$/98588.errfile" />
|
537
|
+
<entry file="file://$PROJECT_DIR$/98672.errfile" />
|
538
|
+
<entry file="file://$PROJECT_DIR$/98975.errfile" />
|
539
|
+
<entry file="file://$PROJECT_DIR$/5834.errfile" />
|
540
|
+
<entry file="file://$PROJECT_DIR$/18301.outfile" />
|
541
|
+
<entry file="file://$PROJECT_DIR$/19071.errfile">
|
449
542
|
<provider selected="true" editor-type-id="text-editor">
|
450
|
-
<state relative-caret-position="
|
451
|
-
<caret line="
|
543
|
+
<state relative-caret-position="391">
|
544
|
+
<caret line="17" selection-start-line="17" selection-end-line="17" />
|
452
545
|
</state>
|
453
546
|
</provider>
|
454
547
|
</entry>
|
455
|
-
<entry file="file://$PROJECT_DIR$/
|
456
|
-
<entry file="file://$PROJECT_DIR$/98672.errfile" />
|
457
|
-
<entry file="file://$PROJECT_DIR$/98975.errfile" />
|
458
|
-
<entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
|
548
|
+
<entry file="file://$PROJECT_DIR$/spec/SimBot_spec.rb">
|
459
549
|
<provider selected="true" editor-type-id="text-editor">
|
460
|
-
<state relative-caret-position="
|
461
|
-
<caret line="
|
550
|
+
<state relative-caret-position="161">
|
551
|
+
<caret line="7" column="5" selection-start-line="7" selection-start-column="5" selection-end-line="7" selection-end-column="5" />
|
462
552
|
</state>
|
463
553
|
</provider>
|
464
554
|
</entry>
|
465
|
-
<entry file="file://$PROJECT_DIR
|
555
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
466
556
|
<provider selected="true" editor-type-id="text-editor">
|
467
|
-
<state relative-caret-position="
|
468
|
-
<caret line="
|
557
|
+
<state relative-caret-position="322">
|
558
|
+
<caret line="14" selection-start-line="14" selection-end-line="14" />
|
469
559
|
</state>
|
470
560
|
</provider>
|
471
561
|
</entry>
|
472
|
-
<entry file="file://$PROJECT_DIR$/
|
473
|
-
<entry file="file://$PROJECT_DIR$/lib/utils.rb">
|
562
|
+
<entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
|
474
563
|
<provider selected="true" editor-type-id="text-editor">
|
475
|
-
<state relative-caret-position="
|
476
|
-
<caret line="
|
564
|
+
<state relative-caret-position="483">
|
565
|
+
<caret line="21" column="49" selection-start-line="21" selection-start-column="49" selection-end-line="21" selection-end-column="49" />
|
477
566
|
</state>
|
478
567
|
</provider>
|
479
568
|
</entry>
|
@@ -484,94 +573,66 @@
|
|
484
573
|
</state>
|
485
574
|
</provider>
|
486
575
|
</entry>
|
487
|
-
<entry file="file://$PROJECT_DIR$/lib/
|
576
|
+
<entry file="file://$PROJECT_DIR$/lib/Deamons/ngrok.rb">
|
488
577
|
<provider selected="true" editor-type-id="text-editor">
|
489
|
-
<state relative-caret-position="
|
490
|
-
<caret line="
|
578
|
+
<state relative-caret-position="376">
|
579
|
+
<caret line="26" column="18" selection-start-line="26" selection-start-column="18" selection-end-line="26" selection-end-column="18" />
|
491
580
|
</state>
|
492
581
|
</provider>
|
493
582
|
</entry>
|
494
|
-
<entry file="file://$PROJECT_DIR$/
|
495
|
-
<provider selected="true" editor-type-id="text-editor" />
|
496
|
-
</entry>
|
497
|
-
<entry file="file://$PROJECT_DIR$/18252.errfile">
|
498
|
-
<provider selected="true" editor-type-id="text-editor" />
|
499
|
-
</entry>
|
500
|
-
<entry file="file://$PROJECT_DIR$/18252.outfile">
|
501
|
-
<provider selected="true" editor-type-id="text-editor" />
|
502
|
-
</entry>
|
503
|
-
<entry file="file://$PROJECT_DIR$/18219.outfile">
|
504
|
-
<provider selected="true" editor-type-id="text-editor" />
|
505
|
-
</entry>
|
506
|
-
<entry file="file://$PROJECT_DIR$/18301.errfile">
|
507
|
-
<provider selected="true" editor-type-id="text-editor" />
|
508
|
-
</entry>
|
509
|
-
<entry file="file://$PROJECT_DIR$/18301.pid">
|
510
|
-
<provider selected="true" editor-type-id="text-editor" />
|
511
|
-
</entry>
|
512
|
-
<entry file="file://$PROJECT_DIR$/18301.outfile">
|
583
|
+
<entry file="file://$PROJECT_DIR$/lib/utils.rb">
|
513
584
|
<provider selected="true" editor-type-id="text-editor">
|
514
|
-
<state relative-caret-position="
|
515
|
-
<caret line="
|
585
|
+
<state relative-caret-position="290">
|
586
|
+
<caret line="116" column="81" selection-start-line="116" selection-start-column="81" selection-end-line="116" selection-end-column="81" />
|
516
587
|
</state>
|
517
588
|
</provider>
|
518
589
|
</entry>
|
519
|
-
<entry file="file://$PROJECT_DIR$/18341.errfile">
|
520
|
-
<provider selected="true" editor-type-id="text-editor" />
|
521
|
-
</entry>
|
522
|
-
<entry file="file://$PROJECT_DIR$/18341.outfile">
|
523
|
-
<provider selected="true" editor-type-id="text-editor" />
|
524
|
-
</entry>
|
525
|
-
<entry file="file://$PROJECT_DIR$/18584.outfile">
|
526
|
-
<provider selected="true" editor-type-id="text-editor" />
|
527
|
-
</entry>
|
528
|
-
<entry file="file://$PROJECT_DIR$/18799.outfile">
|
529
|
-
<provider selected="true" editor-type-id="text-editor" />
|
530
|
-
</entry>
|
531
|
-
<entry file="file://$PROJECT_DIR$/18834.errfile">
|
532
|
-
<provider selected="true" editor-type-id="text-editor" />
|
533
|
-
</entry>
|
534
|
-
<entry file="file://$PROJECT_DIR$/18834.outfile">
|
535
|
-
<provider selected="true" editor-type-id="text-editor" />
|
536
|
-
</entry>
|
537
|
-
<entry file="file://$PROJECT_DIR$/18862.outfile">
|
538
|
-
<provider selected="true" editor-type-id="text-editor" />
|
539
|
-
</entry>
|
540
590
|
<entry file="file://$PROJECT_DIR$/lib/Deamons/geth.rb">
|
541
591
|
<provider selected="true" editor-type-id="text-editor">
|
542
|
-
<state relative-caret-position="
|
543
|
-
<caret line="
|
592
|
+
<state relative-caret-position="506">
|
593
|
+
<caret line="22" column="31" selection-start-line="22" selection-start-column="31" selection-end-line="22" selection-end-column="31" />
|
544
594
|
</state>
|
545
595
|
</provider>
|
546
596
|
</entry>
|
547
|
-
<entry file="file://$PROJECT_DIR$/lib/Deamons/
|
597
|
+
<entry file="file://$PROJECT_DIR$/lib/Deamons/bitcoind-abc.rb">
|
548
598
|
<provider selected="true" editor-type-id="text-editor">
|
549
|
-
<state relative-caret-position="
|
550
|
-
<caret line="
|
599
|
+
<state relative-caret-position="60">
|
600
|
+
<caret line="4" column="20" selection-start-line="4" selection-start-column="20" selection-end-line="4" selection-end-column="20" />
|
601
|
+
</state>
|
602
|
+
</provider>
|
603
|
+
</entry>
|
604
|
+
<entry file="file://$PROJECT_DIR$/lib/Deamons/litecoind.rb">
|
605
|
+
<provider selected="true" editor-type-id="text-editor">
|
606
|
+
<state relative-caret-position="11">
|
607
|
+
<caret line="15" column="27" selection-start-line="15" selection-start-column="27" selection-end-line="15" selection-end-column="27" />
|
551
608
|
</state>
|
552
609
|
</provider>
|
553
610
|
</entry>
|
554
611
|
<entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
|
555
612
|
<provider selected="true" editor-type-id="text-editor">
|
556
|
-
<state relative-caret-position="
|
557
|
-
<caret line="
|
613
|
+
<state relative-caret-position="1173">
|
614
|
+
<caret line="63" column="15" selection-start-line="63" selection-start-column="15" selection-end-line="63" selection-end-column="15" />
|
558
615
|
</state>
|
559
616
|
</provider>
|
560
617
|
</entry>
|
561
|
-
<entry file="file://$PROJECT_DIR$/
|
562
|
-
<provider selected="true" editor-type-id="text-editor"
|
618
|
+
<entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
|
619
|
+
<provider selected="true" editor-type-id="text-editor">
|
620
|
+
<state relative-caret-position="345">
|
621
|
+
<caret line="15" column="35" selection-start-line="15" selection-start-column="35" selection-end-line="15" selection-end-column="35" />
|
622
|
+
</state>
|
623
|
+
</provider>
|
563
624
|
</entry>
|
564
|
-
<entry file="file://$PROJECT_DIR$/
|
625
|
+
<entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
|
565
626
|
<provider selected="true" editor-type-id="text-editor">
|
566
|
-
<state relative-caret-position="
|
567
|
-
<caret line="
|
627
|
+
<state relative-caret-position="667">
|
628
|
+
<caret line="29" column="19" selection-start-line="29" selection-start-column="19" selection-end-line="29" selection-end-column="19" />
|
568
629
|
</state>
|
569
630
|
</provider>
|
570
631
|
</entry>
|
571
|
-
<entry file="file://$PROJECT_DIR$/
|
632
|
+
<entry file="file://$PROJECT_DIR$/lib/Deamons/bitcoind.rb">
|
572
633
|
<provider selected="true" editor-type-id="text-editor">
|
573
|
-
<state relative-caret-position="
|
574
|
-
<caret line="
|
634
|
+
<state relative-caret-position="416">
|
635
|
+
<caret line="43" column="34" lean-forward="true" selection-start-line="43" selection-start-column="34" selection-end-line="43" selection-end-column="34" />
|
575
636
|
</state>
|
576
637
|
</provider>
|
577
638
|
</entry>
|
data/19071.errfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
/Users/ovceo/RubymineProjects/SimBot/lib/Deamons/ngrok.rb:20:in `fetch'
|
2
|
+
/Users/ovceo/RubymineProjects/SimBot/lib/Deamons/ngrok.rb:20:in `start'
|
3
|
+
/Users/ovceo/RubymineProjects/SimBot/lib/Deamons/ngrok.rb:14:in `block in initialize'
|
4
|
+
/Users/ovceo/RubymineProjects/SimBot/lib/Deamons/ngrok.rb:9:in `fork'
|
5
|
+
/Users/ovceo/RubymineProjects/SimBot/lib/Deamons/ngrok.rb:9:in `initialize'
|
6
|
+
/Users/ovceo/RubymineProjects/SimBot/lib/SimBot.rb:54:in `new'
|
7
|
+
/Users/ovceo/RubymineProjects/SimBot/lib/SimBot.rb:54:in `ngrok'
|
8
|
+
/Users/ovceo/.rvm/gems/ruby-2.5.1@SimBot/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
|
9
|
+
/Users/ovceo/.rvm/gems/ruby-2.5.1@SimBot/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
|
10
|
+
/Users/ovceo/.rvm/gems/ruby-2.5.1@SimBot/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
|
11
|
+
/Users/ovceo/.rvm/gems/ruby-2.5.1@SimBot/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
|
12
|
+
/Users/ovceo/RubymineProjects/SimBot/exe/SimBot:5:in `<top (required)>'
|
13
|
+
/Users/ovceo/.rvm/gems/ruby-2.5.1@SimBot/bin/SimBot:23:in `load'
|
14
|
+
/Users/ovceo/.rvm/gems/ruby-2.5.1@SimBot/bin/SimBot:23:in `<main>'
|
15
|
+
/Users/ovceo/.rvm/gems/ruby-2.5.1@SimBot/bin/ruby_executable_hooks:15:in `eval'
|
16
|
+
/Users/ovceo/.rvm/gems/ruby-2.5.1@SimBot/bin/ruby_executable_hooks:15:in `<main>'
|
17
|
+
\n
|
data/19071.outfile
ADDED
File without changes
|
data/19071.pid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
19071
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,53 @@
|
|
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 BitcoinCashd
|
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 = "bitcoind-abc --daemon --testnet --rpcport=8442 --datadir=/home/nikhar/.bitcoin-abc --usecashaddr=0 --rest --server --rpcuser=ovex --rpcpassword=Pass123"
|
21
|
+
system(cmd)
|
22
|
+
rescue ::StandardError => e
|
23
|
+
STDERR.puts e.backtrace
|
24
|
+
STDERR.puts '\n'
|
25
|
+
end
|
26
|
+
|
27
|
+
# Attempts to write the pid of the forked process to the pid file.
|
28
|
+
# @param [Integer] pid
|
29
|
+
# @param [String] pidfile
|
30
|
+
# @return [Integer and File]
|
31
|
+
def write_pid_file(pid, pidfile)
|
32
|
+
File.open pidfile, "w" do |f|
|
33
|
+
f.write pid
|
34
|
+
end
|
35
|
+
rescue ::Exception => e
|
36
|
+
$stderr.puts "While writing the PID to file, unexpected #{e.class}: #{e}"
|
37
|
+
Process.kill "HUP", pid
|
38
|
+
end
|
39
|
+
|
40
|
+
# Send stdout and stderr to log files for the child process
|
41
|
+
# @param [String] outfile
|
42
|
+
# @param [String] errfile
|
43
|
+
# @return [TrueClass]
|
44
|
+
def redirect(outfile, errfile)
|
45
|
+
$stdin.reopen '/dev/null'
|
46
|
+
out = File.new outfile, "a"
|
47
|
+
err = File.new errfile, "a"
|
48
|
+
$stdout.reopen out
|
49
|
+
$stderr.reopen err
|
50
|
+
$stdout.sync = $stderr.sync = true
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,53 @@
|
|
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 Bitcoind
|
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 = "bitcoind -daemon -testnet -rest -server -rpcuser=ovex -rpcpassword=Pass123"
|
21
|
+
system(cmd)
|
22
|
+
rescue ::StandardError => e
|
23
|
+
STDERR.puts e.backtrace
|
24
|
+
STDERR.puts '\n'
|
25
|
+
end
|
26
|
+
|
27
|
+
# Attempts to write the pid of the forked process to the pid file.
|
28
|
+
# @param [Integer] pid
|
29
|
+
# @param [String] pidfile
|
30
|
+
# @return [Integer and File]
|
31
|
+
def write_pid_file(pid, pidfile)
|
32
|
+
File.open pidfile, "w" do |f|
|
33
|
+
f.write pid
|
34
|
+
end
|
35
|
+
rescue ::Exception => e
|
36
|
+
$stderr.puts "While writing the PID to file, unexpected #{e.class}: #{e}"
|
37
|
+
Process.kill "HUP", pid
|
38
|
+
end
|
39
|
+
|
40
|
+
# Send stdout and stderr to log files for the child process
|
41
|
+
# @param [String] outfile
|
42
|
+
# @param [String] errfile
|
43
|
+
# @return [TrueClass]
|
44
|
+
def redirect(outfile, errfile)
|
45
|
+
$stdin.reopen '/dev/null'
|
46
|
+
out = File.new outfile, "a"
|
47
|
+
err = File.new errfile, "a"
|
48
|
+
$stdout.reopen out
|
49
|
+
$stderr.reopen err
|
50
|
+
$stdout.sync = $stderr.sync = true
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/lib/Deamons/geth.rb
CHANGED
@@ -19,8 +19,6 @@ module Deamons
|
|
19
19
|
def start
|
20
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
21
|
system(cmd)
|
22
|
-
cmd = "#{ENV.fetch('NGROK')}./ngrok http 8545"
|
23
|
-
system(cmd)
|
24
22
|
rescue ::StandardError => e
|
25
23
|
STDERR.puts e.backtrace
|
26
24
|
STDERR.puts '\n'
|
@@ -0,0 +1,53 @@
|
|
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 Litecoind
|
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 = "litecoind -daemon -testnet -rest -server -rpcuser=ovex -rpcpassword=Pass123"
|
21
|
+
system(cmd)
|
22
|
+
rescue ::StandardError => e
|
23
|
+
STDERR.puts e.backtrace
|
24
|
+
STDERR.puts '\n'
|
25
|
+
end
|
26
|
+
|
27
|
+
# Attempts to write the pid of the forked process to the pid file.
|
28
|
+
# @param [Integer] pid
|
29
|
+
# @param [String] pidfile
|
30
|
+
# @return [Integer and File]
|
31
|
+
def write_pid_file(pid, pidfile)
|
32
|
+
File.open pidfile, "w" do |f|
|
33
|
+
f.write pid
|
34
|
+
end
|
35
|
+
rescue ::Exception => e
|
36
|
+
$stderr.puts "While writing the PID to file, unexpected #{e.class}: #{e}"
|
37
|
+
Process.kill "HUP", pid
|
38
|
+
end
|
39
|
+
|
40
|
+
# Send stdout and stderr to log files for the child process
|
41
|
+
# @param [String] outfile
|
42
|
+
# @param [String] errfile
|
43
|
+
# @return [TrueClass]
|
44
|
+
def redirect(outfile, errfile)
|
45
|
+
$stdin.reopen '/dev/null'
|
46
|
+
out = File.new outfile, "a"
|
47
|
+
err = File.new errfile, "a"
|
48
|
+
$stdout.reopen out
|
49
|
+
$stderr.reopen err
|
50
|
+
$stdout.sync = $stderr.sync = true
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/lib/SimBot.rb
CHANGED
@@ -45,11 +45,23 @@ module SimBot
|
|
45
45
|
def stop(pid)
|
46
46
|
Utils.kill_process(pid)
|
47
47
|
end
|
48
|
-
desc '
|
49
|
-
def
|
48
|
+
desc 'geth', 'Start a geth daemon light node in the background'
|
49
|
+
def eth
|
50
50
|
Deamons::Geth.new
|
51
51
|
end
|
52
|
-
desc '
|
52
|
+
desc 'btc', 'Start a bitcoin testnet daemon full node in the background'
|
53
|
+
def btc
|
54
|
+
Deamons::Bitcoind.new
|
55
|
+
end
|
56
|
+
desc 'bch', 'Start a bitcoin-abc (cash) testnet daemon full node in the background'
|
57
|
+
def bch
|
58
|
+
Deamons::BitcoinCashd.new
|
59
|
+
end
|
60
|
+
desc 'ltc', 'Start a litecoin testnet daemon full node in the background'
|
61
|
+
def ltc
|
62
|
+
Deamons::Litecoind.new
|
63
|
+
end
|
64
|
+
desc 'ngrok', 'Start a geth damon light node in the background'
|
53
65
|
def ngrok
|
54
66
|
Deamons::Ngrok.new
|
55
67
|
end
|
data/lib/SimBot/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.31
|
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-10-
|
11
|
+
date: 2018-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -157,6 +157,9 @@ files:
|
|
157
157
|
- ".ruby-gemset"
|
158
158
|
- ".ruby-version"
|
159
159
|
- ".travis.yml"
|
160
|
+
- 19071.errfile
|
161
|
+
- 19071.outfile
|
162
|
+
- 19071.pid
|
160
163
|
- CODE_OF_CONDUCT.md
|
161
164
|
- Gemfile
|
162
165
|
- Gemfile.lock
|
@@ -174,7 +177,10 @@ files:
|
|
174
177
|
- exportToHTML/mailer.rb.html
|
175
178
|
- lib/ApiController/barong.rb
|
176
179
|
- lib/ApiController/peatio.rb
|
180
|
+
- lib/Deamons/bitcoind-abc.rb
|
181
|
+
- lib/Deamons/bitcoind.rb
|
177
182
|
- lib/Deamons/geth.rb
|
183
|
+
- lib/Deamons/litecoind.rb
|
178
184
|
- lib/Deamons/ngrok.rb
|
179
185
|
- lib/Deamons/simple_mm.rb
|
180
186
|
- lib/Deamons/wash_trade.rb
|