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

F/rewards distribution e2e 2 #84

Merged
merged 21 commits into from
Feb 12, 2025
Merged

F/rewards distribution e2e 2 #84

merged 21 commits into from
Feb 12, 2025

Conversation

maurolacy
Copy link
Contributor

Tests the new version of rewards distribution / withdrawal.

@gusin13 gusin13 mentioned this pull request Feb 11, 2025
@maurolacy
Copy link
Contributor Author

maurolacy commented Feb 11, 2025

Taking a look at CI failures. E2e tests are passing on my local btw.

Copy link
Member

@SebastianElvis SebastianElvis left a comment

Choose a reason for hiding this comment

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

Nice 👍

The local integration test failed though

Copy link
Contributor

@gusin13 gusin13 left a comment

Choose a reason for hiding this comment

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

Maybe the staker_addr coming in local integration tests (make test-integration) is using bbnc prefix but the contract expects bbn

https://github.com/babylonlabs-io/babylon-contract/blob/e3552238cd619f99ab262594a2c62558b8b65042/packages/apis/src/lib.rs#L37-L38

@maurolacy
Copy link
Contributor Author

maurolacy commented Feb 12, 2025

Maybe the staker_addr coming in local integration tests (make test-integration) is using bbnc prefix but the contract expects bbn

Yes, this requires a fix of the datagen module on babylon. On it.

@SebastianElvis
Copy link
Member

Faced the same issue at FP. For now I worked around by doing this. Not sure if touching Babylon for this fix is a good idea or not

@maurolacy
Copy link
Contributor Author

maurolacy commented Feb 12, 2025

Not sure if touching Babylon for this fix is a good idea or not

Too late 😉. Here's the PR: babylonlabs-io/babylon#513.

Regarding if it's a good idea or not, the changes are minimal, and fully backwards compatible. In any case, we shouldn't be using datagen in the Consumer's SDK if it's meant to be Babylon specific.

Perhaps datagen should migrate to its own babylon-datagen repo...

@maurolacy maurolacy force-pushed the f/rewards-distribution-e2e-2 branch from 9ea47c5 to 5297b58 Compare February 12, 2025 14:50
@maurolacy maurolacy merged commit 58624a2 into main Feb 12, 2025
16 checks passed
@maurolacy maurolacy deleted the f/rewards-distribution-e2e-2 branch February 12, 2025 15:16
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