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.
Source: upgradeability/Proxy.sol
Reference
Functions
_delegate
function _delegate(address implementation) internal
Delegates 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() internal
Fallback implementation. Extracted to enable manual triggering.
_implementation
abstract function _implementation() internal view returns (address)
- Returns:
- The Address of the implementation.
_willFallback
function _willFallback() internal
Function 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 payable
Fallback function. Implemented entirely in `_fallback`.