For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authorizable

Overview

License: Apache 2.0

abstract contract Authorizable is Ownable, IAuthorizable

State variables info

authorized (0xb9181611)

mapping(address => bool) authorized

Whether an address is authorized to call privileged functions.

0 Address to query.

Return values:

Name

Type

Description

authorities (0x494503d4)

address[] authorities

Whether an adderss is authorized to call privileged functions.

0 Index of authorized address.

Return values:

Name

Type

Description

Modifiers info

onlyAuthorized

Only authorized addresses can invoke functions with this modifier.

Functions info

addAuthorizedAddress (0x42f1181e)

Authorizes an address.

Parameters:

Name
Type
Description

target

address

Address to authorize.

removeAuthorizedAddress (0x70712939)

Removes authorizion of an address.

Parameters:

Name
Type
Description

target

address

Address to remove authorization from.

removeAuthorizedAddressAtIndex (0x9ad26744)

Removes authorizion of an address.

Parameters:

Name
Type
Description

target

address

Address to remove authorization from.

index

uint256

Index of target in authorities array.

getAuthorizedAddresses (0xd39de6e9)

Gets all authorized addresses.

Return values:

Name
Type
Description

[0]

address[]

Array of authorized addresses.

Last updated