Preparing search index...
The search index is not available
@dirtroad/skale
@dirtroad/skale
@skaleproject/utils
AccessControl
Class AccessControl
Hierarchy
Contract
AccessControl
Index
Constructors
constructor
Properties
DEFAULT_
ADMIN_
ROLE
contract
has
Signer
signer
Methods
check
Signer
get
Event
Names
get
Role
Admin
grant
Role
has
Role
renounce
Role
revoke
Role
set
Signer
Constructors
constructor
new
Access
Control
(
params
:
IContractParams
)
:
AccessControl
Parameters
params:
IContractParams
Returns
AccessControl
Properties
DEFAULT_
ADMIN_
ROLE
DEFAULT_
ADMIN_
ROLE
:
string
= ...
contract
contract
:
Contract
Protected
has
Signer
has
Signer
:
boolean
= false
Protected
signer
signer
:
Wallet
Methods
check
Signer
check
Signer
(
)
:
void
Returns
void
get
Event
Names
get
Event
Names
(
__namedParameters
:
{
nameOnly
?:
boolean
;
}
)
:
string
[]
Parameters
__namedParameters:
{
nameOnly
?:
boolean
;
}
Optional
name
Only
?:
boolean
Returns
string
[]
get
Role
Admin
get
Role
Admin
(
role
:
Contract
.
IRole
)
:
Promise
<
any
>
Function
getRoleAdmin
Returns
string
Parameters
role:
Contract
.
IRole
Returns
Promise
<
any
>
grant
Role
grant
Role
(
params
:
Contract
.
IRoleAccount
)
:
Promise
<
any
>
Function
grantRole
Returns
string
Parameters
params:
Contract
.
IRoleAccount
Returns
Promise
<
any
>
has
Role
has
Role
(
params
:
Contract
.
IRoleAccount
)
:
Promise
<
any
>
Function
hasRole
Returns
string
Async
Parameters
params:
Contract
.
IRoleAccount
Returns
Promise
<
any
>
renounce
Role
renounce
Role
(
params
:
Contract
.
IRoleAccount
)
:
Promise
<
any
>
Function
renounceRole
Returns
string
Parameters
params:
Contract
.
IRoleAccount
Returns
Promise
<
any
>
revoke
Role
revoke
Role
(
params
:
Contract
.
IRoleAccount
)
:
Promise
<
any
>
Function
revokeRole
Returns
string
Parameters
params:
Contract
.
IRoleAccount
Returns
Promise
<
any
>
set
Signer
set
Signer
(
__namedParameters
:
{
signer
:
Wallet
;
}
)
:
void
Parameters
__namedParameters:
{
signer
:
Wallet
;
}
signer
:
Wallet
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@dirtroad/skale
@skaleproject/config-
controller
@skaleproject/constants
ABIs
Address
IMA
Mainnet
Schain
Staging
Assertions
Chains
IMA_
ABIs
@skaleproject/context
@skaleproject/etherbase
@skaleproject/ima
@skaleproject/marionette
@skaleproject/multisig-
wallet
@skaleproject/pow
@skaleproject/pow-
ethers
@skaleproject/pow-
ethers
@skaleproject/pow-
web3
@skaleproject/utils
Chain
Contract
Provider
Role
Access
Control
constructor
DEFAULT_
ADMIN_
ROLE
contract
has
Signer
signer
check
Signer
get
Event
Names
get
Role
Admin
grant
Role
has
Role
renounce
Role
revoke
Role
set
Signer
Function
getRoleAdmin
Returns
string