ICoprocessorOutputs

Git Source

Defines the outputs that can be generated by a coprocessor

Functions

Notice

Emits a notice event with the given payload

function Notice(bytes calldata payload) external;

Parameters

NameTypeDescription
payloadbytesThe ABI-encoded payload containing notice data

Voucher

Issues a voucher to execute a specific action

function Voucher(address destination, uint256 value, bytes calldata payload) external;

Parameters

NameTypeDescription
destinationaddressThe address to which the voucher is directed
valueuint256The amount of ETH to transfer with the voucher
payloadbytesThe ABI-encoded payload containing the action data

DelegateCallVoucher

A single-use permission to execute a specific delegate call from the context of the application contract.

function DelegateCallVoucher(address destination, bytes calldata payload) external;

Parameters

NameTypeDescription
destinationaddressThe address that will be called
payloadbytesThe payload, which—in the case of Solidity libraries—encodes a function call