StakingAppModule - CosmosSwift/swift-coin GitHub Wiki

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

var route: String

querierRoute

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