-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
65 changed files
with
1,175 additions
and
389 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github: [kukks] | ||
custom: ['https://donate.kukks.org'] |
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,42 @@ | ||
name: 'Publish application' | ||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the code | ||
- uses: actions/checkout@v2 | ||
|
||
# Install .NET Core SDK | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Test | ||
run: dotnet test | ||
|
||
- name: Publish NuGet | ||
if: ${{ github.ref == 'refs/heads/master' }} # Publish only when the push is on master | ||
uses: Rebel028/publish-nuget@v2.7.0 | ||
with: | ||
PROJECT_FILE_PATH: DotNut.Client/DotNut.csproj | ||
NUGET_KEY: ${{secrets.NUGET_KEY}} | ||
PACKAGE_NAME: DotNut | ||
INCLUDE_SYMBOLS: false | ||
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$ | ||
TAG_COMMIT: true | ||
TAG_FORMAT: DotNut/v* | ||
- name: Publish Github Package Registry | ||
if: ${{ github.ref == 'refs/heads/master' }} # Publish only when the push is on master | ||
uses: Rebel028/publish-nuget@v2.7.0 | ||
with: | ||
PROJECT_FILE_PATH: DotNut.Client/DotNut.Client.csproj | ||
NUGET_SOURCE: "https://nuget.pkg.github.com/Kukks" | ||
NUGET_KEY: ${{secrets.GH_TOKEN}} | ||
PACKAGE_NAME: DotNut | ||
INCLUDE_SYMBOLS: false | ||
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$ | ||
TAG_COMMIT: true | ||
TAG_FORMAT: DotNut/v* |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
**/bin | ||
**/obj | ||
.idea | ||
.idea |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
180 changes: 166 additions & 14 deletions
180
DotNuts.Tests/UnitTest1.cs → DotNut.Tests/UnitTest1.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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,12 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=7c67fc42_002Dfa49_002D41c5_002Db4e4_002D876bfc07dd62/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" Name="Test1" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
 | ||
<TestAncestor>
 | ||
<TestId>xUnit::0AAAA85C-9FDC-4FD5-9CC2-ED8385B40106::net8.0::DotNuts.Tests.UnitTest1</TestId>
 | ||
</TestAncestor>
 | ||
</SessionState></s:String> | ||
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=b0637c43_002D4622_002D4768_002D94e5_002D70df8e44a8fe/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" IsActive="True" Name="Nut11_Signatures" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
 | ||
<And>
 | ||
<Namespace>DotNuts.Tests</Namespace>
 | ||
<Project Location="C:\Git\DotNuts\DotNuts.Tests" Presentation="&lt;DotNuts.Tests&gt;" />
 | ||
</And>
 | ||
</SessionState></s:String></wpf:ResourceDictionary> |
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
2 changes: 2 additions & 0 deletions
2
DotNuts/CashuProtocolError.cs → DotNut/Api/CashuProtocolError.cs
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
4 changes: 3 additions & 1 deletion
4
DotNuts/CashuProtocolException.cs → DotNut/Api/CashuProtocolException.cs
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,16 @@ | ||
using System.Text.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace DotNut.ApiModels; | ||
|
||
public class GetInfoResponse | ||
{ | ||
[JsonPropertyName("name")] public string Name { get; set; } | ||
[JsonPropertyName("pubkey")] public string Pubkey { get; set; } | ||
[JsonPropertyName("version")] public string Version { get; set; } | ||
[JsonPropertyName("description")] public string Description { get; set; } | ||
[JsonPropertyName("description_long")] public string DescriptionLong { get; set; } | ||
[JsonPropertyName("contact")] public List<List<string>> Contact { get; set; } | ||
[JsonPropertyName("motd")] public string Motd { get; set; } | ||
[JsonPropertyName("nuts")] public Dictionary<string, JsonDocument> Nuts { get; set; } | ||
} |
2 changes: 1 addition & 1 deletion
2
DotNuts/GetKeysResponse.cs → DotNut/ApiModels/GetKeysResponse.cs
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
2 changes: 1 addition & 1 deletion
2
DotNuts/GetKeysetsResponse.cs → DotNut/ApiModels/GetKeysetsResponse.cs
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,9 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace DotNut.ApiModels; | ||
|
||
public class PostCheckStateRequest | ||
{ | ||
[JsonPropertyName("Ys")] | ||
public string[] Ys { get; set; } | ||
} |
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,10 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace DotNut.ApiModels; | ||
|
||
public class PostCheckStateResponse | ||
{ | ||
|
||
[JsonPropertyName("states")] | ||
public StateResponseItem[] States { get; set; } | ||
} |
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,9 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace DotNut.ApiModels; | ||
|
||
public class PostRestoreRequest | ||
{ | ||
[JsonPropertyName("outputs")] | ||
public BlindedMessage[] Outputs { get; set; } | ||
} |
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,11 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace DotNut.ApiModels; | ||
|
||
public class PostRestoreResponse | ||
{ | ||
[JsonPropertyName("outputs")] | ||
public BlindedMessage[] Outputs { get; set; } | ||
[JsonPropertyName("signatures")] | ||
public BlindSignature[] Signatures { get; set; } | ||
} |
2 changes: 1 addition & 1 deletion
2
DotNuts/PostSwapRequest.cs → DotNut/ApiModels/PostSwapRequest.cs
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
2 changes: 1 addition & 1 deletion
2
DotNuts/PostSwapResponse.cs → DotNut/ApiModels/PostSwapResponse.cs
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,19 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace DotNut.ApiModels; | ||
|
||
public class StateResponseItem | ||
{ | ||
|
||
public string Y { get; set; } | ||
[JsonConverter(typeof(JsonStringEnumConverter))] | ||
public TokenState State { get; set; } | ||
public string? Witness { get; set; } | ||
|
||
public enum TokenState | ||
{ | ||
UNSPENT, | ||
PENDING, | ||
SPENT | ||
} | ||
} |
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
Oops, something went wrong.