diff --git a/NineChronicles.Headless/GraphTypes/CurrencyInputType.cs b/NineChronicles.Headless/GraphTypes/CurrencyInputType.cs deleted file mode 100644 index ff9cb22cb..000000000 --- a/NineChronicles.Headless/GraphTypes/CurrencyInputType.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Linq; -using GraphQL.Types; -using Libplanet; -using Libplanet.Assets; -using Libplanet.Explorer.GraphTypes; - -namespace NineChronicles.Headless.GraphTypes -{ - public class CurrencyInputType : InputObjectGraphType - { - public CurrencyInputType() - { - Field>("ticker"); - Field>("decimalPlaces"); - Field>>("minters"); - } - - public override object ParseDictionary(IDictionary value) - { - IImmutableSet
? minters = null; - if (value.ContainsKey("minters")) - { - var rawMinters = (object[])value["minters"]!; - if (rawMinters.Any()) - { - minters = ImmutableHashSet
.Empty; - foreach (var rawMinter in rawMinters) - { - minters = minters.Add((Address)rawMinter); - } - } - } -#pragma warning disable CS0618 - // Use of obsolete method Currency.Legacy(): https://github.com/planetarium/lib9c/discussions/1319 - var currency = Currency.Legacy((string)value["ticker"]!, (byte)value["decimalPlaces"]!, minters: minters); -#pragma warning restore CS0618 - return currency; - } - - } -}