-
Notifications
You must be signed in to change notification settings - Fork 6
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
Remove requirement of providing an explicit staking target #20
Remove requirement of providing an explicit staking target #20
Conversation
412405a
to
5098d29
Compare
@@ -153,6 +180,28 @@ client.Ethereum.listRewards(filter).then((resp) => { | |||
|
|||
</details> | |||
|
|||
## Build |
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.
Maybe we can make a Contributing.md
and link that doc here? That way, someone who is trying to build/contribute to this codebase can refer to a different file than someone trying to use it. My preference would be to keep the top-level README as concise as possible.
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.
Yes, lets do that in a separate PR
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.
Lets remove projects from here, no need to anyone to have to worry about them!
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.
LGTM
This PR is counterpart to coinbase/staking-client-library-ts#20 It helps remove the requirement to provide an explicit staking target (integrator contract address for ethereum partial staking and validator address for sol) while making staking api calls. As we move to a self-service world, we want customers to be able to just come and stake to default staking targets i.e. default integration contracts on both Holesky and Mainnet in the case of Partial ETH staking and default coinbase validators on both Devnet and Mainnet in the case of sol staking. As a result, we have updated the examples to not take integrator contract or validator address as required inputs.
This PR helps remove the requirement to provide an explicit staking target (integrator contract address for ethereum partial staking and validator address for sol) while making staking api calls.
As we move to a self-service world, we want customers to be able to just come and stake to default staking targets i.e. default integration contracts on both Holesky and Mainnet in the case of Partial ETH staking and default coinbase validators on both Devnet and Mainnet in the case of sol staking.
As a result, we make the integrator contract address validator address an optional filed. When not set, the backend defaults that network's default staking target. For Partial ETH staking, customers that have worked with us to get a dedicated contract deployed, we default to their specific integrator contract address.