Array

public extension Array where Element == [String: Any]
public extension Array where Element == Any
extension Array where Element == Operation

Helper methods for extracting data from Michelson JSON, to reduce the amount of as? [String: Any] extracting, and instead use some of the standarad naming

Available where Element == [String: Any]

Available where Element == Any

Available where Element == Operation

  • Operation’s are classes, passed by reference, but often require making copies so that you can manipulate them before sending to be estimated. Function make it easy by converting the array to JSON and recreating, avoiding issues where construnctors manipulate inputs before storing

    Declaration

    Swift

    public func copyOperations() -> [Operation]