TzKTBaker
public struct TzKTBaker : Codable, Hashable
Data representing a baker from TzKT or Baking-Bad
-
Declaration
Swift
public let address: String
-
Declaration
Swift
public let name: String?
-
Declaration
Swift
public let status: TzKTBakerStatus
-
Declaration
Swift
public let balance: Decimal
-
Declaration
Swift
public let delegation: TzKTBakerSettings
-
Declaration
Swift
public let staking: TzKTBakerSettings
-
Declaration
Swift
public var limitOfStakingOverBaking: Decimal?
-
Declaration
Swift
public var edgeOfBakingOverStaking: Decimal?
-
Declaration
Swift
public var logo: URL? { get }
-
Helper to create a TzKTBaker from the data available from the
Account
objectDeclaration
Swift
public init(address: String, name: String?)
-
Declaration
Swift
public init(address: String, name: String?, status: TzKTBakerStatus, balance: Decimal, delegation: TzKTBakerSettings, staking: TzKTBakerSettings)
-
Ghostnet has a different setup for bakers, but we need to display and interact with them the same way. So this helper extract what it can from the API and creates semi-real baker objects to help users deal with Ghostnet
Declaration
Swift
public static func fromTestnetArray(_ data: [Any]) -> TzKTBaker?
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public static func == (lhs: TzKTBaker, rhs: TzKTBaker) -> Bool