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

Pull latest cost models from fetcher #440

Open
1 task done
jinglescode opened this issue Dec 11, 2024 · 1 comment
Open
1 task done

Pull latest cost models from fetcher #440

jinglescode opened this issue Dec 11, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jinglescode
Copy link
Member

jinglescode commented Dec 11, 2024

Describe the feature you'd like

As hardfork cost model changes seems to become more common, and as each network can have different cost models. Its time to pull cost models when building transactions.

Is your feature request related to a problem? Please describe.

Whenever cost model changes, need to update cost model manually will result in down time.

Describe the solution you'd like

With fetcher provided, fetch cost model for the network it is using. If setNetwork is provided, then we can differentiate between preview and preprod if they have different cost models.

Additional context

No response

Would you be willing to implement it?

  • Yes, I will implement it.
@jinglescode jinglescode added the enhancement New feature or request label Dec 11, 2024
@twwu123
Copy link
Collaborator

twwu123 commented Dec 11, 2024

Most likely the behaviour I'm aiming for is to pull cost models from fetcher if fetcher instance is provided. ONLY IF fetcher instance is not provided, I will use default values for the network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants