Update cmc map (#860)

* Update map

* Update test

* Optimised images with calibre/image-actions

* Optimised images with calibre/image-actions
This commit is contained in:
Mykola 2019-12-18 14:05:09 -08:00 committed by GitHub
parent ada4e23af3
commit 1c1461bf89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
58 changed files with 146 additions and 102 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 KiB

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
dapps/pay.sablier.finance.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -380,18 +380,18 @@
"type": "coin",
"id": 819
},
{
"coin": 195,
"type": "token",
"token_id": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"id": 825
},
{
"coin": 60,
"type": "token",
"token_id": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"id": 825
},
{
"coin": 195,
"type": "token",
"token_id": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"id": 825
},
{
"coin": 84,
"type": "coin",
@ -552,6 +552,11 @@
"type": "coin",
"id": 1279
},
{
"coin": 7567736,
"type": "coin",
"id": 1281
},
{
"coin": 94,
"type": "coin",
@ -1146,17 +1151,17 @@
"token_id": "0xe3818504c1B32bF1557b16C238B2E01Fd3149C17",
"id": 1834
},
{
"coin": 714,
"type": "coin",
"id": 1839
},
{
"coin": 60,
"type": "token",
"token_id": "0xB8c77482e45F1F44dE1745F52C74426C631bDD52",
"id": 1839
},
{
"coin": 714,
"type": "coin",
"id": 1839
},
{
"coin": 60,
"type": "token",
@ -2021,12 +2026,6 @@
"token_id": "0x62a56a4A2Ef4D355D34D10fBF837e747504d38d4",
"id": 2191
},
{
"coin": 60,
"type": "token",
"token_id": "0x464BADdcE9BD32581a7d59D9Bb8350c7C7764668",
"id": 2198
},
{
"coin": 176,
"type": "coin",
@ -3655,12 +3654,6 @@
"token_id": "0x2f8472dd7ecf7cA760c8f6b45dB20Ca7cf52F8d7",
"id": 2619
},
{
"coin": 60,
"type": "token",
"token_id": "0x1E26b3D07E57F453caE30F7DDd2f945f5bF3EF33",
"id": 2622
},
{
"coin": 60,
"type": "token",
@ -4199,12 +4192,6 @@
"token_id": "0x491C9A23DB85623EEd455a8EfDd6AbA9b911C5dF",
"id": 2754
},
{
"coin": 60,
"type": "token",
"token_id": "0x02585E4A14dA274D02dF09b222D4606B10a4E940",
"id": 2755
},
{
"coin": 820,
"type": "coin",
@ -5017,12 +5004,6 @@
"token_id": "0xA849EaaE994fb86Afa73382e9Bd88c2B6b18Dc71",
"id": 2982
},
{
"coin": 60,
"type": "token",
"token_id": "0xaFBeC4D65BC7b116d85107FD05d912491029Bf46",
"id": 2985
},
{
"coin": 60,
"type": "token",
@ -6040,12 +6021,6 @@
"token_id": "0x8606a8F28e1e2FD50B9074d65C01548B1F040B32",
"id": 3317
},
{
"coin": 60,
"type": "token",
"token_id": "0x799d214d7143B766cDd4979cd0280939288ba931",
"id": 3318
},
{
"coin": 60,
"type": "token",
@ -6199,11 +6174,6 @@
"token_id": "0x92A5B04D0ED5D94D7a193d1d334D3D16996f4E13",
"id": 3360
},
{
"coin": 227,
"type": "coin",
"id": 3361
},
{
"coin": 344,
"type": "coin",
@ -7024,12 +6994,6 @@
"token_id": "0x1C289a12A8552B314D0d153d6991fd27a54Aa640",
"id": 3673
},
{
"coin": 60,
"type": "token",
"token_id": "0x791425156956E39F2ab8AB06B79DE189C18e95e5",
"id": 3678
},
{
"coin": 60,
"type": "token",
@ -7117,12 +7081,6 @@
"type": "coin",
"id": 3704
},
{
"coin": 60,
"type": "token",
"token_id": "0xffF3ada5A2555a2B59BfF4F44DFad90146CcE8CB",
"id": 3705
},
{
"coin": 60,
"type": "token",
@ -7132,14 +7090,14 @@
{
"coin": 60,
"type": "token",
"token_id": "0xb1c1Cb8C7c1992dba24e628bF7d38E71daD46aeB",
"id": 3712
"token_id": "0xd50649AAb1D39d68BC965E0F6D1cfe0010e4908b",
"id": 3707
},
{
"coin": 60,
"type": "token",
"token_id": "0x3F17Dd476faF0a4855572F0B6ed5115D9bBA22AD",
"id": 3713
"token_id": "0xb1c1Cb8C7c1992dba24e628bF7d38E71daD46aeB",
"id": 3712
},
{
"coin": 60,
@ -7301,12 +7259,6 @@
"token_id": "0x4bD70556ae3F8a6eC6C4080A0C327B24325438f3",
"id": 3748
},
{
"coin": 60,
"type": "token",
"token_id": "0xa573661b5FB2063d7AB12336ee24589F7A79fdab",
"id": 3749
},
{
"coin": 398,
"type": "coin",
@ -7443,6 +7395,12 @@
"token_id": "0x49D09cDa1Deb8a1680F1270C5ed15218fc4B18f0",
"id": 3784
},
{
"coin": 60,
"type": "token",
"token_id": "0xa957045A12D270e2eE0dcA9A3340c340e05d4670",
"id": 3785
},
{
"coin": 60,
"type": "token",
@ -8093,11 +8051,6 @@
"token_id": "0xE54B3458C47E44C37a267E7C633AFEF88287C294",
"id": 3944
},
{
"coin": 1023,
"type": "coin",
"id": 3945
},
{
"coin": 60,
"type": "token",
@ -8110,6 +8063,11 @@
"token_id": "ONE-5F9",
"id": 3945
},
{
"coin": 1023,
"type": "coin",
"id": 3945
},
{
"coin": 60,
"type": "token",
@ -8811,24 +8769,12 @@
"token_id": "RUNE-B1A",
"id": 4157
},
{
"coin": 60,
"type": "token",
"token_id": "0x2c31C747e0D1eb1f662b619461DcED4ce5ca22Ea",
"id": 4158
},
{
"coin": 60,
"type": "token",
"token_id": "0x6ff313FB38d53d7A458860b1bf7512f54a03e968",
"id": 4159
},
{
"coin": 60,
"type": "token",
"token_id": "0xCb39C3502415152b2ec90ff07ee18cc94f681a72",
"id": 4162
},
{
"coin": 60,
"type": "token",
@ -9058,12 +9004,6 @@
"token_id": "0x307d45Afbb7E84F82ef3D251A6bb0F00Edf632E4",
"id": 4242
},
{
"coin": 60,
"type": "token",
"token_id": "0x27C743954bCe1Bfaef8bcbD685527531001D88D7",
"id": 4247
},
{
"coin": 60,
"type": "token",
@ -9076,12 +9016,6 @@
"token_id": "0x6CbEDEc4F1ac9D874987D2769596544E0d9161ab",
"id": 4251
},
{
"coin": 60,
"type": "token",
"token_id": "0x1e66008a24a486456A796E0c771fdc0cDf43cAD9",
"id": 4252
},
{
"coin": 714,
"type": "token",
@ -9255,12 +9189,30 @@
"token_id": "0x5d285F735998F36631F678FF41fb56A10A4d0429",
"id": 4366
},
{
"coin": 60,
"type": "token",
"token_id": "0x00fC270C9cc13e878Ab5363D00354bebF6f05C15",
"id": 4430
},
{
"coin": 60,
"type": "token",
"token_id": "0xC77b230F31b517F1ef362e59c173C2BE6540B5E8",
"id": 4431
},
{
"coin": 60,
"type": "token",
"token_id": "0x7D29A64504629172a429e64183D6673b9dAcbFCe",
"id": 4441
},
{
"coin": 714,
"type": "token",
"token_id": "MTXLT-286",
"id": 4451
},
{
"coin": 60,
"type": "token",
@ -9447,6 +9399,12 @@
"token_id": "0x4Fabb145d64652a948d72533023f6E7A623C7C53",
"id": 4687
},
{
"coin": 60,
"type": "token",
"token_id": "0x60c87297A1fEaDC3C25993FfcadC54e99971e307",
"id": 4693
},
{
"coin": 60,
"type": "token",
@ -9640,7 +9598,7 @@
{
"coin": 60,
"type": "token",
"token_id": "0xdA58Fb36cDb37a0De8bb9cB6C78B8715dCD0D1e8",
"token_id": "0x6bC1F3A1ae56231DbB64d3E82E070857EAe86045",
"id": 4818
},
{
@ -9781,6 +9739,12 @@
"token_id": "0x8c9E4CF756b9d01D791b95bc2D0913EF2Bf03784",
"id": 4920
},
{
"coin": 60,
"type": "token",
"token_id": "0xd24DFf6117936B6ff97108CF26c1dD8865743d87",
"id": 4928
},
{
"coin": 60,
"type": "token",
@ -9863,5 +9827,64 @@
"type": "token",
"token_id": "0x3be6e7bF2cD8E1a0A95597E72ca6D3709bBeFF76",
"id": 4983
},
{
"coin": 714,
"type": "token",
"token_id": "TROY-9B8",
"id": 5007
},
{
"coin": 60,
"type": "token",
"token_id": "0x082E13494f12EBB7206FBf67E22A6E1975A1A669",
"id": 5008
},
{
"coin": 60,
"type": "token",
"token_id": "0x6b9F1F092E0B10015a4391A80cD3E6B6cefD1728",
"id": 5009
},
{
"coin": 60,
"type": "token",
"token_id": "0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39",
"id": 5015
},
{
"coin": 60,
"type": "token",
"token_id": "0xc9A954C5A302C45D87CC07efb1259Fb3DaD99ffC",
"id": 5024
},
{
"coin": 60,
"type": "token",
"token_id": "0x4575f41308EC1483f3d399aa9a2826d74Da13Deb",
"id": 5026
},
{
"coin": 60,
"type": "token",
"token_id": "0xe541b34f73a4789a033A962ad43655221B4E516e",
"id": 5033
},
{
"coin": 434,
"type": "coin",
"id": 5034
},
{
"coin": 60,
"type": "token",
"token_id": "0x83cAEECace9Ec5c322c93743B2B370ED58951F5c",
"id": 5050
},
{
"coin": 60,
"type": "token",
"token_id": "0xfc4b9e2d71a7795102Eb0C0e8b5DA992946a62De",
"id": 5054
}
]

View File

@ -216,12 +216,33 @@ describe("Test Coinmarketcap mapping", () => {
expect(cmcMap.length, `CMC map must have items`).toBeGreaterThan(0)
})
test("Items must be sorted by id in desc order", () => {
test(`Items must be sorted by "id" in ascending order`, () => {
cmcMap.forEach((el, i) => {
if (i > 0) {
const previousID = cmcMap[i - 1].id
const currentID = el.id
expect(currentID, `Item ${currentID} must be greather or equal to ${previousID} `).toBeGreaterThanOrEqual(previousID)
const prevID = cmcMap[i - 1].id
const curID = el.id
expect(curID, `Item ${curID} must be greather or equal to ${prevID}`)
.toBeGreaterThanOrEqual(prevID)
}
})
})
test(`Items must be sorted by "coin" in ascending order if have same "id"`, () => {
cmcMap.forEach((el, i) => {
if (i > 0) {
const prevEl = cmcMap[i - 1]
const prevCoin = prevEl.coin
const prevID = cmcMap[i - 1].id
const curCoin = el.coin
const curID = el.id
if (prevID == curID) {
expect(curCoin, `Item ${JSON.stringify(el)} must be greather or equal to ${JSON.stringify(prevEl)}`)
.toBeGreaterThanOrEqual(prevCoin)
}
}
})
})