-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eca963d
commit 58c9fb8
Showing
11 changed files
with
880 additions
and
110 deletions.
There are no files selected for viewing
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,25 @@ | ||
using NBitcoin; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Linq; | ||
using System; | ||
|
||
namespace NBXplorer.Models; | ||
|
||
public class ImportUTXORequest | ||
{ | ||
[JsonProperty("UTXOs")] | ||
public OutPoint[] Utxos { get; set; } | ||
} | ||
|
||
public class AssociateScriptRequest | ||
{ | ||
public Script ScriptPubKey { get; set; } | ||
public IDestination Destination { get; set; } | ||
|
||
public BitcoinAddress GetAddress(Network network) | ||
{ | ||
return GetScriptPubKey().GetDestinationAddress(network); | ||
} | ||
|
||
public Script GetScriptPubKey() => ScriptPubKey ?? Destination.ScriptPubKey; | ||
} |
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,6 @@ | ||
namespace NBXplorer.Models; | ||
|
||
public class TrackedSourceRequest | ||
{ | ||
public TrackedSource TrackedSource { get; set; } | ||
} |
Oops, something went wrong.