@@ -62,6 +62,14 @@ pub struct AccountCollection {
6262 pub asset_lock_address_topup : Option < Account > ,
6363 /// Asset lock shielded address top-up account (optional)
6464 pub asset_lock_shielded_address_topup : Option < Account > ,
65+ /// Blockchain identities ECDSA account
66+ pub blockchain_identities_ecdsa : Option < Account > ,
67+ /// Blockchain identities ECDSA_HASH160 account
68+ pub blockchain_identities_ecdsa_hash160 : Option < Account > ,
69+ /// Blockchain identities BLS account
70+ pub blockchain_identities_bls : Option < Account > ,
71+ /// Blockchain identities BLS_HASH160 account
72+ pub blockchain_identities_bls_hash160 : Option < Account > ,
6573 /// Provider voting keys (optional)
6674 pub provider_voting_keys : Option < Account > ,
6775 /// Provider owner keys (optional)
@@ -93,6 +101,10 @@ impl AccountCollection {
93101 identity_invitation : None ,
94102 asset_lock_address_topup : None ,
95103 asset_lock_shielded_address_topup : None ,
104+ blockchain_identities_ecdsa : None ,
105+ blockchain_identities_ecdsa_hash160 : None ,
106+ blockchain_identities_bls : None ,
107+ blockchain_identities_bls_hash160 : None ,
96108 provider_voting_keys : None ,
97109 provider_owner_keys : None ,
98110 #[ cfg( feature = "bls" ) ]
@@ -147,6 +159,18 @@ impl AccountCollection {
147159 AccountType :: AssetLockShieldedAddressTopUp => {
148160 self . asset_lock_shielded_address_topup = Some ( account) ;
149161 }
162+ AccountType :: BlockchainIdentitiesECDSA => {
163+ self . blockchain_identities_ecdsa = Some ( account) ;
164+ }
165+ AccountType :: BlockchainIdentitiesECDSAHash160 => {
166+ self . blockchain_identities_ecdsa_hash160 = Some ( account) ;
167+ }
168+ AccountType :: BlockchainIdentitiesBLS => {
169+ self . blockchain_identities_bls = Some ( account) ;
170+ }
171+ AccountType :: BlockchainIdentitiesBLSHash160 => {
172+ self . blockchain_identities_bls_hash160 = Some ( account) ;
173+ }
150174 AccountType :: ProviderVotingKeys => {
151175 self . provider_voting_keys = Some ( account) ;
152176 }
@@ -246,6 +270,14 @@ impl AccountCollection {
246270 AccountType :: AssetLockShieldedAddressTopUp => {
247271 self . asset_lock_shielded_address_topup . is_some ( )
248272 }
273+ AccountType :: BlockchainIdentitiesECDSA => self . blockchain_identities_ecdsa . is_some ( ) ,
274+ AccountType :: BlockchainIdentitiesECDSAHash160 => {
275+ self . blockchain_identities_ecdsa_hash160 . is_some ( )
276+ }
277+ AccountType :: BlockchainIdentitiesBLS => self . blockchain_identities_bls . is_some ( ) ,
278+ AccountType :: BlockchainIdentitiesBLSHash160 => {
279+ self . blockchain_identities_bls_hash160 . is_some ( )
280+ }
249281 AccountType :: ProviderVotingKeys => self . provider_voting_keys . is_some ( ) ,
250282 AccountType :: ProviderOwnerKeys => self . provider_owner_keys . is_some ( ) ,
251283 #[ cfg( feature = "bls" ) ]
@@ -319,6 +351,14 @@ impl AccountCollection {
319351 AccountType :: AssetLockShieldedAddressTopUp => {
320352 self . asset_lock_shielded_address_topup . as_ref ( )
321353 }
354+ AccountType :: BlockchainIdentitiesECDSA => self . blockchain_identities_ecdsa . as_ref ( ) ,
355+ AccountType :: BlockchainIdentitiesECDSAHash160 => {
356+ self . blockchain_identities_ecdsa_hash160 . as_ref ( )
357+ }
358+ AccountType :: BlockchainIdentitiesBLS => self . blockchain_identities_bls . as_ref ( ) ,
359+ AccountType :: BlockchainIdentitiesBLSHash160 => {
360+ self . blockchain_identities_bls_hash160 . as_ref ( )
361+ }
322362 AccountType :: ProviderVotingKeys => self . provider_voting_keys . as_ref ( ) ,
323363 AccountType :: ProviderOwnerKeys => self . provider_owner_keys . as_ref ( ) ,
324364 AccountType :: ProviderOperatorKeys => None , // BLSAccount, use bls_account_of_type
@@ -386,6 +426,14 @@ impl AccountCollection {
386426 AccountType :: AssetLockShieldedAddressTopUp => {
387427 self . asset_lock_shielded_address_topup . as_mut ( )
388428 }
429+ AccountType :: BlockchainIdentitiesECDSA => self . blockchain_identities_ecdsa . as_mut ( ) ,
430+ AccountType :: BlockchainIdentitiesECDSAHash160 => {
431+ self . blockchain_identities_ecdsa_hash160 . as_mut ( )
432+ }
433+ AccountType :: BlockchainIdentitiesBLS => self . blockchain_identities_bls . as_mut ( ) ,
434+ AccountType :: BlockchainIdentitiesBLSHash160 => {
435+ self . blockchain_identities_bls_hash160 . as_mut ( )
436+ }
389437 AccountType :: ProviderVotingKeys => self . provider_voting_keys . as_mut ( ) ,
390438 AccountType :: ProviderOwnerKeys => self . provider_owner_keys . as_mut ( ) ,
391439 AccountType :: ProviderOperatorKeys => None , // BLSAccount, use bls_account_of_type_mut
@@ -457,6 +505,19 @@ impl AccountCollection {
457505 accounts. push ( account) ;
458506 }
459507
508+ if let Some ( account) = & self . blockchain_identities_ecdsa {
509+ accounts. push ( account) ;
510+ }
511+ if let Some ( account) = & self . blockchain_identities_ecdsa_hash160 {
512+ accounts. push ( account) ;
513+ }
514+ if let Some ( account) = & self . blockchain_identities_bls {
515+ accounts. push ( account) ;
516+ }
517+ if let Some ( account) = & self . blockchain_identities_bls_hash160 {
518+ accounts. push ( account) ;
519+ }
520+
460521 if let Some ( account) = & self . provider_voting_keys {
461522 accounts. push ( account) ;
462523 }
@@ -505,6 +566,19 @@ impl AccountCollection {
505566 accounts. push ( account) ;
506567 }
507568
569+ if let Some ( account) = & mut self . blockchain_identities_ecdsa {
570+ accounts. push ( account) ;
571+ }
572+ if let Some ( account) = & mut self . blockchain_identities_ecdsa_hash160 {
573+ accounts. push ( account) ;
574+ }
575+ if let Some ( account) = & mut self . blockchain_identities_bls {
576+ accounts. push ( account) ;
577+ }
578+ if let Some ( account) = & mut self . blockchain_identities_bls_hash160 {
579+ accounts. push ( account) ;
580+ }
581+
508582 if let Some ( account) = & mut self . provider_voting_keys {
509583 accounts. push ( account) ;
510584 }
@@ -607,6 +681,10 @@ impl AccountCollection {
607681 && self . identity_invitation . is_none ( )
608682 && self . asset_lock_address_topup . is_none ( )
609683 && self . asset_lock_shielded_address_topup . is_none ( )
684+ && self . blockchain_identities_ecdsa . is_none ( )
685+ && self . blockchain_identities_ecdsa_hash160 . is_none ( )
686+ && self . blockchain_identities_bls . is_none ( )
687+ && self . blockchain_identities_bls_hash160 . is_none ( )
610688 && self . provider_voting_keys . is_none ( )
611689 && self . provider_owner_keys . is_none ( ) ;
612690
@@ -634,6 +712,10 @@ impl AccountCollection {
634712 self . identity_invitation = None ;
635713 self . asset_lock_address_topup = None ;
636714 self . asset_lock_shielded_address_topup = None ;
715+ self . blockchain_identities_ecdsa = None ;
716+ self . blockchain_identities_ecdsa_hash160 = None ;
717+ self . blockchain_identities_bls = None ;
718+ self . blockchain_identities_bls_hash160 = None ;
637719 self . provider_voting_keys = None ;
638720 self . provider_owner_keys = None ;
639721 #[ cfg( feature = "bls" ) ]
0 commit comments