Skip to content

Commit

Permalink
v0.1.11 Additional BroadcastErrors, Order Limit error (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredvu authored Sep 20, 2023
1 parent c54e3e8 commit cae6455
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down Expand Up @@ -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."
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dydxprotocol/v4-localization",
"version": "0.1.10",
"version": "0.1.11",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
7 changes: 6 additions & 1 deletion scripts/generated/app.ts
Original file line number Diff line number Diff line change
@@ -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 = {

Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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

Expand Down Expand Up @@ -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',

Expand Down

0 comments on commit cae6455

Please sign in to comment.