@dydxprotocol/v4-localization 1.1.200 → 1.1.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1650,7 +1650,9 @@
1650
1650
  },
1651
1651
  "VAULTS": {
1652
1652
  "VAULT": "Vault",
1653
+ "MEGAVAULT": "MegaVault",
1653
1654
  "VAULT_FAQS": "Vault FAQs",
1655
+ "MEGAVAULT_FAQS": "MegaVault FAQs",
1654
1656
  "YOUR_ALL_TIME_PNL": "Your All-time P&L",
1655
1657
  "VAULT_THIRTY_DAY_APR": "30d APR",
1656
1658
  "VAULT_THIRTY_DAY_PNL": "30d P&L",
@@ -1672,6 +1674,8 @@
1672
1674
  "AMOUNT_TO_WITHDRAW": "Amount to Withdraw",
1673
1675
  "PREVIEW_WITHDRAW": "Preview Withdraw",
1674
1676
  "PREVIEW_DEPOSIT": "Preview Deposit",
1677
+ "CONFIRM_WITHDRAW_CTA": "Confirm Withdraw",
1678
+ "CONFIRM_DEPOSIT_CTA": "Confirm Deposit",
1675
1679
  "AMOUNT_TO_DEPOSIT": "Amount to Deposit",
1676
1680
  "CROSS_ACCOUNT": "Cross Account",
1677
1681
  "VAULT_DESCRIPTION": "This vault provides automated liquidity on all dYdX markets and gets a share of fee revenue. Vaults aim for a market-neutral position by quoting both sides of the book. P&L will vary based on market conditions and there's a risk of losing some or all of the USDC deposited.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dydxprotocol/v4-localization",
3
- "version": "1.1.200",
3
+ "version": "1.1.201",
4
4
  "description": "v4 localization",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -9,7 +9,8 @@
9
9
  "generate:app": "cd scripts && ./codegen_localization_app.swift ../config/localization/en/app.json > ./generated/app.ts && cd ..",
10
10
  "generate:notifications": "cd scripts && ./codegen_localization_notifications.swift ../config/localization_notifications/en/app.json > ./generated/notifications.ts && cd ..",
11
11
  "generate:tooltips": "cd scripts && ./codegen_localization_tooltips.swift ../config/localization/en/tooltips.json > ./generated/tooltips.ts && cd ..",
12
- "bump_version": "./scripts/bump_version.sh"
12
+ "bump_version": "./scripts/bump_version.sh",
13
+ "prepare_for_pr": "./scripts/bump_version.sh --no-warning && npm run generate"
13
14
  },
14
15
  "repository": {
15
16
  "type": "git",
@@ -1,15 +1,35 @@
1
1
  #!/bin/sh
2
2
 
3
- # search for the first line that starts with "version" in package.json
4
- # get the value in the quotes
3
+ # Parse the boolean parameter
4
+ SHOW_IMPORTANT_TEXT=true
5
+ if [ "$1" = "--no-warning" ]; then
6
+ SHOW_IMPORTANT_TEXT=false
7
+ fi
8
+
9
+ # Search for the first line that starts with "version" in package.json
10
+ # Get the value in the quotes
5
11
  VERSION=$(cat package.json | jq -r '.version')
6
12
 
7
13
  echo "Current version is $VERSION. Enter new version (or press enter to skip):"
8
14
  read NEW_VERSION
9
15
 
10
- #if NEW_VERSION is not empty, replace the version in package.json
16
+ # If NEW_VERSION is not empty, replace the version in package.json
11
17
  if [ -n "$NEW_VERSION" ]; then
12
18
  sed -i '' "s/ \"version\": \"$VERSION\"/ \"version\": \"$NEW_VERSION\"/" package.json
13
19
  echo "Version bumped to $NEW_VERSION"
14
20
  npm i
15
21
  fi
22
+
23
+ # ANSI color code for red
24
+ RED='\033[0;31m'
25
+ # ANSI color code for resetting color
26
+ NC='\033[0m'
27
+
28
+ # Display the important text only if SHOW_IMPORTANT_TEXT is true
29
+ if [ "$SHOW_IMPORTANT_TEXT" = true ]; then
30
+ echo ""
31
+ echo "${RED}**************************************************************"
32
+ echo "* IMPORTANT: If you are creating a PR, run \`npm run prepare_for_pr\` *"
33
+ echo "**************************************************************${NC}"
34
+ echo ""
35
+ fi
@@ -1829,11 +1829,15 @@ export const APP_STRING_KEYS = {
1829
1829
  ACKNOWLEDGE_HIGH_SLIPPAGE: 'APP.VAULTS.ACKNOWLEDGE_HIGH_SLIPPAGE',
1830
1830
  AMOUNT_TO_DEPOSIT: 'APP.VAULTS.AMOUNT_TO_DEPOSIT',
1831
1831
  AMOUNT_TO_WITHDRAW: 'APP.VAULTS.AMOUNT_TO_WITHDRAW',
1832
+ CONFIRM_DEPOSIT_CTA: 'APP.VAULTS.CONFIRM_DEPOSIT_CTA',
1833
+ CONFIRM_WITHDRAW_CTA: 'APP.VAULTS.CONFIRM_WITHDRAW_CTA',
1832
1834
  CROSS_ACCOUNT: 'APP.VAULTS.CROSS_ACCOUNT',
1833
1835
  DEPOSIT_TOO_HIGH: 'APP.VAULTS.DEPOSIT_TOO_HIGH',
1834
1836
  ENTER_AMOUNT_TO_DEPOSIT: 'APP.VAULTS.ENTER_AMOUNT_TO_DEPOSIT',
1835
1837
  ENTER_AMOUNT_TO_WITHDRAW: 'APP.VAULTS.ENTER_AMOUNT_TO_WITHDRAW',
1836
1838
  EST_SLIPPAGE: 'APP.VAULTS.EST_SLIPPAGE',
1839
+ MEGAVAULT: 'APP.VAULTS.MEGAVAULT',
1840
+ MEGAVAULT_FAQS: 'APP.VAULTS.MEGAVAULT_FAQS',
1837
1841
  PREVIEW_DEPOSIT: 'APP.VAULTS.PREVIEW_DEPOSIT',
1838
1842
  PREVIEW_WITHDRAW: 'APP.VAULTS.PREVIEW_WITHDRAW',
1839
1843
  PROTOCOL_VAULT: 'APP.VAULTS.PROTOCOL_VAULT',