Skip to content

Commit

Permalink
[#4] Create SafeProtcolMediator contract
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-ap committed Jun 20, 2023
1 parent bf7c628 commit 31772a6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
35 changes: 35 additions & 0 deletions contracts/SafeProtocolMediator.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity ^0.8.18;
import {ISafeProtocolMediator} from "./interfaces/Mediator.sol";
import {ISafe} from "./interfaces/Accounts.sol";
import "./DataTypes.sol";

/**
* @title
* @notice
*/
contract SafeProtocolMediator is ISafeProtocolMediator {
/**
* @notice TODO
* @param safe TODO
* @param transaction TODO
* @return success TODO
* @return data TODO
*/
function executeTransaction(
ISafe safe,
SafeTransaction calldata transaction
) external view override returns (bool success, bytes memory data) {}

/**
* @notice TODO
* @param safe TODO
* @param rootAccess TODO
* @return success TODO
* @return data TODO
*/
function executeRootAccess(
ISafe safe,
SafeRootAccess calldata rootAccess
) external view override returns (bool success, bytes memory data) {}
}
4 changes: 2 additions & 2 deletions contracts/interfaces/Mediator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ interface ISafeProtocolMediator {
/**
* @notice TODO
* @param safe Instance of a Safe account
* @param tx SafeTransaction instance containing payload information about the transaction
* @param transaction SafeTransaction instance containing payload information about the transaction
* @return success boolean indicating status of execution.
* @return data Arbitrary length bytes data returned upon the successful execution.
* Empty if the call failed.
*/
function executeTransaction(ISafe safe, SafeTransaction calldata tx) external view returns (bool success, bytes memory data);
function executeTransaction(ISafe safe, SafeTransaction calldata transaction) external view returns (bool success, bytes memory data);

/**
* @notice TODO
Expand Down

0 comments on commit 31772a6

Please sign in to comment.