Skip to content

Commit

Permalink
v3.0.32
Browse files Browse the repository at this point in the history
  • Loading branch information
mytonwalletorg committed Oct 28, 2024
1 parent 9e2ec5a commit 17f6605
Show file tree
Hide file tree
Showing 64 changed files with 500 additions and 362 deletions.
1 change: 1 addition & 0 deletions changelogs/3.0.32.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bug fixes and performance improvements
Binary file modified mobile/android/app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
android:height="108dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<group android:scaleX="0.67346936"
android:scaleY="0.67346936"
android:translateX="167.18367"
android:translateY="167.18367">
<group android:scaleX="0.653125"
android:scaleY="0.653125"
android:translateX="177.6"
android:translateY="177.6">
<path
android:pathData="M939.7,332C895,225.9 812.6,140.2 708.3,91.6C604,42.9 485.4,34.7 375.4,68.6C265.4,102.4 172,176 113.2,274.9C54.4,373.8 34.4,491 57.2,603.8C79.9,716.6 143.8,816.9 236.4,885.3C329,953.6 443.6,985.1 558.1,973.7C672.6,962.3 778.8,908.7 856,823.4C933.2,738 976,627.1 976,512C976.1,450.2 963.7,388.9 939.7,332ZM900.4,700.7L879.8,646.5L930.4,619.4C923.2,647.5 913.1,674.7 900.4,700.7V700.7ZM96.9,620.2L146.9,647L126.6,700.4C114.1,674.8 104.1,647.9 96.9,620.2ZM83.1,512C83.1,498 83.8,484.1 85.1,470.4L123.4,512.9L85.3,555.3C83.9,541 83.2,526.6 83.1,512ZM126.3,324.3L147,379L96.2,406.1C103.4,377.9 113.5,350.5 126.3,324.3ZM930.7,405.9L879.7,378.5L900.5,323.5C913.4,349.9 923.5,377.5 930.7,405.9ZM680.4,803.1L640.1,775.8C652.9,769.7 665.1,762.6 676.8,754.6L680.4,803.1ZM571.6,841.3L544.4,802.9C558,801.5 571.5,799.1 584.8,795.8L571.6,841.3ZM455.7,842.7L442.2,795.9C456.3,799.4 470.7,801.9 485.3,803.2L455.7,842.7ZM429.6,867.5L369.1,904.7L348,839.9L409.5,798.3L429.6,867.5ZM346.4,802.3L349.9,754.7C361.4,762.5 373.5,769.5 386,775.5L346.4,802.3ZM346.4,222.5L385.1,248.8C372.9,254.8 361.2,261.7 349.9,269.4L346.4,222.5ZM455.7,181.8L484.7,220.8C470.4,222.1 456.3,224.6 442.4,228L455.7,181.8ZM571.6,183.2L584.5,228.1C571.5,224.8 558.3,222.5 545,221.1L571.6,183.2ZM597.1,156.1L657.5,118.7L678.7,184.1L617.2,226.1L597.1,156.1ZM680.2,221.8L676.8,269.2C665.3,261.5 653.4,254.6 641,248.5L680.2,221.8ZM513.4,772.6C369.7,772.6 252.8,655.7 252.8,512C252.8,474.5 260.9,437.4 276.6,403.3C292.2,369.2 315.1,338.9 343.6,314.5C344.6,314 345.5,313.3 346.4,312.6C347.3,311.9 348.1,311.1 348.8,310.2C370.6,292.3 395.2,278.1 421.5,268.2C422.4,268 423.4,267.8 424.2,267.5C425.1,267.1 425.9,266.7 426.7,266.3C469.2,251.3 514.7,247.6 559,255.5C603.3,263.4 644.7,282.7 679.4,311.4C679.7,311.7 680,312 680.3,312.3C680.6,312.6 680.9,312.7 681.2,313C710.2,337.4 733.6,367.8 749.6,402.2C765.6,436.6 773.9,474.1 773.9,512C773.9,655.7 657,772.6 513.4,772.6ZM221.8,535.4L175.1,513L221.6,490.7C221,497.7 220.8,504.9 220.8,512C220.8,519.9 221.1,527.7 221.7,535.4H221.8ZM805.2,490.3L851.7,512.6L805.1,534.9C805.7,527.4 806,519.8 806,512C805.9,504.7 805.7,497.4 805.1,490.2L805.2,490.3ZM781,393.5L827,397.6L794.7,431.1C791,418.3 786.4,405.7 781,393.5ZM723.3,308.3L770.2,296.6L750.9,341.2C742.5,329.5 733.3,318.5 723.3,308.2V308.3ZM515,208.1L470.7,148.4L512,93.4L556.8,148.5L515,208.1ZM409.5,226.9L348,184.8L369.1,119.4L429.6,156.8L409.5,226.9ZM275.7,341.5L256.5,297.1L303.1,308.7C293.2,318.9 284,329.8 275.7,341.3V341.5ZM232,431.6L199.7,397.9L245.5,393.9C240.1,406.1 235.6,418.6 232,431.5V431.6ZM163.5,406.6L213.9,459L146.8,491.1L100.8,440L163.5,406.6ZM146.8,534.9L213.8,567.1L163.4,619.5L100.7,585.9L146.8,534.9ZM232.4,593.9C236.2,607 240.9,619.8 246.5,632.2L199.6,628L232.4,593.9ZM304.6,717L256.4,729.1L276.1,683.4C284.8,695.3 294.3,706.5 304.6,717ZM515,816.9L556.8,875.9L512,930.6L470.6,876L515,816.9ZM617.2,799L678.6,840.6L657.6,905.4L597.2,868.3L617.2,799ZM750.7,683.2L770.3,728.6L722.5,716.7C732.7,706.2 742.2,695 750.7,683.2V683.2ZM794.4,593.7L827.1,627.6L780.5,631.8C786,619.4 790.7,606.6 794.4,593.6V593.7ZM863.4,619L813,566.6L880.1,534.4L926.1,585.5L863.4,619ZM880,490.6L812.8,458.4L863.2,406L925.9,439.6L880,490.6ZM849.7,367.4L777.3,361L806.7,292.6L874.9,300.9L849.7,367.4ZM778.8,261.4L708.3,279L713.7,204.8L780.8,190.4L778.8,261.4ZM581.6,128.1L544.6,82.7C573.7,84.8 602.5,89.8 630.7,97.7L581.6,128.1ZM445.2,128.9L395.4,98.1C423,90.2 451.3,85.1 479.9,82.9L445.2,128.9ZM318.5,279.5L248,261.8L245.9,190.8L313.1,205.3L318.5,279.5ZM220.1,293.1L249.5,361.4L177.1,367.8L151.8,301.3L220.1,293.1ZM176.9,658.1L249.3,664.5L219.9,732.9L151.7,724.5L176.9,658.1ZM247.9,764.1L318.4,746.4L313,820.6L245.8,835.1L247.9,764.1ZM445.2,895.4L479.8,941.1C451.3,938.9 423.1,933.8 395.6,926L445.2,895.4ZM581.6,896.1L630.5,926.2C602.4,934.1 573.6,939.2 544.5,941.3L581.6,896.1ZM708.3,746L778.8,763.7L780.9,834.7L713.7,820.2L708.3,746ZM806.8,732.4L777.4,664L849.8,657.6L875,724.1L806.8,732.4ZM903.3,512.4L941.9,469.5C943.3,483.5 944,497.6 944,511.9C944,526.5 943.3,540.9 941.8,555.2L903.3,512.4ZM867.8,267.8L810.8,260.9L812.5,202.6C833.1,222.4 851.6,244.3 867.8,267.8ZM763,161.4L708.8,173.1L691.7,120.2C716.7,131.6 740.6,145.4 763,161.4ZM335.2,120.3L318,173.6L263.5,161.8C286,145.7 310,131.8 335.2,120.3ZM214.3,202.9L216,261.2L159,268.2C175.2,244.7 193.7,222.8 214.3,202.9ZM160.5,757.8L215.9,764.5L214.2,821C194.3,801.7 176.3,780.6 160.5,757.9V757.8ZM265.6,863.7L318.4,852.3L335.2,903.8C310.8,892.6 287.5,879.2 265.6,863.7ZM691.7,903.9L708.7,851.9L761.9,863.4C739.8,879 716.3,892.5 691.7,903.8V903.9ZM812.6,821.4L810.9,764.2L867.1,757.4C851.1,780.4 832.8,801.8 812.6,821.4Z"
android:pathData="M924.9,338.2C881.8,235.8 802.2,153.1 701.5,106.1C600.8,59.1 486.3,51.1 380.1,83.9C273.9,116.6 183.7,187.6 126.9,283.1C70.1,378.6 50.9,491.7 72.9,600.7C94.8,709.6 156.5,806.4 245.9,872.4C335.3,938.4 446,968.8 556.5,957.8C667.1,946.7 769.6,895 844.2,812.6C918.7,730.2 960,623.1 960,512C960.1,452.3 948.1,393.2 924.9,338.2ZM887,694.2L867.1,641.9L916,615.7C909,642.8 899.3,669.1 887,694.2V694.2ZM111.2,616.5L159.5,642.3L139.9,693.9C127.8,669.1 118.2,643.2 111.2,616.5ZM97.9,512C97.9,498.5 98.6,485.1 99.9,471.8L136.8,512.9L100,553.8C98.6,540 98,526.1 97.9,512ZM139.6,330.7L159.5,383.5L110.5,409.8C117.5,382.5 127.2,356 139.6,330.7ZM916.3,409.5L867,383.1L887.1,330C899.6,355.5 909.3,382.1 916.3,409.5ZM674.6,793L635.7,766.7C648,760.8 659.9,754 671.1,746.3L674.6,793ZM569.6,830L543.3,792.9C556.4,791.5 569.4,789.2 582.2,786.1L569.6,830ZM457.6,831.3L444.6,786.1C458.2,789.5 472.2,791.9 486.2,793.2L457.6,831.3ZM432.4,855.2L374.1,891.1L353.7,828.5L413,788.4L432.4,855.2ZM352.1,792.3L355.5,746.4C366.6,753.9 378.3,760.6 390.4,766.4L352.1,792.3ZM352.1,232.4L389.5,257.9C377.7,263.7 366.4,270.3 355.5,277.7L352.1,232.4ZM457.6,193.2L485.6,230.8C471.9,232.1 458.2,234.5 444.8,237.8L457.6,193.2ZM569.5,194.5L582,237.9C569.4,234.7 556.7,232.5 543.8,231.1L569.5,194.5ZM594.2,168.4L652.5,132.3L672.9,195.5L613.6,235.9L594.2,168.4ZM674.4,231.8L671.1,277.6C660.1,270.1 648.5,263.4 636.6,257.6L674.4,231.8ZM513.3,763.6C374.6,763.6 261.7,650.7 261.7,512C261.7,475.8 269.5,440 284.7,407.1C299.8,374.1 321.9,344.9 349.4,321.3C350.4,320.8 351.3,320.2 352.1,319.5C353,318.8 353.7,318 354.4,317.1C375.5,299.9 399.2,286.2 424.6,276.6C425.5,276.4 426.4,276.2 427.3,275.9C428.1,275.6 428.9,275.2 429.7,274.7C470.6,260.3 514.6,256.7 557.4,264.4C600.1,272 640.2,290.6 673.6,318.3C673.9,318.6 674.2,318.9 674.5,319.2C674.8,319.4 675.1,319.6 675.4,319.8C703.4,343.4 725.9,372.8 741.4,406C756.9,439.2 764.9,475.4 764.9,512C764.9,650.7 652,763.6 513.3,763.6ZM231.8,534.6L186.7,513L231.6,491.4C231.1,498.2 230.8,505.1 230.8,512C230.8,519.6 231.1,527.1 231.7,534.6H231.8ZM795.1,491L840,512.6L795,534.1C795.6,526.9 795.8,519.5 795.9,512C795.8,505 795.5,497.9 795,491L795.1,491ZM771.7,397.6L816.2,401.5L784.9,433.9C781.4,421.5 777,409.4 771.7,397.6ZM716,315.3L761.3,304L742.7,347.1C734.6,335.8 725.7,325.2 716,315.3V315.3ZM514.9,218.5L472.1,160.9L512,107.9L555.3,161.1L514.9,218.5ZM413.1,236.7L353.7,196.1L374.1,133L432.4,169.1L413.1,236.7ZM283.8,347.4L265.4,304.5L310.3,315.8C300.7,325.6 291.9,336.1 283.8,347.2V347.4ZM241.6,434.4L210.5,401.9L254.7,397.9C249.5,409.7 245.1,421.9 241.6,434.3V434.4ZM175.5,410.2L224.2,460.8L159.4,491.8L115,442.5L175.5,410.2ZM159.4,534.1L224.1,565.2L175.4,615.8L114.9,583.4L159.4,534.1ZM242.1,591.1C245.7,603.7 250.2,616 255.6,628L210.4,624L242.1,591.1ZM311.7,710L265.2,721.6L284.2,677.4C292.6,688.9 301.8,699.8 311.7,710ZM514.9,806.4L555.3,863.3L512,916.1L472.1,863.5L514.9,806.4ZM613.6,789.1L672.9,829.3L652.6,891.9L594.2,856L613.6,789.1ZM742.5,677.3L761.4,721.2L715.2,709.6C725.1,699.5 734.2,688.7 742.5,677.3V677.3ZM784.7,590.8L816.3,623.7L771.2,627.6C776.6,615.7 781.1,603.4 784.7,590.8V590.8ZM851.3,615.3L802.6,564.8L867.4,533.7L911.8,582.9L851.3,615.3ZM867.3,491.4L802.5,460.2L851.1,409.7L911.6,442.1L867.3,491.4ZM838,372.3L768.1,366.2L796.5,300.2L862.4,308.2L838,372.3ZM769.6,270L701.5,287.1L706.7,215.4L771.5,201.4L769.6,270ZM579.2,141.4L543.5,97.5C571.6,99.5 599.4,104.4 626.6,112L579.2,141.4ZM447.5,142.1L399.5,112.3C426.1,104.7 453.4,99.8 481,97.7L447.5,142.1ZM325.2,287.5L257.1,270.5L255.1,201.9L320,215.9L325.2,287.5ZM230.2,300.6L258.6,366.6L188.7,372.8L164.2,308.6L230.2,300.6ZM188.4,653.1L258.3,659.3L230,725.2L164.1,717.2L188.4,653.1ZM257,755.4L325.1,738.3L319.9,810L255,824L257,755.4ZM447.5,882.2L480.9,926.3C453.4,924.1 426.2,919.3 399.6,911.7L447.5,882.2ZM579.2,882.9L626.4,911.9C599.3,919.6 571.5,924.5 543.4,926.5L579.2,882.9ZM701.5,737.9L769.6,755L771.6,823.6L706.7,809.6L701.5,737.9ZM796.6,724.8L768.2,658.8L838.2,652.6L862.5,716.8L796.6,724.8ZM889.8,512.4L927.1,471C928.4,484.5 929.1,498.1 929.1,511.9C929.1,526 928.4,539.9 927,553.7L889.8,512.4ZM855.6,276.2L800.5,269.5L802.1,213.2C822,232.4 839.9,253.5 855.6,276.2ZM754.4,173.5L702,184.8L685.5,133.7C709.6,144.7 732.7,158 754.4,173.5ZM341.3,133.8L324.7,185.3L272.1,173.9C293.8,158.3 317,144.9 341.3,133.8ZM224.5,213.6L226.2,269.9L171.2,276.6C186.8,253.9 204.7,232.8 224.5,213.6ZM172.6,749.3L226.1,755.8L224.5,810.3C205.3,791.7 187.9,771.3 172.6,749.4V749.3ZM274.1,851.6L325.1,840.6L341.2,890.3C317.7,879.5 295.2,866.6 274.1,851.6ZM685.5,890.4L701.9,840.2L753.2,851.3C732,866.4 709.3,879.4 685.5,890.3V890.4ZM802.3,810.7L800.6,755.5L854.9,748.9C839.4,771.2 821.8,791.8 802.3,810.7Z"
android:fillColor="#ffffff"/>
</group>
</vector>
Binary file modified mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Binary file modified mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file modified mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file modified mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file modified mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions mobile/ios/App/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PODS:
- CapacitorCordova (6.1.2)
- CapacitorHaptics (6.0.1):
- Capacitor
- CapacitorMlkitBarcodeScanning (6.1.0):
- CapacitorMlkitBarcodeScanning (6.2.0):
- Capacitor
- GoogleMLKit/BarcodeScanning (= 5.0.0)
- CapacitorNativeSettings (6.0.1):
Expand All @@ -22,7 +22,7 @@ PODS:
- SwiftKeychainWrapper
- CapgoCapacitorNativeBiometric (0.0.1):
- Capacitor
- CapgoNativeAudio (6.4.18):
- CapgoNativeAudio (6.4.21):
- Capacitor
- CordovaPlugins (6.1.2):
- CapacitorCordova
Expand Down Expand Up @@ -188,12 +188,12 @@ SPEC CHECKSUMS:
CapacitorClipboard: 756cd7e83e8d5d19b0c74f40b57517c287bd5fe2
CapacitorCordova: f48c89f96c319101cd2f0ce8a2b7449b5fb8b3dd
CapacitorHaptics: fe689ade56ef20ec9b041a753c6da70c5d8ec9a9
CapacitorMlkitBarcodeScanning: 63e217d376f8f63b1be84c0d19568f318e87f4d3
CapacitorMlkitBarcodeScanning: 178fb57424ec688b6a2fceee506ecc1ea00d1c8d
CapacitorNativeSettings: 1ce5585ff07b161616cd0a795702637316677af2
CapacitorPluginSafeArea: e1eca7f70974f0e270d96f70cd0a5f51523164b1
CapacitorSecureStoragePlugin: ced6025438fbbdbfb9fffec4398e748572fc147b
CapgoCapacitorNativeBiometric: 44b0bb31118f6ed5171087a77a856a80a0cfa250
CapgoNativeAudio: 2f38f779f63444edf7eabbb3b41aba545da618da
CapgoNativeAudio: f3cb18f75acfaec7c429e1ff9dc06e05c6605627
CordovaPlugins: b26881c27739f4c46bac6baf422f660500cd5561
FloatingPanel: e00e106bf97b04d0de00bb360dc626459b0735ef
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mytonwallet",
"version": "3.0.31",
"version": "3.0.32",
"description": "The most feature-rich web wallet and browser extension for TON – with support of multi-accounts, tokens (jettons), NFT, TON DNS, TON Sites, TON Proxy, and TON Magic.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -187,7 +187,7 @@
"@capacitor/core": "6.1.2",
"@capacitor/haptics": "6.0.1",
"@capacitor/ios": "6.1.2",
"@capgo/capacitor-native-biometric": "github:mytonwallet-org/capacitor-native-biometric#f46ed8230e55de6b3ef08d04e60d595d145b2325",
"@capgo/capacitor-native-biometric": "github:mytonwallet-org/capacitor-native-biometric#956d06d1ab78a839f1293921d0bff449edf4ef4d",
"@capgo/native-audio": "6.4.21",
"@ledgerhq/hw-transport-webhid": "6.29.4",
"@ledgerhq/hw-transport-webusb": "6.29.4",
Expand Down
2 changes: 1 addition & 1 deletion public/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.31
3.0.32
8 changes: 5 additions & 3 deletions src/api/chains/ton/polling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type {
} from '../../types';
import type { TokenBalanceParsed } from './tokens';

import { POPULAR_WALLET_VERSIONS, TONCOIN } from '../../../config';
import { LEDGER_WALLET_VERSIONS, POPULAR_WALLET_VERSIONS, TONCOIN } from '../../../config';
import { parseAccountId } from '../../../util/account';
import { areDeepEqual } from '../../../util/areDeepEqual';
import { compareActivities } from '../../../util/compareActivities';
Expand Down Expand Up @@ -379,15 +379,17 @@ function logAndRescue(err: Error) {
async function setupWalletVersionsPolling(accountId: string, onUpdate: OnApiUpdate) {
const account = await fetchStoredAccount(accountId);

if (account.type !== 'ton') {
if (account.type === 'bip39') {
return;
}

const isLedger = account.type === 'ledger';
const { publicKey, version } = account.ton;
const publicKeyBytes = hexToBytes(publicKey);
const { network } = parseAccountId(accountId);

const versions = POPULAR_WALLET_VERSIONS.filter((value) => value !== version);
const versions = (isLedger ? LEDGER_WALLET_VERSIONS : POPULAR_WALLET_VERSIONS)
.filter((value) => value !== version);
let lastResult: ApiWalletInfo[] | undefined;

while (isAlive(onUpdate, accountId)) {
Expand Down
4 changes: 2 additions & 2 deletions src/api/chains/ton/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ export function getWalletVersions(
});
}

export async function getWalletStateInit(accountId: string) {
const wallet = await getTonWallet(accountId);
export async function getWalletStateInit(accountId: string, storedWallet: ApiTonWallet) {
const wallet = await getTonWallet(accountId, storedWallet);

return beginCell()
.storeWritable(storeStateInit(wallet!.init))
Expand Down
33 changes: 31 additions & 2 deletions src/api/storages/capacitorStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,54 @@ import type { Storage, StorageKey } from './types';

import { bigintReviver } from '../../util/bigint';
import { callWindow } from '../../util/capacitorStorageProxy/connector';
import { getEnvironment } from '../environment';

let cache: AnyLiteral = {};

const storage: Storage & {
getKeys: () => Promise<string[] | undefined>;
} = {
async getItem(key: StorageKey) {
async getItem(key: StorageKey, force?: boolean) {
if (getEnvironment().isAndroidApp && key in cache && !force) {
return cache[key];
}

const result = await callWindow('getItem', key);
return result ? JSON.parse(result, bigintReviver) : undefined;
const value = result ? JSON.parse(result, bigintReviver) : undefined;

if (getEnvironment().isAndroidApp) {
if (value === undefined) {
delete cache[key];
} else {
cache[key] = value;
}
}

return value;
},

async setItem(key: StorageKey, value: any) {
await callWindow('setItem', key, JSON.stringify(value));

if (getEnvironment().isAndroidApp) {
cache[key] = value;
}
},

async removeItem(key: StorageKey) {
await callWindow('removeItem', key);

if (getEnvironment().isAndroidApp) {
delete cache[key];
}
},

async clear() {
await callWindow('clear');

if (getEnvironment().isAndroidApp) {
cache = {};
}
},

async getKeys() {
Expand Down
Loading

0 comments on commit 17f6605

Please sign in to comment.