@dydxprotocol/v4-localization 0.0.9 → 0.0.11
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.
- package/config/localization/en/app.json +12 -2
- package/config/localizations_native/en/app.json +7 -1
- package/config/prod/endpoints.json +1 -2
- package/config/staging/dev_endpoints.json +76 -2
- package/config/staging/endpoints.json +1 -2
- package/package.json +1 -1
- package/scripts/bump_version.sh +15 -0
- package/scripts/codegen.sh +3 -0
- package/scripts/generated/app.ts +11 -1
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"DISCOUNT": "Discount",
|
|
86
86
|
"DISMISS": "Dismiss",
|
|
87
87
|
"DONE": "Done",
|
|
88
|
+
"DYDX_CHAIN": "dYdX Chain",
|
|
88
89
|
"EMAIL": "Email",
|
|
89
90
|
"ENDED": "Ended",
|
|
90
91
|
"EQUITY": "Equity",
|
|
@@ -366,6 +367,7 @@
|
|
|
366
367
|
"ONBOARDING": {
|
|
367
368
|
"INITIATED_DEPOSIT": "Initiated deposit",
|
|
368
369
|
"INITIATED_WITHDRAWAL": "Initiated withdrawal",
|
|
370
|
+
"INITIATED_TRANSFEROUT": "Initiated transfer",
|
|
369
371
|
"BRIDGING_TOKENS": "Bridging tokens",
|
|
370
372
|
"DEPOSIT_TO_DYDX": "Deposit to dYdX",
|
|
371
373
|
"DEPOSIT_TO_DESTINATION": "Deposit to {DESTINATION_CHAIN}",
|
|
@@ -373,6 +375,8 @@
|
|
|
373
375
|
"DEPOSIT_ALERT_SUBTITLE": "Check status",
|
|
374
376
|
"WITHDRAWAL_ALERT_TITLE": "You have {PENDING_WITHDRAWALS} pending withdrawal to {DESTINATION_CHAIN}.",
|
|
375
377
|
"WITHDRAWAL_ALERT_SUBTITLE": "Check status",
|
|
378
|
+
"TRANSFEROUT_ALERT_TITLE": "You have pending transfer of {PENDING_TRANSFERS} {TOKEN}.",
|
|
379
|
+
"TRANSFEROUT_ALERT_SUBTITLE": "Check status",
|
|
376
380
|
"ABOUT_WALLETS": "About wallets",
|
|
377
381
|
"ACKNOWLEDGE_TERMS": "Acknowledge terms",
|
|
378
382
|
"API_KEYS_NOT_FOUND": "API Key not found",
|
|
@@ -1109,7 +1113,10 @@
|
|
|
1109
1113
|
"DIRECTLY_TRANSFER": "Directly transfer funds to another account on dYdX",
|
|
1110
1114
|
"ETH_ADDRESS": "Ethereum wallet address",
|
|
1111
1115
|
"PLEASE_CONFIRM_ADDRESS": "Please confirm that this is the desired address before proceeding.",
|
|
1112
|
-
"SELECT_ADDRESS": "Enter or select address"
|
|
1116
|
+
"SELECT_ADDRESS": "Enter or select address",
|
|
1117
|
+
"ADDRESS_FIELD": "Invalid wallet address",
|
|
1118
|
+
"INVALID_ADDRESS_TITLE": "Invalid wallet address",
|
|
1119
|
+
"INVALID_ADDRESS_BODY": "Please enter an valid dYdX chain address."
|
|
1113
1120
|
},
|
|
1114
1121
|
"DEPOSIT_WITH_FIAT": {
|
|
1115
1122
|
"BANXA_SUPPORT_LINK": "Banxa support",
|
|
@@ -1225,7 +1232,10 @@
|
|
|
1225
1232
|
"V4_DEVNET_3": "V4 Dev 3",
|
|
1226
1233
|
"V4_DEVNET_4": "V4 Dev 4",
|
|
1227
1234
|
"V4_STAGING": "V4 Staging",
|
|
1228
|
-
"V4_TESTNET2": "V4 Public Testnet #2"
|
|
1235
|
+
"V4_TESTNET2": "V4 Public Testnet #2",
|
|
1236
|
+
"V4_TESTNET2_DSRV": "V4 Public Testnet #2 DSRV",
|
|
1237
|
+
"V4_TESTNET2_DYDX": "V4 Public Testnet #2 dYdX",
|
|
1238
|
+
"V4_TESTNET2_NODEFLEET": "V4 Public Testnet #2 nodefleet"
|
|
1229
1239
|
},
|
|
1230
1240
|
"ERRORS": {
|
|
1231
1241
|
"GENERAL": {
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
},
|
|
334
334
|
"DIRECT_TRANSFER_MODAL": {
|
|
335
335
|
"ENTER_ETH_ADDRESS": "Enter wallet address",
|
|
336
|
-
"ENTER_TRANSFER_AMOUNT": "Enter amount"
|
|
336
|
+
"ENTER_TRANSFER_AMOUNT": "Enter transfer amount"
|
|
337
337
|
},
|
|
338
338
|
"FIAT_ONRAMP": {
|
|
339
339
|
"NEW": "New!",
|
|
@@ -352,6 +352,8 @@
|
|
|
352
352
|
"SWITCH_NETWORK": "Switch Trading Network",
|
|
353
353
|
"CALCULATING": "Calculating ...",
|
|
354
354
|
"NO_HASH": "Unable to obtain transaction hash.",
|
|
355
|
+
"NO_GAS_TITLE": "Insufficent wallet balance to cover gas fee",
|
|
356
|
+
"NO_GAS_BODY": "Please first make a small deposit to your dYdX account to refill wallet.",
|
|
355
357
|
"THEME": "Theme",
|
|
356
358
|
"DIRECTION_COLOR_PREFERENCE": "Color Preference",
|
|
357
359
|
"DARK": "Dark",
|
|
@@ -381,6 +383,10 @@
|
|
|
381
383
|
"IN_PROGRESS_TEXT": "Your withdrawal of {AMOUNT_ELEMENT} has been submitted. This can take a few minutes.",
|
|
382
384
|
"COMPLETED_TITLE": "Withdrawal completed",
|
|
383
385
|
"COMPLETED_TEXT": "Your withdrawal has been completed."
|
|
386
|
+
},
|
|
387
|
+
"V4_TRANSFEROUT": {
|
|
388
|
+
"COMPLETED_TITLE": "Transfer submitted",
|
|
389
|
+
"COMPLETED_TEXT": "Your transfer of {AMOUNT_ELEMENT} {TOKEN} has been submitted"
|
|
384
390
|
}
|
|
385
391
|
},
|
|
386
392
|
"ERRORS": {
|
|
@@ -18,9 +18,8 @@
|
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"validators":[
|
|
21
|
-
"https://validator.v4testnet2.dydx.exchange",
|
|
22
21
|
"https://dydx-testnet.nodefleet.org",
|
|
23
|
-
"https://dydx-testnet-archive.allthatnode.com:26657"
|
|
22
|
+
"https://dydx-testnet-archive.allthatnode.com:26657/XZvMM41hESf8PJrEQiTzbCOMVyFca79R"
|
|
24
23
|
],
|
|
25
24
|
"0xsquid":"https://squid-api-git-feat-cosmos-maintestnet-0xsquid.vercel.app",
|
|
26
25
|
"configs":"https://dydx-v4-shared-resources.vercel.app",
|
|
@@ -193,9 +193,83 @@
|
|
|
193
193
|
}
|
|
194
194
|
],
|
|
195
195
|
"validators":[
|
|
196
|
-
"https://validator.v4testnet2.dydx.exchange",
|
|
197
196
|
"https://dydx-testnet.nodefleet.org",
|
|
198
|
-
"https://dydx-testnet-archive.allthatnode.com:26657"
|
|
197
|
+
"https://dydx-testnet-archive.allthatnode.com:26657/XZvMM41hESf8PJrEQiTzbCOMVyFca79R"
|
|
198
|
+
],
|
|
199
|
+
"0xsquid":"https://squid-api-git-feat-cosmos-maintestnet-0xsquid.vercel.app",
|
|
200
|
+
"configs":"https://dydx-v4-shared-resources.vercel.app",
|
|
201
|
+
"faucet":"https://faucet.v4testnet2.dydx.exchange"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"comment":"V4 Public Testnet #2 dYdX Node",
|
|
206
|
+
"environment":"dydxprotocol-testnet-dydx",
|
|
207
|
+
"ethereumChainId":"5",
|
|
208
|
+
"dydxChainId":"dydx-testnet-2",
|
|
209
|
+
"string":"v4 Public Testnet #2 dYdX Node",
|
|
210
|
+
"stringKey":"CHAIN.V4_TESTNET2_DYDX",
|
|
211
|
+
"isMainNet":false,
|
|
212
|
+
"version":"v4",
|
|
213
|
+
"maxSubaccountNumber":127,
|
|
214
|
+
"endpoints":{
|
|
215
|
+
"indexers":[
|
|
216
|
+
{
|
|
217
|
+
"api":"https://indexer.v4testnet2.dydx.exchange",
|
|
218
|
+
"socket":"wss://indexer.v4testnet2.dydx.exchange"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"validators":[
|
|
222
|
+
"https://validator.v4testnet2.dydx.exchange"
|
|
223
|
+
],
|
|
224
|
+
"0xsquid":"https://squid-api-git-feat-cosmos-maintestnet-0xsquid.vercel.app",
|
|
225
|
+
"configs":"https://dydx-v4-shared-resources.vercel.app",
|
|
226
|
+
"faucet":"https://faucet.v4testnet2.dydx.exchange"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"comment":"V4 Public Testnet #2 DSRV Node",
|
|
231
|
+
"environment":"dydxprotocol-testnet-dsrv",
|
|
232
|
+
"ethereumChainId":"5",
|
|
233
|
+
"dydxChainId":"dydx-testnet-2",
|
|
234
|
+
"string":"v4 Public Testnet #2 DSRV Node",
|
|
235
|
+
"stringKey":"CHAIN.V4_TESTNET2_DSRV",
|
|
236
|
+
"isMainNet":false,
|
|
237
|
+
"version":"v4",
|
|
238
|
+
"maxSubaccountNumber":127,
|
|
239
|
+
"endpoints":{
|
|
240
|
+
"indexers":[
|
|
241
|
+
{
|
|
242
|
+
"api":"https://indexer.v4testnet2.dydx.exchange",
|
|
243
|
+
"socket":"wss://indexer.v4testnet2.dydx.exchange"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"validators":[
|
|
247
|
+
"https://dydx-testnet-archive.allthatnode.com:26657/XZvMM41hESf8PJrEQiTzbCOMVyFca79R"
|
|
248
|
+
],
|
|
249
|
+
"0xsquid":"https://squid-api-git-feat-cosmos-maintestnet-0xsquid.vercel.app",
|
|
250
|
+
"configs":"https://dydx-v4-shared-resources.vercel.app",
|
|
251
|
+
"faucet":"https://faucet.v4testnet2.dydx.exchange"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"comment":"V4 Public Testnet #2 nodefleet Node",
|
|
256
|
+
"environment":"dydxprotocol-testnet-nodefleet",
|
|
257
|
+
"ethereumChainId":"5",
|
|
258
|
+
"dydxChainId":"dydx-testnet-2",
|
|
259
|
+
"string":"v4 Public Testnet #2 nodefleet Node",
|
|
260
|
+
"stringKey":"CHAIN.V4_TESTNET2_NODEFLEET",
|
|
261
|
+
"isMainNet":false,
|
|
262
|
+
"version":"v4",
|
|
263
|
+
"maxSubaccountNumber":127,
|
|
264
|
+
"endpoints":{
|
|
265
|
+
"indexers":[
|
|
266
|
+
{
|
|
267
|
+
"api":"https://indexer.v4testnet2.dydx.exchange",
|
|
268
|
+
"socket":"wss://indexer.v4testnet2.dydx.exchange"
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"validators":[
|
|
272
|
+
"https://dydx-testnet.nodefleet.org"
|
|
199
273
|
],
|
|
200
274
|
"0xsquid":"https://squid-api-git-feat-cosmos-maintestnet-0xsquid.vercel.app",
|
|
201
275
|
"configs":"https://dydx-v4-shared-resources.vercel.app",
|
|
@@ -140,9 +140,8 @@
|
|
|
140
140
|
}
|
|
141
141
|
],
|
|
142
142
|
"validators":[
|
|
143
|
-
"https://validator.v4testnet2.dydx.exchange",
|
|
144
143
|
"https://dydx-testnet.nodefleet.org",
|
|
145
|
-
"https://dydx-testnet-archive.allthatnode.com:26657"
|
|
144
|
+
"https://dydx-testnet-archive.allthatnode.com:26657/XZvMM41hESf8PJrEQiTzbCOMVyFca79R"
|
|
146
145
|
],
|
|
147
146
|
"0xsquid":"https://squid-api-git-feat-cosmos-maintestnet-0xsquid.vercel.app",
|
|
148
147
|
"configs":"https://dydx-v4-shared-resources.vercel.app",
|
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
# search for the first line that starts with "version" in package.json
|
|
4
|
+
# get the value in the quotes
|
|
5
|
+
VERSION=$(cat package.json | jq -r '.version')
|
|
6
|
+
|
|
7
|
+
echo "Current version is $VERSION. Enter new version (or press enter to skip):"
|
|
8
|
+
read NEW_VERSION
|
|
9
|
+
|
|
10
|
+
#if NEW_VERSION is not empty, replace the version in package.json
|
|
11
|
+
if [ -n "$NEW_VERSION" ]; then
|
|
12
|
+
sed -i '' "s/ \"version\": \"$VERSION\"/ \"version\": \"$NEW_VERSION\"/" package.json
|
|
13
|
+
echo "Version bumped to $NEW_VERSION"
|
|
14
|
+
npm i
|
|
15
|
+
fi
|
package/scripts/generated/app.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// !! GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
-
// Generated from
|
|
3
|
+
// Generated from ./config/localization/en/app.json using scripts/codegen_localization_app.swift
|
|
4
4
|
|
|
5
5
|
export const APP_STRING_KEYS = {
|
|
6
6
|
|
|
@@ -189,10 +189,13 @@ export const APP_STRING_KEYS = {
|
|
|
189
189
|
|
|
190
190
|
// DIRECT_TRANSFER_MODAL
|
|
191
191
|
|
|
192
|
+
ADDRESS_FIELD: 'APP.DIRECT_TRANSFER_MODAL.ADDRESS_FIELD',
|
|
192
193
|
CONFIRM_TRANSFER: 'APP.DIRECT_TRANSFER_MODAL.CONFIRM_TRANSFER',
|
|
193
194
|
CONFIRM_TRANSFER_PROMPT: 'APP.DIRECT_TRANSFER_MODAL.CONFIRM_TRANSFER_PROMPT',
|
|
194
195
|
DIRECTLY_TRANSFER: 'APP.DIRECT_TRANSFER_MODAL.DIRECTLY_TRANSFER',
|
|
195
196
|
ETH_ADDRESS: 'APP.DIRECT_TRANSFER_MODAL.ETH_ADDRESS',
|
|
197
|
+
INVALID_ADDRESS_BODY: 'APP.DIRECT_TRANSFER_MODAL.INVALID_ADDRESS_BODY',
|
|
198
|
+
INVALID_ADDRESS_TITLE: 'APP.DIRECT_TRANSFER_MODAL.INVALID_ADDRESS_TITLE',
|
|
196
199
|
PLEASE_CONFIRM_ADDRESS: 'APP.DIRECT_TRANSFER_MODAL.PLEASE_CONFIRM_ADDRESS',
|
|
197
200
|
SELECT_ADDRESS: 'APP.DIRECT_TRANSFER_MODAL.SELECT_ADDRESS',
|
|
198
201
|
|
|
@@ -328,6 +331,7 @@ export const APP_STRING_KEYS = {
|
|
|
328
331
|
DISCOUNT: 'APP.GENERAL.DISCOUNT',
|
|
329
332
|
DISMISS: 'APP.GENERAL.DISMISS',
|
|
330
333
|
DONE: 'APP.GENERAL.DONE',
|
|
334
|
+
DYDX_CHAIN: 'APP.GENERAL.DYDX_CHAIN',
|
|
331
335
|
EMAIL: 'APP.GENERAL.EMAIL',
|
|
332
336
|
ENDED: 'APP.GENERAL.ENDED',
|
|
333
337
|
EQUITY: 'APP.GENERAL.EQUITY',
|
|
@@ -747,6 +751,7 @@ export const APP_STRING_KEYS = {
|
|
|
747
751
|
GET_STARTED: 'APP.ONBOARDING.GET_STARTED',
|
|
748
752
|
HAVING_TROUBLE: 'APP.ONBOARDING.HAVING_TROUBLE',
|
|
749
753
|
INITIATED_DEPOSIT: 'APP.ONBOARDING.INITIATED_DEPOSIT',
|
|
754
|
+
INITIATED_TRANSFEROUT: 'APP.ONBOARDING.INITIATED_TRANSFEROUT',
|
|
750
755
|
INITIATED_WITHDRAWAL: 'APP.ONBOARDING.INITIATED_WITHDRAWAL',
|
|
751
756
|
INVITED_YOU: 'APP.ONBOARDING.INVITED_YOU',
|
|
752
757
|
I_AGREE: 'APP.ONBOARDING.I_AGREE',
|
|
@@ -787,6 +792,8 @@ export const APP_STRING_KEYS = {
|
|
|
787
792
|
SKIP_FOR_NOW: 'APP.ONBOARDING.SKIP_FOR_NOW',
|
|
788
793
|
START_TRADING_BLURB: 'APP.ONBOARDING.START_TRADING_BLURB',
|
|
789
794
|
SWITCH_NETWORK: 'APP.ONBOARDING.SWITCH_NETWORK',
|
|
795
|
+
TRANSFEROUT_ALERT_SUBTITLE: 'APP.ONBOARDING.TRANSFEROUT_ALERT_SUBTITLE',
|
|
796
|
+
TRANSFEROUT_ALERT_TITLE: 'APP.ONBOARDING.TRANSFEROUT_ALERT_TITLE',
|
|
790
797
|
TRY_AGAIN: 'APP.ONBOARDING.TRY_AGAIN',
|
|
791
798
|
TWO_SIGNATURE_REQUESTS: 'APP.ONBOARDING.TWO_SIGNATURE_REQUESTS',
|
|
792
799
|
UNDERSTAND_RISKS: 'APP.ONBOARDING.UNDERSTAND_RISKS',
|
|
@@ -1264,6 +1271,9 @@ export const CHAIN_STRING_KEYS = {
|
|
|
1264
1271
|
V4_DEVNET_4: 'CHAIN.V4_DEVNET_4',
|
|
1265
1272
|
V4_STAGING: 'CHAIN.V4_STAGING',
|
|
1266
1273
|
V4_TESTNET2: 'CHAIN.V4_TESTNET2',
|
|
1274
|
+
V4_TESTNET2_DSRV: 'CHAIN.V4_TESTNET2_DSRV',
|
|
1275
|
+
V4_TESTNET2_DYDX: 'CHAIN.V4_TESTNET2_DYDX',
|
|
1276
|
+
V4_TESTNET2_NODEFLEET: 'CHAIN.V4_TESTNET2_NODEFLEET',
|
|
1267
1277
|
};
|
|
1268
1278
|
|
|
1269
1279
|
export const ERRORS_STRING_KEYS = {
|