forked from pancakeswap/pancake-v3-contracts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathv3-verify.mjs
28 lines (20 loc) · 885 Bytes
/
v3-verify.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env zx
// import 'zx/globals'
const networks = {
eth: 'eth',
goerli: 'goerli',
bscMainnet: 'bscMainnet',
bscTestnet: 'bscTestnet',
hardhat: 'hardhat',
}
let network = process.env.NETWORK
console.log(network, 'network')
if (!network || !networks[network]) {
throw new Error(`env NETWORK: ${network}`)
}
await $`yarn workspace @pancakeswap/v3-core run hardhat run scripts/verify.ts --network ${network}`
await $`yarn workspace @pancakeswap/v3-periphery run hardhat run scripts/verify.ts --network ${network}`
await $`yarn workspace @pancakeswap/smart-router run hardhat run scripts/verify.ts --network ${network}`
await $`yarn workspace @pancakeswap/masterchef-v3 run hardhat run scripts/verify.ts --network ${network}`
await $`yarn workspace @pancakeswap/v3-lm-pool run hardhat run scripts/verify.ts --network ${network}`
console.log(chalk.blue('Done!'))