Skip to content

Commit

Permalink
remove excess dep
Browse files Browse the repository at this point in the history
  • Loading branch information
defi-dev committed May 17, 2024
1 parent 4193cc9 commit 7c45b98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 49 deletions.
4 changes: 2 additions & 2 deletions app/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ export async function initApi(app: App, port: number): Promise<() => void> {
fastify.get('/api/v1/public-key-hash/:address', (request, reply) => {
const agent = getAgentWithWorkerAddress(request.params['address']);
const wallet = agent.getWorkerSigner();
reply.code(200).send({hash: hashOfPubKey(wallet, elipticCurve)});
reply.code(200).send({ hash: hashOfPubKey(wallet, elipticCurve) });
});

fastify.get('/api/v1/private-key-hash/:address', (request, reply) => {
const agent = getAgentWithWorkerAddress(request.params['address']);
const wallet = agent.getWorkerSigner();
reply.code(200).send({hash: hashOfPrivateKey(wallet)});
reply.code(200).send({ hash: hashOfPrivateKey(wallet) });
});

fastify.get('/api/v1/networks/:networkName', (request, reply) => {
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@
"@sentry/node": "^7.64.0",
"@types/yamljs": "^0.2.31",
"axios": "^1.3.6",
"body-parser": "^1.20.2",
"elliptic": "^6.5.5",
"ethers": "5.7.2",
"express": "^4.19.2",
"fastify": "^4.19.2",
"p-iteration": "^1.1.8",
"web3": "^1.9.0",
"winston": "^3.10.0",
"winston-daily-rotate-file": "4.5.0",
"winston-transport": "^4.5.0",
"yamljs": "^0.3.0",
"elliptic": "^6.5.5"
"yamljs": "^0.3.0"
},
"type": "module",
"devDependencies": {
Expand Down
44 changes: 1 addition & 43 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ body-parser@1.20.1:
type-is "~1.6.18"
unpipe "1.0.0"

body-parser@1.20.2, body-parser@^1.16.0, body-parser@^1.20.2:
body-parser@^1.16.0:
version "1.20.2"
resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.2.tgz#6feb0e21c4724d06de7ff38da36dad4f57a747fd"
integrity sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==
Expand Down Expand Up @@ -1516,11 +1516,6 @@ cookie@0.5.0, cookie@^0.5.0:
resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b"
integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==

cookie@0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051"
integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==

cookie@^0.4.1:
version "0.4.2"
resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432"
Expand Down Expand Up @@ -2129,43 +2124,6 @@ express@^4.14.0:
utils-merge "1.0.1"
vary "~1.1.2"

express@^4.19.2:
version "4.19.2"
resolved "https://registry.yarnpkg.com/express/-/express-4.19.2.tgz#e25437827a3aa7f2a827bc8171bbbb664a356465"
integrity sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==
dependencies:
accepts "~1.3.8"
array-flatten "1.1.1"
body-parser "1.20.2"
content-disposition "0.5.4"
content-type "~1.0.4"
cookie "0.6.0"
cookie-signature "1.0.6"
debug "2.6.9"
depd "2.0.0"
encodeurl "~1.0.2"
escape-html "~1.0.3"
etag "~1.8.1"
finalhandler "1.2.0"
fresh "0.5.2"
http-errors "2.0.0"
merge-descriptors "1.0.1"
methods "~1.1.2"
on-finished "2.4.1"
parseurl "~1.3.3"
path-to-regexp "0.1.7"
proxy-addr "~2.0.7"
qs "6.11.0"
range-parser "~1.2.1"
safe-buffer "5.2.1"
send "0.18.0"
serve-static "1.15.0"
setprototypeof "1.2.0"
statuses "2.0.1"
type-is "~1.6.18"
utils-merge "1.0.1"
vary "~1.1.2"

ext@^1.1.2:
version "1.7.0"
resolved "https://registry.yarnpkg.com/ext/-/ext-1.7.0.tgz#0ea4383c0103d60e70be99e9a7f11027a33c4f5f"
Expand Down

0 comments on commit 7c45b98

Please sign in to comment.