mirror of
https://github.com/logos-storage/logos-storage-py-api-client.git
synced 2026-01-04 06:23:08 +00:00
Generated API update (#1)
Co-authored-by: AuHau <6072250+AuHau@users.noreply.github.com>
This commit is contained in:
parent
b029e89b18
commit
3734425f52
46
codex.yaml
46
codex.yaml
@ -50,9 +50,9 @@ components:
|
||||
type: string
|
||||
description: Address of Ethereum address
|
||||
|
||||
Reward:
|
||||
PricePerBytePerSecond:
|
||||
type: string
|
||||
description: The maximum amount of tokens paid per second per slot to hosts the client is willing to pay
|
||||
description: The amount of tokens paid per byte per second per slot to hosts the client is willing to pay
|
||||
|
||||
Duration:
|
||||
type: string
|
||||
@ -138,6 +138,10 @@ components:
|
||||
description: Path of the data repository where all nodes data are stored
|
||||
spr:
|
||||
$ref: "#/components/schemas/SPR"
|
||||
announceAddresses:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/MultiAddress"
|
||||
table:
|
||||
$ref: "#/components/schemas/PeersTable"
|
||||
codex:
|
||||
@ -153,12 +157,12 @@ components:
|
||||
description: Total size of availability's storage in bytes as decimal string
|
||||
duration:
|
||||
$ref: "#/components/schemas/Duration"
|
||||
minPrice:
|
||||
minPricePerBytePerSecond:
|
||||
type: string
|
||||
description: Minimal price paid (in amount of tokens) for the whole hosted request's slot for the request's duration as decimal string
|
||||
maxCollateral:
|
||||
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
|
||||
totalCollateral:
|
||||
type: string
|
||||
description: Maximum collateral user is willing to pay per filled Slot (in amount of tokens) as decimal string
|
||||
description: Total collateral (in amount of tokens) that can be used for matching requests
|
||||
|
||||
SalesAvailabilityREAD:
|
||||
allOf:
|
||||
@ -174,8 +178,8 @@ components:
|
||||
- $ref: "#/components/schemas/SalesAvailability"
|
||||
- required:
|
||||
- totalSize
|
||||
- minPrice
|
||||
- maxCollateral
|
||||
- minPricePerBytePerSecond
|
||||
- totalCollateral
|
||||
- duration
|
||||
|
||||
Slot:
|
||||
@ -239,16 +243,16 @@ components:
|
||||
StorageRequestCreation:
|
||||
type: object
|
||||
required:
|
||||
- reward
|
||||
- pricePerBytePerSecond
|
||||
- duration
|
||||
- proofProbability
|
||||
- collateral
|
||||
- collateralPerByte
|
||||
- expiry
|
||||
properties:
|
||||
duration:
|
||||
$ref: "#/components/schemas/Duration"
|
||||
reward:
|
||||
$ref: "#/components/schemas/Reward"
|
||||
pricePerBytePerSecond:
|
||||
$ref: "#/components/schemas/PricePerBytePerSecond"
|
||||
proofProbability:
|
||||
$ref: "#/components/schemas/ProofProbability"
|
||||
nodes:
|
||||
@ -259,16 +263,16 @@ components:
|
||||
description: Additional number of nodes on top of the `nodes` property that can be lost before pronouncing the content lost
|
||||
type: integer
|
||||
default: 0
|
||||
collateral:
|
||||
collateralPerByte:
|
||||
type: string
|
||||
description: Number as decimal string that represents how much collateral is asked from hosts that wants to fill a slots
|
||||
description: Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots
|
||||
expiry:
|
||||
type: string
|
||||
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.
|
||||
StorageAsk:
|
||||
type: object
|
||||
required:
|
||||
- reward
|
||||
- pricePerBytePerSecond
|
||||
properties:
|
||||
slots:
|
||||
description: Number of slots (eq. hosts) that the Request want to have the content spread over
|
||||
@ -280,8 +284,8 @@ components:
|
||||
$ref: "#/components/schemas/Duration"
|
||||
proofProbability:
|
||||
$ref: "#/components/schemas/ProofProbability"
|
||||
reward:
|
||||
$ref: "#/components/schemas/Reward"
|
||||
pricePerBytePerSecond:
|
||||
$ref: "#/components/schemas/PricePerBytePerSecond"
|
||||
maxSlotLoss:
|
||||
type: integer
|
||||
description: Max slots that can be lost without data considered to be lost
|
||||
@ -367,12 +371,6 @@ components:
|
||||
nullable: true
|
||||
description: "The original mimetype of the uploaded content (optional)"
|
||||
example: image/png
|
||||
uploadedAt:
|
||||
type: integer
|
||||
format: int64
|
||||
nullable: true
|
||||
description: "The UTC upload timestamp in seconds"
|
||||
example: 1729244192
|
||||
|
||||
Space:
|
||||
type: object
|
||||
@ -480,7 +478,7 @@ paths:
|
||||
description: The content disposition used to send the filename.
|
||||
schema:
|
||||
type: string
|
||||
example: "attachment; filename=\"codex.png\""
|
||||
example: 'attachment; filename="codex.png"'
|
||||
requestBody:
|
||||
content:
|
||||
application/octet-stream:
|
||||
|
||||
@ -32,9 +32,10 @@ class DebugInfo(BaseModel):
|
||||
addrs: Optional[List[StrictStr]] = None
|
||||
repo: Optional[StrictStr] = Field(default=None, description="Path of the data repository where all nodes data are stored")
|
||||
spr: Optional[StrictStr] = Field(default=None, description="Signed Peer Record (libp2p)")
|
||||
announce_addresses: Optional[List[StrictStr]] = Field(default=None, alias="announceAddresses")
|
||||
table: Optional[PeersTable] = None
|
||||
codex: Optional[CodexVersion] = None
|
||||
__properties: ClassVar[List[str]] = ["id", "addrs", "repo", "spr", "table", "codex"]
|
||||
__properties: ClassVar[List[str]] = ["id", "addrs", "repo", "spr", "announceAddresses", "table", "codex"]
|
||||
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@ -97,6 +98,7 @@ class DebugInfo(BaseModel):
|
||||
"addrs": obj.get("addrs"),
|
||||
"repo": obj.get("repo"),
|
||||
"spr": obj.get("spr"),
|
||||
"announceAddresses": obj.get("announceAddresses"),
|
||||
"table": PeersTable.from_dict(obj["table"]) if obj.get("table") is not None else None,
|
||||
"codex": CodexVersion.from_dict(obj["codex"]) if obj.get("codex") is not None else None
|
||||
})
|
||||
|
||||
@ -32,8 +32,7 @@ class ManifestItem(BaseModel):
|
||||
protected: Optional[StrictBool] = Field(default=None, description="Indicates if content is protected by erasure-coding")
|
||||
filename: Optional[StrictStr] = Field(default=None, description="The original name of the uploaded content (optional)")
|
||||
mimetype: Optional[StrictStr] = Field(default=None, description="The original mimetype of the uploaded content (optional)")
|
||||
uploaded_at: Optional[StrictInt] = Field(default=None, description="The UTC upload timestamp in seconds", alias="uploadedAt")
|
||||
__properties: ClassVar[List[str]] = ["treeCid", "datasetSize", "blockSize", "protected", "filename", "mimetype", "uploadedAt"]
|
||||
__properties: ClassVar[List[str]] = ["treeCid", "datasetSize", "blockSize", "protected", "filename", "mimetype"]
|
||||
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@ -84,11 +83,6 @@ class ManifestItem(BaseModel):
|
||||
if self.mimetype is None and "mimetype" in self.model_fields_set:
|
||||
_dict['mimetype'] = None
|
||||
|
||||
# set to None if uploaded_at (nullable) is None
|
||||
# and model_fields_set contains the field
|
||||
if self.uploaded_at is None and "uploaded_at" in self.model_fields_set:
|
||||
_dict['uploadedAt'] = None
|
||||
|
||||
return _dict
|
||||
|
||||
@classmethod
|
||||
@ -106,8 +100,7 @@ class ManifestItem(BaseModel):
|
||||
"blockSize": obj.get("blockSize"),
|
||||
"protected": obj.get("protected"),
|
||||
"filename": obj.get("filename"),
|
||||
"mimetype": obj.get("mimetype"),
|
||||
"uploadedAt": obj.get("uploadedAt")
|
||||
"mimetype": obj.get("mimetype")
|
||||
})
|
||||
return _obj
|
||||
|
||||
|
||||
@ -30,9 +30,9 @@ class SalesAvailability(BaseModel):
|
||||
id: Optional[Annotated[str, Field(min_length=66, strict=True, max_length=66)]] = Field(default=None, description="32bits identifier encoded in hex-decimal string.")
|
||||
total_size: Optional[StrictStr] = Field(default=None, description="Total size of availability's storage in bytes as decimal string", alias="totalSize")
|
||||
duration: Optional[StrictStr] = Field(default=None, description="The duration of the request in seconds as decimal string")
|
||||
min_price: Optional[StrictStr] = Field(default=None, description="Minimal price paid (in amount of tokens) for the whole hosted request's slot for the request's duration as decimal string", alias="minPrice")
|
||||
max_collateral: Optional[StrictStr] = Field(default=None, description="Maximum collateral user is willing to pay per filled Slot (in amount of tokens) as decimal string", alias="maxCollateral")
|
||||
__properties: ClassVar[List[str]] = ["id", "totalSize", "duration", "minPrice", "maxCollateral"]
|
||||
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")
|
||||
total_collateral: Optional[StrictStr] = Field(default=None, description="Total collateral (in amount of tokens) that can be used for matching requests", alias="totalCollateral")
|
||||
__properties: ClassVar[List[str]] = ["id", "totalSize", "duration", "minPricePerBytePerSecond", "totalCollateral"]
|
||||
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@ -88,8 +88,8 @@ class SalesAvailability(BaseModel):
|
||||
"id": obj.get("id"),
|
||||
"totalSize": obj.get("totalSize"),
|
||||
"duration": obj.get("duration"),
|
||||
"minPrice": obj.get("minPrice"),
|
||||
"maxCollateral": obj.get("maxCollateral")
|
||||
"minPricePerBytePerSecond": obj.get("minPricePerBytePerSecond"),
|
||||
"totalCollateral": obj.get("totalCollateral")
|
||||
})
|
||||
return _obj
|
||||
|
||||
|
||||
@ -30,9 +30,9 @@ class SalesAvailabilityCREATE(BaseModel):
|
||||
id: Optional[Annotated[str, Field(min_length=66, strict=True, max_length=66)]] = Field(default=None, description="32bits identifier encoded in hex-decimal string.")
|
||||
total_size: StrictStr = Field(description="Total size of availability's storage in bytes as decimal string", alias="totalSize")
|
||||
duration: StrictStr = Field(description="The duration of the request in seconds as decimal string")
|
||||
min_price: StrictStr = Field(description="Minimal price paid (in amount of tokens) for the whole hosted request's slot for the request's duration as decimal string", alias="minPrice")
|
||||
max_collateral: StrictStr = Field(description="Maximum collateral user is willing to pay per filled Slot (in amount of tokens) as decimal string", alias="maxCollateral")
|
||||
__properties: ClassVar[List[str]] = ["id", "totalSize", "duration", "minPrice", "maxCollateral"]
|
||||
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")
|
||||
total_collateral: StrictStr = Field(description="Total collateral (in amount of tokens) that can be used for matching requests", alias="totalCollateral")
|
||||
__properties: ClassVar[List[str]] = ["id", "totalSize", "duration", "minPricePerBytePerSecond", "totalCollateral"]
|
||||
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@ -88,8 +88,8 @@ class SalesAvailabilityCREATE(BaseModel):
|
||||
"id": obj.get("id"),
|
||||
"totalSize": obj.get("totalSize"),
|
||||
"duration": obj.get("duration"),
|
||||
"minPrice": obj.get("minPrice"),
|
||||
"maxCollateral": obj.get("maxCollateral")
|
||||
"minPricePerBytePerSecond": obj.get("minPricePerBytePerSecond"),
|
||||
"totalCollateral": obj.get("totalCollateral")
|
||||
})
|
||||
return _obj
|
||||
|
||||
|
||||
@ -30,10 +30,10 @@ class SalesAvailabilityREAD(BaseModel):
|
||||
id: Optional[Annotated[str, Field(min_length=66, strict=True, max_length=66)]] = Field(default=None, description="32bits identifier encoded in hex-decimal string.")
|
||||
total_size: Optional[StrictStr] = Field(default=None, description="Total size of availability's storage in bytes as decimal string", alias="totalSize")
|
||||
duration: Optional[StrictStr] = Field(default=None, description="The duration of the request in seconds as decimal string")
|
||||
min_price: Optional[StrictStr] = Field(default=None, description="Minimal price paid (in amount of tokens) for the whole hosted request's slot for the request's duration as decimal string", alias="minPrice")
|
||||
max_collateral: Optional[StrictStr] = Field(default=None, description="Maximum collateral user is willing to pay per filled Slot (in amount of tokens) as decimal string", alias="maxCollateral")
|
||||
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")
|
||||
total_collateral: Optional[StrictStr] = Field(default=None, description="Total collateral (in amount of tokens) that can be used for matching requests", alias="totalCollateral")
|
||||
free_size: Optional[StrictStr] = Field(default=None, description="Unused size of availability's storage in bytes as decimal string", alias="freeSize")
|
||||
__properties: ClassVar[List[str]] = ["id", "totalSize", "duration", "minPrice", "maxCollateral", "freeSize"]
|
||||
__properties: ClassVar[List[str]] = ["id", "totalSize", "duration", "minPricePerBytePerSecond", "totalCollateral", "freeSize"]
|
||||
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@ -89,8 +89,8 @@ class SalesAvailabilityREAD(BaseModel):
|
||||
"id": obj.get("id"),
|
||||
"totalSize": obj.get("totalSize"),
|
||||
"duration": obj.get("duration"),
|
||||
"minPrice": obj.get("minPrice"),
|
||||
"maxCollateral": obj.get("maxCollateral"),
|
||||
"minPricePerBytePerSecond": obj.get("minPricePerBytePerSecond"),
|
||||
"totalCollateral": obj.get("totalCollateral"),
|
||||
"freeSize": obj.get("freeSize")
|
||||
})
|
||||
return _obj
|
||||
|
||||
@ -30,9 +30,9 @@ class StorageAsk(BaseModel):
|
||||
slot_size: Optional[StrictStr] = Field(default=None, description="Amount of storage per slot (in bytes) as decimal string", alias="slotSize")
|
||||
duration: Optional[StrictStr] = Field(default=None, description="The duration of the request in seconds as decimal string")
|
||||
proof_probability: Optional[StrictStr] = Field(default=None, description="How often storage proofs are required as decimal string", alias="proofProbability")
|
||||
reward: StrictStr = Field(description="The maximum amount of tokens paid per second per slot to hosts the client is willing to pay")
|
||||
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")
|
||||
max_slot_loss: Optional[StrictInt] = Field(default=None, description="Max slots that can be lost without data considered to be lost", alias="maxSlotLoss")
|
||||
__properties: ClassVar[List[str]] = ["slots", "slotSize", "duration", "proofProbability", "reward", "maxSlotLoss"]
|
||||
__properties: ClassVar[List[str]] = ["slots", "slotSize", "duration", "proofProbability", "pricePerBytePerSecond", "maxSlotLoss"]
|
||||
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@ -89,7 +89,7 @@ class StorageAsk(BaseModel):
|
||||
"slotSize": obj.get("slotSize"),
|
||||
"duration": obj.get("duration"),
|
||||
"proofProbability": obj.get("proofProbability"),
|
||||
"reward": obj.get("reward"),
|
||||
"pricePerBytePerSecond": obj.get("pricePerBytePerSecond"),
|
||||
"maxSlotLoss": obj.get("maxSlotLoss")
|
||||
})
|
||||
return _obj
|
||||
|
||||
@ -27,13 +27,13 @@ class StorageRequestCreation(BaseModel):
|
||||
StorageRequestCreation
|
||||
""" # noqa: E501
|
||||
duration: StrictStr = Field(description="The duration of the request in seconds as decimal string")
|
||||
reward: StrictStr = Field(description="The maximum amount of tokens paid per second per slot to hosts the client is willing to pay")
|
||||
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")
|
||||
proof_probability: StrictStr = Field(description="How often storage proofs are required as decimal string", alias="proofProbability")
|
||||
nodes: Optional[StrictInt] = Field(default=1, description="Minimal number of nodes the content should be stored on")
|
||||
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")
|
||||
collateral: StrictStr = Field(description="Number as decimal string that represents how much collateral is asked from hosts that wants to fill a slots")
|
||||
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")
|
||||
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.")
|
||||
__properties: ClassVar[List[str]] = ["duration", "reward", "proofProbability", "nodes", "tolerance", "collateral", "expiry"]
|
||||
__properties: ClassVar[List[str]] = ["duration", "pricePerBytePerSecond", "proofProbability", "nodes", "tolerance", "collateralPerByte", "expiry"]
|
||||
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@ -87,11 +87,11 @@ class StorageRequestCreation(BaseModel):
|
||||
|
||||
_obj = cls.model_validate({
|
||||
"duration": obj.get("duration"),
|
||||
"reward": obj.get("reward"),
|
||||
"pricePerBytePerSecond": obj.get("pricePerBytePerSecond"),
|
||||
"proofProbability": obj.get("proofProbability"),
|
||||
"nodes": obj.get("nodes") if obj.get("nodes") is not None else 1,
|
||||
"tolerance": obj.get("tolerance") if obj.get("tolerance") is not None else 0,
|
||||
"collateral": obj.get("collateral"),
|
||||
"collateralPerByte": obj.get("collateralPerByte"),
|
||||
"expiry": obj.get("expiry")
|
||||
})
|
||||
return _obj
|
||||
|
||||
@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
||||
**addrs** | **List[str]** | | [optional]
|
||||
**repo** | **str** | Path of the data repository where all nodes data are stored | [optional]
|
||||
**spr** | **str** | Signed Peer Record (libp2p) | [optional]
|
||||
**announce_addresses** | **List[str]** | | [optional]
|
||||
**table** | [**PeersTable**](PeersTable.md) | | [optional]
|
||||
**codex** | [**CodexVersion**](CodexVersion.md) | | [optional]
|
||||
|
||||
|
||||
@ -11,7 +11,6 @@ Name | Type | Description | Notes
|
||||
**protected** | **bool** | Indicates if content is protected by erasure-coding | [optional]
|
||||
**filename** | **str** | The original name of the uploaded content (optional) | [optional]
|
||||
**mimetype** | **str** | The original mimetype of the uploaded content (optional) | [optional]
|
||||
**uploaded_at** | **int** | The UTC upload timestamp in seconds | [optional]
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@ -8,8 +8,8 @@ Name | Type | Description | Notes
|
||||
**id** | **str** | 32bits identifier encoded in hex-decimal string. | [optional]
|
||||
**total_size** | **str** | Total size of availability's storage in bytes as decimal string | [optional]
|
||||
**duration** | **str** | The duration of the request in seconds as decimal string | [optional]
|
||||
**min_price** | **str** | Minimal price paid (in amount of tokens) for the whole hosted request's slot for the request's duration as decimal string | [optional]
|
||||
**max_collateral** | **str** | Maximum collateral user is willing to pay per filled Slot (in amount of tokens) as decimal string | [optional]
|
||||
**min_price_per_byte_per_second** | **str** | 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 | [optional]
|
||||
**total_collateral** | **str** | Total collateral (in amount of tokens) that can be used for matching requests | [optional]
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@ -8,8 +8,8 @@ Name | Type | Description | Notes
|
||||
**id** | **str** | 32bits identifier encoded in hex-decimal string. | [optional]
|
||||
**total_size** | **str** | Total size of availability's storage in bytes as decimal string |
|
||||
**duration** | **str** | The duration of the request in seconds as decimal string |
|
||||
**min_price** | **str** | Minimal price paid (in amount of tokens) for the whole hosted request's slot for the request's duration as decimal string |
|
||||
**max_collateral** | **str** | Maximum collateral user is willing to pay per filled Slot (in amount of tokens) as decimal string |
|
||||
**min_price_per_byte_per_second** | **str** | 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 |
|
||||
**total_collateral** | **str** | Total collateral (in amount of tokens) that can be used for matching requests |
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@ -8,8 +8,8 @@ Name | Type | Description | Notes
|
||||
**id** | **str** | 32bits identifier encoded in hex-decimal string. | [optional]
|
||||
**total_size** | **str** | Total size of availability's storage in bytes as decimal string | [optional]
|
||||
**duration** | **str** | The duration of the request in seconds as decimal string | [optional]
|
||||
**min_price** | **str** | Minimal price paid (in amount of tokens) for the whole hosted request's slot for the request's duration as decimal string | [optional]
|
||||
**max_collateral** | **str** | Maximum collateral user is willing to pay per filled Slot (in amount of tokens) as decimal string | [optional]
|
||||
**min_price_per_byte_per_second** | **str** | 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 | [optional]
|
||||
**total_collateral** | **str** | Total collateral (in amount of tokens) that can be used for matching requests | [optional]
|
||||
**free_size** | **str** | Unused size of availability's storage in bytes as decimal string | [optional]
|
||||
|
||||
## Example
|
||||
|
||||
@ -9,7 +9,7 @@ Name | Type | Description | Notes
|
||||
**slot_size** | **str** | Amount of storage per slot (in bytes) as decimal string | [optional]
|
||||
**duration** | **str** | The duration of the request in seconds as decimal string | [optional]
|
||||
**proof_probability** | **str** | How often storage proofs are required as decimal string | [optional]
|
||||
**reward** | **str** | The maximum amount of tokens paid per second per slot to hosts the client is willing to pay |
|
||||
**price_per_byte_per_second** | **str** | The amount of tokens paid per byte per second per slot to hosts the client is willing to pay |
|
||||
**max_slot_loss** | **int** | Max slots that can be lost without data considered to be lost | [optional]
|
||||
|
||||
## Example
|
||||
|
||||
@ -6,11 +6,11 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**duration** | **str** | The duration of the request in seconds as decimal string |
|
||||
**reward** | **str** | The maximum amount of tokens paid per second per slot to hosts the client is willing to pay |
|
||||
**price_per_byte_per_second** | **str** | The amount of tokens paid per byte per second per slot to hosts the client is willing to pay |
|
||||
**proof_probability** | **str** | How often storage proofs are required as decimal string |
|
||||
**nodes** | **int** | Minimal number of nodes the content should be stored on | [optional] [default to 1]
|
||||
**tolerance** | **int** | Additional number of nodes on top of the `nodes` property that can be lost before pronouncing the content lost | [optional] [default to 0]
|
||||
**collateral** | **str** | Number as decimal string that represents how much collateral is asked from hosts that wants to fill a slots |
|
||||
**collateral_per_byte** | **str** | Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots |
|
||||
**expiry** | **str** | 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. |
|
||||
|
||||
## Example
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user