Skip to content

Commit 7796b7d

Browse files
committed
feat(algod): ✨ add round field to Algorand.Unity.Algod.Box
1 parent 16297c8 commit 7796b7d

File tree

8 files changed

+752
-1373
lines changed

8 files changed

+752
-1373
lines changed

Algorand.Unity.Package/Assets/Algorand.Unity.CodeGen/FormatterCacheCodeGen.cs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.CodeDom;
23
using System.CodeDom.Compiler;
34
using System.IO;
45
using System.Linq;
@@ -21,6 +22,7 @@ public static void GenerateFormatterCache()
2122
.Concat(TypeCache.GetTypesWithAttribute(typeof(AlgoApiFormatterAttribute)))
2223
.Select(t => new AlgoApiCompileUnit(t))
2324
.Where(cu => cu.IsValid)
25+
.OrderBy(cu => cu.Type.Name)
2426
.GroupBy(cu => cu.SourceInfo.FilePath)
2527
.Select(grouping => grouping.Aggregate(MergeCompileUnit))
2628
.Select(ExportToDirectory)
@@ -33,7 +35,26 @@ public static void GenerateFormatterCache()
3335

3436
private static AlgoApiCompileUnit MergeCompileUnit(AlgoApiCompileUnit cu1, AlgoApiCompileUnit cu2)
3537
{
36-
cu1.Namespaces.AddRange(cu2.Namespaces);
38+
var namespaces1 = cu1.Namespaces;
39+
var namespaces2 = cu2.Namespaces;
40+
41+
foreach (CodeNamespace ns2 in namespaces2)
42+
{
43+
var existsAlready = false;
44+
foreach (CodeNamespace ns1 in namespaces1)
45+
{
46+
if (ns1.Name == ns2.Name)
47+
{
48+
existsAlready = true;
49+
ns1.Types.AddRange(ns2.Types);
50+
break;
51+
}
52+
}
53+
if (!existsAlready)
54+
{
55+
namespaces1.Add(ns2);
56+
}
57+
}
3758
return cu1;
3859
}
3960

Algorand.Unity.Package/Packages/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"com.unity.burst": "1.8.8",
3+
"com.unity.burst": "1.8.9",
44
"com.unity.ide.rider": "3.0.25",
55
"com.unity.ide.visualstudio": "2.0.21",
66
"com.unity.mobile.android-logcat": "1.3.2",

Algorand.Unity.Package/Packages/packages-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"url": "https://package.openupm.com"
1919
},
2020
"com.unity.burst": {
21-
"version": "1.8.8",
21+
"version": "1.8.9",
2222
"depth": 0,
2323
"source": "registry",
2424
"dependencies": {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
m_EditorVersion: 2022.3.10f1
2-
m_EditorVersionWithRevision: 2022.3.10f1 (ff3792e53c62)
1+
m_EditorVersion: 2022.3.11f1
2+
m_EditorVersionWithRevision: 2022.3.11f1 (d00248457e15)

Runtime/Algorand.Unity/Formatters.gen/AlgodTypes.gen.Formatters.gen.cs

Lines changed: 201 additions & 531 deletions
Large diffs are not rendered by default.

Runtime/Algorand.Unity/Formatters.gen/IndexerTypes.gen.Formatters.gen.cs

Lines changed: 189 additions & 509 deletions
Large diffs are not rendered by default.

Runtime/Algorand.Unity/Formatters.gen/SignedTxn.Formatters.gen.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ private static bool @__generated__InitializeAlgoApiFormatters()
2626
return true;
2727
}
2828
}
29-
}
30-
31-
namespace Algorand.Unity
32-
{
33-
3429

3530
public partial struct SignedTxn<TTxn>
3631
{

0 commit comments

Comments
 (0)