From 58217d02d827d5bcb7521c3ea893bdd03f65310a Mon Sep 17 00:00:00 2001 From: Yabir Benchakhtir Date: Mon, 21 Oct 2024 13:37:36 +0200 Subject: [PATCH] Add KBTC --- updates/30/asset_collections_mappings_updates.sql | 8 ++++++++ updates/30/asset_collections_updates.sql | 2 ++ updates/30/updates.sql | 4 ++++ updates/info.json | 2 +- updates/pretty_info.json | 2 +- 5 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 updates/30/asset_collections_mappings_updates.sql create mode 100644 updates/30/asset_collections_updates.sql diff --git a/updates/30/asset_collections_mappings_updates.sql b/updates/30/asset_collections_mappings_updates.sql new file mode 100644 index 0000000..ca8b67b --- /dev/null +++ b/updates/30/asset_collections_mappings_updates.sql @@ -0,0 +1,8 @@ +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (40, "eip155:1/erc20:0x73E0C0d45E048D25Fc26Fa3159b0aA04BfA4Db98"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (40, "eip155:10/erc20:0x73E0C0d45E048D25Fc26Fa3159b0aA04BfA4Db98"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (40, "eip155:1/erc20:0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf"); +* +INSERT INTO multiasset_mappings(collection_id, asset) VALUES (40, "eip155:8453/erc20:0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf"); +* \ No newline at end of file diff --git a/updates/30/asset_collections_updates.sql b/updates/30/asset_collections_updates.sql new file mode 100644 index 0000000..9a77ae2 --- /dev/null +++ b/updates/30/asset_collections_updates.sql @@ -0,0 +1,2 @@ +UPDATE asset_collections SET name='BTC', symbol='BTC' WHERE id=40; +INSERT INTO asset_collections(id, name, symbol) VALUES (40, 'BTC', 'BTC'); \ No newline at end of file diff --git a/updates/30/updates.sql b/updates/30/updates.sql index 78c2534..d0c3c1e 100644 --- a/updates/30/updates.sql +++ b/updates/30/updates.sql @@ -9,4 +9,8 @@ INSERT INTO assets(identifier, name, type) VALUES("eip155:42161/erc20:0xcd8011Aa INSERT INTO assets(identifier, name, type) VALUES("eip155:42161/erc20:0x2AdAbD6E8Ce3e82f52d9998a7f64a90d294A92A4", "Marinated UMAMI", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:42161/erc20:0x2AdAbD6E8Ce3e82f52d9998a7f64a90d294A92A4", "A", 42161, "0x2AdAbD6E8Ce3e82f52d9998a7f64a90d294A92A4", 9, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:42161/erc20:0x2AdAbD6E8Ce3e82f52d9998a7f64a90d294A92A4", "mUMAMI", "", "", NULL, 1645146238, NULL); * INSERT INTO assets(identifier, name, type) VALUES("eip155:42161/erc20:0x1922C36F3bc762Ca300b4a46bB2102F84B1684aB", "Compounded Marinated UMAMI", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:42161/erc20:0x1922C36F3bc762Ca300b4a46bB2102F84B1684aB", "A", 42161, "0x1922C36F3bc762Ca300b4a46bB2102F84B1684aB", 9, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:42161/erc20:0x1922C36F3bc762Ca300b4a46bB2102F84B1684aB", "cmUMAMI", "", "", NULL, 1648295962, NULL); INSERT INTO underlying_tokens_list(identifier, weight, parent_token_entry) VALUES("eip155:42161/erc20:0x2AdAbD6E8Ce3e82f52d9998a7f64a90d294A92A4", "1", "eip155:42161/erc20:0x1922C36F3bc762Ca300b4a46bB2102F84B1684aB"); +* +INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0x73E0C0d45E048D25Fc26Fa3159b0aA04BfA4Db98", "Kraken Wrapped Bitcoin", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0x73E0C0d45E048D25Fc26Fa3159b0aA04BfA4Db98", "A", 1, "0x73E0C0d45E048D25Fc26Fa3159b0aA04BfA4Db98", 8, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0x73E0C0d45E048D25Fc26Fa3159b0aA04BfA4Db98", "kBTC", "kraken-wrapped-btc", "", NULL, 1727370707, NULL); +* +INSERT INTO assets(identifier, name, type) VALUES("eip155:10/erc20:0x73E0C0d45E048D25Fc26Fa3159b0aA04BfA4Db98", "Kraken Wrapped Bitcoin", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:10/erc20:0x73E0C0d45E048D25Fc26Fa3159b0aA04BfA4Db98", "A", 10, "0x73E0C0d45E048D25Fc26Fa3159b0aA04BfA4Db98", 8, NULL); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:10/erc20:0x73E0C0d45E048D25Fc26Fa3159b0aA04BfA4Db98", "kBTC", "kraken-wrapped-btc", "", NULL, 1727371173, NULL); * \ No newline at end of file diff --git a/updates/info.json b/updates/info.json index 4d13228..8e82de4 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": 6, "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": 8, "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 87e1588..5579dc6 100644 --- a/updates/pretty_info.json +++ b/updates/pretty_info.json @@ -117,7 +117,7 @@ "min_schema_version": 2 }, "30": { - "changes": 6, + "changes": 8, "max_schema_version": 9, "min_schema_version": 9 },