Skip to content

Commit

Permalink
Merge pull request #18 from proximax-storage/v0.7.0
Browse files Browse the repository at this point in the history
V0.7.0
  • Loading branch information
thomas-tran authored Nov 27, 2021
2 parents 30fa6fd + 18bca46 commit d6dc9f1
Show file tree
Hide file tree
Showing 189 changed files with 10,740 additions and 3,009 deletions.
33 changes: 33 additions & 0 deletions build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build

on:
push:
pull_request:
branches: [ v0.7.0 ]

env:
DOTNET_VERSION: '5.0.x' # The .NET SDK version to use

jobs:
build:

name: build-${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
dotnet-version: [env.DOTNET_VERSION]
steps:
- uses: actions/checkout@v2

- name: setup-msbuild
uses: microsoft/setup-msbuild@v1.1

- name: Setup NuGet.exe for use with actions
uses: NuGet/setup-nuget@v1.0.5

- name: Restore Nuget
run: nuget restore ProximaX.Sirius.Chain.Sdk.sln

- name: Build
run: msbuild ProximaX.Sirius.Chain.Sdk.sln
19 changes: 13 additions & 6 deletions src/ProximaX.Sirius.Chain.Sdk.Tests/E2E/E2EAccountLinkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Threading.Tasks;
using FluentAssertions;
using ProximaX.Sirius.Chain.Sdk.Model.Accounts;
using ProximaX.Sirius.Chain.Sdk.Model.Namespaces;
using ProximaX.Sirius.Chain.Sdk.Model.Transactions;
using ProximaX.Sirius.Chain.Sdk.Utils;
using Xunit;
Expand Down Expand Up @@ -44,7 +45,7 @@ public async Task Should_Link_Account_To_Remote_Account()
var signedTransaction = localAccount.Sign(accountLinkTransaction, Fixture.GenerationHash);
Log.WriteLine($"Going to announce account link transaction {signedTransaction} with hash {signedTransaction.Hash}");

Fixture.WatchForFailure(signedTransaction);
Fixture.WatchForFailure(signedTransaction);

await Fixture.SiriusClient.TransactionHttp.Announce(signedTransaction);

Expand All @@ -54,12 +55,18 @@ public async Task Should_Link_Account_To_Remote_Account()

var localAccountInfo = await Fixture.SiriusClient.AccountHttp.GetAccountInfo(localAccount.Address);
var remoteAccountInfo = await Fixture.SiriusClient.AccountHttp.GetAccountInfo(remoteAccount.Address);

localAccountInfo.PublicKey.Should().BeEquivalentTo(remoteAccountInfo.LinkedAccountKey);
remoteAccountInfo.PublicKey.Should().BeEquivalentTo(localAccountInfo.LinkedAccountKey);
Log.WriteLine($" Local Account info {localAccountInfo}");
Log.WriteLine($" Remote Account info {remoteAccountInfo}");

localAccountInfo.PublicKey.Should().Equals(localAccountInfo.LinkedAccountKey);
remoteAccountInfo.PublicKey.Should().Equals(remoteAccountInfo.LinkedAccountKey);

Log.WriteLine($" Local Account info {localAccountInfo.LinkedAccountKey}");
Log.WriteLine($" Remote Account info {remoteAccountInfo.LinkedAccountKey}");

}


[Fact]
public async Task Should_UnLink_Account_From_Remote_Account()
{
Expand Down Expand Up @@ -113,7 +120,7 @@ public async Task Should_UnLink_Account_From_Remote_Account()
}




}
}
Loading

0 comments on commit d6dc9f1

Please sign in to comment.