@@ -808,14 +808,6 @@ pub struct PoolMetadata {
808808 pub hash : DataHash ,
809809}
810810
811- /// Pool registration with position
812- #[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
813- pub struct PoolRegistrationWithPos {
814- pub reg : PoolRegistration ,
815- pub tx_hash : TxHash ,
816- pub cert_index : u64 ,
817- }
818-
819811/// Pool registration data
820812#[ serde_as]
821813#[ derive(
@@ -869,14 +861,6 @@ pub struct PoolRegistration {
869861 pub pool_metadata : Option < PoolMetadata > ,
870862}
871863
872- // Pool Retirment with position
873- #[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
874- pub struct PoolRetirementWithPos {
875- pub ret : PoolRetirement ,
876- pub tx_hash : TxHash ,
877- pub cert_index : u64 ,
878- }
879-
880864/// Pool retirement data
881865#[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
882866pub struct PoolRetirement {
@@ -897,23 +881,23 @@ pub enum PoolUpdateAction {
897881/// Pool Update Event
898882#[ derive( Debug , Clone , Serialize , Deserialize ) ]
899883pub struct PoolUpdateEvent {
900- pub tx_hash : TxHash ,
884+ pub tx_identifier : TxIdentifier ,
901885 pub cert_index : u64 ,
902886 pub action : PoolUpdateAction ,
903887}
904888
905889impl PoolUpdateEvent {
906- pub fn register_event ( tx_hash : TxHash , cert_index : u64 ) -> Self {
890+ pub fn register_event ( tx_identifier : TxIdentifier , cert_index : u64 ) -> Self {
907891 Self {
908- tx_hash ,
892+ tx_identifier ,
909893 cert_index,
910894 action : PoolUpdateAction :: Registered ,
911895 }
912896 }
913897
914- pub fn retire_event ( tx_hash : TxHash , cert_index : u64 ) -> Self {
898+ pub fn retire_event ( tx_identifier : TxIdentifier , cert_index : u64 ) -> Self {
915899 Self {
916- tx_hash ,
900+ tx_identifier ,
917901 cert_index,
918902 action : PoolUpdateAction :: Deregistered ,
919903 }
@@ -1140,13 +1124,6 @@ pub struct DRepRegistration {
11401124 pub anchor : Option < Anchor > ,
11411125}
11421126
1143- #[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
1144- pub struct DRepRegistrationWithPos {
1145- pub reg : DRepRegistration ,
1146- pub tx_hash : TxHash ,
1147- pub cert_index : u64 ,
1148- }
1149-
11501127/// DRep Deregistration = unreg_drep_cert
11511128#[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
11521129pub struct DRepDeregistration {
@@ -1157,13 +1134,6 @@ pub struct DRepDeregistration {
11571134 pub refund : Lovelace ,
11581135}
11591136
1160- #[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
1161- pub struct DRepDeregistrationWithPos {
1162- pub reg : DRepDeregistration ,
1163- pub tx_hash : TxHash ,
1164- pub cert_index : u64 ,
1165- }
1166-
11671137/// DRep Update = update_drep_cert
11681138#[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
11691139pub struct DRepUpdate {
@@ -1174,13 +1144,6 @@ pub struct DRepUpdate {
11741144 pub anchor : Option < Anchor > ,
11751145}
11761146
1177- #[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
1178- pub struct DRepUpdateWithPos {
1179- pub reg : DRepUpdate ,
1180- pub tx_hash : TxHash ,
1181- pub cert_index : u64 ,
1182- }
1183-
11841147pub type CommitteeCredential = Credential ;
11851148
11861149/// Authorise a committee hot credential
@@ -1794,21 +1757,14 @@ pub struct GovernanceOutcome {
17941757 pub action_to_perform : GovernanceOutcomeVariant ,
17951758}
17961759
1797- #[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
1798- pub struct StakeAddressWithPos {
1799- pub stake_address : StakeAddress ,
1800- pub tx_index : u64 ,
1801- pub cert_index : u64 ,
1802- }
1803-
18041760/// Certificate in a transaction
18051761#[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
18061762pub enum TxCertificate {
18071763 /// Default
18081764 None ( ( ) ) ,
18091765
18101766 /// Stake registration
1811- StakeRegistration ( StakeAddressWithPos ) ,
1767+ StakeRegistration ( StakeAddress ) ,
18121768
18131769 /// Stake de-registration
18141770 StakeDeregistration ( StakeAddress ) ,
@@ -1817,10 +1773,10 @@ pub enum TxCertificate {
18171773 StakeDelegation ( StakeDelegation ) ,
18181774
18191775 /// Pool registration
1820- PoolRegistrationWithPos ( PoolRegistrationWithPos ) ,
1776+ PoolRegistration ( PoolRegistration ) ,
18211777
18221778 /// Pool retirement
1823- PoolRetirementWithPos ( PoolRetirementWithPos ) ,
1779+ PoolRetirement ( PoolRetirement ) ,
18241780
18251781 /// Genesis key delegation
18261782 GenesisKeyDelegation ( GenesisKeyDelegation ) ,
@@ -1856,13 +1812,20 @@ pub enum TxCertificate {
18561812 ResignCommitteeCold ( ResignCommitteeCold ) ,
18571813
18581814 /// DRep registration
1859- DRepRegistration ( DRepRegistrationWithPos ) ,
1815+ DRepRegistration ( DRepRegistration ) ,
18601816
18611817 /// DRep deregistration
1862- DRepDeregistration ( DRepDeregistrationWithPos ) ,
1818+ DRepDeregistration ( DRepDeregistration ) ,
18631819
18641820 /// DRep update
1865- DRepUpdate ( DRepUpdateWithPos ) ,
1821+ DRepUpdate ( DRepUpdate ) ,
1822+ }
1823+
1824+ #[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
1825+ pub struct TxCertificateWithPos {
1826+ pub cert : TxCertificate ,
1827+ pub tx_identifier : TxIdentifier ,
1828+ pub cert_index : u64 ,
18661829}
18671830
18681831#[ derive( Debug , Default , Clone , serde:: Serialize , serde:: Deserialize ) ]
0 commit comments