@@ -1817,12 +1817,15 @@ impl serde::Serialize for Params {
18171817 if self . lending_event_nonce_queue_size != 0 {
18181818 len += 1 ;
18191819 }
1820- if self . oracle_participant_base_num != 0 {
1820+ if ! self . allowed_oracle_participants . is_empty ( ) {
18211821 len += 1 ;
18221822 }
18231823 if self . oracle_participant_num != 0 {
18241824 len += 1 ;
18251825 }
1826+ if self . oracle_participant_threshold != 0 {
1827+ len += 1 ;
1828+ }
18261829 if self . nonce_generation_batch_size != 0 {
18271830 len += 1 ;
18281831 }
@@ -1849,15 +1852,21 @@ impl serde::Serialize for Params {
18491852 & self . lending_event_nonce_queue_size ,
18501853 ) ?;
18511854 }
1852- if self . oracle_participant_base_num != 0 {
1855+ if ! self . allowed_oracle_participants . is_empty ( ) {
18531856 struct_ser. serialize_field (
1854- "oracleParticipantBaseNum " ,
1855- & self . oracle_participant_base_num ,
1857+ "allowedOracleParticipants " ,
1858+ & self . allowed_oracle_participants ,
18561859 ) ?;
18571860 }
18581861 if self . oracle_participant_num != 0 {
18591862 struct_ser. serialize_field ( "oracleParticipantNum" , & self . oracle_participant_num ) ?;
18601863 }
1864+ if self . oracle_participant_threshold != 0 {
1865+ struct_ser. serialize_field (
1866+ "oracleParticipantThreshold" ,
1867+ & self . oracle_participant_threshold ,
1868+ ) ?;
1869+ }
18611870 if self . nonce_generation_batch_size != 0 {
18621871 struct_ser. serialize_field (
18631872 "nonceGenerationBatchSize" ,
@@ -1885,10 +1894,12 @@ impl<'de> serde::Deserialize<'de> for Params {
18851894 "dateInterval" ,
18861895 "lending_event_nonce_queue_size" ,
18871896 "lendingEventNonceQueueSize" ,
1888- "oracle_participant_base_num " ,
1889- "oracleParticipantBaseNum " ,
1897+ "allowed_oracle_participants " ,
1898+ "allowedOracleParticipants " ,
18901899 "oracle_participant_num" ,
18911900 "oracleParticipantNum" ,
1901+ "oracle_participant_threshold" ,
1902+ "oracleParticipantThreshold" ,
18921903 "nonce_generation_batch_size" ,
18931904 "nonceGenerationBatchSize" ,
18941905 ] ;
@@ -1900,8 +1911,9 @@ impl<'de> serde::Deserialize<'de> for Params {
19001911 DateEventNonceQueueSize ,
19011912 DateInterval ,
19021913 LendingEventNonceQueueSize ,
1903- OracleParticipantBaseNum ,
1914+ AllowedOracleParticipants ,
19041915 OracleParticipantNum ,
1916+ OracleParticipantThreshold ,
19051917 NonceGenerationBatchSize ,
19061918 }
19071919 #[ cfg( feature = "serde" ) ]
@@ -1941,12 +1953,15 @@ impl<'de> serde::Deserialize<'de> for Params {
19411953 "lendingEventNonceQueueSize" | "lending_event_nonce_queue_size" => {
19421954 Ok ( GeneratedField :: LendingEventNonceQueueSize )
19431955 }
1944- "oracleParticipantBaseNum " | "oracle_participant_base_num " => {
1945- Ok ( GeneratedField :: OracleParticipantBaseNum )
1956+ "allowedOracleParticipants " | "allowed_oracle_participants " => {
1957+ Ok ( GeneratedField :: AllowedOracleParticipants )
19461958 }
19471959 "oracleParticipantNum" | "oracle_participant_num" => {
19481960 Ok ( GeneratedField :: OracleParticipantNum )
19491961 }
1962+ "oracleParticipantThreshold" | "oracle_participant_threshold" => {
1963+ Ok ( GeneratedField :: OracleParticipantThreshold )
1964+ }
19501965 "nonceGenerationBatchSize" | "nonce_generation_batch_size" => {
19511966 Ok ( GeneratedField :: NonceGenerationBatchSize )
19521967 }
@@ -1974,8 +1989,9 @@ impl<'de> serde::Deserialize<'de> for Params {
19741989 let mut date_event_nonce_queue_size__ = None ;
19751990 let mut date_interval__ = None ;
19761991 let mut lending_event_nonce_queue_size__ = None ;
1977- let mut oracle_participant_base_num__ = None ;
1992+ let mut allowed_oracle_participants__ = None ;
19781993 let mut oracle_participant_num__ = None ;
1994+ let mut oracle_participant_threshold__ = None ;
19791995 let mut nonce_generation_batch_size__ = None ;
19801996 while let Some ( k) = map_. next_key ( ) ? {
19811997 match k {
@@ -2024,16 +2040,13 @@ impl<'de> serde::Deserialize<'de> for Params {
20242040 . 0 ,
20252041 ) ;
20262042 }
2027- GeneratedField :: OracleParticipantBaseNum => {
2028- if oracle_participant_base_num__ . is_some ( ) {
2043+ GeneratedField :: AllowedOracleParticipants => {
2044+ if allowed_oracle_participants__ . is_some ( ) {
20292045 return Err ( serde:: de:: Error :: duplicate_field (
2030- "oracleParticipantBaseNum " ,
2046+ "allowedOracleParticipants " ,
20312047 ) ) ;
20322048 }
2033- oracle_participant_base_num__ = Some (
2034- map_. next_value :: < :: pbjson:: private:: NumberDeserialize < _ > > ( ) ?
2035- . 0 ,
2036- ) ;
2049+ allowed_oracle_participants__ = Some ( map_. next_value ( ) ?) ;
20372050 }
20382051 GeneratedField :: OracleParticipantNum => {
20392052 if oracle_participant_num__. is_some ( ) {
@@ -2046,6 +2059,17 @@ impl<'de> serde::Deserialize<'de> for Params {
20462059 . 0 ,
20472060 ) ;
20482061 }
2062+ GeneratedField :: OracleParticipantThreshold => {
2063+ if oracle_participant_threshold__. is_some ( ) {
2064+ return Err ( serde:: de:: Error :: duplicate_field (
2065+ "oracleParticipantThreshold" ,
2066+ ) ) ;
2067+ }
2068+ oracle_participant_threshold__ = Some (
2069+ map_. next_value :: < :: pbjson:: private:: NumberDeserialize < _ > > ( ) ?
2070+ . 0 ,
2071+ ) ;
2072+ }
20492073 GeneratedField :: NonceGenerationBatchSize => {
20502074 if nonce_generation_batch_size__. is_some ( ) {
20512075 return Err ( serde:: de:: Error :: duplicate_field (
@@ -2067,8 +2091,10 @@ impl<'de> serde::Deserialize<'de> for Params {
20672091 date_interval : date_interval__,
20682092 lending_event_nonce_queue_size : lending_event_nonce_queue_size__
20692093 . unwrap_or_default ( ) ,
2070- oracle_participant_base_num : oracle_participant_base_num__ . unwrap_or_default ( ) ,
2094+ allowed_oracle_participants : allowed_oracle_participants__ . unwrap_or_default ( ) ,
20712095 oracle_participant_num : oracle_participant_num__. unwrap_or_default ( ) ,
2096+ oracle_participant_threshold : oracle_participant_threshold__
2097+ . unwrap_or_default ( ) ,
20722098 nonce_generation_batch_size : nonce_generation_batch_size__. unwrap_or_default ( ) ,
20732099 } )
20742100 }
0 commit comments