Merge branch 'master' into feature/ceremony-files

This commit is contained in:
benbierens 2024-04-01 08:04:06 +02:00
commit 644c83bc6e
No known key found for this signature in database
GPG Key ID: 877D2C2E09A22F3A
2 changed files with 17 additions and 17 deletions

View File

@ -69,7 +69,7 @@ components:
type: object type: object
properties: properties:
totalChunks: totalChunks:
type: number type: integer
PoRParameters: PoRParameters:
description: Parameters for Proof of Retrievability description: Parameters for Proof of Retrievability
@ -186,12 +186,12 @@ components:
proofProbability: proofProbability:
$ref: "#/components/schemas/ProofProbability" $ref: "#/components/schemas/ProofProbability"
nodes: nodes:
type: number
description: Minimal number of nodes the content should be stored on description: Minimal number of nodes the content should be stored on
type: integer
default: 1 default: 1
tolerance: tolerance:
type: number
description: Additional number of nodes on top of the `nodes` property that can be lost before pronouncing the content lost description: Additional number of nodes on top of the `nodes` property that can be lost before pronouncing the content lost
type: integer
default: 0 default: 0
collateral: collateral:
type: string type: string
@ -206,8 +206,8 @@ components:
- reward - reward
properties: properties:
slots: slots:
type: number
description: Number of slots (eq. hosts) that the Request want to have the content spread over description: Number of slots (eq. hosts) that the Request want to have the content spread over
type: integer
slotSize: slotSize:
type: string type: string
description: Amount of storage per slot (in bytes) as decimal string description: Amount of storage per slot (in bytes) as decimal string
@ -218,7 +218,7 @@ components:
reward: reward:
$ref: "#/components/schemas/Reward" $ref: "#/components/schemas/Reward"
maxSlotLoss: maxSlotLoss:
type: number type: integer
description: Max slots that can be lost without data considered to be lost description: Max slots that can be lost without data considered to be lost
StorageRequest: StorageRequest:
@ -274,10 +274,10 @@ components:
$ref: "#/components/schemas/Cid" $ref: "#/components/schemas/Cid"
description: "Root hash of the content" description: "Root hash of the content"
originalBytes: originalBytes:
type: number type: integer
description: "Length of original content in bytes" description: "Length of original content in bytes"
blockSize: blockSize:
type: number type: integer
description: "Size of blocks" description: "Size of blocks"
protected: protected:
type: boolean type: boolean
@ -287,16 +287,16 @@ components:
type: object type: object
properties: properties:
totalBlocks: totalBlocks:
type: number
description: "Number of blocks stored by the node" description: "Number of blocks stored by the node"
type: integer
quotaMaxBytes: quotaMaxBytes:
type: number type: integer
description: "Maximum storage space used by the node" description: "Maximum storage space used by the node"
quotaUsedBytes: quotaUsedBytes:
type: number type: integer
description: "Amount of storage space currently in use" description: "Amount of storage space currently in use"
quotaReservedBytes: quotaReservedBytes:
type: number type: integer
description: "Amount of storage space reserved" description: "Amount of storage space reserved"
servers: servers:

View File

@ -40,9 +40,9 @@ template twonodessuite*(name: string, debug1, debug2: string, body) =
"--listen-addrs=/ip4/127.0.0.1/tcp/0", "--listen-addrs=/ip4/127.0.0.1/tcp/0",
"persistence", "persistence",
"prover", "prover",
"--circom-r1cs=vendor/codex-contracts-eth/verifier/networks/hardhat/proof_main.r1cs", "--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs",
"--circom-wasm=vendor/codex-contracts-eth/verifier/networks/hardhat/proof_main.wasm", "--circom-wasm=tests/circuits/fixtures/proof_main.wasm",
"--circom-zkey=vendor/codex-contracts-eth/verifier/networks/hardhat/proof_main.zkey", "--circom-zkey=tests/circuits/fixtures/proof_main.zkey",
"--eth-account=" & $account1 "--eth-account=" & $account1
] ]
@ -64,9 +64,9 @@ template twonodessuite*(name: string, debug1, debug2: string, body) =
"--bootstrap-node=" & bootstrap, "--bootstrap-node=" & bootstrap,
"persistence", "persistence",
"prover", "prover",
"--circom-r1cs=vendor/codex-contracts-eth/verifier/networks/hardhat/proof_main.r1cs", "--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs",
"--circom-wasm=vendor/codex-contracts-eth/verifier/networks/hardhat/proof_main.wasm", "--circom-wasm=tests/circuits/fixtures/proof_main.wasm",
"--circom-zkey=vendor/codex-contracts-eth/verifier/networks/hardhat/proof_main.zkey", "--circom-zkey=tests/circuits/fixtures/proof_main.zkey",
"--eth-account=" & $account2 "--eth-account=" & $account2
] ]