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
-
Declaration
Swift
func michelsonInt(atIndex index: Int) -> String?
-
Declaration
Swift
func michelsonString(atIndex index: Int) -> String?
-
Declaration
Swift
func michelsonPair(atIndex index: Int) -> [String : Any]?
-
Declaration
Swift
func michelsonInt(atIndex index: Int) -> String?
-
Declaration
Swift
func michelsonString(atIndex index: Int) -> String?
-
Declaration
Swift
func michelsonPair(atIndex index: Int) -> [String : Any]?
-
Declaration
Swift
func michelsonArray(atIndex index: Int) -> [Any]?
-
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]