-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More StreamPayment config #878
base: master
Are you sure you want to change the base?
Conversation
WASM runtime size check:Compared to target branchdancebox runtime: 1428 KB (no changes) ✅ flashbox runtime: 840 KB (no changes) ✅ dancelight runtime: 2188 KB (no changes) ✅ container chain template simple runtime: 1132 KB (no changes) ✅ container chain template frontier runtime: 1416 KB (no changes) ✅ |
Coverage Report@@ Coverage Diff @@
## master jeremy-more-stream-payment-configs +/- ##
======================================================================
+ Coverage 65.40% 65.57% +0.17%
+ Files 350 351 +1
+ Lines 60856 61165 +309
======================================================================
+ Hits 39798 40105 +307
+ Misses 21058 21060 +2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment about try-runtime, I think it's a good excercise that we always write those hooks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMportant commens of formatting and question whether we should include both in dancebox and flashbox
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good now @nanocryk
Adds 2 new config items:
minimum_request_deadline_delay
: currently stream parties can create a mandatory change request with an immediate/very close deadline, which can allow for the payer to stop paying immediately. This new item allows to set a minimal delay (in the stream time unit) so that the other party have fair time to respond.soft_minimum_deposit
: Allows to configure a minimum amount of deposit when the stream source change it manually. It also prevents the source to close the stream if not stalled. This allows to guarantee to the target that payment will still occur for at leastsoft_minimum_deposit / rate
time, and prevents the stream to be closed/emptied by surprise. This can be useful for non-automated services that could need time to prepare and react to the end of the service.Breaking changes
This changes the
StreamConfig
struct stored in this pallet but also in DataPreservers pallets as a config can be stored in a profile if the preserver wishes to provide services in exchange for a specific stream payment.TODOs: