Milestone Delivery: Escrow pallet Milestone #1#566
Milestone Delivery: Escrow pallet Milestone #1#566keeganquigley merged 22 commits intow3f:masterfrom
Conversation
|
@herou thanks for your delivery! We currently have a rather large backlog to tackle, so it might take a bit longer than usual until your delivery is evaluated. Nevertheless, we're going to take a look at it as soon as we can. |
|
Hi @herou I have started the process of evaluating your milestone. Please give me a bit of time to fully understand your project and I will reach out to you with any questions I may have. Thanks! |
|
@herou I looked over your milestone and am getting 404 errors on Deliverable 4. Docker and 6. Escrow Pallet. Can you fix these links? Thanks! |
It should be fine now. I made my repo public. |
|
Thanks @herou a couple more things to address:
|
Here it is: https://github.com/herou/EscrowPallet/blob/eljo-prifti/escrow/LICENSE |
I added it to the milestone delivery doc. |
|
Thanks @herou moving on, your pallet code looks good and the unit tests are all successful. However, some of the benchmarking tests are failing when running error[E0425]: cannot find function `assert_last_event` in this scope
--> /Users/keeganquigley/EscrowPallet/pallets/escrow/src/benchmarking.rs:30:3
|
30 | assert_last_event::<T>(Event::Locked(caller, amount).into());
| ^^^^^^^^^^^^^^^^^ not found in this scope
Compiling frame-system-benchmarking v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.28#34a06217)
error[E0599]: no function or associated item named `max_value` found for associated type `<<T as pallet::Config>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance` in the current scope
--> /Users/keeganquigley/EscrowPallet/pallets/escrow/src/benchmarking.rs:23:32
|
23 | let amount = BalanceOf::<T>::max_value();
| ^^^^^^^^^ function or associated item not found in `<<T as pallet::Config>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance`
|
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
3 | use frame_support::sp_runtime::traits::Bounded;
|
3 | use num_traits::bounds::UpperBounded;
|
3 | use num_traits::float::FloatCore;
|
Some errors have detailed explanations: E0425, E0599.
For more information about an error, try `rustc --explain E0425`.
warning: `escrow` (lib) generated 2 warnings
error: could not compile `escrow` due to 2 previous errors; 2 warnings emitted
warning: build failed, waiting for other jobs to finish... |
Sorry for this inconvenience, pushed my fix. Please take another look. @keeganquigley please let me know asap if this is okay because I am ready to push the second milestone. Thank you! |
|
@herou we don't require milestones to be delivered sequentially, so feel free to create a PR for the second milestone already. |
|
Apologies for the delay @herou and thanks for fixing the benchmarking tests! The fix did work. The pallet looks good and I am finishing up my eval now. |
Hi, thank you for your reply. NoValueStored and WrongExpiringDate are going to be used in the later milestones. If you see the sign_contract does not throw any of these errors, which means I can not write tests for them. SameAddressError error is used in the sign_contract, that's why I have written a test for it. Is it clear to you? Please, @elio.prifti:matrix.org write me directly on element if it is not clear to you. I would like to thank you for your time and effort. Thanks a lot! |
|
@herou okay thanks for clarifying! Yes in that case I am happy to accept this milestone! I have submitted the PR and will let the rest of the team know. |
My first milestone accepted :) |
|
@herou could you upload a new invoice that includes your home address, please? Web 3.0 Technologies Foundation |
Uploaded it, please let me know if it is okay. Thank you! |
|
@herou thanks. I think, in your address the town and country are still missing though, can you add them and re-upload? |
Can you please check it now and let me know? Thank you! |
|
@herou it looks good now, thanks! |
|
@keeganquigley I really liked your review and I would like to have a short conversation with you if possible. Can you please write me on twitter: https://mobile.twitter.com/eljoprifti1 I would really appreciate it. Looking forward to hearing from you. You rock it! |
|
@herou thanks for the compliments, and sure thing! I will DM you now. |
|
@herou your address seems to be a tron address which we don't currently support for payouts:
The amount in your grant application is denominated in USDT, which would work for us. Hence, could you please also update the wallet address? |
Can you please check it again? |
|
@herou I checked with the team, and the contract will need to be amended. You can submit another PR for this. Thanks and apologies for the inconvenience. |
This is a new PR of changing the address: w3f/Grants-Program#1190 |
Hi @keeganquigley . Can you please let me know the status of the payment of this milestone? |
|
@herou confirmed that he has received payment for the milestone, noting this here. |
Milestone Delivery Checklist
Link to the application pull request: w3f/Grants-Program#1094