Skip to content

MultiStakingHooks

ratranqu edited this page Apr 26, 2021 · 2 revisions

Extensions on MultiStakingHooks

Initializers

init(_:)

public init(_ hooks: StakingHooks...) 

Methods

afterValidatorCreated(request:validatorAddress:)

public func afterValidatorCreated(request: Request, validatorAddress: ValidatorAddress) 

beforeValidatorModified(request:validatorAddress:)

public func beforeValidatorModified(request: Request, validatorAddress: ValidatorAddress) 

afterValidatorRemoved(request:consensusAddress:validatorAddress:)

public func afterValidatorRemoved(request: Request, consensusAddress: ConsensusAddress, validatorAddress: ValidatorAddress) 

afterValidatorBonded(request:consensusAddress:validatorAddress:)

public func afterValidatorBonded(request: Request, consensusAddress: ConsensusAddress, validatorAddress: ValidatorAddress) 

afterValidatorBeginUnbonding(request:consensusAddress:validatorAddress:)

public func afterValidatorBeginUnbonding(request: Request, consensusAddress: ConsensusAddress, validatorAddress: ValidatorAddress) 

beforeDelegationCreated(request:delegationAddress:validatorAddress:)

public func beforeDelegationCreated(request: Request, delegationAddress: AccountAddress, validatorAddress: ValidatorAddress) 

beforeDelegationSharesModified(request:delegationAddress:validatorAddress:)

public func beforeDelegationSharesModified(request: Request, delegationAddress: AccountAddress, validatorAddress: ValidatorAddress) 

beforeDelegationRemoved(request:delegationAddress:validatorAddress:)

public func beforeDelegationRemoved(request: Request, delegationAddress: AccountAddress, validatorAddress: ValidatorAddress) 

afterDelegationModified(request:delegationAddress:validatorAddress:)

public func afterDelegationModified(request: Request, delegationAddress: AccountAddress, validatorAddress: ValidatorAddress) 

beforeValidatorSlashed(request:validatorAddress:fraction:)

public func beforeValidatorSlashed(request: Request, validatorAddress: ValidatorAddress, fraction: Decimal) 
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Extensions
Clone this wiki locally