Skip to content

Commit

Permalink
Remove dead explorer APIs + Move Network enum to Models namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Coding-Enthusiast committed Dec 31, 2024
1 parent ca93b88 commit 0db8d20
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 125 deletions.
30 changes: 30 additions & 0 deletions SharpPusher/Models/Networks.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// SharpPusher
// Copyright (c) 2017 Coding Enthusiast
// Distributed under the MIT software license, see the accompanying
// file LICENCE or http://www.opensource.org/licenses/mit-license.php.

namespace SharpPusher.Models
{
public enum Networks
{
Bitcoin,
BitcoinTestnet,
BitcoinCash,
BitcoinSV,
Dogecoin,
Litecoin,
Monero,
Zcash,
Ethereum,
EthereumTestnet,
Dash,
Ripple,
Groestlcoin,
Stellar,
Cardano,
Mixin,
Tezos,
EOS,
BitcoinABC
}
}
60 changes: 0 additions & 60 deletions SharpPusher/Services/PushServices/BlockExplorer.cs

This file was deleted.

41 changes: 0 additions & 41 deletions SharpPusher/Services/PushServices/Smartbit.cs

This file was deleted.

25 changes: 1 addition & 24 deletions SharpPusher/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Autarkysoft.Bitcoin.Blockchain.Scripts;
using Autarkysoft.Bitcoin.Blockchain.Transactions;
using Autarkysoft.Bitcoin.Encoders;
using SharpPusher.Models;
using SharpPusher.MVVM;
using SharpPusher.Services;
using SharpPusher.Services.PushServices;
Expand Down Expand Up @@ -49,29 +50,6 @@ public string RawTx
}


public enum Networks
{
Bitcoin,
BitcoinTestnet,
BitcoinCash,
BitcoinSV,
Dogecoin,
Litecoin,
Monero,
Zcash,
Ethereum,
EthereumTestnet,
Dash,
Ripple,
Groestlcoin,
Stellar,
Cardano,
Mixin,
Tezos,
EOS,
BitcoinABC
}

public ObservableCollection<Networks> NetworkList { get; set; }

private Networks _selNet;
Expand All @@ -94,7 +72,6 @@ private void SetApiList()
ApiList =
[
new Blockchair(Blockchair.Chain.BTC),
new Smartbit(),
new BlockCypher(),
new P2P(true)
];
Expand Down

0 comments on commit 0db8d20

Please sign in to comment.