Add hardhat task to abacus-deploy (#211)
parent
4d0a7793eb
commit
7eb7e54184
@ -0,0 +1,24 @@ |
||||
import { ethers } from 'ethers'; |
||||
import { NonceManager } from '@ethersproject/experimental'; |
||||
import { |
||||
alfajores, |
||||
kovan, |
||||
mumbai, |
||||
fuji, |
||||
} from '../../../config/networks/testnets'; |
||||
|
||||
export const getChains = () => { |
||||
// Hardhat account 0
|
||||
const key = |
||||
'0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'; |
||||
const provider = new ethers.providers.JsonRpcProvider( |
||||
'http://127.0.0.1:8545/', |
||||
); |
||||
const wallet = new ethers.Wallet(key, provider); |
||||
const signer = new NonceManager(wallet); |
||||
return [alfajores, kovan, fuji, mumbai].map((partial) => { |
||||
partial.overrides = {}; |
||||
partial.confirmations = 1; |
||||
return { ...partial, signer }; |
||||
}); |
||||
}; |
@ -0,0 +1,13 @@ |
||||
import { CoreConfig } from '../../../src/core'; |
||||
|
||||
export const core: CoreConfig = { |
||||
processGas: 850_000, |
||||
reserveGas: 15_000, |
||||
validators: { |
||||
// Hardhat accounts 1-4
|
||||
alfajores: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8', |
||||
fuji: '0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc', |
||||
kovan: '0x90f79bf6eb2c4f870365e785982e1f101e93b906', |
||||
mumbai: '0x15d34aaf54267db7d7c367839aaf71a00a2c6a65', |
||||
}, |
||||
}; |
Loading…
Reference in new issue