Skip to content

Commit f3dfa84

Browse files
authored
Merge pull request #23 from wireless90/22-creation-of-wallet
22 creation of wallet
2 parents fac1ad7 + c77433c commit f3dfa84

File tree

39 files changed

+455
-146
lines changed

39 files changed

+455
-146
lines changed

.github/workflows/Compile.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v3
20+
2021
- name: Setup .NET
2122
uses: actions/setup-dotnet@v2
2223
with:
2324
dotnet-version: 6.0.x
25+
2426
- name: Restore dependencies
2527
run: dotnet restore
2628
working-directory: ./csharp/IotaWalletNet
29+
2730
- name: Build
28-
#run: dotnet build --no-restore --configuration Release ${{ env.MAIN_SOLUTION_PATH }}
2931
run: dotnet build --configuration Release --no-restore
30-
working-directory: ./csharp/IotaWalletNet
31-
#- name: Test
32-
# run: dotnet test --no-build --verbosity normal
32+
working-directory: ./csharp/IotaWalletNet
33+
34+
- name: Test
35+
run: dotnet test --configuration Release --no-build --verbosity normal
36+
working-directory: ./csharp/IotaWalletNet

.github/workflows/GithubNuget.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,18 @@ jobs:
3636
uses: actions/setup-dotnet@v2
3737
with:
3838
dotnet-version: 6.0.x
39+
3940
- name: Restore dependencies
4041
run: dotnet restore
4142
working-directory: ./csharp/IotaWalletNet
43+
4244
- name: Build
43-
#run: dotnet build --no-restore --configuration Release ${{ env.MAIN_SOLUTION_PATH }}
4445
run: dotnet build --configuration Release --no-restore
4546
working-directory: ./csharp/IotaWalletNet
4647

48+
- name: Test
49+
run: dotnet test --configuration Release --no-build --verbosity normal
50+
working-directory: ./csharp/IotaWalletNet
4751

4852
- name: Get Version
4953
id: version

.github/workflows/Nuget.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,23 @@ jobs:
3232
- name: Checkout
3333
uses: actions/checkout@v3
3434

35+
- name: Setup .NET
36+
uses: actions/setup-dotnet@v2
37+
with:
38+
dotnet-version: 6.0.x
39+
40+
- name: Restore dependencies
41+
run: dotnet restore
42+
working-directory: ./csharp/IotaWalletNet
43+
44+
- name: Build
45+
run: dotnet build --configuration Release --no-restore
46+
working-directory: ./csharp/IotaWalletNet
47+
48+
- name: Test
49+
run: dotnet test --configuration Release --no-build --verbosity normal
50+
working-directory: ./csharp/IotaWalletNet
51+
3552
- name: Get Version
3653
id: version
3754
uses: battila7/get-version-action@v2

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ static async Task Main(string[] args)
5454
.ThenBuild()
5555
.ConfigureClientOptions()
5656
.AddNodeUrl("https://api.testnet.shimmer.network")
57-
.IsOffline(false)
5857
.IsFallbackToLocalPow()
5958
.IsLocalPow()
6059
.ThenBuild()

csharp/IotaWalletNet/IotaWalletNet.Application/Account.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class Account : RustBridgeCommunicator, IAccount
1616
private readonly IMediator _mediator;
1717

1818
public Account(IMediator mediator, string username, IWallet wallet)
19-
:base(wallet.GetWalletHandle())
19+
: base(wallet.GetWalletHandle())
2020
{
2121
_mediator = mediator;
2222
Username = username;

csharp/IotaWalletNet/IotaWalletNet.Application/AccountContext/Commands/GenerateAddresses/GenerateAddressesCommandMessage.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using IotaWalletNet.Domain.Common.Models.Address;
2-
using IotaWalletNet.Domain.Common.Models;
1+
using IotaWalletNet.Domain.Common.Models;
32

43
namespace IotaWalletNet.Application.AccountContext.Commands.GenerateAddresses
54
{

csharp/IotaWalletNet/IotaWalletNet.Application/AccountContext/Commands/RequestFromFaucet/RequestFromFaucetCommandHandler.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using IotaWalletNet.Application.Common.HttpClients;
22
using IotaWalletNet.Application.Common.Interfaces;
3-
using IotaWalletNet.Domain.Common.Interfaces;
43
using MediatR;
54

65
namespace IotaWalletNet.Application.AccountContext.Commands.RequestFromFaucet

csharp/IotaWalletNet/IotaWalletNet.Application/AccountContext/Commands/SendAmount/SendAmountCommandMessage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class SendAmountCommandMessage : AccountMessage<AddressesWithAmountAndTra
88

99
private const string METHOD_NAME = "SendAmount";
1010

11-
public SendAmountCommandMessage(string username, AddressesWithAmountAndTransactionOptions methodData)
11+
public SendAmountCommandMessage(string username, AddressesWithAmountAndTransactionOptions methodData)
1212
: base(username, METHOD_NAME, methodData)
1313
{
1414
}

csharp/IotaWalletNet/IotaWalletNet.Application/AccountContext/Commands/SyncAccount/AccountSyncOptions.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.ComponentModel;
2-
3-
namespace IotaWalletNet.Application.AccountContext.Commands.SyncAccount
1+
namespace IotaWalletNet.Application.AccountContext.Commands.SyncAccount
42
{
53
public class AccountSyncOptions
64
{
@@ -37,7 +35,7 @@ public class AccountSyncOptions
3735
public bool SyncPendingTransactions { get; set; } = true;
3836

3937
public bool SyncAliasesAndNfts { get; set; } = true;
40-
38+
4139
/** Specifies if only basic outputs with an AddressUnlockCondition alone should be synced, will overwrite
4240
* `syncAliasesAndNfts`. Default: false.
4341
*/

csharp/IotaWalletNet/IotaWalletNet.Application/AccountContext/Queries/GetBalance/GetBalanceQueryMessage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class GetBalanceQueryMessage : AccountMessage
88
public GetBalanceQueryMessage(string username)
99
: base(username, METHOD_NAME)
1010
{
11-
11+
1212
}
1313
}
1414
}

0 commit comments

Comments
 (0)