forked from horizontalsystems/MarketKit.Swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: Update dumps Update response for TopPlatform entity Add ability to fetch top full coins Reformat code Add `apiTag` for required HsProvider API endpoints Add TON blockchain type Integrate verified property to MarketTicket entity Update `GRDB` dependency # Conflicts: # Sources/MarketKit/Classes/Models/BlockchainType.swift # Sources/MarketKit/Classes/Providers/HsProvider.swift
- Loading branch information
Showing
95 changed files
with
910 additions
and
1,120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,27 @@ | ||
import Foundation | ||
|
||
extension Decimal { | ||
|
||
init?(convertibleValue: Any?) { | ||
guard let convertibleValue = convertibleValue as? CustomStringConvertible, | ||
let value = Decimal.init(string: convertibleValue.description) else { | ||
let value = Decimal(string: convertibleValue.description) | ||
else { | ||
return nil | ||
} | ||
|
||
self = value | ||
} | ||
|
||
} | ||
|
||
extension TimeInterval { | ||
|
||
public static func minutes(_ count: Self) -> Self { | ||
public extension TimeInterval { | ||
static func minutes(_ count: Self) -> Self { | ||
count * 60 | ||
} | ||
|
||
public static func hours(_ count: Self) -> Self { | ||
static func hours(_ count: Self) -> Self { | ||
count * minutes(60) | ||
} | ||
|
||
public static func days(_ count: Self) -> Self { | ||
static func days(_ count: Self) -> Self { | ||
count * hours(24) | ||
} | ||
|
||
} |
Oops, something went wrong.