ScannerRegistryCore
ScannerRegistryCore
ScannerUpdated
StakeThresholdChanged
ScannerNotRegistered
onlyOwnerOf
Checks sender (or metatx signer) is owner of the scanner token.
Name | Type | Description |
---|---|---|
scannerId | uint256 | ERC721 token id of the scanner. |
isRegistered
Checks if scannerId has been registered (minted).
Name | Type | Description |
---|---|---|
scannerId | uint256 | ERC721 token id of the scanner. |
Name | Type | Description |
---|---|---|
[0] | bool | true if scannerId exists, false otherwise. |
scannerAddressToId
Converts scanner address to uint256 for ERC721 Token Id.
setStakeThreshold
function setStakeThreshold(struct IStakeSubject.StakeThreshold newStakeThreshold, uint256 chainId) external
Sets stake parameters (min, max, activated) for a chainId
. Restricted to SCANNER_ADMIN_ROLE
Name | Type | Description |
---|---|---|
newStakeThreshold | struct IStakeSubject.StakeThreshold | struct with stake parameters. |
chainId | uint256 | chain the parameters will affect. |
getStakeThreshold
function getStakeThreshold(uint256 subject) external view returns (struct IStakeSubject.StakeThreshold)
Getter for StakeThreshold for the scanner with id subject
_msgSender
Helper to get either msg msg.sender if not a meta transaction, signer of forwarder metatx if it is.
_msgData
Helper to get msg.data if not a meta transaction, forwarder data in metatx if it is.
ownerOf
disambiguation of ownerOf.
See {IERC721-ownerOf}.