Development

Dev-only force resolve a postgrad market

Changed on

Local-network development tool: not registered on deployed networks at all. On local it additionally requires POPCHARTS_DEV_TOOLS_ENABLED=true. Calls the postgrad market resolver with side yes or no, waits for the local transaction, and updates the indexed market projection to resolved. The market's resolution gate and any dispute window are reached first; where the local chain cannot warp its clock they are waited out in real time, so the call takes as long as those windows have left and refuses outright when either is more than 90 seconds away.

post/dev/markets/{chainId}/{marketId}/resolve/{side}

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

chainIdstring required
marketIdstring required
sidestring required

Response

Response for status 200

status'resolved' required
transactionHashstring
winningSide'yes' | 'no' required

Changes

    • warning

      added the new openai enum value to the // response property for the response status

    • warning

      added the new openai enum value to the // response property for the response status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status