wallet_gen/
coin.rs

1/*
2 * coin.rs
3 *
4 * Copyright 2018 Standard Mining
5 *
6 * Available to be used and modified under the terms of the MIT License.
7 *
8 * THE SOFTWARE IS PROVsymbolED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
10 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
11 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
12 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
13 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14 */
15
16//! Represents the various cryptocurrencies supported by this crate.
17
18use self::Coin::*;
19
20/// The actual enum that represents a cryptocurrency.
21/// This enum is not intended to be matched exhaustively,
22/// as new coins may be added in the future.
23#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
24#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
25pub enum Coin {
26    /// [Bitcoin](https://bitcoin.org/), symbol "BTC"
27    #[cfg_attr(feature = "serde", serde(rename = "BTC"))]
28    Bitcoin,
29
30    /// Testnet (all coins), symbol "TEST"
31    #[cfg_attr(feature = "serde", serde(rename = "TEST"))]
32    Testnet,
33
34    /// [Litecoin](https://litecoin.org/), symbol "LTC"
35    #[cfg_attr(feature = "serde", serde(rename = "LTC"))]
36    Litecoin,
37
38    /// [Dogecoin](https://github.com/dogecoin/dogecoin), symbol "DOGE"
39    #[cfg_attr(feature = "serde", serde(rename = "DOGE"))]
40    Dogecoin,
41
42    /// Reddcoin, symbol "RDD"
43    #[cfg_attr(feature = "serde", serde(rename = "RDD"))]
44    Reddcoin,
45
46    /// [Dash](https://github.com/dashpay/dash), symbol "DSH"
47    #[cfg_attr(feature = "serde", serde(rename = "DSH"))]
48    Dash,
49
50    /// [Peercoin](https://peercoin.net/), symbol "PPC"
51    #[cfg_attr(feature = "serde", serde(rename = "PPC"))]
52    Peercoin,
53
54    /// [Namecoin](http://namecoin.info/), symbol "NMC"
55    #[cfg_attr(feature = "serde", serde(rename = "NMC"))]
56    Namecoin,
57
58    /// [Feathercoin](https://www.feathercoin.com/), symbol "FTC"
59    #[cfg_attr(feature = "serde", serde(rename = "FTC"))]
60    Feathercoin,
61
62    /// [Counterparty](http://counterparty.io/), symbol "XCP"
63    #[cfg_attr(feature = "serde", serde(rename = "XCP"))]
64    Counterparty,
65
66    /// [Blackcoin](http://blackcoin.co/), symbol "BLK"
67    #[cfg_attr(feature = "serde", serde(rename = "BLK"))]
68    Blackcoin,
69
70    /// [NuShares](https://nubits.com/nushares/introduction), symbol "NSR"
71    #[cfg_attr(feature = "serde", serde(rename = "NSR"))]
72    NuShares,
73
74    /// NuBits, symbol "NBT"
75    #[cfg_attr(feature = "serde", serde(rename = "NBT"))]
76    NuBits,
77
78    /// Mazacoin, symbol "MZC"
79    #[cfg_attr(feature = "serde", serde(rename = "MZC"))]
80    Mazacoin,
81
82    /// Viacoin, symbol "VIA"
83    #[cfg_attr(feature = "serde", serde(rename = "VIA"))]
84    Viacoin,
85
86    /// ClearingHouse, symbol "XCH"
87    #[cfg_attr(feature = "serde", serde(rename = "XCH"))]
88    ClearingHouse,
89
90    /// Rubycoin, symbol "RBY"
91    #[cfg_attr(feature = "serde", serde(rename = "RBY"))]
92    Rubycoin,
93
94    /// Groestlcoin, symbol "GRS"
95    #[cfg_attr(feature = "serde", serde(rename = "GRS"))]
96    Groestlcoin,
97
98    /// Digitalcoin, symbol "DGC"
99    #[cfg_attr(feature = "serde", serde(rename = "DGC"))]
100    Digitalcoin,
101
102    /// Cannacoin, symbol "CCN"
103    #[cfg_attr(feature = "serde", serde(rename = "CCN"))]
104    Cannacoin,
105
106    /// DigiByte, symbol "DGB"
107    #[cfg_attr(feature = "serde", serde(rename = "DGB"))]
108    DigiByte,
109
110    /// Monacoin, symbol "MONA"
111    #[cfg_attr(feature = "serde", serde(rename = "MONA"))]
112    Monacoin,
113
114    /// Clams, symbol "CLAM"
115    #[cfg_attr(feature = "serde", serde(rename = "CLAM"))]
116    Clams,
117
118    /// Primecoin, symbol "XPM"
119    #[cfg_attr(feature = "serde", serde(rename = "XPM"))]
120    Primecoin,
121
122    /// Neoscoin, symbol "NEOS"
123    #[cfg_attr(feature = "serde", serde(rename = "NEOS"))]
124    Neoscoin,
125
126    /// Jumbucks, symbol "JBS"
127    #[cfg_attr(feature = "serde", serde(rename = "JBS"))]
128    Jumbucks,
129
130    /// ziftrCOIN, symbol "ZRC"
131    #[cfg_attr(feature = "serde", serde(rename = "ZRC"))]
132    ZiftCoin,
133
134    /// Vertcoin, symbol "VTC"
135    #[cfg_attr(feature = "serde", serde(rename = "VTC"))]
136    Vertcoin,
137
138    /// NXT, symbol "NXT"
139    #[cfg_attr(feature = "serde", serde(rename = "NXT"))]
140    NXT,
141
142    /// Burst, symbol "BURST"
143    #[cfg_attr(feature = "serde", serde(rename = "BURST"))]
144    Burst,
145
146    /// MonetaryUnit, symbol "MUE"
147    #[cfg_attr(feature = "serde", serde(rename = "MUE"))]
148    MonetaryUnit,
149
150    /// Zoom, symbol "ZOOM"
151    #[cfg_attr(feature = "serde", serde(rename = "ZOOM"))]
152    Zoom,
153
154    /// Vpncoin, symbol "VPN"
155    #[cfg_attr(feature = "serde", serde(rename = "VPN"))]
156    Vpncoin,
157
158    /// [Canada eCoin](https://github.com/Canada-eCoin/), symbol "CDN"
159    #[cfg_attr(feature = "serde", serde(rename = "CDN"))]
160    CanadaeCoin,
161
162    /// ShadowCash, symbol "SDC"
163    #[cfg_attr(feature = "serde", serde(rename = "SDC"))]
164    ShadowCash,
165
166    /// [ParkByte](https://github.com/parkbyte/), symbol "PKB"
167    #[cfg_attr(feature = "serde", serde(rename = "PKB"))]
168    ParkByte,
169
170    /// Pandacoin, symbol "PND"
171    #[cfg_attr(feature = "serde", serde(rename = "PND"))]
172    Pandacoin,
173
174    /// StartCOIN, symbol "START"
175    #[cfg_attr(feature = "serde", serde(rename = "START"))]
176    StartCoin,
177
178    /// [MOIN](https://discovermoin.com), symbol "MOIN"
179    #[cfg_attr(feature = "serde", serde(rename = "MOIN"))]
180    MOIN,
181
182    /// [Expanse](http://www.expanse.tech/), symbol "EXP"
183    #[cfg_attr(feature = "serde", serde(rename = "EXP"))]
184    Expanse,
185
186    /// [Decred](https://decred.org/), symbol "DCR"
187    #[cfg_attr(feature = "serde", serde(rename = "DCR"))]
188    Decred,
189
190    /// [NEM](https://github.com/NemProject), symbol "XEM"
191    #[cfg_attr(feature = "serde", serde(rename = "XEM"))]
192    NEM,
193
194    /// [Particl](https://particl.io/), symbol "PART"
195    #[cfg_attr(feature = "serde", serde(rename = "PART"))]
196    Particl,
197
198    /// [Argentum](http://www.argentum.io), symbol "ARG"
199    #[cfg_attr(feature = "serde", serde(rename = "ARG"))]
200    Argentum,
201
202    /// [Shreeji](https://github.com/SMJBIT/SHREEJI), symbol "SHR"
203    #[cfg_attr(feature = "serde", serde(rename = "SHR"))]
204    Shreeji,
205
206    /// Global Currency Reserve (GCRcoin), symbol "GCR"
207    #[cfg_attr(feature = "serde", serde(rename = "GCR"))]
208    GcrCoin,
209
210    /// [Novacoin](https://github.com/novacoin-project/novacoin), symbol "NVC"
211    #[cfg_attr(feature = "serde", serde(rename = "NVC"))]
212    Novacoin,
213
214    /// [Asiacoin](https://github.com/AsiaCoin/AsiaCoinFix), symbol "AC"
215    #[cfg_attr(feature = "serde", serde(rename = "AC"))]
216    Asiacoin,
217
218    /// [Bitcoindark](https://github.com/jl777/btcd), symbol "BTCD"
219    #[cfg_attr(feature = "serde", serde(rename = "BTCD"))]
220    Bitcoindark,
221
222    /// [Dopecoin](https://github.com/dopecoin-dev/DopeCoinV3), symbol "DOPE"
223    #[cfg_attr(feature = "serde", serde(rename = "DOPE"))]
224    Dopecoin,
225
226    /// [Templecoin](https://github.com/9cat/templecoin), symbol "TPC"
227    #[cfg_attr(feature = "serde", serde(rename = "TPC"))]
228    Templecoin,
229
230    /// [AIB](https://github.com/iobond/aib), symbol "AIB"
231    #[cfg_attr(feature = "serde", serde(rename = "AIB"))]
232    AIB,
233
234    /// [EDRCoin](https://github.com/EDRCoin/EDRcoin-src), symbol "EDRC"
235    #[cfg_attr(feature = "serde", serde(rename = "EDRC"))]
236    EDRCoin,
237
238    /// [Syscoin](https://github.com/syscoin/syscoin2), symbol "SYS"
239    #[cfg_attr(feature = "serde", serde(rename = "SYS"))]
240    Syscoin,
241
242    /// [Solarcoin](https://github.com/onsightit/solarcoin), symbol "SLR"
243    #[cfg_attr(feature = "serde", serde(rename = "SLR"))]
244    Solarcoin,
245
246    /// [Smileycoin](https://github.com/tutor-web/smileyCoin), symbol "SMLY"
247    #[cfg_attr(feature = "serde", serde(rename = "SMLY"))]
248    Smileycoin,
249
250    /// [Ethereum](https://ethereum.org/ether), symbol "ETH"
251    #[cfg_attr(feature = "serde", serde(rename = "ETH"))]
252    Ethereum,
253
254    /// [Ethereum Classic](https://ethereumclassic.github.io), symbol "ETC"
255    #[cfg_attr(feature = "serde", serde(rename = "ETC"))]
256    EthereumClassic,
257
258    /// [Pesobit](https://github.com/pesobitph/pesobit-source), symbol "PSB"
259    #[cfg_attr(feature = "serde", serde(rename = "PSB"))]
260    Pesobit,
261
262    /// [Landcoin](http://landcoin.co/), symbol "LDCN"
263    #[cfg_attr(feature = "serde", serde(rename = "LDCN"))]
264    Landcoin,
265
266    /// [Bitcoinplus](https://bitcoinplus.org), symbol "XBC"
267    #[cfg_attr(feature = "serde", serde(rename = "XBC"))]
268    Bitcoinplus,
269
270    /// [Internet of People](http://www.fermat.org), symbol "IOP"
271    #[cfg_attr(feature = "serde", serde(rename = "IOP"))]
272    InternetofPeople,
273
274    /// [Nexus](http://www.nexusearth.com/), symbol "NXS"
275    #[cfg_attr(feature = "serde", serde(rename = "NXS"))]
276    Nexus,
277
278    /// [InsaneCoin](http://insanecoin.com), symbol "INSN"
279    #[cfg_attr(feature = "serde", serde(rename = "INSN"))]
280    InsaneCoin,
281
282    /// [OkCash](https://github.com/okcashpro/), symbol "OK"
283    #[cfg_attr(feature = "serde", serde(rename = "OK"))]
284    OkCash,
285
286    /// [BritCoin](https://britcoin.com), symbol "BRIT"
287    #[cfg_attr(feature = "serde", serde(rename = "BRIT"))]
288    BritCoin,
289
290    /// [Compcoin](https://compcoin.com), symbol "CMP"
291    #[cfg_attr(feature = "serde", serde(rename = "CMP"))]
292    Compcoin,
293
294    /// [Crown](http://crown.tech/), symbol "CRW"
295    #[cfg_attr(feature = "serde", serde(rename = "CRW"))]
296    Crown,
297
298    /// [BelaCoin](http://belacoin.org), symbol "BELA"
299    #[cfg_attr(feature = "serde", serde(rename = "BELA"))]
300    BelaCoin,
301
302    /// [Virtual Cash](http://www.bitnet.cc/), symbol "VASH"
303    #[cfg_attr(feature = "serde", serde(rename = "VASH"))]
304    VirtualCash,
305
306    /// [FujiCoin](http://www.fujicoin.org/), symbol "FJC"
307    #[cfg_attr(feature = "serde", serde(rename = "FJC"))]
308    FujiCoin,
309
310    /// [MIX](https://www.mix-blockchain.org/), symbol "MIX"
311    #[cfg_attr(feature = "serde", serde(rename = "MIX"))]
312    MIX,
313
314    /// [Verge](https://github.com/vergecurrency/verge/), symbol "XVG"
315    #[cfg_attr(feature = "serde", serde(rename = "XVG"))]
316    Verge,
317
318    /// [Electronic Gulden](https://egulden.org/), symbol "EFL"
319    #[cfg_attr(feature = "serde", serde(rename = "EFL"))]
320    ElectronicGulden,
321
322    /// [ClubCoin](https://clubcoin.co/), symbol "CLUB"
323    #[cfg_attr(feature = "serde", serde(rename = "CLUB"))]
324    ClubCoin,
325
326    /// [RichCoin](https://richcoin.us/), symbol "RICHX"
327    #[cfg_attr(feature = "serde", serde(rename = "RICHX"))]
328    RichCoin,
329
330    /// [Potcoin](http://potcoin.com/), symbol "POT"
331    #[cfg_attr(feature = "serde", serde(rename = "POT"))]
332    Potcoin,
333
334    /// Quarkcoin, symbol "QRK"
335    #[cfg_attr(feature = "serde", serde(rename = "QRK"))]
336    Quarkcoin,
337
338    /// Terracoin, symbol "TRC"
339    #[cfg_attr(feature = "serde", serde(rename = "TRC"))]
340    Terracoin,
341
342    /// Gridcoin, symbol "GRC"
343    #[cfg_attr(feature = "serde", serde(rename = "GRC"))]
344    Gridcoin,
345
346    /// [Auroracoin](http://auroracoin.is/), symbol "AUR"
347    #[cfg_attr(feature = "serde", serde(rename = "AUR"))]
348    Auroracoin,
349
350    /// IXCoin, symbol "IXC"
351    #[cfg_attr(feature = "serde", serde(rename = "IXC"))]
352    IXCoin,
353
354    /// [Gulden](https://Gulden.com/), symbol "NLG"
355    #[cfg_attr(feature = "serde", serde(rename = "NLG"))]
356    Gulden,
357
358    /// [BitBean](http://bitbean.org/), symbol "BITB"
359    #[cfg_attr(feature = "serde", serde(rename = "BITB"))]
360    BitBean,
361
362    /// [Bata](http://bata.io/), symbol "BTA"
363    #[cfg_attr(feature = "serde", serde(rename = "BTA"))]
364    Bata,
365
366    /// [Myriadcoin](http://myriadcoin.org), symbol "XMY"
367    #[cfg_attr(feature = "serde", serde(rename = "XMY"))]
368    Myriadcoin,
369
370    /// [BitSend](http://bitsend.info), symbol "BSD"
371    #[cfg_attr(feature = "serde", serde(rename = "BSD"))]
372    BitSend,
373
374    /// [Unobtanium](http://http://unobtanium.uno/), symbol "UNO"
375    #[cfg_attr(feature = "serde", serde(rename = "UNO"))]
376    Unobtanium,
377
378    /// [MasterTrader](https://github.com/CrypticApplications/MT), symbol "MTR"
379    #[cfg_attr(feature = "serde", serde(rename = "MTR"))]
380    MasterTrader,
381
382    /// [GoldBlocks](https://github.com/goldblockscoin/goldblocks), symbol "GB"
383    #[cfg_attr(feature = "serde", serde(rename = "GB"))]
384    GoldBlocks,
385
386    /// [Saham](https://github.com/SahamDev/SahamDev), symbol "SHM"
387    #[cfg_attr(feature = "serde", serde(rename = "SHM"))]
388    Saham,
389
390    /// [Chronos](https://github.com/chronoscoin/Chronoscoin), symbol "CRX"
391    #[cfg_attr(feature = "serde", serde(rename = "CRX"))]
392    Chronos,
393
394    /// [Ubiquoin](https://github.com/ubiquoin/ubiq), symbol "BIQ"
395    #[cfg_attr(feature = "serde", serde(rename = "BIQ"))]
396    Ubiquoin,
397
398    /// [Evotion](https://github.com/evoshiun/Evotion), symbol "EVO"
399    #[cfg_attr(feature = "serde", serde(rename = "EVO"))]
400    Evotion,
401
402    /// [SaveTheOcean](https://github.com/SaveTheOceanMovement/SaveTheOceanCoin), symbol "STO"
403    #[cfg_attr(feature = "serde", serde(rename = "STO"))]
404    SaveTheOcean,
405
406    /// [BigUp](https://github.com/BigUps/), symbol "BIGUP"
407    #[cfg_attr(feature = "serde", serde(rename = "BIGUP"))]
408    BigUp,
409
410    /// [GameCredits](https://github.com/gamecredits-project), symbol "GMC"
411    #[cfg_attr(feature = "serde", serde(rename = "GMC"))]
412    GameCredits,
413
414    /// [Dollarcoins](https://github.com/dollarcoins/source), symbol "DLC"
415    #[cfg_attr(feature = "serde", serde(rename = "DLC"))]
416    Dollarcoins,
417
418    /// [Zayedcoin](https://github.com/ZayedCoin/Zayedcoin), symbol "ZYD"
419    #[cfg_attr(feature = "serde", serde(rename = "ZYD"))]
420    Zayedcoin,
421
422    /// [Dubaicoin](https://github.com/DubaiCoinDev/DubaiCoin), symbol "DBIC"
423    #[cfg_attr(feature = "serde", serde(rename = "DBIC"))]
424    Dubaicoin,
425
426    /// [Stratis](http://www.stratisplatform.com), symbol "STRAT"
427    #[cfg_attr(feature = "serde", serde(rename = "STRAT"))]
428    Stratis,
429
430    /// [Shilling](https://github.com/yavwa/Shilling), symbol "SH"
431    #[cfg_attr(feature = "serde", serde(rename = "SH"))]
432    Shilling,
433
434    /// [MarsCoin](http://www.marscoin.org/), symbol "MARS"
435    #[cfg_attr(feature = "serde", serde(rename = "MARS"))]
436    MarsCoin,
437
438    /// [Ubiq](https://github.com/Ubiq), symbol "UBQ"
439    #[cfg_attr(feature = "serde", serde(rename = "UBQ"))]
440    Ubiq,
441
442    /// [Pesetacoin](http://pesetacoin.info/), symbol "PTC"
443    #[cfg_attr(feature = "serde", serde(rename = "PTC"))]
444    Pesetacoin,
445
446    /// [Neurocoin](https://neurocoin.org), symbol "NRC"
447    #[cfg_attr(feature = "serde", serde(rename = "NRC"))]
448    Neurocoin,
449
450    /// [ARK](https://ark.io), symbol "ARK"
451    #[cfg_attr(feature = "serde", serde(rename = "ARK"))]
452    ARK,
453
454    /// [UltimateSecureCashMain](http://ultimatesecurecash.info), symbol "USC"
455    #[cfg_attr(feature = "serde", serde(rename = "USC"))]
456    UltimateSecureCashMain,
457
458    /// [Hempcoin](http://hempcoin.org), symbol "HMP"
459    #[cfg_attr(feature = "serde", serde(rename = "HMP"))]
460    Hempcoin,
461
462    /// [Linx](https://mylinx.io), symbol "LINX"
463    #[cfg_attr(feature = "serde", serde(rename = "LINX"))]
464    Linx,
465
466    /// [Ecoin](https://www.ecoinsource.com), symbol "ECN"
467    #[cfg_attr(feature = "serde", serde(rename = "ECN"))]
468    Ecoin,
469
470    /// [Denarius](https://denarius.io), symbol "DNR"
471    #[cfg_attr(feature = "serde", serde(rename = "DNR"))]
472    Denarius,
473
474    /// [Pinkcoin](http://getstarted.with.pink), symbol "PINK"
475    #[cfg_attr(feature = "serde", serde(rename = "PINK"))]
476    Pinkcoin,
477
478    /// [PiggyCoin](https://www.piggy-coin.com/), symbol "PIGGY"
479    #[cfg_attr(feature = "serde", serde(rename = "PIGGY"))]
480    PiggyCoin,
481
482    /// [Pivx](https://github.com/PIVX-Project/PIVX), symbol "PIVX"
483    #[cfg_attr(feature = "serde", serde(rename = "PIVX"))]
484    Pivx,
485
486    /// [Flashcoin](https://flashcoin.io), symbol "FLASH"
487    #[cfg_attr(feature = "serde", serde(rename = "FLASH"))]
488    Flashcoin,
489
490    /// [Zencash](https://zensystem.io), symbol "ZEN"
491    #[cfg_attr(feature = "serde", serde(rename = "ZEN"))]
492    Zencash,
493
494    /// [Putincoin](https://putincoin.info), symbol "PUT"
495    #[cfg_attr(feature = "serde", serde(rename = "PUT"))]
496    Putincoin,
497
498    /// [BitZeny](http://bitzeny.org/), symbol "ZNY"
499    #[cfg_attr(feature = "serde", serde(rename = "ZNY"))]
500    BitZeny,
501
502    /// [Unify](http://unifycryptocurrency.com), symbol "UNIFY"
503    #[cfg_attr(feature = "serde", serde(rename = "UNIFY"))]
504    Unify,
505
506    /// [StealthCoin](http://www.stealthcoin.com), symbol "XST"
507    #[cfg_attr(feature = "serde", serde(rename = "XST"))]
508    StealthCoin,
509
510    /// [Breakout Coin](http://www.breakoutcoin.com), symbol "BRK"
511    #[cfg_attr(feature = "serde", serde(rename = "BRK"))]
512    BreakoutCoin,
513
514    /// [Vcash](https://vcash.info), symbol "VC"
515    #[cfg_attr(feature = "serde", serde(rename = "VC"))]
516    Vcash,
517
518    /// [Monero](https://getmonero.org/), symbol "XMR"
519    #[cfg_attr(feature = "serde", serde(rename = "XMR"))]
520    Monero,
521
522    /// [Aeon](http://www.aeon.cash/), symbol "AEON"
523    #[cfg_attr(feature = "serde", serde(rename = "AEON"))]
524    Aeon,
525
526    /// [Voxels](https://www.voxelus.com), symbol "VOX"
527    #[cfg_attr(feature = "serde", serde(rename = "VOX"))]
528    Voxels,
529
530    /// [NavCoin](https://github.com/navcoindev/navcoin2), symbol "NAV"
531    #[cfg_attr(feature = "serde", serde(rename = "NAV"))]
532    NavCoin,
533
534    /// [Factom Factoids](https://github.com/FactomProject/FactomDocs/blob/master/wallet_info/wallet_test_vectors.md), symbol "FCT"
535    #[cfg_attr(feature = "serde", serde(rename = "FCT"))]
536    FactomFactoids,
537
538    /// [Factom Entry Credits](https://github.com/FactomProject), symbol "EC"
539    #[cfg_attr(feature = "serde", serde(rename = "EC"))]
540    FactomEntryCredits,
541
542    /// [Zcash](https://z.cash), symbol "ZEC"
543    #[cfg_attr(feature = "serde", serde(rename = "ZEC"))]
544    Zcash,
545
546    /// [Lisk](https://lisk.io/), symbol "LSK"
547    #[cfg_attr(feature = "serde", serde(rename = "LSK"))]
548    Lisk,
549
550    /// [Steem](http://steem.io), symbol "STEEM"
551    #[cfg_attr(feature = "serde", serde(rename = "STEEM"))]
552    Steem,
553
554    /// [ZCoin](https://zcoin.io), symbol "XZC"
555    #[cfg_attr(feature = "serde", serde(rename = "XZC"))]
556    ZCoin,
557
558    /// [Rootstock](http://www.rsk.co/), symbol "RSK"
559    #[cfg_attr(feature = "serde", serde(rename = "RSK"))]
560    Rootstock,
561
562    /// [RealPointCoin](https://github.com/MaxSmile/RealPointCoinQt), symbol "RPT"
563    #[cfg_attr(feature = "serde", serde(rename = "RPT"))]
564    RealPointCoin,
565
566    /// [LBRY Credits](https://lbry.io/), symbol "LBC"
567    #[cfg_attr(feature = "serde", serde(rename = "LBC"))]
568    LBRYCredits,
569
570    /// [Komodo](https://komodoplatform.com/), symbol "KMD"
571    #[cfg_attr(feature = "serde", serde(rename = "KMD"))]
572    Komodo,
573
574    /// [bisq Token](http://bisq.io/), symbol "BSQ"
575    #[cfg_attr(feature = "serde", serde(rename = "BSQ"))]
576    BisqToken,
577
578    /// [Riecoin](https://github.com/riecoin/riecoin), symbol "RIC"
579    #[cfg_attr(feature = "serde", serde(rename = "RIC"))]
580    Riecoin,
581
582    /// [Ripple](https://ripple.com), symbol "XRP"
583    #[cfg_attr(feature = "serde", serde(rename = "XRP"))]
584    Ripple,
585
586    /// [Bitcoin Cash](https://www.bitcoincash.org), symbol "BCH"
587    #[cfg_attr(feature = "serde", serde(rename = "BCH"))]
588    BitcoinCash,
589
590    /// [Neblio](https://nebl.io), symbol "NEBL"
591    #[cfg_attr(feature = "serde", serde(rename = "NEBL"))]
592    Neblio,
593
594    /// [ZClassic](http://zclassic.org/), symbol "ZCL"
595    #[cfg_attr(feature = "serde", serde(rename = "ZCL"))]
596    ZClassic,
597
598    /// [Stellar Lumens](https://www.stellar.org/), symbol "XLM"
599    #[cfg_attr(feature = "serde", serde(rename = "XLM"))]
600    StellarLumens,
601
602    /// [WhaleCoin](https://whalecoin.org/), symbol "WHL"
603    #[cfg_attr(feature = "serde", serde(rename = "WHL"))]
604    WhaleCoin,
605
606    /// [EuropeCoin](https://www.europecoin.eu.org/), symbol "ERC"
607    #[cfg_attr(feature = "serde", serde(rename = "ERC"))]
608    EuropeCoin,
609
610    /// [Diamond](http://bit.diamonds), symbol "DMD"
611    #[cfg_attr(feature = "serde", serde(rename = "DMD"))]
612    Diamond,
613
614    /// [Bytom](https://bytom.io), symbol "BTM"
615    #[cfg_attr(feature = "serde", serde(rename = "BTM"))]
616    Bytom,
617
618    /// [Biocoin](https://biocoin.bio), symbol "BIO"
619    #[cfg_attr(feature = "serde", serde(rename = "BIO"))]
620    Biocoin,
621
622    /// [Whitecoin](https://www.whitecoin.info), symbol "XWC"
623    #[cfg_attr(feature = "serde", serde(rename = "XWC"))]
624    Whitecoin,
625
626    /// [Bitcoin Gold](http://www.btcgpu.org), symbol "BTG"
627    #[cfg_attr(feature = "serde", serde(rename = "BTG"))]
628    BitcoinGold,
629
630    /// [SuperSkynet](http://wwww.superskynet.org/), symbol "SSN"
631    #[cfg_attr(feature = "serde", serde(rename = "SSN"))]
632    SuperSkynet,
633
634    /// [TOACoin](http://www.toacoin.com), symbol "TOA"
635    #[cfg_attr(feature = "serde", serde(rename = "TOA"))]
636    TOACoin,
637
638    /// [Bitcore](https://bitcore.cc), symbol "BTX"
639    #[cfg_attr(feature = "serde", serde(rename = "BTX"))]
640    Bitcore,
641
642    /// [Adcoin](https://www.getadcoin.com/), symbol "ACC"
643    #[cfg_attr(feature = "serde", serde(rename = "ACC"))]
644    Adcoin,
645
646    /// [Bridgecoin](https://bridgecoin.org/), symbol "BCO"
647    #[cfg_attr(feature = "serde", serde(rename = "BCO"))]
648    Bridgecoin,
649
650    /// [Ellaism](https://ellaism.org), symbol "ELLA"
651    #[cfg_attr(feature = "serde", serde(rename = "ELLA"))]
652    Ellaism,
653
654    /// [Pirl](https://pirl.io), symbol "PIRL"
655    #[cfg_attr(feature = "serde", serde(rename = "PIRL"))]
656    Pirl,
657
658    /// [RaiBlocks](https://raiblocks.com), symbol "XRB"
659    #[cfg_attr(feature = "serde", serde(rename = "XRB"))]
660    RaiBlocks,
661
662    /// [Vivo](https://www.vivocrypto.com/), symbol "VIVO"
663    #[cfg_attr(feature = "serde", serde(rename = "VIVO"))]
664    Vivo,
665
666    /// [Firstcoin](http://firstcoinproject.com), symbol "FRST"
667    #[cfg_attr(feature = "serde", serde(rename = "FRST"))]
668    Firstcoin,
669
670    /// [Helleniccoin](http://www.helleniccoin.gr/), symbol "HNC"
671    #[cfg_attr(feature = "serde", serde(rename = "HNC"))]
672    Helleniccoin,
673
674    /// [BUZZ](http://www.buzzcoin.info/), symbol "BUZZ"
675    #[cfg_attr(feature = "serde", serde(rename = "BUZZ"))]
676    BUZZ,
677
678    /// [Ember](https://www.embercoin.io/), symbol "MBRS"
679    #[cfg_attr(feature = "serde", serde(rename = "MBRS"))]
680    Ember,
681
682    /// [Hcash](https://h.cash), symbol "HSR"
683    #[cfg_attr(feature = "serde", serde(rename = "HSR"))]
684    Hcash,
685
686    /// [HTMLCOIN](https://htmlcoin.com/), symbol "HTML"
687    #[cfg_attr(feature = "serde", serde(rename = "HTML"))]
688    HTMLCOIN,
689
690    /// [Obsidian](https://obsidianplatform.com/), symbol "ODN"
691    #[cfg_attr(feature = "serde", serde(rename = "ODN"))]
692    Obsidian,
693
694    /// [OnixCoin](https://www.onixcoin.com/), symbol "ONX"
695    #[cfg_attr(feature = "serde", serde(rename = "ONX"))]
696    OnixCoin,
697
698    /// [Ravencoin](https://ravencoin.org/), symbol "RVN"
699    #[cfg_attr(feature = "serde", serde(rename = "RVN"))]
700    Ravencoin,
701
702    /// [GoByte](https://gobyte.network), symbol "GBX"
703    #[cfg_attr(feature = "serde", serde(rename = "GBX"))]
704    GoByte,
705
706    /// [BitcoinZ](https://btcz.rocks/en/), symbol "BTCZ"
707    #[cfg_attr(feature = "serde", serde(rename = "BTCZ"))]
708    BitcoinZ,
709
710    /// [Poa](https://poa.network), symbol "POA"
711    #[cfg_attr(feature = "serde", serde(rename = "POA"))]
712    Poa,
713
714    /// [NewYorkCoin](http://nycoin.net), symbol "NYC"
715    #[cfg_attr(feature = "serde", serde(rename = "NYC"))]
716    NewYorkCoin,
717
718    /// [MarteXcoin](http://martexcoin.org), symbol "MXT"
719    #[cfg_attr(feature = "serde", serde(rename = "MXT"))]
720    MarteXcoin,
721
722    /// [Wincoin](https://wincoin.co), symbol "WC"
723    #[cfg_attr(feature = "serde", serde(rename = "WC"))]
724    Wincoin,
725
726    /// [Minexcoin](https://minexcoin.com), symbol "MNX"
727    #[cfg_attr(feature = "serde", serde(rename = "MNX"))]
728    Minexcoin,
729
730    /// [Bitcoin Private](https://btcprivate.org), symbol "BTCP"
731    #[cfg_attr(feature = "serde", serde(rename = "BTCP"))]
732    BitcoinPrivate,
733
734    /// [Musicoin](https://www.musicoin.org), symbol "MUSIC"
735    #[cfg_attr(feature = "serde", serde(rename = "MUSIC"))]
736    Musicoin,
737
738    /// [World Bitcoin](http://www.wbtcteam.org/), symbol "WBTC"
739    #[cfg_attr(feature = "serde", serde(rename = "WBTC"))]
740    WorldBitcoin,
741
742    /// [Omni](http://www.omnilayer.org), symbol "OMNI"
743    #[cfg_attr(feature = "serde", serde(rename = "OMNI"))]
744    Omni,
745
746    /// [BoxyCoin](http://www.boxycoin.org/), symbol "BOXY"
747    #[cfg_attr(feature = "serde", serde(rename = "BOXY"))]
748    BoxyCoin,
749
750    /// [Bitcoin Green](https://savebitcoin.io), symbol "BITG"
751    #[cfg_attr(feature = "serde", serde(rename = "BITG"))]
752    BitcoinGreen,
753
754    /// [AskCoin](https://askcoin.org), symbol "ASK"
755    #[cfg_attr(feature = "serde", serde(rename = "ASK"))]
756    AskCoin,
757
758    /// [Smartcash](https://smartcash.cc), symbol "SMART"
759    #[cfg_attr(feature = "serde", serde(rename = "SMART"))]
760    Smartcash,
761
762    /// [XUEZ](https://xuezcoin.com), symbol "XUEZ"
763    #[cfg_attr(feature = "serde", serde(rename = "XUEZ"))]
764    XUEZ,
765
766    /// [Varda](https://varda.io), symbol "VAR"
767    #[cfg_attr(feature = "serde", serde(rename = "VAR"))]
768    Varda,
769
770    /// [Bitcoin Nano](https://www.btcnano.org), symbol "NANO"
771    #[cfg_attr(feature = "serde", serde(rename = "NANO"))]
772    BitcoinNano,
773
774    /// [Blocknet](https://blocknet.co/), symbol "BLOCK"
775    #[cfg_attr(feature = "serde", serde(rename = "BLOCK"))]
776    Blocknet,
777
778    /// [MemCoin](https://memcoin.org), symbol "MEM"
779    #[cfg_attr(feature = "serde", serde(rename = "MEM"))]
780    MemCoin,
781
782    /// [Phore](https://phore.io), symbol "PHR"
783    #[cfg_attr(feature = "serde", serde(rename = "PHR"))]
784    Phore,
785
786    /// [Koto](https://koto.cash/), symbol "KOTO"
787    #[cfg_attr(feature = "serde", serde(rename = "KOTO"))]
788    Koto,
789
790    /// [Radiant](https://radiant.cash/), symbol "XRD"
791    #[cfg_attr(feature = "serde", serde(rename = "XRD"))]
792    Radiant,
793
794    /// [Bitcoin Smart](http://bcs.info), symbol "BCS"
795    #[cfg_attr(feature = "serde", serde(rename = "BCS"))]
796    BitcoinSmart,
797
798    /// [Achain](https://www.achain.com/), symbol "ACT"
799    #[cfg_attr(feature = "serde", serde(rename = "ACT"))]
800    Achain,
801
802    /// [Bitcoin World](http://btw.one), symbol "BTW"
803    #[cfg_attr(feature = "serde", serde(rename = "BTW"))]
804    BitcoinWorld,
805
806    /// [NEO](https://neo.org/), symbol "NEO"
807    #[cfg_attr(feature = "serde", serde(rename = "NEO"))]
808    NEO,
809
810    /// [Bitcoin Diamond](http://btcd.io/), symbol "BCD"
811    #[cfg_attr(feature = "serde", serde(rename = "BCD"))]
812    BitcoinDiamond,
813
814    /// [Bitcoin New](http://bitcoinnew.org/), symbol "BTN"
815    #[cfg_attr(feature = "serde", serde(rename = "BTN"))]
816    BitcoinNew,
817
818    /// [Big Bitcoin](http://bigbitcoins.org/), symbol "BBC"
819    #[cfg_attr(feature = "serde", serde(rename = "BBC"))]
820    BigBitcoin,
821
822    /// [Bitcoin Candy](http://www.bitcoincandy.one), symbol "CDY"
823    #[cfg_attr(feature = "serde", serde(rename = "CDY"))]
824    BitcoinCandy,
825
826    /// [Defcoin](http://defcoin-ng.org), symbol "DFC"
827    #[cfg_attr(feature = "serde", serde(rename = "DFC"))]
828    Defcoin,
829
830    /// [Cardano](https://www.cardanohub.org/en/home/), symbol "ADA"
831    #[cfg_attr(feature = "serde", serde(rename = "ADA"))]
832    Cardano,
833
834    /// [HOdlcoin](https://hodlcoin.com/), symbol "HODL"
835    #[cfg_attr(feature = "serde", serde(rename = "HODL"))]
836    HOdlcoin,
837
838    /// [Axe](https://github.com/AXErunners/axe), symbol "AXE"
839    #[cfg_attr(feature = "serde", serde(rename = "AXE"))]
840    Axe,
841
842    /// [Bitcoin Pizza](http://p.top/), symbol "BPA"
843    #[cfg_attr(feature = "serde", serde(rename = "BPA"))]
844    BitcoinPizza,
845
846    /// [BitcoinQuark](https://www.bitcoinquark.org), symbol "BTQ"
847    #[cfg_attr(feature = "serde", serde(rename = "BTQ"))]
848    BitcoinQuark,
849
850    /// [Super Bitcoin](https://www.superbtc.org), symbol "SBTC"
851    #[cfg_attr(feature = "serde", serde(rename = "SBTC"))]
852    SuperBitcoin,
853
854    /// [Bitcoin Pay](http://www.btceasypay.com), symbol "BTP"
855    #[cfg_attr(feature = "serde", serde(rename = "BTP"))]
856    BitcoinPay,
857
858    /// [Bitcoin Faith](http://bitcoinfaith.org), symbol "BTF"
859    #[cfg_attr(feature = "serde", serde(rename = "BTF"))]
860    BitcoinFaith,
861
862    /// [Bitvote](www.bitvote.one), symbol "BTV"
863    #[cfg_attr(feature = "serde", serde(rename = "BTV"))]
864    Bitvote,
865
866    /// [Wanchain](https://wanchain.org/), symbol "WAN"
867    #[cfg_attr(feature = "serde", serde(rename = "WAN"))]
868    Wanchain,
869
870    /// [Waves](https://wavesplatform.com/), symbol "WAVES"
871    #[cfg_attr(feature = "serde", serde(rename = "WAVES"))]
872    Waves,
873
874    #[doc(hidden)] __Nonexhaustive,
875}
876
877impl Coin {
878    /// Converts a coin symbol (e.g. `"BTC"`) into its appropriate enum value.
879    /// Supports both fully lower-case and fully upper-case variants, but no
880    /// mixed-case symbols.
881    ///
882    /// ```
883    /// # extern crate wallet_gen;
884    /// # use wallet_gen::coin::Coin;
885    /// # fn main() {
886    /// assert_eq!(Coin::from_symbol("LTC"), Some(Coin::Litecoin));
887    /// assert_eq!(Coin::from_symbol("ltc"), Some(Coin::Litecoin));
888    /// assert_eq!(Coin::from_symbol("Ltc"), None);
889    /// assert_eq!(Coin::from_symbol("???"), None);
890    /// # }
891    /// ```
892    pub fn from_symbol(symbol: &str) -> Option<Self> {
893        match symbol {
894            "btc" | "BTC" => Some(Bitcoin),
895            "test" | "TEST" => Some(Testnet),
896            "ltc" | "LTC" => Some(Litecoin),
897            "doge" | "DOGE" => Some(Dogecoin),
898            "rdd" | "RDD" => Some(Reddcoin),
899            "dsh" | "DSH" => Some(Dash),
900            "ppc" | "PPC" => Some(Peercoin),
901            "nmc" | "NMC" => Some(Namecoin),
902            "ftc" | "FTC" => Some(Feathercoin),
903            "xcp" | "XCP" => Some(Counterparty),
904            "blk" | "BLK" => Some(Blackcoin),
905            "nsr" | "NSR" => Some(NuShares),
906            "nbt" | "NBT" => Some(NuBits),
907            "mzc" | "MZC" => Some(Mazacoin),
908            "via" | "VIA" => Some(Viacoin),
909            "xch" | "XCH" => Some(ClearingHouse),
910            "rby" | "RBY" => Some(Rubycoin),
911            "grs" | "GRS" => Some(Groestlcoin),
912            "dgc" | "DGC" => Some(Digitalcoin),
913            "ccn" | "CCN" => Some(Cannacoin),
914            "dgb" | "DGB" => Some(DigiByte),
915            "mona" | "MONA" => Some(Monacoin),
916            "clam" | "CLAM" => Some(Clams),
917            "xpm" | "XPM" => Some(Primecoin),
918            "neos" | "NEOS" => Some(Neoscoin),
919            "jbs" | "JBS" => Some(Jumbucks),
920            "zrc" | "ZRC" => Some(ZiftCoin),
921            "vtc" | "VTC" => Some(Vertcoin),
922            "nxt" | "NXT" => Some(NXT),
923            "burst" | "BURST" => Some(Burst),
924            "mue" | "MUE" => Some(MonetaryUnit),
925            "zoom" | "ZOOM" => Some(Zoom),
926            "vpn" | "VPN" => Some(Vpncoin),
927            "cdn" | "CDN" => Some(CanadaeCoin),
928            "sdc" | "SDC" => Some(ShadowCash),
929            "pkb" | "PKB" => Some(ParkByte),
930            "pnd" | "PND" => Some(Pandacoin),
931            "start" | "START" => Some(StartCoin),
932            "moin" | "MOIN" => Some(MOIN),
933            "exp" | "EXP" => Some(Expanse),
934            "dcr" | "DCR" => Some(Decred),
935            "xem" | "XEM" => Some(NEM),
936            "part" | "PART" => Some(Particl),
937            "arg" | "ARG" => Some(Argentum),
938            "shr" | "SHR" => Some(Shreeji),
939            "gcr" | "GCR" => Some(GcrCoin),
940            "nvc" | "NVC" => Some(Novacoin),
941            "ac" | "AC" => Some(Asiacoin),
942            "btcd" | "BTCD" => Some(Bitcoindark),
943            "dope" | "DOPE" => Some(Dopecoin),
944            "tpc" | "TPC" => Some(Templecoin),
945            "aib" | "AIB" => Some(AIB),
946            "edrc" | "EDRC" => Some(EDRCoin),
947            "sys" | "SYS" => Some(Syscoin),
948            "slr" | "SLR" => Some(Solarcoin),
949            "smly" | "SMLY" => Some(Smileycoin),
950            "eth" | "ETH" => Some(Ethereum),
951            "etc" | "ETC" => Some(EthereumClassic),
952            "psb" | "PSB" => Some(Pesobit),
953            "ldcn" | "LDCN" => Some(Landcoin),
954            "xbc" | "XBC" => Some(Bitcoinplus),
955            "iop" | "IOP" => Some(InternetofPeople),
956            "nxs" | "NXS" => Some(Nexus),
957            "insn" | "INSN" => Some(InsaneCoin),
958            "ok" | "OK" => Some(OkCash),
959            "brit" | "BRIT" => Some(BritCoin),
960            "cmp" | "CMP" => Some(Compcoin),
961            "crw" | "CRW" => Some(Crown),
962            "bela" | "BELA" => Some(BelaCoin),
963            "vash" | "VASH" => Some(VirtualCash),
964            "fjc" | "FJC" => Some(FujiCoin),
965            "mix" | "MIX" => Some(MIX),
966            "xvg" | "XVG" => Some(Verge),
967            "efl" | "EFL" => Some(ElectronicGulden),
968            "club" | "CLUB" => Some(ClubCoin),
969            "richx" | "RICHX" => Some(RichCoin),
970            "pot" | "POT" => Some(Potcoin),
971            "qrk" | "QRK" => Some(Quarkcoin),
972            "trc" | "TRC" => Some(Terracoin),
973            "grc" | "GRC" => Some(Gridcoin),
974            "aur" | "AUR" => Some(Auroracoin),
975            "ixc" | "IXC" => Some(IXCoin),
976            "nlg" | "NLG" => Some(Gulden),
977            "bitb" | "BITB" => Some(BitBean),
978            "bta" | "BTA" => Some(Bata),
979            "xmy" | "XMY" => Some(Myriadcoin),
980            "bsd" | "BSD" => Some(BitSend),
981            "uno" | "UNO" => Some(Unobtanium),
982            "mtr" | "MTR" => Some(MasterTrader),
983            "gb" | "GB" => Some(GoldBlocks),
984            "shm" | "SHM" => Some(Saham),
985            "crx" | "CRX" => Some(Chronos),
986            "biq" | "BIQ" => Some(Ubiquoin),
987            "evo" | "EVO" => Some(Evotion),
988            "sto" | "STO" => Some(SaveTheOcean),
989            "bigup" | "BIGUP" => Some(BigUp),
990            "gmc" | "GMC" => Some(GameCredits),
991            "dlc" | "DLC" => Some(Dollarcoins),
992            "zyd" | "ZYD" => Some(Zayedcoin),
993            "dbic" | "DBIC" => Some(Dubaicoin),
994            "strat" | "STRAT" => Some(Stratis),
995            "sh" | "SH" => Some(Shilling),
996            "mars" | "MARS" => Some(MarsCoin),
997            "ubq" | "UBQ" => Some(Ubiq),
998            "ptc" | "PTC" => Some(Pesetacoin),
999            "nrc" | "NRC" => Some(Neurocoin),
1000            "ark" | "ARK" => Some(ARK),
1001            "usc" | "USC" => Some(UltimateSecureCashMain),
1002            "hmp" | "HMP" => Some(Hempcoin),
1003            "linx" | "LINX" => Some(Linx),
1004            "ecn" | "ECN" => Some(Ecoin),
1005            "dnr" | "DNR" => Some(Denarius),
1006            "pink" | "PINK" => Some(Pinkcoin),
1007            "piggy" | "PIGGY" => Some(PiggyCoin),
1008            "pivx" | "PIVX" => Some(Pivx),
1009            "flash" | "FLASH" => Some(Flashcoin),
1010            "zen" | "ZEN" => Some(Zencash),
1011            "put" | "PUT" => Some(Putincoin),
1012            "zny" | "ZNY" => Some(BitZeny),
1013            "unify" | "UNIFY" => Some(Unify),
1014            "xst" | "XST" => Some(StealthCoin),
1015            "brk" | "BRK" => Some(BreakoutCoin),
1016            "vc" | "VC" => Some(Vcash),
1017            "xmr" | "XMR" => Some(Monero),
1018            "aeon" | "AEMON" => Some(Aeon),
1019            "vox" | "VOX" => Some(Voxels),
1020            "nav" | "NAV" => Some(NavCoin),
1021            "fct" | "FCT" => Some(FactomFactoids),
1022            "ec" | "EC" => Some(FactomEntryCredits),
1023            "zec" | "ZEC" => Some(Zcash),
1024            "lsk" | "LSK" => Some(Lisk),
1025            "steem" | "STEEM" => Some(Steem),
1026            "xzc" | "XZC" => Some(ZCoin),
1027            "rsk" | "RSK" => Some(Rootstock),
1028            "rpt" | "RPT" => Some(RealPointCoin),
1029            "lbc" | "LBC" => Some(LBRYCredits),
1030            "kmd" | "KMD" => Some(Komodo),
1031            "bsq" | "BSQ" => Some(BisqToken),
1032            "ric" | "RIC" => Some(Riecoin),
1033            "xrp" | "XRP" => Some(Ripple),
1034            "bch" | "BCH" => Some(BitcoinCash),
1035            "nebl" | "NEBL" => Some(Neblio),
1036            "zcl" | "ZCL" => Some(ZClassic),
1037            "xlm" | "XLM" => Some(StellarLumens),
1038            "whl" | "WHL" => Some(WhaleCoin),
1039            "erc" | "ERC" => Some(EuropeCoin),
1040            "dmd" | "DMD" => Some(Diamond),
1041            "btm" | "BTM" => Some(Bytom),
1042            "bio" | "BIO" => Some(Biocoin),
1043            "xwc" | "XWC" => Some(Whitecoin),
1044            "btg" | "BTG" => Some(BitcoinGold),
1045            "ssn" | "SSN" => Some(SuperSkynet),
1046            "toa" | "TOA" => Some(TOACoin),
1047            "btx" | "BTX" => Some(Bitcore),
1048            "acc" | "ACC" => Some(Adcoin),
1049            "bco" | "BCO" => Some(Bridgecoin),
1050            "ella" | "ELLA" => Some(Ellaism),
1051            "pirl" | "PIRL" => Some(Pirl),
1052            "xrb" | "XRB" => Some(RaiBlocks),
1053            "vivo" | "VIVO" => Some(Vivo),
1054            "frst" | "FRST" => Some(Firstcoin),
1055            "hnc" | "HNC" => Some(Helleniccoin),
1056            "buzz" | "BUZZ" => Some(BUZZ),
1057            "mbrs" | "MBRS" => Some(Ember),
1058            "hsr" | "HSR" => Some(Hcash),
1059            "html" | "HTML" => Some(HTMLCOIN),
1060            "odn" | "ODN" => Some(Obsidian),
1061            "onx" | "ONX" => Some(OnixCoin),
1062            "rvn" | "RVN" => Some(Ravencoin),
1063            "gbx" | "GBX" => Some(GoByte),
1064            "btcz" | "BTCZ" => Some(BitcoinZ),
1065            "poa" | "POA" => Some(Poa),
1066            "nyc" | "NYC" => Some(NewYorkCoin),
1067            "mxt" | "MXT" => Some(MarteXcoin),
1068            "wc" | "WC" => Some(Wincoin),
1069            "mnx" | "MNX" => Some(Minexcoin),
1070            "btcp" | "BTCP" => Some(BitcoinPrivate),
1071            "music" | "MUSIC" => Some(Musicoin),
1072            "wbtc" | "WBTC" => Some(WorldBitcoin),
1073            "omni" | "OMNI" => Some(Omni),
1074            "boxy" | "BOXY" => Some(BoxyCoin),
1075            "bitg" | "BITG" => Some(BitcoinGreen),
1076            "ask" | "ASK" => Some(AskCoin),
1077            "smart" | "SMART" => Some(Smartcash),
1078            "xuez" | "XUEZ" => Some(XUEZ),
1079            "var" | "VAR" => Some(Varda),
1080            "nano" | "NANO" => Some(BitcoinNano),
1081            "block" | "BLOCK" => Some(Blocknet),
1082            "mem" | "MEM" => Some(MemCoin),
1083            "phr" | "PHR" => Some(Phore),
1084            "koto" | "KOTO" => Some(Koto),
1085            "xrd" | "XRD" => Some(Radiant),
1086            "bcs" | "BCS" => Some(BitcoinSmart),
1087            "act" | "ACT" => Some(Achain),
1088            "btw" | "BTW" => Some(BitcoinWorld),
1089            "neo" | "NEO" => Some(NEO),
1090            "bcd" | "BCD" => Some(BitcoinDiamond),
1091            "btn" | "BTN" => Some(BitcoinNew),
1092            "bbc" | "BBC" => Some(BigBitcoin),
1093            "cdy" | "CDY" => Some(BitcoinCandy),
1094            "dfc" | "DFC" => Some(Defcoin),
1095            "ada" | "ADA" => Some(Cardano),
1096            "hodl" | "HODL" => Some(HOdlcoin),
1097            "axe" | "AXE" => Some(Axe),
1098            "bpa" | "BPA" => Some(BitcoinPizza),
1099            "btq" | "BTQ" => Some(BitcoinQuark),
1100            "sbtc" | "SBTC" => Some(SuperBitcoin),
1101            "btp" | "BTP" => Some(BitcoinPay),
1102            "btf" | "BTF" => Some(BitcoinFaith),
1103            "btv" | "BTV" => Some(Bitvote),
1104            "wan" | "WAN" => Some(Wanchain),
1105            "waves" | "WAVES" => Some(Waves),
1106            _ => None,
1107        }
1108    }
1109
1110    /// Gets the uppercase coin symbol for an enum value.
1111    /// This is the opposite of the `from_symbol()` constructor method.
1112    ///
1113    /// ```
1114    /// # extern crate wallet_gen;
1115    /// # use wallet_gen::coin::Coin;
1116    /// # fn main() {
1117    /// let coin = Coin::Ethereum;
1118    /// assert_eq!(coin.symbol(), "ETH");
1119    /// assert_eq!(Some(coin), Coin::from_symbol(coin.symbol()));
1120    /// # }
1121    /// ```
1122    pub fn symbol(self) -> &'static str {
1123        match self {
1124            Coin::Bitcoin => "BTC",
1125            Coin::Testnet => "TEST",
1126            Coin::Litecoin => "LTC",
1127            Coin::Dogecoin => "DOGE",
1128            Coin::Reddcoin => "RDD",
1129            Coin::Dash => "DSH",
1130            Coin::Peercoin => "PPC",
1131            Coin::Namecoin => "NMC",
1132            Coin::Feathercoin => "FTC",
1133            Coin::Counterparty => "XCP",
1134            Coin::Blackcoin => "BLK",
1135            Coin::NuShares => "NSR",
1136            Coin::NuBits => "NBT",
1137            Coin::Mazacoin => "MZC",
1138            Coin::Viacoin => "VIA",
1139            Coin::ClearingHouse => "XCH",
1140            Coin::Rubycoin => "RBY",
1141            Coin::Groestlcoin => "GRS",
1142            Coin::Digitalcoin => "DGC",
1143            Coin::Cannacoin => "CCN",
1144            Coin::DigiByte => "DGB",
1145            Coin::Monacoin => "MONA",
1146            Coin::Clams => "CLAM",
1147            Coin::Primecoin => "XPM",
1148            Coin::Neoscoin => "NEOS",
1149            Coin::Jumbucks => "JBS",
1150            Coin::ZiftCoin => "ZRC",
1151            Coin::Vertcoin => "VTC",
1152            Coin::NXT => "NXT",
1153            Coin::Burst => "BURST",
1154            Coin::MonetaryUnit => "MUE",
1155            Coin::Zoom => "ZOOM",
1156            Coin::Vpncoin => "VPN",
1157            Coin::CanadaeCoin => "CDN",
1158            Coin::ShadowCash => "SDC",
1159            Coin::ParkByte => "PKB",
1160            Coin::Pandacoin => "PND",
1161            Coin::StartCoin => "START",
1162            Coin::MOIN => "MOIN",
1163            Coin::Expanse => "EXP",
1164            Coin::Decred => "DCR",
1165            Coin::NEM => "XEM",
1166            Coin::Particl => "PART",
1167            Coin::Argentum => "ARG",
1168            Coin::Shreeji => "SHR",
1169            Coin::GcrCoin => "GCR",
1170            Coin::Novacoin => "NVC",
1171            Coin::Asiacoin => "AC",
1172            Coin::Bitcoindark => "BTCD",
1173            Coin::Dopecoin => "DOPE",
1174            Coin::Templecoin => "TPC",
1175            Coin::AIB => "AIB",
1176            Coin::EDRCoin => "EDRC",
1177            Coin::Syscoin => "SYS",
1178            Coin::Solarcoin => "SLR",
1179            Coin::Smileycoin => "SMLY",
1180            Coin::Ethereum => "ETH",
1181            Coin::EthereumClassic => "ETC",
1182            Coin::Pesobit => "PSB",
1183            Coin::Landcoin => "LDCN",
1184            Coin::Bitcoinplus => "XBC",
1185            Coin::InternetofPeople => "IOP",
1186            Coin::Nexus => "NXS",
1187            Coin::InsaneCoin => "INSN",
1188            Coin::OkCash => "OK",
1189            Coin::BritCoin => "BRIT",
1190            Coin::Compcoin => "CMP",
1191            Coin::Crown => "CRW",
1192            Coin::BelaCoin => "BELA",
1193            Coin::VirtualCash => "VASH",
1194            Coin::FujiCoin => "FJC",
1195            Coin::MIX => "MIX",
1196            Coin::Verge => "XVG",
1197            Coin::ElectronicGulden => "EFL",
1198            Coin::ClubCoin => "CLUB",
1199            Coin::RichCoin => "RICHX",
1200            Coin::Potcoin => "POT",
1201            Coin::Quarkcoin => "QRK",
1202            Coin::Terracoin => "TRC",
1203            Coin::Gridcoin => "GRC",
1204            Coin::Auroracoin => "AUR",
1205            Coin::IXCoin => "IXC",
1206            Coin::Gulden => "NLG",
1207            Coin::BitBean => "BITB",
1208            Coin::Bata => "BTA",
1209            Coin::Myriadcoin => "XMY",
1210            Coin::BitSend => "BSD",
1211            Coin::Unobtanium => "UNO",
1212            Coin::MasterTrader => "MTR",
1213            Coin::GoldBlocks => "GB",
1214            Coin::Saham => "SHM",
1215            Coin::Chronos => "CRX",
1216            Coin::Ubiquoin => "BIQ",
1217            Coin::Evotion => "EVO",
1218            Coin::SaveTheOcean => "STO",
1219            Coin::BigUp => "BIGUP",
1220            Coin::GameCredits => "GMC",
1221            Coin::Dollarcoins => "DLC",
1222            Coin::Zayedcoin => "ZYD",
1223            Coin::Dubaicoin => "DBIC",
1224            Coin::Stratis => "STRAT",
1225            Coin::Shilling => "SH",
1226            Coin::MarsCoin => "MARS",
1227            Coin::Ubiq => "UBQ",
1228            Coin::Pesetacoin => "PTC",
1229            Coin::Neurocoin => "NRC",
1230            Coin::ARK => "ARK",
1231            Coin::UltimateSecureCashMain => "USC",
1232            Coin::Hempcoin => "HMP",
1233            Coin::Linx => "LINX",
1234            Coin::Ecoin => "ECN",
1235            Coin::Denarius => "DNR",
1236            Coin::Pinkcoin => "PINK",
1237            Coin::PiggyCoin => "PIGGY",
1238            Coin::Pivx => "PIVX",
1239            Coin::Flashcoin => "FLASH",
1240            Coin::Zencash => "ZEN",
1241            Coin::Putincoin => "PUT",
1242            Coin::BitZeny => "ZNY",
1243            Coin::Unify => "UNIFY",
1244            Coin::StealthCoin => "XST",
1245            Coin::BreakoutCoin => "BRK",
1246            Coin::Vcash => "VC",
1247            Coin::Monero => "XMR",
1248            Coin::Aeon => "AEON",
1249            Coin::Voxels => "VOX",
1250            Coin::NavCoin => "NAV",
1251            Coin::FactomFactoids => "FCT",
1252            Coin::FactomEntryCredits => "EC",
1253            Coin::Zcash => "ZEC",
1254            Coin::Lisk => "LSK",
1255            Coin::Steem => "STEEM",
1256            Coin::ZCoin => "XZC",
1257            Coin::Rootstock => "RSK",
1258            Coin::RealPointCoin => "RPT",
1259            Coin::LBRYCredits => "LBC",
1260            Coin::Komodo => "KMD",
1261            Coin::BisqToken => "BSQ",
1262            Coin::Riecoin => "RIC",
1263            Coin::Ripple => "XRP",
1264            Coin::BitcoinCash => "BCH",
1265            Coin::Neblio => "NEBL",
1266            Coin::ZClassic => "ZCL",
1267            Coin::StellarLumens => "XLM",
1268            Coin::WhaleCoin => "WHL",
1269            Coin::EuropeCoin => "ERC",
1270            Coin::Diamond => "DMD",
1271            Coin::Bytom => "BTM",
1272            Coin::Biocoin => "BIO",
1273            Coin::Whitecoin => "XWC",
1274            Coin::BitcoinGold => "BTG",
1275            Coin::SuperSkynet => "SSN",
1276            Coin::TOACoin => "TOA",
1277            Coin::Bitcore => "BTX",
1278            Coin::Adcoin => "ACC",
1279            Coin::Bridgecoin => "BCO",
1280            Coin::Ellaism => "ELLA",
1281            Coin::Pirl => "PIRL",
1282            Coin::RaiBlocks => "XRB",
1283            Coin::Vivo => "VIVO",
1284            Coin::Firstcoin => "FRST",
1285            Coin::Helleniccoin => "HNC",
1286            Coin::BUZZ => "BUZZ",
1287            Coin::Ember => "MBRS",
1288            Coin::Hcash => "HSR",
1289            Coin::HTMLCOIN => "HTML",
1290            Coin::Obsidian => "ODN",
1291            Coin::OnixCoin => "ONX",
1292            Coin::Ravencoin => "RVN",
1293            Coin::GoByte => "GBX",
1294            Coin::BitcoinZ => "BTCZ",
1295            Coin::Poa => "POA",
1296            Coin::NewYorkCoin => "NYC",
1297            Coin::MarteXcoin => "MXT",
1298            Coin::Wincoin => "WC",
1299            Coin::Minexcoin => "MNX",
1300            Coin::BitcoinPrivate => "BTCP",
1301            Coin::Musicoin => "MUSIC",
1302            Coin::WorldBitcoin => "WBTC",
1303            Coin::Omni => "OMNI",
1304            Coin::BoxyCoin => "BOXY",
1305            Coin::BitcoinGreen => "BITG",
1306            Coin::AskCoin => "ASK",
1307            Coin::Smartcash => "SMART",
1308            Coin::XUEZ => "XUEZ",
1309            Coin::Varda => "VAR",
1310            Coin::BitcoinNano => "NANO",
1311            Coin::Blocknet => "BLOCK",
1312            Coin::MemCoin => "MEM",
1313            Coin::Phore => "PHR",
1314            Coin::Koto => "KOTO",
1315            Coin::Radiant => "XRD",
1316            Coin::BitcoinSmart => "BCS",
1317            Coin::Achain => "ACT",
1318            Coin::BitcoinWorld => "BTW",
1319            Coin::NEO => "NEO",
1320            Coin::BitcoinDiamond => "BCD",
1321            Coin::BitcoinNew => "BTN",
1322            Coin::BigBitcoin => "BBC",
1323            Coin::BitcoinCandy => "CDY",
1324            Coin::Defcoin => "DFC",
1325            Coin::Cardano => "ADA",
1326            Coin::HOdlcoin => "HODL",
1327            Coin::Axe => "AXE",
1328            Coin::BitcoinPizza => "BPA",
1329            Coin::BitcoinQuark => "BTQ",
1330            Coin::SuperBitcoin => "SBTC",
1331            Coin::BitcoinPay => "BTP",
1332            Coin::BitcoinFaith => "BTF",
1333            Coin::Bitvote => "BTV",
1334            Coin::Wanchain => "WAN",
1335            Coin::Waves => "WAVES",
1336            Coin::__Nonexhaustive => unreachable!(),
1337        }
1338    }
1339}
1340
1341/// List of all [`Coin`]s in the enumeration, in altcoin index order.
1342///
1343/// [`Coin`]: ./enum.Coin.html
1344pub const COINS: [Coin; 212] = [
1345    Coin::Bitcoin,
1346    Coin::Testnet,
1347    Coin::Litecoin,
1348    Coin::Dogecoin,
1349    Coin::Reddcoin,
1350    Coin::Dash,
1351    Coin::Peercoin,
1352    Coin::Namecoin,
1353    Coin::Feathercoin,
1354    Coin::Counterparty,
1355    Coin::Blackcoin,
1356    Coin::NuShares,
1357    Coin::NuBits,
1358    Coin::Mazacoin,
1359    Coin::Viacoin,
1360    Coin::ClearingHouse,
1361    Coin::Rubycoin,
1362    Coin::Groestlcoin,
1363    Coin::Digitalcoin,
1364    Coin::Cannacoin,
1365    Coin::DigiByte,
1366    Coin::Monacoin,
1367    Coin::Clams,
1368    Coin::Primecoin,
1369    Coin::Neoscoin,
1370    Coin::Jumbucks,
1371    Coin::ZiftCoin,
1372    Coin::Vertcoin,
1373    Coin::NXT,
1374    Coin::Burst,
1375    Coin::MonetaryUnit,
1376    Coin::Zoom,
1377    Coin::Vpncoin,
1378    Coin::CanadaeCoin,
1379    Coin::ShadowCash,
1380    Coin::ParkByte,
1381    Coin::Pandacoin,
1382    Coin::StartCoin,
1383    Coin::MOIN,
1384    Coin::Expanse,
1385    Coin::Decred,
1386    Coin::NEM,
1387    Coin::Particl,
1388    Coin::Argentum,
1389    Coin::Shreeji,
1390    Coin::GcrCoin,
1391    Coin::Novacoin,
1392    Coin::Asiacoin,
1393    Coin::Bitcoindark,
1394    Coin::Dopecoin,
1395    Coin::Templecoin,
1396    Coin::AIB,
1397    Coin::EDRCoin,
1398    Coin::Syscoin,
1399    Coin::Solarcoin,
1400    Coin::Smileycoin,
1401    Coin::Ethereum,
1402    Coin::EthereumClassic,
1403    Coin::Pesobit,
1404    Coin::Landcoin,
1405    Coin::Bitcoinplus,
1406    Coin::InternetofPeople,
1407    Coin::Nexus,
1408    Coin::InsaneCoin,
1409    Coin::OkCash,
1410    Coin::BritCoin,
1411    Coin::Compcoin,
1412    Coin::Crown,
1413    Coin::BelaCoin,
1414    Coin::VirtualCash,
1415    Coin::FujiCoin,
1416    Coin::MIX,
1417    Coin::Verge,
1418    Coin::ElectronicGulden,
1419    Coin::ClubCoin,
1420    Coin::RichCoin,
1421    Coin::Potcoin,
1422    Coin::Quarkcoin,
1423    Coin::Terracoin,
1424    Coin::Gridcoin,
1425    Coin::Auroracoin,
1426    Coin::IXCoin,
1427    Coin::Gulden,
1428    Coin::BitBean,
1429    Coin::Bata,
1430    Coin::Myriadcoin,
1431    Coin::BitSend,
1432    Coin::Unobtanium,
1433    Coin::MasterTrader,
1434    Coin::GoldBlocks,
1435    Coin::Saham,
1436    Coin::Chronos,
1437    Coin::Ubiquoin,
1438    Coin::Evotion,
1439    Coin::SaveTheOcean,
1440    Coin::BigUp,
1441    Coin::GameCredits,
1442    Coin::Dollarcoins,
1443    Coin::Zayedcoin,
1444    Coin::Dubaicoin,
1445    Coin::Stratis,
1446    Coin::Shilling,
1447    Coin::MarsCoin,
1448    Coin::Ubiq,
1449    Coin::Pesetacoin,
1450    Coin::Neurocoin,
1451    Coin::ARK,
1452    Coin::UltimateSecureCashMain,
1453    Coin::Hempcoin,
1454    Coin::Linx,
1455    Coin::Ecoin,
1456    Coin::Denarius,
1457    Coin::Pinkcoin,
1458    Coin::PiggyCoin,
1459    Coin::Pivx,
1460    Coin::Flashcoin,
1461    Coin::Zencash,
1462    Coin::Putincoin,
1463    Coin::BitZeny,
1464    Coin::Unify,
1465    Coin::StealthCoin,
1466    Coin::BreakoutCoin,
1467    Coin::Vcash,
1468    Coin::Monero,
1469    Coin::Aeon,
1470    Coin::Voxels,
1471    Coin::NavCoin,
1472    Coin::FactomFactoids,
1473    Coin::FactomEntryCredits,
1474    Coin::Zcash,
1475    Coin::Lisk,
1476    Coin::Steem,
1477    Coin::ZCoin,
1478    Coin::Rootstock,
1479    Coin::RealPointCoin,
1480    Coin::LBRYCredits,
1481    Coin::Komodo,
1482    Coin::BisqToken,
1483    Coin::Riecoin,
1484    Coin::Ripple,
1485    Coin::BitcoinCash,
1486    Coin::Neblio,
1487    Coin::ZClassic,
1488    Coin::StellarLumens,
1489    Coin::WhaleCoin,
1490    Coin::EuropeCoin,
1491    Coin::Diamond,
1492    Coin::Bytom,
1493    Coin::Biocoin,
1494    Coin::Whitecoin,
1495    Coin::BitcoinGold,
1496    Coin::SuperSkynet,
1497    Coin::TOACoin,
1498    Coin::Bitcore,
1499    Coin::Adcoin,
1500    Coin::Bridgecoin,
1501    Coin::Ellaism,
1502    Coin::Pirl,
1503    Coin::RaiBlocks,
1504    Coin::Vivo,
1505    Coin::Firstcoin,
1506    Coin::Helleniccoin,
1507    Coin::BUZZ,
1508    Coin::Ember,
1509    Coin::Hcash,
1510    Coin::HTMLCOIN,
1511    Coin::Obsidian,
1512    Coin::OnixCoin,
1513    Coin::Ravencoin,
1514    Coin::GoByte,
1515    Coin::BitcoinZ,
1516    Coin::Poa,
1517    Coin::NewYorkCoin,
1518    Coin::MarteXcoin,
1519    Coin::Wincoin,
1520    Coin::Minexcoin,
1521    Coin::BitcoinPrivate,
1522    Coin::Musicoin,
1523    Coin::WorldBitcoin,
1524    Coin::Omni,
1525    Coin::BoxyCoin,
1526    Coin::BitcoinGreen,
1527    Coin::AskCoin,
1528    Coin::Smartcash,
1529    Coin::XUEZ,
1530    Coin::Varda,
1531    Coin::BitcoinNano,
1532    Coin::Blocknet,
1533    Coin::MemCoin,
1534    Coin::Phore,
1535    Coin::Koto,
1536    Coin::Radiant,
1537    Coin::BitcoinSmart,
1538    Coin::Achain,
1539    Coin::BitcoinWorld,
1540    Coin::NEO,
1541    Coin::BitcoinDiamond,
1542    Coin::BitcoinNew,
1543    Coin::BigBitcoin,
1544    Coin::BitcoinCandy,
1545    Coin::Defcoin,
1546    Coin::Cardano,
1547    Coin::HOdlcoin,
1548    Coin::Axe,
1549    Coin::BitcoinPizza,
1550    Coin::BitcoinQuark,
1551    Coin::SuperBitcoin,
1552    Coin::BitcoinPay,
1553    Coin::BitcoinFaith,
1554    Coin::Bitvote,
1555    Coin::Wanchain,
1556    Coin::Waves,
1557];