App - CosmosSwift/swift-coin GitHub Wiki

App

public protocol App

Requirements

name

The assigned name of the app.

var name: String

codec

var codec: Codec

beginBlocker(request:​beginBlockRequest:​)

func beginBlocker(request: Request, beginBlockRequest: RequestBeginBlock) -> ResponseBeginBlock

endBlocker(request:​endBlockRequest:​)

func endBlocker(request: Request, endBlockRequest: RequestEndBlock) -> ResponseEndBlock

initChainer(request:​initChainRequest:​)

func initChainer(request: Request, initChainRequest: RequestInitChain) -> ResponseInitChain

load(height:​)

func load(height: Int64) throws

exportAppStateAndValidators(forZeroHeight:​jailWhiteList:​)

func exportAppStateAndValidators(forZeroHeight: Bool, jailWhiteList: [String]) throws -> (JSON, [GenesisValidator])

moduleAccountAddresses

var moduleAccountAddresses: [String: Bool]

simulationManager

var simulationManager: SimulationManager?