-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support latest entrypoint (#13)
* feat: support latest entrypoint feat: remove oracle from paymaster * fix: add TokenPriceOracle to test contracts
- Loading branch information
1 parent
aafb5a9
commit f7131da
Showing
7 changed files
with
58 additions
and
97 deletions.
There are no files selected for viewing
Submodule @account-abstraction
updated
36 files
Submodule @safe-contracts
updated
from 9edb94 to 345b6e
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.12; | ||
|
||
/// @author CandideWallet Team | ||
|
||
import "@account-abstraction/contracts/samples/IOracle.sol"; | ||
|
||
contract TokenPriceOracle is IOracle{ | ||
|
||
/** | ||
* return amount of tokens that are required to receive that much eth. | ||
*/ | ||
function getTokenValueOfEth(uint256 ethOutput) external view returns (uint256 tokenInput){ | ||
return 1; | ||
} | ||
} |
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