@@ -507,11 +507,24 @@ impl BlockchainConfigParams {
507
507
ok ! ( self . get:: <ConfigParam43 >( ) ) . ok_or ( Error :: CellUnderflow )
508
508
}
509
509
510
- /// Updates a global id .
510
+ /// Updates size limits .
511
511
pub fn set_size_limits ( & mut self , size_limits : & SizeLimitsConfig ) -> Result < bool , Error > {
512
512
self . set_raw ( ConfigParam43 :: ID , ok ! ( CellBuilder :: build_from( size_limits) ) )
513
513
}
514
514
515
+ /// Returns authority params.
516
+ pub fn get_authority_params ( & self ) -> Result < AuthorityParams , Error > {
517
+ ok ! ( self . get:: <ConfigParam100 >( ) ) . ok_or ( Error :: CellUnderflow )
518
+ }
519
+
520
+ /// Updates authority params.
521
+ pub fn set_authority_params ( & mut self , params : AuthorityParams ) -> Result < bool , Error > {
522
+ self . set_raw (
523
+ ConfigParam100 :: ID ,
524
+ ok ! ( CellBuilder :: build_from( params) ) ,
525
+ )
526
+ }
527
+
515
528
/// Returns `true` if the config contains a param for the specified id.
516
529
pub fn contains < ' a , T : KnownConfigParam < ' a > > ( & ' a self ) -> Result < bool , Error > {
517
530
self . 0 . contains_key ( T :: ID )
@@ -1132,6 +1145,13 @@ define_config_params! {
1132
1145
/// Contains a [`MintOnceConfig`].
1133
1146
#[ serde( transparent) ]
1134
1147
50 => ConfigParam50 ( MintOnceConfig ) ,
1148
+
1149
+ /// Authority params
1150
+ ///
1151
+ /// Contains dictionary with special addresses (in masterchain) which can mark other accounts
1152
+ /// and system marks currency IDs.
1153
+ #[ serde( transparent) ]
1154
+ 100 => ConfigParam100 ( AuthorityParams ) ,
1135
1155
}
1136
1156
1137
1157
#[ cfg( feature = "serde" ) ]
0 commit comments