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
5 changed files
with
41 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
/* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
pragma solidity ^0.4.24; | ||
|
||
|
||
interface IForwarder { | ||
function isForwarder() external pure returns (bool); | ||
|
||
function canForward(address sender, bytes evmCallScript) external view returns (bool); | ||
|
||
function forward(bytes evmCallScript) external; | ||
} |
File renamed without changes.
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,14 @@ | ||
/* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
pragma solidity ^0.4.24; | ||
|
||
|
||
interface IForwarderPayable { | ||
function isForwarder() external pure returns (bool); | ||
|
||
function canForward(address sender, bytes evmCallScript) external view returns (bool); | ||
|
||
function forward(bytes evmCallScript) external payable; | ||
} |
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,13 @@ | ||
/* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
pragma solidity ^0.4.24; | ||
|
||
import "./IForwarderPayable.sol"; | ||
|
||
|
||
// TODO: Cannot inherit interfaces in Solidity 0.4.24 | ||
contract IForwarderV2 is IForwarderPayable { | ||
function forward(bytes evmCallScript, bytes context) external payable; | ||
} |