@@ -189,10 +189,10 @@ pub mod pallet {
189189 pub ip_type : u8 ,
190190 }
191191
192- /// Struct for ChainIdentities.
192+ /// Struct for ChainIdentities. (DEPRECATED for V2)
193193 pub type ChainIdentityOf = ChainIdentity ;
194194
195- /// Data structure for Chain Identities.
195+ /// Data structure for Chain Identities. (DEPRECATED for V2)
196196 #[ crate :: freeze_struct( "bbfd00438dbe2b58" ) ]
197197 #[ derive( Encode , Decode , Default , TypeInfo , Clone , PartialEq , Eq , Debug ) ]
198198 pub struct ChainIdentity {
@@ -210,9 +210,32 @@ pub mod pallet {
210210 pub additional : Vec < u8 > ,
211211 }
212212
213- /// Struct for SubnetIdentities.
213+ /// Struct for ChainIdentities.
214+ pub type ChainIdentityOfV2 = ChainIdentityV2 ;
215+
216+ /// Data structure for Chain Identities.
217+ #[ crate :: freeze_struct( "ad72a270be7b59d7" ) ]
218+ #[ derive( Encode , Decode , Default , TypeInfo , Clone , PartialEq , Eq , Debug ) ]
219+ pub struct ChainIdentityV2 {
220+ /// The name of the chain identity
221+ pub name : Vec < u8 > ,
222+ /// The URL associated with the chain identity
223+ pub url : Vec < u8 > ,
224+ /// The github repository associated with the identity
225+ pub github_repo : Vec < u8 > ,
226+ /// The image representation of the chain identity
227+ pub image : Vec < u8 > ,
228+ /// The Discord information for the chain identity
229+ pub discord : Vec < u8 > ,
230+ /// A description of the chain identity
231+ pub description : Vec < u8 > ,
232+ /// Additional information about the chain identity
233+ pub additional : Vec < u8 > ,
234+ }
235+
236+ /// Struct for SubnetIdentities. (DEPRECATED for V2)
214237 pub type SubnetIdentityOf = SubnetIdentity ;
215- /// Data structure for Subnet Identities
238+ /// Data structure for Subnet Identities. (DEPRECATED for V2)
216239 #[ crate :: freeze_struct( "f448dc3dad763108" ) ]
217240 #[ derive( Encode , Decode , Default , TypeInfo , Clone , PartialEq , Eq , Debug ) ]
218241 pub struct SubnetIdentity {
@@ -223,6 +246,28 @@ pub mod pallet {
223246 /// The subnet's contact
224247 pub subnet_contact : Vec < u8 > ,
225248 }
249+
250+ /// Struct for SubnetIdentitiesV2.
251+ pub type SubnetIdentityOfV2 = SubnetIdentityV2 ;
252+ /// Data structure for Subnet Identities
253+ #[ crate :: freeze_struct( "e002be4cd05d7b3e" ) ]
254+ #[ derive( Encode , Decode , Default , TypeInfo , Clone , PartialEq , Eq , Debug ) ]
255+ pub struct SubnetIdentityV2 {
256+ /// The name of the subnet
257+ pub subnet_name : Vec < u8 > ,
258+ /// The github repository associated with the subnet
259+ pub github_repo : Vec < u8 > ,
260+ /// The subnet's contact
261+ pub subnet_contact : Vec < u8 > ,
262+ /// The subnet's website
263+ pub subnet_url : Vec < u8 > ,
264+ /// The subnet's discord
265+ pub discord : Vec < u8 > ,
266+ /// The subnet's description
267+ pub description : Vec < u8 > ,
268+ /// Additional information about the subnet
269+ pub additional : Vec < u8 > ,
270+ }
226271 /// ============================
227272 /// ==== Staking + Accounts ====
228273 /// ============================
@@ -1426,14 +1471,22 @@ pub mod pallet {
14261471 PrometheusInfoOf ,
14271472 OptionQuery ,
14281473 > ;
1429- #[ pallet:: storage] // --- MAP ( coldkey ) --> identity
1474+ #[ pallet:: storage] // --- MAP ( coldkey ) --> identity. (DEPRECATED for V2)
14301475 pub type Identities < T : Config > =
14311476 StorageMap < _ , Blake2_128Concat , T :: AccountId , ChainIdentityOf , OptionQuery > ;
14321477
1433- #[ pallet:: storage] // --- MAP ( netuid ) --> identity
1478+ #[ pallet:: storage] // --- MAP ( coldkey ) --> identity
1479+ pub type IdentitiesV2 < T : Config > =
1480+ StorageMap < _ , Blake2_128Concat , T :: AccountId , ChainIdentityOfV2 , OptionQuery > ;
1481+
1482+ #[ pallet:: storage] // --- MAP ( netuid ) --> identity. (DEPRECATED for V2)
14341483 pub type SubnetIdentities < T : Config > =
14351484 StorageMap < _ , Blake2_128Concat , u16 , SubnetIdentityOf , OptionQuery > ;
14361485
1486+ #[ pallet:: storage] // --- MAP ( netuid ) --> identityV2
1487+ pub type SubnetIdentitiesV2 < T : Config > =
1488+ StorageMap < _ , Blake2_128Concat , u16 , SubnetIdentityOfV2 , OptionQuery > ;
1489+
14371490 /// =================================
14381491 /// ==== Axon / Promo Endpoints =====
14391492 /// =================================
0 commit comments