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
+119-23
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,10 @@ components:
50
50
type: string
51
51
description: The amount of tokens paid per byte per second per slot to hosts the client is willing to pay
52
52
53
+
CollateralPerByte:
54
+
type: string
55
+
description: Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots
56
+
53
57
Duration:
54
58
type: integer
55
59
format: int64
@@ -70,6 +74,8 @@ components:
70
74
71
75
SPRRead:
72
76
type: object
77
+
required:
78
+
- spr
73
79
properties:
74
80
spr:
75
81
$ref: "#/components/schemas/SPR"
@@ -82,13 +88,21 @@ components:
82
88
83
89
Content:
84
90
type: object
91
+
required:
92
+
- cid
85
93
description: Parameters specifying the content
86
94
properties:
87
95
cid:
88
96
$ref: "#/components/schemas/Cid"
89
97
90
98
Node:
91
99
type: object
100
+
required:
101
+
- nodeId
102
+
- peerId
103
+
- record
104
+
- address
105
+
- seen
92
106
properties:
93
107
nodeId:
94
108
type: string
@@ -110,9 +124,15 @@ components:
110
124
revision:
111
125
type: string
112
126
example: 0c647d8
127
+
contracts:
128
+
type: string
129
+
example: 0b537c7
113
130
114
131
PeersTable:
115
132
type: object
133
+
required:
134
+
- localNode
135
+
- nodes
116
136
properties:
117
137
localNode:
118
138
$ref: "#/components/schemas/Node"
@@ -123,6 +143,14 @@ components:
123
143
124
144
DebugInfo:
125
145
type: object
146
+
required:
147
+
- id
148
+
- addrs
149
+
- repo
150
+
- spr
151
+
- announceAddresses
152
+
- table
153
+
- codex
126
154
properties:
127
155
id:
128
156
$ref: "#/components/schemas/PeerId"
@@ -146,9 +174,12 @@ components:
146
174
147
175
SalesAvailability:
148
176
type: object
177
+
required:
178
+
- totalSize
179
+
- duration
180
+
- minPricePerBytePerSecond
181
+
- totalCollateral
149
182
properties:
150
-
id:
151
-
$ref: "#/components/schemas/Id"
152
183
totalSize:
153
184
type: integer
154
185
format: int64
@@ -161,28 +192,42 @@ components:
161
192
totalCollateral:
162
193
type: string
163
194
description: Total collateral (in amount of tokens) that can be used for matching requests
195
+
enabled:
196
+
type: boolean
197
+
description: Enable the ability to receive sales on this availability.
198
+
default: true
199
+
until:
200
+
type: integer
201
+
description: Specifies the latest timestamp, after which the availability will no longer host any slots. If set to 0, there will be no restrictions.
202
+
default: 0
164
203
165
204
SalesAvailabilityREAD:
205
+
required:
206
+
- id
207
+
- totalRemainingCollateral
166
208
allOf:
167
209
- $ref: "#/components/schemas/SalesAvailability"
168
210
- type: object
169
211
properties:
212
+
id:
213
+
$ref: "#/components/schemas/Id"
214
+
readonly: true
170
215
freeSize:
171
216
type: integer
172
217
format: int64
173
-
description: Unused size of availability's storage in bytes
174
-
175
-
SalesAvailabilityCREATE:
176
-
allOf:
177
-
- $ref: "#/components/schemas/SalesAvailability"
178
-
- required:
179
-
- totalSize
180
-
- minPricePerBytePerSecond
181
-
- totalCollateral
182
-
- duration
218
+
description: Unused size of availability's storage in bytes as decimal string
219
+
readOnly: true
220
+
totalRemainingCollateral:
221
+
type: string
222
+
description: Total collateral effective (in amount of tokens) that can be used for matching requests
223
+
readOnly: true
183
224
184
225
Slot:
185
226
type: object
227
+
required:
228
+
- id
229
+
- request
230
+
- slotIndex
186
231
properties:
187
232
id:
188
233
$ref: "#/components/schemas/SlotId"
@@ -195,9 +240,11 @@ components:
195
240
196
241
SlotAgent:
197
242
type: object
243
+
required:
244
+
- state
245
+
- requestId
246
+
- slotIndex
198
247
properties:
199
-
id:
200
-
$ref: "#/components/schemas/SlotId"
201
248
slotIndex:
202
249
type: integer
203
250
format: int64
@@ -228,6 +275,13 @@ components:
228
275
229
276
Reservation:
230
277
type: object
278
+
required:
279
+
- id
280
+
- availabilityId
281
+
- size
282
+
- requestId
283
+
- slotIndex
284
+
- validUntil
231
285
properties:
232
286
id:
233
287
$ref: "#/components/schemas/Id"
@@ -243,6 +297,9 @@ components:
243
297
type: integer
244
298
format: int64
245
299
description: Slot Index number
300
+
validUntil:
301
+
type: integer
302
+
description: Timestamp after which the reservation will no longer be valid.
246
303
247
304
StorageRequestCreation:
248
305
type: object
@@ -270,16 +327,21 @@ components:
270
327
default: 1
271
328
minimum: 1
272
329
collateralPerByte:
273
-
type: string
274
-
description: Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots
330
+
$ref: "#/components/schemas/CollateralPerByte"
275
331
expiry:
276
332
type: integer
277
333
format: int64
278
334
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.
279
335
StorageAsk:
280
336
type: object
281
337
required:
338
+
- slots
339
+
- slotSize
340
+
- duration
341
+
- proofProbability
282
342
- pricePerBytePerSecond
343
+
- collateralPerByte
344
+
- maxSlotLoss
283
345
properties:
284
346
slots:
285
347
description: Number of slots (eq. hosts) that the Request want to have the content spread over
@@ -288,20 +350,29 @@ components:
288
350
slotSize:
289
351
type: integer
290
352
format: int64
291
-
description: Amount of storage per slot (in bytes) as decimal string
0 commit comments