From 4c1a232c36fe6de0cb622d5ca2a2c72714851677 Mon Sep 17 00:00:00 2001 From: moreal Date: Wed, 2 Oct 2024 15:11:49 +0900 Subject: [PATCH 1/7] Deserialize only transfer-asset actions --- NineChronicles.Headless/GraphTypes/StandaloneQuery.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/NineChronicles.Headless/GraphTypes/StandaloneQuery.cs b/NineChronicles.Headless/GraphTypes/StandaloneQuery.cs index 3cfeb63ff..c9ed20236 100644 --- a/NineChronicles.Headless/GraphTypes/StandaloneQuery.cs +++ b/NineChronicles.Headless/GraphTypes/StandaloneQuery.cs @@ -238,17 +238,20 @@ public StandaloneQuery(StandaloneContext standaloneContext, IKeyStore keyStore, var filtered = block.Transactions .Where(tx => tx.Actions.Count == 1) + .Where(tx => + tx.Actions[0] is Dictionary dictionary && dictionary.ContainsKey("type_id") && + dictionary["type_id"] is Text typeId && typeId == TransferAsset.TypeIdentifier) .Select(tx => ( transactionRepository.GetTxExecution(blockHash, tx.Id) ?? - throw new InvalidOperationException($"TxExecution {tx.Id} not found."), + throw new InvalidOperationException($"TxExecution {tx.Id} not found."), ToAction(tx.Actions[0]) )) .Where(pair => pair.Item2 is ITransferAsset) .Select(pair => (pair.Item1!, (ITransferAsset)pair.Item2)) .Where(pair => !pair.Item1.Fail && - (!recipient.HasValue || pair.Item2.Recipient == recipient) && - pair.Item2.Amount.Currency.Ticker == "NCG"); + (!recipient.HasValue || pair.Item2.Recipient == recipient) && + pair.Item2.Amount.Currency.Ticker == "NCG"); var histories = filtered.Select(pair => new TransferNCGHistory( From 32efc0ef84239d7f0da4877ad7f6d4fbeadb4c97 Mon Sep 17 00:00:00 2001 From: Yang Chun Ung Date: Thu, 17 Oct 2024 11:51:42 +0900 Subject: [PATCH 2/7] Bump lib9c main --- Lib9c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib9c b/Lib9c index 810b1d86a..af1ed0865 160000 --- a/Lib9c +++ b/Lib9c @@ -1 +1 @@ -Subproject commit 810b1d86a3f11f9780c270671b845bfa7c8bd0a1 +Subproject commit af1ed08655712b90a40a7ebc5fde2dd063cd9cbc From d967756363e1729295fba73a2f0bc97652be8fc8 Mon Sep 17 00:00:00 2001 From: hyeon Date: Tue, 22 Oct 2024 18:20:04 +0900 Subject: [PATCH 3/7] Bump lib9c --- Lib9c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib9c b/Lib9c index f6382bfea..a8058b946 160000 --- a/Lib9c +++ b/Lib9c @@ -1 +1 @@ -Subproject commit f6382bfea11a68e794ae3ff13426064f121b500d +Subproject commit a8058b946c3d93a61bf4e4d977cb04900562ea13 From f2fe50650e08912b71c4665cb3d7cc292a4bfe18 Mon Sep 17 00:00:00 2001 From: hyeon Date: Tue, 22 Oct 2024 18:28:27 +0900 Subject: [PATCH 4/7] Bump lib9c --- Lib9c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib9c b/Lib9c index a8058b946..55b6e9e8c 160000 --- a/Lib9c +++ b/Lib9c @@ -1 +1 @@ -Subproject commit a8058b946c3d93a61bf4e4d977cb04900562ea13 +Subproject commit 55b6e9e8cf83c8bf32a2d809b204803ca6fdc793 From e4ed419287a86b120e91e934848f9bdbc10377f6 Mon Sep 17 00:00:00 2001 From: hyeon Date: Thu, 24 Oct 2024 10:23:57 +0900 Subject: [PATCH 5/7] Bump lib9c: Bump libplanet to 5.3.2-alpha.1 --- Lib9c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib9c b/Lib9c index 55b6e9e8c..f33874a65 160000 --- a/Lib9c +++ b/Lib9c @@ -1 +1 @@ -Subproject commit 55b6e9e8cf83c8bf32a2d809b204803ca6fdc793 +Subproject commit f33874a6536e6ba05c789a18cda47d5a4b0cafb7 From 87eb1492592ea0b93b3bbf5a89ab27aba5fd5279 Mon Sep 17 00:00:00 2001 From: hyeon Date: Fri, 25 Oct 2024 13:31:56 +0900 Subject: [PATCH 6/7] Bump lib9c: Fix option count --- Lib9c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib9c b/Lib9c index f33874a65..d4cfc48a4 160000 --- a/Lib9c +++ b/Lib9c @@ -1 +1 @@ -Subproject commit f33874a6536e6ba05c789a18cda47d5a4b0cafb7 +Subproject commit d4cfc48a4f737ae8eeffb1a9b4cf89fe6fc6cd19 From 29c4ac506010d433134d2eeda6dc77a0227c7958 Mon Sep 17 00:00:00 2001 From: hyeon Date: Mon, 28 Oct 2024 11:10:24 +0900 Subject: [PATCH 7/7] Bump lib9c to 1.19.0 --- Lib9c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib9c b/Lib9c index d4cfc48a4..9f1661102 160000 --- a/Lib9c +++ b/Lib9c @@ -1 +1 @@ -Subproject commit d4cfc48a4f737ae8eeffb1a9b4cf89fe6fc6cd19 +Subproject commit 9f1661102a74ef38c4715061c7e8a36d8c544366