Skip to content

Commit

Permalink
Add tron
Browse files Browse the repository at this point in the history
  • Loading branch information
yabirgb committed Jul 4, 2024
1 parent 436fa36 commit 6160a4a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions updates/26/asset_collections_mappings_updates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,10 @@ INSERT INTO multiasset_mappings(collection_id, asset) VALUES (116, "eip155:42161
INSERT INTO multiasset_mappings(collection_id, asset) VALUES (116, "eip155:137/erc20:0x6b021b3f68491974bE6D4009fEe61a4e3C708fD6");
*
INSERT INTO multiasset_mappings(collection_id, asset) VALUES (116, "eip155:100/erc20:0xD589F00Fa2Eb83367f732AB3CDA92eE0940389cF");
*
INSERT INTO multiasset_mappings(collection_id, asset) VALUES (332, "eip155:1/erc20:0x50327c6c5a14DCaDE707ABad2E27eB517df87AB5");
*
INSERT INTO multiasset_mappings(collection_id, asset) VALUES (332, "eip155:56/erc20:0xCE7de646e7208a4Ef112cb6ed5038FA6cC6b12e3");
*
INSERT INTO multiasset_mappings(collection_id, asset) VALUES (332, "eip155:1/erc20:0xf230b790E05390FC8295F4d3F60332c93BEd42e2");
*
2 changes: 2 additions & 0 deletions updates/26/asset_collections_updates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ INSERT INTO asset_collections(id, name, symbol) VALUES (329, "WeWay Token", "WWY
INSERT INTO asset_collections(id, name, symbol) VALUES (330, "Cobak Token", "CBK");
*
INSERT INTO asset_collections(id, name, symbol) VALUES (331, "MetaGaming Guild", "MGG");
*
INSERT INTO asset_collections(id, name, symbol) VALUES (332, "TRON", "TRX");
*
6 changes: 6 additions & 0 deletions updates/26/updates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -664,3 +664,9 @@ INSERT INTO assets(identifier, name, type) VALUES("eip155:250/erc20:0xae75A438b2
*
INSERT INTO assets(identifier, name, type) VALUES("eip155:250/erc20:0xc45A479877e1e9Dfe9FcD4056c699575a1045dAA", "Aave Fantom SUSHI", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:250/erc20:0xc45A479877e1e9Dfe9FcD4056c699575a1045dAA", "A", 250, "0xc45A479877e1e9Dfe9FcD4056c699575a1045dAA", 18, "aave-v3"); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:250/erc20:0xc45A479877e1e9Dfe9FcD4056c699575a1045dAA", "aFanSUSHI", "", "", NULL, 1647008198, NULL); INSERT INTO underlying_tokens_list(identifier, weight, parent_token_entry) VALUES("eip155:250/erc20:0xae75A438b2E0cB8Bb01Ec1E1e376De11D44477CC", "1", "eip155:250/erc20:0xc45A479877e1e9Dfe9FcD4056c699575a1045dAA");
*
INSERT INTO assets(identifier, name, type) VALUES("eip155:56/erc20:0xCE7de646e7208a4Ef112cb6ed5038FA6cC6b12e3", "TRON", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:56/erc20:0xCE7de646e7208a4Ef112cb6ed5038FA6cC6b12e3", "A", 56, "0xCE7de646e7208a4Ef112cb6ed5038FA6cC6b12e3", 6, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:56/erc20:0xCE7de646e7208a4Ef112cb6ed5038FA6cC6b12e3", "TRX", "tron", "TRX", NULL, NULL, NULL);
*
INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0x50327c6c5a14DCaDE707ABad2E27eB517df87AB5", "TRON", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0x50327c6c5a14DCaDE707ABad2E27eB517df87AB5", "A", 1, "0x50327c6c5a14DCaDE707ABad2E27eB517df87AB5", 6, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0x50327c6c5a14DCaDE707ABad2E27eB517df87AB5", "TRX", "tron", "TRX", NULL, NULL, NULL);
*
UPDATE common_asset_details SET swapped_for="eip155:1/erc20:0x50327c6c5a14DCaDE707ABad2E27eB517df87AB5" WHERE identifier="eip155:1/erc20:0xf230b790E05390FC8295F4d3F60332c93BEd42e2";
INSERT INTO assets(identifier, name, type) VALUES("eip155:1/erc20:0xf230b790E05390FC8295F4d3F60332c93BEd42e2", "Tronix", "C"); INSERT INTO evm_tokens(identifier, token_kind, chain, address, decimals, protocol) VALUES("eip155:1/erc20:0xf230b790E05390FC8295F4d3F60332c93BEd42e2", "A", 1, "0xf230b790E05390FC8295F4d3F60332c93BEd42e2", 6, ""); INSERT INTO common_asset_details(identifier, symbol, coingecko, cryptocompare, forked, started, swapped_for) VALUES("eip155:1/erc20:0xf230b790E05390FC8295F4d3F60332c93BEd42e2", "TRX", "tron", "TRX", NULL, NULL, "eip155:1/erc20:0x50327c6c5a14DCaDE707ABad2E27eB517df87AB5");
2 changes: 1 addition & 1 deletion updates/info.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"latest": 26, "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": 333, "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": 26, "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": 336, "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}}}
2 changes: 1 addition & 1 deletion updates/pretty_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"min_schema_version": 6
},
"26": {
"changes": 333,
"changes": 336,
"max_schema_version": 8,
"min_schema_version": 6
},
Expand Down

0 comments on commit 6160a4a

Please sign in to comment.