This repository was archived by the owner on Sep 8, 2022. It is now read-only.
-
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
1 parent
c98e931
commit 3a15aa3
Showing
16 changed files
with
4,907 additions
and
96 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,3 @@ | ||
module.exports = { | ||
presets: ['@babel/preset-env'] | ||
} |
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,8 @@ | ||
{ | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"version": "0.0.0", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true | ||
} |
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 |
---|---|---|
@@ -1,22 +1,27 @@ | ||
{ | ||
"name": "linkdrop-sdk", | ||
"name": "@linkdrop/binance", | ||
"version": "1.0.0", | ||
"description": "Linkdrop SDK", | ||
"description": "Linkdrop Binance Monorepo", | ||
"main": "index.js", | ||
"repository": "https://github.com/LinkdropProtocol/linkdrop-sdk", | ||
"author": "Amir Jumaniyazov <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@binance-chain/javascript-sdk": "https://github.com/Dobrokhvalov/javascript-sdk", | ||
"axios": "^0.19.0", | ||
"ethers": "^4.0.31" | ||
"private": true, | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*" | ||
] | ||
}, | ||
"scripts": { | ||
"server": "npx babel-node packages/server/index" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.5", | ||
"@babel/node": "^7.4.5", | ||
"@babel/polyfill": "^7.4.4", | ||
"@babel/preset-env": "^7.4.5", | ||
"@babel/register": "^7.4.4" | ||
"@babel/register": "^7.4.4", | ||
"lerna": "^3.16.4" | ||
} | ||
} |
File renamed without changes.
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
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,25 @@ | ||
{ | ||
"name": "@linkdrop/binance-sdk", | ||
"version": "1.0.0", | ||
"description": "Linkdrop Binance SDK", | ||
"main": "index.js", | ||
"repository": "https://github.com/LinkdropProtocol/linkdrop-sdk", | ||
"author": "Amir Jumaniyazov <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@binance-chain/javascript-sdk": "https://github.com/Dobrokhvalov/javascript-sdk", | ||
"axios": "^0.19.0", | ||
"ethers": "^4.0.31" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.5", | ||
"@babel/node": "^7.4.5", | ||
"@babel/polyfill": "^7.4.4", | ||
"@babel/preset-env": "^7.4.5", | ||
"@babel/register": "^7.4.4" | ||
}, | ||
"babel": { | ||
"extends": "../../babel.config.js" | ||
} | ||
} |
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
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
File renamed without changes.
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,2 @@ | ||
import wrapAsync from './wrapAsync' | ||
export { wrapAsync } |
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,13 @@ | ||
import boom from '@hapi/boom' | ||
|
||
export default fn => (req, res, next) => { | ||
fn(req, res, next).catch(err => { | ||
if (!err.isBoom) { | ||
if (err.name === 'CastError' || err.kind === 'ObjectId') { | ||
return next(boom.notFound('No valid entry found')) | ||
} | ||
return next(boom.badImplementation(err)) | ||
} | ||
next(err) | ||
}) | ||
} |
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
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 |
---|---|---|
|
@@ -6,6 +6,9 @@ | |
"author": "Amir Jumaniyazov - <[email protected]>", | ||
"license": "MIT", | ||
"private": true, | ||
"scripts": { | ||
"start": "npx babel-node index" | ||
}, | ||
"dependencies": { | ||
"@binance-chain/javascript-sdk": "https://github.com/Dobrokhvalov/javascript-sdk", | ||
"@hapi/boom": "^7.4.2", | ||
|
@@ -29,6 +32,9 @@ | |
"@babel/node": "^7.4.5", | ||
"@babel/polyfill": "^7.4.4", | ||
"@babel/preset-env": "^7.4.5", | ||
"@babel/register": "^7.4.4", | ||
"@babel/register": "^7.4.4" | ||
}, | ||
"babel": { | ||
"extends": "../../babel.config.js" | ||
} | ||
} |
Oops, something went wrong.