From 34791a776dd763f02631961967866d0119d09896 Mon Sep 17 00:00:00 2001 From: ackness Date: Fri, 7 Apr 2023 23:00:05 +0800 Subject: [PATCH] add optimism chain --- README.md | 2 +- many_abis/assets/utils/chains.json | 36 +++++++++++++++++++++++++++++- setup.py | 2 +- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6cabaed..23ba508 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Many Abis -![Version](https://img.shields.io/badge/many--abis-v0.1.5-green) +![Version](https://img.shields.io/badge/many--abis-v0.1.6-green) ![Pypi](https://img.shields.io/pypi/dm/many-abis) ![GitHub Org's stars](https://img.shields.io/github/stars/ackness/many_abis?style=social) diff --git a/many_abis/assets/utils/chains.json b/many_abis/assets/utils/chains.json index 538bd57..1c93a45 100644 --- a/many_abis/assets/utils/chains.json +++ b/many_abis/assets/utils/chains.json @@ -52,7 +52,7 @@ } }, "explorer": "https://snowtrace.io/", - "name": "Avalanche Network", + "name": "Avalanche C-Chain", "rpc": [ "https://api.avax.network/ext/bc/C/rpc", "https://avalanche.public-rpc.com", @@ -524,5 +524,39 @@ "name": "Wrapped Matic", "symbol": "WMATIC" } + }, + "optimism": { + "chain_id": 10, + "charts": { + "default": "https://dexscreener.com/polygon/{address}", + "dexscreener": "https://dexscreener.com/optimism/{address}" + }, + "dex": { + "uniswap_v3": { + "factory_address": "0x1F98431c8aD98523631AE4a59f267346ea31F984", + "name": "Uniswap V3", + "router_address": "0xE592427A0AEce92De3Edee1F18E0157C05861564", + "website": "https://app.uniswap.org/#/swap" + } + }, + "explorer": "https://optimistic.etherscan.io/", + "name": "Optimism Ethereum L2", + "rpc": [ + "https://mainnet.optimism.io", + "https://rpc.ankr.com/optimism", + "https://1rpc.io/op", + "https://optimism.blockpi.network/v1/rpc/public", + "https://endpoints.omniatech.io/v1/op/mainnet/public" + ], + "stable_coins": { + "DAI": "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1", + "USDC": "0x7F5c764cBc14f9669B88837ca1490cCa17c31607", + "USDT": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58" + }, + "weth": { + "address": "0x4200000000000000000000000000000000000006", + "name": "Wrapped Ether", + "symbol": "WETH" + } } } diff --git a/setup.py b/setup.py index 62febb5..d6924c6 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ package_dir={'many_abis': 'many_abis'}, package_data={'': [ '**/*.abi', '**/*.json']}, - version='0.1.5', + version='0.1.6', license='MIT', description='A simple way to get different DEXs abis for block chains.', long_description=long_description,