From 82039ba8ef108bf709d69909644368e8413e9a40 Mon Sep 17 00:00:00 2001 From: Yabir Benchakhtir Date: Fri, 13 Sep 2024 18:49:35 +0200 Subject: [PATCH] Add gloUSD and fix mappings for pol --- .../28/asset_collections_mappings_updates.sql | 16 ++++++++++++++++ updates/28/asset_collections_updates.sql | 6 ++++++ updates/28/updates.sql | 12 ++++++++++++ updates/info.json | 2 +- updates/pretty_info.json | 2 +- 5 files changed, 36 insertions(+), 2 deletions(-) diff --git a/updates/28/asset_collections_mappings_updates.sql b/updates/28/asset_collections_mappings_updates.sql index 40ef6a4..616734e 100644 --- a/updates/28/asset_collections_mappings_updates.sql +++ b/updates/28/asset_collections_mappings_updates.sql @@ -38,3 +38,19 @@ INSERT INTO multiasset_mappings(collection_id, asset) VALUES (336, "eip155:1/erc * INSERT INTO multiasset_mappings(collection_id, asset) VALUES (336, "eip155:8453/erc20:0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf"); * +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (337, "eip155:1/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (337, "eip155:10/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (337, "eip155:42161/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (337, "eip155:8453/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (337, "eip155:137/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (338, "eip155:42161/erc20:0xcb8b5CD20BdCaea9a010aC1F8d835824F5C87A04"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (338, "eip155:1/erc20:0xDEf1CA1fb7FBcDC777520aa7f396b4E015F497aB"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (338, "eip155:100/erc20:0x177127622c4A00F3d409B75571e12cB3c8973d3c"); +* \ No newline at end of file diff --git a/updates/28/asset_collections_updates.sql b/updates/28/asset_collections_updates.sql index 75a799c..af91de4 100644 --- a/updates/28/asset_collections_updates.sql +++ b/updates/28/asset_collections_updates.sql @@ -8,3 +8,9 @@ INSERT INTO asset_collections(id, name, symbol) VALUES (335, "Monerium GBPe", "G * INSERT INTO asset_collections(id, name, symbol) VALUES (336, "Coinbase Wrapped BTC", "cbBTC"); * +INSERT INTO asset_collections(id, name, symbol) VALUES (337, "Glo Dollar", "USDGLO"); +* +UPDATE asset_collections SET name='POL', symbol='POL' WHERE id=52; +INSERT INTO asset_collections(id, name, symbol) VALUES (52, 'POL', 'POL'); +INSERT INTO asset_collections(id, name, symbol) VALUES (338, "CoW Protocol Token", "COW"); +* \ No newline at end of file diff --git a/updates/28/updates.sql b/updates/28/updates.sql index a4f225e..ff436f2 100644 --- a/updates/28/updates.sql +++ b/updates/28/updates.sql @@ -38,3 +38,15 @@ INSERT INTO assets(identifier, name, type) VALUES("eip155:8453/erc20:0xcbB7C0000 * UPDATE assets SET name="Polygon Ecosystem Token" WHERE identifier="eip155:137/erc20:0x0000000000000000000000000000000000001010"; UPDATE common_asset_details SET symbol="POL", coingecko="polygon-ecosystem-token", cryptocompare="POL" WHERE identifier="eip155:137/erc20:0x0000000000000000000000000000000000001010"; INSERT INTO assets(identifier, name, type) VALUES("eip155:137/erc20:0x0000000000000000000000000000000000001010", "Polygon Ecosystem Token", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:137/erc20:0x0000000000000000000000000000000000001010", "A", 137, "0x0000000000000000000000000000000000001010", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:137/erc20:0x0000000000000000000000000000000000001010", "POL", "polygon-ecosystem-token", "POL", NULL, NULL, NULL); +INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "Glo Dollar", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "A", 1, "0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", 18, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "USDGLO", "glo-dollar", "USDGLO", NULL, 1667299487, NULL); +* +INSERT INTO assets(identifier, name, type) VALUES("eip155:10/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "Glo Dollar", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:10/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "A", 10, "0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", 18, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:10/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "USDGLO", "glo-dollar", "USDGLO", NULL, 1690283423, NULL); +* +INSERT INTO assets(identifier, name, type) VALUES("eip155:137/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "Glo Dollar", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:137/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "A", 137, "0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", 18, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:137/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "USDGLO", "glo-dollar", "USDGLO", NULL, 1667297263, NULL); +* +INSERT INTO assets(identifier, name, type) VALUES("eip155:42161/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "Glo Dollar", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:42161/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "A", 42161, "0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", 18, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:42161/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "USDGLO", "glo-dollar", "USDGLO", NULL, 1699268164, NULL); +* +INSERT INTO assets(identifier, name, type) VALUES("eip155:8453/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "Glo Dollar", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:8453/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "A", 8453, "0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", 18, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:8453/erc20:0x4F604735c1cF31399C6E711D5962b2B3E0225AD3", "USDGLO", "glo-dollar", "USDGLO", NULL, 1692779483, NULL); +* +INSERT INTO assets(identifier, name, type) VALUES("eip155:42161/erc20:0xcb8b5CD20BdCaea9a010aC1F8d835824F5C87A04", "CoW Protocol Token", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:42161/erc20:0xcb8b5CD20BdCaea9a010aC1F8d835824F5C87A04", "A", 42161, "0xcb8b5CD20BdCaea9a010aC1F8d835824F5C87A04", 18, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:42161/erc20:0xcb8b5CD20BdCaea9a010aC1F8d835824F5C87A04", "COW", "cow-protocol", "COW", NULL, 1714747872, NULL); +* \ No newline at end of file diff --git a/updates/info.json b/updates/info.json index f3607e2..73befcc 100644 --- a/updates/info.json +++ b/updates/info.json @@ -1 +1 @@ -{"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": 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": 20, "max_schema_version": 9, "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": 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": 26, "max_schema_version": 9, "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 23889d5..d92a328 100644 --- a/updates/pretty_info.json +++ b/updates/pretty_info.json @@ -102,7 +102,7 @@ "min_schema_version": 6 }, "28": { - "changes": 20, + "changes": 26, "max_schema_version": 9, "min_schema_version": 6 },