Open iamredbar opened 5 years ago
It's a good idea. We would need to make sure that we can add a specifc users collateral bids to its own tab, like margin orders, if one has active orders on chain.
claiming this ticket. do suggest
It's yours @manikey123
Wanted to confirm what information needs to be printed for each asset. For illustration purpose, considering two assets (bitBTC and bitGOLD)
On the dashboard of the user, only show bids that were done by that same user. Also, please use the style-guide table to display and not the old component, the shown columns should be the same.
On the dashboard of the user, only show bids that were done by that same user. Also, please use the style-guide table to display and not the old component, the shown columns should be the same.
The table should look like https://wallet.bitshares.org/#/asset/GOLD.
Please find another implementation in the UI that uses Table from bitshares-styleguide, should be straightforward. I'm not in office atm
PartA>
The table should look like https://wallet.bitshares.org/#/asset/GOLD.
So a given user should only see his order and not all orders as outlined in below format :
PartB>
Please find another implementation in the UI that uses Table from bitshares-styleguide, should be straightforward. I'm not in office atm
ok. thanks.
can anyone confirm Part A> so as to begin
Yes. Relevant information from that table should be visible on the users section.
You should follow the standard requirements when you work on a tasks which relates somehow to UI part:
If you can't find some component you need please let me know and I'll add them.
@startailcoon, if this task is unassigned, I can take it.
@OpenLedgerApp It's yours. Everything clear on the task?
Sorry for delay on this. I got sidetracked with bitshares boston hackathon and subsequently helping on beet tickets. I can resume on the task , if you dont mind.
Sorry for delay on this. I got sidetracked with bitshares boston hackathon and subsequently helping on beet tickets. I can resume on the task , if you dont mind.
@manikey123 I unassigned this from you after 4 weeks of no updates and it was that for another 10 days before it was assigned OpenLedgerApp. Please follow up on your issues in the future and post an update if there are delays. This is one of the requirements stated in CONTRIBUTING.md
If an issue misses the intended milestone completion, be sure to make a comment on your progress including the reason for the delay. The issue is pushed to the next milestone. Failing to comment or complete the issue will result in release of the assigned issue and could result in no bounty pay.
sorry about above. will take note going forward. resuming on the ticket.
extracted relevant collateral information from the react code and currently coding the UI mockup. I shall share the UI mockup over the PST weekend.
Please find the three approaches to get Account level filtered and Asset level aggregated collateral information. IMO I prefer Approach 3>. Look forward to your feedback/suggestion.
Approach 1> ChainStore Approach as used in Margin Positions Page ChainStore designed in bitsharesJS ChainStore is used to get account level information and store in the account object in account overview page and is loaded when the account is loaded. It makes various calls to the APIs and has 30 mapped operations. It has call orders which is used for the Margin Positions page likewise we could design a collateral only account specific asset summary information
Approach 2> Using get_account_history which is present in Using get_account_history get_account_history operation done in chain store, sets the maps of account.get("history") gets the history associated for the account. It has order info as below. It provides the asset level transaction details for a given account. These transactions need to be then grouped/ aggregated to represent the summary information. Basically we perfom group by asset calculations. { "id": "1.11.895962928", "op": [ 45, { "fee": { "amount": 2526, "asset_id": "1.3.0" }, "bidder": "1.2.1151585", "additional_collateral": { "amount": 100000, "asset_id": "1.3.0" }, "debt_covered": { "amount": 1000000, "asset_id": "1.3.106" }, "extensions": [] } ], "result": [ 0, {} ], "block_num": 38167451, "trx_in_block": 12, "op_in_trx": 0, "virtual_op": 51342 }
app/lib/common/MarketClasses.js
How is it done in the current CollateralBid overview?
Are collateral bids included in the get_full_account
return value?
will update after going through the current release of core
How is it done in the current CollateralBid overview?
In the current view CollateralBid overview is done based on the asset value. There is no way to get the collateral value based on the accont name or account id (2hrs effort)
Are collateral bids included in the get_full_account return value? The colateral values for the executed call_orders are present just like margin orders The open collateral bids which are not executed are not present (2hrs effort)
I recommend using approach 3 : making an API for getCollateralBidsByAcct(const string & names_or_ids) Do suggest
I recommend using approach 3 : making an API for getCollateralBidsByAcct(const string & names_or_ids) Do suggest
If that is the best approach, making an issue in the core repository is in order so we can have it included.
Both should be present, a separate call and inclusionin get_full_account
I thought it's already in get_full_accounts
. Will check.
Oh, there is the issue for adding the APIs https://github.com/bitshares/bitshares-core/issues/1871
On hold until core provides this possibility.
Is your feature request related to a problem? Please describe. It takes a few clicks to get to the collateral bids to monitor them. It would be nice to see those bids in the dashboard as an easy reference.
Describe the solution you'd like I would like to see a tab in the dashboard for collateral bids (if applicable). Sort of like how proposals show up if they are present. This would also give a little more attention to the smart assets and give more incentive to be involved.
Alternative An alternative could be having the Collateral Bid tab viewable by everyone, regardless of having a collateral bid or not.
Additional context Potential tab order in the dashboard for the addition of Collateral Bids: