OperationDelegation
public class OperationDelegation : Operation
Operation subclass for delegating an account to a baker
-
The baker to delegate too, or nil to undelegate
Declaration
Swift
public let delegate: String? -
Create an OperationDelegation.
Declaration
Swift
public init(source: String, delegate: String?)Parameters
sourceThe address of the acocunt sending the operation.
delegateOptional. The address of the baker to delegate to, or nil to undelegate the source address.
-
Create a base operation.
Declaration
Swift
public required init(from decoder: Decoder) throwsParameters
fromA decoder used to convert a data fromat (such as JSON) into the model object.
-
Convert the object into a data format, such as JSON.
Declaration
Swift
public override func encode(to encoder: Encoder) throwsParameters
toAn encoder that will allow conversions to multipel data formats.
-
A function to check if two operations are equal.
Declaration
Swift
public func isEqual(_ op: OperationDelegation) -> BoolParameters
_An
Operationto compare againstReturn Value
A
Boolindicating the result.
Install in Dash