Development

Dev-only close pre-grad market for refunds

Changed on

Local-network development tool: not registered on deployed networks at all. On local it additionally requires POPCHARTS_DEV_TOOLS_ENABLED=true. Gets the local chain past the market graduation deadline, calls PregradManager.markRefundable, and updates the indexed market projection. Where the local chain cannot warp its clock the deadline is waited out in real time, so the call takes as long as the market has left in its graduation window and refuses outright when that is more than 90 seconds.

post/dev/markets/{chainId}/{marketId}/close

Request

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

Path parameters

chainIdstring required
marketIdstring required

Response

Response for status 200

refundAvailablestring required
status'refunded' required
transactionHashstring

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