-
Notifications
You must be signed in to change notification settings - Fork 646
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix deployment of v0.7 - new package version - move test contracts to separate deployment script, deploy only on testnet - add deploy param --simpleAccountFactory - use env SALT - remove typechain output from contracts package
- Loading branch information
1 parent
8086e7b
commit 7af70c8
Showing
11 changed files
with
58 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,20 @@ | ||
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 | ||
deterministicDeployment: process.env.SALT ?? true, | ||
log: true | ||
}) | ||
console.log('==entrypoint addr=', ret.address) | ||
|
||
const entryPointAddress = ret.address | ||
const w = await hre.deployments.deploy( | ||
'SimpleAccount', { | ||
from, | ||
args: [entryPointAddress], | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters