-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into add-pairing-precompile
- Loading branch information
Showing
6 changed files
with
72 additions
and
9 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
29 changes: 29 additions & 0 deletions
29
core/tests/ts-integration/contracts/custom-account/interfaces/ICreate2Factory.sol
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
import {IContractDeployer} from "./IContractDeployer.sol"; | ||
|
||
/// @custom:security-contact [email protected] | ||
/// @author Matter Labs | ||
/// @notice The interface for the contract that can be used for deterministic contract deployment. | ||
interface ICreate2Factory { | ||
/// @notice Function that calls the `create2` method of the `ContractDeployer` contract. | ||
/// @dev This function accepts the same parameters as the `create2` function of the ContractDeployer system contract, | ||
/// so that we could efficiently relay the calldata. | ||
function create2( | ||
bytes32 _salt, | ||
bytes32 _bytecodeHash, | ||
bytes calldata _input | ||
) external payable returns (address); | ||
|
||
/// @notice Function that calls the `create2Account` method of the `ContractDeployer` contract. | ||
/// @dev This function accepts the same parameters as the `create2Account` function of the ContractDeployer system contract, | ||
/// so that we could efficiently relay the calldata. | ||
function create2Account( | ||
bytes32 _salt, | ||
bytes32 _bytecodeHash, | ||
bytes calldata _input, | ||
IContractDeployer.AccountAbstractionVersion | ||
) external payable returns (address); | ||
} |
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