Skip to content

Commit

Permalink
Merge pull request #2613 from river20s/deprecate-action-mutation
Browse files Browse the repository at this point in the history
Deprecate outdated ActionMutation
  • Loading branch information
moreal authored Oct 27, 2024
2 parents 76c1e57 + af2e722 commit 8d9d716
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions NineChronicles.Headless/GraphTypes/ActionMutation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ public class ActionMutation : ObjectGraphType
{
public ActionMutation(NineChroniclesNodeService service)
{
DeprecationReason = "This API is insecure and must not be used.";

Field<NonNullGraphType<TxIdType>>("createAvatar",
description: "Create new avatar.",
deprecationReason: DeprecationReason,
arguments: new QueryArguments(
new QueryArgument<NonNullGraphType<StringGraphType>>
{
Expand Down Expand Up @@ -96,6 +99,7 @@ public ActionMutation(NineChroniclesNodeService service)

Field<NonNullGraphType<TxIdType>>("hackAndSlash",
description: "Start stage to get material.",
deprecationReason: DeprecationReason,
arguments: new QueryArguments(
new QueryArgument<NonNullGraphType<AddressType>>
{
Expand Down Expand Up @@ -179,6 +183,7 @@ public ActionMutation(NineChroniclesNodeService service)

Field<NonNullGraphType<TxIdType>>("combinationEquipment",
description: "Combine new equipment.",
deprecationReason: DeprecationReason,
arguments: new QueryArguments(
new QueryArgument<NonNullGraphType<AddressType>>
{
Expand Down Expand Up @@ -239,6 +244,7 @@ public ActionMutation(NineChroniclesNodeService service)

Field<NonNullGraphType<TxIdType>>("itemEnhancement",
description: "Upgrade equipment.",
deprecationReason: DeprecationReason,
arguments: new QueryArguments(
new QueryArgument<NonNullGraphType<AddressType>>
{
Expand Down Expand Up @@ -303,6 +309,7 @@ public ActionMutation(NineChroniclesNodeService service)

Field<NonNullGraphType<TxIdType>>("dailyReward",
description: "Get daily reward.",
deprecationReason: DeprecationReason,
arguments: new QueryArguments(
new QueryArgument<NonNullGraphType<AddressType>>
{
Expand Down Expand Up @@ -345,6 +352,7 @@ public ActionMutation(NineChroniclesNodeService service)
});
Field<NonNullGraphType<TxIdType>>("chargeActionPoint",
description: "Charge Action Points using Material.",
deprecationReason: DeprecationReason,
arguments: new QueryArguments(
new QueryArgument<NonNullGraphType<AddressType>>
{
Expand Down Expand Up @@ -388,6 +396,7 @@ public ActionMutation(NineChroniclesNodeService service)

Field<NonNullGraphType<TxIdType>>("combinationConsumable",
description: "Combine new Consumable.",
deprecationReason: DeprecationReason,
arguments: new QueryArguments(
new QueryArgument<NonNullGraphType<AddressType>>
{
Expand Down

0 comments on commit 8d9d716

Please sign in to comment.