confirmDutchAuctionEnd

Once the auction date and time are completed and the transaction is completed on the blockchain, this mutation needs to be called so that Mojito can update all the operations required post-end auction sale.

Integration Guidance

Inorder to end the auction on the Onchain Dutch Auction, please follow below steps.

  1. Blockchain
    1. Should have balance on ETH/MATIC based on network for gas fees & have applicable blockchain network connected
    2. Can be called after the end time of the sale
    3. You can refer the following script from mojito public repository https://github.com/mojitoinc/mojito-contracts-scripts/blob/main/scripts/dutchAuction/rebate.ts and complete blockchain transaction on one of the applicable blockchain network.
  2. Mutation
    1. Once the blockchain integration is done, you can use the following mutation for updating and registering to mojito backend system.

Sample Mutation

mutation confirmDutchAuctionEnd($lotID: UUID1!, $endTxHash: String) {
  confirmDutchAuctionEnd(lotID: $lotID, endTxHash: $endTxHash)
}

Sample Variable

{
  "lotID": "aaa58ca1-fedb-44e3-9ff9-cdd016c151cb",
  "endTxHash": "0xd041ec8e40646a07e93cb31d7775cbbc681e80c83f2d9db2e74d9799edb8bd1d"
}

Sample Response

{
  "data": {
    "confirmDutchAuctionEnd": true
  }
}

Arguments

NameTypeDescriptionRequired
lotIDUUIDAuction lot idYes
endTxHashStringDutch end transaction hash.No

Fields

NameTypeDescription
confirmDutchAuctionEndBooleanIf return true end auction completed, if not done return respective error.