add createDepositOrder mutation

This commit is contained in:
João Geonizeli
2021-09-05 22:32:15 -03:00
parent 3bedd32502
commit c7a799af1e
5 changed files with 78 additions and 0 deletions

View File

@@ -76,6 +76,33 @@ type CreateBuyCryptoOrderPayload {
order: BuyCryptoOrder
}
"""
Autogenerated input type of CreateDepositOrder
"""
input CreateDepositOrderInput {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String
order: CreateStakeOrderAttributesInput!
}
"""
Autogenerated return type of CreateDepositOrder
"""
type CreateDepositOrderPayload {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String
"""
Errors encountered during execution of the mutation.
"""
errors: [RecordInvalid!]
order: DepositOrder
}
input CreateSellCryptoOrderAttributesInput {
"""
Amount to be paid
@@ -233,6 +260,12 @@ type Mutation {
"""
input: CreateBuyCryptoOrderInput!
): CreateBuyCryptoOrderPayload
createDepositOrder(
"""
Parameters for CreateDepositOrder
"""
input: CreateDepositOrderInput!
): CreateDepositOrderPayload
createSellCryptoOrder(
"""
Parameters for CreateSellCryptoOrder