Proxy
contract Proxy
Implements delegation of calls to other contracts, with proper forwarding of return values and bubbling of failures. It defines a fallback function that delegates all calls to the address returned by the abstract _implementation() internal function.
Reference
Functions
_delegate
function _delegate(address implementation) internalDelegates execution to an implementation contract. This is a low level function that doesn't return to its internal call site. It will return to the external caller whatever the implementation returns.
- Parameters:
implementation- Address to delegate.
_fallback
function _fallback() internalFallback implementation. Extracted to enable manual triggering.
_implementation
abstract function _implementation() internal view returns (address)- Returns:
- The Address of the implementation.
_willFallback
function _willFallback() internalFunction that is run as the first thing in the fallback function. Can be redefined in derived contracts to add functionality. Redefinitions must call super._willFallback().
fallback
function () external payableFallback function. Implemented entirely in `_fallback`.