Skip to content

Commit

Permalink
Add query
Browse files Browse the repository at this point in the history
  • Loading branch information
Atralupus committed Apr 16, 2024
1 parent bfbb8e0 commit 13f660e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions backend/app/Savor22b/GraphTypes/Query/Query.cs
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,38 @@ swarm is null
}
);

Field<NonNullGraphType<StringGraphType>>(
"createAction_SellDungeonConquest",
description: "던전점령권 시스템에 판매",
arguments: new QueryArguments(
new QueryArgument<NonNullGraphType<StringGraphType>>
{
Name = "publicKey",
Description = "The base64-encoded public key for Transaction.",
},
new QueryArgument<NonNullGraphType<GuidGraphType>>
{
Name = "stateId",
Description = "던전점령권 StateId",
}
),
resolve: context =>
{
var publicKey = new PublicKey(
ByteUtil.ParseHex(context.GetArgument<string>("publicKey"))
);
var action = new SellDungeonConquest(context.GetArgument<Guid>("stateId"));
return new GetUnsignedTransactionHex(
action,
publicKey,
_blockChain,
_swarm
).UnsignedTransactionHex;
}
);

Field<NonNullGraphType<StringGraphType>>(
"createAction_CancelRegisteredTradeGoodAction",
description: "무역상점 상품 등록 취소",
Expand Down

0 comments on commit 13f660e

Please sign in to comment.