From cae64559def394669da831840948ee2f2192a4a8 Mon Sep 17 00:00:00 2001 From: Jared Vu Date: Wed, 20 Sep 2023 10:44:50 -0700 Subject: [PATCH] v0.1.11 Additional BroadcastErrors, Order Limit error (#58) --- config/localization/en/app.json | 3 +++ package-lock.json | 4 ++-- package.json | 2 +- scripts/generated/app.ts | 7 ++++++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/config/localization/en/app.json b/config/localization/en/app.json index d082f25c7..62d751d89 100644 --- a/config/localization/en/app.json +++ b/config/localization/en/app.json @@ -1345,6 +1345,8 @@ "BROADCAST_ERROR_3006": "Stateful order does not exist", "BROADCAST_ERROR_3007": "Stateful order collateralization check failed", "BROADCAST_ERROR_3008": "Stateful order was previously cancelled and therefore cannot be placed", + "BROADCAST_ERROR_3009": "Stateful order was previously removed and therefore cannot be placed", + "BROADCAST_ERROR_10001": "Subaccount cannot open more orders due to equity tier limit.", "GENERAL": { "SOMETHING_WENT_WRONG_WITH_MESSAGE": "Something went wrong: {ERROR_MESSAGE}", @@ -1387,6 +1389,7 @@ "TRIGGER_MUST_BELOW_INDEX_PRICE": "Your trigger price must be below the current oracle price: {INDEX_PRICE}.", "TRIGGER_TOO_CLOSE_TO_LIQUIDATION_PRICE": "Your trigger price is too close to your liquidation price - this order may not execute fully before you get liquidated. Please update your trigger price or use a stop limit order.", "USER_MAX_ORDERS": "This order would put you above the max limit of 20 open orders per market, per side.", + "USER_MAX_ORDERS_FOR_EQUITY_TIER": "This order would put you above the equity tier limit of {LIMIT} open orders", "WOULD_NOT_REDUCE": "Your position would not be reduced if order is filled.", "WOULD_NOT_REDUCE_UNCHECK": "Your position would not be reduced with this order. Please uncheck Reduce-Only if you would like to place your order.", "INVALID_GOOD_TIL_MAX_90_DAYS": "Good Til exceeds the maximum 90 days." diff --git a/package-lock.json b/package-lock.json index 07d54e225..3ed9fb980 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dydxprotocol/v4-localization", - "version": "0.1.10", + "version": "0.1.11", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dydxprotocol/v4-localization", - "version": "0.1.10", + "version": "0.1.11", "license": "BSL-1.1", "devDependencies": { "@types/node": "^20.1.7" diff --git a/package.json b/package.json index 55596444f..74946d438 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-localization", - "version": "0.1.10", + "version": "0.1.11", "description": "v4 localization", "main": "index.ts", "scripts": { diff --git a/scripts/generated/app.ts b/scripts/generated/app.ts index 9b21a132f..1fcff5089 100644 --- a/scripts/generated/app.ts +++ b/scripts/generated/app.ts @@ -1,6 +1,6 @@ // !! GENERATED FILE - DO NOT EDIT -// Generated from ./config/localization/en/app.json using scripts/codegen_localization_app.swift +// Generated from ../config/localization/en/app.json using codegen_localization_app.swift export const APP_STRING_KEYS = { @@ -379,6 +379,7 @@ export const APP_STRING_KEYS = { FILLS: 'APP.GENERAL.FILLS', FREE: 'APP.GENERAL.FREE', FREE_COLLATERAL: 'APP.GENERAL.FREE_COLLATERAL', + FROM: 'APP.GENERAL.FROM', FUNDING_RATE_CHART_SHORT: 'APP.GENERAL.FUNDING_RATE_CHART_SHORT', GASLESS_DEPOSITS: 'APP.GENERAL.GASLESS_DEPOSITS', GAS_FEE: 'APP.GENERAL.GAS_FEE', @@ -520,6 +521,7 @@ export const APP_STRING_KEYS = { WEEKS_ABBREVIATED: 'APP.GENERAL.TIME_STRINGS.WEEKS_ABBREVIATED', _24H: 'APP.GENERAL.TIME_STRINGS._24H', _30D: 'APP.GENERAL.TIME_STRINGS._30D', + TO: 'APP.GENERAL.TO', TOTAL_BALANCE: 'APP.GENERAL.TOTAL_BALANCE', TOTAL_FEES: 'APP.GENERAL.TOTAL_FEES', TOTAL_VALUE: 'APP.GENERAL.TOTAL_VALUE', @@ -1378,6 +1380,7 @@ export const ERRORS_STRING_KEYS = { VALIDATOR_ALERT: 'ERRORS.API_STATUS.VALIDATOR_ALERT', VALIDATOR_DOWN: 'ERRORS.API_STATUS.VALIDATOR_DOWN', VALIDATOR_HALTED: 'ERRORS.API_STATUS.VALIDATOR_HALTED', + BROADCAST_ERROR_10001: 'ERRORS.BROADCAST_ERROR_10001', BROADCAST_ERROR_2000: 'ERRORS.BROADCAST_ERROR_2000', BROADCAST_ERROR_2001: 'ERRORS.BROADCAST_ERROR_2001', BROADCAST_ERROR_2002: 'ERRORS.BROADCAST_ERROR_2002', @@ -1391,6 +1394,7 @@ export const ERRORS_STRING_KEYS = { BROADCAST_ERROR_3006: 'ERRORS.BROADCAST_ERROR_3006', BROADCAST_ERROR_3007: 'ERRORS.BROADCAST_ERROR_3007', BROADCAST_ERROR_3008: 'ERRORS.BROADCAST_ERROR_3008', + BROADCAST_ERROR_3009: 'ERRORS.BROADCAST_ERROR_3009', // DEPOSIT_MODAL @@ -1455,6 +1459,7 @@ export const ERRORS_STRING_KEYS = { TRIGGER_MUST_BELOW_INDEX_PRICE: 'ERRORS.TRADE_BOX.TRIGGER_MUST_BELOW_INDEX_PRICE', TRIGGER_TOO_CLOSE_TO_LIQUIDATION_PRICE: 'ERRORS.TRADE_BOX.TRIGGER_TOO_CLOSE_TO_LIQUIDATION_PRICE', USER_MAX_ORDERS: 'ERRORS.TRADE_BOX.USER_MAX_ORDERS', + USER_MAX_ORDERS_FOR_EQUITY_TIER: 'ERRORS.TRADE_BOX.USER_MAX_ORDERS_FOR_EQUITY_TIER', WOULD_NOT_REDUCE: 'ERRORS.TRADE_BOX.WOULD_NOT_REDUCE', WOULD_NOT_REDUCE_UNCHECK: 'ERRORS.TRADE_BOX.WOULD_NOT_REDUCE_UNCHECK',