KeeperRegistry.sol
owned by multisig, probably governance token TODO: add partial slashing functionality (for smaller misbehaviors) and also handle that in leave() function TODO: can slashed keepers rejoin?
Methods
baseTime()
function baseTime() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
bondAmount()
function bondAmount() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
bondCoin()
function bondCoin() external view returns (contract ERC20PermitUpgradeable)
Returns
Name | Type | Description |
---|---|---|
_0 | contract ERC20PermitUpgradeable | undefined |
cancelLeave()
function cancelLeave() external nonpayable returns (bool successfulCancel)
Returns
Name | Type | Description |
---|---|---|
successfulCancel | bool | undefined |
denounce(address)
function denounce(address arbitraryAddress) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
arbitraryAddress | address | undefined |
firstEmptyKeeperIndex()
function firstEmptyKeeperIndex() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
freeCoin()
function freeCoin() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
getRegisteredKeepers()
function getRegisteredKeepers() external view returns (address[])
Returns
Name | Type | Description |
---|---|---|
_0 | address[] | undefined |
initialize(address,uint256,uint16,uint256,address[])
function initialize(address coinAddress, uint256 keeperTransferDelay, uint16 maxKeepers, uint256 bondSize, address[] _joiners) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
coinAddress | address | undefined |
keeperTransferDelay | uint256 | undefined |
maxKeepers | uint16 | undefined |
bondSize | uint256 | undefined |
_joiners | address[] | undefined |
isKeeper()
function isKeeper() external view returns (bool)
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
isKeeper(address)
function isKeeper(address arbitraryAddress) external view returns (bool)
Parameters
Name | Type | Description |
---|---|---|
arbitraryAddress | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
isLicenseAvailable()
function isLicenseAvailable() external view returns (bool)
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
join()
function join() external nonpayable returns (bool)
Returns
Name | Type | Description |
---|---|---|
_0 | bool | bool if registration is successful. |
joiningForOwner(address[],uint256)
function joiningForOwner(address[] joiners, uint256 bondSize) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
joiners | address[] | undefined |
bondSize | uint256 | undefined |
leave()
function leave() external nonpayable returns (bool)
Keepers call this after they have queued to leave and waited the requisite amount of time.
Returns
Name | Type | Description |
---|---|---|
_0 | bool | true if keeper successfully leaves, false otherwise. TODO: make this a transfer rather than just leaving? |
leavingForOwner(address[])
function leavingForOwner(address[] joiners) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
joiners | address[] | undefined |
maxNumKeepers()
function maxNumKeepers() external view returns (uint16)
Returns
Name | Type | Description |
---|---|---|
_0 | uint16 | undefined |
nextFreeTransferSlot()
function nextFreeTransferSlot() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
owner()
function owner() external view returns (address)
Returns the address of the current owner.
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
queueToLeave()
function queueToLeave() external nonpayable
registeredKeepers(uint256)
function registeredKeepers(uint256) external view returns (address)
Parameters
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
registry(address)
function registry(address) external view returns (uint256 arrayIndex, uint256 bondHeld)
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
arrayIndex | uint256 | undefined |
bondHeld | uint256 | undefined |
renounceOwnership()
function renounceOwnership() external nonpayable
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.
transferDelay()
function transferDelay() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
transferOwnership(address)
function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
Name | Type | Description |
---|---|---|
newOwner | address | undefined |
transferRequests(address)
function transferRequests(address) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
upgradeTo(address)
function upgradeTo(address newImplementation) external nonpayable
Upgrade the implementation of the proxy to newImplementation
. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
Parameters
Name | Type | Description |
---|---|---|
newImplementation | address | undefined |
upgradeToAndCall(address,bytes)
function upgradeToAndCall(address newImplementation, bytes data) external payable
Upgrade the implementation of the proxy to newImplementation
, and subsequently execute the function call encoded in data
. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.
Parameters
Name | Type | Description |
---|---|---|
newImplementation | address | undefined |
data | bytes | undefined |
withdrawFreeCoin(uint256)
function withdrawFreeCoin(uint256 amount) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | undefined |
Events
AdminChanged
event AdminChanged(address previousAdmin, address newAdmin)
Parameters
Name | Type | Description |
---|---|---|
previousAdmin | address | undefined |
newAdmin | address | undefined |
BeaconUpgraded
event BeaconUpgraded(address indexed beacon)
Parameters
Name | Type | Description |
---|---|---|
beacon indexed | address | undefined |
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
Name | Type | Description |
---|---|---|
previousOwner indexed | address | undefined |
newOwner indexed | address | undefined |
Upgraded
event Upgraded(address indexed implementation)
Parameters
Name | Type | Description |
---|---|---|
implementation indexed | address | undefined |
leaveQueued
event leaveQueued(address keeper, uint256 timestamp)
Parameters
Name | Type | Description |
---|---|---|
keeper | address | undefined |
timestamp | uint256 | undefined |
permissionChanged
event permissionChanged(address _subject, enum KeeperRegistry.permissionType _permissionType)
Parameters
Name | Type | Description |
---|---|---|
_subject | address | undefined |
_permissionType | enum KeeperRegistry.permissionType | undefined |