Skip to content

Configuration

ratranqu edited this page Mar 9, 2021 · 6 revisions

Configuration

public class Configuration: Sealable

Inheritance

Codable, Sealable

Properties

defaultKeyringServiceName

let defaultKeyringServiceName = "cosmos"

addressVerifier

var addressVerifier: ((Data) throws -> Void)?

configuration

let configuration

bech32AccountAddressPrefix

var bech32AccountAddressPrefix: String

bech32ValidatorAddressPrefix

var bech32ValidatorAddressPrefix: String

bech32ConsensusAddressPrefix

var bech32ConsensusAddressPrefix: String

bech32AccountPublicKeyPrefix

var bech32AccountPublicKeyPrefix: String

bech32ValidatorPublicKeyPrefix

var bech32ValidatorPublicKeyPrefix: String

bech32ConsensusPublicKeyPrefix

var bech32ConsensusPublicKeyPrefix: String

keyringServiceName

var keyringServiceName: String

`default`

var `default`: Configuration

rootDirectory

var rootDirectory: String

moniker

var moniker: String

genesisFilePath

var genesisFilePath: String

privateValidatorKeyFile

var privateValidatorKeyFile: String

privateValidatorStateFile

var privateValidatorStateFile: String

nodeKeyFilePath

var nodeKeyFilePath: String

Methods

setBech32PrefixForAccount(addressPrefix:publicKeyPrefix:)

public static func setBech32PrefixForAccount(addressPrefix: String, publicKeyPrefix: String)

setBech32PrefixForValidator(addressPrefix:publicKeyPrefix:)

public static func setBech32PrefixForValidator(addressPrefix: String, publicKeyPrefix: String)

setBech32PrefixForConsensusNode(addressPrefix:publicKeyPrefix:)

public static func setBech32PrefixForConsensusNode(addressPrefix: String, publicKeyPrefix: String)

seal()

public static func seal()

writeConfigurationFile(atPath:)

public func writeConfigurationFile(atPath path: String)

set(rootDirectory:)

public mutating func set(rootDirectory: String)

Clone this wiki locally