Commit 6667c2f9 authored by Thibaut Sardan's avatar Thibaut Sardan Committed by Amaury Martiny
Browse files

fix: get icons from a specific commit instead of master (#545)

* fix: get icons from a specific commit instead of master

* chore: use latest commit
parent 1562f13e
Pipeline #50701 passed with stages
in 17 minutes and 34 seconds
...@@ -46,7 +46,7 @@ describe('trust url pattern', () => { ...@@ -46,7 +46,7 @@ describe('trust url pattern', () => {
test('should trust token icons from Github atomiclabs', () => { test('should trust token icons from Github atomiclabs', () => {
url = url =
'https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/tree/master/32/black/arg.png'; 'https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/9867bdb19da14e63ffbe63805298fa60bf255cdd/32/black/arg.png';
expect(isTrustedUrlPattern(url)).toBe(true); expect(isTrustedUrlPattern(url)).toBe(true);
}); });
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"symbol": "MKR", "symbol": "MKR",
"decimals": 18, "decimals": 18,
"name": "RadarRelay test MakerDAO", "name": "RadarRelay test MakerDAO",
"logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/master/32%402x/color/mkr%402x.png" "logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/9867bdb19da14e63ffbe63805298fa60bf255cdd/32%402x/color/mkr%402x.png"
}, },
{ {
"address": "0x4A6e6C3868A279e1D9047B42C3fB356FF4680003", "address": "0x4A6e6C3868A279e1D9047B42C3fB356FF4680003",
...@@ -17,21 +17,21 @@ ...@@ -17,21 +17,21 @@
"symbol": "DAI", "symbol": "DAI",
"decimals": 18, "decimals": 18,
"name": "RadarRelay test Dai Stablecoin v1.0", "name": "RadarRelay test Dai Stablecoin v1.0",
"logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/master/32%402x/color/dai%402x.png" "logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/9867bdb19da14e63ffbe63805298fa60bf255cdd/32%402x/color/dai%402x.png"
}, },
{ {
"address": "0xeF7FfF64389B814A946f3E92105513705CA6B990", "address": "0xeF7FfF64389B814A946f3E92105513705CA6B990",
"symbol": "GNT", "symbol": "GNT",
"decimals": 18, "decimals": 18,
"name": "RadarRelay test Golem Network Token", "name": "RadarRelay test Golem Network Token",
"logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/master/32%402x/color/gnt%402x.png" "logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/9867bdb19da14e63ffbe63805298fa60bf255cdd/32%402x/color/gnt%402x.png"
}, },
{ {
"address": "0xB18845c260F680d5B9D84649638813E342E4F8C9", "address": "0xB18845c260F680d5B9D84649638813E342E4F8C9",
"symbol": "REP", "symbol": "REP",
"decimals": 18, "decimals": 18,
"name": "RadarRelay test Augur Reputation Token", "name": "RadarRelay test Augur Reputation Token",
"logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/master/32%402x/color/rep%402x.png" "logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/9867bdb19da14e63ffbe63805298fa60bf255cdd/32%402x/color/rep%402x.png"
}, },
{ {
"address": "0x8667559254241ddeD4d11392f868d72092765367", "address": "0x8667559254241ddeD4d11392f868d72092765367",
...@@ -44,21 +44,21 @@ ...@@ -44,21 +44,21 @@
"symbol": "RLC", "symbol": "RLC",
"decimals": 9, "decimals": 9,
"name": "iExec RLC", "name": "iExec RLC",
"logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/master/32%402x/color/rlc%402x.png" "logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/9867bdb19da14e63ffbe63805298fa60bf255cdd/32%402x/color/rlc%402x.png"
}, },
{ {
"address": "0xeeE3870657E4716670f185dF08652dd848fe8f7e", "address": "0xeeE3870657E4716670f185dF08652dd848fe8f7e",
"symbol": "DGD", "symbol": "DGD",
"decimals": 18, "decimals": 18,
"name": "RadarRelay test Digix DAO Token", "name": "RadarRelay test Digix DAO Token",
"logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/master/32%402x/color/dgd%402x.png" "logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/9867bdb19da14e63ffbe63805298fa60bf255cdd/32%402x/color/dgd%402x.png"
}, },
{ {
"address": "0x3C67f7D4decF7795225f51b54134F81137385f83", "address": "0x3C67f7D4decF7795225f51b54134F81137385f83",
"symbol": "GUP", "symbol": "GUP",
"decimals": 3, "decimals": 3,
"name": "GUP", "name": "GUP",
"logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/master/32%402x/color/gup%402x.png" "logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/9867bdb19da14e63ffbe63805298fa60bf255cdd/32%402x/color/gup%402x.png"
}, },
{ {
"address": "0x4733659a5cB7896A65c918Add6f59C5148FB5ffa", "address": "0x4733659a5cB7896A65c918Add6f59C5148FB5ffa",
...@@ -71,13 +71,13 @@ ...@@ -71,13 +71,13 @@
"symbol": "MLN", "symbol": "MLN",
"decimals": 18, "decimals": 18,
"name": "RadarRelay test Melon Tokens", "name": "RadarRelay test Melon Tokens",
"logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/master/32%402x/color/mln%402x.png" "logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/9867bdb19da14e63ffbe63805298fa60bf255cdd/32%402x/color/mln%402x.png"
}, },
{ {
"address": "0x6Ff6C0Ff1d68b964901F986d4C9FA3ac68346570", "address": "0x6Ff6C0Ff1d68b964901F986d4C9FA3ac68346570",
"symbol": "ZRX", "symbol": "ZRX",
"decimals": 18, "decimals": 18,
"name": "RadarRelay test 0x Protocol Token", "name": "RadarRelay test 0x Protocol Token",
"logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/master/32%402x/color/zrx%402x.png" "logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/9867bdb19da14e63ffbe63805298fa60bf255cdd/32%402x/color/zrx%402x.png"
} }
] ]
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"symbol": "RLC", "symbol": "RLC",
"decimals": 9, "decimals": 9,
"name": "iExec RLC", "name": "iExec RLC",
"logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/master/32%402x/color/rlc%402x.png" "logo": "https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/9867bdb19da14e63ffbe63805298fa60bf255cdd/32%402x/color/rlc%402x.png"
}, },
{ {
"address": "0x6f95a3B682F8e9aacC86D057A6DF88A0E68145A8", "address": "0x6f95a3B682F8e9aacC86D057A6DF88A0E68145A8",
......
...@@ -171,7 +171,7 @@ async function addLogo( ...@@ -171,7 +171,7 @@ async function addLogo(
token: NormalizedTokenJSON token: NormalizedTokenJSON
): Promise<NormalizedTokenJSON> { ): Promise<NormalizedTokenJSON> {
const { symbol } = token; const { symbol } = token;
const fetchUrl = `https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/master/32%402x/color/${encodeURIComponent( const fetchUrl = `https://raw.githubusercontent.com/atomiclabs/cryptocurrency-icons/9867bdb19da14e63ffbe63805298fa60bf255cdd/32%402x/color/${encodeURIComponent(
symbol.toLowerCase() symbol.toLowerCase()
)}%402x.png`; )}%402x.png`;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment