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

feat(cardano): conway staking certificates #86

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions common/protob/messages-cardano.proto
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ enum CardanoCertificateType {
STAKE_DEREGISTRATION = 1;
STAKE_DELEGATION = 2;
STAKE_POOL_REGISTRATION = 3;
STAKE_REGISTRATION_CONWAY = 7;
STAKE_DEREGISTRATION_CONWAY = 8;
davidmisiak marked this conversation as resolved.
Show resolved Hide resolved
VOTE_DELEGATION = 9;
}

enum CardanoDRepType {
KEY_HASH = 0;
SCRIPT_HASH = 1;
ABSTAIN = 2;
NO_CONFIDENCE = 3;
}

enum CardanoPoolRelayType {
Expand Down Expand Up @@ -225,6 +235,7 @@ message CardanoSignTxInit {
optional uint64 total_collateral = 20;
optional uint32 reference_inputs_count = 21 [default=0];
optional bool chunkify = 22; // display the address in chunks of 4 characters
optional bool tag_cbor_sets = 23 [default=false]; // use tag 258 for sets in cbor
}

/**
Expand Down Expand Up @@ -335,6 +346,16 @@ message CardanoPoolParametersType {
required uint32 relays_count = 12; // number of pool relays
}

/**
* DRep delegation parameters
* @embed
*/
message CardanoDRep {
required CardanoDRepType type = 1; // drep type
optional bytes key_hash = 2; // drep key hash
optional bytes script_hash = 3; // drep script hash
}

/**
* Request: Transaction certificate data
* @next CardanoTxItemAck
Expand All @@ -346,6 +367,8 @@ message CardanoTxCertificate {
optional CardanoPoolParametersType pool_parameters = 4; // used for stake pool registration certificate
optional bytes script_hash = 5; // stake credential script hash
optional bytes key_hash = 6; // stake credential key hash
optional uint64 deposit = 7; // used for stake key registration certificate
optional CardanoDRep drep = 8; // used for vote delegation certificate
}

/**
Expand Down
Loading
Loading