Skip to content

Commit e7af40c

Browse files
authored
Merge pull request #187 from madfish-solutions/TW-1748-implement-evm-interaction-service
TW-1748 Delegate calls to EVM APIs to a separate backend
2 parents b4829ad + 1658ccf commit e7af40c

20 files changed

+179
-1197
lines changed

.env.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ THREE_ROUTE_API_AUTH_TOKEN=
1010
REDIS_URL=
1111
ADMIN_USERNAME=
1212
ADMIN_PASSWORD=
13-
COVALENT_API_KEY=
1413
TEMPLE_TAP_API_URL=
14+
EVM_API_URL=

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine3.18
1+
FROM node:22-alpine
22
WORKDIR /usr/src/app
33
COPY package.json yarn.lock ./
44
RUN yarn

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
"name": "dapps-list-backend",
33
"version": "1.0.0",
4-
"main": "index.js",
4+
"main": "dist/index.js",
55
"repository": "https://github.com/madfish-solutions/dapps-list-backend",
66
"author": "Inokentii Mazhara <[email protected]>",
77
"license": "MIT",
88
"dependencies": {
9-
"@covalenthq/client-sdk": "^2",
109
"@ethersproject/address": "^5.7.0",
1110
"@ethersproject/hash": "^5.7.0",
1211
"@ethersproject/strings": "^5.7.0",
@@ -17,8 +16,6 @@
1716
"@taquito/tzip12": "14.0.0",
1817
"@taquito/tzip16": "14.0.0",
1918
"@taquito/utils": "14.0.0",
20-
"alchemy-sdk": "^3.5.0",
21-
"async-retry": "^1.3.3",
2219
"axios": "^0.27.2",
2320
"bignumber.js": "^9.1.0",
2421
"body-parser": "^1.20.2",
@@ -49,10 +46,10 @@
4946
"lint:fix": "eslint ./src --ext .js,.ts --fix",
5047
"lint:rules": "eslint --print-config",
5148
"clean": "rimraf dist/",
52-
"db-migration": "cd migrations/notifications && npx ts-node index.ts"
49+
"db-migration": "cd migrations/notifications && npx ts-node index.ts",
50+
"find-deadcode": "ts-prune --error"
5351
},
5452
"devDependencies": {
55-
"@types/async-retry": "^1.4.8",
5653
"@types/body-parser": "^1.19.2",
5754
"@types/express": "^4.17.17",
5855
"@types/express-jwt": "^7.4.2",
@@ -67,12 +64,13 @@
6764
"eslint": "^8",
6865
"eslint-import-resolver-typescript": "^3",
6966
"eslint-plugin-import": "^2.29.0",
70-
"eslint-plugin-prettier": "^4.2.1",
7167
"eslint-plugin-no-type-assertion": "^1.3.0",
68+
"eslint-plugin-prettier": "^4.2.1",
7269
"npm-run-all": "^4.1.5",
7370
"prettier": "^2.8.2",
7471
"rimraf": "^3.0.2",
7572
"ts-node-dev": "^2.0.0",
73+
"ts-prune": "^0.10.3",
7674
"typescript": "^5",
7775
"typescript-eslint": "^7"
7876
}

src/advertising/external-ads.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,6 @@ export interface AdProviderSelectorsRule extends ExtVersionConstraints, BrowserC
157157
parentDepth?: number;
158158
}
159159

160-
export interface AdProviderForAllSitesRule extends ExtVersionConstraints {
161-
providers: string[];
162-
}
163-
164160
export interface ReplaceAdsUrlsBlacklistEntry extends ExtVersionConstraints {
165161
regexes: string[];
166162
}

src/config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ export const EnvVars = {
1313
REDIS_URL: getEnv('REDIS_URL'),
1414
ADMIN_USERNAME: getEnv('ADMIN_USERNAME'),
1515
ADMIN_PASSWORD: getEnv('ADMIN_PASSWORD'),
16-
COVALENT_API_KEY: getEnv('COVALENT_API_KEY'),
17-
ALCHEMY_API_KEY: getEnv('ALCHEMY_API_KEY'),
18-
TEMPLE_TAP_API_URL: getEnv('TEMPLE_TAP_API_URL')
16+
TEMPLE_TAP_API_URL: getEnv('TEMPLE_TAP_API_URL'),
17+
EVM_API_URL: getEnv('EVM_API_URL')
1918
};
2019

2120
for (const name in EnvVars) {

src/interfaces/contract-factoctories.interfaces.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/interfaces/price-history.interfaces.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)