Rename shitcoins to altcoins

This commit is contained in:
nicolas.dorier
2019-09-30 20:42:31 +09:00
parent 2c5c6d28e3
commit 8c8ef9d3ca
60 changed files with 85 additions and 85 deletions

View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace BTCPayServer.Shitcoins.Monero.RPC
namespace BTCPayServer.Altcoins.Monero.RPC
{
public class JsonRpcClient
{

View File

@@ -1,9 +1,9 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class CreateAccountRequest
{
[JsonProperty("label")] public string Label { get; set; }
}
}
}

View File

@@ -1,10 +1,10 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class CreateAccountResponse
{
[JsonProperty("account_index")] public long AccountIndex { get; set; }
[JsonProperty("address")] public string Address { get; set; }
}
}
}

View File

@@ -1,10 +1,10 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class CreateAddressRequest
{
[JsonProperty("account_index")] public long AccountIndex { get; set; }
[JsonProperty("label")] public string Label { get; set; }
}
}
}

View File

@@ -1,10 +1,10 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class CreateAddressResponse
{
[JsonProperty("address")] public string Address { get; set; }
[JsonProperty("address_index")] public long AddressIndex { get; set; }
}
}
}

View File

@@ -1,9 +1,9 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class GetAccountsRequest
{
[JsonProperty("tag")] public string Tag { get; set; }
}
}
}

View File

@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class GetAccountsResponse
{
@@ -11,4 +11,4 @@ namespace BTCPayServer.Shitcoins.Monero.RPC.Models
[JsonProperty("total_unlocked_balance")]
public decimal TotalUnlockedBalance { get; set; }
}
}
}

View File

@@ -1,9 +1,9 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public class GetFeeEstimateRequest
{
[JsonProperty("grace_blocks")] public int? GraceBlocks { get; set; }
}
}
}

View File

@@ -1,6 +1,6 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public class GetFeeEstimateResponse
{
@@ -8,4 +8,4 @@ namespace BTCPayServer.Shitcoins.Monero.RPC.Models
[JsonProperty("status")] public string Status { get; set; }
[JsonProperty("untrusted")] public bool Untrusted { get; set; }
}
}
}

View File

@@ -1,9 +1,9 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class GetHeightResponse
{
[JsonProperty("height")] public long Height { get; set; }
}
}
}

View File

@@ -1,6 +1,6 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public class GetTransferByTransactionIdRequest
{
@@ -8,4 +8,4 @@ namespace BTCPayServer.Shitcoins.Monero.RPC.Models
[JsonProperty("account_index")] public long AccountIndex { get; set; }
}
}
}

View File

@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class GetTransferByTransactionIdResponse
{
@@ -29,4 +29,4 @@ namespace BTCPayServer.Shitcoins.Monero.RPC.Models
[JsonProperty("unlock_time")] public long UnlockTime { get; set; }
}
}
}
}

View File

@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class GetTransfersRequest
{
@@ -16,4 +16,4 @@ namespace BTCPayServer.Shitcoins.Monero.RPC.Models
[JsonProperty("account_index")] public long AccountIndex { get; set; }
[JsonProperty("subaddr_indices")] public List<long> SubaddrIndices { get; set; }
}
}
}

View File

@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class GetTransfersResponse
{
@@ -33,4 +33,4 @@ namespace BTCPayServer.Shitcoins.Monero.RPC.Models
[JsonProperty("unlock_time")] public long UnlockTime { get; set; }
}
}
}
}

View File

@@ -1,6 +1,6 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class Info
{
@@ -30,4 +30,4 @@ namespace BTCPayServer.Shitcoins.Monero.RPC.Models
[JsonProperty("state")] public string State { get; set; }
[JsonProperty("support_flags")] public long SupportFlags { get; set; }
}
}
}

View File

@@ -1,6 +1,6 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class MakeUriRequest
{
@@ -10,4 +10,4 @@ namespace BTCPayServer.Shitcoins.Monero.RPC.Models
[JsonProperty("tx_description")] public string TxDescription { get; set; }
[JsonProperty("recipient_name")] public string RecipientName { get; set; }
}
}
}

View File

@@ -1,9 +1,9 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class MakeUriResponse
{
[JsonProperty("uri")] public string Uri { get; set; }
}
}
}

View File

@@ -2,7 +2,7 @@ using System;
using System.Globalization;
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
internal class ParseStringConverter : JsonConverter
{
@@ -36,4 +36,4 @@ namespace BTCPayServer.Shitcoins.Monero.RPC.Models
public static readonly ParseStringConverter Singleton = new ParseStringConverter();
}
}
}

View File

@@ -1,9 +1,9 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class Peer
{
[JsonProperty("info")] public Info Info { get; set; }
}
}
}

View File

@@ -1,10 +1,10 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class SubaddrIndex
{
[JsonProperty("major")] public long Major { get; set; }
[JsonProperty("minor")] public long Minor { get; set; }
}
}
}

View File

@@ -1,6 +1,6 @@
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class SubaddressAccount
{
@@ -11,4 +11,4 @@ namespace BTCPayServer.Shitcoins.Monero.RPC.Models
[JsonProperty("tag")] public string Tag { get; set; }
[JsonProperty("unlocked_balance")] public decimal UnlockedBalance { get; set; }
}
}
}

View File

@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Newtonsoft.Json;
namespace BTCPayServer.Shitcoins.Monero.RPC.Models
namespace BTCPayServer.Altcoins.Monero.RPC.Models
{
public partial class SyncInfoResponse
{

View File

@@ -1,6 +1,6 @@
using System.Globalization;
namespace BTCPayServer.Shitcoins.Monero.Utils
namespace BTCPayServer.Altcoins.Monero.Utils
{
public class MoneroMoney
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace BTCPayServer.Shitcoins.Monero.Configuration
namespace BTCPayServer.Altcoins.Monero.Configuration
{
public class MoneroLikeConfiguration
{

View File

@@ -2,14 +2,14 @@ using System;
using System.Linq;
using BTCPayServer.Configuration;
using BTCPayServer.Contracts;
using BTCPayServer.Shitcoins.Monero.Configuration;
using BTCPayServer.Shitcoins.Monero.Payments;
using BTCPayServer.Shitcoins.Monero.Services;
using BTCPayServer.Altcoins.Monero.Configuration;
using BTCPayServer.Altcoins.Monero.Payments;
using BTCPayServer.Altcoins.Monero.Services;
using BTCPayServer.Payments;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace BTCPayServer.Shitcoins.Monero
namespace BTCPayServer.Altcoins.Monero
{
public static class MoneroLikeExtensions
{

View File

@@ -1,6 +1,6 @@
using BTCPayServer.Contracts;
namespace BTCPayServer.Shitcoins.Monero
namespace BTCPayServer.Altcoins.Monero
{
public class MoneroStoreNavExtension: IStoreNavExtension
{

View File

@@ -1,6 +1,6 @@
using BTCPayServer.Payments;
namespace BTCPayServer.Shitcoins.Monero.Payments
namespace BTCPayServer.Altcoins.Monero.Payments
{
public class MoneroLikeOnChainPaymentMethodDetails : IPaymentMethodDetails
{

View File

@@ -1,9 +1,9 @@
using BTCPayServer.Data;
using BTCPayServer.Shitcoins.Monero.Utils;
using BTCPayServer.Altcoins.Monero.Utils;
using BTCPayServer.Payments;
using BTCPayServer.Services.Invoices;
namespace BTCPayServer.Shitcoins.Monero.Payments
namespace BTCPayServer.Altcoins.Monero.Payments
{
public class MoneroLikePaymentData : CryptoPaymentData
{

View File

@@ -6,16 +6,16 @@ using BTCPayServer.Data;
using BTCPayServer.Lightning;
using BTCPayServer.Models;
using BTCPayServer.Models.InvoicingModels;
using BTCPayServer.Shitcoins.Monero.RPC.Models;
using BTCPayServer.Shitcoins.Monero.Services;
using BTCPayServer.Shitcoins.Monero.Utils;
using BTCPayServer.Altcoins.Monero.RPC.Models;
using BTCPayServer.Altcoins.Monero.Services;
using BTCPayServer.Altcoins.Monero.Utils;
using BTCPayServer.Payments;
using BTCPayServer.Rating;
using BTCPayServer.Services.Invoices;
using BTCPayServer.Services.Rates;
using NBitcoin;
namespace BTCPayServer.Shitcoins.Monero.Payments
namespace BTCPayServer.Altcoins.Monero.Payments
{
public class MoneroLikePaymentMethodHandler : PaymentMethodHandlerBase<MoneroSupportedPaymentMethod, MoneroLikeSpecificBtcPayNetwork>
{

View File

@@ -4,7 +4,7 @@ using BTCPayServer.Services.Invoices;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace BTCPayServer.Shitcoins.Monero.Payments
namespace BTCPayServer.Altcoins.Monero.Payments
{
public class MoneroPaymentType: PaymentType
{

View File

@@ -1,6 +1,6 @@
using BTCPayServer.Payments;
namespace BTCPayServer.Shitcoins.Monero.Payments
namespace BTCPayServer.Altcoins.Monero.Payments
{
public class MoneroSupportedPaymentMethod : ISupportedPaymentMethod
{

View File

@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Mvc;
namespace BTCPayServer.Shitcoins.Monero.RPC
namespace BTCPayServer.Altcoins.Monero.RPC
{
[Route("[controller]")]
public class MoneroLikeDaemonCallbackController : Controller

View File

@@ -1,4 +1,4 @@
namespace BTCPayServer.Shitcoins.Monero.RPC
namespace BTCPayServer.Altcoins.Monero.RPC
{
public class MoneroEvent
{

View File

@@ -2,11 +2,11 @@ using System;
using System.Threading;
using System.Threading.Tasks;
using BTCPayServer.Logging;
using BTCPayServer.Shitcoins.Monero.Configuration;
using BTCPayServer.Altcoins.Monero.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace BTCPayServer.Shitcoins.Monero.Services
namespace BTCPayServer.Altcoins.Monero.Services
{
public class MoneroLikeSummaryUpdaterHostedService: IHostedService
{

View File

@@ -6,10 +6,10 @@ using System.Threading;
using System.Threading.Tasks;
using BTCPayServer.Data;
using BTCPayServer.Events;
using BTCPayServer.Shitcoins.Monero.Configuration;
using BTCPayServer.Shitcoins.Monero.Payments;
using BTCPayServer.Shitcoins.Monero.RPC;
using BTCPayServer.Shitcoins.Monero.RPC.Models;
using BTCPayServer.Altcoins.Monero.Configuration;
using BTCPayServer.Altcoins.Monero.Payments;
using BTCPayServer.Altcoins.Monero.RPC;
using BTCPayServer.Altcoins.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.Shitcoins.Monero.Services
namespace BTCPayServer.Altcoins.Monero.Services
{
public class MoneroListener : IHostedService
{

View File

@@ -3,12 +3,12 @@ using System.Collections.Concurrent;
using System.Collections.Immutable;
using System.Net.Http;
using System.Threading.Tasks;
using BTCPayServer.Shitcoins.Monero.Configuration;
using BTCPayServer.Shitcoins.Monero.RPC;
using BTCPayServer.Shitcoins.Monero.RPC.Models;
using BTCPayServer.Altcoins.Monero.Configuration;
using BTCPayServer.Altcoins.Monero.RPC;
using BTCPayServer.Altcoins.Monero.RPC.Models;
using NBitcoin;
namespace BTCPayServer.Shitcoins.Monero.Services
namespace BTCPayServer.Altcoins.Monero.Services
{
public class MoneroRPCProvider
{

View File

@@ -8,10 +8,10 @@ using System.Linq;
using System.Threading.Tasks;
using BTCPayServer.Data;
using BTCPayServer.Models;
using BTCPayServer.Shitcoins.Monero.Configuration;
using BTCPayServer.Shitcoins.Monero.Payments;
using BTCPayServer.Shitcoins.Monero.RPC.Models;
using BTCPayServer.Shitcoins.Monero.Services;
using BTCPayServer.Altcoins.Monero.Configuration;
using BTCPayServer.Altcoins.Monero.Payments;
using BTCPayServer.Altcoins.Monero.RPC.Models;
using BTCPayServer.Altcoins.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.Shitcoins.Monero.UI
namespace BTCPayServer.Altcoins.Monero.UI
{
[Route("stores/{storeId}/monerolike")]
[Authorize(AuthenticationSchemes = Policies.CookieAuthentication)]

View File

@@ -1,6 +1,6 @@
using System;
namespace BTCPayServer.Shitcoins.Monero.UI
namespace BTCPayServer.Altcoins.Monero.UI
{
public class MoneroPaymentViewModel
{

View File

@@ -21,7 +21,7 @@ using OpenIddict.EntityFrameworkCore.Models;
using System.Net;
using BTCPayServer.Authentication;
using BTCPayServer.Authentication.OpenId;
using BTCPayServer.Shitcoins.Monero;
using BTCPayServer.Altcoins.Monero;
using BTCPayServer.PaymentRequest;
using BTCPayServer.Services.Apps;
using BTCPayServer.Storage;

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BTCPayServer.Shitcoins.Monero.Payments;
using BTCPayServer.Altcoins.Monero.Payments;
using BTCPayServer.Services.Invoices;
using Newtonsoft.Json.Linq;

View File

@@ -1,6 +1,6 @@
@using BTCPayServer.Controllers
@using BTCPayServer.Views.Stores
@model BTCPayServer.Shitcoins.Monero.UI.MoneroLikeStoreController.MoneroLikePaymentMethodViewModel
@model BTCPayServer.Altcoins.Monero.UI.MoneroLikeStoreController.MoneroLikePaymentMethodViewModel
@{
Layout = "../Shared/_NavLayout.cshtml";

View File

@@ -1,5 +1,5 @@
@using BTCPayServer.Views.Stores
@model BTCPayServer.Shitcoins.Monero.UI.MoneroLikeStoreController.MoneroLikePaymentMethodListViewModel
@model BTCPayServer.Altcoins.Monero.UI.MoneroLikeStoreController.MoneroLikePaymentMethodListViewModel
@{
Layout = "../Shared/_NavLayout.cshtml";

View File

@@ -1,6 +1,6 @@
@using BTCPayServer.Controllers
@using BTCPayServer.Shitcoins.Monero.Configuration
@using BTCPayServer.Shitcoins.Monero.UI
@using BTCPayServer.Altcoins.Monero.Configuration
@using BTCPayServer.Altcoins.Monero.UI
@inject SignInManager<ApplicationUser> SignInManager;
@inject MoneroLikeConfiguration MoneroLikeConfiguration;
@{

View File

@@ -1,7 +1,7 @@
@using System.Globalization
@using BTCPayServer.Controllers
@using BTCPayServer.Shitcoins.Monero.Payments
@using BTCPayServer.Shitcoins.Monero.UI
@using BTCPayServer.Altcoins.Monero.Payments
@using BTCPayServer.Altcoins.Monero.UI
@model IEnumerable<BTCPayServer.Services.Invoices.PaymentEntity>
@{