ozAccountProxy

This is the Account that gets created when calling createNewProxy() on ProxyFactory, where the users will receive their ETH transfers. It's also the contract that Gelatoarrow-up-right continuously check for initiating the 2nd transaction within the L1 flow.

It inherits Open Zeppelin's BeaconProxyarrow-up-right contract.

circle-info

Github repo herearrow-up-right.

Open methods

checker

function checker() external view returns(bool canExec, bytes memory execPayload);

Gelato checker which queries the Account for ETH balance > 0. It's a constant function signature given by Gelato.

Return values:

Name
Type
Description

canExec

boolean

true if the condition is met which would start the Gelato execution

execPayload

bytes

Calldata with which the Account will be called (just a reference in this case)

System methods

_delegate

function _delegate(address implementation) internal;

Once it detects a call, it queries the msg.data to check if it's one of the authorized functions which calldata can be forwarded untampered to the implementation (ozPayMe).

If it's not authorized, it sends the same calldata each time, which is the configuration of the Account and the L2 hard-coded gasPrice .

Parameters:

Name
Type
Description

implementation

address

The implementation

Last updated