Skip to content

Commit

Permalink
Add cryptocompare ids to fiat assets
Browse files Browse the repository at this point in the history
  • Loading branch information
yabirgb committed Oct 24, 2024
1 parent ae4518b commit 0ddb2bf
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 3 deletions.
52 changes: 51 additions & 1 deletion updates/30/updates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,54 @@ INSERT INTO assets(identifier, name, type) VALUES("eip155:42161/erc20:0x1922C36F
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);
*
*
UPDATE assets SET cryptocompare="EUR" WHERE identifier="EUR";
INSERT INTO assets(identifier, name, type) VALUES("EUR", "Euro", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("EUR", "EUR", NULL, "EUR", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="USD" WHERE identifier="USD";
INSERT INTO assets(identifier, name, type) VALUES("USD", "United States Dollar", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("USD", "USD", NULL, "USD", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="AUD" WHERE identifier="AUD";
INSERT INTO assets(identifier, name, type) VALUES("AUD", "Australian Dollar", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("AUD", "AUD", NULL, "AUD", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="NZD" WHERE identifier="NZD";
INSERT INTO assets(identifier, name, type) VALUES("NZD", "New Zealand Dollar", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("NZD", "NZD", NULL, "NZD", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="BRL" WHERE identifier="BRL";
INSERT INTO assets(identifier, name, type) VALUES("BRL", "Brazilian Real", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("BRL", "BRL", NULL, "BRL", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="CAD" WHERE identifier="CAD";
INSERT INTO assets(identifier, name, type) VALUES("CAD", "Canadian Dollar", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("CAD", "CAD", NULL, "CAD", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="CHF" WHERE identifier="CHF";
INSERT INTO assets(identifier, name, type) VALUES("CHF", "Swiss Franc", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("CHF", "CHF", NULL, "CHF", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="CNY" WHERE identifier="CNY";
INSERT INTO assets(identifier, name, type) VALUES("CNY", "Chinese Yuan", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("CNY", "CNY", NULL, "CNY", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="JPY" WHERE identifier="JPY";
INSERT INTO assets(identifier, name, type) VALUES("JPY", "Japanese Yen", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("JPY", "JPY", NULL, "JPY", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="KRW" WHERE identifier="KRW";
INSERT INTO assets(identifier, name, type) VALUES("KRW", "Korean won", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("KRW", "KRW", NULL, "KRW", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="NOK" WHERE identifier="NOK";
INSERT INTO assets(identifier, name, type) VALUES("NOK", "Norwegian krone", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("NOK", "NOK", NULL, "NOK", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="RUB" WHERE identifier="RUB";
INSERT INTO assets(identifier, name, type) VALUES("RUB", "Russian Ruble", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("RUB", "RUB", NULL, "RUB", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="TRY" WHERE identifier="TRY";
INSERT INTO assets(identifier, name, type) VALUES("TRY", "Turkish Lyra", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("TRY", "TRY", NULL, "TRY", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="ZAR" WHERE identifier="ZAR";
INSERT INTO assets(identifier, name, type) VALUES("ZAR", "South African Rand", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("ZAR", "ZAR", NULL, "ZAR", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="TWD" WHERE identifier="TWD";
INSERT INTO assets(identifier, name, type) VALUES("TWD", "New Taiwan Dollar", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("TWD", "TWD", NULL, "TWD", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="SGD" WHERE identifier="SGD";
INSERT INTO assets(identifier, name, type) VALUES("SGD", "Singapore Dollar", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("SGD", "SGD", NULL, "SGD", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="SEK" WHERE identifier="SEK";
INSERT INTO assets(identifier, name, type) VALUES("SEK", "Swedish Krona", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("SEK", "SEK", NULL, "SEK", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="INR" WHERE identifier="INR";
INSERT INTO assets(identifier, name, type) VALUES("INR", "Indian Rupee", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("INR", "INR", NULL, "INR", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="DKK" WHERE identifier="DKK";
INSERT INTO assets(identifier, name, type) VALUES("DKK", "Danish krone", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("DKK", "DKK", NULL, "DKK", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="ILS" WHERE identifier="ILS";
INSERT INTO assets(identifier, name, type) VALUES("ILS", "Israeli new shekel", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("ILS", "ILS", NULL, "ILS", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="PLN" WHERE identifier="PLN";
INSERT INTO assets(identifier, name, type) VALUES("PLN", "Polish Zloty", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("PLN", "PLN", NULL, "PLN", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="AED" WHERE identifier="AED";
INSERT INTO assets(identifier, name, type) VALUES("AED", "Emirati Dirham", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("AED", "AED", NULL, "AED", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="NGN" WHERE identifier="NGN";
INSERT INTO assets(identifier, name, type) VALUES("NGN", "Naira", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("NGN", "NGN", NULL, "NGN", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="CZK" WHERE identifier="CZK";
INSERT INTO assets(identifier, name, type) VALUES("CZK", "Czech Koruna", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("CZK", "CZK", NULL, "CZK", NULL, NULL, NULL);
UPDATE assets SET cryptocompare="MXN" WHERE identifier="MXN";
INSERT INTO assets(identifier, name, type) VALUES("MXN", "Mexican Peso", "A"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("MXN", "MXN", NULL, "MXN", 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": 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}}}
{"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": 33, "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": 8,
"changes": 33,
"max_schema_version": 9,
"min_schema_version": 9
},
Expand Down

0 comments on commit 0ddb2bf

Please sign in to comment.