@@ -658,6 +658,13 @@ pub struct DRepRegistration {
658658 pub anchor : Option < Anchor > ,
659659}
660660
661+ #[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
662+ pub struct DRepRegistrationWithPos {
663+ pub reg : DRepRegistration ,
664+ pub tx_hash : [ u8 ; 32 ] ,
665+ pub cert_index : u64 ,
666+ }
667+
661668/// DRep Deregistration = unreg_drep_cert
662669#[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
663670pub struct DRepDeregistration {
@@ -668,6 +675,13 @@ pub struct DRepDeregistration {
668675 pub refund : Lovelace ,
669676}
670677
678+ #[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
679+ pub struct DRepDeregistrationWithPos {
680+ pub reg : DRepDeregistration ,
681+ pub tx_hash : [ u8 ; 32 ] ,
682+ pub cert_index : u64 ,
683+ }
684+
671685/// DRep Update = update_drep_cert
672686#[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
673687pub struct DRepUpdate {
@@ -678,6 +692,13 @@ pub struct DRepUpdate {
678692 pub anchor : Option < Anchor > ,
679693}
680694
695+ #[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
696+ pub struct DRepUpdateWithPos {
697+ pub reg : DRepUpdate ,
698+ pub tx_hash : [ u8 ; 32 ] ,
699+ pub cert_index : u64 ,
700+ }
701+
681702pub type CommitteeCredential = Credential ;
682703
683704/// Authorise a committee hot credential
@@ -1209,6 +1230,7 @@ pub enum Vote {
12091230pub struct VotingProcedure {
12101231 pub vote : Vote ,
12111232 pub anchor : Option < Anchor > ,
1233+ pub vote_index : u32 ,
12121234}
12131235
12141236#[ serde_as]
@@ -1375,13 +1397,13 @@ pub enum TxCertificate {
13751397 ResignCommitteeCold ( ResignCommitteeCold ) ,
13761398
13771399 /// DRep registration
1378- DRepRegistration ( DRepRegistration ) ,
1400+ DRepRegistration ( DRepRegistrationWithPos ) ,
13791401
13801402 /// DRep deregistration
1381- DRepDeregistration ( DRepDeregistration ) ,
1403+ DRepDeregistration ( DRepDeregistrationWithPos ) ,
13821404
13831405 /// DRep update
1384- DRepUpdate ( DRepUpdate ) ,
1406+ DRepUpdate ( DRepUpdateWithPos ) ,
13851407}
13861408
13871409#[ cfg( test) ]
@@ -1440,6 +1462,7 @@ mod tests {
14401462 VotingProcedure {
14411463 anchor : None ,
14421464 vote : Vote :: Abstain ,
1465+ vote_index : 0 ,
14431466 } ,
14441467 ) ;
14451468 voting. votes . insert (
0 commit comments