mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
20 lines
544 B
Swift
20 lines
544 B
Swift
//
|
|
// Created by Dmitry Bespalov on 09.03.22.
|
|
// Copyright (c) 2022 Gnosis Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
struct WCGetWalletsRequest: JSONRequest {
|
|
var httpMethod: String { "GET" }
|
|
var urlPath: String { "/safe-ios-wc-registry/data/wallets.json" }
|
|
|
|
typealias ResponseType = JsonAppRegistry
|
|
}
|
|
|
|
extension WCRegistryService {
|
|
func asyncWallets(completion: @escaping (Result<JsonAppRegistry, Error>) -> Void) -> URLSessionTask? {
|
|
asyncExecute(request: WCGetWalletsRequest(), completion: completion)
|
|
}
|
|
}
|