From 87139984d357bfc4201b5da0629a1bf609444273 Mon Sep 17 00:00:00 2001 From: Platon Floria Date: Fri, 3 May 2024 12:05:44 +0200 Subject: [PATCH 1/2] fix: BLOCK_CHUNK_SIZE_MAP --- run_blockchain_terraformer.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/run_blockchain_terraformer.py b/run_blockchain_terraformer.py index 6102f4f88..68d06658c 100644 --- a/run_blockchain_terraformer.py +++ b/run_blockchain_terraformer.py @@ -73,16 +73,15 @@ async def gather(): } BLOCK_CHUNK_SIZE_MAP = { - "ethereum": 50000, - "polygon": 250000, - "polygon_zkevm": 500000, - "arbitrum_one": 500000, - "optimism": 500000, - "coinbase_base": 250000, - "fantom": 2000, - "mantle": 10000000, - "linea": 1000000, - "sei": 10000, #TODO untested this could be more + "ethereum": 0, + "polygon": 0, + "polygon_zkevm": 0, + "arbitrum_one": 0, + "optimism": 0, + "coinbase_base": 0, + "fantom": 5000, + "mantle": 0, + "linea": 0 } ALCHEMY_KEY_DICT = { From 8fd74596e28d643e0bca497b007ec0efd385fb35 Mon Sep 17 00:00:00 2001 From: barak manos <> Date: Fri, 3 May 2024 13:13:06 +0300 Subject: [PATCH 2/2] Fix the terraformer script and update data files for sei --- fastlane_bot/data/blockchain_data/sei/static_pool_data.csv | 1 - .../data/blockchain_data/sei/uniswap_v2_event_mappings.csv | 2 +- run_blockchain_terraformer.py | 5 +++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fastlane_bot/data/blockchain_data/sei/static_pool_data.csv b/fastlane_bot/data/blockchain_data/sei/static_pool_data.csv index 90d9f351a..54e89f03e 100644 --- a/fastlane_bot/data/blockchain_data/sei/static_pool_data.csv +++ b/fastlane_bot/data/blockchain_data/sei/static_pool_data.csv @@ -2,4 +2,3 @@ cid,strategy_id,last_updated,last_updated_block,descr,pair_name,exchange_name,fe 0x1422169ab760ea6994358267b7d3783e8e7fa55c6a74b365b3fd3d17cbf4c6f1,0,,2354,dragonswap 0x027D2E627209f1cebA52ADc8A5aFE9318459b44B/0x7b75109369ACb528d9fa989E227812a6589712b9,0x027D2E627209f1cebA52ADc8A5aFE9318459b44B/0x7b75109369ACb528d9fa989E227812a6589712b9,dragonswap,0.003,0.003,0x01A34Dfa104F020FEE739268679338169945D5B1,,0x027D2E627209f1cebA52ADc8A5aFE9318459b44B,0x7b75109369ACb528d9fa989E227812a6589712b9,18,18,3,WSEI,DSWAP,0,0,0,,,,,dragonswap,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 0xbfd9612b2cb8035908dff18c040f64de75999cefd1020b5ce8a2e533c2ecd5dc,0,,2354,dragonswap 0x027D2E627209f1cebA52ADc8A5aFE9318459b44B/0xace5f7Ea93439Af39b46d2748fA1aC19951c8d7C,0x027D2E627209f1cebA52ADc8A5aFE9318459b44B/0xace5f7Ea93439Af39b46d2748fA1aC19951c8d7C,dragonswap,0.003,0.003,0x85CB6BFd781e1f42f4E79Efb6bf1F1fEfE4E9732,,0x027D2E627209f1cebA52ADc8A5aFE9318459b44B,0xace5f7Ea93439Af39b46d2748fA1aC19951c8d7C,18,6,3,WSEI,USDC,0,0,0,,,,,dragonswap,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 0xe3aead757d877a15316e4896d5c5ab7639adbcba1ff76e3434b4e0af90f6225e,0,,2354,dragonswap 0xace5f7Ea93439Af39b46d2748fA1aC19951c8d7C/0xF983afa393199D6902a1Dd04f8E93465915ffD8B,0xace5f7Ea93439Af39b46d2748fA1aC19951c8d7C/0xF983afa393199D6902a1Dd04f8E93465915ffD8B,dragonswap,0.003,0.003,0x72A788B0A83e18ce1757171321E82c03e4351498,,0xace5f7Ea93439Af39b46d2748fA1aC19951c8d7C,0xF983afa393199D6902a1Dd04f8E93465915ffD8B,6,6,3,USDC,USDT,0,0,0,,,,,dragonswap,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, - diff --git a/fastlane_bot/data/blockchain_data/sei/uniswap_v2_event_mappings.csv b/fastlane_bot/data/blockchain_data/sei/uniswap_v2_event_mappings.csv index 1989d2011..c23f7b0da 100644 --- a/fastlane_bot/data/blockchain_data/sei/uniswap_v2_event_mappings.csv +++ b/fastlane_bot/data/blockchain_data/sei/uniswap_v2_event_mappings.csv @@ -2,4 +2,4 @@ exchange,address dragonswap,0x01A34Dfa104F020FEE739268679338169945D5B1 dragonswap,0x85CB6BFd781e1f42f4E79Efb6bf1F1fEfE4E9732 dragonswap,0x38BcEBb9A3fbF05B0Ab7ce9b485c9669578409fE -dragonswap,0x72A788B0A83e18ce1757171321E82c03e4351498 \ No newline at end of file +dragonswap,0x72A788B0A83e18ce1757171321E82c03e4351498 diff --git a/run_blockchain_terraformer.py b/run_blockchain_terraformer.py index 68d06658c..5804e0092 100644 --- a/run_blockchain_terraformer.py +++ b/run_blockchain_terraformer.py @@ -81,7 +81,8 @@ async def gather(): "coinbase_base": 0, "fantom": 5000, "mantle": 0, - "linea": 0 + "linea": 0, + "sei": 0, } ALCHEMY_KEY_DICT = { @@ -1221,10 +1222,10 @@ def terraform_blockchain(network_name: str): file_desc.writelines(list(dict.fromkeys(lines))) file_desc.close() -#terraform_blockchain(network_name="sei", save_tokens=True) #terraform_blockchain(network_name=ETHEREUM) #terraform_blockchain(network_name=BASE) #terraform_blockchain(network_name=FANTOM) #terraform_blockchain(network_name=MANTLE) #terraform_blockchain(network_name=LINEA) +#terraform_blockchain(network_name=SEI)