OperationBallot

public class OperationBallot : Operation

Operation to submit a ballot on an upcoming proposal

  • Enum matching the available ballot options

    See more

    Declaration

    Swift

    public enum Ballot : String, Codable
  • The voting period

    Declaration

    Swift

    public let period: Int
  • The identifier of the proposa;

    Declaration

    Swift

    public let proposal: String
  • The wallet holders vote

    Declaration

    Swift

    public let ballot: Ballot
  • Init with wallet, period, proposal and ballot

    Declaration

    Swift

    public init(wallet: Wallet, period: Int, proposal: String, ballot: Ballot)
  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Declaration

    Swift

    public override func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public func isEqual(_ op: OperationBallot) -> Bool