-
Notifications
You must be signed in to change notification settings - Fork 44
feat(docs): add guide for listing FAssets agents and update IAssetManager reference #962
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
ed8b44a to
0b0c6ad
Compare
|
|
||
| And return two values: | ||
|
|
||
| - `_agents`: Array of agent information structures. |
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.
structures or structs?
|
|
||
| Returns: | ||
|
|
||
| - `_agents`: The list of all agents. |
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.
It doesn't return a list of all agents though, right?
| - `_start`: First index to return from the available agent's list | ||
| - `_end`: End index (one above last) to return from the available agent's list | ||
| - `_start`: First index to return from the available agent's list. | ||
| - `_end`: End index (one above last) to return from the available agent's list. |
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.
End index (exclusive)...
|
|
||
| - `_start`: First index to return from the available agent's list | ||
| - `_end`: End index (one above last) to return from the available agent's list | ||
| - `_start`: First index to return from the available agent's list. |
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.
Start index (inclusive)...
|
|
||
| - `_agents`: The list of available agents | ||
| - `_totalLength`: The total length of the available agents list | ||
| - `_agents`: The list of available agents. |
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.
As above.
|
|
||
| - `_start`: First index to return from the available agent's list | ||
| - `_end`: End index (one above last) to return from the available agent's list | ||
| - `_start`: First index to return from the available agent's list. |
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.
As above.
|
|
||
| - `_queue`: the (part of) the redemption queue; maximum length is \_pageSize | ||
| - `_nextRedemptionTicketId`: works as a cursor - if the `_pageSize` is reached and there are more tickets, it is the first ticket id not returned; if the end is reached, it is 0 | ||
| - `_queue`: the (part of) the redemption queue; maximum length is \_pageSize. |
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 (part of) redemption queue
|
|
||
| - `_firstRedemptionTicketId`: the ticket id to start listing from; if `0`, starts from the beginning | ||
| - `_pageSize`: the maximum number of redemption tickets to return | ||
| - `_firstRedemptionTicketId`: the ticket id to start listing from; if `0`, starts from the beginning. |
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.
Above you start with a capital letter after the :, here with the lowercase letter.
| - `_agentVault`: the agent vault address of the queried agent | ||
| - `_firstRedemptionTicketId`: the ticket id to start listing from; if `0`, starts from the beginning | ||
| - `_pageSize`: the maximum number of redemption tickets to return | ||
| - `_agentVault`: the agent vault address of the queried agent. |
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.
Lowercase.
|
|
||
| - `_queue`: the (part of) the redemption queue; maximum length is \_pageSize | ||
| - `_nextRedemptionTicketId`: works as a cursor - if the` _pageSize` is reached and there are more tickets, it is the first ticket id not returned; if the end is reached, it is 0 | ||
| - `_queue`: the (part of) the redemption queue; maximum length is \_pageSize. |
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.
As above.
0b0c6ad to
631523e
Compare
| - `_start`: First index to return from the available agent's list. | ||
| - `_end`: End index (one above last) to return from the available agent's list. | ||
| - `_start`: First index to return from the available agent's list (inclusive). | ||
| - `_end`: End index (one above last) to return from the available agent's list (exclusive). |
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.
What I tried to point out is that I don't like the combination of words first and end. It's either first and last or starting/start and end. Also, (one above last) should be replaced with (exclusive).
… in IAssetManager reference
29850c0 to
7b5ac49
Compare
No description provided.