Skip to content

Commit

Permalink
chore: Add admin action query
Browse files Browse the repository at this point in the history
  • Loading branch information
OnedgeLee committed Nov 20, 2024
1 parent 73f9d75 commit 7f01ac6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions NineChronicles.Headless/GraphTypes/ActionQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,28 @@ public ActionQuery(StandaloneContext standaloneContext)
context,
new MigratePlanetariumGuild()));

Field<ByteStringType>(
name: "fixToRefundFromNonValidator",
arguments: new QueryArguments(
new QueryArgument<NonNullGraphType<ListGraphType<NonNullGraphType<AddressType>>>>
{
Description = "List of addresses to refund",
Name = "addresses",
},
new QueryArgument<NonNullGraphType<ListGraphType<NonNullGraphType<IntGraphType>>>>
{
Description = "List of amounts to refund",
Name = "amounts",
}),
resolve: context =>
{
var addresses = context.GetArgument<List<Address>>("addresses");
var amounts = context.GetArgument<List<int>>("amounts");
return Encode(
context,
new FixToRefundFromNonValidator(addresses, amounts));

Check failure on line 596 in NineChronicles.Headless/GraphTypes/ActionQuery.cs

View workflow job for this annotation

GitHub Actions / build-and-tests (DevEx)

'FixToRefundFromNonValidator' does not contain a constructor that takes 2 arguments

Check failure on line 596 in NineChronicles.Headless/GraphTypes/ActionQuery.cs

View workflow job for this annotation

GitHub Actions / build-and-tests (Release)

'FixToRefundFromNonValidator' does not contain a constructor that takes 2 arguments

Check failure on line 596 in NineChronicles.Headless/GraphTypes/ActionQuery.cs

View workflow job for this annotation

GitHub Actions / build-and-tests (DevEx)

'FixToRefundFromNonValidator' does not contain a constructor that takes 2 arguments
});

RegisterHackAndSlash();
RegisterHackAndSlashSweep();
RegisterDailyReward();
Expand Down

0 comments on commit 7f01ac6

Please sign in to comment.