This commit is contained in:
Kukks
2023-01-18 13:27:56 +01:00
parent df1c30e654
commit 9140f9b3ff
13 changed files with 379 additions and 240 deletions

View File

@@ -12,7 +12,6 @@
<option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" /> <option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
<method v="2"> <method v="2">
<option name="Build Solution" enabled="true" /> <option name="Build Solution" enabled="true" />
<option name="RunConfigurationTask" enabled="true" run_configuration_name="wabi publish" run_configuration_type="DotNetFolderPublish" />
</method> </method>
</configuration> </configuration>
</component> </component>

View File

@@ -1,34 +1,54 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Import Project="../../submodules/btcpayserver/Build/Common.csproj" />
<PropertyGroup>
<Product>AOPP</Product>
<Description>Allows you to support the AOPP protocol in invoices to allow customers to bypass stupid KYC rules.</Description>
<Authors>Kukks</Authors>
<Version>1.0.1</Version>
</PropertyGroup>
<!-- Plugin development properties --> <Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<PreserveCompilationContext>false</PreserveCompilationContext>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
</PropertyGroup>
<!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory --> <PropertyGroup>
<ItemDefinitionGroup> <TargetFramework>net6.0</TargetFramework>
<ProjectReference> <LangVersion>10</LangVersion>
<Properties>StaticWebAssetsEnabled=false</Properties> <Configurations>Debug;Release;Altcoins-Release;Altcoins-Debug</Configurations>
<Private>false</Private> <Platforms>AnyCPU</Platforms>
<ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets> </PropertyGroup>
</ProjectReference>
</ItemDefinitionGroup> <!-- Default similar to Debug/Release -->
<PropertyGroup Condition=" '$(Configuration)' == 'Altcoins-Release' ">
<Optimize Condition=" '$(Optimize)' == '' ">true</Optimize>
<Altcoins>true</Altcoins>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Altcoins-Debug'">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<Altcoins>true</Altcoins>
</PropertyGroup>
<!-- Plugin specific properties -->
<PropertyGroup>
<Product>AOPP</Product>
<Description>Allows you to support the AOPP protocol in invoices to allow customers to bypass stupid KYC rules.</Description>
<Authors>Kukks</Authors>
<Version>1.0.1</Version>
</PropertyGroup>
<!-- Plugin development properties -->
<PropertyGroup>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<PreserveCompilationContext>false</PreserveCompilationContext>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
</PropertyGroup>
<!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory -->
<ItemDefinitionGroup>
<ProjectReference>
<Properties>StaticWebAssetsEnabled=false</Properties>
<Private>false</Private>
<ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets>
</ProjectReference>
</ItemDefinitionGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\**"/>
<ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj"/>
</ItemGroup>
<ItemGroup>
<Folder Include="Resources"/>
</ItemGroup>
</Project>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj" />
<EmbeddedResource Include="Resources\**" />
</ItemGroup>
<ItemGroup>
<Folder Include="Views\Shared" />
</ItemGroup>
</Project>

View File

@@ -1,34 +1,53 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Import Project="../../submodules/btcpayserver/Build/Common.csproj" /> <Project Sdk="Microsoft.NET.Sdk.Razor">
<!-- Plugin specific properties --> <PropertyGroup>
<PropertyGroup> <TargetFramework>net6.0</TargetFramework>
<Product>Bitcoin Whitepaper</Product> <LangVersion>10</LangVersion>
<Description>This makes the Bitcoin whitepaper available on your BTCPay Server.</Description> <Configurations>Debug;Release;Altcoins-Release;Altcoins-Debug</Configurations>
<Authors>Kukks</Authors> <Platforms>AnyCPU</Platforms>
<Version>1.0.2</Version> </PropertyGroup>
</PropertyGroup>
<!-- Plugin development properties --> <!-- Default similar to Debug/Release -->
<PropertyGroup> <PropertyGroup Condition=" '$(Configuration)' == 'Altcoins-Release' ">
<AddRazorSupportForMvc>true</AddRazorSupportForMvc> <Optimize Condition=" '$(Optimize)' == '' ">true</Optimize>
<PreserveCompilationContext>false</PreserveCompilationContext> <Altcoins>true</Altcoins>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest> </PropertyGroup>
</PropertyGroup> <PropertyGroup Condition="'$(Configuration)' == 'Altcoins-Debug'">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<Altcoins>true</Altcoins>
</PropertyGroup>
<!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory --> <!-- Plugin specific properties -->
<ItemDefinitionGroup> <PropertyGroup>
<ProjectReference> <Product>Bitcoin Whitepaper</Product>
<Properties>StaticWebAssetsEnabled=false</Properties> <Description>This makes the Bitcoin whitepaper available on your BTCPay Server.</Description>
<Private>false</Private> <Authors>Kukks</Authors>
<ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets> <Version>1.0.2</Version>
</ProjectReference> </PropertyGroup>
</ItemDefinitionGroup> <!-- Plugin development properties -->
<PropertyGroup>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<PreserveCompilationContext>false</PreserveCompilationContext>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
</PropertyGroup>
<!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory -->
<ItemDefinitionGroup>
<ProjectReference>
<Properties>StaticWebAssetsEnabled=false</Properties>
<Private>false</Private>
<ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets>
</ProjectReference>
</ItemDefinitionGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\**"/>
<ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj"/>
</ItemGroup>
<ItemGroup>
<Folder Include="Resources"/>
</ItemGroup>
</Project>
<ItemGroup>
<ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj">
</ProjectReference>
<EmbeddedResource Include="bitcoin.pdf" />
</ItemGroup>
</Project>

View File

@@ -1,36 +1,52 @@
<Project Sdk="Microsoft.NET.Sdk.Razor"> <Project Sdk="Microsoft.NET.Sdk.Razor">
<Import Project="../../submodules/btcpayserver/Build/Common.csproj" /> <PropertyGroup>
<!-- Plugin specific properties --> <TargetFramework>net6.0</TargetFramework>
<PropertyGroup> <LangVersion>10</LangVersion>
<Product>FixedFloat</Product> <Configurations>Debug;Release;Altcoins-Release;Altcoins-Debug</Configurations>
<Description>Allows you to embed a FixedFloat conversion screen to allow customers to pay with altcoins.</Description> <Platforms>AnyCPU</Platforms>
<Authors>Kukks</Authors> </PropertyGroup>
<Version>1.0.6</Version>
</PropertyGroup>
<!-- Plugin development properties --> <!-- Default similar to Debug/Release -->
<PropertyGroup> <PropertyGroup Condition=" '$(Configuration)' == 'Altcoins-Release' ">
<AddRazorSupportForMvc>true</AddRazorSupportForMvc> <Optimize Condition=" '$(Optimize)' == '' ">true</Optimize>
<PreserveCompilationContext>false</PreserveCompilationContext> <Altcoins>true</Altcoins>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest> </PropertyGroup>
</PropertyGroup> <PropertyGroup Condition="'$(Configuration)' == 'Altcoins-Debug'">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<Altcoins>true</Altcoins>
</PropertyGroup>
<!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory --> <!-- Plugin specific properties -->
<ItemDefinitionGroup> <PropertyGroup>
<ProjectReference> <Product>FixedFloat</Product>
<Properties>StaticWebAssetsEnabled=false</Properties> <Description>Allows you to embed a FixedFloat conversion screen to allow customers to pay with altcoins.</Description>
<Private>false</Private> <Authors>Kukks</Authors>
<ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets> <Version>1.0.6</Version>
</ProjectReference> </PropertyGroup>
</ItemDefinitionGroup> <!-- Plugin development properties -->
<PropertyGroup>
<ItemGroup> <AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<FrameworkReference Include="Microsoft.AspNetCore.App" /> <PreserveCompilationContext>false</PreserveCompilationContext>
<ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj" /> <GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
<EmbeddedResource Include="Resources\**" /> </PropertyGroup>
</ItemGroup>
<ItemGroup> <!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory -->
<Folder Include="Views\Shared" /> <ItemDefinitionGroup>
</ItemGroup> <ProjectReference>
<Properties>StaticWebAssetsEnabled=false</Properties>
<Private>false</Private>
<ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets>
</ProjectReference>
</ItemDefinitionGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\**"/>
<ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj"/>
</ItemGroup>
<ItemGroup>
<Folder Include="Resources"/>
</ItemGroup>
</Project> </Project>

View File

@@ -1,6 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk.Razor"> <Project Sdk="Microsoft.NET.Sdk.Razor">
<Import Project="../../submodules/btcpayserver/Build/Common.csproj" /> <PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>10</LangVersion>
<Configurations>Debug;Release;Altcoins-Release;Altcoins-Debug</Configurations>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<!-- Default similar to Debug/Release -->
<PropertyGroup Condition=" '$(Configuration)' == 'Altcoins-Release' ">
<Optimize Condition=" '$(Optimize)' == '' ">true</Optimize>
<Altcoins>true</Altcoins>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Altcoins-Debug'">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<Altcoins>true</Altcoins>
</PropertyGroup>
<!-- Plugin specific properties --> <!-- Plugin specific properties -->
<PropertyGroup> <PropertyGroup>
@@ -9,29 +27,28 @@
<Authors>Kukks</Authors> <Authors>Kukks</Authors>
<Version>1.0.0</Version> <Version>1.0.0</Version>
</PropertyGroup> </PropertyGroup>
<!-- Plugin development properties -->
<PropertyGroup>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<PreserveCompilationContext>false</PreserveCompilationContext>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
</PropertyGroup>
<!-- Plugin development properties --> <!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory -->
<PropertyGroup> <ItemDefinitionGroup>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc> <ProjectReference>
<PreserveCompilationContext>false</PreserveCompilationContext> <Properties>StaticWebAssetsEnabled=false</Properties>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest> <Private>false</Private>
</PropertyGroup> <ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets>
</ProjectReference>
</ItemDefinitionGroup>
<!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory -->
<ItemDefinitionGroup>
<ProjectReference>
<Properties>StaticWebAssetsEnabled=false</Properties>
<Private>false</Private>
<ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets>
</ProjectReference>
</ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" /> <EmbeddedResource Include="Resources\**"/>
<ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj" /> <ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj"/>
<EmbeddedResource Include="Resources\**" /> </ItemGroup>
</ItemGroup> <ItemGroup>
<ItemGroup> <Folder Include="Resources"/>
<Folder Include="Views\Shared" /> </ItemGroup>
</ItemGroup>
</Project> </Project>

View File

@@ -1,55 +1,53 @@
<Project Sdk="Microsoft.NET.Sdk.Razor"> <Project Sdk="Microsoft.NET.Sdk.Razor">
<Import Project="../../submodules/btcpayserver/Build/Common.csproj" /> <PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>10</LangVersion>
<Configurations>Debug;Release;Altcoins-Release;Altcoins-Debug</Configurations>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<!-- Default similar to Debug/Release --> <!-- Default similar to Debug/Release -->
<PropertyGroup Condition=" '$(Configuration)' == 'Altcoins-Release' "> <PropertyGroup Condition=" '$(Configuration)' == 'Altcoins-Release' ">
<Optimize Condition=" '$(Optimize)' == '' ">true</Optimize> <Optimize Condition=" '$(Optimize)' == '' ">true</Optimize>
<Altcoins>true</Altcoins> <Altcoins>true</Altcoins>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Altcoins-Debug'"> <PropertyGroup Condition="'$(Configuration)' == 'Altcoins-Debug'">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants> <DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<Altcoins>true</Altcoins> <Altcoins>true</Altcoins>
</PropertyGroup> </PropertyGroup>
<!-- -->
<PropertyGroup Condition="( '$(Configuration)' == 'Debug' Or '$(Configuration)' == 'Altcoins-Debug') And '$(RazorCompileOnBuild)' != 'true' And '$(DotNetWatchBuild)' != 'true' And '$(DesignTimeBuild)' != 'true'"> <!-- Plugin specific properties -->
<RazorCompileOnBuild>false</RazorCompileOnBuild> <PropertyGroup>
</PropertyGroup> <Product>Liquid+</Product>
<Description>Enhanced support for the liquid network.</Description>
<Authors>Kukks</Authors>
<Version>1.0.8</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(Altcoins)' == 'true'"> <!-- Plugin development properties -->
<DefineConstants>$(DefineConstants);ALTCOINS</DefineConstants> <PropertyGroup>
</PropertyGroup> <AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<!-- Plugin specific properties --> <PreserveCompilationContext>false</PreserveCompilationContext>
<PropertyGroup> <GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
<Product>Liquid+</Product> </PropertyGroup>
<Description>Enhanced support for the liquid network.</Description>
<Authors>Kukks</Authors>
<Version>1.0.8</Version>
</PropertyGroup>
<!-- Plugin development properties --> <!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory -->
<PropertyGroup> <ItemDefinitionGroup>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc> <ProjectReference>
<PreserveCompilationContext>false</PreserveCompilationContext> <Properties>StaticWebAssetsEnabled=false</Properties>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest> <Private>false</Private>
</PropertyGroup> <ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets>
</ProjectReference>
</ItemDefinitionGroup>
<!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory -->
<ItemDefinitionGroup>
<ProjectReference>
<Properties>StaticWebAssetsEnabled=false</Properties>
<Private>false</Private>
<ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets>
</ProjectReference>
</ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" /> <EmbeddedResource Include="Resources\**"/>
<ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj" /> <ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj"/>
<EmbeddedResource Include="Resources\**" /> </ItemGroup>
</ItemGroup> <ItemGroup>
<ItemGroup> <Folder Include="Resources"/>
<Folder Include="Views\Shared" /> </ItemGroup>
</ItemGroup> </Project>
</Project>

View File

@@ -1,6 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Linq.Expressions;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
@@ -11,8 +12,10 @@ using BTCPayServer.Client;
using BTCPayServer.Common; using BTCPayServer.Common;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
using NBitcoin; using NBitcoin;
using NBXplorer; using NBXplorer;
using XX;
namespace BTCPayServer.Plugins.LiquidPlus.Controllers namespace BTCPayServer.Plugins.LiquidPlus.Controllers
{ {
@@ -262,3 +265,18 @@ public class GenerateLiquidImportScripts
} }
} }
} }
namespace XX
{
public static class ModelStateExtensions
{
public static void AddModelError<TModel, TProperty>(this TModel source,
Expression<Func<TModel, TProperty>> ex,
string message,
ControllerBase controller)
{
var provider = (ModelExpressionProvider)controller.HttpContext.RequestServices.GetService(typeof(ModelExpressionProvider));
var key = provider.GetExpressionText(ex);
controller.ModelState.AddModelError(key, message);
}
}
}

View File

@@ -1,38 +1,53 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Import Project="../../submodules/btcpayserver/Build/Common.csproj" /> <Project Sdk="Microsoft.NET.Sdk.Razor">
<!-- Plugin specific properties --> <PropertyGroup>
<PropertyGroup> <TargetFramework>net6.0</TargetFramework>
<Product>LNURL NFC Support</Product> <LangVersion>10</LangVersion>
<Description>Allows you to support contactless card payments over NFC and LNURL Withdraw!</Description> <Configurations>Debug;Release;Altcoins-Release;Altcoins-Debug</Configurations>
<Authors>Kukks</Authors> <Platforms>AnyCPU</Platforms>
<Version>1.0.8</Version> </PropertyGroup>
</PropertyGroup>
<!-- Plugin development properties --> <!-- Default similar to Debug/Release -->
<PropertyGroup> <PropertyGroup Condition=" '$(Configuration)' == 'Altcoins-Release' ">
<AddRazorSupportForMvc>true</AddRazorSupportForMvc> <Optimize Condition=" '$(Optimize)' == '' ">true</Optimize>
<PreserveCompilationContext>false</PreserveCompilationContext> <Altcoins>true</Altcoins>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest> </PropertyGroup>
</PropertyGroup> <PropertyGroup Condition="'$(Configuration)' == 'Altcoins-Debug'">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<Altcoins>true</Altcoins>
</PropertyGroup>
<!-- -->
<!-- Plugin specific properties -->
<PropertyGroup>
<Product>LNURL NFC Support</Product>
<Description>Allows you to support contactless card payments over NFC and LNURL Withdraw!</Description>
<Authors>Kukks</Authors>
<Version>1.0.8</Version>
</PropertyGroup>
<!-- Plugin development properties -->
<PropertyGroup>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<PreserveCompilationContext>false</PreserveCompilationContext>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
</PropertyGroup>
<!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory --> <!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory -->
<ItemDefinitionGroup> <ItemDefinitionGroup>
<ProjectReference> <ProjectReference>
<Properties>StaticWebAssetsEnabled=false</Properties> <Properties>StaticWebAssetsEnabled=false</Properties>
<Private>false</Private> <Private>false</Private>
<ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets> <ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets>
</ProjectReference> </ProjectReference>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" /> <ItemGroup>
<ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj" /> <EmbeddedResource Include="Resources\**"/>
<EmbeddedResource Include="Resources\**" /> <ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj"/>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="Views\Shared" /> <Folder Include="Resources"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -1,8 +1,6 @@
using System; using System;
using System.Net.Http; using System.Net.Http;
using System.Threading.Tasks; using System.Threading.Tasks;
using BTCPayServer.Abstractions.Constants;
using BTCPayServer.Client;
using LNURL; using LNURL;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;

View File

@@ -1,7 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk.Razor"> <Project Sdk="Microsoft.NET.Sdk.Razor">
<Import Project="../../submodules/btcpayserver/Build/Common.csproj" /> <PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>10</LangVersion>
<Configurations>Debug;Release;Altcoins-Release;Altcoins-Debug</Configurations>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<!-- Default similar to Debug/Release -->
<PropertyGroup Condition=" '$(Configuration)' == 'Altcoins-Release' ">
<Optimize Condition=" '$(Optimize)' == '' ">true</Optimize>
<Altcoins>true</Altcoins>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Altcoins-Debug'">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<Altcoins>true</Altcoins>
</PropertyGroup>
<!-- -->
<!-- Plugin specific properties --> <!-- Plugin specific properties -->
<PropertyGroup> <PropertyGroup>
<Product>SideShift</Product> <Product>SideShift</Product>
@@ -9,7 +24,6 @@
<Authors>Kukks</Authors> <Authors>Kukks</Authors>
<Version>1.0.9</Version> <Version>1.0.9</Version>
</PropertyGroup> </PropertyGroup>
<!-- Plugin development properties --> <!-- Plugin development properties -->
<PropertyGroup> <PropertyGroup>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc> <AddRazorSupportForMvc>true</AddRazorSupportForMvc>
@@ -26,12 +40,12 @@
</ProjectReference> </ProjectReference>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" /> <EmbeddedResource Include="Resources\**"/>
<ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj" /> <ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj"/>
<EmbeddedResource Include="Resources\**" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="Views\Shared" /> <Folder Include="Resources"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -1,37 +1,51 @@
<Project Sdk="Microsoft.NET.Sdk.Razor"> <Project Sdk="Microsoft.NET.Sdk.Razor">
<Import Project="../../submodules/btcpayserver/Build/Common.csproj" /> <PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>10</LangVersion>
<Configurations>Debug;Release;Altcoins-Release;Altcoins-Debug</Configurations>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<!-- Plugin specific properties --> <!-- Default similar to Debug/Release -->
<PropertyGroup> <PropertyGroup Condition=" '$(Configuration)' == 'Altcoins-Release' ">
<Product>TicketTailor</Product> <Optimize Condition=" '$(Optimize)' == '' ">true</Optimize>
<Description>Allows you to integrate with TicketTailor.com to sell tickets for Bitcoin</Description> <Altcoins>true</Altcoins>
<Authors>Kukks</Authors> </PropertyGroup>
<Version>1.0.5</Version> <PropertyGroup Condition="'$(Configuration)' == 'Altcoins-Debug'">
</PropertyGroup> <DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<Altcoins>true</Altcoins>
</PropertyGroup>
<!-- -->
<!-- Plugin specific properties -->
<PropertyGroup>
<Product>TicketTailor</Product>
<Description>Allows you to integrate with TicketTailor.com to sell tickets for Bitcoin</Description>
<Authors>Kukks</Authors>
<Version>1.0.5</Version>
</PropertyGroup>
<!-- Plugin development properties -->
<PropertyGroup>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<PreserveCompilationContext>false</PreserveCompilationContext>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
</PropertyGroup>
<!-- Plugin development properties --> <!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory -->
<PropertyGroup> <ItemDefinitionGroup>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc> <ProjectReference>
<PreserveCompilationContext>false</PreserveCompilationContext> <Properties>StaticWebAssetsEnabled=false</Properties>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest> <Private>false</Private>
</PropertyGroup> <ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets>
</ProjectReference>
</ItemDefinitionGroup>
<!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory -->
<ItemDefinitionGroup>
<ProjectReference>
<Properties>StaticWebAssetsEnabled=false</Properties>
<Private>false</Private>
<ExcludeAssets>runtime;native;build;buildTransitive;contentFiles</ExcludeAssets>
</ProjectReference>
</ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" /> <EmbeddedResource Include="Resources\**"/>
<ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj" /> <ProjectReference Include="..\..\submodules\btcpayserver\BTCPayServer\BTCPayServer.csproj"/>
<EmbeddedResource Include="Resources\**" /> </ItemGroup>
</ItemGroup> <ItemGroup>
<ItemGroup> <Folder Include="Resources"/>
<Folder Include="Views\Shared" /> </ItemGroup>
</ItemGroup> </Project>
</Project>

View File

@@ -1,6 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk.Razor"> <Project Sdk="Microsoft.NET.Sdk.Razor">
<Import Project="../../submodules/btcpayserver/Build/Common.csproj"/> <PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>10</LangVersion>
<Configurations>Debug;Release;Altcoins-Release;Altcoins-Debug</Configurations>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<!-- Default similar to Debug/Release -->
<PropertyGroup Condition=" '$(Configuration)' == 'Altcoins-Release' ">
<Optimize Condition=" '$(Optimize)' == '' ">true</Optimize>
<Altcoins>true</Altcoins>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Altcoins-Debug'">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<Altcoins>true</Altcoins>
</PropertyGroup>
<!-- -->
<!-- Plugin specific properties --> <!-- Plugin specific properties -->
<PropertyGroup> <PropertyGroup>
@@ -12,13 +28,9 @@
<!-- Plugin development properties --> <!-- Plugin development properties -->
<PropertyGroup> <PropertyGroup>
<GenerateRuntimeConfigDevFile>true</GenerateRuntimeConfigDevFile>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc> <AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<PreserveCompilationContext>false</PreserveCompilationContext> <PreserveCompilationContext>false</PreserveCompilationContext>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest> <GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
<MvcRazorExcludeRefAssembliesFromPublish>False</MvcRazorExcludeRefAssembliesFromPublish>
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
</PropertyGroup> </PropertyGroup>
<!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory --> <!-- This will make sure that referencing BTCPayServer doesn't put any artifact in the published directory -->

View File

@@ -17,7 +17,6 @@ public class WabisabiStoreSettings
public bool ConsolidationMode { get; set; } = false; public bool ConsolidationMode { get; set; } = false;
public bool RedCoinIsolation { get; set; } = false; public bool RedCoinIsolation { get; set; } = false;
public int AnonymitySetTarget { get; set; } = 5; public int AnonymitySetTarget { get; set; } = 5;
public double MaxFee { get; set; } = 5;
public bool BatchPayments { get; set; } = true; public bool BatchPayments { get; set; } = true;