Skip to content

Commit

Permalink
Scroll and berachain test, exception on source code not verified
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Bobrikov <[email protected]>
  • Loading branch information
Wizard1209 and Vladimir Bobrikov authored Mar 6, 2024
1 parent bf09a9d commit cee8832
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/5.advanced/6.evm-networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ Explorer: [Beratrail](https://artio.beratrail.io/)

| datasource | supported | URLs |
| -----------------:|:------------- | --------------------------------------------------------------------- |
| **evm.subsquid** | 🤔 not tested | `https://v2.archive.subsquid.io/network/berachain-artio` |
| **abi.etherscan** | 🤔 not tested | `https://api.routescan.io/v2/network/testnet/evm/43114/etherscan/api` |
| **evm.subsquid** | 🟢 yes | `https://v2.archive.subsquid.io/network/berachain-artio` |
| **abi.etherscan** | 🟢 yes | `https://api.routescan.io/v2/network/testnet/evm/80085/etherscan/api` |
| **evm.node** | 🤔 not tested | |

### Binance Smart Chain
Expand Down Expand Up @@ -509,8 +509,8 @@ Explorer: [Scrollscan](https://scrollscan.com/)
| datasource | supported | URLs |
| -----------------:|:------------- | -------------------------------- |
| **evm.subsquid** | 🔴 no API | N/A |
| **abi.etherscan** | 🤔 not tested | `https://api.scrollscan.com/api` |
| **evm.node** | 🤔 not tested | `https://rpc.scroll.io` |
| **abi.etherscan** | 🟢 yes | `https://api.scrollscan.com/api` |
| **evm.node** | 🟡 HTTP only | `https://rpc.scroll.io` |

### Shibuya Testnet

Expand Down
4 changes: 4 additions & 0 deletions src/dipdup/datasources/abi_etherscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ async def get_abi(self, address: str) -> dict[str, Any]:
self._logger.warning('Ratelimited; sleeping %s seconds', self._http_config.ratelimit_sleep)
await asyncio.sleep(self._http_config.retry_sleep)
continue
if isinstance(result, str) and 'Contract source code not verified' in result:
raise DatasourceError(
'ABI is not verified in the etherscan, please put ABI manually; message: %s' % result, self.name
)

return cast(dict[str, Any], orjson.loads(result))

Expand Down

0 comments on commit cee8832

Please sign in to comment.