-
Notifications
You must be signed in to change notification settings - Fork 758
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
chore: add documentation for starknetid.ts #1115
chore: add documentation for starknetid.ts #1115
Conversation
@@ -24,6 +24,12 @@ function extractStars(str: string): [string, number] { | |||
* Decodes an array of BigInts into a string using the given algorithm. | |||
* @param {bigint[]} encoded - The encoded array of BigInts. | |||
* @return {string} The decoded string. | |||
* @example |
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.
@irisdv can you please confirm if these example's look ok?
@@ -96,6 +108,13 @@ export function signatureToHexArray(sig?: Signature): ArraySignatureType { | |||
|
|||
/** | |||
* Convert estimated fee to max fee with overhead | |||
* @param {BigNumberish} estimatedFee - The estimated fee | |||
* @param {number} [overhead = feeMarginPercentage.MAX_FEE] - The overhead added to the gas | |||
* @returns {bigint} The maximum fee with overhead |
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.
@example missning!
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.
@example still missing!
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.
Nearly good, but as explained in Telegram https://t.me/c/2066195975/59 ,
please follow very rigorously the template of this PR #1100, especially for the examples : result always in a result variable, result displayed in a comment (//) (no assert).
Reviews fixed @PhilippeR26 |
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.
Is it normal to have no examples or missing @returns in some areas :
starks.ts : L79-106, L168-242 ?
Motivation and Resolution
Closes #1090
RPC version (if applicable)
...
Usage related changes
Development related changes
Checklist: