handle stake submit

This commit is contained in:
João Geonizeli
2021-08-17 20:27:03 -03:00
parent 5cda50bdad
commit 35fcdeb0f8
8 changed files with 301 additions and 50 deletions

View File

@@ -144,6 +144,42 @@ type CreateSellCryptoOrderPayload {
order: SellCryptoOrder
}
input CreateStakeOrderAttributesInput {
"""
Amount to be paid
"""
amount: String!
currencyId: ID!
poolName: String!
}
"""
Autogenerated input type of CreateStakeOrder
"""
input CreateStakeOrderInput {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String
order: CreateStakeOrderAttributesInput!
}
"""
Autogenerated return type of CreateStakeOrder
"""
type CreateStakeOrderPayload {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String
"""
Errors encountered during execution of the mutation.
"""
errors: [RecordInvalid!]
order: StakeOrder
}
type Currency implements Node {
id: ID!
name: String!
@@ -203,6 +239,12 @@ type Mutation {
"""
input: CreateSellCryptoOrderInput!
): CreateSellCryptoOrderPayload
createStakeOrder(
"""
Parameters for CreateStakeOrder
"""
input: CreateStakeOrderInput!
): CreateStakeOrderPayload
}
"""