Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Smart contracts must be compiled to [Zksync VM](https://docs.zksync.io/zksync-pr
mode = "3"

[etherscan]
abstractTestnet = { chain = "11124", url = "https://api-sepolia.abscan.org/api", key = "TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD"}
abstractMainnet = { chain = "2741", url = "https://api.abscan.org/api", key = ""}
abstractTestnet = { chain = "11124", url = "https://api.etherscan.io/v2/api?chainid=11124", key = "TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD"}
abstractMainnet = { chain = "2741", url = "https://api.etherscan.io/v2/api?chainid=2741", key = ""}
```

</Step>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ forge create src/Counter.sol:Counter \
--zksync \
--verify \
--verifier etherscan \
--verifier-url https://api-sepolia.abscan.org/api \
--etherscan-api-key TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD
--verifier-url https://api.etherscan.io/v2/api?chainid=11124 \
--etherscan-api-key <your-etherscan-api-key>
```

```bash Mainnet
Expand All @@ -54,8 +54,8 @@ forge create src/Counter.sol:Counter \
--zksync \
--verify \
--verifier etherscan \
--verifier-url https://api.abscan.org/api \
--etherscan-api-key <your-abscan-api-key>
--verifier-url https://api.etherscan.io/v2/api?chainid=2741 \
--etherscan-api-key <your-etherscan-api-key>
```

</CodeGroup>
Expand Down Expand Up @@ -89,8 +89,8 @@ forge create src/Counter.sol:Counter \
--constructor-args 1000000000000000000 0x9C073184e74Af6D10DF575e724DC4712D98976aC \
--verify \
--verifier etherscan \
--verifier-url https://api-sepolia.abscan.org/api \
--etherscan-api-key TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD
--verifier-url https://api.etherscan.io/v2/api?chainid=11124 \
--etherscan-api-key <your-etherscan-api-key>
```

```bash Mainnet
Expand All @@ -102,8 +102,8 @@ forge create src/Counter.sol:Counter \
--constructor-args 1000000000000000000 0x9C073184e74Af6D10DF575e724DC4712D98976aC \
--verify \
--verifier etherscan \
--verifier-url https://api.abscan.org/api \
--etherscan-api-key <your-abscan-api-key>
--verifier-url https://api.etherscan.io/v2/api?chainid=2741 \
--etherscan-api-key <your-etherscan-api-key>
```

</CodeGroup>
Expand Down
10 changes: 5 additions & 5 deletions build-on-abstract/smart-contracts/foundry/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fallback_oz = true
enable_eravm_extensions = true # Note: System contract calls (NonceHolder and ContractDeployer) can only be called with this set to true

[etherscan]
abstractTestnet = { chain = "11124", url = "https://api-sepolia.abscan.org/api", key = "TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD"}
abstractTestnet = { chain = "11124", url = "https://api.etherscan.io/v2/api?chainid=11124", key = ""}
abstractMainnet = { chain = "2741", url = "", key = ""} # You can replace these values or leave them blank to override via CLI
```

Expand Down Expand Up @@ -187,8 +187,8 @@ forge create src/Counter.sol:Counter \
--zksync \
--verify \
--verifier etherscan \
--verifier-url https://api-sepolia.abscan.org/api \
--etherscan-api-key TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD \
--verifier-url https://api.etherscan.io/v2/api?chainid=11124 \
--etherscan-api-key <your-etherscan-api-key> \
--broadcast
```

Expand All @@ -200,8 +200,8 @@ forge create src/Counter.sol:Counter \
--zksync \
--verify \
--verifier etherscan \
--verifier-url https://api.abscan.org/api \
--etherscan-api-key <your-abscan-api-key> \
--verifier-url https://api.etherscan.io/v2/api?chainid=2741 \
--etherscan-api-key <your-etherscan-api-key> \
--broadcast
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ Verify an existing contract by running the following command:
forge verify-contract 0x85717893A18F255285AB48d7bE245ddcD047dEAE \
src/Counter.sol:Counter \
--verifier etherscan \
--verifier-url https://api-sepolia.abscan.org/api \
--etherscan-api-key TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD \
--verifier-url https://api.etherscan.io/v2/api?chainid=11124 \
--etherscan-api-key <your-etherscan-api-key> \
--zksync
```

```bash Mainnet
forge verify-contract 0x85717893A18F255285AB48d7bE245ddcD047dEAE \
src/Counter.sol:Counter \
--verifier etherscan \
--verifier-url https://api.abscan.org/api \
--etherscan-api-key <your-abscan-api-key-here> \
--verifier-url https://api.etherscan.io/v2/api?chainid=2741 \
--etherscan-api-key <your-etherscan-api-key> \
--zksync
```

Expand Down
4 changes: 2 additions & 2 deletions build-on-abstract/smart-contracts/hardhat/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ const config: HardhatUserConfig = {
network: "abstractTestnet",
chainId: 11124,
urls: {
apiURL: "https://api-sepolia.abscan.org/api",
apiURL: "https://api.etherscan.io/v2/api?chainid=11124",
browserURL: "https://sepolia.abscan.org/",
},
},
{
network: "abstractMainnet",
chainId: 2741,
urls: {
apiURL: "https://api.abscan.org/api",
apiURL: "https://api.etherscan.io/v2/api?chainid=2741",
browserURL: "https://abscan.org/",
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ const config: HardhatUserConfig = {
network: "abstractTestnet",
chainId: 11124,
urls: {
apiURL: "https://api-sepolia.abscan.org/api",
apiURL: "https://api.etherscan.io/v2/api?chainid=11124",
browserURL: "https://sepolia.abscan.org/",
},
},
{
network: "abstractMainnet",
chainId: 2741,
urls: {
apiURL: "https://api.abscan.org/api",
apiURL: "https://api.etherscan.io/v2/api?chainid=2741",
browserURL: "https://abscan.org/",
},
},
Expand Down
2 changes: 1 addition & 1 deletion connect-to-abstract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ Use the information below to connect and submit transactions to Abstract.
| RPC URL | `https://api.mainnet.abs.xyz` | `https://api.testnet.abs.xyz` |
| RPC URL (Websocket) | `wss://api.mainnet.abs.xyz/ws` | `wss://api.testnet.abs.xyz/ws` |
| Explorer | `https://abscan.org/` | `https://sepolia.abscan.org/` |
| Verify URL | `https://api.abscan.org/api` | `https://api-sepolia.abscan.org/api` |
| Verify URL | `https://api.etherscan.io/v2/api?chainid=2741` | `https://api.etherscan.io/v2/api?chainid=11124` |
| Currency Symbol | ETH | ETH |
4 changes: 2 additions & 2 deletions cookbook/random-number-generation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ Test your game contract behaviour with Absmate's mock contracts.
--broadcast \
--verify \
--verifier etherscan \
--verifier-url https://api-sepolia.abscan.org/api \
--etherscan-api-key TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD
--verifier-url https://api.etherscan.io/v2/api?chainid=11124 \
--etherscan-api-key <your-etherscan-api-key>
```
</Step>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ fallback_oz = true
enable_eravm_extensions = true # Note: System contract calls (NonceHolder and ContractDeployer) can only be called with this set to true

[etherscan]
abstractTestnet = { chain = "11124", url = "https://api-sepolia.abscan.org/api", key = "TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD"}
abstractTestnet = { chain = "11124", url = "https://api.etherscan.io/v2/api?chainid=11124", key = ""}
abstractMainnet = { chain = "2741", url = "", key = ""} # You can replace these values or leave them blank to override via CLI
```

Expand Down