Skip to content

Commit

Permalink
Rename to Nexutron
Browse files Browse the repository at this point in the history
  • Loading branch information
raymens committed Nov 10, 2023
1 parent 5bcc2b7 commit 8c55733
Show file tree
Hide file tree
Showing 74 changed files with 99 additions and 102 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,20 @@ jobs:
- name: Build and Pack NuGet package
run: |
dotnet build src/TronDotNet/TronDotNet.csproj -c Release
dotnet pack src/TronDotNet/TronDotNet.csproj -p:Version='${{ steps.gitversion.outputs.SemVer }}' -c Release
dotnet build src/Nexutron/Nexutron.csproj -c Release
dotnet pack src/Nexutron/Nexutron.csproj -p:Version='${{ steps.gitversion.outputs.SemVer }}' -c Release
dotnet build src/Nexutron.Protocol/Nexutron.Protocol.csproj -c Release
dotnet pack src/Nexutron.Protocol/Nexutron.Protocol.csproj -p:Version='${{ steps.gitversion.outputs.SemVer }}' -c Release
- name: Upload NuGet package to GitHub
uses: actions/upload-artifact@v3
with:
name: nugetPackage
path: src/TronDotNet/bin/Release/
path: src/Nexutron/bin/Release/
- name: Upload NuGet package to GitHub
uses: actions/upload-artifact@v3
with:
name: nugetPackage
path: src/Nexutron.Protocol/bin/Release/

release:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions TronDotNet.sln → Nexutron.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30804.86
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TronDotNet.Protocol", "src\TronDotNet.Protocol\TronDotNet.Protocol.csproj", "{2787BE3F-B61E-439C-9CFC-A3E2D3D99489}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nexutron.Protocol", "src\Nexutron.Protocol\Nexutron.Protocol.csproj", "{2787BE3F-B61E-439C-9CFC-A3E2D3D99489}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TronDotNet", "src\TronDotNet\TronDotNet.csproj", "{4FDC1F3A-B612-45CA-B3F4-C8020D25D3CF}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nexutron", "src\Nexutron\Nexutron.csproj", "{4FDC1F3A-B612-45CA-B3F4-C8020D25D3CF}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{52F5F682-1C4D-434D-B5AE-D6A297C9531F}"
EndProject
Expand Down
10 changes: 5 additions & 5 deletions TestTronDotNet/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
using Newtonsoft.Json;
using System;
using System.Threading.Tasks;
using TronDotNet;
using TronDotNet.Contracts;
using TronDotNet.Crypto;
using TronDotNet.Extensions;
using TronDotNet.Protocol;
using Nexutron;
using Nexutron.Contracts;
using Nexutron.Crypto;
using Nexutron.Extensions;
using Nexutron.Protocol;

namespace TestTronDotNet
{
Expand Down
6 changes: 2 additions & 4 deletions TestTronDotNet/TestTronDotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\src\TronDotNet.ABI\TronDotNet.ABI.csproj" />
<ProjectReference Include="..\src\TronDotNet.Crypto\TronDotNet.Crypto.csproj" />
<ProjectReference Include="..\src\TronDotNet.Protocol\TronDotNet.Protocol.csproj" />
<ProjectReference Include="..\src\TronDotNet\TronDotNet.csproj" />
<ProjectReference Include="..\src\Nexutron.Protocol\Nexutron.Protocol.csproj" />
<ProjectReference Include="..\src\Nexutron\Nexutron.csproj" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions WebApplication-Host/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using TronDotNet;
using TronDotNet.Contracts;
using TronDotNet.Extensions;
using Nexutron;
using Nexutron.Contracts;
using Nexutron.Extensions;
using WebApplication_Host.Models;

namespace WebApplication_Host.Controllers
Expand Down
2 changes: 1 addition & 1 deletion WebApplication-Host/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TronDotNet;
using Nexutron;

namespace WebApplication_Host
{
Expand Down
2 changes: 1 addition & 1 deletion WebApplication-Host/WebApplication-Host.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\src\TronDotNet\TronDotNet.csproj" />
<ProjectReference Include="..\src\Nexutron\Nexutron.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import "Protos/core/contract/shield_contract.proto";


option go_package = "github.com/tronprotocol/grpc-gateway/api";
option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";

service Wallet {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package protocol;
import "Protos/core/Tron.proto";

option go_package = "github.com/tronprotocol/grpc-gateway/api";
option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";

service TronZksnark {
rpc CheckZksnarkProof (ZksnarkRequest) returns (ZksnarkResponse) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ syntax = "proto3";
package protocol;


option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

message Endpoint {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "Protos/core/Discover.proto";
package protocol;


option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

enum AccountType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

message InventoryItems {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

import "Protos/core/Tron.proto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

message AssetIssueContract {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

import "Protos/core/contract/common.proto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

enum ResourceCode {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

message ExchangeCreateContract {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

message MarketSellAssetContract {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

message ProposalApproveContract {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

// for shielded transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

message BuyStorageBytesContract {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

message VoteAssetContract {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package protocol;

option csharp_namespace = "TronDotNet.Protocol";
option csharp_namespace = "Nexutron.Protocol";
option go_package = "github.com/tronprotocol/grpc-gateway/core";

message WitnessCreateContract {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace TronDotNet.Accounts
namespace Nexutron.Accounts
{
public interface ITronAccount
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;
using Nethereum.Hex.HexConvertors.Extensions;

namespace TronDotNet.Accounts
namespace Nexutron.Accounts
{
public class TronAccount : ITronAccount
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Nethereum.ABI.FunctionEncoding.Attributes;

namespace TronDotNet.Contracts
namespace Nexutron.Contracts
{
[Function("balanceOf", "uint256")]
public class BalanceOfFunction : FunctionMessage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Microsoft.Extensions.DependencyInjection;

namespace TronDotNet.Contracts
namespace Nexutron.Contracts
{
class ContractClientFactory : IContractClientFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;
using System.Numerics;

namespace TronDotNet.Contracts
namespace Nexutron.Contracts
{
public abstract class ContractMessageBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace TronDotNet.Contracts
namespace Nexutron.Contracts
{
public enum ContractProtocol
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Nethereum.ABI.FunctionEncoding.Attributes;

namespace TronDotNet.Contracts
namespace Nexutron.Contracts
{
[Function("decimals", "uint8")]
public class DecimalsFunction : FunctionMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace TronDotNet.Contracts
namespace Nexutron.Contracts
{
public class FunctionMessage : ContractMessageBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace TronDotNet.Contracts
namespace Nexutron.Contracts
{
public class GetContractEventsResult
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TronDotNet.Accounts;
using Nexutron.Accounts;

namespace TronDotNet.Contracts
namespace Nexutron.Contracts
{
public interface IContractClient
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace TronDotNet.Contracts
namespace Nexutron.Contracts
{
public interface IContractClientFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
using Nethereum.ABI.Model;
using Nethereum.Contracts;
using Nethereum.Hex.HexConvertors.Extensions;
using TronDotNet.Accounts;
using TronDotNet.Crypto;
using TronDotNet.Extensions;
using TronDotNet.Protocol;
using Nexutron.Accounts;
using Nexutron.Crypto;
using Nexutron.Extensions;
using Nexutron.Protocol;

namespace TronDotNet.Contracts
namespace Nexutron.Contracts
{
class TRC20ContractClient : IContractClient
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Numerics;
using Nethereum.ABI.FunctionEncoding.Attributes;

namespace TronDotNet.Contracts
namespace Nexutron.Contracts
{
[Function("transfer", "bool")]
public class TransferFunction : FunctionMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Text;
using System.Threading.Tasks;

namespace TronDotNet.Crypto
namespace Nexutron.Crypto
{

public static class Base58Encoder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace TronDotNet
namespace Nexutron
{
public static class ByteArrary
{
Expand Down
Loading

0 comments on commit 8c55733

Please sign in to comment.