Skip to content

Commit 9deea77

Browse files
fdmotageorgeromanlljxx1clemsos
authored
Filipe/platf 5412 pin dependencies (#102)
* feat: db session auth Signed-off-by: Filipe Mota <[email protected]> * fix: tweaks for latest allocator contract changes * chore: reduce expiration from 7 to 5 days * fix: use correct method interface * tweak: use hardcoded gas * tweak: use hardcoded gas * tweak: use hardcoded gas * tweak: use hardcoded gas * tweak: use hardcoded gas * tweak: use hardcoded gas * tweak: use hardcoded gas * tweak: use hardcoded gas * fix: update CI/CD workflow to work with k8s-config valuesObject Signed-off-by: Filipe Mota <[email protected]> * fix: use cache instead of calling near every time * Test pipeline * feat: add configs api * Add configs api (#82) * feat: add configs api * fix: skip returning allocatorMode when no depository is set * Add configs api (#83) * feat: add configs api * fix: skip returning allocatorMode when no depository is set * refactor: remove logic for logging balance * feat: add deposit nonce binding (#79) * feat: add hypeliquid nonce mapping * feat: cleanup logs and handle nonce duplication via primary key constraint * feat: include chainId in saving * feat: add version * feat: use signatureChainId for signature validation * feat: use signatureChainId for signature validation * feat: add new test case and wallet normalize * refactor: minor tweaks --------- Co-authored-by: George Roman <[email protected]> * feat: prepare for allocator migration by allowing different allocator… (#88) * feat: prepare for allocator migration by allowing different allocator per chain id * chore: override base allocator on dev * Prepare for allocator migration (#89) * feat: prepare for allocator migration by allowing different allocator per chain id * chore: override base allocator on dev * fix: tweaks * Prepare for allocator migration (#91) * feat: prepare for allocator migration by allowing different allocator per chain id * chore: override base allocator on dev * fix: tweaks * chore: more dev chains to new allocator * Prepare for allocator migration (#92) * feat: prepare for allocator migration by allowing different allocator per chain id * chore: override base allocator on dev * fix: tweaks * chore: more dev chains to new allocator * chore: more dev chains to new allocator * Prepare for allocator migration (#93) * feat: prepare for allocator migration by allowing different allocator per chain id * chore: override base allocator on dev * fix: tweaks * chore: more dev chains to new allocator * chore: more dev chains to new allocator * chore: more dev chains to new allocator * Solana withdrawals migration (#96) * chore: start migrating to new allocator * chore: start migrating to new allocator * chore: start migrating to new allocator * chore: start migrating to new allocator * chore: start migrating to new allocator * chore: start migrating to new allocator * fix: onchain allocator cache * fix: onchain allocator cache * fix: onchain allocator cache * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: upgrade sdk * feat: prepare for solana withdrawals migration * fix: build * Solana withdrawals migration (#97) * chore: start migrating to new allocator * chore: start migrating to new allocator * chore: start migrating to new allocator * chore: start migrating to new allocator * chore: start migrating to new allocator * chore: start migrating to new allocator * fix: onchain allocator cache * fix: onchain allocator cache * fix: onchain allocator cache * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: upgrade sdk * feat: prepare for solana withdrawals migration * fix: build * feat: prepare for solana withdrawals migration * Solana withdrawals migration (#98) * chore: start migrating to new allocator * chore: start migrating to new allocator * chore: start migrating to new allocator * chore: start migrating to new allocator * chore: start migrating to new allocator * chore: start migrating to new allocator * fix: onchain allocator cache * fix: onchain allocator cache * fix: onchain allocator cache * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: migrate to new allocator * chore: upgrade sdk * feat: prepare for solana withdrawals migration * fix: build * feat: prepare for solana withdrawals migration * feat: prepare for solana withdrawals migration * return payload params withdrawals/v1 * extract payload parsing * extract `submitWithdrawRequest` to helper * single submit function * remove unwanted changes * dont pass spender around * refactor signature * signature without db * missing return statement * fix: remove additional-data dependency for non-native hyperliquid onchain withdrawals * feat: Pin dependencies Signed-off-by: Filipe Mota <[email protected]> * feat: Pin dependencies Signed-off-by: Filipe Mota <[email protected]> * feat: Pin dependencies Signed-off-by: Filipe Mota <[email protected]> * fix: updated yarn.lock Signed-off-by: Filipe Mota <[email protected]> --------- Signed-off-by: Filipe Mota <[email protected]> Co-authored-by: George Roman <[email protected]> Co-authored-by: fun <[email protected]> Co-authored-by: Clément Renaud <[email protected]>
1 parent 522649c commit 9deea77

File tree

8 files changed

+1102
-124
lines changed

8 files changed

+1102
-124
lines changed

.github/dependabot.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
cooldown:
8+
days: 7
9+
include:
10+
- "*"
11+
versioning-strategy: auto

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn lint-staged

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-prefix ""

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
defaultSemverRangePrefix: "" # write exact versions into package.json

eslint.config.js

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
const tseslint = require("@typescript-eslint/eslint-plugin");
2+
const tsParser = require("@typescript-eslint/parser");
3+
const pluginJsonc = require("eslint-plugin-jsonc");
4+
const jsonParser = require("jsonc-eslint-parser");
5+
const jsonDependencies = require("eslint-plugin-package-json-dependencies");
6+
7+
module.exports = [
8+
{
9+
files: ["**/*.json"],
10+
languageOptions: {
11+
parser: jsonParser,
12+
},
13+
plugins: {
14+
jsonc: pluginJsonc,
15+
},
16+
rules: {
17+
"jsonc/no-dupe-keys": "error",
18+
},
19+
},
20+
// {
21+
// files: ["**/*.ts", "**/*.tsx"],
22+
// languageOptions: {
23+
// parser: tsParser,
24+
// parserOptions: {
25+
// project: ["./tsconfig.eslint.json"],
26+
// ecmaVersion: 2019,
27+
// sourceType: "module",
28+
// },
29+
// },
30+
// ignores: [],
31+
// plugins: {
32+
// "@typescript-eslint": tseslint,
33+
// },
34+
// rules: {
35+
// ...tseslint.configs["recommended"].rules,
36+
// "@typescript-eslint/no-non-null-assertion": "off",
37+
// "@typescript-eslint/no-empty-interface": "off",
38+
// "@typescript-eslint/no-unused-vars": "off",
39+
// "@typescript-eslint/no-explicit-any": "off",
40+
// "@typescript-eslint/ban-ts-comment": "off",
41+
// "@typescript-eslint/no-non-null-asserted-optional-chain": "off",
42+
// "@typescript-eslint/switch-exhaustiveness-check": "off",
43+
// "quotes": [
44+
// "error",
45+
// "double",
46+
// {
47+
// avoidEscape: true,
48+
// allowTemplateLiterals: true,
49+
// },
50+
// ],
51+
// "no-console": "error",
52+
// "no-self-compare": "error",
53+
// },
54+
// },
55+
// {
56+
// files: ["**/*.spec.ts"],
57+
// rules: {
58+
// "no-console": "off",
59+
// },
60+
// },
61+
{
62+
files: ["**/package.json"],
63+
plugins: {
64+
"package-json-deps": jsonDependencies,
65+
},
66+
languageOptions: {
67+
parser: jsonParser,
68+
},
69+
rules: {
70+
"package-json-deps/controlled-versions": ["error", { granularity: "patch" }],
71+
},
72+
},
73+
];

package.json

Lines changed: 63 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6,53 +6,75 @@
66
"build": "tsc -b",
77
"migrate": "node dist/scripts/run-migrations.js -m ./migrations -d POSTGRES_URL --no-check-order",
88
"start": "yarn migrate up 2>/dev/null && node ./dist/index.js",
9-
"test": "yarn build && yarn migrate up && jest"
9+
"test": "yarn build && yarn migrate up && jest",
10+
"lint": "eslint --max-warnings 0 .",
11+
"lint:fix": "eslint --max-warnings 0 --fix .",
12+
"prepare": "husky"
1013
},
1114
"resolutions": {
1215
"strip-ansi": "5.x"
1316
},
17+
"lint-staged": {
18+
"package.json": [
19+
"eslint --max-warnings 0"
20+
],
21+
"tsconfig*.json": [
22+
"eslint --max-warnings 0 --fix"
23+
],
24+
"*.{js,ts}": [
25+
"eslint --max-warnings 0 --fix"
26+
]
27+
},
1428
"dependencies": {
15-
"@aws-sdk/client-kms": "^3.891.0",
16-
"@aws-sdk/credential-providers": "^3.864.0",
17-
"@aws-sdk/rds-signer": "^3.864.0",
18-
"@fastify/swagger": "^9.5.1",
19-
"@fastify/swagger-ui": "^5.2.3",
20-
"@fastify/type-provider-typebox": "^5.1.0",
21-
"@near-js/providers": "^2.3.1",
22-
"@reservoir0x/relay-protocol-sdk": "^0.0.60",
23-
"@sinclair/typebox": "^0.34.14",
24-
"@solana/web3.js": "^1.98.2",
25-
"asn1.js": "^5.4.1",
26-
"axios": "^1.8.3",
27-
"bech32": "^2.0.0",
28-
"bitcoinjs-lib": "^6.1.7",
29-
"bn.js": "^5.2.2",
30-
"bs58": "^6.0.0",
31-
"ecpair": "^3.0.0",
32-
"fastify": "^5.2.1",
33-
"json-stable-stringify": "^1.3.0",
34-
"node-cron": "^3.0.3",
35-
"node-pg-migrate": "^7.9.0",
36-
"pg": "^8.13.1",
37-
"pg-promise": "^11.10.2",
38-
"pg-query-stream": "^4.7.1",
39-
"tiny-secp256k1": "^2.2.4",
40-
"tronweb": "^6.0.4",
41-
"tweetnacl": "^1.0.3",
42-
"viem": "^2.22.8",
43-
"winston": "^3.17.0",
44-
"ws": "^8.18.1"
29+
"@aws-sdk/client-kms": "3.916.0",
30+
"@aws-sdk/credential-providers": "3.916.0",
31+
"@aws-sdk/rds-signer": "3.916.0",
32+
"@fastify/swagger": "9.5.2",
33+
"@fastify/swagger-ui": "5.2.3",
34+
"@fastify/type-provider-typebox": "5.2.0",
35+
"@near-js/providers": "2.3.4",
36+
"@reservoir0x/relay-protocol-sdk": "0.0.60",
37+
"@sinclair/typebox": "0.34.41",
38+
"@solana/web3.js": "1.98.4",
39+
"asn1.js": "5.4.1",
40+
"axios": "1.12.2",
41+
"bech32": "2.0.0",
42+
"bitcoinjs-lib": "6.1.7",
43+
"bn.js": "5.2.2",
44+
"bs58": "6.0.0",
45+
"ecpair": "3.0.0",
46+
"fastify": "5.6.1",
47+
"json-stable-stringify": "1.3.0",
48+
"node-cron": "3.0.3",
49+
"node-pg-migrate": "7.9.1",
50+
"pg": "8.16.3",
51+
"pg-promise": "11.15.0",
52+
"pg-query-stream": "4.10.3",
53+
"tiny-secp256k1": "2.2.4",
54+
"tronweb": "6.0.4",
55+
"tweetnacl": "1.0.3",
56+
"viem": "2.38.4",
57+
"winston": "3.18.3",
58+
"ws": "8.18.3"
4559
},
4660
"devDependencies": {
47-
"@jest/globals": "^29.7.0",
48-
"@types/bn.js": "^5.2.0",
49-
"@types/node": "^22.10.6",
50-
"@types/node-cron": "^3.0.11",
51-
"@types/ws": "^8.18.0",
52-
"dotenv": "^16.4.7",
53-
"jest": "^29.7.0",
54-
"ts-jest": "^29.2.5",
55-
"ts-node": "^10.9.2",
56-
"typescript": "^5.7.3"
61+
"@jest/globals": "29.7.0",
62+
"@types/bn.js": "5.2.0",
63+
"@types/node": "22.18.12",
64+
"@types/node-cron": "3.0.11",
65+
"@types/ws": "8.18.1",
66+
"@typescript-eslint/eslint-plugin": "8.50.0",
67+
"@typescript-eslint/parser": "8.50.0",
68+
"dotenv": "16.6.1",
69+
"eslint": "9.39.2",
70+
"eslint-plugin-jsonc": "2.21.0",
71+
"eslint-plugin-package-json-dependencies": "1.0.20",
72+
"husky": "9.1.7",
73+
"jest": "29.7.0",
74+
"jsonc-eslint-parser": "2.4.2",
75+
"lint-staged": "16.2.7",
76+
"ts-jest": "29.4.5",
77+
"ts-node": "10.9.2",
78+
"typescript": "5.9.3"
5779
}
5880
}

tsconfig.eslint.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": true,
5+
"rootDir": "."
6+
},
7+
"include": ["src/**/*.ts", "tests/**/*.ts"],
8+
"exclude": ["node_modules", "dist"]
9+
}

0 commit comments

Comments
 (0)