Updates api and marketplace contract

This commit is contained in:
ThatBen 2025-03-28 11:12:34 +01:00
parent 8d9cd598ba
commit 82211cae1a
No known key found for this signature in database
GPG Key ID: E020A7DDCD52E1AB
3 changed files with 22 additions and 4 deletions

View File

@ -163,6 +163,14 @@ components:
totalCollateral:
type: string
description: Total collateral (in amount of tokens) that can be used for matching requests
enabled:
type: boolean
description: Enable the ability to receive sales on this availability.
default: true
until:
type: integer
description: Specifies the latest timestamp, after which the availability will no longer host any slots. If set to 0, there will be no restrictions.
default: 0
SalesAvailabilityREAD:
allOf:
@ -239,6 +247,9 @@ components:
slotIndex:
type: string
description: Slot Index as decimal string
validUntil:
type: integer
description: Timestamp after which the reservation will no longer be valid.
StorageRequestCreation:
type: object
@ -704,7 +715,7 @@ paths:
"400":
description: Invalid data input
"422":
description: Not enough node's storage quota available
description: Not enough node's storage quota available or the provided parameters did not pass validation
"500":
description: Error reserving availability
"503":
@ -737,7 +748,7 @@ paths:
"404":
description: Availability not found
"422":
description: Not enough node's storage quota available
description: The provided parameters did not pass validation
"500":
description: Error reserving availability
"503":
@ -800,6 +811,8 @@ paths:
type: string
"400":
description: Invalid or missing Request ID
"422":
description: The storage request parameters are not valid
"404":
description: Request ID not found
"503":

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,7 @@ namespace CodexPlugin
public class ApiChecker
{
// <INSERT-OPENAPI-YAML-HASH>
private const string OpenApiYamlHash = "00-7D-C3-0B-D2-23-D6-6C-CA-C2-43-D0-9B-B4-63-FC-4F-FE-23-9F-B8-82-5F-3B-3F-6B-4F-1F-11-E9-48-16";
private const string OpenApiYamlHash = "9D-AB-49-BC-50-D3-ED-3D-EE-F3-5B-CC-74-F2-26-CD-74-1B-19-FF-25-F0-3F-05-37-71-1C-D7-C2-EF-AD-0A";
private const string OpenApiFilePath = "/codex/openapi.yaml";
private const string DisableEnvironmentVariable = "CODEXPLUGIN_DISABLE_APICHECK";