deployDutchAuction

This mutation to call to create the dutch auction depends on parameter.

Sample mutation

mutation deployDutchAuction(
  $lotID: UUID1!
  $deployer: Boolean!
  $txHash: String
) {
  deployDutchAuction(lotID: $lotID, deployer: $deployer, txHash: $txHash)
}

Sample variable

deploy flow varies depending on the parameter.

  1. Auction created out of mojito API need to pass parameter lotID,deployer=false and txHaxh
  2. Creating an auction via mojito API needs to pass param lotID,deployer=true
{
   	"lotID":"cd711230-f9cb-42dd-aa34-bc3b8532c51c", 
    "deployer":false, 
    "txHash":"0x9e83385f68149a495a18d18efab1aec89c4a15459346edad35da87cc4ad58c23"
}

Sample response

{
  "data": {
    "deployDutchAuction": "auction setup properly and active"
  }
}

Arguments

NameTypeDescriptionRequired
lotIDUUIDAuction lot id for setupYes
deployerBooleanauction setup is already done to pass as false, if not pass as trueYes
txHashStringThe auction setup transaction hash is already done out of Mojito API.No

Fields

NameTypeDescription
deployDutchAuctionStringConfirmation of the auction setup.

Example