Skip to content

Proxy ​

Git Source

Inherits:AdminInternals

This abstract contract provides a fallback function that delegates all calls to another contract using the EVM. It implements the Instadapp infinite-proxy: https://github.com/Instadapp/infinite-proxy

Functions ​

constructor ​

solidity
constructor(address admin_, address dummyImplementation_) AdminInternals(admin_, dummyImplementation_);

getAdmin ​

Returns admin's address.

solidity
function getAdmin() external view returns (address);

getDummyImplementation ​

Returns dummy-implementations's address.

solidity
function getDummyImplementation() external view returns (address);

getImplementationSigs ​

Returns bytes4[] sigs from implementation address If not registered then returns empty array.

solidity
function getImplementationSigs(address impl_) external view returns (bytes4[] memory);

getSigsImplementation ​

Returns implementation address from bytes4 sig. If sig is not registered then returns address(0).

solidity
function getSigsImplementation(bytes4 sig_) external view returns (address);

fallback ​

Fallback function that delegates calls to the address returned by Implementations registry.

solidity
fallback() external payable;

receive ​

solidity
receive() external payable;