Skip to content

Commit 0db8d20

Browse files
Remove dead explorer APIs + Move Network enum to Models namespace
1 parent ca93b88 commit 0db8d20

File tree

4 files changed

+31
-125
lines changed

4 files changed

+31
-125
lines changed

SharpPusher/Models/Networks.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// SharpPusher
2+
// Copyright (c) 2017 Coding Enthusiast
3+
// Distributed under the MIT software license, see the accompanying
4+
// file LICENCE or http://www.opensource.org/licenses/mit-license.php.
5+
6+
namespace SharpPusher.Models
7+
{
8+
public enum Networks
9+
{
10+
Bitcoin,
11+
BitcoinTestnet,
12+
BitcoinCash,
13+
BitcoinSV,
14+
Dogecoin,
15+
Litecoin,
16+
Monero,
17+
Zcash,
18+
Ethereum,
19+
EthereumTestnet,
20+
Dash,
21+
Ripple,
22+
Groestlcoin,
23+
Stellar,
24+
Cardano,
25+
Mixin,
26+
Tezos,
27+
EOS,
28+
BitcoinABC
29+
}
30+
}

SharpPusher/Services/PushServices/BlockExplorer.cs

Lines changed: 0 additions & 60 deletions
This file was deleted.

SharpPusher/Services/PushServices/Smartbit.cs

Lines changed: 0 additions & 41 deletions
This file was deleted.

SharpPusher/ViewModels/MainWindowViewModel.cs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Autarkysoft.Bitcoin.Blockchain.Scripts;
88
using Autarkysoft.Bitcoin.Blockchain.Transactions;
99
using Autarkysoft.Bitcoin.Encoders;
10+
using SharpPusher.Models;
1011
using SharpPusher.MVVM;
1112
using SharpPusher.Services;
1213
using SharpPusher.Services.PushServices;
@@ -49,29 +50,6 @@ public string RawTx
4950
}
5051

5152

52-
public enum Networks
53-
{
54-
Bitcoin,
55-
BitcoinTestnet,
56-
BitcoinCash,
57-
BitcoinSV,
58-
Dogecoin,
59-
Litecoin,
60-
Monero,
61-
Zcash,
62-
Ethereum,
63-
EthereumTestnet,
64-
Dash,
65-
Ripple,
66-
Groestlcoin,
67-
Stellar,
68-
Cardano,
69-
Mixin,
70-
Tezos,
71-
EOS,
72-
BitcoinABC
73-
}
74-
7553
public ObservableCollection<Networks> NetworkList { get; set; }
7654

7755
private Networks _selNet;
@@ -94,7 +72,6 @@ private void SetApiList()
9472
ApiList =
9573
[
9674
new Blockchair(Blockchair.Chain.BTC),
97-
new Smartbit(),
9875
new BlockCypher(),
9976
new P2P(true)
10077
];

0 commit comments

Comments
 (0)