@dydxprotocol/v4-localization 0.0.7 → 0.0.9

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.
@@ -743,8 +743,13 @@
743
743
  "PAYMENTS": "Payments",
744
744
  "PENDING": "Pending",
745
745
  "PERCENT_TRAIL": "{PERCENT}% Trail",
746
- "PLACE_LIMIT_ORDER": "Place Limit order",
747
- "PLACE_MARKET_ORDER": "Place Market order",
746
+ "PLACE_LIMIT_ORDER": "Place Limit Order",
747
+ "PLACE_MARKET_ORDER": "Place Market Order",
748
+ "PLACE_STOP_LIMIT_ORDER": "Place Stop Limit Order",
749
+ "PLACE_STOP_MARKET_ORDER": "Place Stop Market Order",
750
+ "PLACE_TAKE_PROFIT_LIMIT_ORDER": "Place Take Profit Limit Order",
751
+ "PLACE_TAKE_PROFIT_MARKET_ORDER": "Place Take Profit Market Order",
752
+ "PLACE_TRAILING_STOP_ORDER": "Place Trailing Stop Order",
748
753
  "PLACE_ORDER": "Place {ORDER}",
749
754
  "PLACE_SIMPLE_TRADE": "Place a market order for {NAME}",
750
755
  "PLACE_TRADE": "Place a trade",
@@ -1212,6 +1217,16 @@
1212
1217
  "TRADING_VOLUME": "Trading Volume"
1213
1218
  }
1214
1219
  },
1220
+ "CHAIN":{
1221
+ "V3_MAINNET": "V3 Mainnet",
1222
+ "V3_GOERLI": "V3 Staging",
1223
+ "V4_DEVNET": "V4 Dev 1",
1224
+ "V4_DEVNET_2": "V4 Dev 2",
1225
+ "V4_DEVNET_3": "V4 Dev 3",
1226
+ "V4_DEVNET_4": "V4 Dev 4",
1227
+ "V4_STAGING": "V4 Staging",
1228
+ "V4_TESTNET2": "V4 Public Testnet #2"
1229
+ },
1215
1230
  "ERRORS": {
1216
1231
  "GENERAL": {
1217
1232
  "SOMETHING_WENT_WRONG_WITH_MESSAGE": "Something went wrong: {ERROR_MESSAGE}",
@@ -0,0 +1,32 @@
1
+ {
2
+ "environments":[
3
+ {
4
+ "comment":"V4 Public Testnet #2",
5
+ "environment":"dydxprotocol-testnet",
6
+ "ethereumChainId":"5",
7
+ "dydxChainId":"dydx-testnet-2",
8
+ "string":"v4 Public Testnet #2",
9
+ "stringKey":"CHAIN.V4_TESTNET2",
10
+ "isMainNet":false,
11
+ "version":"v4",
12
+ "maxSubaccountNumber":127,
13
+ "endpoints":{
14
+ "indexers":[
15
+ {
16
+ "api":"https://indexer.v4testnet2.dydx.exchange",
17
+ "socket":"wss://indexer.v4testnet2.dydx.exchange"
18
+ }
19
+ ],
20
+ "validators":[
21
+ "https://validator.v4testnet2.dydx.exchange",
22
+ "https://dydx-testnet.nodefleet.org",
23
+ "https://dydx-testnet-archive.allthatnode.com:26657"
24
+ ],
25
+ "0xsquid":"https://squid-api-git-feat-cosmos-maintestnet-0xsquid.vercel.app",
26
+ "configs":"https://dydx-v4-shared-resources.vercel.app",
27
+ "faucet":"https://faucet.v4testnet2.dydx.exchange"
28
+ }
29
+ }
30
+ ],
31
+ "defaultEnvironment":"dydxprotocol-testnet"
32
+ }
@@ -0,0 +1,207 @@
1
+ {
2
+ "environments":[
3
+ {
4
+ "comment":"V3 Mainnet",
5
+ "environment":"1",
6
+ "ethereumChainId":"1",
7
+ "string":"v3 MainNet",
8
+ "stringKey":"CHAIN.V3_MAINNET",
9
+ "isMainNet":true,
10
+ "version":"v3",
11
+ "maxSubaccountNumber":0,
12
+ "endpoints":{
13
+ "indexers":[
14
+ {
15
+ "api":"https://api.dydx.exchange",
16
+ "socket":"wss://api.dydx.exchange"
17
+ }
18
+ ],
19
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
20
+ }
21
+ },
22
+ {
23
+ "comment":"V3 Staging",
24
+ "environment":"5",
25
+ "ethereumChainId":"5",
26
+ "string":"v3 Staging",
27
+ "stringKey":"CHAIN.V3_GOERLI",
28
+ "isMainNet":false,
29
+ "version":"v3",
30
+ "maxSubaccountNumber":0,
31
+ "endpoints":{
32
+ "indexers":[
33
+ {
34
+ "api":"https://api.stage.dydx.exchange",
35
+ "socket":"wss://api.stage.dydx.exchange"
36
+ }
37
+ ],
38
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
39
+ }
40
+ },
41
+ {
42
+ "comment":"V4 Dev",
43
+ "environment":"dydxprotocol-dev",
44
+ "ethereumChainId":"5",
45
+ "dydxChainId":"dydxprotocol-testnet",
46
+ "string":"v4 Dev",
47
+ "stringKey":"CHAIN.V4_DEVNET",
48
+ "isMainNet":false,
49
+ "version":"v4",
50
+ "maxSubaccountNumber":127,
51
+ "endpoints":{
52
+ "indexers":[
53
+ {
54
+ "api":"http://indexer.v4dev.dydx.exchange",
55
+ "socket":"wss://indexer.v4dev.dydx.exchange"
56
+ }
57
+ ],
58
+ "faucet":"http://faucet.v4dev.dydx.exchange",
59
+ "validators":[
60
+ "http://validator.v4dev.dydx.exchange"
61
+ ],
62
+ "0xsquid":"https://testnet.api.0xsquid.com",
63
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
64
+ }
65
+ },
66
+ {
67
+ "comment":"V4 Dev 2",
68
+ "environment":"dydxprotocol-dev-2",
69
+ "ethereumChainId":"5",
70
+ "dydxChainId":"dydxprotocol-testnet",
71
+ "string":"v4 Dev 2",
72
+ "stringKey":"CHAIN.V4_DEVNET_2",
73
+ "isMainNet":false,
74
+ "version":"v4",
75
+ "maxSubaccountNumber":127,
76
+ "endpoints":{
77
+ "indexers":[
78
+ {
79
+ "api":"http://dev2-indexer-apne1-lb-public-2076363889.ap-northeast-1.elb.amazonaws.com",
80
+ "socket":"ws://dev2-indexer-apne1-lb-public-2076363889.ap-northeast-1.elb.amazonaws.com"
81
+ }
82
+ ],
83
+ "validators":[
84
+ "http://35.75.227.118"
85
+ ],
86
+ "0xsquid":"https://testnet.api.0xsquid.com",
87
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
88
+ }
89
+ },
90
+ {
91
+ "comment":"V4 Dev 3",
92
+ "environment":"dydxprotocol-dev-3",
93
+ "ethereumChainId":"5",
94
+ "dydxChainId":"dydxprotocol-testnet",
95
+ "string":"v4 Dev 3",
96
+ "stringKey":"CHAIN.V4_DEVNET_3",
97
+ "isMainNet":false,
98
+ "version":"v4",
99
+ "maxSubaccountNumber":127,
100
+ "endpoints":{
101
+ "0xsquid":"https://testnet.api.0xsquid.com",
102
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
103
+ }
104
+ },
105
+ {
106
+ "comment":"V4 Dev 4",
107
+ "environment":"dydxprotocol-dev-4",
108
+ "ethereumChainId":"5",
109
+ "dydxChainId":"dydxprotocol-testnet",
110
+ "string":"v4 Dev 4",
111
+ "stringKey":"CHAIN.V4_DEVNET_4",
112
+ "isMainNet":false,
113
+ "version":"v4",
114
+ "maxSubaccountNumber":127,
115
+ "endpoints":{
116
+ "indexers":[
117
+ {
118
+ "api":"http://indexer.v4dev4.dydx.exchange",
119
+ "socket":"ws://indexer.v4dev4.dydx.exchange"
120
+ }
121
+ ],
122
+ "validators":[
123
+ "http://validator.v4dev4.dydx.exchange"
124
+ ],
125
+ "0xsquid":"https://testnet.api.0xsquid.com",
126
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
127
+ }
128
+ },
129
+ {
130
+ "comment":"V4 Dev 5",
131
+ "environment":"dydxprotocol-dev-5",
132
+ "ethereumChainId":"5",
133
+ "dydxChainId":"dydxprotocol-testnet",
134
+ "string":"v4 Dev 5",
135
+ "stringKey":"CHAIN.V4_DEVNET_5",
136
+ "isMainNet":false,
137
+ "version":"v4",
138
+ "maxSubaccountNumber":127,
139
+ "endpoints":{
140
+ "indexers":[
141
+ {
142
+ "api":"http://dev5-indexer-apne1-lb-public-1721328151.ap-northeast-1.elb.amazonaws.com",
143
+ "socket":"ws://dev5-indexer-apne1-lb-public-1721328151.ap-northeast-1.elb.amazonaws.com"
144
+ }
145
+ ],
146
+ "validators":[
147
+ "http://18.223.78.50"
148
+ ],
149
+ "0xsquid":"https://testnet.api.0xsquid.com",
150
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
151
+ }
152
+ },
153
+ {
154
+ "comment":"V4 Staging",
155
+ "environment":"dydxprotocol-staging",
156
+ "ethereumChainId":"5",
157
+ "dydxChainId":"dydxprotocol-testnet",
158
+ "string":"v4 Staging",
159
+ "stringKey":"CHAIN.V4_STAGING",
160
+ "isMainNet":false,
161
+ "version":"v4",
162
+ "maxSubaccountNumber":127,
163
+ "endpoints":{
164
+ "indexers":[
165
+ {
166
+ "api":"https://indexer.v4staging.dydx.exchange",
167
+ "socket":"wss://indexer.v4staging.dydx.exchange"
168
+ }
169
+ ],
170
+ "faucet":"https://faucet.v4staging.dydx.exchange",
171
+ "validators":[
172
+ "https://validator.v4staging.dydx.exchange"
173
+ ],
174
+ "0xsquid":"https://squid-api-git-feat-cosmos-maintestnet-0xsquid.vercel.app",
175
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
176
+ }
177
+ },
178
+ {
179
+ "comment":"V4 Public Testnet #2",
180
+ "environment":"dydxprotocol-testnet",
181
+ "ethereumChainId":"5",
182
+ "dydxChainId":"dydx-testnet-2",
183
+ "string":"v4 Public Testnet #2",
184
+ "stringKey":"CHAIN.V4_TESTNET2",
185
+ "isMainNet":false,
186
+ "version":"v4",
187
+ "maxSubaccountNumber":127,
188
+ "endpoints":{
189
+ "indexers":[
190
+ {
191
+ "api":"https://indexer.v4testnet2.dydx.exchange",
192
+ "socket":"wss://indexer.v4testnet2.dydx.exchange"
193
+ }
194
+ ],
195
+ "validators":[
196
+ "https://validator.v4testnet2.dydx.exchange",
197
+ "https://dydx-testnet.nodefleet.org",
198
+ "https://dydx-testnet-archive.allthatnode.com:26657"
199
+ ],
200
+ "0xsquid":"https://squid-api-git-feat-cosmos-maintestnet-0xsquid.vercel.app",
201
+ "configs":"https://dydx-v4-shared-resources.vercel.app",
202
+ "faucet":"https://faucet.v4testnet2.dydx.exchange"
203
+ }
204
+ }
205
+ ],
206
+ "defaultEnvironment":"dydxprotocol-staging"
207
+ }
@@ -0,0 +1,154 @@
1
+ {
2
+ "environments":[
3
+ {
4
+ "comment":"V4 Dev",
5
+ "environment":"dydxprotocol-dev",
6
+ "ethereumChainId":"5",
7
+ "dydxChainId":"dydxprotocol-testnet",
8
+ "string":"v4 Dev",
9
+ "stringKey":"CHAIN.V4_DEVNET",
10
+ "isMainNet":false,
11
+ "version":"v4",
12
+ "maxSubaccountNumber":127,
13
+ "endpoints":{
14
+ "indexers":[
15
+ {
16
+ "api":"http://indexer.v4dev.dydx.exchange",
17
+ "socket":"wss://indexer.v4dev.dydx.exchange"
18
+ }
19
+ ],
20
+ "faucet":"http://faucet.v4dev.dydx.exchange",
21
+ "validators":[
22
+ "http://validator.v4dev.dydx.exchange"
23
+ ],
24
+ "0xsquid":"https://testnet.api.0xsquid.com",
25
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
26
+ }
27
+ },
28
+ {
29
+ "comment":"V4 Dev 2",
30
+ "environment":"dydxprotocol-dev-2",
31
+ "ethereumChainId":"5",
32
+ "dydxChainId":"dydxprotocol-testnet",
33
+ "string":"v4 Dev 2",
34
+ "stringKey":"CHAIN.V4_DEVNET_2",
35
+ "isMainNet":false,
36
+ "version":"v4",
37
+ "maxSubaccountNumber":127,
38
+ "endpoints":{
39
+ "indexers":[
40
+ {
41
+ "api":"http://dev2-indexer-apne1-lb-public-2076363889.ap-northeast-1.elb.amazonaws.com",
42
+ "socket":"ws://dev2-indexer-apne1-lb-public-2076363889.ap-northeast-1.elb.amazonaws.com"
43
+ }
44
+ ],
45
+ "validators":[
46
+ "http://35.75.227.118"
47
+ ],
48
+ "0xsquid":"https://testnet.api.0xsquid.com",
49
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
50
+ }
51
+ },
52
+ {
53
+ "comment":"V4 Dev 4",
54
+ "environment":"dydxprotocol-dev-4",
55
+ "ethereumChainId":"5",
56
+ "dydxChainId":"dydxprotocol-testnet",
57
+ "string":"v4 Dev 4",
58
+ "stringKey":"CHAIN.V4_DEVNET_4",
59
+ "isMainNet":false,
60
+ "version":"v4",
61
+ "maxSubaccountNumber":127,
62
+ "endpoints":{
63
+ "indexers":[
64
+ {
65
+ "api":"http://indexer.v4dev4.dydx.exchange",
66
+ "socket":"ws://indexer.v4dev4.dydx.exchange"
67
+ }
68
+ ],
69
+ "validators":[
70
+ "http://validator.v4dev4.dydx.exchange"
71
+ ],
72
+ "0xsquid":"https://testnet.api.0xsquid.com",
73
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
74
+ }
75
+ },
76
+ {
77
+ "comment":"V4 Dev 5",
78
+ "environment":"dydxprotocol-dev-5",
79
+ "ethereumChainId":"5",
80
+ "dydxChainId":"dydxprotocol-testnet",
81
+ "string":"v4 Dev 5",
82
+ "stringKey":"CHAIN.V4_DEVNET_5",
83
+ "isMainNet":false,
84
+ "version":"v4",
85
+ "maxSubaccountNumber":127,
86
+ "endpoints":{
87
+ "indexers":[
88
+ {
89
+ "api":"http://dev5-indexer-apne1-lb-public-1721328151.ap-northeast-1.elb.amazonaws.com",
90
+ "socket":"ws://dev5-indexer-apne1-lb-public-1721328151.ap-northeast-1.elb.amazonaws.com"
91
+ }
92
+ ],
93
+ "validators":[
94
+ "http://18.223.78.50"
95
+ ],
96
+ "0xsquid":"https://testnet.api.0xsquid.com",
97
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
98
+ }
99
+ },
100
+ {
101
+ "comment":"V4 Staging",
102
+ "environment":"dydxprotocol-staging",
103
+ "ethereumChainId":"5",
104
+ "dydxChainId":"dydxprotocol-testnet",
105
+ "string":"v4 Staging",
106
+ "stringKey":"CHAIN.V4_STAGING",
107
+ "isMainNet":false,
108
+ "version":"v4",
109
+ "maxSubaccountNumber":127,
110
+ "endpoints":{
111
+ "indexers":[
112
+ {
113
+ "api":"https://indexer.v4staging.dydx.exchange",
114
+ "socket":"wss://indexer.v4staging.dydx.exchange"
115
+ }
116
+ ],
117
+ "faucet":"https://faucet.v4staging.dydx.exchange",
118
+ "validators":[
119
+ "https://validator.v4staging.dydx.exchange"
120
+ ],
121
+ "0xsquid":"https://squid-api-git-feat-cosmos-maintestnet-0xsquid.vercel.app",
122
+ "configs":"https://dydx-v4-shared-resources.vercel.app"
123
+ }
124
+ },
125
+ {
126
+ "comment":"V4 Public Testnet #2",
127
+ "environment":"dydxprotocol-testnet",
128
+ "ethereumChainId":"5",
129
+ "dydxChainId":"dydx-testnet-2",
130
+ "string":"v4 Public Testnet #2",
131
+ "stringKey":"CHAIN.V4_TESTNET2",
132
+ "isMainNet":false,
133
+ "version":"v4",
134
+ "maxSubaccountNumber":127,
135
+ "endpoints":{
136
+ "indexers":[
137
+ {
138
+ "api":"https://indexer.v4testnet2.dydx.exchange",
139
+ "socket":"wss://indexer.v4testnet2.dydx.exchange"
140
+ }
141
+ ],
142
+ "validators":[
143
+ "https://validator.v4testnet2.dydx.exchange",
144
+ "https://dydx-testnet.nodefleet.org",
145
+ "https://dydx-testnet-archive.allthatnode.com:26657"
146
+ ],
147
+ "0xsquid":"https://squid-api-git-feat-cosmos-maintestnet-0xsquid.vercel.app",
148
+ "configs":"https://dydx-v4-shared-resources.vercel.app",
149
+ "faucet":"https://faucet.v4testnet2.dydx.exchange"
150
+ }
151
+ }
152
+ ],
153
+ "defaultEnvironment":"dydxprotocol-staging"
154
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dydxprotocol/v4-localization",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "v4 localization",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  // !! GENERATED FILE - DO NOT EDIT
2
2
 
3
- // Generated from ./config/localization/en/app.json using scripts/codegen_localization_app.swift
3
+ // Generated from ../config/localization/en/app.json using ./codegen_localization_app.swift
4
4
 
5
5
  export const APP_STRING_KEYS = {
6
6
 
@@ -1137,7 +1137,12 @@ export const APP_STRING_KEYS = {
1137
1137
  PLACE_MARKET_ORDER: 'APP.TRADE.PLACE_MARKET_ORDER',
1138
1138
  PLACE_ORDER: 'APP.TRADE.PLACE_ORDER',
1139
1139
  PLACE_SIMPLE_TRADE: 'APP.TRADE.PLACE_SIMPLE_TRADE',
1140
+ PLACE_STOP_LIMIT_ORDER: 'APP.TRADE.PLACE_STOP_LIMIT_ORDER',
1141
+ PLACE_STOP_MARKET_ORDER: 'APP.TRADE.PLACE_STOP_MARKET_ORDER',
1142
+ PLACE_TAKE_PROFIT_LIMIT_ORDER: 'APP.TRADE.PLACE_TAKE_PROFIT_LIMIT_ORDER',
1143
+ PLACE_TAKE_PROFIT_MARKET_ORDER: 'APP.TRADE.PLACE_TAKE_PROFIT_MARKET_ORDER',
1140
1144
  PLACE_TRADE: 'APP.TRADE.PLACE_TRADE',
1145
+ PLACE_TRAILING_STOP_ORDER: 'APP.TRADE.PLACE_TRAILING_STOP_ORDER',
1141
1146
  PLACING_ORDER_DESCRIPTION: 'APP.TRADE.PLACING_ORDER_DESCRIPTION',
1142
1147
  PLACING_ORDER_TITLE: 'APP.TRADE.PLACING_ORDER_TITLE',
1143
1148
  POSITIONS: 'APP.TRADE.POSITIONS',
@@ -1250,6 +1255,17 @@ export const APP_STRING_KEYS = {
1250
1255
  WITHDRAW_IRREVERSIBLE: 'APP.WITHDRAW_MODAL.WITHDRAW_IRREVERSIBLE',
1251
1256
  };
1252
1257
 
1258
+ export const CHAIN_STRING_KEYS = {
1259
+ V3_GOERLI: 'CHAIN.V3_GOERLI',
1260
+ V3_MAINNET: 'CHAIN.V3_MAINNET',
1261
+ V4_DEVNET: 'CHAIN.V4_DEVNET',
1262
+ V4_DEVNET_2: 'CHAIN.V4_DEVNET_2',
1263
+ V4_DEVNET_3: 'CHAIN.V4_DEVNET_3',
1264
+ V4_DEVNET_4: 'CHAIN.V4_DEVNET_4',
1265
+ V4_STAGING: 'CHAIN.V4_STAGING',
1266
+ V4_TESTNET2: 'CHAIN.V4_TESTNET2',
1267
+ };
1268
+
1253
1269
  export const ERRORS_STRING_KEYS = {
1254
1270
 
1255
1271
  // DEPOSIT_MODAL