Skip to content

feat: add spn-pricing crate with parser and conversion math#225

Merged
Farhad-Shabani merged 3 commits into
mainfrom
farhad/spn-pricing-from-network
May 29, 2026
Merged

feat: add spn-pricing crate with parser and conversion math#225
Farhad-Shabani merged 3 commits into
mainfrom
farhad/spn-pricing-from-network

Conversation

@Farhad-Shabani
Copy link
Copy Markdown
Collaborator

Adds spn-pricing crate to the workspace at crates/network/pricing/, containing the public-facing protocol math: parse_usd_micros (interprets GetProvePrice wire response) and compute_max_price_per_pgu_wei (USD target → PROVE wei).

Comment thread crates/network/pricing/Cargo.toml Outdated
categories = { workspace = true }

[dependencies]
alloy = { workspace = true }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This crate only uses U256, so can depend on alloy-primitives instead of the full alloy crate.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Farhad-Shabani Farhad-Shabani merged commit fd2f5dd into main May 29, 2026
4 checks passed
@Farhad-Shabani Farhad-Shabani deleted the farhad/spn-pricing-from-network branch May 29, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants