Skip to content

Commit 719e09a

Browse files
Update docs/demos to use Etherscan v2 endpoints (#1298)
1 parent df08b4e commit 719e09a

File tree

11 files changed

+15
-11
lines changed

11 files changed

+15
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Releases prior to 7.0 has been removed from this file to declutter search result
88

99
## [Unreleased]
1010

11+
### Fixed
12+
13+
- demos: Use Etherscan v2 API endpoints in EVM templates.
14+
1115
### Changed
1216

1317
- cli: Don't notify about new framework versions available.

docs/10.supported-networks/0.overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ datasources:
2929
url: ${SUBSQUID_URL:-https://v2.archive.subsquid.io/network/ethereum-mainnet}
3030
etherscan:
3131
kind: evm.etherscan
32-
url: ${ETHERSCAN_URL:-https://api.etherscan.io/api}
32+
url: ${ETHERSCAN_URL:-https://api.etherscan.io/v2/api?chainId=1}
3333
api_key: ${ETHERSCAN_API_KEY:-''}
3434
evm_node:
3535
kind: evm.node

docs/10.supported-networks/16.ethereum.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Explorer: [Etherscan](https://etherscan.io/)
1616
| datasource | status | URLs |
1717
| -----------------:|:-------- | -------------------------------------------------------------------------------- |
1818
| **evm.subsquid** | 🟢 works | `https://v2.archive.subsquid.io/network/ethereum-mainnet` |
19-
| **evm.etherscan** | 🟢 works | `https://api.etherscan.io/api` |
19+
| **evm.etherscan** | 🟢 works | `https://api.etherscan.io/v2/api?chainId=1` |
2020
| **evm.node** | 🟢 works | `https://eth-mainnet.g.alchemy.com/v2` <br> `wss://eth-mainnet.g.alchemy.com/v2` |
2121

2222
### Ethereum Goerli

docs/3.datasources/3.evm_etherscan.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To use this datasource, add the following section in config:
1818
datasources:
1919
etherscan:
2020
kind: evm.etherscan
21-
url: ${ETHERSCAN_URL:-https://api.etherscan.io/api}
21+
url: ${ETHERSCAN_URL:-https://api.etherscan.io/v2/api?chainId=1}
2222
api_key: ${ETHERSCAN_API_KEY:-''}
2323
```
2424
@@ -40,7 +40,7 @@ If you have an Etherscan API key, you can set it in config. You may also want to
4040
```yaml [dipdup.yaml]
4141
etherscan:
4242
kind: evm.etherscan
43-
url: ${ETHERSCAN_URL:-https://api.etherscan.io/api}
43+
url: ${ETHERSCAN_URL:-https://api.etherscan.io/v2/api?chainId=1}
4444
api_key: ${ETHERSCAN_API_KEY:-''}
4545
http:
4646
ratelimit_period: 1

src/demo_evm_events/dipdup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ datasources:
77
url: ${SUBSQUID_URL:-https://v2.archive.subsquid.io/network/ethereum-mainnet}
88
etherscan:
99
kind: evm.etherscan
10-
url: ${ETHERSCAN_URL:-https://api.etherscan.io/api}
10+
url: ${ETHERSCAN_URL:-https://api.etherscan.io/v2/api?chainId=1}
1111
api_key: ${ETHERSCAN_API_KEY:-''}
1212
evm_node:
1313
kind: evm.node

src/demo_evm_transactions/dipdup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ datasources:
77
url: ${SUBSQUID_URL:-https://v2.archive.subsquid.io/network/ethereum-mainnet}
88
etherscan:
99
kind: evm.etherscan
10-
url: ${ETHERSCAN_URL:-https://api.etherscan.io/api}
10+
url: ${ETHERSCAN_URL:-https://api.etherscan.io/v2/api?chainId=1}
1111
api_key: ${ETHERSCAN_API_KEY:-''}
1212
evm_node:
1313
kind: evm.node

src/demo_evm_uniswap/dipdup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ datasources:
77
url: ${SUBSQUID_URL:-https://v2.archive.subsquid.io/network/ethereum-mainnet}
88
etherscan:
99
kind: evm.etherscan
10-
url: ${ETHERSCAN_URL:-https://api.etherscan.io/api}
10+
url: ${ETHERSCAN_URL:-https://api.etherscan.io/v2/api?chainId=1}
1111
api_key: ${ETHERSCAN_API_KEY:-''}
1212
evm_node:
1313
kind: evm.node

src/dipdup/projects/demo_evm_events/dipdup.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ datasources:
77
url: ${SUBSQUID_URL:-https://v2.archive.subsquid.io/network/ethereum-mainnet}
88
etherscan:
99
kind: evm.etherscan
10-
url: ${ETHERSCAN_URL:-https://api.etherscan.io/api}
10+
url: ${ETHERSCAN_URL:-https://api.etherscan.io/v2/api?chainId=1}
1111
api_key: ${ETHERSCAN_API_KEY:-''}
1212
evm_node:
1313
kind: evm.node

src/dipdup/projects/demo_evm_transactions/dipdup.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ datasources:
77
url: ${SUBSQUID_URL:-https://v2.archive.subsquid.io/network/ethereum-mainnet}
88
etherscan:
99
kind: evm.etherscan
10-
url: ${ETHERSCAN_URL:-https://api.etherscan.io/api}
10+
url: ${ETHERSCAN_URL:-https://api.etherscan.io/v2/api?chainId=1}
1111
api_key: ${ETHERSCAN_API_KEY:-''}
1212
evm_node:
1313
kind: evm.node

src/dipdup/projects/demo_evm_uniswap/dipdup.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ datasources:
77
url: ${SUBSQUID_URL:-https://v2.archive.subsquid.io/network/ethereum-mainnet}
88
etherscan:
99
kind: evm.etherscan
10-
url: ${ETHERSCAN_URL:-https://api.etherscan.io/api}
10+
url: ${ETHERSCAN_URL:-https://api.etherscan.io/v2/api?chainId=1}
1111
api_key: ${ETHERSCAN_API_KEY:-''}
1212
evm_node:
1313
kind: evm.node

0 commit comments

Comments
 (0)