-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
chore(suite): unify staking files #15108
chore(suite): unify staking files #15108
Conversation
@dev-pvl please resovle conflicts |
1d7add7
to
1e45c7e
Compare
@tomasklim done |
1e45c7e
to
2c4608c
Compare
// Define signature constants | ||
const STAKE_SIGNATURE = '0x3a29dbae'; | ||
const UNSTAKE_SIGNATURE = '0x76ec871c'; | ||
const CLAIM_SIGNATURE = '0x33986ffa'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can those be added to your lib? and we just import it from @everstake/sdk?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, it could be added. But let's do this as a part of the separate PR. I remember we also had some hardcoded values in the blockbook that didn't belong to it.
return isStakeTypeTx(signature) ? signatureToStakeNameMap[signature] : null; | ||
}; | ||
|
||
export const getUnstakeAmountByEthereumDataHex = (dataHex?: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think some of those utils would be interesting for your sdk or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, you're right. But let's do it separately
You have unused dependencies error @dev-pvl |
2c4608c
to
7d6c59a
Compare
Description
Combined all stake utils into a single file.
Moved constants into wallet-constants and pulled non-type items out of type files.
Renamed a few files to make things easier to find
Related Issue
Resolve #13754