mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
Moving shitcoin code in shitcoin folder
This commit is contained in:
parent
d66b111121
commit
3a0328d0be
60 changed files with 66 additions and 66 deletions
|
@ -21,7 +21,7 @@ using OpenIddict.EntityFrameworkCore.Models;
|
|||
using System.Net;
|
||||
using BTCPayServer.Authentication;
|
||||
using BTCPayServer.Authentication.OpenId;
|
||||
using BTCPayServer.Monero;
|
||||
using BTCPayServer.Shitcoins.Monero;
|
||||
using BTCPayServer.PaymentRequest;
|
||||
using BTCPayServer.Services.Apps;
|
||||
using BTCPayServer.Storage;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using BTCPayServer.Monero.Payments;
|
||||
using BTCPayServer.Shitcoins.Monero.Payments;
|
||||
using BTCPayServer.Services.Invoices;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BTCPayServer.Monero.Configuration
|
||||
namespace BTCPayServer.Shitcoins.Monero.Configuration
|
||||
{
|
||||
public class MoneroLikeConfiguration
|
||||
{
|
|
@ -2,14 +2,14 @@ using System;
|
|||
using System.Linq;
|
||||
using BTCPayServer.Configuration;
|
||||
using BTCPayServer.Contracts;
|
||||
using BTCPayServer.Monero.Configuration;
|
||||
using BTCPayServer.Monero.Payments;
|
||||
using BTCPayServer.Monero.Services;
|
||||
using BTCPayServer.Shitcoins.Monero.Configuration;
|
||||
using BTCPayServer.Shitcoins.Monero.Payments;
|
||||
using BTCPayServer.Shitcoins.Monero.Services;
|
||||
using BTCPayServer.Payments;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace BTCPayServer.Monero
|
||||
namespace BTCPayServer.Shitcoins.Monero
|
||||
{
|
||||
public static class MoneroLikeExtensions
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using BTCPayServer.Contracts;
|
||||
|
||||
namespace BTCPayServer.Monero
|
||||
namespace BTCPayServer.Shitcoins.Monero
|
||||
{
|
||||
public class MoneroStoreNavExtension: IStoreNavExtension
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using BTCPayServer.Payments;
|
||||
|
||||
namespace BTCPayServer.Monero.Payments
|
||||
namespace BTCPayServer.Shitcoins.Monero.Payments
|
||||
{
|
||||
public class MoneroLikeOnChainPaymentMethodDetails : IPaymentMethodDetails
|
||||
{
|
|
@ -1,9 +1,9 @@
|
|||
using BTCPayServer.Data;
|
||||
using BTCPayServer.Monero.Utils;
|
||||
using BTCPayServer.Shitcoins.Monero.Utils;
|
||||
using BTCPayServer.Payments;
|
||||
using BTCPayServer.Services.Invoices;
|
||||
|
||||
namespace BTCPayServer.Monero.Payments
|
||||
namespace BTCPayServer.Shitcoins.Monero.Payments
|
||||
{
|
||||
public class MoneroLikePaymentData : CryptoPaymentData
|
||||
{
|
|
@ -6,16 +6,16 @@ using BTCPayServer.Data;
|
|||
using BTCPayServer.Lightning;
|
||||
using BTCPayServer.Models;
|
||||
using BTCPayServer.Models.InvoicingModels;
|
||||
using BTCPayServer.Monero.RPC.Models;
|
||||
using BTCPayServer.Monero.Services;
|
||||
using BTCPayServer.Monero.Utils;
|
||||
using BTCPayServer.Shitcoins.Monero.RPC.Models;
|
||||
using BTCPayServer.Shitcoins.Monero.Services;
|
||||
using BTCPayServer.Shitcoins.Monero.Utils;
|
||||
using BTCPayServer.Payments;
|
||||
using BTCPayServer.Rating;
|
||||
using BTCPayServer.Services.Invoices;
|
||||
using BTCPayServer.Services.Rates;
|
||||
using NBitcoin;
|
||||
|
||||
namespace BTCPayServer.Monero.Payments
|
||||
namespace BTCPayServer.Shitcoins.Monero.Payments
|
||||
{
|
||||
public class MoneroLikePaymentMethodHandler : PaymentMethodHandlerBase<MoneroSupportedPaymentMethod, MoneroLikeSpecificBtcPayNetwork>
|
||||
{
|
|
@ -4,7 +4,7 @@ using BTCPayServer.Services.Invoices;
|
|||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace BTCPayServer.Monero.Payments
|
||||
namespace BTCPayServer.Shitcoins.Monero.Payments
|
||||
{
|
||||
public class MoneroPaymentType: PaymentType
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using BTCPayServer.Payments;
|
||||
|
||||
namespace BTCPayServer.Monero.Payments
|
||||
namespace BTCPayServer.Shitcoins.Monero.Payments
|
||||
{
|
||||
public class MoneroSupportedPaymentMethod : ISupportedPaymentMethod
|
||||
{
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC
|
||||
{
|
||||
public class JsonRpcClient
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class CreateAccountRequest
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class CreateAccountResponse
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class CreateAddressRequest
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class CreateAddressResponse
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class GetAccountsRequest
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class GetAccountsResponse
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public class GetFeeEstimateRequest
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public class GetFeeEstimateResponse
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class GetHeightResponse
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public class GetTransferByTransactionIdRequest
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class GetTransferByTransactionIdResponse
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class GetTransfersRequest
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class GetTransfersResponse
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class Info
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class MakeUriRequest
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class MakeUriResponse
|
||||
{
|
|
@ -2,7 +2,7 @@ using System;
|
|||
using System.Globalization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
internal class ParseStringConverter : JsonConverter
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class Peer
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class SubaddrIndex
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class SubaddressAccount
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC.Models
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
|
||||
{
|
||||
public partial class SyncInfoResponse
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace BTCPayServer.Monero.RPC
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC
|
||||
{
|
||||
[Route("[controller]")]
|
||||
public class MoneroLikeDaemonCallbackController : Controller
|
|
@ -1,4 +1,4 @@
|
|||
namespace BTCPayServer.Monero.RPC
|
||||
namespace BTCPayServer.Shitcoins.Monero.RPC
|
||||
{
|
||||
public class MoneroEvent
|
||||
{
|
|
@ -2,11 +2,11 @@ using System;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using BTCPayServer.Logging;
|
||||
using BTCPayServer.Monero.Configuration;
|
||||
using BTCPayServer.Shitcoins.Monero.Configuration;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace BTCPayServer.Monero.Services
|
||||
namespace BTCPayServer.Shitcoins.Monero.Services
|
||||
{
|
||||
public class MoneroLikeSummaryUpdaterHostedService: IHostedService
|
||||
{
|
||||
|
@ -63,4 +63,4 @@ namespace BTCPayServer.Monero.Services
|
|||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -6,10 +6,10 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
using BTCPayServer.Data;
|
||||
using BTCPayServer.Events;
|
||||
using BTCPayServer.Monero.Configuration;
|
||||
using BTCPayServer.Monero.Payments;
|
||||
using BTCPayServer.Monero.RPC;
|
||||
using BTCPayServer.Monero.RPC.Models;
|
||||
using BTCPayServer.Shitcoins.Monero.Configuration;
|
||||
using BTCPayServer.Shitcoins.Monero.Payments;
|
||||
using BTCPayServer.Shitcoins.Monero.RPC;
|
||||
using BTCPayServer.Shitcoins.Monero.RPC.Models;
|
||||
using BTCPayServer.Payments;
|
||||
using BTCPayServer.Services.Invoices;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
@ -17,7 +17,7 @@ using Microsoft.Extensions.Logging;
|
|||
using NBitcoin;
|
||||
using NBXplorer;
|
||||
|
||||
namespace BTCPayServer.Monero.Services
|
||||
namespace BTCPayServer.Shitcoins.Monero.Services
|
||||
{
|
||||
public class MoneroListener : IHostedService
|
||||
{
|
|
@ -3,12 +3,12 @@ using System.Collections.Concurrent;
|
|||
using System.Collections.Immutable;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using BTCPayServer.Monero.Configuration;
|
||||
using BTCPayServer.Monero.RPC;
|
||||
using BTCPayServer.Monero.RPC.Models;
|
||||
using BTCPayServer.Shitcoins.Monero.Configuration;
|
||||
using BTCPayServer.Shitcoins.Monero.RPC;
|
||||
using BTCPayServer.Shitcoins.Monero.RPC.Models;
|
||||
using NBitcoin;
|
||||
|
||||
namespace BTCPayServer.Monero.Services
|
||||
namespace BTCPayServer.Shitcoins.Monero.Services
|
||||
{
|
||||
public class MoneroRPCProvider
|
||||
{
|
|
@ -8,10 +8,10 @@ using System.Linq;
|
|||
using System.Threading.Tasks;
|
||||
using BTCPayServer.Data;
|
||||
using BTCPayServer.Models;
|
||||
using BTCPayServer.Monero.Configuration;
|
||||
using BTCPayServer.Monero.Payments;
|
||||
using BTCPayServer.Monero.RPC.Models;
|
||||
using BTCPayServer.Monero.Services;
|
||||
using BTCPayServer.Shitcoins.Monero.Configuration;
|
||||
using BTCPayServer.Shitcoins.Monero.Payments;
|
||||
using BTCPayServer.Shitcoins.Monero.RPC.Models;
|
||||
using BTCPayServer.Shitcoins.Monero.Services;
|
||||
using BTCPayServer.Payments;
|
||||
using BTCPayServer.Security;
|
||||
using BTCPayServer.Services.Stores;
|
||||
|
@ -20,7 +20,7 @@ using Microsoft.AspNetCore.Http;
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
|
||||
namespace BTCPayServer.Monero.UI
|
||||
namespace BTCPayServer.Shitcoins.Monero.UI
|
||||
{
|
||||
[Route("stores/{storeId}/monerolike")]
|
||||
[Authorize(AuthenticationSchemes = Policies.CookieAuthentication)]
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace BTCPayServer.Monero.UI
|
||||
namespace BTCPayServer.Shitcoins.Monero.UI
|
||||
{
|
||||
public class MoneroPaymentViewModel
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using System.Globalization;
|
||||
|
||||
namespace BTCPayServer.Monero.Utils
|
||||
namespace BTCPayServer.Shitcoins.Monero.Utils
|
||||
{
|
||||
public class MoneroMoney
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
@using BTCPayServer.Controllers
|
||||
@using BTCPayServer.Views.Stores
|
||||
@model BTCPayServer.Monero.UI.MoneroLikeStoreController.MoneroLikePaymentMethodViewModel
|
||||
@model BTCPayServer.Shitcoins.Monero.UI.MoneroLikeStoreController.MoneroLikePaymentMethodViewModel
|
||||
|
||||
@{
|
||||
Layout = "../Shared/_NavLayout.cshtml";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
@using BTCPayServer.Views.Stores
|
||||
@model BTCPayServer.Monero.UI.MoneroLikeStoreController.MoneroLikePaymentMethodListViewModel
|
||||
@model BTCPayServer.Shitcoins.Monero.UI.MoneroLikeStoreController.MoneroLikePaymentMethodListViewModel
|
||||
|
||||
@{
|
||||
Layout = "../Shared/_NavLayout.cshtml";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
@using BTCPayServer.Controllers
|
||||
@using BTCPayServer.Monero.Configuration
|
||||
@using BTCPayServer.Monero.UI
|
||||
@using BTCPayServer.Shitcoins.Monero.Configuration
|
||||
@using BTCPayServer.Shitcoins.Monero.UI
|
||||
@inject SignInManager<ApplicationUser> SignInManager;
|
||||
@inject MoneroLikeConfiguration MoneroLikeConfiguration;
|
||||
@{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@using System.Globalization
|
||||
@using BTCPayServer.Controllers
|
||||
@using BTCPayServer.Monero.Payments
|
||||
@using BTCPayServer.Monero.UI
|
||||
@using BTCPayServer.Shitcoins.Monero.Payments
|
||||
@using BTCPayServer.Shitcoins.Monero.UI
|
||||
@model IEnumerable<BTCPayServer.Services.Invoices.PaymentEntity>
|
||||
|
||||
@{
|
||||
|
|
Loading…
Add table
Reference in a new issue