Interface to be implemented by all permission manager modules (IPermissionManager.sol)

View Source: contracts/modules/PermissionManager/IPermissionManager.solarrow-up-right

↘ Derived Contracts: GeneralPermissionManagerarrow-up-right

IPermissionManager

Functions

checkPermission

⤿ Overridden Implementation(s): GeneralPermissionManager.checkPermissionarrow-up-right

Used to check the permission on delegate corresponds to module contract address

Returns

bool

Arguments

Name

Type

Description

_delegate

address

Ethereum address of the delegate

_module

address

Ethereum contract address of the module

_perm

bytes32

Permission flag

addDelegate

⤿ Overridden Implementation(s): GeneralPermissionManager.addDelegatearrow-up-right

Used to add a delegate

Arguments

Name

Type

Description

_delegate

address

Ethereum address of the delegate

_details

bytes32

Details about the delegate i.e Belongs to financial firm

deleteDelegate

⤿ Overridden Implementation(s): GeneralPermissionManager.deleteDelegatearrow-up-right

Used to delete a delegate

Arguments

Name

Type

Description

_delegate

address

Ethereum address of the delegate

checkDelegate

⤿ Overridden Implementation(s): GeneralPermissionManager.checkDelegatearrow-up-right

Used to check if an address is a delegate or not

Returns

bool

Arguments

Name

Type

Description

_potentialDelegate

address

the address of potential delegate

changePermission

⤿ Overridden Implementation(s): GeneralPermissionManager.changePermissionarrow-up-right

Used to provide/change the permission to the delegate corresponds to the module contract

Returns

bool

Arguments

Name

Type

Description

_delegate

address

Ethereum address of the delegate

_module

address

Ethereum contract address of the module

_perm

bytes32

Permission flag

_valid

bool

Bool flag use to switch on/off the permission

changePermissionMulti

⤿ Overridden Implementation(s): GeneralPermissionManager.changePermissionMultiarrow-up-right

Used to change one or more permissions for a single delegate at once

Returns

nothing

Arguments

Name

Type

Description

_delegate

address

Ethereum address of the delegate

_modules

address[]

Multiple module matching the multiperms, needs to be same length

_perms

bytes32[]

Multiple permission flag needs to be changed

_valids

bool[]

Bool array consist the flag to switch on/off the permission

getAllDelegatesWithPerm

⤿ Overridden Implementation(s): GeneralPermissionManager.getAllDelegatesWithPermarrow-up-right

Used to return all delegates with a given permission and module

Returns

address[]

Arguments

Name

Type

Description

_module

address

Ethereum contract address of the module

_perm

bytes32

Permission flag

getAllModulesAndPermsFromTypes

⤿ Overridden Implementation(s): GeneralPermissionManager.getAllModulesAndPermsFromTypesarrow-up-right

Used to return all permission of a single or multiple module

Returns

address[] the address array of Modules this delegate has permission

Arguments

Name

Type

Description

_delegate

address

Ethereum address of the delegate

_types

uint8[]

uint8[] of types

getPermissions

⤿ Overridden Implementation(s): BlacklistTransferManager.getPermissionsarrow-up-right,CappedSTO.getPermissionsarrow-up-right,CountTransferManager.getPermissionsarrow-up-right,DividendCheckpoint.getPermissionsarrow-up-right,DummySTO.getPermissionsarrow-up-right,GeneralPermissionManager.getPermissionsarrow-up-right,GeneralTransferManager.getPermissionsarrow-up-right,IModule.getPermissionsarrow-up-right,KYCTransferManager.getPermissionsarrow-up-right,LockUpTransferManager.getPermissionsarrow-up-right,ManualApprovalTransferManager.getPermissionsarrow-up-right,PercentageTransferManager.getPermissionsarrow-up-right,PLCRVotingCheckpoint.getPermissionsarrow-up-right,PreSaleSTO.getPermissionsarrow-up-right,ScheduledCheckpoint.getPermissionsarrow-up-right,SignedTransferManager.getPermissionsarrow-up-right,TrackedRedemption.getPermissionsarrow-up-right,USDTieredSTO.getPermissionsarrow-up-right,VestingEscrowWallet.getPermissionsarrow-up-right,VolumeRestrictionTM.getPermissionsarrow-up-right,WeightedVoteCheckpoint.getPermissionsarrow-up-right

Used to get the Permission flag related the this contract

Returns

Array of permission flags

Arguments

Name

Type

Description

getAllDelegates

⤿ Overridden Implementation(s): GeneralPermissionManager.getAllDelegatesarrow-up-right

Used to get all delegates

Returns

address[]

Arguments

Name

Type

Description

Last updated

Was this helpful?