Skip to content

Commit

Permalink
feat: add proposal processing #21
Browse files Browse the repository at this point in the history
  • Loading branch information
bacher committed Sep 20, 2019
1 parent 2d41f96 commit fbd9582
Show file tree
Hide file tree
Showing 10 changed files with 365 additions and 114 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ GLS_CYBERWAY_HTTP_URL=
GLS_PROVIDER_PUBLIC_KEY=
GLS_PROVIDER_WIF=
GLS_PROVIDER_USERNAME=
GLS_PRISM_CONNECT=
GLS_REGISTRATION_CONNECT=
GLS_CHANNEL_TTL=
GLS_STORAGE_CLEANUP_TIMEOUT=
15 changes: 15 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"singleQuote": true,
"tabWidth": 4,
"semi": true,
"trailingComma": "es5",
"printWidth": 100,
"overrides": [
{
"files": ["*.yml", "*.json", ".prettierrc"],
"options": {
"tabWidth": 2
}
}
]
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@

- `GLS_PROVIDER_USERNAME` _(обязательно)_ - имя пользователя провайдера бендвича

- `GLS_REGISTRATION_CONNECT` _(обязательно)_ - ссылка на подключение к сервису регистрации
- `GLS_PRISM_CONNECT` _(обязательно)_ - ссылка для подключения к сервису призма

- `GLS_REGISTRATION_CONNECT` _(обязательно)_ - ссылка для подключения к сервису регистрации

- `GLS_CHANNEL_TTL` _(обязательно)_ - время жизни канала (время, которое будет хранится channelId в базе данных в памяти). **Важно:** \_storage проверяет, не превышено ли это значение лишь раз в определенное время, поэтому между тем, как данный лимит будет превышен, и тем, как канал будет фактически удален из памяти, может пройти существенное количество времени

Expand Down
92 changes: 46 additions & 46 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 9 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,13 @@
{
"name": "badwidth-service",
"version": "1.0.0",
"description": "",
"description": "Bandwidth provider service",
"main": "./src/Main.js",
"scripts": {
"start": "node src/index.js"
},
"author": "golos.io",
"license": "GPL-3.0",
"dependencies": {
"@types/node-fetch": "^2.1.4",
"@types/text-encoding": "0.0.35",
"cyberwayjs": "^20.0.0-beta7",
"gls-core-service": "^3.25.2",
"node-fetch": "^2.3.0",
"text-encoding": "^0.7.0"
},
"prettier": {
"singleQuote": true,
"tabWidth": 4,
"semi": true,
"trailingComma": "es5",
"printWidth": 100,
"overrides": [
{
"files": [
"*.yml",
"*.json"
],
"options": {
"tabWidth": 2
}
}
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/GolosChain/bandwidth-service.git"
Expand All @@ -42,6 +16,14 @@
"url": "https://github.com/GolosChain/bandwidth-service/issues"
},
"homepage": "https://github.com/GolosChain/bandwidth-service#readme",
"dependencies": {
"@types/node-fetch": "^2.1.4",
"@types/text-encoding": "0.0.35",
"cyberwayjs": "^20.0.0-beta7",
"gls-core-service": "^3.25.2",
"node-fetch": "^2.3.0",
"text-encoding": "^0.7.0"
},
"devDependencies": {
"@types/ws": "^6.0.1",
"jayson": "^2.1.1",
Expand Down
3 changes: 1 addition & 2 deletions src/Main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
const core = require('gls-core-service');
const stats = core.utils.statsClient;
const BasicMain = core.services.BasicMain;
const env = require('./data/env');
const Connector = require('./services/Connector');
const MongoDB = core.services.MongoDB;

class Main extends BasicMain {
constructor() {
super(stats, env);
super(env);
this.addNested(new Connector(), new MongoDB());
}
}
Expand Down
Loading

0 comments on commit fbd9582

Please sign in to comment.