From 7f01ac699568abc00ae76fe49f0fa67ddb01a6fb Mon Sep 17 00:00:00 2001 From: ilgyu Date: Wed, 20 Nov 2024 10:18:13 +0900 Subject: [PATCH] chore: Add admin action query --- .../GraphTypes/ActionQuery.cs | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/NineChronicles.Headless/GraphTypes/ActionQuery.cs b/NineChronicles.Headless/GraphTypes/ActionQuery.cs index f220ea3fa..510826b3f 100644 --- a/NineChronicles.Headless/GraphTypes/ActionQuery.cs +++ b/NineChronicles.Headless/GraphTypes/ActionQuery.cs @@ -574,6 +574,28 @@ public ActionQuery(StandaloneContext standaloneContext) context, new MigratePlanetariumGuild())); + Field( + name: "fixToRefundFromNonValidator", + arguments: new QueryArguments( + new QueryArgument>>> + { + Description = "List of addresses to refund", + Name = "addresses", + }, + new QueryArgument>>> + { + Description = "List of amounts to refund", + Name = "amounts", + }), + resolve: context => + { + var addresses = context.GetArgument>("addresses"); + var amounts = context.GetArgument>("amounts"); + return Encode( + context, + new FixToRefundFromNonValidator(addresses, amounts)); + }); + RegisterHackAndSlash(); RegisterHackAndSlashSweep(); RegisterDailyReward();