Skip to content

Commit

Permalink
add basics to terraformer
Browse files Browse the repository at this point in the history
  • Loading branch information
NIXBNT authored and platonfloria committed May 3, 2024
1 parent 1d3324c commit d2ec816
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions run_blockchain_terraformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ async def gather():
FANTOM = "fantom"
MANTLE = "mantle"
LINEA = "linea"
SEI = "sei"

coingecko_network_map = {
"ethereum": "ethereum",
Expand All @@ -68,18 +69,20 @@ async def gather():
"cosmos": "cosmos",
"kava": "kava",
"mantle": "mantle",
"sei": "sei",
}

BLOCK_CHUNK_SIZE_MAP = {
"ethereum": 0,
"polygon": 0,
"polygon_zkevm": 0,
"arbitrum_one": 0,
"optimism": 0,
"coinbase_base": 0,
"fantom": 5000,
"mantle": 0,
"linea": 0
"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
}

ALCHEMY_KEY_DICT = {
Expand All @@ -92,6 +95,7 @@ async def gather():
"fantom": "WEB3_FANTOM",
"mantle": "WEB3_MANTLE",
"linea": "WEB3_LINEA",
"sei": "WEB3_SEI",
}

ALCHEMY_RPC_LIST = {
Expand All @@ -104,6 +108,7 @@ async def gather():
"fantom": "https://fantom.blockpi.network/v1/rpc/",
"mantle": "https://rpc.mantle.xyz/",
"linea": "https://rpc.linea.build/",
"sei": "https://evm-rpc.arctic-1.seinetwork.io/", # TODO update with mainnet
}

BALANCER_SUBGRAPH_CHAIN_URL = {
Expand All @@ -115,6 +120,7 @@ async def gather():
"coinbase_base": "https://api.studio.thegraph.com/query/24660/balancer-base-v2/version/latest",
"avalanche": "https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-avalanche-v2",
"fantom": "https://api.thegraph.com/subgraphs/name/beethovenxfi/beethovenx",
"sei": "" # TODO add Jellyswap

}

Expand Down Expand Up @@ -1216,6 +1222,7 @@ 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)
Expand Down

0 comments on commit d2ec816

Please sign in to comment.