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

Rosetta Etna upgrade - New transactions and Dynamic fee suggestions #248

Merged
merged 16 commits into from
Dec 12, 2024

Conversation

rajranjan0608
Copy link
Collaborator

Right now, Avalanche Rosetta is capable of building Atomic and Primary Network Staking Txs only. Other subnet-related txs are not supported, so we don't need to include any changes related to the new post-Etna L1 validator tx types.

This PR just updates the flow to suggest dynamic fees based on transaction size and network activity.

  • Upgrades AvalancheGo to Etna version - v1.12.0-fuji
  • Updates /preprocess endpoint to calculate and return base_fee as an Options property based on the operations passed (inputs and outputs)
  • Updates /metadata endpoint to calculate additional suggested fees based on the staking metadata

go.mod Outdated Show resolved Hide resolved
Copy link

@michaelkaplan13 michaelkaplan13 left a comment

Choose a reason for hiding this comment

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

Should we bump the AvalancheGo version as last done in this PR for v1.11.6?
https://github.com/ava-labs/avalanche-rosetta/pull/246/files

service/backend/pchain/construction.go Outdated Show resolved Hide resolved
client/pchainclient.go Outdated Show resolved Hide resolved
Copy link
Contributor

@bilgehansahin bilgehansahin left a comment

Choose a reason for hiding this comment

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

Looks good to me.

go.mod Outdated Show resolved Hide resolved
@rajranjan0608 rajranjan0608 merged commit 8cce4b1 into master Dec 12, 2024
4 checks passed
@rajranjan0608 rajranjan0608 changed the title Rosetta Etna upgrade - Dynamic fee suggestions Rosetta Etna upgrade - New transactions and Dynamic fee suggestions Dec 12, 2024
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