-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2438 from planetarium/release/120
Release headless v120
- Loading branch information
Showing
9 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
NineChronicles.Headless/GraphTypes/ActionQueryFields/RetrieveAvatarAssets.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using GraphQL; | ||
using GraphQL.Types; | ||
using Libplanet.Crypto; | ||
using Libplanet.Explorer.GraphTypes; | ||
using Nekoyume.Action; | ||
|
||
namespace NineChronicles.Headless.GraphTypes; | ||
|
||
public partial class ActionQuery | ||
{ | ||
private void RegisterRetrieveAvatarAssets() | ||
{ | ||
Field<NonNullGraphType<ByteStringType>>( | ||
name: "retrieveAvatarAssets", | ||
arguments: new QueryArguments( | ||
new QueryArgument<NonNullGraphType<AddressType>> | ||
{ | ||
Name = "avatarAddress", | ||
Description = "Avatar address to retrieve assets" | ||
} | ||
), | ||
resolve: context => | ||
{ | ||
var avatarAddress = context.GetArgument<Address>("avatarAddress"); | ||
ActionBase action = new RetrieveAvatarAssets() | ||
{ | ||
AvatarAddress = avatarAddress | ||
}; | ||
return Encode(context, action); | ||
} | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters