-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/use oracle aggregator as base of token paymaster
- Loading branch information
1 parent
7a54837
commit a79b1ff
Showing
12 changed files
with
272 additions
and
887 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
TokenPaymasterTest:test2TokenPaymasterFailInvalidPaymasteDataLength() (gas: 290827) | ||
TokenPaymasterTest:testCall() (gas: 130858) | ||
TokenPaymasterTest:testCheckStates() (gas: 18671) | ||
TokenPaymasterTest:testDeploy() (gas: 1747334) | ||
TokenPaymasterTest:testOwnershipTransfer() (gas: 23467) | ||
TokenPaymasterTest:testTokenPaymasterFailHighPriceMarkup() (gas: 316351) | ||
TokenPaymasterTest:testTokenPaymasterFailInvalidPMSignature() (gas: 301461) | ||
TokenPaymasterTest:testTokenPaymasterFailInvalidPaymasteDataLength() (gas: 230994) | ||
TokenPaymasterTest:testTokenPaymasterFailWrongPMSignature() (gas: 308406) | ||
TokenPaymasterTest:testTokenPaymasterRefund() (gas: 252390) | ||
TokenPaymasterTest:test2TokenPaymasterFailInvalidPaymasteDataLength() (gas: 290897) | ||
TokenPaymasterTest:testCall() (gas: 130863) | ||
TokenPaymasterTest:testCheckStates() (gas: 18825) | ||
TokenPaymasterTest:testDeploy() (gas: 1962230) | ||
TokenPaymasterTest:testOwnershipTransfer() (gas: 23621) | ||
TokenPaymasterTest:testTokenPaymasterFailHighPriceMarkup() (gas: 313496) | ||
TokenPaymasterTest:testTokenPaymasterFailInvalidPMSignature() (gas: 298972) | ||
TokenPaymasterTest:testTokenPaymasterFailInvalidPaymasteDataLength() (gas: 231048) | ||
TokenPaymasterTest:testTokenPaymasterFailWrongPMSignature() (gas: 305920) | ||
TokenPaymasterTest:testTokenPaymasterRefund() (gas: 241780) | ||
TokenPaymasterTest:testWithdrawERC20(uint256) (runs: 256, μ: 61732, ~: 63991) | ||
TokenPaymasterTest:testWithdrawERC20FailNotOwner(uint256) (runs: 256, μ: 48754, ~: 50883) |
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,18 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
interface IPriceOracle { | ||
function latestRoundData() | ||
external | ||
view | ||
returns ( | ||
uint80 roundId, | ||
int256 answer, | ||
uint256 startedAt, | ||
uint256 updatedAt, | ||
uint80 answeredInRound | ||
); | ||
|
||
function getThePrice() external view returns (int256); | ||
} | ||
|
Oops, something went wrong.