From 73dab2aa7ba8dfea5f6934de58aa41a4ee04f676 Mon Sep 17 00:00:00 2001 From: OjusWiZard Date: Fri, 19 Jul 2024 21:23:48 +0530 Subject: [PATCH] Chore (Assets): Add some missing CC IDs Signed-off-by: OjusWiZard --- updates/27/updates.sql | 18 ++++++++++++++++++ updates/info.json | 2 +- updates/pretty_info.json | 7 ++++++- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 updates/27/updates.sql diff --git a/updates/27/updates.sql b/updates/27/updates.sql new file mode 100644 index 0000000..6f05eb1 --- /dev/null +++ b/updates/27/updates.sql @@ -0,0 +1,18 @@ +UPDATE common_asset_details SET coingecko="", cryptocompare="" WHERE identifier="eip155:1/erc20:0x053c80eA73Dc6941F518a68E2FC52Ac45BDE7c9C"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0x053c80eA73Dc6941F518a68E2FC52Ac45BDE7c9C", "FARM_USDT", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0x053c80eA73Dc6941F518a68E2FC52Ac45BDE7c9C", "A", 1, "0x053c80eA73Dc6941F518a68E2FC52Ac45BDE7c9C", 6, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0x053c80eA73Dc6941F518a68E2FC52Ac45BDE7c9C", "fUSDT", "", "", NULL, 1603116272, NULL); +UPDATE common_asset_details SET coingecko="", cryptocompare="" WHERE identifier="eip155:1/erc20:0xab7FA2B2985BCcfC13c6D86b1D5A17486ab1e04C"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0xab7FA2B2985BCcfC13c6D86b1D5A17486ab1e04C", "FARM_DAI", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0xab7FA2B2985BCcfC13c6D86b1D5A17486ab1e04C", "A", 1, "0xab7FA2B2985BCcfC13c6D86b1D5A17486ab1e04C", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0xab7FA2B2985BCcfC13c6D86b1D5A17486ab1e04C", "fDAI", "", "", NULL, 1603116059, NULL); +UPDATE common_asset_details SET cryptocompare="DAI" WHERE identifier="eip155:43114/erc20:0xd586E7F844cEa2F87f50152665BCbc2C279D8d70"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:43114/erc20:0xd586E7F844cEa2F87f50152665BCbc2C279D8d70", "Dai Stablecoin", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:43114/erc20:0xd586E7F844cEa2F87f50152665BCbc2C279D8d70", "A", 43114, "0xd586E7F844cEa2F87f50152665BCbc2C279D8d70", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:43114/erc20:0xd586E7F844cEa2F87f50152665BCbc2C279D8d70", "DAI.e", "dai", "DAI", NULL, 1627052370, NULL); +UPDATE common_asset_details SET cryptocompare="DAI" WHERE identifier="eip155:56/erc20:0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:56/erc20:0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3", "Dai Token", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:56/erc20:0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3", "A", 56, "0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:56/erc20:0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3", "DAI", "dai", "DAI", NULL, 1599646888, NULL); +UPDATE common_asset_details SET coingecko="", cryptocompare="" WHERE identifier="eip155:56/erc20:0x55d398326f99059fF775485246999027B3197955"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:56/erc20:0x55d398326f99059fF775485246999027B3197955", "Tether USD", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:56/erc20:0x55d398326f99059fF775485246999027B3197955", "A", 56, "0x55d398326f99059fF775485246999027B3197955", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:56/erc20:0x55d398326f99059fF775485246999027B3197955", "USDT", "", "", NULL, 1599201028, NULL); +UPDATE common_asset_details SET cryptocompare="USDT" WHERE identifier="eip155:534352/erc20:0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:534352/erc20:0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df", "Tether USD", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:534352/erc20:0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df", "A", 534352, "0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df", 6, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:534352/erc20:0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df", "USDT", "tether", "USDT", NULL, 1696952284, NULL); +UPDATE common_asset_details SET cryptocompare="DAI" WHERE identifier="eip155:534352/erc20:0xcA77eB3fEFe3725Dc33bccB54eDEFc3D9f764f97"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:534352/erc20:0xcA77eB3fEFe3725Dc33bccB54eDEFc3D9f764f97", "Dai Stablecoin", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:534352/erc20:0xcA77eB3fEFe3725Dc33bccB54eDEFc3D9f764f97", "A", 534352, "0xcA77eB3fEFe3725Dc33bccB54eDEFc3D9f764f97", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:534352/erc20:0xcA77eB3fEFe3725Dc33bccB54eDEFc3D9f764f97", "DAI", "dai", "DAI", NULL, 1696919918, NULL); +UPDATE common_asset_details SET cryptocompare="DAI" WHERE identifier="eip155:250/erc20:0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:250/erc20:0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E", "Dai Stablecoin", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:250/erc20:0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E", "A", 250, "0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:250/erc20:0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E", "DAI", "dai", "DAI", NULL, 1613748662, NULL); +UPDATE common_asset_details SET coingecko="frapped-usdt", cryptocompare="" WHERE identifier="eip155:250/erc20:0x049d68029688eAbF473097a2fC38ef61633A3C7A"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:250/erc20:0x049d68029688eAbF473097a2fC38ef61633A3C7A", "Frapped USDT", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:250/erc20:0x049d68029688eAbF473097a2fC38ef61633A3C7A", "A", 250, "0x049d68029688eAbF473097a2fC38ef61633A3C7A", 6, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:250/erc20:0x049d68029688eAbF473097a2fC38ef61633A3C7A", "fUSDT", "frapped-usdt", "", NULL, 1615367956, NULL); diff --git a/updates/info.json b/updates/info.json index 3c8c5bb..686d9b3 100644 --- a/updates/info.json +++ b/updates/info.json @@ -1 +1 @@ -{"latest": 26, "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}, "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}}} \ No newline at end of file +{"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": 9, "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}}} \ No newline at end of file diff --git a/updates/pretty_info.json b/updates/pretty_info.json index e17127e..8ca893a 100644 --- a/updates/pretty_info.json +++ b/updates/pretty_info.json @@ -1,5 +1,5 @@ { - "latest": 26, + "latest": 27, "updates": { "1": { "changes": 249, @@ -96,6 +96,11 @@ "max_schema_version": 8, "min_schema_version": 6 }, + "27": { + "changes": 9, + "max_schema_version": 8, + "min_schema_version": 6 + }, "3": { "changes": 64, "max_schema_version": 2,