-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BigInteger for coins, token manager, wallets sorting
- Loading branch information
1 parent
f56a60d
commit a47e9eb
Showing
108 changed files
with
1,860 additions
and
816 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,12 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="2500dp" | ||
android:height="2500dp" | ||
android:viewportWidth="2000" | ||
android:viewportHeight="2000"> | ||
<path | ||
android:pathData="M1000,0c552.3,0 1000,447.7 1000,1000s-447.8,1000 -1000,1000S0,1552.4 0,1000 447.7,0 1000,0" | ||
android:fillColor="#53ae94"/> | ||
<path | ||
android:pathData="M1123.4,866.8V718h340.2V491.3H537.3V718H877.5v148.6C601,879.3 393.1,934.1 393.1,999.7s208,120.4 484.4,133.1v476.5h246V1132.8c276,-12.7 483.5,-67.5 483.5,-133s-207.5,-120.3 -483.5,-133m0,225.6v-0.1c-6.9,0.4 -42.6,2.6 -122,2.6 -63.5,0 -108.1,-1.8 -123.9,-2.6v0.2C633.3,1081.7 451,1039.1 451,988.2S633.4,894.8 877.6,884v166.1c16,1.1 61.8,3.8 124.9,3.8 75.9,0 114,-3.2 121,-3.8V884c243.8,10.9 425.7,53.4 425.7,104.2s-182,93.3 -425.7,104.2" | ||
android:fillColor="#fff"/> | ||
</vector> |
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
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
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
7 changes: 7 additions & 0 deletions
7
...data/settings/src/main/java/com/tonapps/wallet/data/settings/entities/TokenPrefsEntity.kt
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,7 @@ | ||
package com.tonapps.wallet.data.settings.entities | ||
|
||
data class TokenPrefsEntity( | ||
val pinned: Boolean = false, | ||
val hidden: Boolean = false, | ||
val index: Int = -1, | ||
) |
Oops, something went wrong.
I was just browsing around
dev
branch, and noticed this error:coins.amount.toLong()
is just a shortcut forBigInteger
'slongValue
method:Code below should work properly for inputs of any size (unless I made a mistake counting zeroes). Inlined Coin.toCoins from PR #17: