From 54347db73d517022244d689f31dcf998e2e26d01 Mon Sep 17 00:00:00 2001 From: Guilherme Dantas Date: Thu, 4 Apr 2024 17:46:49 -0300 Subject: [PATCH] feat: define delegatecall vouchers --- contracts/common/Outputs.sol | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contracts/common/Outputs.sol b/contracts/common/Outputs.sol index 8533adc2..3d933316 100644 --- a/contracts/common/Outputs.sol +++ b/contracts/common/Outputs.sol @@ -22,4 +22,14 @@ interface Outputs { uint256 value, bytes calldata payload ) external; + + /// @notice A single-use permission to execute a specific delegate call + /// from the context of the application contract. + /// @param destination The address that will be called + /// @param payload The payload, which—in the case of Solidity + /// libraries—encodes a function call + function DelegateCallVoucher( + address destination, + bytes calldata payload + ) external; }