Uh oh!
There was an error while loading. Please reload this page.
Conversation
📝 WalkthroughWalkthroughAdds structured chain error parsing and tests, a PlatformAdapter and AuthContextV2 with multi-method broadcast fallback, many operation builders, new React Query mutation hooks using the fallback and adapter side-effects, plus re-exports and a changelog/version bump. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Hook as useBroadcastMutation
participant Fallback as broadcastWithFallback
participant Adapter as PlatformAdapter
participant Method as AuthMethod
participant Chain as Blockchain
Client->>Hook: request broadcast(ops, auth:AuthContextV2, authority)
Hook->>Fallback: broadcastWithFallback(ops, auth, authority)
Fallback->>Adapter: adapter? / adapter.broadcast methods
loop attempt methods in fallbackChain
Fallback->>Method: try method (key / hiveauth / hivesigner / keychain / custom)
Method->>Chain: send transaction
alt success
Chain-->>Method: tx result
Method-->>Adapter: return result
Adapter-->>Fallback: success -> stop attempts
else failure
Method-->>Adapter: error
Adapter-->>Fallback: error -> check shouldTriggerAuthFallback
alt continue
Fallback->>Method: try next method
else all failed
Fallback-->>Hook: throw aggregated error
end
end
end
Fallback-->>Hook: return tx result
Hook-->>Client: resolve mutation (optionally adapter.recordActivity / invalidateQueries)
Estimated code review effort🎯 5 (Critical) | ⏱️ ~120 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
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 |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary by CodeRabbit
New Features
Tests
Chores