Skip to content

Commit

Permalink
Ensure crv tokens existence
Browse files Browse the repository at this point in the history
  • Loading branch information
yabirgb committed Oct 25, 2024
1 parent 81f6c2b commit f6ea1ac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion updates/30/updates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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");
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);
2 changes: 1 addition & 1 deletion updates/info.json
Original file line number Diff line number Diff line change
@@ -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}}}
{"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}}}
2 changes: 1 addition & 1 deletion updates/pretty_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"min_schema_version": 2
},
"30": {
"changes": 35,
"changes": 38,
"max_schema_version": 9,
"min_schema_version": 9
},
Expand Down

0 comments on commit f6ea1ac

Please sign in to comment.