Skip to content

StakingAppModule

ratranqu edited this page Apr 26, 2021 · 2 revisions

StakingAppModule

public final class StakingAppModule: StakingAppModuleBasic, AppModule 

Inheritance

StakingAppModuleBasic, AppModule

Initializers

init(keeper:accountKeeper:supplyKeeper:)

public init(
        keeper: StakingKeeper,
        accountKeeper: AccountKeeper,
        supplyKeeper: SupplyKeeper
    ) 

Properties

route

public var route: String 

querierRoute

public var querierRoute: String 

Methods

registerInvariants(in:)

public func registerInvariants(in invariantRegistry: InvariantRegistry) 

makeHandler()

public func makeHandler() -> Handler? 

makeQuerier()

public func makeQuerier() -> Querier? 

beginBlock(request:beginBlockRequest:)

public func beginBlock(request: Request, beginBlockRequest: RequestBeginBlock) 

endBlock(request:endBlockRequest:)

public func endBlock(request: Request, endBlockRequest: RequestEndBlock) -> [ValidatorUpdate] 

initGenesis(request:json:)

InitGenesis sets the pool and parameters for the provided keeper. For each validator in data, it sets that validator in the keeper along with manually setting the indexes. In addition, it also sets any delegations found in data. Finally, it updates the bonded validators. Returns final validator set after applying all declaration and delegations

public func initGenesis(request: Request, json: JSON) -> [ValidatorUpdate] 

exportGenesis(request:)

public func exportGenesis(request: Request) -> JSON 
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Extensions
Clone this wiki locally