-
Notifications
You must be signed in to change notification settings - Fork 0
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 92f4013
Showing
41 changed files
with
4,577 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,57 @@ | ||
name: Build & Test Package | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
linux-node10: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
- run: npm config set "@mintpond:registry" https://npm.pkg.github.com/mintpond | ||
- run: npm config set //npm.pkg.github.com/:_authToken ${{secrets.NPM_INSTALL_TOKEN}} | ||
- run: npm install | ||
- run: npm test | ||
|
||
linux-node12: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- run: npm config set "@mintpond:registry" https://npm.pkg.github.com | ||
- run: npm config set //npm.pkg.github.com/:_authToken ${{secrets.NPM_INSTALL_TOKEN}} | ||
- run: npm install | ||
- run: npm test | ||
|
||
windows-node10: | ||
runs-on: windows-2016 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
- run: npm config set "@mintpond:registry" https://npm.pkg.github.com | ||
- run: npm config set //npm.pkg.github.com/:_authToken ${{secrets.NPM_INSTALL_TOKEN}} | ||
- run: npm install | ||
- run: npm test | ||
|
||
windows-node12: | ||
runs-on: windows-2016 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- run: npm config set "@mintpond:registry" https://npm.pkg.github.com | ||
- run: npm config set //npm.pkg.github.com/:_authToken ${{secrets.NPM_INSTALL_TOKEN}} | ||
- run: npm install | ||
- run: npm test |
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 @@ | ||
name: Publish Package | ||
on: | ||
release: | ||
types: [created] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
- run: npm config set "@mintpond:registry" https://npm.pkg.github.com/mintpond | ||
- run: npm config set //npm.pkg.github.com/:_authToken ${{secrets.NPM_INSTALL_TOKEN}} | ||
- run: npm install | ||
- run: npm config set //npm.pkg.github.com/:_authToken ${{secrets.GITHUB_TOKEN}} | ||
- run: npm publish |
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,5 @@ | ||
node_modules/ | ||
.idea/ | ||
.forever/ | ||
.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,31 @@ | ||
mint-beam | ||
========= | ||
|
||
[Beam Coin](https://beam.mw/) API clients and utils for NodeJS used by [MintPond Mining Pool](https://mintpond.com). | ||
|
||
## Install ## | ||
__Install as Dependency in NodeJS Project__ | ||
```bash | ||
# Install from Github NPM repository | ||
|
||
npm config set @mintpond:registry https://npm.pkg.github.com/mintpond | ||
npm config set //npm.pkg.github.com/:_authToken <PERSONAL_ACCESS_TOKEN> | ||
|
||
npm install @mintpond/mint-beam@0.1.0 --save | ||
``` | ||
[Creating a personal access token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) | ||
|
||
__Install & Test__ | ||
```bash | ||
# Install nodejs v10 | ||
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | ||
sudo apt-get install nodejs -y | ||
|
||
# Download mint-beam | ||
git clone https://github.com/MintPond/mint-beam | ||
|
||
# build & test | ||
cd mint-beam | ||
npm install | ||
npm test | ||
``` |
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,16 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
/* API Clients */ | ||
BeamExplorerClient: require('./libs/class.BeamExplorerClient'), | ||
BeamMiningClient: require('./libs/class.BeamMiningClient'), | ||
BeamWalletClient: require('./libs/class.BeamWalletClient'), | ||
|
||
/* Constants */ | ||
BeamAddressExpire: require('./libs/const.BeamAddressExpire'), | ||
BeamTxStatus: require('./libs/const.BeamTxStatus'), | ||
BeamTxType: require('./libs/const.BeamTxType'), | ||
|
||
/* Utils */ | ||
beamDiff: require('./libs/service.beamDiff') | ||
}; |
Oops, something went wrong.