docs: run the agent-wallet lifecycle from JavaScript#163
Conversation
Time Submission Status
Submit or update total time with: Add time on top of previous submission with: See available commands to help comply with our Guidelines. |
|
Warning Review limit reached
More reviews will be available in 12 minutes and 6 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?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 credits. 🚦 How do rate 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 see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ 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 |
|
@holdex pr submit-time 3h |
7ad7dfb to
af17f91
Compare
c071885 to
d6f98af
Compare
resolves: https://github.com/truflation/website/issues/4165
Problem
There's no runnable, end-to-end example showing the full Modular Agent Address ("agent wallet") lifecycle through the JS SDK. The Go and Python SDKs each have one, but JS developers have nothing to copy from.
Change
Adds
examples/maa_lifecycle_example/— a self-contained smoke test mirroring the Go/Python examples and the node oracle (tests/streams/maa/data_agent_test.go). It drives the whole lifecycle against a live node wheremaa_execis activated and asserts the properties that make an agent wallet safe:@calleris rewritten to the wallet, so the stream it creates is owned by the MAA and every fee debits the MAA's own escrow;rule_idand the MAA address are derived offline (MAAAddress.*) and cross-checked against what the chain returns at each step. Config is read from a gitignored.env(template in.env.example); README documents every step and what success looks like.Verification
Ran end-to-end against testnet — all steps pass, ending with
✅ MAA lifecycle smoke test PASSED. The agent's withdrawal is blocked withreserved for the unrestricted ownerand the escrow is unchanged; the owner's withdrawal succeeds with a 2.5% commission.Depends on
The example calls the address-parameterized getters added here; merge that first (this PR is stacked on its branch):