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

Initial implementation #7

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
063ce75
Test that transactions are being processed
christosporios May 15, 2017
c1cce13
Implement trust-increasing transaction parsing
christosporios May 15, 2017
00e4c46
Implement TrustIsRisk.prototype.getDirect()
christosporios May 17, 2017
913fd8d
Implement trust decreasing transaction parsing
christosporios May 18, 2017
14b48e5
Implement MaxFlow-based indirect trust inference
christosporios May 22, 2017
e7e4f84
Implement .getTrustIncreasingMTX()
christosporios May 26, 2017
7d44250
Use conscise should syntax
christosporios May 26, 2017
23d9a4b
Implement .getTrustDecreasingMTXs()
christosporios May 27, 2017
bdee7b0
Implement trust stealing
christosporios May 27, 2017
885d11f
Implement a complete end to end regtest test
christosporios May 29, 2017
eeff57a
Use ESLint, fix style issues
christosporios May 29, 2017
d28d1b6
Refactor: use consistent variable names
christosporios May 29, 2017
22fa3c4
Add Travis CI
christosporios May 29, 2017
a863ee7
Merge branch 'parse-tx' into tx-creation
christosporios May 29, 2017
0c7d90d
Fix indentation in .eslintrc
christosporios May 29, 2017
9e2f03c
Code review responses
christosporios Jul 11, 2017
2feb00a
Merge branch 'tx-creation' of github.com:decrypto-org/TrustIsRisk.js …
christosporios Jul 11, 2017
d9d073a
Move fixtures to separate fixtures file.
christosporios Sep 11, 2017
8df2ff5
Remove compiled files from repo; Minor code review fixes
christosporios Sep 11, 2017
86a512c
More CR responses.
christosporios Sep 11, 2017
8f25118
More CR fixes.
christosporios Sep 11, 2017
ba908f5
Fix bcoin version 1.0.0-beta.12
christosporios Sep 11, 2017
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
40 changes: 40 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace tabs with spaces in file

"parser": "babel-eslint",
"plugins": [
"eslint-plugin-flowtype"
],
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:flowtype/recommended"
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: indentation issues

"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"flowtype/space-before-type-colon": 0,
"no-undef": 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Write comment why we need this in file

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSON has no comments :/?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind.

"no-unused-vars": 0
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
lib/
*.swp
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: node_js
node_js:
- "7"

install:
- npm install
script:
- npm run check
Loading