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

Initial update conditions checking #39

Merged
merged 6 commits into from
Oct 26, 2023
Merged

Conversation

aquarat
Copy link
Collaborator

@aquarat aquarat commented Oct 24, 2023

This is largely a copy of the update conditions check in Airseeker v1 (why change something that works well?). I had to add some extra code due to "noUncheckedIndexedAccess": true, in tsconfig.js and our stringent eslint rules.

An alternative to ethers' BigNumber is to use BigNumber.js, which can handle floating point big numbers - it works nicely in Airseeker Telemetry and it's easier to think about.

Closes #18

@aquarat aquarat self-assigned this Oct 25, 2023
@aquarat aquarat marked this pull request as ready for review October 25, 2023 10:11
@Siegrift
Copy link
Collaborator

This is largely a copy of the update conditions check in Airseeker v1 (why change something that works well?)

I agree.

@aquarat aquarat changed the title WIP Initial update conditions checking Initial update conditions checking Oct 26, 2023
@aquarat aquarat requested a review from Siegrift October 26, 2023 09:33
Copy link
Contributor

@vponline vponline left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@aquarat aquarat merged commit f49ca3a into main Oct 26, 2023
4 checks passed
@aquarat aquarat deleted the 18-impl-update-condition-checks branch October 26, 2023 13:08
@Siegrift
Copy link
Collaborator

I see that this PR is failing the tests. How come you were able to merge it? 👀
Do we have something wrong with the repo settings?

@Siegrift
Copy link
Collaborator

I see that this PR is failing the tests. How come you were able to merge it? 👀
Do we have something wrong with the repo settings?

I realized these https://github.com/api3dao/airseeker-v2/blob/main/.github/workflows/main.yml#L54 is the cause. We have different strategy for running tests in airseeker then we have in Airnode (which is fine imo).

@Siegrift Siegrift mentioned this pull request Oct 27, 2023
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.

Implement update conditions checks
3 participants