Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
update core library and version to v1.0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
matsakiv committed Jan 8, 2020
1 parent d636384 commit 717fbbf
Show file tree
Hide file tree
Showing 44 changed files with 1,453 additions and 568 deletions.
2 changes: 1 addition & 1 deletion Atomex.Client.Core
Submodule Atomex.Client.Core updated 43 files
+8 −8 Atomex.Client.Core.Tests/BitcoinBased/BitcoinBasedCurrencyAccountSendTests.cs
+1 −0 Atomex.Client.Core/Atomex.Client.Core.csproj
+18 −0 Atomex.Client.Core/Blockchain/Abstract/IBlockchainApi.cs
+4 −4 Atomex.Client.Core/Blockchain/BitCore/BitCoreApi.cs
+53 −0 Atomex.Client.Core/Blockchain/BlockchainApi.cs
+39 −0 Atomex.Client.Core/Blockchain/BlockchainApiExtensions.cs
+4 −4 Atomex.Client.Core/Blockchain/BlockchainInfo/BlockchainInfoApi.cs
+38 −15 Atomex.Client.Core/Blockchain/Ethereum/CompositeEthereumBlockchainApi.cs
+30 −4 Atomex.Client.Core/Blockchain/Ethereum/EtherScanApi.cs
+13 −1 Atomex.Client.Core/Blockchain/Ethereum/IEthereumBlockchainApi.cs
+29 −14 Atomex.Client.Core/Blockchain/Ethereum/Web3BlockchainApi.cs
+1 −2 Atomex.Client.Core/Blockchain/Helpers/TransactionConfirmationHelper.cs
+4 −4 Atomex.Client.Core/Blockchain/Insight/InsightApi.cs
+4 −4 Atomex.Client.Core/Blockchain/SoChain/SoChainApi.cs
+16 −6 Atomex.Client.Core/Blockchain/Tezos/BabyTzktApi.cs
+7 −1 Atomex.Client.Core/Blockchain/Tezos/ITezosBlockchainApi.cs
+47 −177 Atomex.Client.Core/Blockchain/Tezos/Internal/Rpc.cs
+15 −5 Atomex.Client.Core/Blockchain/Tezos/TzScanApi.cs
+4 −0 Atomex.Client.Core/Common/HttpHelper.cs
+3 −0 Atomex.Client.Core/Common/Result.cs
+35 −0 Atomex.Client.Core/Common/ResultHelper.cs
+2 −1 Atomex.Client.Core/Currencies/Tezos.cs
+8 −6 Atomex.Client.Core/Swaps/BitcoinBased/BitcoinBasedSwap.cs
+3 −2 Atomex.Client.Core/Swaps/Ethereum/EthereumSwap.cs
+2 −2 Atomex.Client.Core/Swaps/Ethereum/Helpers/EthereumSwapInitiatedHelper.cs
+1 −1 Atomex.Client.Core/Swaps/Ethereum/Helpers/EthereumSwapRedeemedHelper.cs
+1 −1 Atomex.Client.Core/Swaps/Ethereum/Helpers/EthereumSwapRefundedHelper.cs
+1 −1 Atomex.Client.Core/Swaps/Helpers/TransactionBroadcastHelper.cs
+1 −1 Atomex.Client.Core/Swaps/Tezos/Helpers/TezosSwapInitiatedHelper.cs
+1 −1 Atomex.Client.Core/Swaps/Tezos/Helpers/TezosSwapRedeemedHelper.cs
+1 −1 Atomex.Client.Core/Swaps/Tezos/Helpers/TezosSwapRefundedHelper.cs
+3 −2 Atomex.Client.Core/Swaps/Tezos/TezosSwap.cs
+3 −0 Atomex.Client.Core/Wallet/Abstract/IAccount.cs
+24 −21 Atomex.Client.Core/Wallet/Account.cs
+3 −3 Atomex.Client.Core/Wallet/BitcoinBased/BitcoinBasedAccount.cs
+3 −1 Atomex.Client.Core/Wallet/BitcoinBased/BitcoinBasedWalletScanner.cs
+3 −3 Atomex.Client.Core/Wallet/CurrencyAccountCreator.cs
+7 −8 Atomex.Client.Core/Wallet/Ethereum/EthereumAccount.cs
+33 −12 Atomex.Client.Core/Wallet/Ethereum/EthereumWalletScanner.cs
+14 −7 Atomex.Client.Core/Wallet/HdWalletScanner.cs
+7 −10 Atomex.Client.Core/Wallet/Tezos/TezosAccount.cs
+3 −2 Atomex.Client.Core/Wallet/Tezos/TezosWalletScanner.cs
+7 −7 Atomex.Client.Core/currencies.json
2 changes: 1 addition & 1 deletion Atomex.Client.Wpf.Installer/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<?define Name = "Atomex Client" ?>
<?define Manufacturer = "Atomex.me" ?>
<?define Description = "Multicurrency HD wallet with built-in hybrid exchange based on atomic swap." ?>
<?define Version = "1.0.21" ?>
<?define Version = "1.0.22" ?>
<?define UpgradeCode = "DB7FCF8D-E0C6-4C99-A6B1-3FB6D703F97E" ?>
<?define ExeName = "Atomex.Client.Wpf.exe" ?>

Expand Down
2 changes: 1 addition & 1 deletion Atomex.Client.Wpf/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected override void OnStartup(StartupEventArgs e)
var mainView = new MainWindow();
mainView.DataContext = new MainViewModel(AtomexApp, mainView, mainView);
mainView.Show();
mainView.ShowStartDialog(new StartViewModel(AtomexApp, mainView));
mainView.ShowDialog(Dialogs.Start, new StartViewModel(AtomexApp, mainView));

MainWindow = mainView;

Expand Down
49 changes: 35 additions & 14 deletions Atomex.Client.Wpf/Atomex.Client.Wpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<LangVersion>preview</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -319,14 +320,11 @@
<Compile Include="Common\DecimalExtensions.cs" />
<Compile Include="Common\DesignTime.cs" />
<Compile Include="Common\Environment.cs" />
<Compile Include="Common\IPageResolver.cs" />
<Compile Include="Common\Msi\MsiApi.cs" />
<Compile Include="Common\Msi\MsiPackage.cs" />
<Compile Include="Common\Msi\MsiProduct.cs" />
<Compile Include="Common\Msi\PropsCollection.cs" />
<Compile Include="Common\MsiProductProvider.cs" />
<Compile Include="Common\Navigation.cs" />
<Compile Include="Common\PageResolver.cs" />
<Compile Include="Common\RelayCommand.cs" />
<Compile Include="Common\SingleApp.cs" />
<Compile Include="Common\ChildWindowHelper.cs" />
Expand Down Expand Up @@ -354,6 +352,7 @@
<Compile Include="Helpers\ComboBoxHelper.cs" />
<Compile Include="ViewModels\ConversionConfirmationViewModel.cs" />
<Compile Include="ViewModels\CreateWalletViewModels\WalletTypeViewModel.cs" />
<Compile Include="ViewModels\Dialogs.cs" />
<Compile Include="ViewModels\MyWalletsViewModel.cs" />
<Compile Include="ViewModels\Abstract\IExpandable.cs" />
<Compile Include="ViewModels\CreateWalletViewModel.cs" />
Expand All @@ -364,12 +363,13 @@
<Compile Include="ViewModels\CurrencyViewModels\LitecoinCurrencyViewModel.cs" />
<Compile Include="ViewModels\CurrencyViewModels\TezosCurrencyViewModel.cs" />
<Compile Include="ViewModels\MessageViewModel.cs" />
<Compile Include="ViewModels\SendViewModels\BakerViewModel.cs" />
<Compile Include="ViewModels\SendViewModels\DelegateConfirmationViewModel.cs" />
<Compile Include="ViewModels\SendViewModels\SendConfirmationViewModel.cs" />
<Compile Include="ViewModels\SendViewModels\DelegateViewModel.cs" />
<Compile Include="ViewModels\BakerViewModel.cs" />
<Compile Include="ViewModels\DelegateConfirmationViewModel.cs" />
<Compile Include="ViewModels\SendConfirmationViewModel.cs" />
<Compile Include="ViewModels\DelegateViewModel.cs" />
<Compile Include="ViewModels\SendViewModels\BitcoinBasedSendViewModel.cs" />
<Compile Include="ViewModels\SendViewModels\SendViewModel.cs" />
<Compile Include="ViewModels\SendViewModels\WalletAddressViewModel.cs" />
<Compile Include="ViewModels\WalletAddressViewModel.cs" />
<Compile Include="ViewModels\SettingsViewModel.cs" />
<Compile Include="ViewModels\SwapViewModel.cs" />
<Compile Include="ViewModels\SwapViewModelFactory.cs" />
Expand Down Expand Up @@ -410,15 +410,24 @@
<Compile Include="Views\DelegatingPage.xaml.cs">
<DependentUpon>DelegatingPage.xaml</DependentUpon>
</Compile>
<Compile Include="Views\SendViews\DelegateConfirmationPage.xaml.cs">
<Compile Include="Views\DelegateConfirmationPage.xaml.cs">
<DependentUpon>DelegateConfirmationPage.xaml</DependentUpon>
</Compile>
<Compile Include="Views\SendViews\SendConfirmationPage.xaml.cs">
<Compile Include="Views\SendConfirmationPage.xaml.cs">
<DependentUpon>SendConfirmationPage.xaml</DependentUpon>
</Compile>
<Compile Include="Views\SendViews\DelegatePage.xaml.cs">
<Compile Include="Views\DelegatePage.xaml.cs">
<DependentUpon>DelegatePage.xaml</DependentUpon>
</Compile>
<Compile Include="Views\SendViews\BitcoinBasedSendPage.xaml.cs">
<DependentUpon>BitcoinBasedSendPage.xaml</DependentUpon>
</Compile>
<Compile Include="Views\SendViews\EthereumSendPage.xaml.cs">
<DependentUpon>EthereumSendPage.xaml</DependentUpon>
</Compile>
<Compile Include="Views\SendViews\TezosSendPage.xaml.cs">
<DependentUpon>TezosSendPage.xaml</DependentUpon>
</Compile>
<Compile Include="Views\SendViews\SendPage.xaml.cs">
<DependentUpon>SendPage.xaml</DependentUpon>
</Compile>
Expand Down Expand Up @@ -549,15 +558,27 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Views\SendViews\DelegateConfirmationPage.xaml">
<Page Include="Views\DelegateConfirmationPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Views\SendConfirmationPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Views\DelegatePage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Views\SendViews\SendConfirmationPage.xaml">
<Page Include="Views\SendViews\BitcoinBasedSendPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Views\SendViews\EthereumSendPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Views\SendViews\DelegatePage.xaml">
<Page Include="Views\SendViews\TezosSendPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
Expand Down
11 changes: 0 additions & 11 deletions Atomex.Client.Wpf/Common/IPageResolver.cs

This file was deleted.

100 changes: 0 additions & 100 deletions Atomex.Client.Wpf/Common/Navigation.cs

This file was deleted.

26 changes: 0 additions & 26 deletions Atomex.Client.Wpf/Common/PageResolver.cs

This file was deleted.

17 changes: 6 additions & 11 deletions Atomex.Client.Wpf/Controls/ChildWindowManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,14 @@ public static Task<TResult> ShowChildWindowAsync<TResult>(
window.Dispatcher.VerifyAccess();

var metroDialogContainer = window.Template.FindName("PART_MetroActiveDialogContainer", window) as Grid;
metroDialogContainer = metroDialogContainer ?? window.Template.FindName("PART_MetroInactiveDialogsContainer", window) as Grid;
metroDialogContainer ??= window.Template.FindName("PART_MetroInactiveDialogsContainer", window) as Grid;

if (metroDialogContainer == null)
{
throw new InvalidOperationException("The provided child window can not add, there is no container defined.");
}

if (metroDialogContainer.Children.Contains(dialog))
{
throw new InvalidOperationException("The provided child window is already visible in the specified window.");
}

if (overlayFillBehavior == OverlayFillBehavior.WindowContent)
{
metroDialogContainer.SetValue(Grid.RowProperty, (int)metroDialogContainer.GetValue(Grid.RowProperty) + 1);
Expand Down Expand Up @@ -132,14 +130,11 @@ public static Task<TResult> ShowChildWindowAsync<TResult>(
{
window.Dispatcher.VerifyAccess();

if (container == null)
{
if (container == null)
throw new InvalidOperationException("The provided child window can not add, there is no container defined.");
}

if (container.Children.Contains(dialog))
{
throw new InvalidOperationException("The provided child window is already visible in the specified window.");
}

return ShowChildWindowInternalAsync<TResult>(dialog, container);
}
Expand Down Expand Up @@ -197,7 +192,7 @@ public static void CloseAllChildWindows(this Window window)
window.Dispatcher.VerifyAccess();

var container = window.Template.FindName("PART_MetroActiveDialogContainer", window) as Grid;
container = container ?? window.Template.FindName("PART_MetroInactiveDialogsContainer", window) as Grid;
container ??= window.Template.FindName("PART_MetroInactiveDialogsContainer", window) as Grid;

if (container == null)
throw new InvalidOperationException("There is no container defined.");
Expand Down
33 changes: 10 additions & 23 deletions Atomex.Client.Wpf/Controls/IDialogViewer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,18 @@ namespace Atomex.Client.Wpf.Controls
{
public interface IDialogViewer
{
void ShowDialog(
int dialogId,
object dataContext,
Action loaded = null,
Action canceled = null,
int defaultPageId = 0);
void HideDialog(int dialogId);
void HideAllDialogs();

void ShowStartDialog(object dataContext);
void HideStartDialog();

void ShowCreateWalletDialog(object dataContext);
void HideCreateWalletDialog();

void ShowSendDialog(object dataContext, Action dialogLoaded = null);
void HideSendDialog();

void ShowDelegateDialog(object dataContext, Action dialogLoaded = null);
void HideDelegateDialog();

void ShowConversionConfirmationDialog(object dataContext, Action dialogLoaded = null);
void HideConversionConfirmationDialog();

void ShowReceiveDialog(object dataContext);
void HideReceiveDialog();

void ShowUnlockDialog(object dataContext, EventHandler canceled = null);
void HideUnlockDialog();

void ShowMyWalletsDialog(object dataContext);
void HideMyWalletsDialog();
void PushPage(int dialogId, int pageId, object dataContext = null);
void PopPage(int dialogId);
void Back(int dialogId);

void ShowMessage(string title, string message);
Task<MessageDialogResult> ShowMessageAsync(string title, string message, MessageDialogStyle style);
Expand Down
18 changes: 18 additions & 0 deletions Atomex.Client.Wpf/Properties/Resources.Designer.cs

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

Loading

0 comments on commit 717fbbf

Please sign in to comment.