-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
330 additions
and
84 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 |
---|---|---|
|
@@ -142,4 +142,4 @@ benchmark.md | |
/userdocs | ||
|
||
# test temporary folder | ||
/.test | ||
/.test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import { | ||
LSP25MultiChannelNonce | ||
} from "../LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol"; | ||
|
||
/** | ||
* @dev This contract is used only for testing the internal functions. | ||
*/ | ||
contract LSP25MultiChannelNonceTester is LSP25MultiChannelNonce { | ||
function getNonce( | ||
address from, | ||
uint128 channelId | ||
) public view returns (uint256 idx) { | ||
return _getNonce(from, channelId); | ||
} | ||
|
||
function recoverSignerFromLSP25Signature( | ||
bytes memory signature, | ||
uint256 nonce, | ||
uint256 validityTimestamps, | ||
uint256 msgValue, | ||
bytes calldata callData | ||
) public view returns (address) { | ||
return | ||
_recoverSignerFromLSP25Signature( | ||
signature, | ||
nonce, | ||
validityTimestamps, | ||
msgValue, | ||
callData | ||
); | ||
} | ||
|
||
function verifyValidityTimestamps(uint256 validityTimestamps) public view { | ||
return _verifyValidityTimestamps(validityTimestamps); | ||
} | ||
|
||
function isValidNonce( | ||
address from, | ||
uint256 nonce | ||
) public view returns (bool) { | ||
return _isValidNonce(from, nonce); | ||
} | ||
} |
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
Oops, something went wrong.