Skip to content

feat(berachef): override abi generation for backwards compatibility - #11

Closed
SnowBera wants to merge 1 commit into
mainfrom
feat/override-berachef-abi-compatibility
Closed

SnowBera wants to merge 1 commit into
mainfrom
feat/override-berachef-abi-compatibility

Conversation

@SnowBera

Copy link
Copy Markdown
Contributor

Summary

Bepolia uses the upgraded BeraChef interface while mainnet still uses the legacy interface. Add a temporary generation override so the existing beraChefAbi export includes both versions.

What's Changed

  • Preserve legacy exemption methods, events, and errors while adding the upgraded exemption and vault eligibility methods.
  • Append missing entries without duplicating or replacing existing definitions; fail generation on conflicting definitions.
  • Apply the override only to the current BeraChef contract in the contracts source.

Consumers must retain fallback handling for methods unavailable on their deployed contract. Remove the override once mainnet is upgraded, the configured source generates the upgraded ABI, and consumers stop calling legacy methods.

@SnowBera
SnowBera requested a review from bearpong as a code owner September 16, 2026 13:35
@SnowBera SnowBera closed this Sep 16, 2026
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