Skip to content
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

refactor: Publish storage deals #599

Merged

Conversation

aidan46
Copy link
Contributor

@aidan46 aidan46 commented Nov 22, 2024

Description

Refactor publish storage deals to fail if any deals are invalid and report the error to the user. Publishing storage deals now fails if a single deal is invalid and the error is relayed to the user. The tests have been updated to reflect the change. The success test for publish storage deals needed to be updated as there were not enough funds allocated, making 1 out of 3 deals fail. As a result of this we need to increase the initial balance and adapt the tests to take this into consideration.

@aidan46 aidan46 marked this pull request as draft November 22, 2024 04:37
@aidan46 aidan46 force-pushed the 121-market-pallet-reconsider-publish_storage_deals-design branch from e678867 to 6fb9f83 Compare November 22, 2024 05:05
@aidan46 aidan46 marked this pull request as ready for review November 22, 2024 05:27
@aidan46 aidan46 force-pushed the 121-market-pallet-reconsider-publish_storage_deals-design branch from 6fb9f83 to 222c0fa Compare November 22, 2024 05:31
@aidan46 aidan46 self-assigned this Nov 22, 2024
@aidan46 aidan46 added this to the Phase 3 milestone Nov 22, 2024
@aidan46 aidan46 added ready for review Review is needed pallet-market Relates to the Market Pallet labels Nov 22, 2024
@aidan46 aidan46 requested a review from a team November 22, 2024 09:55
@aidan46 aidan46 added ready for review Review is needed and removed ready for review Review is needed labels Nov 25, 2024
@aidan46 aidan46 force-pushed the 121-market-pallet-reconsider-publish_storage_deals-design branch from 15cdf3e to fca5379 Compare November 25, 2024 06:34
@aidan46 aidan46 added ready for review Review is needed and removed ready for review Review is needed labels Nov 25, 2024
@aidan46 aidan46 force-pushed the 121-market-pallet-reconsider-publish_storage_deals-design branch from 25c9404 to 49b976f Compare November 25, 2024 08:31
@aidan46 aidan46 added ready for review Review is needed and removed ready for review Review is needed labels Nov 25, 2024
@jmg-duarte jmg-duarte mentioned this pull request Nov 25, 2024
@aidan46 aidan46 added the ready for review Review is needed label Nov 25, 2024
@jmg-duarte jmg-duarte added ready for review Review is needed and removed ready for review Review is needed labels Nov 25, 2024
th7nder
th7nder previously approved these changes Nov 25, 2024
@aidan46 aidan46 enabled auto-merge (squash) November 25, 2024 10:09
th7nder
th7nder previously approved these changes Nov 25, 2024
@aidan46 aidan46 requested review from cernicc and a team November 25, 2024 11:24
@aidan46 aidan46 added ready for review Review is needed and removed ready for review Review is needed labels Nov 25, 2024
th7nder
th7nder previously approved these changes Nov 25, 2024
@aidan46 aidan46 added ready for review Review is needed and removed ready for review Review is needed labels Nov 25, 2024
@aidan46 aidan46 added ready for review Review is needed and removed ready for review Review is needed labels Nov 25, 2024
@cernicc cernicc requested a review from th7nder November 25, 2024 11:55
@aidan46 aidan46 merged commit aa21def into develop Nov 25, 2024
5 checks passed
@aidan46 aidan46 deleted the 121-market-pallet-reconsider-publish_storage_deals-design branch November 25, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pallet-market Relates to the Market Pallet ready for review Review is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return better error for insufficient client balance Market Pallet: reconsider publish_storage_deals design
4 participants