Skip to content

[price-pusher] refactor #648

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

Merged
merged 8 commits into from
Mar 1, 2023
Merged

[price-pusher] refactor #648

merged 8 commits into from
Mar 1, 2023

Conversation

0xfirefist
Copy link
Contributor

probably the last major refactor
after this I will raise a cleanup PR for minor changes and doc update

this pr implements
separate command structure for separate chains

I have implemented a different approach at - #639
With the pr to add custom gas station we saw how it affected the structure of commands. Options were added for injective too even thought they don't make any sense for injective. there was coupling between the constructors for different chain which I thought to be a valid assumption then.

This approach is better.

  • good isolation
    • change in command of one won't affect another
  • flexibility
    • implementation can vary wildly as long as they implement the priceListener and pricePusher interface.

Will close the other PR after this.

@vercel
Copy link

vercel bot commented Mar 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated
example-oracle-amm ⬜️ Ignored (Inspect) Mar 1, 2023 at 8:54PM (UTC)
xc-admin-frontend ⬜️ Ignored (Inspect) Mar 1, 2023 at 8:54PM (UTC)

Copy link
Contributor

@jayantk jayantk left a comment

Choose a reason for hiding this comment

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

lgtm, but please do update the documentation before merging.

(one more comment here is that I would have considered going with a configuration file given the number of cli arguments. it's generally a little easier to manage configs and it gives you an easy way to save different versions of the system that you want to run. But this is ok too.)

@0xfirefist
Copy link
Contributor Author

lgtm, but please do update the documentation before merging.

(one more comment here is that I would have considered going with a configuration file given the number of cli arguments. it's generally a little easier to manage configs and it gives you an easy way to save different versions of the system that you want to run. But this is ok too.)

I was thinking about this. I discovered the solution. Pushed a commit for the same.
Both command options and a config file is supported

@0xfirefist
Copy link
Contributor Author

docs updated. merging it!

@0xfirefist 0xfirefist merged commit f5620ec into main Mar 1, 2023
@0xfirefist 0xfirefist deleted the refactor branch March 1, 2023 21:05
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