Skip to content

Commit 49fdd52

Browse files
authored
Merge pull request #119 from bitcoinvsalts/testing
for public testing: 0.6.0
2 parents 1b3342b + 0c50675 commit 49fdd52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+15339
-2264
lines changed

.dockerignore

Lines changed: 218 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,219 @@
1-
.github/
1+
# Created by https://www.toptal.com/developers/gitignore/api/node,webstorm+all
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,webstorm+all
3+
4+
### Node ###
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
lerna-debug.log*
12+
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15+
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
*.pid.lock
21+
22+
# Directory for instrumented libs generated by jscoverage/JSCover
23+
lib-cov
24+
25+
# Coverage directory used by tools like istanbul
26+
coverage
27+
*.lcov
28+
29+
# nyc test coverage
30+
.nyc_output
31+
32+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33+
.grunt
34+
35+
# Bower dependency directory (https://bower.io/)
36+
bower_components
37+
38+
# node-waf configuration
39+
.lock-wscript
40+
41+
# Compiled binary addons (https://nodejs.org/api/addons.html)
42+
build/Release
43+
44+
# Dependency directories
245
node_modules/
3-
.env
46+
jspm_packages/
47+
48+
# TypeScript v1 declaration files
49+
typings/
50+
51+
# TypeScript cache
52+
*.tsbuildinfo
53+
54+
# Optional npm cache directory
55+
.npm
56+
57+
# Optional eslint cache
58+
.eslintcache
59+
60+
# Optional stylelint cache
61+
.stylelintcache
62+
63+
# Microbundle cache
64+
.rpt2_cache/
65+
.rts2_cache_cjs/
66+
.rts2_cache_es/
67+
.rts2_cache_umd/
68+
69+
# Optional REPL history
70+
.node_repl_history
71+
72+
# Output of 'npm pack'
73+
*.tgz
74+
75+
# Yarn Integrity file
76+
.yarn-integrity
77+
78+
# dotenv environment variables file
79+
.env
80+
.env.test
81+
.env*.local
82+
83+
# parcel-bundler cache (https://parceljs.org/)
84+
.cache
85+
.parcel-cache
86+
87+
# Next.js build output
88+
.next
89+
90+
# Nuxt.js build / generate output
91+
.nuxt
92+
dist
93+
94+
# Storybook build outputs
95+
.out
96+
.storybook-out
97+
storybook-static
98+
99+
# rollup.js default build output
100+
dist/
101+
102+
# Gatsby files
103+
.cache/
104+
# Comment in the public line in if your project uses Gatsby and not Next.js
105+
# https://nextjs.org/blog/next-9-1#public-directory-support
106+
# public
107+
108+
# vuepress build output
109+
.vuepress/dist
110+
111+
# Serverless directories
112+
.serverless/
113+
114+
# FuseBox cache
115+
.fusebox/
116+
117+
# DynamoDB Local files
118+
.dynamodb/
119+
120+
# TernJS port file
121+
.tern-port
122+
123+
# Stores VSCode versions used for testing VSCode extensions
124+
.vscode-test
125+
126+
# Temporary folders
127+
tmp/
128+
temp/
129+
130+
### WebStorm+all ###
131+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
132+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
133+
134+
# User-specific stuff
135+
.idea/**/workspace.xml
136+
.idea/**/tasks.xml
137+
.idea/**/usage.statistics.xml
138+
.idea/**/dictionaries
139+
.idea/**/shelf
140+
141+
# Generated files
142+
.idea/**/contentModel.xml
143+
144+
# Sensitive or high-churn files
145+
.idea/**/dataSources/
146+
.idea/**/dataSources.ids
147+
.idea/**/dataSources.local.xml
148+
.idea/**/sqlDataSources.xml
149+
.idea/**/dynamic.xml
150+
.idea/**/uiDesigner.xml
151+
.idea/**/dbnavigator.xml
152+
153+
# Gradle
154+
.idea/**/gradle.xml
155+
.idea/**/libraries
156+
157+
# Gradle and Maven with auto-import
158+
# When using Gradle or Maven with auto-import, you should exclude module files,
159+
# since they will be recreated, and may cause churn. Uncomment if using
160+
# auto-import.
161+
# .idea/artifacts
162+
# .idea/compiler.xml
163+
# .idea/jarRepositories.xml
164+
# .idea/modules.xml
165+
# .idea/*.iml
166+
# .idea/modules
167+
# *.iml
168+
# *.ipr
169+
170+
# CMake
171+
cmake-build-*/
172+
173+
# Mongo Explorer plugin
174+
.idea/**/mongoSettings.xml
175+
176+
# File-based project format
177+
*.iws
178+
179+
# IntelliJ
180+
out/
181+
182+
# mpeltonen/sbt-idea plugin
183+
.idea_modules/
184+
185+
# JIRA plugin
186+
atlassian-ide-plugin.xml
187+
188+
# Cursive Clojure plugin
189+
.idea/replstate.xml
190+
191+
# Crashlytics plugin (for Android Studio and IntelliJ)
192+
com_crashlytics_export_strings.xml
193+
crashlytics.properties
194+
crashlytics-build.properties
195+
fabric.properties
196+
197+
# Editor-based Rest Client
198+
.idea/httpRequests
199+
200+
# Android studio 3.1+ serialized cache file
201+
.idea/caches/build_file_checksums.ser
202+
203+
### WebStorm+all Patch ###
204+
# Ignores the whole .idea folder and all .iml files
205+
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
206+
207+
.idea/
208+
209+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
210+
211+
*.iml
212+
modules.xml
213+
.idea/misc.xml
214+
*.ipr
215+
216+
# Sonarlint plugin
217+
.idea/sonarlint
218+
219+
# End of https://www.toptal.com/developers/gitignore/api/node,webstorm+all

.env.example

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
# //////////////////////////////////////////////////////////////////////////////////
55
# //////////////////////////////////////////////////////////////////////////////////
66

7-
BINANCE_API_KEY=editme
8-
BINANCE_SECRET_KEY=editme
9-
BVA_API_KEY=editme
10-
TELEGRAM_API_KEY=editme
11-
TELEGRAM_RECEIVER_ID=editme
12-
USE_GMAIL=false
13-
USE_TELEGRAM=false
7+
BINANCE_API_KEY=
8+
BINANCE_SECRET_KEY=
9+
BVA_API_KEY=
10+
IS_NOTIFIER_GMAIL_ENABLED=false
11+
IS_NOTIFIER_TELEGRAM_ENABLED=false
12+
IS_TRADE_MARGIN_ENABLED=true
13+
#NOTIFIER_GMAIL_ADDRESS=
14+
#NOTIFIER_GMAIL_APP_PASSWORD=
15+
#NOTIFIER_TELEGRAM_API_KEY=
16+
#NOTIFIER_TELEGRAM_RECEIVER_ID=

.env.testing

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file is for testing purposes only and can be ignored by users!
2+
3+
BINANCE_API_KEY=BINANCE_API_KEY
4+
BINANCE_SECRET_KEY=BINANCE_SECRET_KEY
5+
BVA_API_KEY=BVA_API_KEY

.eslintrc.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
env:
2+
es2021: true
3+
node: true
4+
extends:
5+
- 'eslint:recommended'
6+
overrides:
7+
- files:
8+
- "**/*.ts"
9+
extends:
10+
- eslint:recommended
11+
- plugin:@typescript-eslint/recommended
12+
parser: "@typescript-eslint/parser"
13+
plugins:
14+
- "@typescript-eslint"
15+
rules:
16+
"@typescript-eslint/no-explicit-any": 0
17+
parserOptions:
18+
ecmaVersion: 12
19+
sourceType: module
20+
rules:
21+
indent:
22+
- error
23+
- 4
24+
- SwitchCase: 1
25+
linebreak-style:
26+
- error
27+
- unix
28+
quotes:
29+
- error
30+
- double
31+
semi:
32+
- error
33+
- never

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Docker Buildx setup
1717
id: buildx
18-
uses: docker/setup-buildx-action@v1.1.1
18+
uses: docker/setup-buildx-action@v1.3.0
1919

2020
- name: Registry login
2121
if: github.event_name != 'pull_request'
@@ -32,7 +32,7 @@ jobs:
3232
echo IMAGE_ID=$IMAGE_ID
3333
echo VERSION=$VERSION
3434
35-
# Push the Docker image to the registry on git pushes that either pushed a tag or one of the following branches: [master, develop]
35+
# Push the Docker image to the registry on git pushes that either pushed a tag or one of the following branches: [master, testing]
3636
if [[
3737
(
3838
"${{ github.event_name }}" == "create"
@@ -48,7 +48,7 @@ jobs:
4848
(
4949
$VERSION == "latest"
5050
||
51-
$VERSION == "develop"
51+
$VERSION == "testing"
5252
)
5353
)
5454
]]
@@ -93,7 +93,7 @@ jobs:
9393

9494
- name: Docker Buildx setup
9595
id: buildx
96-
uses: docker/setup-buildx-action@v1.1.1
96+
uses: docker/setup-buildx-action@v1.3.0
9797

9898
- name: Build "build"
9999
run: |
@@ -108,7 +108,7 @@ jobs:
108108
docker container rm -f extract
109109
110110
- name: Zip
111-
uses: montudor/action-zip@v0.1.1
111+
uses: montudor/action-zip@v1.0.0
112112
with:
113113
args: zip -qq -r ./nbt.zip ./
114114

0 commit comments

Comments
 (0)