-
Notifications
You must be signed in to change notification settings - Fork 8
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
210 add finalization pallet #214
Conversation
Codecov Report
@@ Coverage Diff @@
## main #214 +/- ##
==========================================
+ Coverage 79.61% 81.19% +1.58%
==========================================
Files 53 57 +4
Lines 4571 5047 +476
==========================================
+ Hits 3639 4098 +459
- Misses 932 949 +17
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Nice work, this pretty much concludes the work of the finalizer-pallet.
@@ -21,6 +21,7 @@ pub enum AssetStatus { | |||
PURCHASED, | |||
REJECTED, | |||
SLASH, | |||
CANCELLED, |
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.
Great to have gotten Cancelled, it may be a bit undefined yet what we do with this status.
What happens to the deposit of the seller ? Since the seller was the one initiating and cancelling there should be a fee to pay. This isn't comment on the PR, just a feedback potential issue for the future.
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.
With Cancelled status, we know that the transaction didn't succeed not because of the notary but because of the seller. For the moment, cancelling is free, but later, a slash will be applied to the seller.
} | ||
|
||
#[test] | ||
fn validate_transaction_asset_should_succeed() { |
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.
@letodunc you think we should extend this test till share-distributor?
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.
I think we can relay on the tests in the bidding pallet for the process_finalised_assets()
. This is the step following the finalizer pallet execution.
Implemented pallet finalizer methods