You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.2 KiB
67 lines
1.2 KiB
pragma solidity ^0.4.24;
|
|
|
|
import "../drafts/SignatureBouncer.sol";
|
|
import "./SignerRoleMock.sol";
|
|
|
|
|
|
contract SignatureBouncerMock is SignatureBouncer, SignerRoleMock {
|
|
function checkValidSignature(address _address, bytes _signature)
|
|
public
|
|
view
|
|
returns (bool)
|
|
{
|
|
return _isValidSignature(_address, _signature);
|
|
}
|
|
|
|
function onlyWithValidSignature(bytes _signature)
|
|
public
|
|
onlyValidSignature(_signature)
|
|
view
|
|
{
|
|
|
|
}
|
|
|
|
function checkValidSignatureAndMethod(address _address, bytes _signature)
|
|
public
|
|
view
|
|
returns (bool)
|
|
{
|
|
return _isValidSignatureAndMethod(_address, _signature);
|
|
}
|
|
|
|
function onlyWithValidSignatureAndMethod(bytes _signature)
|
|
public
|
|
onlyValidSignatureAndMethod(_signature)
|
|
view
|
|
{
|
|
|
|
}
|
|
|
|
function checkValidSignatureAndData(
|
|
address _address,
|
|
bytes,
|
|
uint,
|
|
bytes _signature
|
|
)
|
|
public
|
|
view
|
|
returns (bool)
|
|
{
|
|
return _isValidSignatureAndData(_address, _signature);
|
|
}
|
|
|
|
function onlyWithValidSignatureAndData(uint, bytes _signature)
|
|
public
|
|
onlyValidSignatureAndData(_signature)
|
|
view
|
|
{
|
|
|
|
}
|
|
|
|
function theWrongMethod(bytes)
|
|
public
|
|
pure
|
|
{
|
|
|
|
}
|
|
}
|
|
|