docs(fireblocks): correct Python SDK shape; EVM CONTRACT_CALL validated live#5
Conversation
…idated live Validated the reference against Fireblocks Sandbox (Sepolia / ETH_TEST5): an unsigned approve/createSwap from /v1 signs, broadcasts, and lands on-chain (allowance set from the vault). Fixes found + applied: - Python fireblocks-sdk uses top-level string constants (VAULT_ACCOUNT, ONE_TIME_ADDRESS, CONTRACT_CALL) and create_transaction(tx_type=...), NOT PeerType/operation= — the old sign_evm.py would have ImportError'd/TypeError'd. Also load the RSA key from FIREBLOCKS_SECRET_KEY_PATH + api_base_url for sandbox. - README: environment block, external-funding steps, the Python-vs-JS SDK shape note, and that Fireblocks Sandbox has Sepolia + BTC signet but not TRON Nile. - The JS sign_evm.ts shape matches the current fireblocks-sdk (verified) — unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 43 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe Fireblocks EVM examples now use the current Python SDK contract-call API, updated environment configuration, and peer-path constructors. README and TypeScript documentation state that the Sepolia sandbox flow was live-tested and confirmed on-chain. ChangesFireblocks EVM integration
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@examples/fireblocks/README.md`:
- Around line 7-10: Update the Fireblocks EVM example flow so it waits for the
approval transaction to reach CONFIRMING or COMPLETED, or for its EVM receipt to
confirm, before returning the transaction hash and submitting createSwap. Locate
the approve/createSwap execution logic and replace any txHash-only completion
check with polling or receipt validation while preserving the existing
transaction submission behavior.
- Around line 12-14: Update the README heading under the sandbox section so
“Environment” uses the appropriate sequential heading level, and annotate its
fenced environment example with the text language tag. Preserve the existing
example contents and surrounding Markdown structure.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 1b0d671b-3ebd-4ef1-894e-78cff569d076
📒 Files selected for processing (3)
examples/fireblocks/README.mdexamples/fireblocks/sign_evm.pyexamples/fireblocks/sign_evm.ts
…ME heading/fence
Per review:
- sign_evm.{py,ts}: return the hash only once the tx is CONFIRMING/COMPLETED, not on the
bare presence of a txHash — so createSwap isn't submitted before the approve is mined
(its transferFrom needs the on-chain allowance).
- README: 'Environment' heading level ###→## (sequential after the H1); add a 'bash'
language tag to the env fenced block.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Both findings verified against current code and applied (commit 2445b7a):
|
Validated the Fireblocks signing reference against Fireblocks Sandbox (Sepolia /
ETH_TEST5) — an unsignedapprove/createSwapbuilt by/v1signs, broadcasts, and lands on-chain (verified the vault→factory USDT allowance was set). Corrections:sign_evm.pyused the JS-stylePeerType/operation=, which don't exist in the Pythonfireblocks-sdk(wouldImportError/TypeError). Fixed to the Python shape: top-levelVAULT_ACCOUNT/ONE_TIME_ADDRESS/CONTRACT_CALLconstants +create_transaction(tx_type=…), and load the RSA key fromFIREBLOCKS_SECRET_KEY_PATHwithapi_base_urlfor sandbox.CONTRACT_CALLneeds only native gas + the on-chain ERC-20 balance — no custom-asset registration), the Python-vs-JS SDK-shape note, and that the sandbox has Sepolia + BTC signet but not TRON Nile (so TRON stays a documented reference).sign_evm.ts: the JSfireblocks-sdkstill exportsPeerType/TransactionOperation/TransactionStatus(verified) — code unchanged, docstring updated.🤖 Generated with Claude Code
Summary by CodeRabbit