Skip to content

Conversation

@fassko
Copy link
Collaborator

@fassko fassko commented Oct 13, 2025

No description provided.

@fassko fassko requested a review from dineshpinto as a code owner October 13, 2025 14:47
@fassko fassko self-assigned this Oct 13, 2025
@fassko fassko force-pushed the feat/fassets-list-agents branch from ed8b44a to 0b0c6ad Compare October 15, 2025 07:49

And return two values:

- `_agents`: Array of agent information structures.
Copy link
Collaborator

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.
Copy link
Collaborator

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.
Copy link
Collaborator

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.
Copy link
Collaborator

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.
Copy link
Collaborator

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.
Copy link
Collaborator

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.
Copy link
Collaborator

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.
Copy link
Collaborator

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.
Copy link
Collaborator

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above.

@fassko fassko force-pushed the feat/fassets-list-agents branch from 0b0c6ad to 631523e Compare October 16, 2025 07:38
- `_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).
Copy link
Collaborator

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).

@fassko fassko force-pushed the feat/fassets-list-agents branch from 29850c0 to 7b5ac49 Compare October 17, 2025 09:10
@fassko fassko merged commit 2c168f5 into main Oct 17, 2025
14 checks passed
@fassko fassko deleted the feat/fassets-list-agents branch October 17, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants