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

Fully refund DRs resolved while contract is paused #490

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

Thomasvdam
Copy link
Member

Motivation

To prevent data requests being stuck in the contract while it is paused and potentially resolving a lot later when the data is already stale we continue expiring and processing data requests. Any DR resolved while the contract is paused will get an error result and trigger a full refund for the poster of the DR.

Explanation of Changes

Support the new contract DR list response which also returns the paused status. If the contract is paused all DRs will be resolved with an error and a full refund.

Cleaned up some test WASM binaries that were not being used.

Refactored the integration tests a little to make the paused test easier to set up.

Testing

Added an integration test with the latest version of the contract.

Related PRs and Issues

N.A.

@Thomasvdam Thomasvdam requested review from hacheigriega, a team and mariocao February 6, 2025 19:24
x/tally/keeper/endblock.go Show resolved Hide resolved
To prevent data requests being stuck in the contract while it is paused
and potentially resolving a lot later when the data is already stale we
continue expiring and processing data requests. Any DR resolved while
the contract is paused will get an error result and trigger a full
refund for the poster of the DR.
@Thomasvdam Thomasvdam force-pushed the feat/paused-contract branch from 318ff52 to 9b59649 Compare February 7, 2025 09:13
@Thomasvdam Thomasvdam merged commit 9b59649 into main Feb 7, 2025
17 checks passed
@Thomasvdam Thomasvdam deleted the feat/paused-contract branch February 7, 2025 09:24
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.

3 participants