Skip to content

Commit

Permalink
Fix (Assets): Group natives with wraps
Browse files Browse the repository at this point in the history
Signed-off-by: OjusWiZard <[email protected]>
  • Loading branch information
OjusWiZard committed Aug 23, 2024
1 parent 1bffe5f commit e51eea8
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 2 deletions.
22 changes: 22 additions & 0 deletions updates/28/asset_collections_mappings_updates.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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");
*
INSERT INTO multiasset_mappings(collection_id, asset) VALUES (333, "eip155:10/erc20:0x2dAD3a13ef0C6366220f989157009e501e7938F8");
*
INSERT INTO multiasset_mappings(collection_id, asset) VALUES (333, "eip155:8453/erc20:0x2dAD3a13ef0C6366220f989157009e501e7938F8");
*
INSERT INTO multiasset_mappings(collection_id, asset) VALUES (334, "WELL");
*
INSERT INTO multiasset_mappings(collection_id, asset) VALUES (334, "eip155:8453/erc20:0xFF8adeC2221f9f4D8dfbAFa6B9a297d17603493D");
*
INSERT INTO multiasset_mappings(collection_id, asset) VALUES (334, "eip155:8453/erc20:0xA88594D404727625A9437C3f886C7643872296AE");
*
6 changes: 6 additions & 0 deletions updates/28/asset_collections_updates.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
UPDATE asset_collections SET name='ETH', symbol='ETH' WHERE id=38;
INSERT INTO asset_collections(id, name, symbol) VALUES (38, 'ETH', 'ETH');
INSERT INTO asset_collections(id, name, symbol) VALUES (333, "Extra Finance", "EXTRA");
*
INSERT INTO asset_collections(id, name, symbol) VALUES (334, "Moonwell", "WELL");
*
8 changes: 8 additions & 0 deletions updates/28/updates.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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 coingecko="extra-finance" WHERE identifier="eip155:10/erc20:0x2dAD3a13ef0C6366220f989157009e501e7938F8";
INSERT INTO assets(identifier, name, type) VALUES("eip155:10/erc20:0x2dAD3a13ef0C6366220f989157009e501e7938F8", "Extra Finance", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:10/erc20:0x2dAD3a13ef0C6366220f989157009e501e7938F8", "A", 10, "0x2dAD3a13ef0C6366220f989157009e501e7938F8", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:10/erc20:0x2dAD3a13ef0C6366220f989157009e501e7938F8", "EXTRA", "extra-finance", "EXTRA", NULL, 1684751172, NULL);
UPDATE common_asset_details SET coingecko="extra-finance", cryptocompare="EXTRA" WHERE identifier="eip155:8453/erc20:0x2dAD3a13ef0C6366220f989157009e501e7938F8";
INSERT INTO assets(identifier, name, type) VALUES("eip155:8453/erc20:0x2dAD3a13ef0C6366220f989157009e501e7938F8", "Extra Finance", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:8453/erc20:0x2dAD3a13ef0C6366220f989157009e501e7938F8", "A", 8453, "0x2dAD3a13ef0C6366220f989157009e501e7938F8", 18, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:8453/erc20:0x2dAD3a13ef0C6366220f989157009e501e7938F8", "EXTRA", "extra-finance", "EXTRA", NULL, 1690955247, NULL);
UPDATE common_asset_details SET cryptocompare="WELL" WHERE identifier="WELL";
INSERT INTO assets(identifier, name, type) VALUES("WELL", "Extra Finance", "W"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("WELL", "WELL", "moonwell-artemis", "WELL", NULL, 1652303490, NULL);
2 changes: 1 addition & 1 deletion updates/info.json
Original file line number Diff line number Diff line change
@@ -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}}}
{"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": 4, "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}}}
7 changes: 6 additions & 1 deletion updates/pretty_info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"latest": 27,
"latest": 28,
"updates": {
"1": {
"changes": 249,
Expand Down Expand Up @@ -101,6 +101,11 @@
"max_schema_version": 8,
"min_schema_version": 6
},
"28": {
"changes": 4,
"max_schema_version": 8,
"min_schema_version": 6
},
"3": {
"changes": 64,
"max_schema_version": 2,
Expand Down

0 comments on commit e51eea8

Please sign in to comment.