Skip to content

Commit 82211ca

Browse files
committed
Updates api and marketplace contract
1 parent 8d9cd59 commit 82211ca

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

ProjectPlugins/CodexClient/openapi.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ components:
163163
totalCollateral:
164164
type: string
165165
description: Total collateral (in amount of tokens) that can be used for matching requests
166+
enabled:
167+
type: boolean
168+
description: Enable the ability to receive sales on this availability.
169+
default: true
170+
until:
171+
type: integer
172+
description: Specifies the latest timestamp, after which the availability will no longer host any slots. If set to 0, there will be no restrictions.
173+
default: 0
166174

167175
SalesAvailabilityREAD:
168176
allOf:
@@ -239,6 +247,9 @@ components:
239247
slotIndex:
240248
type: string
241249
description: Slot Index as decimal string
250+
validUntil:
251+
type: integer
252+
description: Timestamp after which the reservation will no longer be valid.
242253

243254
StorageRequestCreation:
244255
type: object
@@ -704,7 +715,7 @@ paths:
704715
"400":
705716
description: Invalid data input
706717
"422":
707-
description: Not enough node's storage quota available
718+
description: Not enough node's storage quota available or the provided parameters did not pass validation
708719
"500":
709720
description: Error reserving availability
710721
"503":
@@ -737,7 +748,7 @@ paths:
737748
"404":
738749
description: Availability not found
739750
"422":
740-
description: Not enough node's storage quota available
751+
description: The provided parameters did not pass validation
741752
"500":
742753
description: Error reserving availability
743754
"503":
@@ -800,6 +811,8 @@ paths:
800811
type: string
801812
"400":
802813
description: Invalid or missing Request ID
814+
"422":
815+
description: The storage request parameters are not valid
803816
"404":
804817
description: Request ID not found
805818
"503":

ProjectPlugins/CodexContractsPlugin/Marketplace/Marketplace.cs

Lines changed: 6 additions & 1 deletion
Large diffs are not rendered by default.

ProjectPlugins/CodexPlugin/ApiChecker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CodexPlugin
1010
public class ApiChecker
1111
{
1212
// <INSERT-OPENAPI-YAML-HASH>
13-
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";
13+
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";
1414
private const string OpenApiFilePath = "/codex/openapi.yaml";
1515
private const string DisableEnvironmentVariable = "CODEXPLUGIN_DISABLE_APICHECK";
1616

0 commit comments

Comments
 (0)