-
Notifications
You must be signed in to change notification settings - Fork 721
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
CIP-1694 make space for DRep certificates #5108
CIP-1694 make space for DRep certificates #5108
Conversation
-- | A resource that identifies the delegation target. At the moment a delegation | ||
-- target can only be a stake pool. | ||
newtype DelegationTarget | ||
= StakePoolDelegationTarget (VerificationKeyOrHashOrFile StakePoolKey) |
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.
DelegationTarget
is has one constructor StakePoolDelegationTarget
which wraps VerificationKeyOrHashOrFile StakePoolKey
.
Later on, another constructor will be added for DReps.
@@ -315,7 +315,7 @@ friendlyCertificate = | |||
StakeAddressDeregistrationCertificate credential -> | |||
"stake address deregistration" | |||
.= object [friendlyStakeCredential credential] | |||
StakeAddressDelegationCertificate credential poolId -> | |||
StakeAddressPoolDelegationCertificate credential poolId -> |
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.
Rename StakeAddressDelegationCertificate
to StakeAddressPoolDelegationCertificate
so that we can introduce StakeAddressDRepDelegationCertificate
later.
f950861
to
2d221ff
Compare
… identifying DReps for delegation
…nCertificate. This will make space for CIP-1926 which will introduce the StakeAddressDRepDelegationCertificate.
2d221ff
to
1232c20
Compare
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!
CIP-1694 introduces the idea of also delegating DReps in addition to stake pools.
The code currently use names that assume we can only delegate to stake pools from a stake-address.
This PR renames them to specifically refer to stake pools so that it is easier to add support for DReps later.