Skip to content

Commit

Permalink
Merge e38b46d into 8d40fea
Browse files Browse the repository at this point in the history
  • Loading branch information
facuspagnuolo committed Jun 12, 2020
2 parents 8d40fea + e38b46d commit b61b868
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 18 deletions.
18 changes: 0 additions & 18 deletions contracts/common/IForwarder.sol

This file was deleted.

14 changes: 14 additions & 0 deletions contracts/forwarding/IForwarder.sol
@@ -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.
14 changes: 14 additions & 0 deletions contracts/forwarding/IForwarderPayable.sol
@@ -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;
}
13 changes: 13 additions & 0 deletions contracts/forwarding/IForwarderV2.sol
@@ -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;
}

0 comments on commit b61b868

Please sign in to comment.