Skip to content

Commit

Permalink
Add token migration strings (#79)
Browse files Browse the repository at this point in the history
* add token migration strings

* update strings
  • Loading branch information
aforaleka authored Oct 3, 2023
1 parent 01d070d commit eba011b
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 28 deletions.
112 changes: 89 additions & 23 deletions config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,24 @@
"PAST_WEEK": "Past Week",
"THIS_MONTH_LOWERCASED": "this month",
"THIS_QUARTER_LOWERCASED": "this quarter",
"THIS_WEEK": "This week",
"THIS_WEEK_LOWERCASED": "this week",
"THIS_WEEK": "This week",
"TODAY_LOWERCASED": "today",
"TODAY": "Today",
"WEEK": "Week",
"WEEKS_ABBREVIATED": "w",
"WEEKS": "Weeks",
"X_MINUTES": "{X} Minutes"
"X_HOURS_LOWERCASED": "{X} hours",
"X_MINUTES_LOWERCASED": "{X} minutes",
"X_MINUTES": "{X} Minutes",
"X_SECONDS_LOWERCASED": "{X} seconds",
},
"ABOUT": "About",
"ACADEMY": "Academy",
"ACCOUNT_LEVERAGE": "Account Leverage",
"ACCOUNT": "Account",
"ACTION": "Action",
"ADDRESS": "Address",
"ADVANCED": "Advanced",
"ALERTS": "Alerts",
"ALL_MARKETS": "All markets",
Expand All @@ -43,13 +47,14 @@
"ANONYMOUS": "Anonymous",
"ARE_UNCHANGED": "are unchanged",
"ARE_YOU_SURE": "Are you sure?",
"ASSET": "Asset",
"ASSET_BALANCE": "{ASSET} Balance",
"ASSET": "Asset",
"AVAILABLE": "Available",
"BACK": "Back",
"BALANCE": "Balance",
"BASE_INITIAL_MARGIN_FRACTION": "Base Initial Margin Fraction",
"BASE_POSITION_NOTIONAL": "Base Position Notional",
"BLOCK_EXPLORER": "Block explorer",
"BLOCK_HEIGHT": "Block Height",
"BUY": "Buy",
"BUYING_POWER": "Buying Power",
Expand All @@ -69,8 +74,8 @@
"CONFIRMED": "Confirmed",
"CONNECT_WALLET": "Connect wallet",
"CONNECT": "Connect",
"CONNECTED": "Connected",
"CONNECTED_TO": "Connected To",
"CONNECTED": "Connected",
"COPIED": "Copied!",
"COPY": "Copy",
"CREATED_AT": "Created At",
Expand All @@ -83,9 +88,9 @@
"DEFI": "DeFi",
"DEGRADED": "Degraded",
"DEPOSIT_FUNDS": "Deposit funds",
"DEPOSIT": "Deposit",
"DEPOSIT_MORE": "Deposit more",
"DEPOSIT_WITH_FIAT": "Deposit with fiat",
"DEPOSIT": "Deposit",
"DEPTH_CHART_SHORT": "Depth",
"DESTINATION": "Destination",
"DETAILED_VIEW": "Detailed view",
Expand All @@ -94,11 +99,13 @@
"DISCOUNT": "Discount",
"DISMISS": "Dismiss",
"DONE": "Done",
"DYDX_CHAIN": "dYdX Chain",
"DYDX_ADDRESS": "dYdX address",
"DYDX_CHAIN_ADDRESS": "dYdX Chain Address",
"DYDX_CHAIN": "dYdX Chain",
"EMAIL": "Email",
"ENDED": "Ended",
"EQUITY": "Equity",
"ESTIMATED": "Estimated",
"EXPAND_SECTION": "Expand section",
"EXPAND": "Expand",
"FAST_WITHDRAW": "Fast Withdraw",
Expand All @@ -109,8 +116,9 @@
"FIAT": "Fiat",
"FILL": "Fill",
"FILLS": "Fills",
"FREE": "Free",
"FREE_COLLATERAL": "Free Collateral",
"FREE": "Free",
"FROM": "from ${FROM}",
"FUNDING_RATE_CHART_SHORT": "Funding",
"GAS_FEE": "Gas fee",
"GASLESS_DEPOSITS": "Gasless deposits",
Expand All @@ -120,19 +128,19 @@
"GOVERNANCE": "Governance",
"HEDGIES": "Hedgies",
"HELP_AND_SUPPORT": "Help & Support",
"HIDE": "Hide",
"HIDE_ALL_DETAILS": "Hide all details",
"HIDE_DETAILS": "Hide details",
"HIDE_SECTION": "Hide section",
"HIDE": "Hide",
"HISTORY": "History",
"INCREASED": "increased",
"INCREASING": "Increasing",
"INITIAL_MARGIN_FRACTION": "Initial Margin Fraction",
"KEEP_TRADING": "Keep trading",
"LANGUAGE": "Language",
"LAYER_1": "Layer 1",
"LEARN": "Learn",
"LEARN_MORE": "Learn more",
"LEARN": "Learn",
"LEGACY": "Legacy",
"LEVERAGE": "Leverage",
"LIVE": "Live",
Expand All @@ -153,6 +161,8 @@
"MAXIMUM_REWARDS": "Maximum Rewards",
"MENU": "Menu",
"METRICS": "Metrics",
"MIGRATE": "Migrate",
"MINE": "Mine",
"MINIMUM_ORDER_SIZE": "Minimum Order Size",
"MODIFY": "Modify",
"NETWORK": "Network",
Expand All @@ -167,8 +177,8 @@
"OTHER": "Other",
"OVERVIEW": "Overview",
"PASTE": "Paste",
"PENDING": "Pending",
"PENDING_REWARDS": "Pending Rewards",
"PENDING": "Pending",
"PERPETUALS_UNAVAILABLE_IN_US": "Perpetuals are not available to people or companies who are residents of, or are located, incorporated or have a registered agent in, the United States or a restricted territory. More details can be found in our Terms of Use ",
"PERPETUALS": "Perpetuals",
"PNL": "P&L",
Expand All @@ -186,12 +196,12 @@
"PROFIT_AND_LOSS_PERCENT_LABEL": "Profit / Loss (%)",
"PROFIT_AND_LOSS_PERCENT": "Relative P&L",
"PROMOTION": "Promotion",
"QUEUED": "Queued",
"QUERY_NOT_FOUND": "“{QUERY}” was not found",
"QUEUED": "Queued",
"RANKINGS": "Rankings",
"RECEIVE": "Receive",
"RECENT": "Recent",
"RECENT_TRADES_SHORT": "Trades",
"RECENT": "Recent",
"REFERRAL_CODE": "Referral Code",
"REFERRALS": "Referrals",
"REFERRER_PERCENT_OFF": "{DISCOUNT}% off",
Expand Down Expand Up @@ -220,39 +230,41 @@
"STOP_ORDER_SHORT": "Stop",
"SWITCH_LEADERBOARD": "Switch leaderboard",
"TAKE_ME_THERE": "Take me there",
"TERMS_AND_CONDITIONS": "Terms & Conditions",
"TICK_SIZE": "Tick Size",
"TIER": "Tier",
"TIME": "Time",
"TIMESTAMP_ERROR": "Timestamp error",
"TO": "to ${TO}",
"TOTAL_BALANCE": "Total balance",
"TOTAL_FEES": "Total Fees",
"TOTAL_VALUE": "Total Value",
"TRADE_AN_AMOUNT": "Trade {AMOUNT}",
"TRADE": "Trade",
"TRADER": "Trader",
"TRADES": "Trades",
"TRADING": "Trading",
"TRADING_FEE_REDUCTION": "Trading fee reduction",
"TRADING_FEE_REDUCTION_DESCRIPTION_2": "We've updated our fee structure! Enjoy an up to {REDUCTION} in fees across all tiers.",
"TRADING_FEE_REDUCTION": "Trading fee reduction",
"TRADING_REWARDS": "Trading rewards",
"TRADING": "Trading",
"TRAILING_STOP_SHORT": "Trailing",
"TRANSFER": "Transfer",
"TRANSFER_IN": "Transfer In",
"TRANSFER_OUT": "Transfer Out",
"TRANSFER": "Transfer",
"TRANSFERS": "Transfers",
"FROM": "from ${FROM}",
"TO": "to ${TO}",
"TUTORIALS": "Tutorials",
"TYPE": "Type",
"UNAVAILABLE": "Unavailable",
"UNCONFIRMED": "Unconfirmed",
"UNKNOWN_ERROR": "Unknown error",
"UNKNOWN": "Unknown",
"USERNAME": "Username",
"VIEW": "View",
"VIEW_DETAILS": "View details",
"VIEW_LEAGUE": "View League",
"VIEW_LESS": "View less",
"VIEW_MORE": "View more",
"VIEW_OPTIONS": "View options",
"VIEW": "View",
"VIEWS": "Views",
"VOLUME_30D": "Volume (30d)",
"WALLET_BALANCE": "Wallet Balance",
Expand Down Expand Up @@ -850,12 +862,11 @@
"HAVE_YOU_EXPORTED": "Have you exported your secret phrase?",
"HOLDING": "Holding {NUMBER}",
"IN_THIS_EPOCH": "in this epoch",
"LEARN_TO_EXPORT" : "{STRONG_NO}, learn how to export my secret phrase.",
"LEARN_TO_EXPORT": "{STRONG_NO}, learn how to export my secret phrase.",
"MAKER_MARKET_SHARE": "maker market share",
"MARKET_NOW_LIVE": "{SYMBOL} now live",
"MIGRATE": "Migrate",
"MIGRATE_NOW": "Migrate now",
"MIGRATE_DESCRIPTION": "Migrate your $DYDX from Ethereum to dYdX Chain. This will enable you to participate in governance. You will also be able to stake your $DYDX.",
"MIGRATE_DESCRIPTION": "Migrate your DYDX from Ethereum to dYdX Chain. This will enable you to participate in governance. You will also be able to stake your DYDX.",
"NAVIGATE_TO_KEPLR": "{STRONG_YES}, navigate to Keplr Dashboard.",
"NO_TOKENS_TO_MIGRATE": "No tokens to migrate",
"NONE_HELD": "None held",
Expand Down Expand Up @@ -1533,6 +1544,62 @@
"SELECT_A_THEME": "Select Color Theme"
}
},
"TOKEN_MIGRATION": {
"AFTER": "After",
"APPROVE_ALLOWANCE": "Approve allowance",
"AVAILABLE_BLOCK": "Available block",
"AVAILABLE_ON_CHAIN": "Available on {CHAIN}",
"BALANCE_ON_CHAIN": "Balance on {CHAIN}",
"BEFORE": "Before",
"CHECK_STATUS": "Check status",
"CONFIRM_MIGRATION_DISCLAIMER": "I understand it will take 24-48 hours until my tokens are available on dYdX Chain.",
"CONFIRM_MIGRATION": "Confirm migration",
"DYDX_CHAIN_SETTLEMENT": "dYdX Chain settlement",
"EMPTY_PENDING_MIGRATIONS_ALL": "There are no pending migrations currently.",
"EMPTY_PENDING_MIGRATIONS_MINE": "There are no pending migrations with your dYdX address currently.",
"EMPTY_PENDING_MIGRATIONS_SESARCH": "There are no pending migrations with address matching {SEARCH_STRING} currently.",
"ENTER_ADDRESS": "Enter dYdX address",
"ESTIMATED_TIME_LEFT": "Estimated time left",
"ESTIMATED_TIMELINE": "Estimated timeline",
"ETHEREUM_FINALIZATION": "Ethereum finalization",
"ETHEREUM_SETTLEMENT": "Ethereum settlement",
"FAQ_GAS_FEES_ANSWER": "Yes, holders who engage with the portal will have to pay gas costs on Ethereum. Users will not have to pay gas costs on dYdX Chain.",
"FAQ_GAS_FEES": "Do I have to pay gas fees?",
"FAQ_HOW_LONG_ANSWER": "Once Ethereum-based DYDX is successfully sent to the Ethereum smart contract, a holder will receive wethDYDX immediately. dYdX Chain validators will acknowledge the Ethereum tx after it is finalized (which takes roughly 20 minutes). After dYdX Chain validators acknowledge the Ethereum tx, dYdX Chain DYDX settlement will be delayed for 86400 blocks, which translates into roughly 38.5 hours. After the 86400 block delay, dYdX Chain validators will send the dYdX Chain address the specified amount of DYDX.",
"FAQ_HOW_LONG": "How long should the migration take?",
"FAQ_HOW_TO_TRACK_ANSWER": "Once your Ethereum tx has been finalized (which takes roughly 20 minutes), you can track your pending dYdX Chain migration in Pending Migrations tab. You can filter the table by pasting a dYdX Chain address to see all of its pending migrations. Once the pending migration has settled to the dYdX Chain Address, the pending migration will no longer be shown in the table.",
"FAQ_HOW_TO_TRACK": "How can I track the status of my migration?",
"FAQ_V4_PORTAL_ANSWER": "The dYdX Community elected to migrate Ethereum-based DYDX to dYdX Chain (vote {VOTE_LINK}). This portal assists Ethereum-based DYDX holders to engage with the Ethereum smart contract to migrate their DYDX tokens from Ethereum to dYdX Chain.",
"FAQ_V4_PORTAL": "What is the v4 Portal?",
"FAQ_WHAT_ADDRESS_ANSWER": "Users who interact with the portal can send dYdX Chain DYDX tokens to any dYdX Chain address. User’s can send tokens directly to their dYdX Chain address that is automatically created from their Ethereum address’s signature.",
"FAQ_WHAT_ADDRESS": "What address can I send dYdX Chain DYDX to?",
"FAQ_WHAT_TOKENS_ANSWER": "Holders who successfully engage with the portal will receive wethDYDX on Ethereum and DYDX on dYdX Chain.",
"FAQ_WHAT_TOKENS": "What tokens will I receive?",
"FAQ_WRAPPED_TOKENS_ANSWER": "wethDYDX are minted 1:1 to any users who successfully send Ethereum-based DYDX to the smart contract. wethDYDX have the same v3 governance rights as Ethereum-based DYDX, and are transferable. wethDYDX cannot be bridged to v4.",
"FAQ_WRAPPED_TOKENS": "What are wrapped Ethereum DYDX tokens (“wethDYDX”)?",
"FINALIZED": "Finalized",
"FINALIZING": "Finalizing",
"GENERATED_ADDRESS_INFO": "You'll be able to manage your dYdX Chain DYDX on {TRADE_URL} using the same wallet.",
"GENERATED_ADDRESS_VIA_ADDRESS": "Generated dYdX address via {ADDRESS}",
"LATEST_BLOCK_HEIGHT": "Latest block height",
"MIGRATION_FAILED": "Migration failed",
"MIGRATION_HELP": "Migration help",
"NEW_MIGRATION": "New migration",
"NOT_STARTED": "Not started",
"PENDING_MIGRATIONS_DESCRIPTION_I": "This table lists all ongoing token migrations from Ethereum to the dYdX Chain. It refreshes periodically or upon a manual page reload. New entries will appear a few minutes after their corresponding Ethereum transactions finalize, which typically takes around 25 minutes.",
"PENDING_MIGRATIONS_DESCRIPTION_II": "Once a pending migration is listed, you can track the dYdX Chain block where tokens will be transferred. Please note that the estimated time shown is only an approximation, as it can vary due to dYdX Chain block time fluctuations.",
"PENDING_MIGRATIONS_DESCRIPTION_III": "Once the migration has settled, it will be removed from this table during the next automatic update or when the page is manually refreshed.",
"PENDING_MIGRATIONS": "Pending Migrations",
"PREVIEW_MIGRATION": "Preview migration",
"PROGRESS_TRACKING_WARNING": "Leave this open to track your progress while the transaction is being finalized.",
"RETRY_MIGRATION": "Retry migration",
"SEARCH_DYDX_CHAIN_ADDRESS": "Search dYdX Chain address",
"SEND_TO_ANOTHER_ADDRESS": "Send to another {ADDRESS}",
"SENDING_IN_PROGRESS": "Sending in progress",
"SENDING_SUCCESSFUL": "Sending successful",
"STARTED": "Started",
"WALLET_SIGNATURE": "wallet signature"
},
"CHAIN": {
"V3_MAINNET": "V3 Mainnet",
"V3_GOERLI": "V3 Staging",
Expand Down Expand Up @@ -1564,7 +1631,6 @@
"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}",
"SOMETHING_WENT_WRONG": "Something went wrong. Please try again later.",
Expand Down Expand Up @@ -1733,4 +1799,4 @@
"TAKE_PROFIT_MARKET_ORDER_MAY_NOT_EXECUTE": "Take Profit Market"
}
}
}
}
6 changes: 6 additions & 0 deletions config/localization/en/tooltips.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,5 +243,11 @@
"TITLE": "Verify email address",
"BODY": "Please click the link in the email we sent you, which will help us verify ownership of your email address."
}
},
"TOKEN_MIGRATION": {
"DYDX_CHAIN_SETTLEMENT": {
"TITLE": "dYdX Chain settlement",
"BODY": "To ensure the security of the protocol, dYdX Chain validators delay the settlement of dYdX Chain DYDX."
}
}
}
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import walletConnect from './wallet_connect';
import { APP } from './config/localization/app';

export { TOOLTIPS } from './config/localization/tooltip';
export { APP_STRING_KEYS, ERRORS_STRING_KEYS, WARNINGS_STRING_KEYS } from './scripts/generated/app';
export { APP_STRING_KEYS, ERRORS_STRING_KEYS, WARNINGS_STRING_KEYS, TOKEN_MIGRATION_STRING_KEYS } from './scripts/generated/app';
export { TOOLTIP_STRING_KEYS } from './scripts/generated/tooltips';
export { APP_NATIVE } from './config/localizations_native';
export { NOTIFICATIONS} from './config/localization_notifications';
Expand Down
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.19",
"version": "0.1.20",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
Loading

0 comments on commit eba011b

Please sign in to comment.