11use sc_service:: ChainType ;
2- use sp_core:: sr25519;
2+ // use sp_core::sr25519;
3+ use sp_core:: { crypto:: UncheckedInto } ;
4+
35use hex_literal:: hex;
46
57use super :: {
6- get_account_id_from_seed, get_collator_keys_from_seed, session_keys, SAFE_XCM_VERSION , Extensions ,
8+ /* get_account_id_from_seed, get_collator_keys_from_seed,*/ session_keys, SAFE_XCM_VERSION , Extensions ,
79} ;
810
911use cumulus_primitives_core:: ParaId ;
@@ -20,6 +22,11 @@ pub fn get_chain_spec() -> HashedChainSpec {
2022 properties. insert ( "tokenSymbol" . into ( ) , "HASH" . into ( ) ) ;
2123 properties. insert ( "tokenDecimals" . into ( ) , 18 . into ( ) ) ;
2224 properties. insert ( "ss58Format" . into ( ) , 3000 . into ( ) ) ;
25+ properties. insert ( "prefix" . into ( ) , 3000 . into ( ) ) ;
26+ properties. insert ( "network" . into ( ) , "hashed" . into ( ) ) ;
27+ properties. insert ( "displayName" . into ( ) , "Hashed Network" . into ( ) ) ;
28+ properties. insert ( "standardAccount" . into ( ) , "*25519" . into ( ) ) ;
29+ properties. insert ( "website" . into ( ) , "https://hashed.network" . into ( ) ) ;
2330
2431 // REVIEW: this is where the Hashed genesis is customized, for now,
2532 // it is just a duplicate of the development configuration
@@ -32,30 +39,25 @@ pub fn get_chain_spec() -> HashedChainSpec {
3239 // initial collators.
3340 vec ! [
3441 (
35- get_account_id_from_seed:: <sr25519:: Public >( "Alice" ) ,
36- get_collator_keys_from_seed( "Alice" ) ,
42+ // LocalTestnet
43+ // 5DHun9L82cdeZfR5ufzsod4tBfcU2AoQT3XJoRpCoasYefQj
44+ hex![ "364e8e853de71a91892b8ce50308b4229c0c21863a7ec788d5e4f2f5f957e224" ] . into( ) ,
45+ hex![ "364e8e853de71a91892b8ce50308b4229c0c21863a7ec788d5e4f2f5f957e224" ] . unchecked_into( ) ,
3746 ) ,
3847 (
39- get_account_id_from_seed:: <sr25519:: Public >( "Bob" ) ,
40- get_collator_keys_from_seed( "Bob" ) ,
48+ // Coll2
49+ // 5FcANChPbU6sNa4TxGiPMAKookH8u1XdUw9K2ruS3G2SYvHR
50+ hex![ "9cb28bbb15e92ab4431f3ada24b5026c8a6c00ac236dd3ebf0196718c1d2f021" ] . into( ) ,
51+ hex![ "9cb28bbb15e92ab4431f3ada24b5026c8a6c00ac236dd3ebf0196718c1d2f021" ] . unchecked_into( ) ,
4152 ) ,
4253 ] ,
4354 vec ! [
44- get_account_id_from_seed:: <sr25519:: Public >( "Alice" ) ,
45- get_account_id_from_seed:: <sr25519:: Public >( "Bob" ) ,
46- get_account_id_from_seed:: <sr25519:: Public >( "Charlie" ) ,
47- get_account_id_from_seed:: <sr25519:: Public >( "Dave" ) ,
48- get_account_id_from_seed:: <sr25519:: Public >( "Eve" ) ,
49- get_account_id_from_seed:: <sr25519:: Public >( "Ferdie" ) ,
50- get_account_id_from_seed:: <sr25519:: Public >( "Alice//stash" ) ,
51- get_account_id_from_seed:: <sr25519:: Public >( "Bob//stash" ) ,
52- get_account_id_from_seed:: <sr25519:: Public >( "Charlie//stash" ) ,
53- get_account_id_from_seed:: <sr25519:: Public >( "Dave//stash" ) ,
54- get_account_id_from_seed:: <sr25519:: Public >( "Eve//stash" ) ,
55- get_account_id_from_seed:: <sr25519:: Public >( "Ferdie//stash" ) ,
55+ // LocalTestnet
56+ // 5DHun9L82cdeZfR5ufzsod4tBfcU2AoQT3XJoRpCoasYefQj
57+ hex![ "364e8e853de71a91892b8ce50308b4229c0c21863a7ec788d5e4f2f5f957e224" ] . into( ) ,
5658 ] ,
57- hex ! [ "f83a0218e100ce3ede12c5d403116ef034124c62b181fff6935403cea9396d2f " ] . into ( ) ,
58- 1000 . into ( ) ,
59+ hex ! [ "364e8e853de71a91892b8ce50308b4229c0c21863a7ec788d5e4f2f5f957e224 " ] . into ( ) ,
60+ 3000 . into ( ) ,
5961 )
6062 } ,
6163 Vec :: new ( ) ,
@@ -65,7 +67,7 @@ pub fn get_chain_spec() -> HashedChainSpec {
6567 Some ( properties) ,
6668 Extensions {
6769 relay_chain : "rococo-local" . into ( ) , // You MUST set this to the correct network!
68- para_id : 1000 ,
70+ para_id : 2000 ,
6971 } ,
7072 )
7173}
0 commit comments