-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6c6f7d8
Showing
22 changed files
with
3,091 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules/ | ||
.idea/ | ||
.vscode/ | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 JCThePants, contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
ref-stratum | ||
=========== | ||
|
||
This Reference Stratum is a simple implementation used as a basis for testing, experimentation, and | ||
demonstration purposes. It is not intended for production use. | ||
|
||
## Install ## | ||
__Dependencies__ | ||
```bash | ||
# Dependencies may require that you have a Github personal access token to install. | ||
npm config set @mintpond:registry https://npm.pkg.github.com/mintpond | ||
npm config set //npm.pkg.github.com/:_authToken <PERSONAL_ACCESS_TOKEN> | ||
``` | ||
[Creating a personal access token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) | ||
|
||
__Download from Github__ | ||
```bash | ||
git clone https://github.com/MintPond/ref-stratum | ||
|
||
# install | ||
cd ref-stratum | ||
npm install | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"coinbaseAddress": "mpN96WyD5Xb8q66aVsfd7P6P2WJDdqapKf", | ||
"blockBrand": "/@mintpond/ref-stratum/", | ||
"host": "0.0.0.0", | ||
"port": { | ||
"number": 3020, | ||
"diff": 1024 | ||
}, | ||
"rpc": { | ||
"host": "127.0.0.1", | ||
"port": 8888, | ||
"user": "user", | ||
"password": "x" | ||
}, | ||
"jobUpdateInterval": 55, | ||
"blockPollIntervalMs": 250 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
Client: require('./libs/class.Client'), | ||
Share: require('./libs/class.Share'), | ||
Stratum: require('./libs/class.Stratum'), | ||
StratumError: require('./libs/class.StratumError'), | ||
StratumErrorCode: require('./libs/const.StratumErrorCode') | ||
}; |
Oops, something went wrong.