Skip to content

Commit fe1f118

Browse files
Trying to get verification working
1 parent 4f78801 commit fe1f118

File tree

1 file changed

+34
-29
lines changed

1 file changed

+34
-29
lines changed

docs/tutorials/marketpulse/deploy.md

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -113,44 +113,49 @@ Deploy the contract locally is fine for doing simple tests, but we recommend to
113113
type: "edr-simulated",
114114
chainType: "op",
115115
},
116-
sepolia: {
117-
type: "http",
118-
chainType: "l1",
119-
url: configVariable("SEPOLIA_RPC_URL"),
120-
accounts: [configVariable("SEPOLIA_PRIVATE_KEY")],
121-
},
122116
etherlinkMainnet: {
117+
type: "http",
123118
url: "https://node.mainnet.etherlink.com",
124119
accounts: [deployerPrivateKey],
125120
},
126-
etherlinkTestnet: {
121+
etherlinkShadownet: {
122+
type: "http",
127123
url: "https://node.shadownet.etherlink.com",
128124
accounts: [deployerPrivateKey],
129125
},
130126
},
131-
etherscan: {
132-
apiKey: {
133-
etherlinkMainnet: "DUMMY",
134-
etherlinkTestnet: "DUMMY",
135-
},
136-
customChains: [
137-
{
138-
network: "etherlinkMainnet",
139-
chainId: 42793,
140-
urls: {
141-
apiURL: "https://explorer.etherlink.com/api",
142-
browserURL: "https://explorer.etherlink.com",
127+
chainDescriptors: {
128+
127123: {
129+
chainType: "generic",
130+
name: "etherlinkShadownet",
131+
blockExplorers: {
132+
etherscan: {
133+
name: "EtherlinkExplorer",
134+
apiUrl: "https://shadownet.explorer.etherlink.com/api",
135+
url: "https://shadownet.explorer.etherlink.com",
143136
},
144-
},
145-
{
146-
network: "etherlinkTestnet",
147-
chainId: 127123,
148-
urls: {
149-
apiURL: "https://shadownet.explorer.etherlink.com/api",
150-
browserURL: "https://shadownet.explorer.etherlink.com",
137+
blockscout: {
138+
name: "EtherlinkExplorer",
139+
apiUrl: "https://shadownet.explorer.etherlink.com/api",
140+
url: "https://shadownet.explorer.etherlink.com",
151141
},
152142
},
153-
],
143+
},
144+
42793: {
145+
name: "EtherlinkMainnet",
146+
}
147+
},
148+
verify: {
149+
blockscout: {
150+
enabled: true,
151+
},
152+
etherscan: {
153+
apiKey: "DUMMY",
154+
enabled: true,
155+
},
156+
sourcify: {
157+
enabled: false,
158+
}
154159
}
155160
});
156161
```
@@ -168,7 +173,7 @@ Deploy the contract locally is fine for doing simple tests, but we recommend to
168173
1. Deploy the contract to Etherlink Shadownet Testnet network specifying the `--network` option:
169174
170175
```bash
171-
npx hardhat ignition deploy ignition/modules/Marketpulse.ts --network etherlinkTestnet
176+
npx hardhat ignition deploy ignition/modules/Marketpulse.ts --network etherlinkShadownet
172177
```
173178
174179
A successful output should look like this:
@@ -194,7 +199,7 @@ Deploy the contract locally is fine for doing simple tests, but we recommend to
194199
1. Run this command to verify your deployed contract, using the contract address as the value of `<CONTRACT_ADDRESS>`:
195200
196201
```bash
197-
npx hardhat verify --network etherlinkTestnet <CONTRACT_ADDRESS>
202+
npx hardhat verify --network etherlinkShadownet <CONTRACT_ADDRESS>
198203
```
199204
200205
The response should include the message "Successfully verified contract Marketpulse on the block explorer" and a link to the block explorer.

0 commit comments

Comments
 (0)