From 3244425416ae9cfbdc21be6b3be184a7de835858 Mon Sep 17 00:00:00 2001 From: OjusWiZard Date: Tue, 13 Aug 2024 23:20:58 +0530 Subject: [PATCH] Fix (Assets): Group natives with wraps Signed-off-by: OjusWiZard --- updates/28/asset_collections_mappings_updates.sql | 12 ++++++++++++ updates/28/asset_collections_updates.sql | 2 ++ updates/28/updates.sql | 4 ++++ updates/info.json | 2 +- updates/pretty_info.json | 7 ++++++- 5 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 updates/28/asset_collections_mappings_updates.sql create mode 100644 updates/28/asset_collections_updates.sql create mode 100644 updates/28/updates.sql diff --git a/updates/28/asset_collections_mappings_updates.sql b/updates/28/asset_collections_mappings_updates.sql new file mode 100644 index 0000000..38b73f6 --- /dev/null +++ b/updates/28/asset_collections_mappings_updates.sql @@ -0,0 +1,12 @@ +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (40, "BTC"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (38, "ETH"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (52, "eip155:1/erc20:0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (23, "XDAI"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (23, "eip155:100/erc20:0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (155, "LUNA-3"); +* diff --git a/updates/28/asset_collections_updates.sql b/updates/28/asset_collections_updates.sql new file mode 100644 index 0000000..7c6ce1d --- /dev/null +++ b/updates/28/asset_collections_updates.sql @@ -0,0 +1,2 @@ +UPDATE asset_collections SET name='ETH', symbol='ETH' WHERE id=38; +INSERT INTO asset_collections(id, name, symbol) VALUES (38, 'ETH', 'ETH'); diff --git a/updates/28/updates.sql b/updates/28/updates.sql new file mode 100644 index 0000000..c7e63d5 --- /dev/null +++ b/updates/28/updates.sql @@ -0,0 +1,4 @@ +INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6", "Polygon Ecosystem Token", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6", "A", 1, "0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6", "POL", "matic-network", "matic", NULL, 1698224783, NULL); +* +UPDATE common_asset_details SET swapped_for="eip155:1/erc20:0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6" WHERE identifier="eip155:1/erc20:0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0"; +INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0", "Matic Network", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0", "A", 1, "0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0", "MATIC", "matic-network", "matic", NULL, 1503906828, "eip155:1/erc20:0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6"); diff --git a/updates/info.json b/updates/info.json index f4458d6..6bac5f4 100644 --- a/updates/info.json +++ b/updates/info.json @@ -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": 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}}} \ No newline at end of file +{"latest": 28, "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}, "28": {"changes": 2, "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 116a5f3..254452f 100644 --- a/updates/pretty_info.json +++ b/updates/pretty_info.json @@ -1,5 +1,5 @@ { - "latest": 27, + "latest": 28, "updates": { "1": { "changes": 249, @@ -101,6 +101,11 @@ "max_schema_version": 8, "min_schema_version": 6 }, + "28": { + "changes": 2, + "max_schema_version": 8, + "min_schema_version": 6 + }, "3": { "changes": 64, "max_schema_version": 2,