Skip to content

Commit 073f4da

Browse files
committed
refactor: rename project files to be more generic
1 parent e806ec6 commit 073f4da

File tree

43 files changed

+7
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+7
-5
lines changed

BTCPayServer.Plugins.TronUSDt.Tests/BTCPayServer.Plugins.TronUSDt.Tests.csproj BTCPayServer.Plugins.USDt.Tests/BTCPayServer.Plugins.USDt.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</PropertyGroup>
2121

2222
<ItemGroup>
23-
<ProjectReference Include="..\BTCPayServer.Plugins.TronUSDt\BTCPayServer.Plugins.TronUSDt.csproj" />
23+
<ProjectReference Include="..\BTCPayServer.Plugins.USDt\BTCPayServer.Plugins.USDt.csproj" />
2424
<ProjectReference Include="..\submodules\btcpayserver\BTCPayServer.Tests\BTCPayServer.Tests.csproj" />
2525
</ItemGroup>
2626

BTCPayServer.Plugins.TronUSDT.sln BTCPayServer.Plugins.USDt.sln

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BTCPayServer.PluginPacker",
2626
EndProject
2727
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BTCPayServer.Tests", "submodules\btcpayserver\BTCPayServer.Tests\BTCPayServer.Tests.csproj", "{4146B6DF-7BEE-4BD0-B6B1-77E7630A1B81}"
2828
EndProject
29-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BTCPayServer.Plugins.TronUSDt.Tests", "BTCPayServer.Plugins.TronUSDt.Tests\BTCPayServer.Plugins.TronUSDt.Tests.csproj", "{C6E671F6-5417-4F2F-A5A2-0A7D307BA1F7}"
29+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BTCPayServer.Plugins.USDt.Tests", "BTCPayServer.Plugins.USDt.Tests\BTCPayServer.Plugins.USDt.Tests.csproj", "{C6E671F6-5417-4F2F-A5A2-0A7D307BA1F7}"
3030
EndProject
31-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BTCPayServer.Plugins.TronUSDt", "BTCPayServer.Plugins.TronUSDt\BTCPayServer.Plugins.TronUSDt.csproj", "{437BFB39-5C8D-402B-A4ED-CD27604A7845}"
31+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BTCPayServer.Plugins.USDt", "BTCPayServer.Plugins.USDt\BTCPayServer.Plugins.USDt.csproj", "{437BFB39-5C8D-402B-A4ED-CD27604A7845}"
3232
EndProject
3333
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugins common", "Plugins common", "{FA57CDB6-8A11-48E3-B342-626DA65140A2}"
3434
EndProject

BTCPayServer.Plugins.TronUSDt/BTCPayServer.Plugins.TronUSDt.csproj BTCPayServer.Plugins.USDt/BTCPayServer.Plugins.USDt.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<Configurations>Release;Altcoins-Debug</Configurations>
77
<Platforms>AnyCPU</Platforms>
88
<Nullable>enable</Nullable>
9+
<RootNamespace>BTCPayServer.Plugins.TronUSDt</RootNamespace>
910
</PropertyGroup>
1011
<!-- -->
1112
<!-- Plugin specific properties -->

BTCPayServer.Plugins.TronUSDt/TronUSDtPlugin.cs BTCPayServer.Plugins.USDt/TronUSDtPlugin.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ private static void RegisterServices(IServiceCollection services)
3939
Divisibility = 6,
4040
DefaultRateRules =
4141
[
42-
"TRONUSDT_USD = 1"
42+
"TRONUSDT_USD = 1",
43+
"TRONUSDT_X = TRONUSDT_BTC * BTC_X",
4344
],
4445
CryptoImagePath =
4546
"data:image/svg+xml,%3Csvg width='165' height='165' viewBox='0 0 165 165' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='82.5' cy='82.5' r='82.5' fill='%23019493'/%3E%3Cpath d='M128.225 75.7991L112.84 49.382C112.209 48.3018 111.049 47.6387 109.787 47.6387H56.9688C55.7442 47.6387 54.6051 48.2697 53.9634 49.2964L37.5196 75.7724C36.664 77.152 36.8832 78.9274 38.0436 80.0665L80.3431 121.355C81.7121 122.697 83.9206 122.697 85.295 121.355L127.648 80.013C128.787 78.9007 129.022 77.1734 128.225 75.8044V75.7991ZM106.477 83.1306C106.418 85.8365 98.4875 88.0879 87.9206 88.6387V101.254H77.9313V88.6387C67.3645 88.0879 59.4394 85.8365 59.3805 83.1306V77.4943C59.4394 74.7884 67.3645 72.5317 77.9313 71.9809V66.8419H62.8886V59.4301H102.969V66.8419H87.926V71.9809C98.4928 72.5317 106.423 74.7884 106.482 77.4943V83.1306H106.477Z' fill='white'/%3E%3Cpath d='M87.9206 81.3659C86.311 81.4515 84.6372 81.4889 82.926 81.4889C81.2148 81.4889 79.541 81.4462 77.9313 81.3659V75.9809C68.9527 76.4462 61.8725 78.1467 59.9206 80.3071C62.2255 82.8526 71.6533 84.7617 82.9313 84.7617C94.2094 84.7617 103.632 82.8526 105.937 80.3071C103.979 78.1467 96.91 76.4462 87.926 75.9809V81.3659H87.9206Z' fill='white'/%3E%3Cpath d='M113 127C123.497 127 132 118.715 132 108.5C132 98.2847 123.497 90 113 90C102.503 90 94 98.2847 94 108.5C94 118.715 102.51 127 113 127Z' fill='%23019493'/%3E%3Cpath d='M113 125C122.392 125 130 117.611 130 108.5C130 99.389 122.392 92 113 92C103.608 92 96 99.389 96 108.5C96 117.611 103.614 125 113 125Z' fill='white'/%3E%3Cpath d='M122.727 105.425C121.792 104.644 120.493 103.454 119.441 102.612L119.376 102.575C119.273 102.502 119.156 102.441 119.032 102.398C116.487 101.971 104.643 99.9758 104.416 100C104.351 100.006 104.286 100.031 104.234 100.061L104.175 100.104C104.104 100.171 104.045 100.25 104.013 100.342L104 100.379V100.58V100.61C105.331 103.954 110.597 114.9 111.636 117.475C111.701 117.652 111.818 117.982 112.039 118H112.091C112.208 118 112.714 117.396 112.714 117.396C112.714 117.396 121.76 107.524 122.675 106.474C122.792 106.346 122.896 106.206 122.987 106.059C123.013 105.943 123 105.827 122.954 105.717C122.909 105.608 122.824 105.504 122.727 105.425ZM115.026 106.578L118.883 103.698L121.149 105.577L115.026 106.578ZM113.526 106.389L106.883 101.483L117.636 103.271L113.526 106.389ZM114.123 107.67L120.922 106.681L113.149 115.12L114.123 107.67ZM105.98 101.977L112.974 107.316L111.961 115.126L105.98 101.977Z' fill='%23FF060A'/%3E%3C/svg%3E%0A",

ConfigBuilder/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Text.Json;
33

44
var solutionFolder = Directory.GetDirectories("../../../../");
5-
var plugin = solutionFolder.Single(e => Path.GetFileName(e) == "BTCPayServer.Plugins.TronUSDt");
5+
var plugin = solutionFolder.Single(e => Path.GetFileName(e) == "BTCPayServer.Plugins.USDt");
66
var assemblyConfigurationAttribute = typeof(Program).Assembly.GetCustomAttribute<AssemblyConfigurationAttribute>();
77
var buildConfigurationName = assemblyConfigurationAttribute?.Configuration;
88

0 commit comments

Comments
 (0)