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

Settup and add initial svp tests. #200

Closed
wants to merge 6 commits into from

Conversation

jeremy-then
Copy link
Contributor

No description provided.

@jeremy-then jeremy-then self-assigned this Jan 14, 2025
@jeremy-then jeremy-then requested a review from a team as a code owner January 14, 2025 17:59
Base automatically changed from checking-rsk-initial-balance to rits-refactors-9-2024-integration January 20, 2025 13:09
@jeremy-then jeremy-then changed the base branch from rits-refactors-9-2024-integration to svp-integration January 21, 2025 06:10

expect(proposedFederationInfo.proposedFederationCreationBlockNumber).to.be.equal(commitFederationCreationBlockNumber, 'The proposed federation creation block number should be the expected one.');

const proposedFederationMembers = await getProposedFederationPublicKeys(bridge);

Choose a reason for hiding this comment

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

Suggested change
const proposedFederationMembers = await getProposedFederationPublicKeys(bridge);
const proposedFederationPublicKeys = await getProposedFederationPublicKeys(bridge);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

Choose a reason for hiding this comment

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

sure? i don't see the change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated something similar, got confused. Now updated.


});

it('should not have created svp transaction and there should not be any SVP values in storage yet', async () => {

Choose a reason for hiding this comment

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

Suggested change
it('should not have created svp transaction and there should not be any SVP values in storage yet', async () => {
it('should not have created svp fund transaction and there should not be any SVP values in storage yet', async () => {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

Copy link
Collaborator

@marcos-iov marcos-iov left a comment

Choose a reason for hiding this comment

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

looking good

@@ -23,7 +23,81 @@ var compareFederateKeys = (publicKeysA, publicKeysB) => {
return comparison;
};

const getActiveFederationPublicKeys = async (bridge) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What do you think of using powpeg-details library?

Not now, but if you think it's a good idea we can add it in a separate PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It only works for the active federation.

return bytesStr;
};

const getBridgeStorageValueDecodedHexString = (bridgeStorageValueEncodedAsRlp, append0xPrefix = true) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we implemented this in one of our libraries didn't we? Might be a good idea anyway to have maybe a specialized library that reads values from the Bridge storage

@@ -13,7 +13,7 @@
"license": "GPL3",
"dependencies": {
"@rsksmart/bridge-state-data-parser": "^1.2.0",
"@rsksmart/bridge-transaction-parser": "^1.1.4",
"@rsksmart/bridge-transaction-parser": "github:rsksmart/bridge-transaction-parser#fbdeb686fc438f530d3a5f01bce062fd455be01f",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this? Do we need a new release for bridge-transaction-parser?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. We need to update the @rsksmart/rsk-precompiled-abis dependency in the bridge-transaction-parser library. Check: rsksmart/bridge-transaction-parser@master...use-lovel-precompiled-abis-commit

@@ -34,7 +34,7 @@
"mocha-junit-reporter": "^2.2.1",
"pegin-address-verificator": "git+https://[email protected]/rsksmart/pegin-address-verifier#v0.4.0",
"peglib": "git+https://github.com/rsksmart/rsk-peglib#v1.4.15",
"@rsksmart/rsk-precompiled-abis": "^6.0.0-ARROWHEAD",
"@rsksmart/rsk-precompiled-abis": "github:rsksmart/precompiled-abis#841aa8f0caab0356ae510708bfb2fceae9144790",
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

@@ -56,7 +56,7 @@ global.Runners = {
fingerroot500: 1,
arrowhead600: 1,
arrowhead631: 1,
lovell700: -1,
lovell700: 1,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I thought we planned on staring with Lovell inactive. Then test pre and post Lovell

@jeremy-then jeremy-then marked this pull request as draft February 7, 2025 22:48
@jeremy-then jeremy-then closed this Feb 8, 2025
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.

4 participants