Skip to content

Commit

Permalink
TW-1479: [EVM] Transactions history with Alchemy
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-tsx committed Nov 23, 2024
1 parent a24bcaa commit 1b2700d
Show file tree
Hide file tree
Showing 20 changed files with 1,655 additions and 620 deletions.
24 changes: 16 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
{
"root": true,

"parser": "@typescript-eslint/parser",

"parserOptions": {
"project": "./tsconfig.eslint.json"
"project": "./tsconfig.json"
},

"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:@typescript-eslint/strict",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"plugins": ["@typescript-eslint", "import", "prettier"],

"plugins": ["@typescript-eslint", "import", "prettier", "no-type-assertion"],

"settings": {
"import/resolver": {
"typescript": {}
}
},

"rules": {
"prettier/prettier": "error",

"newline-before-return": ["error"],
"comma-dangle": ["error", "never"],
"no-void": "off",
Expand All @@ -29,21 +35,23 @@
"import/order": [
"error",
{
"groups": [["external", "builtin"], "internal", ["parent", "sibling", "index"]],
"groups": [["external", "builtin"], "internal", "parent", "sibling", "index"],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "always"
}
],

"no-type-assertion/no-type-assertion": "warn",

"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/strict-boolean-expressions": "warn",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unnecessary-type-constraint": "off",
"@typescript-eslint/ban-ts-comment": "off"
},
"globals": {
"localStorage": true
}
}
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"arrowParens": "avoid",
"bracketSameLine": true,
"bracketSpacing": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 120
}
8 changes: 0 additions & 8 deletions .prettierrc.js

This file was deleted.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@taquito/tzip12": "14.0.0",
"@taquito/tzip16": "14.0.0",
"@taquito/utils": "14.0.0",
"alchemy-sdk": "^3.5.0",
"async-retry": "^1.3.3",
"axios": "^0.27.2",
"bignumber.js": "^9.1.0",
Expand Down Expand Up @@ -44,7 +45,7 @@
"start-prod": "cross-env NODE_ENV=production node dist/index.js",
"build": "tsc --skipLibCheck",
"ts": "tsc --pretty",
"lint": "eslint ./src --ext .js,.ts",
"lint": "eslint --quiet ./src",
"lint:fix": "eslint ./src --ext .js,.ts --fix",
"lint:rules": "eslint --print-config",
"clean": "rimraf dist/",
Expand All @@ -58,22 +59,21 @@
"@types/express-unless": "^2.0.1",
"@types/lodash": "^4.17.0",
"@types/memoizee": "^0.4.5",
"@types/node": "^18.14.6",
"@types/node": "^22",
"@types/pino": "^6.3.8",
"@types/pino-http": "^5.4.1",
"@types/semaphore": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-import": "^2.26.0",
"eslint": "^8",
"eslint-import-resolver-typescript": "^3",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-no-type-assertion": "^1.3.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.2",
"rimraf": "^3.0.2",
"ts-node-dev": "^2.0.0",
"typescript": "^4.9.5"
"typescript": "^5",
"typescript-eslint": "^7"
}
}
3 changes: 2 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export const EnvVars = {
REDIS_URL: getEnv('REDIS_URL'),
ADMIN_USERNAME: getEnv('ADMIN_USERNAME'),
ADMIN_PASSWORD: getEnv('ADMIN_PASSWORD'),
COVALENT_API_KEY: getEnv('COVALENT_API_KEY')
COVALENT_API_KEY: getEnv('COVALENT_API_KEY'),
ALCHEMY_API_KEY: getEnv('ALCHEMY_API_KEY')
};

for (const name in EnvVars) {
Expand Down
Loading

0 comments on commit 1b2700d

Please sign in to comment.