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

Event processor: Field #519

Merged
merged 6 commits into from
Jun 28, 2023
Merged

Event processor: Field #519

merged 6 commits into from
Jun 28, 2023

Conversation

silochad
Copy link
Contributor

@silochad silochad commented Jun 28, 2023

Reintroduce the Field event processor; migrate from the previous BigNumberJS & object approach to ethers.BigNumber and Maps.

Reintroduce helper function parsePlots to split plots into harvestable & non-harvestable. Add test for this.

Use the processor in the farmer/field/updater and wrangle the ethers.BigNumbers into BigNumberJS which is what the UI components expect currently. Not pretty but functional. Tested manually on some of my accounts.

yarn run jest processor.test

@silochad silochad mentioned this pull request Jun 28, 2023
@silochad silochad merged commit 55a458c into silo-v3-ui Jun 28, 2023
@silochad silochad deleted the event-processor-field branch June 28, 2023 14:52
@@ -83,6 +76,8 @@ export class EventProcessor {

// Field
this.plots = initialState?.plots || new Map();

return this;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

reverting this change in a followup pr

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.

1 participant