@api3/logos 0.3.7 → 0.3.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.
- package/dist/cjs/ApiProviderLogo.js +1 -4
- package/dist/cjs/ChainLogo.js +51 -54
- package/dist/cjs/SymbolLogo.js +42 -45
- package/dist/cjs/SymbolLogoMissing.json +1 -1
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/esm/ApiProviderLogo.js +1 -4
- package/dist/esm/ChainLogo.js +51 -54
- package/dist/esm/SymbolLogo.js +42 -45
- package/dist/esm/SymbolLogoMissing.json +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/logos/symbol/Usdm.svg +3 -14
- package/dist/logos/symbol/Ysusdc.svg +4 -0
- package/package.json +1 -4
- package/dist/logos/symbol/UltraEtHs.svg +0 -27
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const camelcase = require('camelcase');
|
|
2
1
|
const ApiProviderNodary = require('../logos/api-provider/Nodary.svg');
|
|
3
2
|
const ApiProviderBlocksize = require('../logos/api-provider/Blocksize.svg');
|
|
4
3
|
const ApiProviderCoingecko = require('../logos/api-provider/Coingecko.svg');
|
|
@@ -16,9 +15,7 @@ const ApiProviderCoinmetrics = require('../logos/api-provider/Coinmetrics.svg');
|
|
|
16
15
|
const ApiProviderTwelvedata = require('../logos/api-provider/Twelvedata.svg');
|
|
17
16
|
const ApiProviderPlaceholder = require('../logos/api-provider/Placeholder.svg');
|
|
18
17
|
function sanitizeName(id) {
|
|
19
|
-
return
|
|
20
|
-
pascalCase: true
|
|
21
|
-
}).replace(/ExchangeRate/g, '');
|
|
18
|
+
return id.replace(/\s+|-/g, '').replace(/ExchangeRate/g, '');
|
|
22
19
|
}
|
|
23
20
|
function ApiProviderLogo(id, light = false) {
|
|
24
21
|
if (!id) {
|
package/dist/cjs/ChainLogo.js
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const Chain994873017Light = require('../logos/chain/Chain994873017Light.svg');
|
|
1
|
+
const Chain1030light = require('../logos/chain/Chain1030Light.svg');
|
|
2
|
+
const Chain146light = require('../logos/chain/Chain146Light.svg');
|
|
3
|
+
const Chain1868light = require('../logos/chain/Chain1868Light.svg');
|
|
4
|
+
const Chain196light = require('../logos/chain/Chain196Light.svg');
|
|
5
|
+
const Chain2001light = require('../logos/chain/Chain2001Light.svg');
|
|
6
|
+
const Chain252light = require('../logos/chain/Chain252Light.svg');
|
|
7
|
+
const Chain280light = require('../logos/chain/Chain280Light.svg');
|
|
8
|
+
const Chain324light = require('../logos/chain/Chain324Light.svg');
|
|
9
|
+
const Chain325000light = require('../logos/chain/Chain325000Light.svg');
|
|
10
|
+
const Chain34443light = require('../logos/chain/Chain34443Light.svg');
|
|
11
|
+
const Chain480light = require('../logos/chain/Chain480Light.svg');
|
|
12
|
+
const Chain4913light = require('../logos/chain/Chain4913Light.svg');
|
|
13
|
+
const Chain5000light = require('../logos/chain/Chain5000Light.svg');
|
|
14
|
+
const Chain5001light = require('../logos/chain/Chain5001Light.svg');
|
|
15
|
+
const Chain5003light = require('../logos/chain/Chain5003Light.svg');
|
|
16
|
+
const Chain57054light = require('../logos/chain/Chain57054Light.svg');
|
|
17
|
+
const Chain59140light = require('../logos/chain/Chain59140Light.svg');
|
|
18
|
+
const Chain59141light = require('../logos/chain/Chain59141Light.svg');
|
|
19
|
+
const Chain59144light = require('../logos/chain/Chain59144Light.svg');
|
|
20
|
+
const Chain60808light = require('../logos/chain/Chain60808Light.svg');
|
|
21
|
+
const Chain64165light = require('../logos/chain/Chain64165Light.svg');
|
|
22
|
+
const Chain71light = require('../logos/chain/Chain71Light.svg');
|
|
23
|
+
const Chain81457light = require('../logos/chain/Chain81457Light.svg');
|
|
24
|
+
const Chain82light = require('../logos/chain/Chain82Light.svg');
|
|
25
|
+
const Chain994873017light = require('../logos/chain/Chain994873017Light.svg');
|
|
27
26
|
const Chain33139 = require('../logos/chain/Chain33139.svg');
|
|
28
27
|
const Chain33111 = require('../logos/chain/Chain33111.svg');
|
|
29
28
|
const Chain42161 = require('../logos/chain/Chain42161.svg');
|
|
@@ -118,9 +117,7 @@ const Chain48900 = require('../logos/chain/Chain48900.svg');
|
|
|
118
117
|
const Chain48899 = require('../logos/chain/Chain48899.svg');
|
|
119
118
|
const ChainPlaceholder = require('../logos/chain/Placeholder.svg');
|
|
120
119
|
function sanitizeName(id) {
|
|
121
|
-
return
|
|
122
|
-
pascalCase: true
|
|
123
|
-
}).replace(/ExchangeRate/g, '');
|
|
120
|
+
return id.replace(/\s+|-/g, '').replace(/ExchangeRate/g, '');
|
|
124
121
|
}
|
|
125
122
|
function ChainLogo(id, light = false) {
|
|
126
123
|
if (!id) {
|
|
@@ -128,55 +125,55 @@ function ChainLogo(id, light = false) {
|
|
|
128
125
|
}
|
|
129
126
|
switch (sanitizeName(`${id}${light ? "light" : ""}`).toLowerCase()) {
|
|
130
127
|
case "1030light":
|
|
131
|
-
return
|
|
128
|
+
return Chain1030light;
|
|
132
129
|
case "146light":
|
|
133
|
-
return
|
|
130
|
+
return Chain146light;
|
|
134
131
|
case "1868light":
|
|
135
|
-
return
|
|
132
|
+
return Chain1868light;
|
|
136
133
|
case "196light":
|
|
137
|
-
return
|
|
134
|
+
return Chain196light;
|
|
138
135
|
case "2001light":
|
|
139
|
-
return
|
|
136
|
+
return Chain2001light;
|
|
140
137
|
case "252light":
|
|
141
|
-
return
|
|
138
|
+
return Chain252light;
|
|
142
139
|
case "280light":
|
|
143
|
-
return
|
|
140
|
+
return Chain280light;
|
|
144
141
|
case "324light":
|
|
145
|
-
return
|
|
142
|
+
return Chain324light;
|
|
146
143
|
case "325000light":
|
|
147
|
-
return
|
|
144
|
+
return Chain325000light;
|
|
148
145
|
case "34443light":
|
|
149
|
-
return
|
|
146
|
+
return Chain34443light;
|
|
150
147
|
case "480light":
|
|
151
|
-
return
|
|
148
|
+
return Chain480light;
|
|
152
149
|
case "4913light":
|
|
153
|
-
return
|
|
150
|
+
return Chain4913light;
|
|
154
151
|
case "5000light":
|
|
155
|
-
return
|
|
152
|
+
return Chain5000light;
|
|
156
153
|
case "5001light":
|
|
157
|
-
return
|
|
154
|
+
return Chain5001light;
|
|
158
155
|
case "5003light":
|
|
159
|
-
return
|
|
156
|
+
return Chain5003light;
|
|
160
157
|
case "57054light":
|
|
161
|
-
return
|
|
158
|
+
return Chain57054light;
|
|
162
159
|
case "59140light":
|
|
163
|
-
return
|
|
160
|
+
return Chain59140light;
|
|
164
161
|
case "59141light":
|
|
165
|
-
return
|
|
162
|
+
return Chain59141light;
|
|
166
163
|
case "59144light":
|
|
167
|
-
return
|
|
164
|
+
return Chain59144light;
|
|
168
165
|
case "60808light":
|
|
169
|
-
return
|
|
166
|
+
return Chain60808light;
|
|
170
167
|
case "64165light":
|
|
171
|
-
return
|
|
168
|
+
return Chain64165light;
|
|
172
169
|
case "71light":
|
|
173
|
-
return
|
|
170
|
+
return Chain71light;
|
|
174
171
|
case "81457light":
|
|
175
|
-
return
|
|
172
|
+
return Chain81457light;
|
|
176
173
|
case "82light":
|
|
177
|
-
return
|
|
174
|
+
return Chain82light;
|
|
178
175
|
case "994873017light":
|
|
179
|
-
return
|
|
176
|
+
return Chain994873017light;
|
|
180
177
|
case "33139":
|
|
181
178
|
return Chain33139;
|
|
182
179
|
case "33111":
|
package/dist/cjs/SymbolLogo.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
const camelcase = require('camelcase');
|
|
2
1
|
const SymbolBnbxLight = require('../logos/symbol/BnbxLight.svg');
|
|
3
2
|
const SymbolEthxLight = require('../logos/symbol/EthxLight.svg');
|
|
4
3
|
const SymbolMaticxLight = require('../logos/symbol/MaticxLight.svg');
|
|
5
|
-
const
|
|
4
|
+
const SymbolSlight = require('../logos/symbol/SLight.svg');
|
|
6
5
|
const SymbolAave = require('../logos/symbol/Aave.svg');
|
|
7
6
|
const SymbolUsd = require('../logos/symbol/Usd.svg');
|
|
8
7
|
const SymbolAda = require('../logos/symbol/Ada.svg');
|
|
@@ -33,7 +32,7 @@ const SymbolBera = require('../logos/symbol/Bera.svg');
|
|
|
33
32
|
const SymbolBlast = require('../logos/symbol/Blast.svg');
|
|
34
33
|
const SymbolBlur = require('../logos/symbol/Blur.svg');
|
|
35
34
|
const SymbolBnb = require('../logos/symbol/Bnb.svg');
|
|
36
|
-
const
|
|
35
|
+
const SymbolBnbx = require('../logos/symbol/Bnbx.svg');
|
|
37
36
|
const SymbolBrett = require('../logos/symbol/Brett.svg');
|
|
38
37
|
const SymbolBtc = require('../logos/symbol/Btc.svg');
|
|
39
38
|
const SymbolCake = require('../logos/symbol/Cake.svg');
|
|
@@ -43,7 +42,7 @@ const SymbolCelo = require('../logos/symbol/Celo.svg');
|
|
|
43
42
|
const SymbolCfx = require('../logos/symbol/Cfx.svg');
|
|
44
43
|
const SymbolChz = require('../logos/symbol/Chz.svg');
|
|
45
44
|
const SymbolCmEth = require('../logos/symbol/Cmeth.svg');
|
|
46
|
-
const
|
|
45
|
+
const SymbolMeth = require('../logos/symbol/Meth.svg');
|
|
47
46
|
const SymbolComp = require('../logos/symbol/Comp.svg');
|
|
48
47
|
const SymbolCook = require('../logos/symbol/Cook.svg');
|
|
49
48
|
const SymbolCore = require('../logos/symbol/Core.svg');
|
|
@@ -57,16 +56,16 @@ const SymbolDoge = require('../logos/symbol/Doge.svg');
|
|
|
57
56
|
const SymbolDot = require('../logos/symbol/Dot.svg');
|
|
58
57
|
const SymbolDydx = require('../logos/symbol/Dydx.svg');
|
|
59
58
|
const SymbolDym = require('../logos/symbol/Dym.svg');
|
|
60
|
-
const
|
|
59
|
+
const SymbolEbtc = require('../logos/symbol/Ebtc.svg');
|
|
61
60
|
const SymbolWbtc = require('../logos/symbol/Wbtc.svg');
|
|
62
61
|
const SymbolEgEth = require('../logos/symbol/Egeth.svg');
|
|
63
62
|
const SymbolEna = require('../logos/symbol/Ena.svg');
|
|
64
63
|
const SymbolEns = require('../logos/symbol/Ens.svg');
|
|
65
64
|
const SymbolErn = require('../logos/symbol/Ern.svg');
|
|
66
65
|
const SymbolEthfi = require('../logos/symbol/Ethfi.svg');
|
|
67
|
-
const
|
|
66
|
+
const SymbolEthx = require('../logos/symbol/Ethx.svg');
|
|
68
67
|
const SymbolEurc = require('../logos/symbol/Eurc.svg');
|
|
69
|
-
const
|
|
68
|
+
const SymbolEure = require('../logos/symbol/Eure.svg');
|
|
70
69
|
const SymbolEzEth = require('../logos/symbol/Ezeth.svg');
|
|
71
70
|
const SymbolFbtc = require('../logos/symbol/Fbtc.svg');
|
|
72
71
|
const SymbolFdusd = require('../logos/symbol/Fdusd.svg');
|
|
@@ -90,7 +89,7 @@ const SymbolInsfrxEth = require('../logos/symbol/Insfrxeth.svg');
|
|
|
90
89
|
const SymbolSfrxEth = require('../logos/symbol/Sfrxeth.svg');
|
|
91
90
|
const SymbolInstEth = require('../logos/symbol/Insteth.svg');
|
|
92
91
|
const SymbolStEth = require('../logos/symbol/Steth.svg');
|
|
93
|
-
const
|
|
92
|
+
const SymbolInwstEths = require('../logos/symbol/Inwsteths.svg');
|
|
94
93
|
const SymbolWstEth = require('../logos/symbol/Wsteth.svg');
|
|
95
94
|
const SymbolJoe = require('../logos/symbol/Joe.svg');
|
|
96
95
|
const SymbolKava = require('../logos/symbol/Kava.svg');
|
|
@@ -107,7 +106,7 @@ const SymbolLusd = require('../logos/symbol/Lusd.svg');
|
|
|
107
106
|
const SymbolMana = require('../logos/symbol/Mana.svg');
|
|
108
107
|
const SymbolManta = require('../logos/symbol/Manta.svg');
|
|
109
108
|
const SymbolMask = require('../logos/symbol/Mask.svg');
|
|
110
|
-
const
|
|
109
|
+
const SymbolMaticx = require('../logos/symbol/Maticx.svg');
|
|
111
110
|
const SymbolMatic = require('../logos/symbol/Matic.svg');
|
|
112
111
|
const SymbolMerl = require('../logos/symbol/Merl.svg');
|
|
113
112
|
const SymbolMetis = require('../logos/symbol/Metis.svg');
|
|
@@ -136,7 +135,7 @@ const SymbolQuick = require('../logos/symbol/Quick.svg');
|
|
|
136
135
|
const SymbolRari = require('../logos/symbol/Rari.svg');
|
|
137
136
|
const SymbolRdnt = require('../logos/symbol/Rdnt.svg');
|
|
138
137
|
const SymbolRender = require('../logos/symbol/Render.svg');
|
|
139
|
-
const
|
|
138
|
+
const SymbolReth = require('../logos/symbol/Reth.svg');
|
|
140
139
|
const SymbolRif = require('../logos/symbol/Rif.svg');
|
|
141
140
|
const SymbolRon = require('../logos/symbol/Ron.svg');
|
|
142
141
|
const SymbolRose = require('../logos/symbol/Rose.svg');
|
|
@@ -148,12 +147,12 @@ const SymbolS = require('../logos/symbol/S.svg');
|
|
|
148
147
|
const SymbolSafe = require('../logos/symbol/Safe.svg');
|
|
149
148
|
const SymbolSand = require('../logos/symbol/Sand.svg');
|
|
150
149
|
const SymbolSats = require('../logos/symbol/Sats.svg');
|
|
151
|
-
const
|
|
150
|
+
const SymbolSavax = require('../logos/symbol/Savax.svg');
|
|
152
151
|
const SymbolScr = require('../logos/symbol/Scr.svg');
|
|
153
152
|
const SymbolScrvUsd = require('../logos/symbol/Scrvusd.svg');
|
|
154
|
-
const
|
|
153
|
+
const SymbolSdai = require('../logos/symbol/Sdai.svg');
|
|
155
154
|
const SymbolSei = require('../logos/symbol/Sei.svg');
|
|
156
|
-
const
|
|
155
|
+
const SymbolSfrax = require('../logos/symbol/Sfrax.svg');
|
|
157
156
|
const SymbolFrxEth = require('../logos/symbol/Frxeth.svg');
|
|
158
157
|
const SymbolSfrxUsd = require('../logos/symbol/Sfrxusd.svg');
|
|
159
158
|
const SymbolFrxUsd = require('../logos/symbol/Frxusd.svg');
|
|
@@ -170,9 +169,9 @@ const SymbolStTao = require('../logos/symbol/Sttao.svg');
|
|
|
170
169
|
const SymbolTao = require('../logos/symbol/Tao.svg');
|
|
171
170
|
const SymbolStx = require('../logos/symbol/Stx.svg');
|
|
172
171
|
const SymbolSui = require('../logos/symbol/Sui.svg');
|
|
173
|
-
const
|
|
174
|
-
const
|
|
175
|
-
const
|
|
172
|
+
const SymbolSusde = require('../logos/symbol/Susde.svg');
|
|
173
|
+
const SymbolUsde = require('../logos/symbol/Usde.svg');
|
|
174
|
+
const SymbolSusds = require('../logos/symbol/Susds.svg');
|
|
176
175
|
const SymbolUsds = require('../logos/symbol/Usds.svg');
|
|
177
176
|
const SymbolSushi = require('../logos/symbol/Sushi.svg');
|
|
178
177
|
const SymbolSwEth = require('../logos/symbol/Sweth.svg');
|
|
@@ -180,7 +179,7 @@ const SymbolTaiko = require('../logos/symbol/Taiko.svg');
|
|
|
180
179
|
const SymbolTia = require('../logos/symbol/Tia.svg');
|
|
181
180
|
const SymbolTusd = require('../logos/symbol/Tusd.svg');
|
|
182
181
|
const SymbolTwt = require('../logos/symbol/Twt.svg');
|
|
183
|
-
const
|
|
182
|
+
const SymbolUltraEths = require('../logos/symbol/Ultraeths.svg');
|
|
184
183
|
const SymbolUma = require('../logos/symbol/Uma.svg');
|
|
185
184
|
const SymbolUni = require('../logos/symbol/Uni.svg');
|
|
186
185
|
const SymbolUniEth = require('../logos/symbol/Unieth.svg');
|
|
@@ -192,19 +191,19 @@ const SymbolUsdt = require('../logos/symbol/Usdt.svg');
|
|
|
192
191
|
const SymbolUsdy = require('../logos/symbol/Usdy.svg');
|
|
193
192
|
const SymbolVelo = require('../logos/symbol/Velo.svg');
|
|
194
193
|
const SymbolW = require('../logos/symbol/W.svg');
|
|
195
|
-
const
|
|
194
|
+
const SymbolWbeth = require('../logos/symbol/Wbeth.svg');
|
|
196
195
|
const SymbolWeEth = require('../logos/symbol/Weeth.svg');
|
|
197
|
-
const
|
|
196
|
+
const SymbolWeEths = require('../logos/symbol/Weeths.svg');
|
|
198
197
|
const SymbolWld = require('../logos/symbol/Wld.svg');
|
|
199
198
|
const SymbolWoo = require('../logos/symbol/Woo.svg');
|
|
200
|
-
const
|
|
199
|
+
const SymbolWusdm = require('../logos/symbol/Wusdm.svg');
|
|
201
200
|
const SymbolXlm = require('../logos/symbol/Xlm.svg');
|
|
202
201
|
const SymbolXrp = require('../logos/symbol/Xrp.svg');
|
|
203
202
|
const SymbolXtz = require('../logos/symbol/Xtz.svg');
|
|
204
203
|
const SymbolXvs = require('../logos/symbol/Xvs.svg');
|
|
205
204
|
const SymbolYfi = require('../logos/symbol/Yfi.svg');
|
|
206
|
-
const SymbolYsUsdc = require('../logos/symbol/
|
|
207
|
-
const
|
|
205
|
+
const SymbolYsUsdc = require('../logos/symbol/Ysusdc.svg');
|
|
206
|
+
const SymbolYusd = require('../logos/symbol/Yusd.svg');
|
|
208
207
|
const SymbolZil = require('../logos/symbol/Zil.svg');
|
|
209
208
|
const SymbolZk = require('../logos/symbol/Zk.svg');
|
|
210
209
|
const SymbolZrc = require('../logos/symbol/Zrc.svg');
|
|
@@ -212,9 +211,7 @@ const SymbolZro = require('../logos/symbol/Zro.svg');
|
|
|
212
211
|
const SymbolZrx = require('../logos/symbol/Zrx.svg');
|
|
213
212
|
const SymbolPlaceholder = require('../logos/symbol/Placeholder.svg');
|
|
214
213
|
function sanitizeName(id) {
|
|
215
|
-
return
|
|
216
|
-
pascalCase: true
|
|
217
|
-
}).replace(/ExchangeRate/g, '');
|
|
214
|
+
return id.replace(/\s+|-/g, '').replace(/ExchangeRate/g, '');
|
|
218
215
|
}
|
|
219
216
|
function SymbolLogo(id, light = false) {
|
|
220
217
|
if (!id) {
|
|
@@ -228,7 +225,7 @@ function SymbolLogo(id, light = false) {
|
|
|
228
225
|
case "maticxlight":
|
|
229
226
|
return SymbolMaticxLight;
|
|
230
227
|
case "slight":
|
|
231
|
-
return
|
|
228
|
+
return SymbolSlight;
|
|
232
229
|
case "aave":
|
|
233
230
|
return SymbolAave;
|
|
234
231
|
case "usd":
|
|
@@ -290,7 +287,7 @@ function SymbolLogo(id, light = false) {
|
|
|
290
287
|
case "bnb":
|
|
291
288
|
return SymbolBnb;
|
|
292
289
|
case "bnbx":
|
|
293
|
-
return
|
|
290
|
+
return SymbolBnbx;
|
|
294
291
|
case "brett":
|
|
295
292
|
return SymbolBrett;
|
|
296
293
|
case "btc":
|
|
@@ -310,7 +307,7 @@ function SymbolLogo(id, light = false) {
|
|
|
310
307
|
case "cmeth":
|
|
311
308
|
return SymbolCmEth;
|
|
312
309
|
case "meth":
|
|
313
|
-
return
|
|
310
|
+
return SymbolMeth;
|
|
314
311
|
case "comp":
|
|
315
312
|
return SymbolComp;
|
|
316
313
|
case "cook":
|
|
@@ -338,7 +335,7 @@ function SymbolLogo(id, light = false) {
|
|
|
338
335
|
case "dym":
|
|
339
336
|
return SymbolDym;
|
|
340
337
|
case "ebtc":
|
|
341
|
-
return
|
|
338
|
+
return SymbolEbtc;
|
|
342
339
|
case "wbtc":
|
|
343
340
|
return SymbolWbtc;
|
|
344
341
|
case "egeth":
|
|
@@ -352,11 +349,11 @@ function SymbolLogo(id, light = false) {
|
|
|
352
349
|
case "ethfi":
|
|
353
350
|
return SymbolEthfi;
|
|
354
351
|
case "ethx":
|
|
355
|
-
return
|
|
352
|
+
return SymbolEthx;
|
|
356
353
|
case "eurc":
|
|
357
354
|
return SymbolEurc;
|
|
358
355
|
case "eure":
|
|
359
|
-
return
|
|
356
|
+
return SymbolEure;
|
|
360
357
|
case "ezeth":
|
|
361
358
|
return SymbolEzEth;
|
|
362
359
|
case "fbtc":
|
|
@@ -404,7 +401,7 @@ function SymbolLogo(id, light = false) {
|
|
|
404
401
|
case "steth":
|
|
405
402
|
return SymbolStEth;
|
|
406
403
|
case "inwsteths":
|
|
407
|
-
return
|
|
404
|
+
return SymbolInwstEths;
|
|
408
405
|
case "wsteth":
|
|
409
406
|
return SymbolWstEth;
|
|
410
407
|
case "joe":
|
|
@@ -438,7 +435,7 @@ function SymbolLogo(id, light = false) {
|
|
|
438
435
|
case "mask":
|
|
439
436
|
return SymbolMask;
|
|
440
437
|
case "maticx":
|
|
441
|
-
return
|
|
438
|
+
return SymbolMaticx;
|
|
442
439
|
case "matic":
|
|
443
440
|
return SymbolMatic;
|
|
444
441
|
case "merl":
|
|
@@ -496,7 +493,7 @@ function SymbolLogo(id, light = false) {
|
|
|
496
493
|
case "render":
|
|
497
494
|
return SymbolRender;
|
|
498
495
|
case "reth":
|
|
499
|
-
return
|
|
496
|
+
return SymbolReth;
|
|
500
497
|
case "rif":
|
|
501
498
|
return SymbolRif;
|
|
502
499
|
case "ron":
|
|
@@ -520,17 +517,17 @@ function SymbolLogo(id, light = false) {
|
|
|
520
517
|
case "sats":
|
|
521
518
|
return SymbolSats;
|
|
522
519
|
case "savax":
|
|
523
|
-
return
|
|
520
|
+
return SymbolSavax;
|
|
524
521
|
case "scr":
|
|
525
522
|
return SymbolScr;
|
|
526
523
|
case "scrvusd":
|
|
527
524
|
return SymbolScrvUsd;
|
|
528
525
|
case "sdai":
|
|
529
|
-
return
|
|
526
|
+
return SymbolSdai;
|
|
530
527
|
case "sei":
|
|
531
528
|
return SymbolSei;
|
|
532
529
|
case "sfrax":
|
|
533
|
-
return
|
|
530
|
+
return SymbolSfrax;
|
|
534
531
|
case "frxeth":
|
|
535
532
|
return SymbolFrxEth;
|
|
536
533
|
case "sfrxusd":
|
|
@@ -564,11 +561,11 @@ function SymbolLogo(id, light = false) {
|
|
|
564
561
|
case "sui":
|
|
565
562
|
return SymbolSui;
|
|
566
563
|
case "susde":
|
|
567
|
-
return
|
|
564
|
+
return SymbolSusde;
|
|
568
565
|
case "usde":
|
|
569
|
-
return
|
|
566
|
+
return SymbolUsde;
|
|
570
567
|
case "susds":
|
|
571
|
-
return
|
|
568
|
+
return SymbolSusds;
|
|
572
569
|
case "usds":
|
|
573
570
|
return SymbolUsds;
|
|
574
571
|
case "sushi":
|
|
@@ -584,7 +581,7 @@ function SymbolLogo(id, light = false) {
|
|
|
584
581
|
case "twt":
|
|
585
582
|
return SymbolTwt;
|
|
586
583
|
case "ultraeths":
|
|
587
|
-
return
|
|
584
|
+
return SymbolUltraEths;
|
|
588
585
|
case "uma":
|
|
589
586
|
return SymbolUma;
|
|
590
587
|
case "uni":
|
|
@@ -608,17 +605,17 @@ function SymbolLogo(id, light = false) {
|
|
|
608
605
|
case "w":
|
|
609
606
|
return SymbolW;
|
|
610
607
|
case "wbeth":
|
|
611
|
-
return
|
|
608
|
+
return SymbolWbeth;
|
|
612
609
|
case "weeth":
|
|
613
610
|
return SymbolWeEth;
|
|
614
611
|
case "weeths":
|
|
615
|
-
return
|
|
612
|
+
return SymbolWeEths;
|
|
616
613
|
case "wld":
|
|
617
614
|
return SymbolWld;
|
|
618
615
|
case "woo":
|
|
619
616
|
return SymbolWoo;
|
|
620
617
|
case "wusdm":
|
|
621
|
-
return
|
|
618
|
+
return SymbolWusdm;
|
|
622
619
|
case "xlm":
|
|
623
620
|
return SymbolXlm;
|
|
624
621
|
case "xrp":
|
|
@@ -632,7 +629,7 @@ function SymbolLogo(id, light = false) {
|
|
|
632
629
|
case "ysusdc":
|
|
633
630
|
return SymbolYsUsdc;
|
|
634
631
|
case "yusd":
|
|
635
|
-
return
|
|
632
|
+
return SymbolYusd;
|
|
636
633
|
case "zil":
|
|
637
634
|
return SymbolZil;
|
|
638
635
|
case "zk":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[
|
|
1
|
+
[]
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as ChainLogo } from './ChainLogo.js';
|
|
2
|
-
export { default as ChainLogoMissing } from './ChainLogoMissing.json';
|
|
3
1
|
export { default as ApiProviderLogo } from './ApiProviderLogo.js';
|
|
4
2
|
export { default as ApiProviderLogoMissing } from './ApiProviderLogoMissing.json';
|
|
3
|
+
export { default as ChainLogo } from './ChainLogo.js';
|
|
4
|
+
export { default as ChainLogoMissing } from './ChainLogoMissing.json';
|
|
5
5
|
export { default as SymbolLogo } from './SymbolLogo.js';
|
|
6
6
|
export { default as SymbolLogoMissing } from './SymbolLogoMissing.json';
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
module.exports.ChainLogo = require('./ChainLogo.js');
|
|
2
|
-
module.exports.ChainLogoMissing = require('./ChainLogoMissing.json');
|
|
3
1
|
module.exports.ApiProviderLogo = require('./ApiProviderLogo.js');
|
|
4
2
|
module.exports.ApiProviderLogoMissing = require('./ApiProviderLogoMissing.json');
|
|
3
|
+
module.exports.ChainLogo = require('./ChainLogo.js');
|
|
4
|
+
module.exports.ChainLogoMissing = require('./ChainLogoMissing.json');
|
|
5
5
|
module.exports.SymbolLogo = require('./SymbolLogo.js');
|
|
6
6
|
module.exports.SymbolLogoMissing = require('./SymbolLogoMissing.json');
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import camelcase from 'camelcase';
|
|
2
1
|
import ApiProviderNodary from '../logos/api-provider/Nodary.svg';
|
|
3
2
|
import ApiProviderBlocksize from '../logos/api-provider/Blocksize.svg';
|
|
4
3
|
import ApiProviderCoingecko from '../logos/api-provider/Coingecko.svg';
|
|
@@ -16,9 +15,7 @@ import ApiProviderCoinmetrics from '../logos/api-provider/Coinmetrics.svg';
|
|
|
16
15
|
import ApiProviderTwelvedata from '../logos/api-provider/Twelvedata.svg';
|
|
17
16
|
import ApiProviderPlaceholder from '../logos/api-provider/Placeholder.svg';
|
|
18
17
|
function sanitizeName(id) {
|
|
19
|
-
return
|
|
20
|
-
pascalCase: true
|
|
21
|
-
}).replace(/ExchangeRate/g, '');
|
|
18
|
+
return id.replace(/\s+|-/g, '').replace(/ExchangeRate/g, '');
|
|
22
19
|
}
|
|
23
20
|
function ApiProviderLogo(id, light = false) {
|
|
24
21
|
if (!id) {
|
package/dist/esm/ChainLogo.js
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import Chain994873017Light from '../logos/chain/Chain994873017Light.svg';
|
|
1
|
+
import Chain1030light from '../logos/chain/Chain1030Light.svg';
|
|
2
|
+
import Chain146light from '../logos/chain/Chain146Light.svg';
|
|
3
|
+
import Chain1868light from '../logos/chain/Chain1868Light.svg';
|
|
4
|
+
import Chain196light from '../logos/chain/Chain196Light.svg';
|
|
5
|
+
import Chain2001light from '../logos/chain/Chain2001Light.svg';
|
|
6
|
+
import Chain252light from '../logos/chain/Chain252Light.svg';
|
|
7
|
+
import Chain280light from '../logos/chain/Chain280Light.svg';
|
|
8
|
+
import Chain324light from '../logos/chain/Chain324Light.svg';
|
|
9
|
+
import Chain325000light from '../logos/chain/Chain325000Light.svg';
|
|
10
|
+
import Chain34443light from '../logos/chain/Chain34443Light.svg';
|
|
11
|
+
import Chain480light from '../logos/chain/Chain480Light.svg';
|
|
12
|
+
import Chain4913light from '../logos/chain/Chain4913Light.svg';
|
|
13
|
+
import Chain5000light from '../logos/chain/Chain5000Light.svg';
|
|
14
|
+
import Chain5001light from '../logos/chain/Chain5001Light.svg';
|
|
15
|
+
import Chain5003light from '../logos/chain/Chain5003Light.svg';
|
|
16
|
+
import Chain57054light from '../logos/chain/Chain57054Light.svg';
|
|
17
|
+
import Chain59140light from '../logos/chain/Chain59140Light.svg';
|
|
18
|
+
import Chain59141light from '../logos/chain/Chain59141Light.svg';
|
|
19
|
+
import Chain59144light from '../logos/chain/Chain59144Light.svg';
|
|
20
|
+
import Chain60808light from '../logos/chain/Chain60808Light.svg';
|
|
21
|
+
import Chain64165light from '../logos/chain/Chain64165Light.svg';
|
|
22
|
+
import Chain71light from '../logos/chain/Chain71Light.svg';
|
|
23
|
+
import Chain81457light from '../logos/chain/Chain81457Light.svg';
|
|
24
|
+
import Chain82light from '../logos/chain/Chain82Light.svg';
|
|
25
|
+
import Chain994873017light from '../logos/chain/Chain994873017Light.svg';
|
|
27
26
|
import Chain33139 from '../logos/chain/Chain33139.svg';
|
|
28
27
|
import Chain33111 from '../logos/chain/Chain33111.svg';
|
|
29
28
|
import Chain42161 from '../logos/chain/Chain42161.svg';
|
|
@@ -118,9 +117,7 @@ import Chain48900 from '../logos/chain/Chain48900.svg';
|
|
|
118
117
|
import Chain48899 from '../logos/chain/Chain48899.svg';
|
|
119
118
|
import ChainPlaceholder from '../logos/chain/Placeholder.svg';
|
|
120
119
|
function sanitizeName(id) {
|
|
121
|
-
return
|
|
122
|
-
pascalCase: true
|
|
123
|
-
}).replace(/ExchangeRate/g, '');
|
|
120
|
+
return id.replace(/\s+|-/g, '').replace(/ExchangeRate/g, '');
|
|
124
121
|
}
|
|
125
122
|
function ChainLogo(id, light = false) {
|
|
126
123
|
if (!id) {
|
|
@@ -128,55 +125,55 @@ function ChainLogo(id, light = false) {
|
|
|
128
125
|
}
|
|
129
126
|
switch (sanitizeName(`${id}${light ? "light" : ""}`).toLowerCase()) {
|
|
130
127
|
case "1030light":
|
|
131
|
-
return
|
|
128
|
+
return Chain1030light;
|
|
132
129
|
case "146light":
|
|
133
|
-
return
|
|
130
|
+
return Chain146light;
|
|
134
131
|
case "1868light":
|
|
135
|
-
return
|
|
132
|
+
return Chain1868light;
|
|
136
133
|
case "196light":
|
|
137
|
-
return
|
|
134
|
+
return Chain196light;
|
|
138
135
|
case "2001light":
|
|
139
|
-
return
|
|
136
|
+
return Chain2001light;
|
|
140
137
|
case "252light":
|
|
141
|
-
return
|
|
138
|
+
return Chain252light;
|
|
142
139
|
case "280light":
|
|
143
|
-
return
|
|
140
|
+
return Chain280light;
|
|
144
141
|
case "324light":
|
|
145
|
-
return
|
|
142
|
+
return Chain324light;
|
|
146
143
|
case "325000light":
|
|
147
|
-
return
|
|
144
|
+
return Chain325000light;
|
|
148
145
|
case "34443light":
|
|
149
|
-
return
|
|
146
|
+
return Chain34443light;
|
|
150
147
|
case "480light":
|
|
151
|
-
return
|
|
148
|
+
return Chain480light;
|
|
152
149
|
case "4913light":
|
|
153
|
-
return
|
|
150
|
+
return Chain4913light;
|
|
154
151
|
case "5000light":
|
|
155
|
-
return
|
|
152
|
+
return Chain5000light;
|
|
156
153
|
case "5001light":
|
|
157
|
-
return
|
|
154
|
+
return Chain5001light;
|
|
158
155
|
case "5003light":
|
|
159
|
-
return
|
|
156
|
+
return Chain5003light;
|
|
160
157
|
case "57054light":
|
|
161
|
-
return
|
|
158
|
+
return Chain57054light;
|
|
162
159
|
case "59140light":
|
|
163
|
-
return
|
|
160
|
+
return Chain59140light;
|
|
164
161
|
case "59141light":
|
|
165
|
-
return
|
|
162
|
+
return Chain59141light;
|
|
166
163
|
case "59144light":
|
|
167
|
-
return
|
|
164
|
+
return Chain59144light;
|
|
168
165
|
case "60808light":
|
|
169
|
-
return
|
|
166
|
+
return Chain60808light;
|
|
170
167
|
case "64165light":
|
|
171
|
-
return
|
|
168
|
+
return Chain64165light;
|
|
172
169
|
case "71light":
|
|
173
|
-
return
|
|
170
|
+
return Chain71light;
|
|
174
171
|
case "81457light":
|
|
175
|
-
return
|
|
172
|
+
return Chain81457light;
|
|
176
173
|
case "82light":
|
|
177
|
-
return
|
|
174
|
+
return Chain82light;
|
|
178
175
|
case "994873017light":
|
|
179
|
-
return
|
|
176
|
+
return Chain994873017light;
|
|
180
177
|
case "33139":
|
|
181
178
|
return Chain33139;
|
|
182
179
|
case "33111":
|
package/dist/esm/SymbolLogo.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import camelcase from 'camelcase';
|
|
2
1
|
import SymbolBnbxLight from '../logos/symbol/BnbxLight.svg';
|
|
3
2
|
import SymbolEthxLight from '../logos/symbol/EthxLight.svg';
|
|
4
3
|
import SymbolMaticxLight from '../logos/symbol/MaticxLight.svg';
|
|
5
|
-
import
|
|
4
|
+
import SymbolSlight from '../logos/symbol/SLight.svg';
|
|
6
5
|
import SymbolAave from '../logos/symbol/Aave.svg';
|
|
7
6
|
import SymbolUsd from '../logos/symbol/Usd.svg';
|
|
8
7
|
import SymbolAda from '../logos/symbol/Ada.svg';
|
|
@@ -33,7 +32,7 @@ import SymbolBera from '../logos/symbol/Bera.svg';
|
|
|
33
32
|
import SymbolBlast from '../logos/symbol/Blast.svg';
|
|
34
33
|
import SymbolBlur from '../logos/symbol/Blur.svg';
|
|
35
34
|
import SymbolBnb from '../logos/symbol/Bnb.svg';
|
|
36
|
-
import
|
|
35
|
+
import SymbolBnbx from '../logos/symbol/Bnbx.svg';
|
|
37
36
|
import SymbolBrett from '../logos/symbol/Brett.svg';
|
|
38
37
|
import SymbolBtc from '../logos/symbol/Btc.svg';
|
|
39
38
|
import SymbolCake from '../logos/symbol/Cake.svg';
|
|
@@ -43,7 +42,7 @@ import SymbolCelo from '../logos/symbol/Celo.svg';
|
|
|
43
42
|
import SymbolCfx from '../logos/symbol/Cfx.svg';
|
|
44
43
|
import SymbolChz from '../logos/symbol/Chz.svg';
|
|
45
44
|
import SymbolCmEth from '../logos/symbol/Cmeth.svg';
|
|
46
|
-
import
|
|
45
|
+
import SymbolMeth from '../logos/symbol/Meth.svg';
|
|
47
46
|
import SymbolComp from '../logos/symbol/Comp.svg';
|
|
48
47
|
import SymbolCook from '../logos/symbol/Cook.svg';
|
|
49
48
|
import SymbolCore from '../logos/symbol/Core.svg';
|
|
@@ -57,16 +56,16 @@ import SymbolDoge from '../logos/symbol/Doge.svg';
|
|
|
57
56
|
import SymbolDot from '../logos/symbol/Dot.svg';
|
|
58
57
|
import SymbolDydx from '../logos/symbol/Dydx.svg';
|
|
59
58
|
import SymbolDym from '../logos/symbol/Dym.svg';
|
|
60
|
-
import
|
|
59
|
+
import SymbolEbtc from '../logos/symbol/Ebtc.svg';
|
|
61
60
|
import SymbolWbtc from '../logos/symbol/Wbtc.svg';
|
|
62
61
|
import SymbolEgEth from '../logos/symbol/Egeth.svg';
|
|
63
62
|
import SymbolEna from '../logos/symbol/Ena.svg';
|
|
64
63
|
import SymbolEns from '../logos/symbol/Ens.svg';
|
|
65
64
|
import SymbolErn from '../logos/symbol/Ern.svg';
|
|
66
65
|
import SymbolEthfi from '../logos/symbol/Ethfi.svg';
|
|
67
|
-
import
|
|
66
|
+
import SymbolEthx from '../logos/symbol/Ethx.svg';
|
|
68
67
|
import SymbolEurc from '../logos/symbol/Eurc.svg';
|
|
69
|
-
import
|
|
68
|
+
import SymbolEure from '../logos/symbol/Eure.svg';
|
|
70
69
|
import SymbolEzEth from '../logos/symbol/Ezeth.svg';
|
|
71
70
|
import SymbolFbtc from '../logos/symbol/Fbtc.svg';
|
|
72
71
|
import SymbolFdusd from '../logos/symbol/Fdusd.svg';
|
|
@@ -90,7 +89,7 @@ import SymbolInsfrxEth from '../logos/symbol/Insfrxeth.svg';
|
|
|
90
89
|
import SymbolSfrxEth from '../logos/symbol/Sfrxeth.svg';
|
|
91
90
|
import SymbolInstEth from '../logos/symbol/Insteth.svg';
|
|
92
91
|
import SymbolStEth from '../logos/symbol/Steth.svg';
|
|
93
|
-
import
|
|
92
|
+
import SymbolInwstEths from '../logos/symbol/Inwsteths.svg';
|
|
94
93
|
import SymbolWstEth from '../logos/symbol/Wsteth.svg';
|
|
95
94
|
import SymbolJoe from '../logos/symbol/Joe.svg';
|
|
96
95
|
import SymbolKava from '../logos/symbol/Kava.svg';
|
|
@@ -107,7 +106,7 @@ import SymbolLusd from '../logos/symbol/Lusd.svg';
|
|
|
107
106
|
import SymbolMana from '../logos/symbol/Mana.svg';
|
|
108
107
|
import SymbolManta from '../logos/symbol/Manta.svg';
|
|
109
108
|
import SymbolMask from '../logos/symbol/Mask.svg';
|
|
110
|
-
import
|
|
109
|
+
import SymbolMaticx from '../logos/symbol/Maticx.svg';
|
|
111
110
|
import SymbolMatic from '../logos/symbol/Matic.svg';
|
|
112
111
|
import SymbolMerl from '../logos/symbol/Merl.svg';
|
|
113
112
|
import SymbolMetis from '../logos/symbol/Metis.svg';
|
|
@@ -136,7 +135,7 @@ import SymbolQuick from '../logos/symbol/Quick.svg';
|
|
|
136
135
|
import SymbolRari from '../logos/symbol/Rari.svg';
|
|
137
136
|
import SymbolRdnt from '../logos/symbol/Rdnt.svg';
|
|
138
137
|
import SymbolRender from '../logos/symbol/Render.svg';
|
|
139
|
-
import
|
|
138
|
+
import SymbolReth from '../logos/symbol/Reth.svg';
|
|
140
139
|
import SymbolRif from '../logos/symbol/Rif.svg';
|
|
141
140
|
import SymbolRon from '../logos/symbol/Ron.svg';
|
|
142
141
|
import SymbolRose from '../logos/symbol/Rose.svg';
|
|
@@ -148,12 +147,12 @@ import SymbolS from '../logos/symbol/S.svg';
|
|
|
148
147
|
import SymbolSafe from '../logos/symbol/Safe.svg';
|
|
149
148
|
import SymbolSand from '../logos/symbol/Sand.svg';
|
|
150
149
|
import SymbolSats from '../logos/symbol/Sats.svg';
|
|
151
|
-
import
|
|
150
|
+
import SymbolSavax from '../logos/symbol/Savax.svg';
|
|
152
151
|
import SymbolScr from '../logos/symbol/Scr.svg';
|
|
153
152
|
import SymbolScrvUsd from '../logos/symbol/Scrvusd.svg';
|
|
154
|
-
import
|
|
153
|
+
import SymbolSdai from '../logos/symbol/Sdai.svg';
|
|
155
154
|
import SymbolSei from '../logos/symbol/Sei.svg';
|
|
156
|
-
import
|
|
155
|
+
import SymbolSfrax from '../logos/symbol/Sfrax.svg';
|
|
157
156
|
import SymbolFrxEth from '../logos/symbol/Frxeth.svg';
|
|
158
157
|
import SymbolSfrxUsd from '../logos/symbol/Sfrxusd.svg';
|
|
159
158
|
import SymbolFrxUsd from '../logos/symbol/Frxusd.svg';
|
|
@@ -170,9 +169,9 @@ import SymbolStTao from '../logos/symbol/Sttao.svg';
|
|
|
170
169
|
import SymbolTao from '../logos/symbol/Tao.svg';
|
|
171
170
|
import SymbolStx from '../logos/symbol/Stx.svg';
|
|
172
171
|
import SymbolSui from '../logos/symbol/Sui.svg';
|
|
173
|
-
import
|
|
174
|
-
import
|
|
175
|
-
import
|
|
172
|
+
import SymbolSusde from '../logos/symbol/Susde.svg';
|
|
173
|
+
import SymbolUsde from '../logos/symbol/Usde.svg';
|
|
174
|
+
import SymbolSusds from '../logos/symbol/Susds.svg';
|
|
176
175
|
import SymbolUsds from '../logos/symbol/Usds.svg';
|
|
177
176
|
import SymbolSushi from '../logos/symbol/Sushi.svg';
|
|
178
177
|
import SymbolSwEth from '../logos/symbol/Sweth.svg';
|
|
@@ -180,7 +179,7 @@ import SymbolTaiko from '../logos/symbol/Taiko.svg';
|
|
|
180
179
|
import SymbolTia from '../logos/symbol/Tia.svg';
|
|
181
180
|
import SymbolTusd from '../logos/symbol/Tusd.svg';
|
|
182
181
|
import SymbolTwt from '../logos/symbol/Twt.svg';
|
|
183
|
-
import
|
|
182
|
+
import SymbolUltraEths from '../logos/symbol/Ultraeths.svg';
|
|
184
183
|
import SymbolUma from '../logos/symbol/Uma.svg';
|
|
185
184
|
import SymbolUni from '../logos/symbol/Uni.svg';
|
|
186
185
|
import SymbolUniEth from '../logos/symbol/Unieth.svg';
|
|
@@ -192,19 +191,19 @@ import SymbolUsdt from '../logos/symbol/Usdt.svg';
|
|
|
192
191
|
import SymbolUsdy from '../logos/symbol/Usdy.svg';
|
|
193
192
|
import SymbolVelo from '../logos/symbol/Velo.svg';
|
|
194
193
|
import SymbolW from '../logos/symbol/W.svg';
|
|
195
|
-
import
|
|
194
|
+
import SymbolWbeth from '../logos/symbol/Wbeth.svg';
|
|
196
195
|
import SymbolWeEth from '../logos/symbol/Weeth.svg';
|
|
197
|
-
import
|
|
196
|
+
import SymbolWeEths from '../logos/symbol/Weeths.svg';
|
|
198
197
|
import SymbolWld from '../logos/symbol/Wld.svg';
|
|
199
198
|
import SymbolWoo from '../logos/symbol/Woo.svg';
|
|
200
|
-
import
|
|
199
|
+
import SymbolWusdm from '../logos/symbol/Wusdm.svg';
|
|
201
200
|
import SymbolXlm from '../logos/symbol/Xlm.svg';
|
|
202
201
|
import SymbolXrp from '../logos/symbol/Xrp.svg';
|
|
203
202
|
import SymbolXtz from '../logos/symbol/Xtz.svg';
|
|
204
203
|
import SymbolXvs from '../logos/symbol/Xvs.svg';
|
|
205
204
|
import SymbolYfi from '../logos/symbol/Yfi.svg';
|
|
206
|
-
import SymbolYsUsdc from '../logos/symbol/
|
|
207
|
-
import
|
|
205
|
+
import SymbolYsUsdc from '../logos/symbol/Ysusdc.svg';
|
|
206
|
+
import SymbolYusd from '../logos/symbol/Yusd.svg';
|
|
208
207
|
import SymbolZil from '../logos/symbol/Zil.svg';
|
|
209
208
|
import SymbolZk from '../logos/symbol/Zk.svg';
|
|
210
209
|
import SymbolZrc from '../logos/symbol/Zrc.svg';
|
|
@@ -212,9 +211,7 @@ import SymbolZro from '../logos/symbol/Zro.svg';
|
|
|
212
211
|
import SymbolZrx from '../logos/symbol/Zrx.svg';
|
|
213
212
|
import SymbolPlaceholder from '../logos/symbol/Placeholder.svg';
|
|
214
213
|
function sanitizeName(id) {
|
|
215
|
-
return
|
|
216
|
-
pascalCase: true
|
|
217
|
-
}).replace(/ExchangeRate/g, '');
|
|
214
|
+
return id.replace(/\s+|-/g, '').replace(/ExchangeRate/g, '');
|
|
218
215
|
}
|
|
219
216
|
function SymbolLogo(id, light = false) {
|
|
220
217
|
if (!id) {
|
|
@@ -228,7 +225,7 @@ function SymbolLogo(id, light = false) {
|
|
|
228
225
|
case "maticxlight":
|
|
229
226
|
return SymbolMaticxLight;
|
|
230
227
|
case "slight":
|
|
231
|
-
return
|
|
228
|
+
return SymbolSlight;
|
|
232
229
|
case "aave":
|
|
233
230
|
return SymbolAave;
|
|
234
231
|
case "usd":
|
|
@@ -290,7 +287,7 @@ function SymbolLogo(id, light = false) {
|
|
|
290
287
|
case "bnb":
|
|
291
288
|
return SymbolBnb;
|
|
292
289
|
case "bnbx":
|
|
293
|
-
return
|
|
290
|
+
return SymbolBnbx;
|
|
294
291
|
case "brett":
|
|
295
292
|
return SymbolBrett;
|
|
296
293
|
case "btc":
|
|
@@ -310,7 +307,7 @@ function SymbolLogo(id, light = false) {
|
|
|
310
307
|
case "cmeth":
|
|
311
308
|
return SymbolCmEth;
|
|
312
309
|
case "meth":
|
|
313
|
-
return
|
|
310
|
+
return SymbolMeth;
|
|
314
311
|
case "comp":
|
|
315
312
|
return SymbolComp;
|
|
316
313
|
case "cook":
|
|
@@ -338,7 +335,7 @@ function SymbolLogo(id, light = false) {
|
|
|
338
335
|
case "dym":
|
|
339
336
|
return SymbolDym;
|
|
340
337
|
case "ebtc":
|
|
341
|
-
return
|
|
338
|
+
return SymbolEbtc;
|
|
342
339
|
case "wbtc":
|
|
343
340
|
return SymbolWbtc;
|
|
344
341
|
case "egeth":
|
|
@@ -352,11 +349,11 @@ function SymbolLogo(id, light = false) {
|
|
|
352
349
|
case "ethfi":
|
|
353
350
|
return SymbolEthfi;
|
|
354
351
|
case "ethx":
|
|
355
|
-
return
|
|
352
|
+
return SymbolEthx;
|
|
356
353
|
case "eurc":
|
|
357
354
|
return SymbolEurc;
|
|
358
355
|
case "eure":
|
|
359
|
-
return
|
|
356
|
+
return SymbolEure;
|
|
360
357
|
case "ezeth":
|
|
361
358
|
return SymbolEzEth;
|
|
362
359
|
case "fbtc":
|
|
@@ -404,7 +401,7 @@ function SymbolLogo(id, light = false) {
|
|
|
404
401
|
case "steth":
|
|
405
402
|
return SymbolStEth;
|
|
406
403
|
case "inwsteths":
|
|
407
|
-
return
|
|
404
|
+
return SymbolInwstEths;
|
|
408
405
|
case "wsteth":
|
|
409
406
|
return SymbolWstEth;
|
|
410
407
|
case "joe":
|
|
@@ -438,7 +435,7 @@ function SymbolLogo(id, light = false) {
|
|
|
438
435
|
case "mask":
|
|
439
436
|
return SymbolMask;
|
|
440
437
|
case "maticx":
|
|
441
|
-
return
|
|
438
|
+
return SymbolMaticx;
|
|
442
439
|
case "matic":
|
|
443
440
|
return SymbolMatic;
|
|
444
441
|
case "merl":
|
|
@@ -496,7 +493,7 @@ function SymbolLogo(id, light = false) {
|
|
|
496
493
|
case "render":
|
|
497
494
|
return SymbolRender;
|
|
498
495
|
case "reth":
|
|
499
|
-
return
|
|
496
|
+
return SymbolReth;
|
|
500
497
|
case "rif":
|
|
501
498
|
return SymbolRif;
|
|
502
499
|
case "ron":
|
|
@@ -520,17 +517,17 @@ function SymbolLogo(id, light = false) {
|
|
|
520
517
|
case "sats":
|
|
521
518
|
return SymbolSats;
|
|
522
519
|
case "savax":
|
|
523
|
-
return
|
|
520
|
+
return SymbolSavax;
|
|
524
521
|
case "scr":
|
|
525
522
|
return SymbolScr;
|
|
526
523
|
case "scrvusd":
|
|
527
524
|
return SymbolScrvUsd;
|
|
528
525
|
case "sdai":
|
|
529
|
-
return
|
|
526
|
+
return SymbolSdai;
|
|
530
527
|
case "sei":
|
|
531
528
|
return SymbolSei;
|
|
532
529
|
case "sfrax":
|
|
533
|
-
return
|
|
530
|
+
return SymbolSfrax;
|
|
534
531
|
case "frxeth":
|
|
535
532
|
return SymbolFrxEth;
|
|
536
533
|
case "sfrxusd":
|
|
@@ -564,11 +561,11 @@ function SymbolLogo(id, light = false) {
|
|
|
564
561
|
case "sui":
|
|
565
562
|
return SymbolSui;
|
|
566
563
|
case "susde":
|
|
567
|
-
return
|
|
564
|
+
return SymbolSusde;
|
|
568
565
|
case "usde":
|
|
569
|
-
return
|
|
566
|
+
return SymbolUsde;
|
|
570
567
|
case "susds":
|
|
571
|
-
return
|
|
568
|
+
return SymbolSusds;
|
|
572
569
|
case "usds":
|
|
573
570
|
return SymbolUsds;
|
|
574
571
|
case "sushi":
|
|
@@ -584,7 +581,7 @@ function SymbolLogo(id, light = false) {
|
|
|
584
581
|
case "twt":
|
|
585
582
|
return SymbolTwt;
|
|
586
583
|
case "ultraeths":
|
|
587
|
-
return
|
|
584
|
+
return SymbolUltraEths;
|
|
588
585
|
case "uma":
|
|
589
586
|
return SymbolUma;
|
|
590
587
|
case "uni":
|
|
@@ -608,17 +605,17 @@ function SymbolLogo(id, light = false) {
|
|
|
608
605
|
case "w":
|
|
609
606
|
return SymbolW;
|
|
610
607
|
case "wbeth":
|
|
611
|
-
return
|
|
608
|
+
return SymbolWbeth;
|
|
612
609
|
case "weeth":
|
|
613
610
|
return SymbolWeEth;
|
|
614
611
|
case "weeths":
|
|
615
|
-
return
|
|
612
|
+
return SymbolWeEths;
|
|
616
613
|
case "wld":
|
|
617
614
|
return SymbolWld;
|
|
618
615
|
case "woo":
|
|
619
616
|
return SymbolWoo;
|
|
620
617
|
case "wusdm":
|
|
621
|
-
return
|
|
618
|
+
return SymbolWusdm;
|
|
622
619
|
case "xlm":
|
|
623
620
|
return SymbolXlm;
|
|
624
621
|
case "xrp":
|
|
@@ -632,7 +629,7 @@ function SymbolLogo(id, light = false) {
|
|
|
632
629
|
case "ysusdc":
|
|
633
630
|
return SymbolYsUsdc;
|
|
634
631
|
case "yusd":
|
|
635
|
-
return
|
|
632
|
+
return SymbolYusd;
|
|
636
633
|
case "zil":
|
|
637
634
|
return SymbolZil;
|
|
638
635
|
case "zk":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[
|
|
1
|
+
[]
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as ApiProviderLogo } from './ApiProviderLogo.js';
|
|
2
2
|
export { default as ApiProviderLogoMissing } from './ApiProviderLogoMissing.json';
|
|
3
|
-
export { default as ChainLogo } from './ChainLogo.js';
|
|
4
|
-
export { default as ChainLogoMissing } from './ChainLogoMissing.json';
|
|
5
3
|
export { default as SymbolLogo } from './SymbolLogo.js';
|
|
6
4
|
export { default as SymbolLogoMissing } from './SymbolLogoMissing.json';
|
|
5
|
+
export { default as ChainLogo } from './ChainLogo.js';
|
|
6
|
+
export { default as ChainLogoMissing } from './ChainLogoMissing.json';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as ApiProviderLogo } from './ApiProviderLogo.js';
|
|
2
2
|
export { default as ApiProviderLogoMissing } from './ApiProviderLogoMissing.json';
|
|
3
|
-
export { default as ChainLogo } from './ChainLogo.js';
|
|
4
|
-
export { default as ChainLogoMissing } from './ChainLogoMissing.json';
|
|
5
3
|
export { default as SymbolLogo } from './SymbolLogo.js';
|
|
6
4
|
export { default as SymbolLogoMissing } from './SymbolLogoMissing.json';
|
|
5
|
+
export { default as ChainLogo } from './ChainLogo.js';
|
|
6
|
+
export { default as ChainLogoMissing } from './ChainLogoMissing.json';
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 42 42">
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<path fill="white" fill-rule="evenodd" d="M32.9773 18.5332C34.3391 17.1714 34.3391 14.9632 32.9773 13.6013L28.3974 9.02146C27.0356 7.65951 24.8273 7.65951 23.4653 9.02146C21.8801 10.2545 20.1185 10.2545 18.5333 9.02146C17.1713 7.65951 14.9632 7.65951 13.6013 9.02146L9.02146 13.6013C7.65951 14.9632 7.65951 17.1714 9.02146 18.5332C10.2545 20.1185 10.2545 21.88 9.02146 23.4653C7.65951 24.8274 7.65951 27.0355 9.02146 28.3975L13.6013 32.9773C14.8101 34.186 16.6855 34.322 18.0443 33.385C18.1812 33.2906 18.3109 33.1857 18.4405 33.0811L18.444 33.0783C18.6439 32.9167 18.8436 32.7554 19.0684 32.632C20.4079 31.8983 22.0726 31.894 23.4653 32.9773C24.8273 34.3392 27.0356 34.3392 28.3974 32.9773L32.9773 28.3975C34.3391 27.0355 34.3391 24.8274 32.9773 23.4653C31.7442 21.88 31.7442 20.1185 32.9773 18.5332ZM18.181 12.1922C19.543 10.8302 21.7512 10.8302 23.113 12.1922L29.4543 18.5333C30.8163 19.8953 30.8163 22.1035 29.4543 23.4654L23.113 29.8067C21.7512 31.1687 19.543 31.1687 18.181 29.8067L11.8399 23.4654C10.4778 22.1035 10.4778 19.8953 11.8399 18.5333L18.181 12.1922Z" clip-rule="evenodd"/>
|
|
6
|
-
</g>
|
|
7
|
-
<defs>
|
|
8
|
-
<linearGradient id="usdm_svg__paint0_linear_2736_274238" x1="20.9989" x2="20.9989" y1="0" y2="41.9979" gradientUnits="userSpaceOnUse">
|
|
9
|
-
<stop stop-color="#404141"/>
|
|
10
|
-
<stop offset="1" stop-color="#222222"/>
|
|
11
|
-
</linearGradient>
|
|
12
|
-
<clipPath id="usdm_svg__clip0_2736_274238">
|
|
13
|
-
<rect width="42" height="42" fill="white"/>
|
|
14
|
-
</clipPath>
|
|
15
|
-
</defs>
|
|
2
|
+
<rect width="42" height="42" fill="#1E2739" rx="21"/>
|
|
3
|
+
<path fill="white" d="M20.999 25.234C23.3379 25.234 25.234 23.3379 25.234 20.999C25.234 18.66 23.3379 16.7639 20.999 16.7639C18.66 16.7639 16.7639 18.66 16.7639 20.999C16.7639 23.3379 18.66 25.234 20.999 25.234Z"/>
|
|
4
|
+
<path fill="white" fill-rule="evenodd" d="M32.9785 18.5338C34.3405 17.1718 34.3405 14.9635 32.9785 13.6015L28.3985 9.02151C27.0365 7.6595 24.8282 7.6595 23.4661 9.02151C21.8807 10.2546 20.1191 10.2546 18.5338 9.02151C17.1718 7.6595 14.9635 7.6595 13.6015 9.02151L9.02151 13.6015C7.6595 14.9635 7.6595 17.1718 9.02151 18.5338C10.2546 20.1191 10.2546 21.8807 9.02151 23.4661C7.6595 24.8282 7.6595 27.0365 9.02151 28.3985L13.6015 32.9785C14.8104 34.1874 16.686 34.3232 18.0448 33.3862C18.1816 33.2918 18.3114 33.187 18.441 33.0823L18.4445 33.0796C18.6444 32.9179 18.8441 32.7566 19.069 32.6333C20.4085 31.8995 22.0733 31.8952 23.4661 32.9785C24.8282 34.3405 27.0365 34.3405 28.3985 32.9785L32.9785 28.3985C34.3405 27.0365 34.3405 24.8282 32.9785 23.4661C31.7454 21.8807 31.7454 20.1191 32.9785 18.5338ZM18.1815 12.1923C19.5435 10.8303 21.7518 10.8303 23.1138 12.1923L29.4554 18.5339C30.8174 19.8959 30.8174 22.1042 29.4554 23.4662L23.1138 29.8078C21.7518 31.1698 19.5435 31.1698 18.1815 29.8078L11.84 23.4662C10.4779 22.1042 10.4779 19.8959 11.84 18.5339L18.1815 12.1923Z" clip-rule="evenodd"/>
|
|
16
5
|
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 42 42">
|
|
2
|
+
<rect width="42" height="42" fill="#1E2739" rx="21"/>
|
|
3
|
+
<path fill="white" d="M10.846 27.6182L7.875 24.6472L11.5221 21.0001C12.7276 19.7946 14.2818 19.1466 15.8632 19.0533C15.4343 18.7079 14.8904 18.4999 14.2982 18.4999H9.14026V14.2981H14.2982C16.003 14.2981 17.5603 14.939 18.7443 15.9912C18.6854 15.4437 18.4478 14.9119 18.0291 14.493L14.382 10.8459L17.3529 7.875L21 11.5221C22.2055 12.7276 22.8535 14.282 22.9468 15.8632C23.2922 15.4344 23.5001 14.8904 23.5001 14.2981V9.14027H27.7019V14.2983C27.7019 16.0031 27.0609 17.5605 26.0088 18.7444C26.5562 18.6854 27.0879 18.4478 27.5068 18.029L31.1539 14.3819L34.125 17.3529L30.4779 21.0001C29.2724 22.2056 27.7181 22.8534 26.1369 22.9467C26.5657 23.2921 27.1097 23.5001 27.7019 23.5001H32.8598V27.7019H27.7019C25.9971 27.7019 24.4397 27.0609 23.2557 26.0087C23.3146 26.5562 23.5522 27.088 23.9709 27.5068L27.6182 31.1539L24.6471 34.125L20.9997 30.4779C19.7943 29.2723 19.1464 27.718 19.0532 26.1368C18.7078 26.5656 18.4999 27.1095 18.4999 27.7019V32.8598H14.2981V27.7019C14.2981 25.997 14.9389 24.4398 15.991 23.2558C15.4435 23.3148 14.9118 23.5523 14.493 23.9711L10.8459 27.6182H10.846Z"/>
|
|
4
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@api3/logos",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"repository": {
|
|
@@ -17,9 +17,6 @@
|
|
|
17
17
|
"symbol",
|
|
18
18
|
"api-provider"
|
|
19
19
|
],
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"camelcase": "^6.3.0"
|
|
22
|
-
},
|
|
23
20
|
"devDependencies": {
|
|
24
21
|
"eslint": "^8.57.1",
|
|
25
22
|
"@babel/core": "^7.26.0",
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 42 42">
|
|
2
|
-
<rect width="42" height="42" fill="#222222" rx="21"/>
|
|
3
|
-
<path fill="url(#ultraETHs_svg__paint0_linear_8440_203813)" d="M20.4883 6.99219L10.7373 21.4598L20.4883 26.6132V6.99219Z"/>
|
|
4
|
-
<path fill="url(#ultraETHs_svg__paint1_linear_8440_203813)" d="M21.5107 6.99219L31.2617 21.4598L21.5107 26.6132V6.99219Z"/>
|
|
5
|
-
<path fill="#0E322D" d="M21.5107 26.609L31.2631 21.4556L21.5107 17.4922V26.609Z"/>
|
|
6
|
-
<path fill="#0B5B3E" d="M10.7373 21.4556L20.4883 26.609V17.4922L10.7373 21.4556Z"/>
|
|
7
|
-
<path fill="url(#ultraETHs_svg__paint2_linear_8440_203813)" d="M20.5347 35.0086V27.7566L10.8467 22.5234L20.5347 35.0086Z"/>
|
|
8
|
-
<path fill="url(#ultraETHs_svg__paint3_linear_8440_203813)" d="M21.5107 35.0086V27.7566L31.1987 22.5234L21.5107 35.0086Z"/>
|
|
9
|
-
<defs>
|
|
10
|
-
<linearGradient id="ultraETHs_svg__paint0_linear_8440_203813" x1="19.2493" x2="8.7017" y1="10.6476" y2="15.0576" gradientUnits="userSpaceOnUse">
|
|
11
|
-
<stop stop-color="#00FF84"/>
|
|
12
|
-
<stop offset="1" stop-color="#2EBAC6"/>
|
|
13
|
-
</linearGradient>
|
|
14
|
-
<linearGradient id="ultraETHs_svg__paint1_linear_8440_203813" x1="22.7497" x2="33.2973" y1="10.6476" y2="15.0576" gradientUnits="userSpaceOnUse">
|
|
15
|
-
<stop stop-color="#00FF84"/>
|
|
16
|
-
<stop offset="1" stop-color="#2EBAC6"/>
|
|
17
|
-
</linearGradient>
|
|
18
|
-
<linearGradient id="ultraETHs_svg__paint2_linear_8440_203813" x1="19.3027" x2="10.6717" y1="24.8488" y2="30.4838" gradientUnits="userSpaceOnUse">
|
|
19
|
-
<stop stop-color="#00FF84"/>
|
|
20
|
-
<stop offset="1" stop-color="#2EBAC6"/>
|
|
21
|
-
</linearGradient>
|
|
22
|
-
<linearGradient id="ultraETHs_svg__paint3_linear_8440_203813" x1="22.7427" x2="31.3737" y1="24.8488" y2="30.4838" gradientUnits="userSpaceOnUse">
|
|
23
|
-
<stop stop-color="#00FF84"/>
|
|
24
|
-
<stop offset="1" stop-color="#2EBAC6"/>
|
|
25
|
-
</linearGradient>
|
|
26
|
-
</defs>
|
|
27
|
-
</svg>
|