Skip to content

Commit

Permalink
added support for new golem erc20 GLM
Browse files Browse the repository at this point in the history
rename old golem to Golem (GNT)
  • Loading branch information
christsim committed Dec 23, 2020
1 parent 0c4b70b commit 1c48ebd
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 14 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ npm install multicoin-address-validator
* GameCredits/game `'GameCredits'` or `'game'`
* GarliCoin/grlc `'GarliCoin'` or `'grlc'`
* Gnosis/gno `'Gnosis'` or `'gno'`
* Golem/gnt `'Golem'` or `'gnt'`
* Golem/glm `'Golem'` or `'glm'`
* Golem (GNT)/gnt `'Golem (GNT)'` or `'gnt'`
* HedgeTrade/hedg `'HedgeTrade'` or `'hedg'`
* Hush/hush `'Hush'` or `'hush'`
* HyperSpace/xsc `'HyperSpace'` or `'xsc'`
Expand Down Expand Up @@ -120,6 +121,7 @@ npm install multicoin-address-validator
* StormX/stmx `'StormX'` or `'stmx'`
* Swarm City/swt `'Swarm City'` or `'swt'`
* Synthetix Network/snx `'Synthetix Network'` or `'snx'`
* Tap/xtp `'Tap'` or `'xtp'`
* TEMCO/temco `'TEMCO'` or `'temco'`
* TenX/pay `'TenX'` or `'pay'`
* Tether/usdt `'Tether'` or `'usdt'`
Expand All @@ -136,7 +138,6 @@ npm install multicoin-address-validator
* ZClassic/zcl `'ZClassic'` or `'zcl'`
* ZenCash/zen `'ZenCash'` or `'zen'`


### Usage example

#### Node
Expand Down
12 changes: 8 additions & 4 deletions dist/wallet-address-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -11098,10 +11098,14 @@ var CURRENCIES = [{
symbol: 'gno',
validator: ETHValidator
}, {
name: 'Golem',
name: 'Golem (GNT)',
symbol: 'gnt',
validator: ETHValidator
}, {
name: 'Golem',
symbol: 'glm',
validator: ETHValidator
}, {
name: 'Matchpool',
symbol: 'gup',
validator: ETHValidator
Expand Down Expand Up @@ -11327,16 +11331,16 @@ var CURRENCIES = [{
}
};

//spit out details for readme.md
////spit out details for readme.md
// CURRENCIES
// .sort((a, b) => a.name.toUpperCase() > b.name.toUpperCase() ? 1 : -1)
// .forEach(c => console.log(`* ${c.name}/${c.symbol} \`'${c.name}'\` or \`'${c.symbol}'\` `));

//spit out keywords for package.json
////spit out keywords for package.json
// CURRENCIES
// .sort((a, b) => a.name.toUpperCase() > b.name.toUpperCase() ? 1 : -1)
// .forEach(c => console.log(`"${c.name}","${c.symbol}",`));

//


},{"./ada_validator":36,"./bch_validator":37,"./bitcoin_validator":38,"./eos_validator":50,"./ethereum_validator":51,"./lisk_validator":52,"./monero_validator":53,"./nano_validator":54,"./nem_validator":55,"./ripple_validator":56,"./siacoin_validator":57,"./stellar_validator":58,"./tezos_validator":59,"./tron_validator":60,"./usdt_validator":61}],50:[function(require,module,exports){
Expand Down
2 changes: 1 addition & 1 deletion dist/wallet-address-validator.min.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
"Gnosis",
"gno",
"Golem",
"glm",
"Golem (GNT)",
"gnt",
"HedgeTrade",
"hedg",
Expand Down Expand Up @@ -186,6 +188,8 @@
"swt",
"Synthetix Network",
"snx",
"Tap",
"xtp",
"TEMCO",
"temco",
"TenX",
Expand All @@ -210,16 +214,14 @@
"waves",
"Wings",
"wings",
"XTP",
"tap",
"ZCash",
"zec",
"ZClassic",
"zcl",
"ZenCash",
"zen"
],
"version": "0.4.11",
"version": "0.4.12",
"author": "Chris <[email protected]>",
"homepage": "https://github.com/christsim/multicoin-address-validator",
"license": "MIT",
Expand Down
12 changes: 8 additions & 4 deletions src/currencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,14 @@ var CURRENCIES = [{
symbol: 'gno',
validator: ETHValidator
}, {
name: 'Golem',
name: 'Golem (GNT)',
symbol: 'gnt',
validator: ETHValidator
}, {
name: 'Golem',
symbol: 'glm',
validator: ETHValidator
}, {
name: 'Matchpool',
symbol: 'gup',
validator: ETHValidator
Expand Down Expand Up @@ -513,14 +517,14 @@ var CURRENCIES = [{
}
};

//spit out details for readme.md
////spit out details for readme.md
// CURRENCIES
// .sort((a, b) => a.name.toUpperCase() > b.name.toUpperCase() ? 1 : -1)
// .forEach(c => console.log(`* ${c.name}/${c.symbol} \`'${c.name}'\` or \`'${c.symbol}'\` `));

//spit out keywords for package.json
////spit out keywords for package.json
// CURRENCIES
// .sort((a, b) => a.name.toUpperCase() > b.name.toUpperCase() ? 1 : -1)
// .forEach(c => console.log(`"${c.name}","${c.symbol}",`));

//

0 comments on commit 1c48ebd

Please sign in to comment.