Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
ad057ef
feat: db session auth
fdmota Sep 8, 2025
0d52948
fix: tweaks for latest allocator contract changes
georgeroman Sep 8, 2025
b2e1c82
Merge branch 'main' into staging
georgeroman Sep 8, 2025
668724c
Merge branch 'main' into staging
georgeroman Sep 8, 2025
2443927
Merge pull request #44 from relayprotocol/onchain-allocator-integration
georgeroman Sep 9, 2025
e9c58ad
Merge pull request #46 from relayprotocol/onchain-allocator-integration
georgeroman Sep 9, 2025
da4f7b2
Merge pull request #47 from relayprotocol/onchain-allocator-integration
georgeroman Sep 9, 2025
c7ff6a5
Merge pull request #48 from relayprotocol/onchain-allocator-integration
georgeroman Sep 9, 2025
3555e49
Merge branch 'main' into staging
georgeroman Sep 9, 2025
dd5cce8
Merge pull request #50 from relayprotocol/onchain-allocator-integration
georgeroman Sep 12, 2025
2f29fc9
Merge pull request #51 from relayprotocol/onchain-allocator-integration
georgeroman Sep 12, 2025
3139e3b
Merge pull request #52 from relayprotocol/onchain-allocator-integration
georgeroman Sep 12, 2025
f11cdbb
Merge pull request #53 from relayprotocol/onchain-allocator-integration
georgeroman Sep 12, 2025
c3d5668
Merge pull request #54 from relayprotocol/onchain-allocator-integration
georgeroman Sep 12, 2025
5b00c08
Merge pull request #55 from relayprotocol/onchain-allocator-integration
georgeroman Sep 12, 2025
ff6f17f
Merge pull request #56 from relayprotocol/onchain-allocator-integration
georgeroman Sep 12, 2025
65ddceb
chore: reduce expiration from 7 to 5 days
georgeroman Sep 16, 2025
b4c01b1
Merge branch 'main' into staging
georgeroman Sep 16, 2025
1c9e4d5
Merge branch 'main' into staging
georgeroman Sep 17, 2025
ff1f1e8
Merge pull request #58 from relayprotocol/onchain-allocator-integration
georgeroman Sep 17, 2025
372b09a
Merge pull request #59 from relayprotocol/onchain-allocator-integration
georgeroman Sep 17, 2025
d94a45f
Merge pull request #60 from relayprotocol/onchain-allocator-integration
georgeroman Sep 17, 2025
450a53d
Merge pull request #61 from relayprotocol/onchain-allocator-integration
georgeroman Sep 18, 2025
61d9614
Merge pull request #63 from relayprotocol/onchain-allocator-integration
georgeroman Sep 18, 2025
84a9112
Merge pull request #64 from relayprotocol/onchain-allocator-integration
georgeroman Sep 19, 2025
616c17c
Merge pull request #66 from relayprotocol/onchain-allocator-integration
georgeroman Sep 19, 2025
f9b6788
Merge branch 'main' into staging
georgeroman Sep 19, 2025
e8fe40d
Merge pull request #68 from relayprotocol/onchain-allocator-integration
georgeroman Sep 19, 2025
b6f5a67
Merge pull request #69 from relayprotocol/onchain-allocator-integration
georgeroman Sep 19, 2025
65c3ec2
Merge pull request #70 from relayprotocol/onchain-allocator-integration
georgeroman Sep 19, 2025
aeaf3ff
Merge branch 'main' into staging
georgeroman Sep 19, 2025
3ba3db1
Merge pull request #72 from relayprotocol/check-signing-oracle
georgeroman Sep 22, 2025
a7b9ca5
Merge branch 'main' into staging
georgeroman Sep 22, 2025
db18bcf
Merge branch 'main' into staging
georgeroman Sep 24, 2025
e9e27db
Merge pull request #75 from relayprotocol/onchain-allocator-integration
georgeroman Sep 30, 2025
c5f7d20
fix: use correct method interface
georgeroman Oct 1, 2025
d3232e0
Merge branch 'main' into staging
georgeroman Oct 1, 2025
4f137c2
tweak: use hardcoded gas
georgeroman Oct 1, 2025
b601214
tweak: use hardcoded gas
georgeroman Oct 1, 2025
4f5953d
tweak: use hardcoded gas
georgeroman Oct 1, 2025
99efc1c
tweak: use hardcoded gas
georgeroman Oct 1, 2025
1fc5a42
tweak: use hardcoded gas
georgeroman Oct 1, 2025
7458dc8
tweak: use hardcoded gas
georgeroman Oct 1, 2025
81853bd
tweak: use hardcoded gas
georgeroman Oct 1, 2025
40bb4a7
tweak: use hardcoded gas
georgeroman Oct 1, 2025
2be9e3b
Merge branch 'main' into staging
georgeroman Oct 3, 2025
50c84d3
Merge pull request #78 from relayprotocol/add-vault-secrets-support
fdmota Oct 3, 2025
eb3af56
fix: update CI/CD workflow to work with k8s-config valuesObject
fdmota Oct 8, 2025
acced4c
fix: use cache instead of calling near every time
georgeroman Oct 10, 2025
5abe25b
Merge branch 'main' into staging
georgeroman Oct 10, 2025
76a6a9c
Merge branch 'main' into staging
georgeroman Oct 14, 2025
f95a900
Test pipeline
fdmota Oct 17, 2025
e0925be
feat: add configs api
georgeroman Nov 3, 2025
a4950a2
Merge pull request #81 from relayprotocol/add-configs-api
georgeroman Nov 3, 2025
537b866
Add configs api (#82)
georgeroman Nov 3, 2025
cf16a17
Add configs api (#83)
georgeroman Nov 3, 2025
04d6945
Merge branch 'main' into staging
georgeroman Nov 6, 2025
783cd5e
feat: add deposit nonce binding (#79)
lljxx1 Nov 10, 2025
d682879
Merge branch 'main' into staging
georgeroman Nov 10, 2025
a0a92c3
Merge branch 'main' into staging
georgeroman Nov 10, 2025
3161537
Merge branch 'main' into staging
georgeroman Nov 10, 2025
38625d3
Merge branch 'main' into staging
georgeroman Nov 11, 2025
9c54b31
Merge branch 'main' into staging
georgeroman Nov 12, 2025
2f2daec
Merge branch 'main' into staging
georgeroman Nov 13, 2025
3b8678a
Merge branch 'main' into staging
georgeroman Nov 25, 2025
ff8959c
feat: prepare for allocator migration by allowing different allocator…
georgeroman Nov 27, 2025
41c1c22
Prepare for allocator migration (#89)
georgeroman Nov 27, 2025
3f47c2b
Prepare for allocator migration (#91)
georgeroman Nov 29, 2025
7c78ac2
Prepare for allocator migration (#92)
georgeroman Nov 29, 2025
d7a7e5c
Prepare for allocator migration (#93)
georgeroman Dec 1, 2025
c57dafb
Merge branch 'main' into staging
georgeroman Dec 1, 2025
8e8f427
Solana withdrawals migration (#96)
georgeroman Dec 10, 2025
0063e7d
Solana withdrawals migration (#97)
georgeroman Dec 11, 2025
294451e
Solana withdrawals migration (#98)
georgeroman Dec 11, 2025
96e23d2
return payload params withdrawals/v1
clemsos Dec 9, 2025
1617d2c
extract payload parsing
clemsos Dec 12, 2025
fffcfbf
extract `submitWithdrawRequest` to helper
clemsos Dec 12, 2025
f2e12de
single submit function
clemsos Dec 12, 2025
6c1bba1
remove unwanted changes
clemsos Dec 12, 2025
0549d32
dont pass spender around
clemsos Dec 12, 2025
d3c6759
refactor signature
clemsos Dec 12, 2025
b4e2e05
signature without db
clemsos Dec 12, 2025
8c134a5
missing return statement
clemsos Dec 12, 2025
c744fb2
Merge branch 'extract-payload-parsing' of https://github.com/reservoi…
clemsos Dec 12, 2025
b06a950
fix: remove additional-data dependency for non-native hyperliquid onc…
georgeroman Dec 16, 2025
4cb9e09
Merge branch 'main' into staging
georgeroman Dec 16, 2025
1be63a4
Merge branch 'main' into staging
georgeroman Dec 16, 2025
5a25dd9
Merge branch 'main' into staging
georgeroman Dec 16, 2025
f2368df
feat: Pin dependencies
fdmota Dec 17, 2025
01f6edb
feat: Pin dependencies
fdmota Dec 17, 2025
892e6b8
feat: Pin dependencies
fdmota Dec 17, 2025
5a75c6c
fix: updated yarn.lock
fdmota Dec 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
cooldown:
days: 7
include:
- "*"
versioning-strategy: auto
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn lint-staged
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-prefix ""
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaultSemverRangePrefix: "" # write exact versions into package.json
73 changes: 73 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
const tseslint = require("@typescript-eslint/eslint-plugin");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to create an eslint config package that can be inlcuded in other repos so we don't have a multiple conflicting rules, but that'll do for now!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually we have one already in https://github.com/relayprotocol/settlement-protocol can you use that one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is out the scope of the original ticket. I don't know how much work to make it compatible with all repos.
Can't we do in a follow up ticket?

const tsParser = require("@typescript-eslint/parser");
const pluginJsonc = require("eslint-plugin-jsonc");
const jsonParser = require("jsonc-eslint-parser");
const jsonDependencies = require("eslint-plugin-package-json-dependencies");

module.exports = [
{
files: ["**/*.json"],
languageOptions: {
parser: jsonParser,
},
plugins: {
jsonc: pluginJsonc,
},
rules: {
"jsonc/no-dupe-keys": "error",
},
},
// {
// files: ["**/*.ts", "**/*.tsx"],
// languageOptions: {
// parser: tsParser,
// parserOptions: {
// project: ["./tsconfig.eslint.json"],
// ecmaVersion: 2019,
// sourceType: "module",
// },
// },
// ignores: [],
// plugins: {
// "@typescript-eslint": tseslint,
// },
// rules: {
// ...tseslint.configs["recommended"].rules,
// "@typescript-eslint/no-non-null-assertion": "off",
// "@typescript-eslint/no-empty-interface": "off",
// "@typescript-eslint/no-unused-vars": "off",
// "@typescript-eslint/no-explicit-any": "off",
// "@typescript-eslint/ban-ts-comment": "off",
// "@typescript-eslint/no-non-null-asserted-optional-chain": "off",
// "@typescript-eslint/switch-exhaustiveness-check": "off",
// "quotes": [
// "error",
// "double",
// {
// avoidEscape: true,
// allowTemplateLiterals: true,
// },
// ],
// "no-console": "error",
// "no-self-compare": "error",
// },
// },
// {
// files: ["**/*.spec.ts"],
// rules: {
// "no-console": "off",
// },
// },
{
files: ["**/package.json"],
plugins: {
"package-json-deps": jsonDependencies,
},
languageOptions: {
parser: jsonParser,
},
rules: {
"package-json-deps/controlled-versions": ["error", { granularity: "patch" }],
},
},
];
104 changes: 63 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,53 +6,75 @@
"build": "tsc -b",
"migrate": "node dist/scripts/run-migrations.js -m ./migrations -d POSTGRES_URL --no-check-order",
"start": "yarn migrate up 2>/dev/null && node ./dist/index.js",
"test": "yarn build && yarn migrate up && jest"
"test": "yarn build && yarn migrate up && jest",
"lint": "eslint --max-warnings 0 .",
"lint:fix": "eslint --max-warnings 0 --fix .",
"prepare": "husky"
},
"resolutions": {
"strip-ansi": "5.x"
},
"lint-staged": {
"package.json": [
"eslint --max-warnings 0"
],
"tsconfig*.json": [
"eslint --max-warnings 0 --fix"
],
"*.{js,ts}": [
"eslint --max-warnings 0 --fix"
]
},
"dependencies": {
"@aws-sdk/client-kms": "^3.891.0",
"@aws-sdk/credential-providers": "^3.864.0",
"@aws-sdk/rds-signer": "^3.864.0",
"@fastify/swagger": "^9.5.1",
"@fastify/swagger-ui": "^5.2.3",
"@fastify/type-provider-typebox": "^5.1.0",
"@near-js/providers": "^2.3.1",
"@reservoir0x/relay-protocol-sdk": "^0.0.60",
"@sinclair/typebox": "^0.34.14",
"@solana/web3.js": "^1.98.2",
"asn1.js": "^5.4.1",
"axios": "^1.8.3",
"bech32": "^2.0.0",
"bitcoinjs-lib": "^6.1.7",
"bn.js": "^5.2.2",
"bs58": "^6.0.0",
"ecpair": "^3.0.0",
"fastify": "^5.2.1",
"json-stable-stringify": "^1.3.0",
"node-cron": "^3.0.3",
"node-pg-migrate": "^7.9.0",
"pg": "^8.13.1",
"pg-promise": "^11.10.2",
"pg-query-stream": "^4.7.1",
"tiny-secp256k1": "^2.2.4",
"tronweb": "^6.0.4",
"tweetnacl": "^1.0.3",
"viem": "^2.22.8",
"winston": "^3.17.0",
"ws": "^8.18.1"
"@aws-sdk/client-kms": "3.916.0",
"@aws-sdk/credential-providers": "3.916.0",
"@aws-sdk/rds-signer": "3.916.0",
"@fastify/swagger": "9.5.2",
"@fastify/swagger-ui": "5.2.3",
"@fastify/type-provider-typebox": "5.2.0",
"@near-js/providers": "2.3.4",
"@reservoir0x/relay-protocol-sdk": "0.0.60",
"@sinclair/typebox": "0.34.41",
"@solana/web3.js": "1.98.4",
"asn1.js": "5.4.1",
"axios": "1.12.2",
"bech32": "2.0.0",
"bitcoinjs-lib": "6.1.7",
"bn.js": "5.2.2",
"bs58": "6.0.0",
"ecpair": "3.0.0",
"fastify": "5.6.1",
"json-stable-stringify": "1.3.0",
"node-cron": "3.0.3",
"node-pg-migrate": "7.9.1",
"pg": "8.16.3",
"pg-promise": "11.15.0",
"pg-query-stream": "4.10.3",
"tiny-secp256k1": "2.2.4",
"tronweb": "6.0.4",
"tweetnacl": "1.0.3",
"viem": "2.38.4",
"winston": "3.18.3",
"ws": "8.18.3"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/bn.js": "^5.2.0",
"@types/node": "^22.10.6",
"@types/node-cron": "^3.0.11",
"@types/ws": "^8.18.0",
"dotenv": "^16.4.7",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.7.3"
"@jest/globals": "29.7.0",
"@types/bn.js": "5.2.0",
"@types/node": "22.18.12",
"@types/node-cron": "3.0.11",
"@types/ws": "8.18.1",
"@typescript-eslint/eslint-plugin": "8.50.0",
"@typescript-eslint/parser": "8.50.0",
"dotenv": "16.6.1",
"eslint": "9.39.2",
"eslint-plugin-jsonc": "2.21.0",
"eslint-plugin-package-json-dependencies": "1.0.20",
"husky": "9.1.7",
"jest": "29.7.0",
"jsonc-eslint-parser": "2.4.2",
"lint-staged": "16.2.7",
"ts-jest": "29.4.5",
"ts-node": "10.9.2",
"typescript": "5.9.3"
}
}
9 changes: 9 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": true,
"rootDir": "."
},
"include": ["src/**/*.ts", "tests/**/*.ts"],
"exclude": ["node_modules", "dist"]
}
Loading