@@ -15,15 +15,13 @@ use cardano_blockchain_types::{
1515 pallas_traverse:: MultiEraTx ,
1616 MetadatumLabel , MultiEraBlock , TxnIndex ,
1717} ;
18- use cardano_chain_follower:: StakeAddress ;
1918use catalyst_types:: {
2019 catalyst_id:: { role_index:: RoleId , CatalystId } ,
2120 cbor_utils:: { report_duplicated_key, report_missing_keys} ,
2221 problem_report:: ProblemReport ,
2322 uuid:: UuidV4 ,
2423} ;
2524use cbork_utils:: decode_helper:: { decode_bytes, decode_helper, decode_map_len} ;
26- use ed25519_dalek:: VerifyingKey ;
2725use minicbor:: {
2826 decode:: { self } ,
2927 Decode , Decoder ,
@@ -84,15 +82,6 @@ pub struct Cip509 {
8482 ///
8583 /// This field is only present in role 0 registrations.
8684 catalyst_id : Option < CatalystId > ,
87- /// A list of stake addresses that were added to the chain.
88- stake_addresses : HashSet < StakeAddress > ,
89- /// A list of role public keys used in this registration.
90- public_keys : HashSet < VerifyingKey > ,
91- /// A list of updates to other chains containing Catalyst IDs and removed stake
92- /// addresses.
93- ///
94- /// A new RBAC registration can take ownership of stake addresses of other chains.
95- modified_chains : Vec < ( CatalystId , HashSet < StakeAddress > ) > ,
9685 /// Raw aux data associated with the transaction that CIP509 is attached to,
9786 raw_aux_data : Vec < u8 > ,
9887 /// A report potentially containing all the issues occurred during `Cip509` decoding
@@ -219,23 +208,6 @@ impl Cip509 {
219208 result
220209 }
221210
222- /// Updates and replaces information once it being processed by calling either
223- /// `update_chain` or `start_new_chain`.
224- #[ must_use]
225- pub ( crate ) fn put_validation_result (
226- self ,
227- stake_addresses : HashSet < StakeAddress > ,
228- public_keys : HashSet < VerifyingKey > ,
229- modified_chains : Vec < ( CatalystId , HashSet < StakeAddress > ) > ,
230- ) -> Self {
231- Self {
232- stake_addresses,
233- public_keys,
234- modified_chains,
235- ..self
236- }
237- }
238-
239211 /// Returns all role numbers present in this `Cip509` instance.
240212 #[ must_use]
241213 pub fn all_roles ( & self ) -> Vec < RoleId > {
@@ -303,24 +275,6 @@ impl Cip509 {
303275 self . catalyst_id . as_ref ( )
304276 }
305277
306- /// Returns stake addresses processed from either `update_chain` or `start_new_chain`.
307- #[ must_use]
308- pub fn stake_addresses ( & self ) -> & HashSet < StakeAddress > {
309- & self . stake_addresses
310- }
311-
312- /// Returns public keys processed from either `update_chain` or `start_new_chain`.
313- #[ must_use]
314- pub fn public_keys ( & self ) -> & HashSet < VerifyingKey > {
315- & self . public_keys
316- }
317-
318- /// Returns modified chains from either `update_chain` or `start_new_chain`.
319- #[ must_use]
320- pub fn modified_chains ( & self ) -> & Vec < ( CatalystId , HashSet < StakeAddress > ) > {
321- & self . modified_chains
322- }
323-
324278 /// Returns a list of addresses extracted from certificate URIs of a specific role.
325279 #[ must_use]
326280 pub fn certificate_addresses (
@@ -495,9 +449,6 @@ impl Decode<'_, DecodeContext<'_, '_>> for Cip509 {
495449 txn_hash,
496450 origin : decode_context. origin . clone ( ) ,
497451 catalyst_id : None ,
498- stake_addresses : HashSet :: new ( ) ,
499- public_keys : HashSet :: new ( ) ,
500- modified_chains : Vec :: new ( ) ,
501452 raw_aux_data : Vec :: new ( ) ,
502453 report : decode_context. report . clone ( ) ,
503454 } )
0 commit comments