Skip to main content

LowLevelDelegator

Git Source

State Variables

delegationInstance

The instance to which all proxies will point.

Delegation public delegationInstance;

Functions

constructor

Contract constructor.

constructor();

_createDelegation

Creates a clone of the delegation.

function _createDelegation(bytes32 _salt, uint96 _lockUntil) internal returns (Delegation);

Parameters

NameTypeDescription
_saltbytes32Random number used to deterministically deploy the clone
_lockUntiluint96Timestamp until which the delegation is locked

Returns

NameTypeDescription
<none>DelegationThe newly created delegation

_computeAddress

Computes the address of a clone, also known as minimal proxy contract.

function _computeAddress(bytes32 _salt) internal view returns (address);

Parameters

NameTypeDescription
_saltbytes32Random number used to compute the address

Returns

NameTypeDescription
<none>addressAddress at which the clone will be deployed

_computeSalt

Computes salt used to deterministically deploy a clone.

function _computeSalt(address _delegator, bytes32 _slot) internal pure returns (bytes32);

Parameters

NameTypeDescription
_delegatoraddressAddress of the delegator
_slotbytes32Slot of the delegation

Returns

NameTypeDescription
<none>bytes32Salt used to deterministically deploy a clone.