Skip to content

Commit

Permalink
Merge pull request #43 from Adamant-im/feature/migrate_to_native_core
Browse files Browse the repository at this point in the history
Feature/migrate to native core
  • Loading branch information
RealBonus authored Nov 11, 2018
2 parents b90c333 + 0212a5c commit 6718285
Show file tree
Hide file tree
Showing 22 changed files with 2,970 additions and 285 deletions.
70 changes: 51 additions & 19 deletions Adamant.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,39 @@
</dict>
</dict>
</dict>
<key>NativeCoreTests</key>
<dict>
<key>testPerformanceHashForPassphrase()</key>
<dict>
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
<dict>
<key>baselineAverage</key>
<real>1.179</real>
<key>baselineIntegrationDisplayName</key>
<string>Local Baseline</string>
</dict>
</dict>
<key>testPerformanceKeypairForPassphrase()</key>
<dict>
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
<dict>
<key>baselineAverage</key>
<real>1.1729</real>
<key>baselineIntegrationDisplayName</key>
<string>Local Baseline</string>
</dict>
</dict>
<key>testPerformanceSignTransaction()</key>
<dict>
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
<dict>
<key>baselineAverage</key>
<real>0.0018654</real>
<key>baselineIntegrationDisplayName</key>
<string>Local Baseline</string>
</dict>
</dict>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1000"
LastUpgradeVersion = "1010"
version = "2.0">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1000"
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1000"
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1000"
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
1 change: 0 additions & 1 deletion Adamant/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ extension StoreKey {

// MARK: - Resources
struct AdamantResources {
static let jsCore = Bundle.main.url(forResource: "adamant-core", withExtension: "js")!
static let coreDataModel = Bundle.main.url(forResource: "ChatModels", withExtension: "momd")!

static let nodes: [Node] = [
Expand Down
2 changes: 1 addition & 1 deletion Adamant/Helpers/Decimal+adamant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extension Decimal {
}

func shiftedToAdamant() -> Decimal {
return self * 100000000
return Decimal(sign: self.isSignMinus ? .minus : .plus, exponent: -AdamantUtilities.currencyExponent, significand: self)
}

var doubleValue: Double {
Expand Down
241 changes: 0 additions & 241 deletions Adamant/Services/JSAdamantCore+Native.swift

This file was deleted.

Loading

0 comments on commit 6718285

Please sign in to comment.