From 13f660e44fe5a360e286eedc15d11a4a8f0903ac Mon Sep 17 00:00:00 2001 From: Atralupus Date: Sun, 14 Apr 2024 23:27:27 +0900 Subject: [PATCH] Add query --- .../app/Savor22b/GraphTypes/Query/Query.cs | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/backend/app/Savor22b/GraphTypes/Query/Query.cs b/backend/app/Savor22b/GraphTypes/Query/Query.cs index b815daf1..ddea007e 100644 --- a/backend/app/Savor22b/GraphTypes/Query/Query.cs +++ b/backend/app/Savor22b/GraphTypes/Query/Query.cs @@ -545,6 +545,38 @@ swarm is null } ); + Field>( + "createAction_SellDungeonConquest", + description: "던전점령권 시스템에 판매", + arguments: new QueryArguments( + new QueryArgument> + { + Name = "publicKey", + Description = "The base64-encoded public key for Transaction.", + }, + new QueryArgument> + { + Name = "stateId", + Description = "던전점령권 StateId", + } + ), + resolve: context => + { + var publicKey = new PublicKey( + ByteUtil.ParseHex(context.GetArgument("publicKey")) + ); + + var action = new SellDungeonConquest(context.GetArgument("stateId")); + + return new GetUnsignedTransactionHex( + action, + publicKey, + _blockChain, + _swarm + ).UnsignedTransactionHex; + } + ); + Field>( "createAction_CancelRegisteredTradeGoodAction", description: "무역상점 상품 등록 취소",