Skip to content

Commit

Permalink
Fix (Asset): Consistent CC IDs in same collection
Browse files Browse the repository at this point in the history
Signed-off-by: OjusWiZard <[email protected]>
  • Loading branch information
OjusWiZard committed Jul 22, 2024
1 parent 5236f49 commit 15c0e29
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions updates/27/updates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2288,3 +2288,27 @@ UPDATE common_asset_details SET cryptocompare = 'SXUT' WHERE identifier = 'eip15
INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0x2C82c73d5B34AA015989462b2948cd616a37641F", "Spectre.ai Utility Token", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0x2C82c73d5B34AA015989462b2948cd616a37641F", "A", 1, "0x2C82c73d5B34AA015989462b2948cd616a37641F", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0x2C82c73d5B34AA015989462b2948cd616a37641F", "SXUT", "spectre-utility-token", "SXUT", NULL, 1496275200, NULL);
UPDATE common_asset_details SET cryptocompare = 'DEDE' WHERE identifier = 'eip155:1/erc20:0x9D7b68970d2be6dc93124477b4E2e1C9A6b180aA';
INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0x9D7b68970d2be6dc93124477b4E2e1C9A6b180aA", "Dede", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0x9D7b68970d2be6dc93124477b4E2e1C9A6b180aA", "A", 1, "0x9D7b68970d2be6dc93124477b4E2e1C9A6b180aA", 9, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0x9D7b68970d2be6dc93124477b4E2e1C9A6b180aA", "Dede", "dede", "DEDE", NULL, 1688934071, NULL);
UPDATE common_asset_details SET cryptocompare="PLINK" WHERE identifier="eip155:100/erc20:0xE2e73A1c69ecF83F464EFCE6A5be353a37cA09b2";
INSERT INTO assets(identifier, name, type) VALUES("eip155:100/erc20:0xE2e73A1c69ecF83F464EFCE6A5be353a37cA09b2", "ChainLink Token on xDai", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:100/erc20:0xE2e73A1c69ecF83F464EFCE6A5be353a37cA09b2", "A", 100, "0xE2e73A1c69ecF83F464EFCE6A5be353a37cA09b2", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:100/erc20:0xE2e73A1c69ecF83F464EFCE6A5be353a37cA09b2", "LINK", "chainlink", "PLINK", NULL, 1597866280, NULL);
UPDATE common_asset_details SET cryptocompare="NIOX" WHERE identifier="eip155:137/erc20:0xad684e79CE4b6D464f2Ff7c3FD51646892e24b96";
INSERT INTO assets(identifier, name, type) VALUES("eip155:137/erc20:0xad684e79CE4b6D464f2Ff7c3FD51646892e24b96", "Autonio (PoS)", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:137/erc20:0xad684e79CE4b6D464f2Ff7c3FD51646892e24b96", "A", 137, "0xad684e79CE4b6D464f2Ff7c3FD51646892e24b96", 4, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:137/erc20:0xad684e79CE4b6D464f2Ff7c3FD51646892e24b96", "NIOX", "autonio", "NIOX", NULL, 1606221685, NULL);
UPDATE common_asset_details SET cryptocompare="DIGITAL" WHERE identifier="eip155:137/erc20:0xFeD16c746CB5BFeD009730f9E3e6A673006105c7";
INSERT INTO assets(identifier, name, type) VALUES("eip155:137/erc20:0xFeD16c746CB5BFeD009730f9E3e6A673006105c7", "Digital Reserve Currency (PoS)", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:137/erc20:0xFeD16c746CB5BFeD009730f9E3e6A673006105c7", "A", 137, "0xFeD16c746CB5BFeD009730f9E3e6A673006105c7", 0, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:137/erc20:0xFeD16c746CB5BFeD009730f9E3e6A673006105c7", "DRC", "digital-reserve-currency", "DIGITAL", NULL, 1614661944, NULL);
UPDATE common_asset_details SET cryptocompare="TUNE" WHERE identifier="eip155:42161/erc20:0xaaA62D9584Cbe8e4D68A43ec91BfF4fF1fAdB202";
INSERT INTO assets(identifier, name, type) VALUES("eip155:42161/erc20:0xaaA62D9584Cbe8e4D68A43ec91BfF4fF1fAdB202", "Antimatter.Finance Governance Token", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:42161/erc20:0xaaA62D9584Cbe8e4D68A43ec91BfF4fF1fAdB202", "A", 42161, "0xaaA62D9584Cbe8e4D68A43ec91BfF4fF1fAdB202", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:42161/erc20:0xaaA62D9584Cbe8e4D68A43ec91BfF4fF1fAdB202", "MATTER", "antimatter", "TUNE", NULL, 1633125784, NULL);
UPDATE common_asset_details SET cryptocompare="PLINK" WHERE identifier="eip155:42161/erc20:0xf97f4df75117a78c1A5a0DBb814Af92458539FB4";
INSERT INTO assets(identifier, name, type) VALUES("eip155:42161/erc20:0xf97f4df75117a78c1A5a0DBb814Af92458539FB4", "ChainLink Token", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:42161/erc20:0xf97f4df75117a78c1A5a0DBb814Af92458539FB4", "A", 42161, "0xf97f4df75117a78c1A5a0DBb814Af92458539FB4", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:42161/erc20:0xf97f4df75117a78c1A5a0DBb814Af92458539FB4", "LINK", "chainlink", "PLINK", NULL, 1623867040, NULL);
UPDATE common_asset_details SET cryptocompare="PLINK" WHERE identifier="eip155:43114/erc20:0x5947BB275c521040051D82396192181b413227A3";
INSERT INTO assets(identifier, name, type) VALUES("eip155:43114/erc20:0x5947BB275c521040051D82396192181b413227A3", "Chainlink Token", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:43114/erc20:0x5947BB275c521040051D82396192181b413227A3", "A", 43114, "0x5947BB275c521040051D82396192181b413227A3", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:43114/erc20:0x5947BB275c521040051D82396192181b413227A3", "LINK.e", "chainlink", "PLINK", NULL, 1627052367, NULL);
UPDATE common_asset_details SET cryptocompare="USDBC" WHERE identifier="eip155:43114/erc20:0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E";
INSERT INTO assets(identifier, name, type) VALUES("eip155:43114/erc20:0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", "USD Coin", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:43114/erc20:0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", "A", 43114, "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", 6, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:43114/erc20:0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", "USDC", "usd-coin", "USDBC", NULL, 1637802339, NULL);
UPDATE common_asset_details SET cryptocompare="AURAF" WHERE identifier="eip155:100/erc20:0x1509706a6c66CA549ff0cB464de88231DDBe213B";
INSERT INTO assets(identifier, name, type) VALUES("eip155:100/erc20:0x1509706a6c66CA549ff0cB464de88231DDBe213B", "Aura", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:100/erc20:0x1509706a6c66CA549ff0cB464de88231DDBe213B", "A", 100, "0x1509706a6c66CA549ff0cB464de88231DDBe213B", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:100/erc20:0x1509706a6c66CA549ff0cB464de88231DDBe213B", "AURA", "aura-finance", "AURAF", NULL, 1691101515, NULL);
UPDATE common_asset_details SET cryptocompare="STRK" WHERE identifier="eip155:1/erc20:0xCa14007Eff0dB1f8135f4C25B34De49AB0d42766";
INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0xCa14007Eff0dB1f8135f4C25B34De49AB0d42766", "StarkNet Token", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0xCa14007Eff0dB1f8135f4C25B34De49AB0d42766", "A", 1, "0xCa14007Eff0dB1f8135f4C25B34De49AB0d42766", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0xCa14007Eff0dB1f8135f4C25B34De49AB0d42766", "STRK", "starknet", "STRK", NULL, 1668610211, NULL);
UPDATE common_asset_details SET cryptocompare="AURAF" WHERE identifier="eip155:42161/erc20:0x1509706a6c66CA549ff0cB464de88231DDBe213B";
INSERT INTO assets(identifier, name, type) VALUES("eip155:42161/erc20:0x1509706a6c66CA549ff0cB464de88231DDBe213B", "Aura", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:42161/erc20:0x1509706a6c66CA549ff0cB464de88231DDBe213B", "A", 42161, "0x1509706a6c66CA549ff0cB464de88231DDBe213B", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:42161/erc20:0x1509706a6c66CA549ff0cB464de88231DDBe213B", "AURA", "aura-finance", "AURAF", NULL, 1686742265, NULL);
UPDATE common_asset_details SET cryptocompare="USDBC" WHERE identifier="eip155:534352/erc20:0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4";
INSERT INTO assets(identifier, name, type) VALUES("eip155:534352/erc20:0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4", "USD Coin", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:534352/erc20:0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4", "A", 534352, "0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4", 6, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:534352/erc20:0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4", "USDC", "usd-coin", "USDBC", NULL, 1696919085, NULL);
UPDATE common_asset_details SET cryptocompare="TRUMP" WHERE identifier="eip155:56/erc20:0x4eA98c1999575aaadfb38237Dd015c5E773F75a2";
INSERT INTO assets(identifier, name, type) VALUES("eip155:56/erc20:0x4eA98c1999575aaadfb38237Dd015c5E773F75a2", "MAGA", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:56/erc20:0x4eA98c1999575aaadfb38237Dd015c5E773F75a2", "A", 56, "0x4eA98c1999575aaadfb38237Dd015c5E773F75a2", 9, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:56/erc20:0x4eA98c1999575aaadfb38237Dd015c5E773F75a2", "TRUMP", "maga", "TRUMP", NULL, 1708974682, NULL);
2 changes: 1 addition & 1 deletion updates/info.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"latest": 27, "updates": {"1": {"changes": 249, "max_schema_version": 2, "min_schema_version": 2}, "10": {"changes": 30, "max_schema_version": 2, "min_schema_version": 2}, "11": {"changes": 71, "max_schema_version": 2, "min_schema_version": 2}, "12": {"changes": 174, "max_schema_version": 2, "min_schema_version": 2}, "13": {"changes": 311, "max_schema_version": 2, "min_schema_version": 2}, "14": {"changes": 94, "max_schema_version": 2, "min_schema_version": 2}, "15": {"changes": 116, "max_schema_version": 4, "min_schema_version": 3}, "16": {"changes": 153, "max_schema_version": 8, "min_schema_version": 4}, "17": {"changes": 137, "max_schema_version": 8, "min_schema_version": 4}, "18": {"changes": 189, "max_schema_version": 8, "min_schema_version": 4}, "19": {"changes": 183, "max_schema_version": 8, "min_schema_version": 4}, "2": {"changes": 27, "max_schema_version": 2, "min_schema_version": 2}, "20": {"changes": 105, "max_schema_version": 8, "min_schema_version": 4}, "21": {"changes": 47, "max_schema_version": 8, "min_schema_version": 6}, "22": {"changes": 145, "max_schema_version": 8, "min_schema_version": 6}, "23": {"changes": 4, "max_schema_version": 8, "min_schema_version": 6}, "24": {"changes": 534, "max_schema_version": 8, "min_schema_version": 6}, "25": {"changes": 407, "max_schema_version": 8, "min_schema_version": 6}, "26": {"changes": 349, "max_schema_version": 8, "min_schema_version": 6}, "27": {"changes": 1145, "max_schema_version": 8, "min_schema_version": 6}, "3": {"changes": 64, "max_schema_version": 2, "min_schema_version": 2}, "4": {"changes": 23, "max_schema_version": 2, "min_schema_version": 2}, "5": {"changes": 25, "max_schema_version": 2, "min_schema_version": 2}, "6": {"changes": 239, "max_schema_version": 2, "min_schema_version": 2}, "7": {"changes": 34, "max_schema_version": 2, "min_schema_version": 2}, "8": {"changes": 81, "max_schema_version": 2, "min_schema_version": 2}, "9": {"changes": 59, "max_schema_version": 2, "min_schema_version": 2}}}
{"latest": 27, "updates": {"1": {"changes": 249, "max_schema_version": 2, "min_schema_version": 2}, "10": {"changes": 30, "max_schema_version": 2, "min_schema_version": 2}, "11": {"changes": 71, "max_schema_version": 2, "min_schema_version": 2}, "12": {"changes": 174, "max_schema_version": 2, "min_schema_version": 2}, "13": {"changes": 311, "max_schema_version": 2, "min_schema_version": 2}, "14": {"changes": 94, "max_schema_version": 2, "min_schema_version": 2}, "15": {"changes": 116, "max_schema_version": 4, "min_schema_version": 3}, "16": {"changes": 153, "max_schema_version": 8, "min_schema_version": 4}, "17": {"changes": 137, "max_schema_version": 8, "min_schema_version": 4}, "18": {"changes": 189, "max_schema_version": 8, "min_schema_version": 4}, "19": {"changes": 183, "max_schema_version": 8, "min_schema_version": 4}, "2": {"changes": 27, "max_schema_version": 2, "min_schema_version": 2}, "20": {"changes": 105, "max_schema_version": 8, "min_schema_version": 4}, "21": {"changes": 47, "max_schema_version": 8, "min_schema_version": 6}, "22": {"changes": 145, "max_schema_version": 8, "min_schema_version": 6}, "23": {"changes": 4, "max_schema_version": 8, "min_schema_version": 6}, "24": {"changes": 534, "max_schema_version": 8, "min_schema_version": 6}, "25": {"changes": 407, "max_schema_version": 8, "min_schema_version": 6}, "26": {"changes": 349, "max_schema_version": 8, "min_schema_version": 6}, "27": {"changes": 1157, "max_schema_version": 8, "min_schema_version": 6}, "3": {"changes": 64, "max_schema_version": 2, "min_schema_version": 2}, "4": {"changes": 23, "max_schema_version": 2, "min_schema_version": 2}, "5": {"changes": 25, "max_schema_version": 2, "min_schema_version": 2}, "6": {"changes": 239, "max_schema_version": 2, "min_schema_version": 2}, "7": {"changes": 34, "max_schema_version": 2, "min_schema_version": 2}, "8": {"changes": 81, "max_schema_version": 2, "min_schema_version": 2}, "9": {"changes": 59, "max_schema_version": 2, "min_schema_version": 2}}}
2 changes: 1 addition & 1 deletion updates/pretty_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"min_schema_version": 6
},
"27": {
"changes": 1145,
"changes": 1157,
"max_schema_version": 8,
"min_schema_version": 6
},
Expand Down

0 comments on commit 15c0e29

Please sign in to comment.