This contract serves as a base for other contracts and enforces a proxy-first access restriction.
Derived contracts must implement the setup function.
constructor() internal
Contract constructor that sets the implementation address to the address of this contract.
modifier onlyProxy()
Modifier to require the caller to be the proxy contract. Reverts if the caller is the current contract (i.e., the implementation contract itself).
function setup(bytes params) external virtual
Initializes contract parameters. This function is intended to be overridden by derived contracts. The overriding function must have the onlyProxy modifier.
Name | Type | Description |
---|---|---|
params | bytes | The parameters to be used for initialization |