Skip to main content

L2orchestrator.sol

Methods​

Reward()​

Solidity

function Reward() external view returns (contract L2rewards)

Returns​

NameTypeDescription
_0contract L2rewardsundefined

actionThresholdPercent()​

Solidity

function actionThresholdPercent() external view returns (uint256)

Returns​

NameTypeDescription
_0uint256undefined

approveHashChangeRequest(uint256,uint8)​

Solidity

function approveHashChangeRequest(uint256 _hashId, uint8 approved) external nonpayable

Parameters​

NameTypeDescription
_hashIduint256undefined
approveduint8undefined

createHashChangeRequest(bytes32)​

Solidity

function createHashChangeRequest(bytes32 _hash) external nonpayable returns (uint256)

Parameters​

NameTypeDescription
_hashbytes32undefined

Returns​

NameTypeDescription
_0uint256undefined

currentHashID()​

Solidity

function currentHashID() external view returns (uint256)

Returns​

NameTypeDescription
_0uint256undefined

executeHashChangeRequest(uint256)​

Solidity

function executeHashChangeRequest(uint256 _hashId) external nonpayable returns (enum L2orchestrator.State)

Parameters​

NameTypeDescription
_hashIduint256undefined

Returns​

NameTypeDescription
_0enum L2orchestrator.Stateundefined

hashChangeApprovals(uint256,address)​

Solidity

function hashChangeApprovals(uint256, address) external view returns (uint8)

Parameters​

NameTypeDescription
_0uint256undefined
_1addressundefined

Returns​

NameTypeDescription
_0uint8undefined

hashChangeRequests(uint256)​

Solidity

function hashChangeRequests(uint256) external view returns (bytes32 hash, enum L2orchestrator.State state)

Parameters​

NameTypeDescription
_0uint256undefined

Returns​

NameTypeDescription
hashbytes32undefined
stateenum L2orchestrator.Stateundefined

initialize(address,address)​

Solidity

function initialize(address _keeperRegistry, address _L2RewarderAddress) external nonpayable

Parameters​

NameTypeDescription
_keeperRegistryaddressundefined
_L2RewarderAddressaddressundefined

isHashChangeRequestApproved(uint256)​

Solidity

function isHashChangeRequestApproved(uint256 hashId) external view returns (uint8)

Parameters​

NameTypeDescription
hashIduint256undefined

Returns​

NameTypeDescription
_0uint8undefined

isHashChangeRequestApprovedByUser(uint256,address)​

Solidity

function isHashChangeRequestApprovedByUser(uint256 hashId, address member) external view returns (bool)

Parameters​

NameTypeDescription
hashIduint256undefined
memberaddressundefined

Returns​

NameTypeDescription
_0boolundefined

keeperRegistry()​

Solidity

function keeperRegistry() external view returns (contract KeeperRegistry)

Returns​

NameTypeDescription
_0contract KeeperRegistryundefined

lastExecutedHashId()​

Solidity

function lastExecutedHashId() external view returns (uint256)

Returns​

NameTypeDescription
_0uint256undefined

owner()​

Solidity

function owner() external view returns (address)
Details

Returns the address of the current owner.

Returns​

NameTypeDescription
_0addressundefined

renounceOwnership()​

Solidity

function renounceOwnership() external nonpayable
Details

Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

transferOwnership(address)​

Solidity

function transferOwnership(address newOwner) external nonpayable
Details

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters​

NameTypeDescription
newOwneraddressundefined

upgradeTo(address)​

Solidity

function upgradeTo(address newImplementation) external nonpayable
Details

Upgrade the implementation of the proxy to newImplementation. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.

Parameters​

NameTypeDescription
newImplementationaddressundefined

upgradeToAndCall(address,bytes)​

Solidity

function upgradeToAndCall(address newImplementation, bytes data) external payable
Details

Upgrade the implementation of the proxy to newImplementation, and subsequently execute the function call encoded in data. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.

Parameters​

NameTypeDescription
newImplementationaddressundefined
databytesundefined

Events​

AdminChanged​

Solidity

event AdminChanged(address previousAdmin, address newAdmin)

Parameters​

NameTypeDescription
previousAdminaddressundefined
newAdminaddressundefined

BeaconUpgraded​

Solidity

event BeaconUpgraded(address indexed beacon)

Parameters​

NameTypeDescription
beacon indexedaddressundefined

ExecutedHashChangeRequestRequest​

Solidity

event ExecutedHashChangeRequestRequest(uint256 requestId, bytes32 hash)

Parameters​

NameTypeDescription
requestIduint256undefined
hashbytes32undefined

OwnershipTransferred​

Solidity

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters​

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

Upgraded​

Solidity

event Upgraded(address indexed implementation)

Parameters​

NameTypeDescription
implementation indexedaddressundefined