@api3/logos 0.3.6 → 0.3.8
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 +63 -69
- package/dist/cjs/SymbolLogo.js +48 -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 +63 -69
- package/dist/esm/SymbolLogo.js +48 -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/Frxusd.svg +7 -0
- package/dist/logos/symbol/Sfrxusd.svg +8 -0
- package/dist/logos/symbol/Ysusdc.svg +4 -0
- package/package.json +2 -5
- package/dist/logos/chain/Chain177.svg +0 -13
- /package/dist/logos/symbol/{UltraEtHs.svg → UltraEths.svg} +0 -0
|
@@ -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');
|
|
@@ -33,8 +32,8 @@ const Chain43114 = require('../logos/chain/Chain43114.svg');
|
|
|
33
32
|
const Chain43113 = require('../logos/chain/Chain43113.svg');
|
|
34
33
|
const Chain8453 = require('../logos/chain/Chain8453.svg');
|
|
35
34
|
const Chain84532 = require('../logos/chain/Chain84532.svg');
|
|
36
|
-
const Chain80084 = require('../logos/chain/Chain80084.svg');
|
|
37
35
|
const Chain80094 = require('../logos/chain/Chain80094.svg');
|
|
36
|
+
const Chain80084 = require('../logos/chain/Chain80084.svg');
|
|
38
37
|
const Chain200901 = require('../logos/chain/Chain200901.svg');
|
|
39
38
|
const Chain200810 = require('../logos/chain/Chain200810.svg');
|
|
40
39
|
const Chain81457 = require('../logos/chain/Chain81457.svg');
|
|
@@ -55,12 +54,11 @@ const Chain252 = require('../logos/chain/Chain252.svg');
|
|
|
55
54
|
const Chain2522 = require('../logos/chain/Chain2522.svg');
|
|
56
55
|
const Chain100 = require('../logos/chain/Chain100.svg');
|
|
57
56
|
const Chain10200 = require('../logos/chain/Chain10200.svg');
|
|
58
|
-
const Chain177 = require('../logos/chain/Chain177.svg');
|
|
59
57
|
const Chain13473 = require('../logos/chain/Chain13473.svg');
|
|
60
58
|
const Chain2525 = require('../logos/chain/Chain2525.svg');
|
|
61
59
|
const Chain2424 = require('../logos/chain/Chain2424.svg');
|
|
62
|
-
const Chain763373 = require('../logos/chain/Chain763373.svg');
|
|
63
60
|
const Chain57073 = require('../logos/chain/Chain57073.svg');
|
|
61
|
+
const Chain763373 = require('../logos/chain/Chain763373.svg');
|
|
64
62
|
const Chain2222 = require('../logos/chain/Chain2222.svg');
|
|
65
63
|
const Chain2221 = require('../logos/chain/Chain2221.svg');
|
|
66
64
|
const Chain255 = require('../logos/chain/Chain255.svg');
|
|
@@ -75,9 +73,9 @@ const Chain169 = require('../logos/chain/Chain169.svg');
|
|
|
75
73
|
const Chain3441006 = require('../logos/chain/Chain3441006.svg');
|
|
76
74
|
const Chain5000 = require('../logos/chain/Chain5000.svg');
|
|
77
75
|
const Chain5003 = require('../logos/chain/Chain5003.svg');
|
|
78
|
-
const Chain1750 = require('../logos/chain/Chain1750.svg');
|
|
79
76
|
const Chain4200 = require('../logos/chain/Chain4200.svg');
|
|
80
77
|
const Chain686868 = require('../logos/chain/Chain686868.svg');
|
|
78
|
+
const Chain1750 = require('../logos/chain/Chain1750.svg');
|
|
81
79
|
const Chain1088 = require('../logos/chain/Chain1088.svg');
|
|
82
80
|
const Chain59902 = require('../logos/chain/Chain59902.svg');
|
|
83
81
|
const Chain34443 = require('../logos/chain/Chain34443.svg');
|
|
@@ -87,9 +85,9 @@ const Chain1287 = require('../logos/chain/Chain1287.svg');
|
|
|
87
85
|
const Chain1285 = require('../logos/chain/Chain1285.svg');
|
|
88
86
|
const Chain911867 = require('../logos/chain/Chain911867.svg');
|
|
89
87
|
const Chain4913 = require('../logos/chain/Chain4913.svg');
|
|
90
|
-
const Chain10 = require('../logos/chain/Chain10.svg');
|
|
91
88
|
const Chain204 = require('../logos/chain/Chain204.svg');
|
|
92
89
|
const Chain5611 = require('../logos/chain/Chain5611.svg');
|
|
90
|
+
const Chain10 = require('../logos/chain/Chain10.svg');
|
|
93
91
|
const Chain11155420 = require('../logos/chain/Chain11155420.svg');
|
|
94
92
|
const Chain137 = require('../logos/chain/Chain137.svg');
|
|
95
93
|
const Chain80002 = require('../logos/chain/Chain80002.svg');
|
|
@@ -119,9 +117,7 @@ const Chain48900 = require('../logos/chain/Chain48900.svg');
|
|
|
119
117
|
const Chain48899 = require('../logos/chain/Chain48899.svg');
|
|
120
118
|
const ChainPlaceholder = require('../logos/chain/Placeholder.svg');
|
|
121
119
|
function sanitizeName(id) {
|
|
122
|
-
return
|
|
123
|
-
pascalCase: true
|
|
124
|
-
}).replace(/ExchangeRate/g, '');
|
|
120
|
+
return id.replace(/\s+|-/g, '').replace(/ExchangeRate/g, '');
|
|
125
121
|
}
|
|
126
122
|
function ChainLogo(id, light = false) {
|
|
127
123
|
if (!id) {
|
|
@@ -129,55 +125,55 @@ function ChainLogo(id, light = false) {
|
|
|
129
125
|
}
|
|
130
126
|
switch (sanitizeName(`${id}${light ? "light" : ""}`).toLowerCase()) {
|
|
131
127
|
case "1030light":
|
|
132
|
-
return
|
|
128
|
+
return Chain1030light;
|
|
133
129
|
case "146light":
|
|
134
|
-
return
|
|
130
|
+
return Chain146light;
|
|
135
131
|
case "1868light":
|
|
136
|
-
return
|
|
132
|
+
return Chain1868light;
|
|
137
133
|
case "196light":
|
|
138
|
-
return
|
|
134
|
+
return Chain196light;
|
|
139
135
|
case "2001light":
|
|
140
|
-
return
|
|
136
|
+
return Chain2001light;
|
|
141
137
|
case "252light":
|
|
142
|
-
return
|
|
138
|
+
return Chain252light;
|
|
143
139
|
case "280light":
|
|
144
|
-
return
|
|
140
|
+
return Chain280light;
|
|
145
141
|
case "324light":
|
|
146
|
-
return
|
|
142
|
+
return Chain324light;
|
|
147
143
|
case "325000light":
|
|
148
|
-
return
|
|
144
|
+
return Chain325000light;
|
|
149
145
|
case "34443light":
|
|
150
|
-
return
|
|
146
|
+
return Chain34443light;
|
|
151
147
|
case "480light":
|
|
152
|
-
return
|
|
148
|
+
return Chain480light;
|
|
153
149
|
case "4913light":
|
|
154
|
-
return
|
|
150
|
+
return Chain4913light;
|
|
155
151
|
case "5000light":
|
|
156
|
-
return
|
|
152
|
+
return Chain5000light;
|
|
157
153
|
case "5001light":
|
|
158
|
-
return
|
|
154
|
+
return Chain5001light;
|
|
159
155
|
case "5003light":
|
|
160
|
-
return
|
|
156
|
+
return Chain5003light;
|
|
161
157
|
case "57054light":
|
|
162
|
-
return
|
|
158
|
+
return Chain57054light;
|
|
163
159
|
case "59140light":
|
|
164
|
-
return
|
|
160
|
+
return Chain59140light;
|
|
165
161
|
case "59141light":
|
|
166
|
-
return
|
|
162
|
+
return Chain59141light;
|
|
167
163
|
case "59144light":
|
|
168
|
-
return
|
|
164
|
+
return Chain59144light;
|
|
169
165
|
case "60808light":
|
|
170
|
-
return
|
|
166
|
+
return Chain60808light;
|
|
171
167
|
case "64165light":
|
|
172
|
-
return
|
|
168
|
+
return Chain64165light;
|
|
173
169
|
case "71light":
|
|
174
|
-
return
|
|
170
|
+
return Chain71light;
|
|
175
171
|
case "81457light":
|
|
176
|
-
return
|
|
172
|
+
return Chain81457light;
|
|
177
173
|
case "82light":
|
|
178
|
-
return
|
|
174
|
+
return Chain82light;
|
|
179
175
|
case "994873017light":
|
|
180
|
-
return
|
|
176
|
+
return Chain994873017light;
|
|
181
177
|
case "33139":
|
|
182
178
|
return Chain33139;
|
|
183
179
|
case "33111":
|
|
@@ -196,10 +192,10 @@ function ChainLogo(id, light = false) {
|
|
|
196
192
|
return Chain8453;
|
|
197
193
|
case "84532":
|
|
198
194
|
return Chain84532;
|
|
199
|
-
case "80084":
|
|
200
|
-
return Chain80084;
|
|
201
195
|
case "80094":
|
|
202
196
|
return Chain80094;
|
|
197
|
+
case "80084":
|
|
198
|
+
return Chain80084;
|
|
203
199
|
case "200901":
|
|
204
200
|
return Chain200901;
|
|
205
201
|
case "200810":
|
|
@@ -240,18 +236,16 @@ function ChainLogo(id, light = false) {
|
|
|
240
236
|
return Chain100;
|
|
241
237
|
case "10200":
|
|
242
238
|
return Chain10200;
|
|
243
|
-
case "177":
|
|
244
|
-
return Chain177;
|
|
245
239
|
case "13473":
|
|
246
240
|
return Chain13473;
|
|
247
241
|
case "2525":
|
|
248
242
|
return Chain2525;
|
|
249
243
|
case "2424":
|
|
250
244
|
return Chain2424;
|
|
251
|
-
case "763373":
|
|
252
|
-
return Chain763373;
|
|
253
245
|
case "57073":
|
|
254
246
|
return Chain57073;
|
|
247
|
+
case "763373":
|
|
248
|
+
return Chain763373;
|
|
255
249
|
case "2222":
|
|
256
250
|
return Chain2222;
|
|
257
251
|
case "2221":
|
|
@@ -280,12 +274,12 @@ function ChainLogo(id, light = false) {
|
|
|
280
274
|
return Chain5000;
|
|
281
275
|
case "5003":
|
|
282
276
|
return Chain5003;
|
|
283
|
-
case "1750":
|
|
284
|
-
return Chain1750;
|
|
285
277
|
case "4200":
|
|
286
278
|
return Chain4200;
|
|
287
279
|
case "686868":
|
|
288
280
|
return Chain686868;
|
|
281
|
+
case "1750":
|
|
282
|
+
return Chain1750;
|
|
289
283
|
case "1088":
|
|
290
284
|
return Chain1088;
|
|
291
285
|
case "59902":
|
|
@@ -304,12 +298,12 @@ function ChainLogo(id, light = false) {
|
|
|
304
298
|
return Chain911867;
|
|
305
299
|
case "4913":
|
|
306
300
|
return Chain4913;
|
|
307
|
-
case "10":
|
|
308
|
-
return Chain10;
|
|
309
301
|
case "204":
|
|
310
302
|
return Chain204;
|
|
311
303
|
case "5611":
|
|
312
304
|
return Chain5611;
|
|
305
|
+
case "10":
|
|
306
|
+
return Chain10;
|
|
313
307
|
case "11155420":
|
|
314
308
|
return Chain11155420;
|
|
315
309
|
case "137":
|
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,13 +147,15 @@ 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');
|
|
157
|
+
const SymbolSfrxUsd = require('../logos/symbol/Sfrxusd.svg');
|
|
158
|
+
const SymbolFrxUsd = require('../logos/symbol/Frxusd.svg');
|
|
158
159
|
const SymbolShib = require('../logos/symbol/Shib.svg');
|
|
159
160
|
const SymbolSlisBnb = require('../logos/symbol/Slisbnb.svg');
|
|
160
161
|
const SymbolSnx = require('../logos/symbol/Snx.svg');
|
|
@@ -168,9 +169,9 @@ const SymbolStTao = require('../logos/symbol/Sttao.svg');
|
|
|
168
169
|
const SymbolTao = require('../logos/symbol/Tao.svg');
|
|
169
170
|
const SymbolStx = require('../logos/symbol/Stx.svg');
|
|
170
171
|
const SymbolSui = require('../logos/symbol/Sui.svg');
|
|
171
|
-
const
|
|
172
|
-
const
|
|
173
|
-
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');
|
|
174
175
|
const SymbolUsds = require('../logos/symbol/Usds.svg');
|
|
175
176
|
const SymbolSushi = require('../logos/symbol/Sushi.svg');
|
|
176
177
|
const SymbolSwEth = require('../logos/symbol/Sweth.svg');
|
|
@@ -178,7 +179,7 @@ const SymbolTaiko = require('../logos/symbol/Taiko.svg');
|
|
|
178
179
|
const SymbolTia = require('../logos/symbol/Tia.svg');
|
|
179
180
|
const SymbolTusd = require('../logos/symbol/Tusd.svg');
|
|
180
181
|
const SymbolTwt = require('../logos/symbol/Twt.svg');
|
|
181
|
-
const
|
|
182
|
+
const SymbolUltraEths = require('../logos/symbol/UltraEths.svg');
|
|
182
183
|
const SymbolUma = require('../logos/symbol/Uma.svg');
|
|
183
184
|
const SymbolUni = require('../logos/symbol/Uni.svg');
|
|
184
185
|
const SymbolUniEth = require('../logos/symbol/Unieth.svg');
|
|
@@ -190,19 +191,19 @@ const SymbolUsdt = require('../logos/symbol/Usdt.svg');
|
|
|
190
191
|
const SymbolUsdy = require('../logos/symbol/Usdy.svg');
|
|
191
192
|
const SymbolVelo = require('../logos/symbol/Velo.svg');
|
|
192
193
|
const SymbolW = require('../logos/symbol/W.svg');
|
|
193
|
-
const
|
|
194
|
+
const SymbolWbeth = require('../logos/symbol/Wbeth.svg');
|
|
194
195
|
const SymbolWeEth = require('../logos/symbol/Weeth.svg');
|
|
195
|
-
const
|
|
196
|
+
const SymbolWeEths = require('../logos/symbol/Weeths.svg');
|
|
196
197
|
const SymbolWld = require('../logos/symbol/Wld.svg');
|
|
197
198
|
const SymbolWoo = require('../logos/symbol/Woo.svg');
|
|
198
|
-
const
|
|
199
|
+
const SymbolWusdm = require('../logos/symbol/Wusdm.svg');
|
|
199
200
|
const SymbolXlm = require('../logos/symbol/Xlm.svg');
|
|
200
201
|
const SymbolXrp = require('../logos/symbol/Xrp.svg');
|
|
201
202
|
const SymbolXtz = require('../logos/symbol/Xtz.svg');
|
|
202
203
|
const SymbolXvs = require('../logos/symbol/Xvs.svg');
|
|
203
204
|
const SymbolYfi = require('../logos/symbol/Yfi.svg');
|
|
204
|
-
const SymbolYsUsdc = require('../logos/symbol/
|
|
205
|
-
const
|
|
205
|
+
const SymbolYsUsdc = require('../logos/symbol/Ysusdc.svg');
|
|
206
|
+
const SymbolYusd = require('../logos/symbol/Yusd.svg');
|
|
206
207
|
const SymbolZil = require('../logos/symbol/Zil.svg');
|
|
207
208
|
const SymbolZk = require('../logos/symbol/Zk.svg');
|
|
208
209
|
const SymbolZrc = require('../logos/symbol/Zrc.svg');
|
|
@@ -210,9 +211,7 @@ const SymbolZro = require('../logos/symbol/Zro.svg');
|
|
|
210
211
|
const SymbolZrx = require('../logos/symbol/Zrx.svg');
|
|
211
212
|
const SymbolPlaceholder = require('../logos/symbol/Placeholder.svg');
|
|
212
213
|
function sanitizeName(id) {
|
|
213
|
-
return
|
|
214
|
-
pascalCase: true
|
|
215
|
-
}).replace(/ExchangeRate/g, '');
|
|
214
|
+
return id.replace(/\s+|-/g, '').replace(/ExchangeRate/g, '');
|
|
216
215
|
}
|
|
217
216
|
function SymbolLogo(id, light = false) {
|
|
218
217
|
if (!id) {
|
|
@@ -226,7 +225,7 @@ function SymbolLogo(id, light = false) {
|
|
|
226
225
|
case "maticxlight":
|
|
227
226
|
return SymbolMaticxLight;
|
|
228
227
|
case "slight":
|
|
229
|
-
return
|
|
228
|
+
return SymbolSlight;
|
|
230
229
|
case "aave":
|
|
231
230
|
return SymbolAave;
|
|
232
231
|
case "usd":
|
|
@@ -288,7 +287,7 @@ function SymbolLogo(id, light = false) {
|
|
|
288
287
|
case "bnb":
|
|
289
288
|
return SymbolBnb;
|
|
290
289
|
case "bnbx":
|
|
291
|
-
return
|
|
290
|
+
return SymbolBnbx;
|
|
292
291
|
case "brett":
|
|
293
292
|
return SymbolBrett;
|
|
294
293
|
case "btc":
|
|
@@ -308,7 +307,7 @@ function SymbolLogo(id, light = false) {
|
|
|
308
307
|
case "cmeth":
|
|
309
308
|
return SymbolCmEth;
|
|
310
309
|
case "meth":
|
|
311
|
-
return
|
|
310
|
+
return SymbolMeth;
|
|
312
311
|
case "comp":
|
|
313
312
|
return SymbolComp;
|
|
314
313
|
case "cook":
|
|
@@ -336,7 +335,7 @@ function SymbolLogo(id, light = false) {
|
|
|
336
335
|
case "dym":
|
|
337
336
|
return SymbolDym;
|
|
338
337
|
case "ebtc":
|
|
339
|
-
return
|
|
338
|
+
return SymbolEbtc;
|
|
340
339
|
case "wbtc":
|
|
341
340
|
return SymbolWbtc;
|
|
342
341
|
case "egeth":
|
|
@@ -350,11 +349,11 @@ function SymbolLogo(id, light = false) {
|
|
|
350
349
|
case "ethfi":
|
|
351
350
|
return SymbolEthfi;
|
|
352
351
|
case "ethx":
|
|
353
|
-
return
|
|
352
|
+
return SymbolEthx;
|
|
354
353
|
case "eurc":
|
|
355
354
|
return SymbolEurc;
|
|
356
355
|
case "eure":
|
|
357
|
-
return
|
|
356
|
+
return SymbolEure;
|
|
358
357
|
case "ezeth":
|
|
359
358
|
return SymbolEzEth;
|
|
360
359
|
case "fbtc":
|
|
@@ -402,7 +401,7 @@ function SymbolLogo(id, light = false) {
|
|
|
402
401
|
case "steth":
|
|
403
402
|
return SymbolStEth;
|
|
404
403
|
case "inwsteths":
|
|
405
|
-
return
|
|
404
|
+
return SymbolInwstEths;
|
|
406
405
|
case "wsteth":
|
|
407
406
|
return SymbolWstEth;
|
|
408
407
|
case "joe":
|
|
@@ -436,7 +435,7 @@ function SymbolLogo(id, light = false) {
|
|
|
436
435
|
case "mask":
|
|
437
436
|
return SymbolMask;
|
|
438
437
|
case "maticx":
|
|
439
|
-
return
|
|
438
|
+
return SymbolMaticx;
|
|
440
439
|
case "matic":
|
|
441
440
|
return SymbolMatic;
|
|
442
441
|
case "merl":
|
|
@@ -494,7 +493,7 @@ function SymbolLogo(id, light = false) {
|
|
|
494
493
|
case "render":
|
|
495
494
|
return SymbolRender;
|
|
496
495
|
case "reth":
|
|
497
|
-
return
|
|
496
|
+
return SymbolReth;
|
|
498
497
|
case "rif":
|
|
499
498
|
return SymbolRif;
|
|
500
499
|
case "ron":
|
|
@@ -518,19 +517,23 @@ function SymbolLogo(id, light = false) {
|
|
|
518
517
|
case "sats":
|
|
519
518
|
return SymbolSats;
|
|
520
519
|
case "savax":
|
|
521
|
-
return
|
|
520
|
+
return SymbolSavax;
|
|
522
521
|
case "scr":
|
|
523
522
|
return SymbolScr;
|
|
524
523
|
case "scrvusd":
|
|
525
524
|
return SymbolScrvUsd;
|
|
526
525
|
case "sdai":
|
|
527
|
-
return
|
|
526
|
+
return SymbolSdai;
|
|
528
527
|
case "sei":
|
|
529
528
|
return SymbolSei;
|
|
530
529
|
case "sfrax":
|
|
531
|
-
return
|
|
530
|
+
return SymbolSfrax;
|
|
532
531
|
case "frxeth":
|
|
533
532
|
return SymbolFrxEth;
|
|
533
|
+
case "sfrxusd":
|
|
534
|
+
return SymbolSfrxUsd;
|
|
535
|
+
case "frxusd":
|
|
536
|
+
return SymbolFrxUsd;
|
|
534
537
|
case "shib":
|
|
535
538
|
return SymbolShib;
|
|
536
539
|
case "slisbnb":
|
|
@@ -558,11 +561,11 @@ function SymbolLogo(id, light = false) {
|
|
|
558
561
|
case "sui":
|
|
559
562
|
return SymbolSui;
|
|
560
563
|
case "susde":
|
|
561
|
-
return
|
|
564
|
+
return SymbolSusde;
|
|
562
565
|
case "usde":
|
|
563
|
-
return
|
|
566
|
+
return SymbolUsde;
|
|
564
567
|
case "susds":
|
|
565
|
-
return
|
|
568
|
+
return SymbolSusds;
|
|
566
569
|
case "usds":
|
|
567
570
|
return SymbolUsds;
|
|
568
571
|
case "sushi":
|
|
@@ -578,7 +581,7 @@ function SymbolLogo(id, light = false) {
|
|
|
578
581
|
case "twt":
|
|
579
582
|
return SymbolTwt;
|
|
580
583
|
case "ultraeths":
|
|
581
|
-
return
|
|
584
|
+
return SymbolUltraEths;
|
|
582
585
|
case "uma":
|
|
583
586
|
return SymbolUma;
|
|
584
587
|
case "uni":
|
|
@@ -602,17 +605,17 @@ function SymbolLogo(id, light = false) {
|
|
|
602
605
|
case "w":
|
|
603
606
|
return SymbolW;
|
|
604
607
|
case "wbeth":
|
|
605
|
-
return
|
|
608
|
+
return SymbolWbeth;
|
|
606
609
|
case "weeth":
|
|
607
610
|
return SymbolWeEth;
|
|
608
611
|
case "weeths":
|
|
609
|
-
return
|
|
612
|
+
return SymbolWeEths;
|
|
610
613
|
case "wld":
|
|
611
614
|
return SymbolWld;
|
|
612
615
|
case "woo":
|
|
613
616
|
return SymbolWoo;
|
|
614
617
|
case "wusdm":
|
|
615
|
-
return
|
|
618
|
+
return SymbolWusdm;
|
|
616
619
|
case "xlm":
|
|
617
620
|
return SymbolXlm;
|
|
618
621
|
case "xrp":
|
|
@@ -626,7 +629,7 @@ function SymbolLogo(id, light = false) {
|
|
|
626
629
|
case "ysusdc":
|
|
627
630
|
return SymbolYsUsdc;
|
|
628
631
|
case "yusd":
|
|
629
|
-
return
|
|
632
|
+
return SymbolYusd;
|
|
630
633
|
case "zil":
|
|
631
634
|
return SymbolZil;
|
|
632
635
|
case "zk":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[
|
|
1
|
+
[]
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as ChainLogo } from './ChainLogo.js';
|
|
2
2
|
export { default as ChainLogoMissing } from './ChainLogoMissing.json';
|
|
3
|
-
export { default as SymbolLogo } from './SymbolLogo.js';
|
|
4
|
-
export { default as SymbolLogoMissing } from './SymbolLogoMissing.json';
|
|
5
3
|
export { default as ApiProviderLogo } from './ApiProviderLogo.js';
|
|
6
4
|
export { default as ApiProviderLogoMissing } from './ApiProviderLogoMissing.json';
|
|
5
|
+
export { default as SymbolLogo } from './SymbolLogo.js';
|
|
6
|
+
export { default as SymbolLogoMissing } from './SymbolLogoMissing.json';
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
module.exports.SymbolLogo = require('./SymbolLogo.js');
|
|
2
|
-
module.exports.SymbolLogoMissing = require('./SymbolLogoMissing.json');
|
|
3
1
|
module.exports.ChainLogo = require('./ChainLogo.js');
|
|
4
2
|
module.exports.ChainLogoMissing = require('./ChainLogoMissing.json');
|
|
5
3
|
module.exports.ApiProviderLogo = require('./ApiProviderLogo.js');
|
|
6
4
|
module.exports.ApiProviderLogoMissing = require('./ApiProviderLogoMissing.json');
|
|
5
|
+
module.exports.SymbolLogo = require('./SymbolLogo.js');
|
|
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) {
|