-
Notifications
You must be signed in to change notification settings - Fork 51
Conversation
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.
A huge work! Thank you!
Just a few notes and suggestions
#### Arguments | ||
|
||
| Parameter | Type | Description | |
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.
The request payload is the same for task::enable_qtum::init
and task::enable_utxo::init
. I'm not sure if this is a good idea, but what do you think about declaring a TaskEnableUtxoInit
(not the best name) payload and just link it within task\_enable\_qtum\_init
and task\_enable\_utxo\_init
methods?
I don't think that the payload will be different in 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.
I think in general where request payloads are the same (or 80% same with the remaining optional) it is good to have a single method that can be used for both. It reduces confusion from user and overhead to create maintain docs.
IMO the ideal solution would be a single "enable_coin" method which can be used on anything, with API + coins file able to determine which underlying method to use. Another enhancement would be allowing user to define coins_config.json and derive the rpc_nodes / electrums etc from there - though I understand this would be a fairly big job and maybe better to plan towards for v3 of the API
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 can't answer this suggestion correctly as I didn't work on enable V2
feature, so I'll just reference to this comment KomodoPlatform/komodo-defi-framework#1006 (comment) and to your comment KomodoPlatform/komodo-defi-framework#1006 (comment) 🙂
#### Response (ready, successful, Trezor mode) | ||
|
||
| Parameter | Type | Description | |
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.
Response payload could be also declared somewhere above
I've made some updates to resolve review feedback - just waiting on @Canialon to provide an error response example for |
|
Thanks, sidebar entries should be visible now. |
fixed a little syntax that was causing error, should be good now 🤞 |
The sidebar works good now! thanks!! |
I believe it makes sense to add a coin_activation_tasks link to the address_managment and account balance_tasks pages |
closes: #392
task::withdraw::initmoved to other doctask::withdraw::statusmoved to other doctask::withdraw::cancelmoved to other doc