Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StakeRequest model (with a help of sequelize) #73

Merged
merged 32 commits into from
Jun 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
19cb5e1
Implements draft version of stake request model
Jun 14, 2019
a6da945
Renamed DataAccessObject to DatabaseWrapper for more clarity
Jun 14, 2019
ed650b3
Adds empty tests files for DatabaseWrapper and StakeRequestRepository
Jun 14, 2019
d4b2c67
Adds npm scripts to run tests
Jun 14, 2019
1b74714
Removes DatabaseWrapper empty tests file
Jun 14, 2019
009a2f4
Adds tests for StakeRequestRepository::createTable
Jun 14, 2019
6c1576c
Adds tests for StakeRequestRepository::create
Jun 14, 2019
996f16c
Adds tests for StakeRequestRepository::get
Jun 14, 2019
ae584ea
Adds .travis.yml and enhances package.json
Jun 14, 2019
d86c945
Adds documentation to DatabaseWrapper
Jun 14, 2019
d05e635
Documents StakeRequestRepository
Jun 18, 2019
83b1ec8
Merge branch 'local/origin/master' into local/origin/stake-request-model
Jun 18, 2019
d9a10a7
Merges with master branch
Jun 18, 2019
7131506
Changes ts target from es6 to es5
Jun 18, 2019
2f4ae9a
Merges with upstream/master branch
Jun 18, 2019
a99df19
Removes the test coverage step (temporarily) from Travis
Jun 18, 2019
f610a86
Drafts stake request model with sequelize
Jun 19, 2019
b5425c4
Adds a database configuration and deferred sync
Jun 19, 2019
a8e5dde
Adds empty tests file for StakeRequestRepository
Jun 19, 2019
b0d4918
Adds unit tests for StakeRequestRepository::create
Jun 19, 2019
104ce73
Adds unit tests for StakeRequestRepository::build
Jun 19, 2019
0680d3f
Removes StakeRequestRepository::sync empty test
Jun 19, 2019
3043888
Adds unit test for StakeRequestRepository::get
Jun 19, 2019
af4e5ea
Hides StakeRequestModel behind implementation
Jun 19, 2019
c040911
Syncs all models on a database creation
Jun 20, 2019
85fc160
A single interface to create a database object.
Jun 20, 2019
78fa3ca
Adds sequelize and sqlite3 to dependencies.
Jun 20, 2019
dea7b9f
Improves StakeRequestRepository
Jun 21, 2019
e044e73
StakeRequest extends StakeRequestAttributes
Jun 21, 2019
a292167
Adds StakeRequestRepository::updateMessageHash
Jun 21, 2019
53a3c56
Enhances documentation
Jun 21, 2019
ebf3f5b
Enhances documentation
Jun 21, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/*
29 changes: 28 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module",
"ecmaFeatures": {
"modules": true
Expand All @@ -15,9 +16,35 @@
"json"
],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/indent": ["error", 2],
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/unbound-method": [
"error",
{
"ignoreStatic": true
}
],
"@typescript-eslint/promise-function-async": [
"error",
{
"checkArrowFunctions": true,
"checkFunctionDeclarations": true,
"checkFunctionExpressions": true,
"checkMethodDeclarations": true
}
],
"no-console": "off",
"no-underscore-dangle": "off",
"import/no-extraneous-dependencies": "off",
"strict": "off"
},
"env": {
Expand Down
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
dist: trusty
language: node_js
sudo: required
node_js:
- "11"
cache: npm
sudo: required
branches:
only:
- master
- develop
- /^feature\/.*/
- /^release-.*/
- /^hotfix-.*/
notifications:
email:
recipients:
Expand All @@ -17,5 +21,5 @@ notifications:
install:
- npm ci
script:
- npm run coverage
- npm run test

Loading