Skip to content

feat: fill multiple Outputs at once #53

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

Closed
wants to merge 1 commit into from
Closed

Conversation

anna-carroll
Copy link
Contributor

putting this in a separate branch for consideration

@anna-carroll anna-carroll self-assigned this Jul 1, 2024
Base automatically changed from anna/order-interface to main July 1, 2024 22:43
/// @notice Send multiple Output(s) of Order(s).
/// @custom:emits OutputFilled for each output
/// @param outputs - The array of Outputs to fill.
function fill(uint256[] memory originChainIds, Output[] memory outputs) external payable {
Copy link
Contributor Author

@anna-carroll anna-carroll Jul 1, 2024

Choose a reason for hiding this comment

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

so, if we merge this PR, we could do

  • (uint256[] memory originChainIds, Output[] memory outputs)
  • we could repurpose chainId in the Output struct - use it to be targetChainId on the origin chain, and originChainId on the target chain (this is probably confusing)

@anna-carroll
Copy link
Contributor Author

anna-carroll commented Jul 1, 2024

@prestwich overall i don't find this to be stylistically additive, even though the order initiation uses arrays

@prestwich
Copy link
Member

overall i don't find this to be stylistically additive, even though the order initiation uses arrays

if we don't write it, other people will. are we comfortable with that?

@anna-carroll
Copy link
Contributor Author

closing in favor of #55

@anna-carroll anna-carroll deleted the anna/multiple-fill branch September 25, 2024 20:04
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.

2 participants