mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
- New way to use rpc methods for easier batching and completion blocks - Using classes instead of structs in places where reuse of member variables is needed - New API would work with the domain types and not with JSON types, thus making program complexity lower.
15 lines
246 B
Swift
15 lines
246 B
Swift
//
|
|
// Created by Dmitry Bespalov on 06.02.22.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension Data: NodeDataCodable {
|
|
public func encodeNodeData() throws -> Data {
|
|
self
|
|
}
|
|
|
|
public init(decoding data: Data) throws {
|
|
self = data
|
|
}
|
|
} |