You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codex.yaml
+28-23
Original file line number
Diff line number
Diff line change
@@ -27,10 +27,6 @@ components:
27
27
maxLength: 66
28
28
example: 0x...
29
29
30
-
BigInt:
31
-
type: string
32
-
description: Integer represented as decimal string
33
-
34
30
Cid:
35
31
type: string
36
32
description: Content Identifier as specified at https://github.com/multiformats/cid
@@ -55,17 +51,18 @@ components:
55
51
description: The amount of tokens paid per byte per second per slot to hosts the client is willing to pay
56
52
57
53
Duration:
58
-
type: string
59
-
description: The duration of the request in seconds as decimal string
54
+
type: integer
55
+
format: int64
56
+
description: The duration of the request in seconds
60
57
61
58
ProofProbability:
62
59
type: string
63
60
description: How often storage proofs are required as decimal string
64
61
65
62
Expiry:
66
-
type: string
63
+
type: integer
64
+
format: int64
67
65
description: A timestamp as seconds since unix epoch at which this request expires if the Request does not find requested amount of nodes to host the data.
68
-
default: 10 minutes
69
66
70
67
SPR:
71
68
type: string
@@ -153,8 +150,9 @@ components:
153
150
id:
154
151
$ref: "#/components/schemas/Id"
155
152
totalSize:
156
-
type: string
157
-
description: Total size of availability's storage in bytes as decimal string
153
+
type: integer
154
+
format: int64
155
+
description: Total size of availability's storage in bytes
158
156
duration:
159
157
$ref: "#/components/schemas/Duration"
160
158
minPricePerBytePerSecond:
@@ -170,8 +168,9 @@ components:
170
168
- type: object
171
169
properties:
172
170
freeSize:
173
-
type: string
174
-
description: Unused size of availability's storage in bytes as decimal string
171
+
type: integer
172
+
format: int64
173
+
description: Unused size of availability's storage in bytes
175
174
176
175
SalesAvailabilityCREATE:
177
176
allOf:
@@ -190,17 +189,19 @@ components:
190
189
request:
191
190
$ref: "#/components/schemas/StorageRequest"
192
191
slotIndex:
193
-
type: string
194
-
description: Slot Index as decimal string
192
+
type: integer
193
+
format: int64
194
+
description: Slot Index number
195
195
196
196
SlotAgent:
197
197
type: object
198
198
properties:
199
199
id:
200
200
$ref: "#/components/schemas/SlotId"
201
201
slotIndex:
202
-
type: string
203
-
description: Slot Index as decimal string
202
+
type: integer
203
+
format: int64
204
+
description: Slot Index number
204
205
requestId:
205
206
$ref: "#/components/schemas/Id"
206
207
request:
@@ -233,12 +234,15 @@ components:
233
234
availabilityId:
234
235
$ref: "#/components/schemas/Id"
235
236
size:
236
-
$ref: "#/components/schemas/BigInt"
237
+
type: integer
238
+
format: int64
239
+
description: Size of the slot in bytes
237
240
requestId:
238
241
$ref: "#/components/schemas/Id"
239
242
slotIndex:
240
-
type: string
241
-
description: Slot Index as decimal string
243
+
type: integer
244
+
format: int64
245
+
description: Slot Index number
242
246
243
247
StorageRequestCreation:
244
248
type: object
@@ -258,17 +262,18 @@ components:
258
262
nodes:
259
263
description: Minimal number of nodes the content should be stored on
260
264
type: integer
261
-
default: 1
265
+
default: 3
262
266
tolerance:
263
267
description: Additional number of nodes on top of the `nodes` property that can be lost before pronouncing the content lost
264
268
type: integer
265
-
default: 0
269
+
default: 1
266
270
collateralPerByte:
267
271
type: string
268
272
description: Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots
269
273
expiry:
270
-
type: string
271
-
description: Number as decimal string that represents expiry threshold in seconds from when the Request is submitted. When the threshold is reached and the Request does not find requested amount of nodes to host the data, the Request is voided. The number of seconds can not be higher then the Request's duration itself.
274
+
type: integer
275
+
format: int64
276
+
description: Number that represents expiry threshold in seconds from when the Request is submitted. When the threshold is reached and the Request does not find requested amount of nodes to host the data, the Request is voided. The number of seconds can not be higher then the Request's duration itself.
total_size: Optional[StrictStr] =Field(default=None, description="Total size of availability's storage in bytes as decimal string", alias="totalSize")
32
-
duration: Optional[StrictStr] =Field(default=None, description="The duration of the request in seconds as decimal string")
31
+
total_size: Optional[StrictInt] =Field(default=None, description="Total size of availability's storage in bytes", alias="totalSize")
32
+
duration: Optional[StrictInt] =Field(default=None, description="The duration of the request in seconds")
33
33
min_price_per_byte_per_second: Optional[StrictStr] =Field(default=None, description="Minimal price per byte per second paid (in amount of tokens) for the hosted request's slot for the request's duration as decimal string", alias="minPricePerBytePerSecond")
34
34
total_collateral: Optional[StrictStr] =Field(default=None, description="Total collateral (in amount of tokens) that can be used for matching requests", alias="totalCollateral")
total_size: StrictStr=Field(description="Total size of availability's storage in bytes as decimal string", alias="totalSize")
32
-
duration: StrictStr=Field(description="The duration of the request in seconds as decimal string")
31
+
total_size: StrictInt=Field(description="Total size of availability's storage in bytes", alias="totalSize")
32
+
duration: StrictInt=Field(description="The duration of the request in seconds")
33
33
min_price_per_byte_per_second: StrictStr=Field(description="Minimal price per byte per second paid (in amount of tokens) for the hosted request's slot for the request's duration as decimal string", alias="minPricePerBytePerSecond")
34
34
total_collateral: StrictStr=Field(description="Total collateral (in amount of tokens) that can be used for matching requests", alias="totalCollateral")
total_size: Optional[StrictStr] =Field(default=None, description="Total size of availability's storage in bytes as decimal string", alias="totalSize")
32
-
duration: Optional[StrictStr] =Field(default=None, description="The duration of the request in seconds as decimal string")
31
+
total_size: Optional[StrictInt] =Field(default=None, description="Total size of availability's storage in bytes", alias="totalSize")
32
+
duration: Optional[StrictInt] =Field(default=None, description="The duration of the request in seconds")
33
33
min_price_per_byte_per_second: Optional[StrictStr] =Field(default=None, description="Minimal price per byte per second paid (in amount of tokens) for the hosted request's slot for the request's duration as decimal string", alias="minPricePerBytePerSecond")
34
34
total_collateral: Optional[StrictStr] =Field(default=None, description="Total collateral (in amount of tokens) that can be used for matching requests", alias="totalCollateral")
35
-
free_size: Optional[StrictStr] =Field(default=None, description="Unused size of availability's storage in bytes as decimal string", alias="freeSize")
35
+
free_size: Optional[StrictInt] =Field(default=None, description="Unused size of availability's storage in bytes", alias="freeSize")
Copy file name to clipboardExpand all lines: codex_api_client/models/storage_ask.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ class StorageAsk(BaseModel):
28
28
"""# noqa: E501
29
29
slots: Optional[StrictInt] =Field(default=None, description="Number of slots (eq. hosts) that the Request want to have the content spread over")
30
30
slot_size: Optional[StrictStr] =Field(default=None, description="Amount of storage per slot (in bytes) as decimal string", alias="slotSize")
31
-
duration: Optional[StrictStr] =Field(default=None, description="The duration of the request in seconds as decimal string")
31
+
duration: Optional[StrictInt] =Field(default=None, description="The duration of the request in seconds")
32
32
proof_probability: Optional[StrictStr] =Field(default=None, description="How often storage proofs are required as decimal string", alias="proofProbability")
33
33
price_per_byte_per_second: StrictStr=Field(description="The amount of tokens paid per byte per second per slot to hosts the client is willing to pay", alias="pricePerBytePerSecond")
34
34
max_slot_loss: Optional[StrictInt] =Field(default=None, description="Max slots that can be lost without data considered to be lost", alias="maxSlotLoss")
@@ -32,7 +32,7 @@ class StorageRequest(BaseModel):
32
32
client: Optional[StrictStr] =Field(default=None, description="Address of Ethereum address")
33
33
ask: Optional[StorageAsk] =None
34
34
content: Optional[Content] =None
35
-
expiry: Optional[StrictStr] =Field(default='10 minutes', description="A timestamp as seconds since unix epoch at which this request expires if the Request does not find requested amount of nodes to host the data.")
35
+
expiry: Optional[StrictInt] =Field(default=None, description="A timestamp as seconds since unix epoch at which this request expires if the Request does not find requested amount of nodes to host the data.")
Copy file name to clipboardExpand all lines: codex_api_client/models/storage_request_creation.py
+6-6
Original file line number
Diff line number
Diff line change
@@ -26,13 +26,13 @@ class StorageRequestCreation(BaseModel):
26
26
"""
27
27
StorageRequestCreation
28
28
"""# noqa: E501
29
-
duration: StrictStr=Field(description="The duration of the request in seconds as decimal string")
29
+
duration: StrictInt=Field(description="The duration of the request in seconds")
30
30
price_per_byte_per_second: StrictStr=Field(description="The amount of tokens paid per byte per second per slot to hosts the client is willing to pay", alias="pricePerBytePerSecond")
31
31
proof_probability: StrictStr=Field(description="How often storage proofs are required as decimal string", alias="proofProbability")
32
-
nodes: Optional[StrictInt] =Field(default=1, description="Minimal number of nodes the content should be stored on")
33
-
tolerance: Optional[StrictInt] =Field(default=0, description="Additional number of nodes on top of the `nodes` property that can be lost before pronouncing the content lost")
32
+
nodes: Optional[StrictInt] =Field(default=3, description="Minimal number of nodes the content should be stored on")
33
+
tolerance: Optional[StrictInt] =Field(default=1, description="Additional number of nodes on top of the `nodes` property that can be lost before pronouncing the content lost")
34
34
collateral_per_byte: StrictStr=Field(description="Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots", alias="collateralPerByte")
35
-
expiry: StrictStr=Field(description="Number as decimal string that represents expiry threshold in seconds from when the Request is submitted. When the threshold is reached and the Request does not find requested amount of nodes to host the data, the Request is voided. The number of seconds can not be higher then the Request's duration itself.")
35
+
expiry: StrictInt=Field(description="Number that represents expiry threshold in seconds from when the Request is submitted. When the threshold is reached and the Request does not find requested amount of nodes to host the data, the Request is voided. The number of seconds can not be higher then the Request's duration itself.")
0 commit comments