Auction Params Endpoint (#442)

* move auction endpoint changes to fresh branch

* final cleanup and add testing for util functions

* fix tests

* fix quote amount conversion
This commit is contained in:
lowkeynicc
2025-07-14 19:13:43 -04:00
committed by GitHub
parent dd524de371
commit 7483704d09
7 changed files with 2553 additions and 35 deletions

View File

@@ -43,6 +43,8 @@
"ws": "^8.14.2"
},
"devDependencies": {
"@jest/globals": "^29.3.1",
"@types/jest": "^29.4.0",
"@types/k6": "^0.45.0",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
@@ -51,9 +53,11 @@
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"husky": "^7.0.4",
"jest": "^29.7.0",
"k6": "^0.0.0",
"prettier": "^2.4.1",
"tiny-glob": "^0.2.9",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1"
},
"scripts": {
@@ -77,7 +81,27 @@
"prettify:fix": "prettier --write './src/**/*.ts'",
"lint": "eslint . --ext ts --quiet",
"lint:fix": "eslint . --ext ts --fix",
"playground": "ts-node src/playground.ts"
"playground": "ts-node src/playground.ts",
"test": "jest src/utils/tests/auctionParams.test.ts",
"test:watch": "jest src/utils/tests/auctionParams.test.ts --watch"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"moduleFileExtensions": [
"ts",
"js"
],
"transform": {
"^.+\\.ts$": "ts-jest"
},
"testMatch": [
"**/*.test.ts"
],
"moduleNameMapper": {
"^@drift-labs/sdk$": "<rootDir>/drift-common/protocol/sdk/lib/node/index.js",
"^@drift/common$": "<rootDir>/drift-common/common-ts/lib/index.js"
}
},
"resolutions": {
"rpc-websockets": "^10.0.0"