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

generate-limits-script #3166

Merged
merged 11 commits into from
Sep 24, 2024
3 changes: 2 additions & 1 deletion packages/rest-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"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",
Expand Down
2 changes: 0 additions & 2 deletions packages/rest-api/src/controllers/bridgeLimitsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { parseUnits } from '@ethersproject/units'
import { Synapse } from '../services/synapseService'
import { tokenAddressToToken } from '../utils/tokenAddressToToken'
import { formatBNToString } from '../utils/formatBNToString'
import { BRIDGE_LIMIT_MAPPING } from '../utils/bridgeLimitMapping'

export const getBridgeLimitsController = async (req, res) => {
const errors = validationResult(req)
Expand Down Expand Up @@ -96,7 +95,6 @@ export const getBridgeLimitsController = async (req, res) => {
)

return res.json({
BRIDGE_LIMIT_MAPPING,
maxOriginAmount,
minOriginAmount,
})
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"build:slither": " ",
"graphql:generate": "graphql-codegen --config codegen.ts",
"maps:generate": "node scripts/generateMaps.js",
"limits:generate": "node scripts/generateLimits.js",
"test": "echo 'No jest tests defined.'"
},
"dependencies": {
Expand Down
Loading
Loading