Files
zk-account-abstraction/deploy/deploy_entrypoint.ts
Dror Tirosh 976d3f2758 AA-91 factories (#151)
* fix factories

BLSFactory use same model as SimpleAccount, using immutable wallet and
only user-specific params in initializer
add factory for TestAggregatedAccount sapmle contract
Create2Factory - use arachnid's de-facto standard deployer, instead of of
the nonstandard EIP2470 (specifically, arachnid's deployer revert on errors)

* gnosis account factory
now Gnosis-Safe  based account uses only standard gnosis contracts. The new GnosisSafeAcccountFactory only wraps the standard GnosisSafeProxyFactory to create the proxy (and initialize it with our modules)
2022-12-20 20:35:08 +02:00

40 lines
1.1 KiB
TypeScript

import { HardhatRuntimeEnvironment } from 'hardhat/types'
import { DeployFunction } from 'hardhat-deploy/types'
import { Create2Factory } from '../src/Create2Factory'
import { ethers } from 'hardhat'
const deployEntryPoint: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const provider = ethers.provider
const from = await provider.getSigner().getAddress()
await new Create2Factory(ethers.provider).deployFactory()
const ret = await hre.deployments.deploy(
'EntryPoint', {
from,
args: [],
gasLimit: 6e6,
deterministicDeployment: true
})
console.log('==entrypoint addr=', ret.address)
/*
const entryPointAddress = ret.address
const w = await hre.deployments.deploy(
'SimpleAccount', {
from,
args: [entryPointAddress, from],
gasLimit: 2e6,
deterministicDeployment: true
})
console.log('== wallet=', w.address)
const t = await hre.deployments.deploy('TestCounter', {
from,
deterministicDeployment: true
})
console.log('==testCounter=', t.address)
*/
}
export default deployEntryPoint