Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] feat(api): bridge limit script #3131

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f131926
fetch best rfq quote with query params
bigboydiamonds Sep 13, 2024
acd653c
fetch best quote for sdk and rfq api
bigboydiamonds Sep 13, 2024
6ada55a
return largest quoted origin amount on 1m size with respective bridge…
bigboydiamonds Sep 13, 2024
8530122
update endpoint naming, errors
bigboydiamonds Sep 13, 2024
4428e8d
Merge branch 'master' into api/bridge-max-amounts
bigboydiamonds Sep 16, 2024
69f36c3
implement mvc pattern
bigboydiamonds Sep 16, 2024
b48a36e
return max/min origin amounts
bigboydiamonds Sep 17, 2024
d4fac70
clean
bigboydiamonds Sep 17, 2024
5e5e2b7
...
bigboydiamonds Sep 17, 2024
7eab9a7
revert package.json changes
bigboydiamonds Sep 17, 2024
f56517a
pass in from/to token addresses in query params
bigboydiamonds Sep 17, 2024
ddb245d
tests
bigboydiamonds Sep 17, 2024
139e27c
fix tests
bigboydiamonds Sep 17, 2024
95a93ca
fix test name
bigboydiamonds Sep 17, 2024
96ec975
return parsed values
bigboydiamonds Sep 17, 2024
be863d5
account for eth addresses
bigboydiamonds Sep 17, 2024
c6cd501
clean
bigboydiamonds Sep 17, 2024
bb9aa82
refactor: clean getBridgeLimitsController
bigboydiamonds Sep 18, 2024
9fb48d8
query lower limit range
bigboydiamonds Sep 18, 2024
d006117
lower limit values for min query
bigboydiamonds Sep 18, 2024
8ce1097
clean response
bigboydiamonds Sep 18, 2024
f844897
Merge branch 'master' into api/bridge-max-amounts
bigboydiamonds Sep 19, 2024
8a8c923
Construct bridge limit mapping function
bigboydiamonds Sep 19, 2024
07980e5
Add origin / dest token symbol in map
bigboydiamonds Sep 19, 2024
46e73c2
Add swapableType field to bridge limit map
bigboydiamonds Sep 19, 2024
6696b4d
improve endpoint naming to follow best practices
bigboydiamonds Sep 21, 2024
0cce954
Merge branch 'master' into api/bridge-max-amounts
bigboydiamonds Sep 21, 2024
2039353
Merge branch 'master' into api/bridge-max-amounts
bigboydiamonds Sep 23, 2024
b342984
rename
bigboydiamonds Sep 23, 2024
f6246d4
generate-limits-script (#3166)
bigboydiamonds Sep 24, 2024
a1d4650
update naming
bigboydiamonds Sep 24, 2024
33f5584
add eth test for bridge limit endpoint, use checksumd address in util
bigboydiamonds Sep 24, 2024
60138d4
middleware check order
bigboydiamonds Sep 24, 2024
64f6816
use generated bridge limits json to provide min/max values
bigboydiamonds Sep 24, 2024
6990b0f
return generated min/max values
bigboydiamonds Sep 24, 2024
fdefa7e
bridge limit map
bigboydiamonds Sep 24, 2024
eb7aa76
generate limits map
bigboydiamonds Sep 24, 2024
68c6c48
use map logic in bridge limits controller, remove sdk fetches at time…
bigboydiamonds Sep 24, 2024
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
4 changes: 3 additions & 1 deletion packages/rest-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
"lint:check": "eslint . --max-warnings=0",
"ci:lint": "npm run lint:check",
"test": "jest",
"test:coverage": "jest --collect-coverage"
"test:coverage": "jest --collect-coverage",
"generate:limits-map": "node src/scripts/generateBridgeLimitMapping.js"
},
"dependencies": {
"@ethersproject/address": "^5.7.0",
"@ethersproject/bignumber": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"@ethersproject/units": "5.7.0",
Expand Down
Loading
Loading