Skip to content

Release/v0.2.2#41

Merged
sporicle merged 4 commits intomainfrom
release/v0.2.2
Jan 27, 2026
Merged

Release/v0.2.2#41
sporicle merged 4 commits intomainfrom
release/v0.2.2

Conversation

@sporicle
Copy link
Copy Markdown
Contributor

@sporicle sporicle commented Jan 27, 2026

Summary by CodeRabbit

  • Chores

    • Released version 0.2.2 and synchronized version bumps across the workspace and package metadata.
    • Updated internal package dependency versions to match the new release.
  • Refactor

    • Internal address-derivation logic reorganized to use a consistent program identifier for clarity (no behavioral changes).
  • Style

    • Minor formatting tweaks to logging output (no functional impact).

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 27, 2026

Walkthrough

This pull request bumps the workspace version from 0.2.1 to 0.2.2 across npm and Cargo package configurations, updates all workspace dependency versions accordingly, reformats a println! in the api SDK, and refactors sdk/src/pda.rs to use a SolanaPubkey type alias and a centralized VRF_PROGRAM_ID constant instead of inline id() calls.

Changes

Cohort / File(s) Summary
Version Bump
\.github/packages/npm-package/package.json.tmpl`, `Cargo.toml``
Increment version from 0.2.1 to 0.2.2 in npm template and workspace Cargo.toml; update internal workspace dependency versions (ephemeral-vrf, ephemeral-vrf-api, ephemeral-vrf-sdk-vrf-macro) to 0.2.2.
Formatting
\api/src/sdk.rs``
Reformat a println! in initialize_oracle_queue from a single-line to multi-line call; no behavioral change.
PDA Refactoring
\sdk/src/pda.rs``
Add SolanaPubkey alias; replace Pubkey::find_program_address with SolanaPubkey::find_program_address; replace crate::id() program-id usage with consts::VRF_PROGRAM_ID across PDA helper functions.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • fix: support for anchor 0.32.1 #31: Introduces/exported unified Pubkey alias and adjusts id()/Pubkey handling, which aligns with SolanaPubkey and VRF_PROGRAM_ID changes in sdk/src/pda.rs.
🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 27.27% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Release/v0.2.2' clearly indicates a release version bump, which aligns with the primary changes: version increments across package.json.tmpl, Cargo.toml, and related dependencies, plus supporting code adjustments.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch release/v0.2.2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@api/src/sdk.rs`:
- Around line 77-80: The unconditional println! in initialize_oracle_queue that
prints oracle_queue_pda(&identity, index).0.to_string() should be removed or
converted to a proper log call; locate the println! in function
initialize_oracle_queue (and any direct use of oracle_queue_pda(&identity,
index) there) and either delete the println! or replace it with a log::debug!
(or similar) call so output is controllable by the logging framework rather than
always writing to stdout.

Comment on lines +77 to +80
println!(
"Queue: {:?}",
oracle_queue_pda(&identity, index).0.to_string()
);
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.

🧹 Nitpick | 🔵 Trivial

Consider removing or converting this debug println! to proper logging.

This unconditional println! will output to stdout every time initialize_oracle_queue is called, which may pollute output in production SDK usage or CLI tools. Consider either:

  1. Removing it entirely if it was for debugging purposes
  2. Using a proper logging framework (e.g., log::debug!) so users can control verbosity
♻️ Suggested fix using log crate
-    println!(
-        "Queue: {:?}",
-        oracle_queue_pda(&identity, index).0.to_string()
-    );
+    log::debug!(
+        "Queue: {:?}",
+        oracle_queue_pda(&identity, index).0.to_string()
+    );

Or remove entirely if not needed:

-    println!(
-        "Queue: {:?}",
-        oracle_queue_pda(&identity, index).0.to_string()
-    );
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
println!(
"Queue: {:?}",
oracle_queue_pda(&identity, index).0.to_string()
);
🤖 Prompt for AI Agents
In `@api/src/sdk.rs` around lines 77 - 80, The unconditional println! in
initialize_oracle_queue that prints oracle_queue_pda(&identity,
index).0.to_string() should be removed or converted to a proper log call; locate
the println! in function initialize_oracle_queue (and any direct use of
oracle_queue_pda(&identity, index) there) and either delete the println! or
replace it with a log::debug! (or similar) call so output is controllable by the
logging framework rather than always writing to stdout.

@sporicle sporicle merged commit 8d06b23 into main Jan 27, 2026
10 of 11 checks passed
This was referenced Jan 27, 2026
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.

1 participant