Skip to content

Commit

Permalink
lock dependencies
Browse files Browse the repository at this point in the history
lock viem
update eth base fee
  • Loading branch information
TheTrunk committed Feb 4, 2025
1 parent 5699d1f commit d8d64fc
Show file tree
Hide file tree
Showing 3 changed files with 1,049 additions and 1,116 deletions.
96 changes: 51 additions & 45 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssp-relay",
"version": "1.6.0",
"version": "1.6.1",
"description": "SSP Relay",
"main": "index.ts",
"type": "module",
Expand All @@ -14,53 +14,59 @@
},
"author": "Tadeas Kmenta",
"license": "MIT",
"resolutions": {
"viem": "2.22.21"
},
"overrides": {
"viem": "2.22.21"
},
"dependencies": {
"@runonflux/aa-schnorr-multisig-sdk": "~1.1.1",
"@runonflux/utxo-lib": "~1.0.1",
"alchemy-sdk": "~3.5.1",
"apicache": "~1.6.3",
"axios": "~1.7.9",
"bchaddrjs": "~0.5.2",
"bignumber.js": "~9.1.2",
"compression": "~1.7.5",
"config": "~3.3.12",
"cors": "~2.8.5",
"express": "~4.21.2",
"express-rate-limit": "~7.5.0",
"firebase-admin": "~13.0.2",
"freshdesk-client": "~1.9.1",
"lru-cache": "~11.0.2",
"mongodb": "~6.12.0",
"morgan": "~1.10.0",
"node-cmd": "~5.0.0",
"qs": "~6.14.0",
"socket.io": "~4.8.1",
"viem": "~2.22.14"
"@runonflux/aa-schnorr-multisig-sdk": "1.1.1",
"@runonflux/utxo-lib": "1.0.1",
"alchemy-sdk": "3.5.1",
"apicache": "1.6.3",
"axios": "1.7.9",
"bchaddrjs": "0.5.2",
"bignumber.js": "9.1.2",
"compression": "1.7.5",
"config": "3.3.12",
"cors": "2.8.5",
"express": "4.21.2",
"express-rate-limit": "7.5.0",
"firebase-admin": "13.0.2",
"freshdesk-client": "1.9.1",
"lru-cache": "11.0.2",
"mongodb": "6.13.0",
"morgan": "1.10.0",
"node-cmd": "5.0.0",
"qs": "6.14.0",
"socket.io": "4.8.1",
"viem": "2.22.21"
},
"devDependencies": {
"@eslint/js": "~9.19.0",
"@types/chai": "~5.0.1",
"@types/compression": "~1.7.5",
"@types/cors": "~2.8.17",
"@types/express": "~5.0.0",
"@types/expect": "~24.3.2",
"@types/mocha": "~10.0.10",
"@types/morgan": "~1.9.9",
"chai": "~4.5.0",
"eslint": "~9.19.0",
"eslint-config-prettier": "~10.0.1",
"eslint-plugin-mocha": "~10.5.0",
"eslint-plugin-prettier": "~5.2.3",
"globals": "~15.14.0",
"mocha": "~11.1.0",
"nyc": "~17.1.0",
"prettier": "~3.4.2",
"ts-mocha": "~10.0.0",
"tsx": "~4.19.2",
"typescript": "~5.7.3",
"typescript-eslint": "~8.21.0",
"sinon": "~19.0.2",
"node-mocks-http": "~1.16.2"
"@eslint/js": "9.19.0",
"@types/chai": "5.0.1",
"@types/compression": "1.7.5",
"@types/cors": "2.8.17",
"@types/express": "5.0.0",
"@types/expect": "24.3.2",
"@types/mocha": "10.0.10",
"@types/morgan": "1.9.9",
"chai": "4.5.0",
"eslint": "9.19.0",
"eslint-config-prettier": "10.0.1",
"eslint-plugin-mocha": "10.5.0",
"eslint-plugin-prettier": "5.2.3",
"globals": "15.14.0",
"mocha": "11.1.0",
"nyc": "17.1.0",
"prettier": "3.4.2",
"ts-mocha": "10.0.0",
"tsx": "4.19.2",
"typescript": "5.7.3",
"typescript-eslint": "8.23.0",
"sinon": "19.0.2",
"node-mocks-http": "1.16.2"
},
"engines": {
"node": ">=20"
Expand Down
4 changes: 2 additions & 2 deletions src/services/networkFeesService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async function obtainEthFees() {
priorityFee = 1250000000;
}
const baseFee = +(
Math.floor(parseInt(resA.data.result, 16) * 1.8) / 1e9
Math.floor(parseInt(resA.data.result, 16) * 2) / 1e9
).toFixed(9);
const economyFee = +(Math.floor(priorityFee * 1) / 1e9).toFixed(9);
const normalFee = +(Math.floor(priorityFee * 1.1) / 1e9).toFixed(9);
Expand Down Expand Up @@ -128,7 +128,7 @@ async function obtainSepoliaFees() {
priorityFee = 1250000000;
}
const baseFee = +(
Math.floor(parseInt(resA.data.result, 16) * 1.8) / 1e9
Math.floor(parseInt(resA.data.result, 16) * 2) / 1e9
).toFixed(9);
const economyFee = +(Math.floor(priorityFee * 1) / 1e9).toFixed(9);
const normalFee = +(Math.floor(priorityFee * 1.1) / 1e9).toFixed(9);
Expand Down
Loading

0 comments on commit d8d64fc

Please sign in to comment.