From f6ea1ac4af5153aa5e8414349f17df085a857114 Mon Sep 17 00:00:00 2001 From: Yabir Benchakhtir Date: Fri, 25 Oct 2024 19:43:18 +0200 Subject: [PATCH] Ensure crv tokens existence --- updates/30/updates.sql | 8 +++++++- updates/info.json | 2 +- updates/pretty_info.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/updates/30/updates.sql b/updates/30/updates.sql index 5e168cd..2e550d4 100644 --- a/updates/30/updates.sql +++ b/updates/30/updates.sql @@ -67,4 +67,10 @@ INSERT INTO assets(identifier, name, type) VALUES("MXN", "Mexican Peso", "A"); I UPDATE common_asset_details SET cryptocompare="" WHERE identifier="eip155:1/erc20:0x4da27a545c0c5B758a6BA100e3a049001de870f5"; DELETE FROM underlying_tokens_list WHERE parent_token_entry="eip155:1/erc20:0x4da27a545c0c5B758a6BA100e3a049001de870f5"; INSERT INTO underlying_tokens_list(identifier, weight, parent_token_entry) VALUES("eip155:1/erc20:0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9", "1", "eip155:1/erc20:0x4da27a545c0c5B758a6BA100e3a049001de870f5"); INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0x4da27a545c0c5B758a6BA100e3a049001de870f5", "Staked Aave", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0x4da27a545c0c5B758a6BA100e3a049001de870f5", "A", 1, "0x4da27a545c0c5B758a6BA100e3a049001de870f5", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0x4da27a545c0c5B758a6BA100e3a049001de870f5", "stkAAVE", "aave", "", NULL, 1600973075, NULL); INSERT INTO underlying_tokens_list(identifier, weight, parent_token_entry) VALUES("eip155:1/erc20:0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9", "1", "eip155:1/erc20:0x4da27a545c0c5B758a6BA100e3a049001de870f5"); UPDATE common_asset_details SET cryptocompare="", coingecko="" WHERE identifier="eip155:1/erc20:0x83E9115d334D248Ce39a6f36144aEaB5b3456e75"; DELETE FROM underlying_tokens_list WHERE parent_token_entry="eip155:1/erc20:0x83E9115d334D248Ce39a6f36144aEaB5b3456e75"; INSERT INTO underlying_tokens_list(identifier, weight, parent_token_entry) VALUES("eip155:1/erc20:0xec53bF9167f50cDEB3Ae105f56099aaaB9061F83", "1", "eip155:1/erc20:0x83E9115d334D248Ce39a6f36144aEaB5b3456e75"); -INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0x83E9115d334D248Ce39a6f36144aEaB5b3456e75", "Backing Eigen", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0x83E9115d334D248Ce39a6f36144aEaB5b3456e75", "A", 1, "0x83E9115d334D248Ce39a6f36144aEaB5b3456e75", 18, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0x83E9115d334D248Ce39a6f36144aEaB5b3456e75", "bEIGEN", "", "", NULL, 1710958955, NULL); INSERT INTO underlying_tokens_list(identifier, weight, parent_token_entry) VALUES("eip155:1/erc20:0xec53bF9167f50cDEB3Ae105f56099aaaB9061F83", "1", "eip155:1/erc20:0x83E9115d334D248Ce39a6f36144aEaB5b3456e75"); \ No newline at end of file +INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0x83E9115d334D248Ce39a6f36144aEaB5b3456e75", "Backing Eigen", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0x83E9115d334D248Ce39a6f36144aEaB5b3456e75", "A", 1, "0x83E9115d334D248Ce39a6f36144aEaB5b3456e75", 18, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0x83E9115d334D248Ce39a6f36144aEaB5b3456e75", "bEIGEN", "", "", NULL, 1710958955, NULL); INSERT INTO underlying_tokens_list(identifier, weight, parent_token_entry) VALUES("eip155:1/erc20:0xec53bF9167f50cDEB3Ae105f56099aaaB9061F83", "1", "eip155:1/erc20:0x83E9115d334D248Ce39a6f36144aEaB5b3456e75"); +UPDATE common_asset_details SET coingecko="curve-dao-token", cryptocompare="CRV" WHERE identifier="eip155:10/erc20:0x0994206dfE8De6Ec6920FF4D779B0d950605Fb53"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:10/erc20:0x0994206dfE8De6Ec6920FF4D779B0d950605Fb53", "Curve DAO Token", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:10/erc20:0x0994206dfE8De6Ec6920FF4D779B0d950605Fb53", "A", 10, "0x0994206dfE8De6Ec6920FF4D779B0d950605Fb53", 18, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:10/erc20:0x0994206dfE8De6Ec6920FF4D779B0d950605Fb53", "CRV", "curve-dao-token", "CRV", NULL, 1643022561, NULL); +UPDATE common_asset_details SET coingecko="curve-dao-token", cryptocompare="CRV" WHERE identifier="eip155:100/erc20:0x712b3d230F3C1c19db860d80619288b1F0BDd0Bd"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:100/erc20:0x712b3d230F3C1c19db860d80619288b1F0BDd0Bd", "Curve DAO Token on xDai", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:100/erc20:0x712b3d230F3C1c19db860d80619288b1F0BDd0Bd", "A", 100, "0x712b3d230F3C1c19db860d80619288b1F0BDd0Bd", 18, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:100/erc20:0x712b3d230F3C1c19db860d80619288b1F0BDd0Bd", "CRV", "curve-dao-token", "CRV", NULL, 1601044030, NULL); +UPDATE common_asset_details SET coingecko="curve-dao-token", cryptocompare="CRV" WHERE identifier="eip155:8453/erc20:0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:8453/erc20:0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415", "Curve DAO Token", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:8453/erc20:0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415", "A", 8453, "0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415", 18, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:8453/erc20:0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415", "CRV", "curve-dao-token", "CRV", NULL, NULL, NULL); \ No newline at end of file diff --git a/updates/info.json b/updates/info.json index 3fc6b39..981c0b5 100644 --- a/updates/info.json +++ b/updates/info.json @@ -1 +1 @@ -{"latest": 30, "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": 9, "min_schema_version": 4}, "17": {"changes": 137, "max_schema_version": 9, "min_schema_version": 4}, "18": {"changes": 189, "max_schema_version": 9, "min_schema_version": 4}, "19": {"changes": 183, "max_schema_version": 9, "min_schema_version": 4}, "2": {"changes": 27, "max_schema_version": 2, "min_schema_version": 2}, "20": {"changes": 105, "max_schema_version": 9, "min_schema_version": 4}, "21": {"changes": 47, "max_schema_version": 9, "min_schema_version": 6}, "22": {"changes": 145, "max_schema_version": 9, "min_schema_version": 6}, "23": {"changes": 4, "max_schema_version": 9, "min_schema_version": 6}, "24": {"changes": 534, "max_schema_version": 9, "min_schema_version": 6}, "25": {"changes": 407, "max_schema_version": 9, "min_schema_version": 6}, "26": {"changes": 349, "max_schema_version": 9, "min_schema_version": 6}, "27": {"changes": 1157, "max_schema_version": 9, "min_schema_version": 6}, "28": {"changes": 47, "max_schema_version": 9, "min_schema_version": 9}, "29": {"changes": 8, "max_schema_version": 9, "min_schema_version": 9}, "3": {"changes": 64, "max_schema_version": 2, "min_schema_version": 2}, "30": {"changes": 35, "max_schema_version": 9, "min_schema_version": 9}, "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": 30, "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": 9, "min_schema_version": 4}, "17": {"changes": 137, "max_schema_version": 9, "min_schema_version": 4}, "18": {"changes": 189, "max_schema_version": 9, "min_schema_version": 4}, "19": {"changes": 183, "max_schema_version": 9, "min_schema_version": 4}, "2": {"changes": 27, "max_schema_version": 2, "min_schema_version": 2}, "20": {"changes": 105, "max_schema_version": 9, "min_schema_version": 4}, "21": {"changes": 47, "max_schema_version": 9, "min_schema_version": 6}, "22": {"changes": 145, "max_schema_version": 9, "min_schema_version": 6}, "23": {"changes": 4, "max_schema_version": 9, "min_schema_version": 6}, "24": {"changes": 534, "max_schema_version": 9, "min_schema_version": 6}, "25": {"changes": 407, "max_schema_version": 9, "min_schema_version": 6}, "26": {"changes": 349, "max_schema_version": 9, "min_schema_version": 6}, "27": {"changes": 1157, "max_schema_version": 9, "min_schema_version": 6}, "28": {"changes": 47, "max_schema_version": 9, "min_schema_version": 9}, "29": {"changes": 8, "max_schema_version": 9, "min_schema_version": 9}, "3": {"changes": 64, "max_schema_version": 2, "min_schema_version": 2}, "30": {"changes": 38, "max_schema_version": 9, "min_schema_version": 9}, "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 7ea7ce6..579af25 100644 --- a/updates/pretty_info.json +++ b/updates/pretty_info.json @@ -117,7 +117,7 @@ "min_schema_version": 2 }, "30": { - "changes": 35, + "changes": 38, "max_schema_version": 9, "min_schema_version": 9 },