-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/meme-frames
# Conflicts: # src/aoWebWallet/Shared/NavMenu.razor
- Loading branch information
Showing
109 changed files
with
5,410 additions
and
2,121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using aoWebWallet.Models; | ||
using aoWebWallet.Services; | ||
using ArweaveAO; | ||
using ArweaveAO.Models; | ||
using Microsoft.Extensions.Options; | ||
|
||
namespace aoWebWallet.Tests | ||
{ | ||
[TestClass] | ||
public class StorageServiceTests | ||
{ | ||
[TestMethod] | ||
public async Task TestBuildInTokenData() | ||
{ | ||
List<Token> result = new(); | ||
|
||
StorageService.AddSystemTokens(result); | ||
|
||
TokenClient tokenClient = new TokenClient(Options.Create(new ArweaveConfig()), new HttpClient()); | ||
|
||
foreach(var token in result) | ||
{ | ||
//Get live data | ||
var data = await tokenClient.GetTokenMetaData(token.TokenId); | ||
|
||
Assert.IsNotNull(token.TokenData); | ||
Assert.IsNotNull(data); | ||
|
||
Assert.AreEqual(token.TokenId, data.TokenId); | ||
Assert.AreEqual(token.TokenData.TokenId, data.TokenId); | ||
Assert.AreEqual(token.TokenData.Name, data.Name); | ||
Assert.AreEqual(token.TokenData.Ticker, data.Ticker); | ||
Assert.AreEqual(token.TokenData.Denomination, data.Denomination); | ||
Assert.AreEqual(token.TokenData.Logo, data.Logo); | ||
|
||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
|
||
<IsPackable>false</IsPackable> | ||
<IsTestProject>true</IsTestProject> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="coverlet.collector" Version="6.0.2"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" /> | ||
<PackageReference Include="MSTest.TestAdapter" Version="3.4.3" /> | ||
<PackageReference Include="MSTest.TestFramework" Version="3.4.3" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\aoWebWallet\aoWebWallet.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using ArweaveBlazor.Models; | ||
|
||
namespace aoWebWallet.Extensions | ||
{ | ||
public static class TagExtensions | ||
{ | ||
public static string ToSendCommand(this List<ArweaveBlazor.Models.Tag> tagList) | ||
{ | ||
var tagListString = string.Join(", ", tagList.Select(x => x.ToSendCommand())); | ||
return "{" + tagListString + "}"; | ||
} | ||
|
||
public static string ToSendCommand(this ArweaveBlazor.Models.Tag tag) | ||
{ | ||
return $"{tag.Name} = \"{tag.Value}\""; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using aoWebWallet.Models; | ||
|
||
namespace aoWebWallet.Extensions | ||
{ | ||
public static class WalletExtensions | ||
{ | ||
public static string ToAutocompleteDisplay(this Wallet wallet) | ||
{ | ||
if (string.IsNullOrWhiteSpace(wallet.Name)) | ||
{ | ||
return wallet.Address; | ||
} | ||
|
||
return $"{wallet.Name} ({wallet.Address})"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.