Add contract stream templates - #859
Conversation
|
@itzkingaddie Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
@itzkingaddie is attempting to deploy a commit to the ritik4ever's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 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 |
Overview
Adds reusable contract stream templates so senders can save stream configuration and create funded streams from those saved templates.
Related Issue
Closes #684
Changes
StreamTemplateandTemplateCreatedcontract types incontracts/src/templates.rs.create_templateget_templateget_templates_by_sendercreate_stream_from_templatevesting_typeto stream records and stream-created events so template-created streams retain the saved config.errors.rs, fixing pre-existing library compile blockers from duplicate Soroban macro symbols and the missing module declaration.mainand preserved upstream claim throttling, native token admin, DAO, benchmark, and snapshot changes while resolving the template-stream conflict.Verification Results
cargo check --manifest-path contracts\Cargo.toml --libpasses.cargo test --manifest-path contracts\Cargo.toml --test templatespasses: 2 passed, 0 failed.cargo test --manifest-path contracts\Cargo.tomlpasses: 132 unit tests, 1 benchmark test, 2 template tests, and doc tests.Acceptance Criteria