Depot Facet

The Depot Facet wraps Pipeline's pipe functions to facilitate the loading of non-Ether assets in Pipeline.

Call Functions

function pipe(PipeCall calldata p)
    external
    payable
    returns (bytes memory result);

Pipe a PipeCall through Pipeline.

ParameterTypeDescription

p

PipeCall

PipeCall to pipe through Pipeline.

Return ValueTypeDescription

result

bytes

PipeCall return value.

function multiPipe(PipeCall[] calldata pipes)
    external
    payable
    returns (bytes[] memory results);

Pipe multiple PipeCalls through Pipeline. Does not support sending Ether in the call.

ParameterTypeDescription

pipes

PipeCall[]

List of PipeCalls to pipe through Pipeline.

Return ValueTypeDescription

results

bytes[]

List of return values from each PipeCall.

function advancedPipe(AdvancedPipeCall[] calldata pipes, uint256 value)
    external
    payable
    returns (bytes[] memory results);

Pipe multiple AdvancedPipeCalls through Pipeline.

ParameterTypeDescription

pipes

AdvancedPipeCall[]

List of AdvancedPipeCalls to pipe through Pipeline.

value

uint256

Return ValueTypeDescription

results

bytes[]

List of return values from each AdvancedPipeCall.

function etherPipe(PipeCall calldata p, uint256 value)
    external
    payable
    returns (bytes memory result);

Pipe a PipeCall through Pipeline with an Ether value.

ParameterTypeDescription

p

PipeCall

PipeCall to pipe through Pipeline.

value

uint256

Ether value to send in Pipecall.

Return ValueTypeDescription

result

bytes

PipeCall return value.

View Functions

function readPipe(PipeCall calldata p)
    external
    view
    returns (bytes memory result);

Return the return value of a PipeCall without executing it.

ParameterTypeDescription

p

PipeCall

PipeCall to execute with a staticcall.

Return ValueTypeDescription

result

bytes

PipeCall return value.

Events

None.

Last updated