Skip to content

Commit

Permalink
Merge pull request #2 from ackness/v0.1.4
Browse files Browse the repository at this point in the history
add more rpc, add some abis
  • Loading branch information
ackness authored Mar 23, 2023
2 parents a5cd206 + 5f86c86 commit f5d4ca4
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 10 deletions.
5 changes: 4 additions & 1 deletion many_abis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from .chains import *
from .chains._assets import STANDARD_ERC20_TOKEN_ABI as ERC20_ABI
from .chains._assets import WETH_ABI, UNISWAP_V2_ROUTER_ABI, UNISWAP_V2_FACTORY_ABI, UNISWAP_V2_PAIR_ABI
from .chains._assets import STANDARD_ERC721_TOKEN_ABI as ERC721_ABI
from .chains._assets import STANDARD_ERC777_TOKEN_ABI as ERC777_ABI
from .chains._assets import STANDARD_ERC1155_TOKEN_ABI as ERC1155_ABI
from .chains._assets import WETH_ABI, UNISWAP_V2_ROUTER_ABI, UNISWAP_V2_FACTORY_ABI, UNISWAP_V2_PAIR_ABI, UNISWAP_V3_ROUTER_ABI, UNISWAP_V3_QUOTER_ABI, UNISWAP_V3_POOL_ABI, UNISWAP_V3_FACTORY_ABI, UNISWAP_V3_MULTICALL_ABI, UNISWAP_V3_NON_FUNGIBLE_POSITION_MANAGER_ABI
from .utils import *
from .utils.enums.chain_rpc_enum import CHAIN_RPC_API
from .utils.enums.chain_scan_enum import CHAIN_SCAN_API
Expand Down
44 changes: 38 additions & 6 deletions many_abis/chains/_assets.py

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion many_abis/chains/arbitrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
STABLE_COINS = BaseCoin(
{
'USDT': '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
'USDC': '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8'
'USDC': '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
'DAI': '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1',
'TUSD': '0x4D15a3A2286D883AF0AA1B3f21367843FAc63E07'
}
)

Expand All @@ -25,6 +27,9 @@
RPC = BaseRPC(
all=[
'https://arb1.arbitrum.io/rpc',
'https://arbitrum-one.public.blastapi.io',
'https://arbitrum.blockpi.network/v1/rpc/public',
'https://1rpc.io/arb',
]
)

Expand Down
6 changes: 6 additions & 0 deletions many_abis/chains/avax.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
RPC = BaseRPC(
all=[
'https://api.avax.network/ext/bc/C/rpc',
'https://avalanche.public-rpc.com',
'https://rpc.ankr.com/avalanche',
'https://ava-mainnet.public.blastapi.io/ext/bc/C/rpc',
'https://avalanche-c-chain.publicnode.com',
'https://1rpc.io/avax/c',
'https://avalanche.blockpi.network/v1/rpc/public'
]
)

Expand Down
10 changes: 10 additions & 0 deletions many_abis/chains/bsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@
'https://bsc-dataseed2.ninicoin.io/',
'https://bsc-dataseed3.ninicoin.io/',
'https://bsc-dataseed4.ninicoin.io/',
'https://rpc-bsc.48.club',
'https://koge-rpc-bsc.48.club',
'https://rpc.ankr.com/bsc',
'https://bscrpc.com',
'https://binance.nodereal.io',
'https://1rpc.io/bnb',
'https://bsc.rpc.blxrbdn.com',
'https://bsc.blockpi.network/v1/rpc/public',
'https://bnb.api.onfinality.io/public',
'https://bsc.publicnode.com'
]
)

Expand Down
1 change: 1 addition & 0 deletions many_abis/chains/bsc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
'https://data-seed-prebsc-2-s2.binance.org:8545/',
'https://data-seed-prebsc-1-s3.binance.org:8545/',
'https://data-seed-prebsc-2-s3.binance.org:8545/',
'https://bsc-testnet.public.blastapi.io',
]
)

Expand Down
4 changes: 3 additions & 1 deletion many_abis/chains/cronos.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
'https://evm-cronos.crypto.org',
'https://evm.cronos.org',
'https://cronosrpc-1.xstaking.sg',
'https://cronos-rpc.elk.finance'
'https://cronos-rpc.elk.finance',
'https://cronos-evm.publicnode.com',
'https://node.croswap.com/rpc'
]
)

Expand Down
14 changes: 14 additions & 0 deletions many_abis/chains/eth.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@
RPC = BaseRPC(
all=[
'https://cloudflare-eth.com',
'https://eth.llamarpc.com',
'https://rpc.ankr.com/eth',
'https://ethereum.publicnode.com',
'https://1rpc.io/eth',
'https://rpc.builder0x69.io',
'https://rpc.flashbots.net',
'https://virginia.rpc.blxrbdn.com',
'https://uk.rpc.blxrbdn.com',
'https://singapore.rpc.blxrbdn.com',
'https://eth.rpc.blxrbdn.com',
'https://api.securerpc.com/v1',
'https://eth-rpc.gateway.pokt.network',
'https://rpc.payload.de',
'https://eth.api.onfinality.io/public',
]
)

Expand Down
10 changes: 10 additions & 0 deletions many_abis/chains/fantom.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
RPC = BaseRPC(
all=[
'https://rpc.ftm.tools',
'https://rpcapi.fantom.network',
'https://rpc.ankr.com/fantom',
'https://rpc.fantom.network',
'https://rpc2.fantom.network',
'https://rpc3.fantom.network',
'https://1rpc.io/ftm',
'https://fantom-mainnet.public.blastapi.io',
'https://fantom.blockpi.network/v1/rpc/public',
'https://fantom.publicnode.com',
'https://fantom.api.onfinality.io/public'
]
)

Expand Down
4 changes: 4 additions & 0 deletions many_abis/chains/moonriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
RPC = BaseRPC(
all=[
'https://rpc.moonriver.moonbeam.network',
'https://moonriver.public.blastapi.io',
'https://rpc.api.moonriver.moonbeam.network',
'https://moonriver.api.onfinality.io/public',
'https://moonriver.unitedbloc.com:2000'
]
)

Expand Down
11 changes: 11 additions & 0 deletions many_abis/chains/polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
'https://matic-mainnet.chainstacklabs.com',
'https://matic-mainnet-full-rpc.bwarelabs.com',
'https://matic-mainnet-archive-rpc.bwarelabs.com',
'https://polygon.llamarpc.com',
'https://polygon-rpc.com',
'https://matic-mainnet.chainstacklabs.com',
'https://poly-rpc.gateway.pokt.network',
'https://rpc.ankr.com/polygon',
'https://polygon-mainnet.public.blastapi.io',
'https://1rpc.io/matic',
'https://polygon-bor.publicnode.com',
'https://polygon.blockpi.network/v1/rpc/public',
'https://polygon.api.onfinality.io/public',
'https://polygon.rpc.blxrbdn.com'
]
)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name='many_abis',
packages=find_packages(),
version='0.1.3',
version='0.1.4',
license='MIT',
description='A simple way to get different DEXs abis for block chains.',
author='Yong',
Expand Down

0 comments on commit f5d4ca4

Please sign in to comment.