-
Notifications
You must be signed in to change notification settings - Fork 159
Enrich the doc on docs.rs for pink #1330
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
Conversation
dfe5dff
to
051e111
Compare
@HashWarlock Can you help review on this? |
pub fn set_log_handler(contract: AccountId) { | ||
emit_event::<PinkEnvironment, _>(PinkEvent::SetLogHandler(contract)) | ||
} | ||
|
||
/// Set the weight of contract used to schedule queries and sidevm vruntime | ||
/// Set the weight of contract used to schedule queries and sidevm vruntime. (system only) |
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.
Does vruntime
mean something like virtual runtime
? I see it used twice.
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.
Yes. Replaced with virtual runtime
.
/// - `PinkLogger`: The contract that with a sidevm instance that collect the logs and events | ||
/// emitted by the ink! contracts in current cluster. | ||
/// - `ContractDeposit`: The contract that implements the `trait ContractDeposit` which talks | ||
/// to the pallet PhatKokenomic on Phala chain. |
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.
Pallet is named PhatTokenomic
, right?
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.
Yes. Fixed.
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.
Thank you for adding this. This was very informative for me and I learned a few things. I only saw 1 typo with PinkKokenomic
-> PinkTokenomic
and I made comment on clarification of vruntime
.
Other than that, LGTM
Joshua has already made amazing docs and guides for Phat Contracts in phala-docs.
However, the pink APIs docs was still poor of quality. This PR enrich the API docs of pink-extension on docs.rs.
We can temporarily preview the doc here.