Implement refund and distribute options on management dashboard
Estimation
Story points : 1 SP
Estimated Duration: 1 Days
Description
Click to expand
Who
- @kikokhaledu - dev
- @safiullahmubashir08 - blockchain specialist
- @janaina.senna @kabir.kbr - architecture advisors
What
- Implement refund and distribute options on the management dashboard.
How
- Using the management dashboard the user requests for the reward.
- The management dashboard uses the DMS
request reward
call so DMS/Oracle can decide if the transaction will be withdrawn, refunded or distributed. - Implement to use the right transaction type on the management dashboard while interacting with the wallet. Currently we are only using withdraw.
- Implement a message to inform the user which transaction will be used.
- In case of refund, the management dashboard will not interact with the blockchain via wallet since nothing needs to be done.
- For withdraw or distribute, the management dashboard will interact with the blockchain via wallet to perform the transaction.
- After transaction is done, the management dashboard will use the
send status
call to inform the DMS about the transaction status (parameters: transaction type and status of transaction). This endpoint is already implemented on DMS side.
Why
- We need to implement the sequence diagram for running a ML on a GPU and compensate the computer provider described here.
When
- No technical dependencies.
Acceptance Criteria
Click to expand
- Merge request
- Code review
- Unit tests implemented
- Demo to the dev team
- API updated (if needed)
Work Breakdown Structure (WBS)
Task | Description | Duration | Status | Start Date | End Date | Comment |
---|---|---|---|---|---|---|
A | implemented the logic suggested by safi | 6 Hrs | Done | 12.06.2023 | 12.06.2023 |
Edited by Ahmed Melouk