Skip to content

Commit

Permalink
fix executor pricing & refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Aug 19, 2024
1 parent 7933ee4 commit 3fdb79c
Show file tree
Hide file tree
Showing 8 changed files with 504 additions and 577 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ bootloader*.json
*.swp
*.swo
.env
.resources

# IDE-specific
.vscode/
Expand Down
2 changes: 1 addition & 1 deletion crates/executor/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl Executor {
data: serde_json::to_vec(&MarketMessage::JobBid(JobBid {
identity,
job_key,
price: (runner_scheduler.len() * prover_scheduler.len()) as u64,
price: (runner_scheduler.len() + 2 * prover_scheduler.len()) as u64,
}))?
})
.await?
Expand Down
6 changes: 4 additions & 2 deletions crates/prover/src/stone_prover/types/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ pub enum Hash {
Pedersen,
Poseidon3,
Keccak256,
Blake256,
Keccak256Masked160Lsb,
Blake256Masked160Lsb,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
Expand Down Expand Up @@ -58,9 +60,9 @@ impl Default for Params {
Self {
field: Field::PrimeField0,
channel_hash: Hash::Poseidon3,
commitment_hash: Hash::Keccak256Masked160Lsb,
commitment_hash: Hash::Blake256Masked160Lsb,
n_verifier_friendly_commitment_layers: 0,
pow_hash: Hash::Keccak256,
pow_hash: Hash::Blake256,
statement: Statement::default(),
stark: Stark::default(),
use_extension_field: false,
Expand Down
Binary file removed dashboard/cairo_pie_large.zip
Binary file not shown.
Binary file removed dashboard/cairo_pie_medium.zip
Binary file not shown.
Binary file removed dashboard/cairo_pie_small.zip
Binary file not shown.
1,048 changes: 486 additions & 562 deletions dashboard/package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
"react-dom": "^18",
"react-dropzone": "^14.2.3",
"zod": "^3.23.8",
"swiftness-dex-blake2s": "^0.0.7",
"swiftness-dex-keccak": "^0.0.7",
"swiftness-recursive-blake2s": "^0.0.7",
"swiftness-recursive-keccak": "^0.0.7",
"swiftness-recursive-with-poseidon-blake2s": "^0.0.7",
"swiftness-recursive-with-poseidon-keccak": "^0.0.7",
"swiftness-small-blake2s": "^0.0.7",
"swiftness-small-keccak": "^0.0.7",
"swiftness-starknet-blake2s": "^0.0.7",
"swiftness-starknet-keccak": "^0.0.7",
"swiftness-starknet-with-keccak-blake2s": "^0.0.7",
"swiftness-starknet-with-keccak-keccak": "^0.0.7"
"swiftness-dex-blake2s": "^0.0.8",
"swiftness-dex-keccak": "^0.0.8",
"swiftness-recursive-blake2s": "^0.0.8",
"swiftness-recursive-keccak": "^0.0.8",
"swiftness-recursive-with-poseidon-blake2s": "^0.0.8",
"swiftness-recursive-with-poseidon-keccak": "^0.0.8",
"swiftness-small-blake2s": "^0.0.8",
"swiftness-small-keccak": "^0.0.8",
"swiftness-starknet-blake2s": "^0.0.8",
"swiftness-starknet-keccak": "^0.0.8",
"swiftness-starknet-with-keccak-blake2s": "^0.0.8",
"swiftness-starknet-with-keccak-keccak": "^0.0.8"
},
"devDependencies": {
"@types/node": "^20",
Expand Down

0 comments on commit 3fdb79c

Please sign in to comment.