@@ -1817,12 +1817,15 @@ impl serde::Serialize for Params {
1817
1817
if self . lending_event_nonce_queue_size != 0 {
1818
1818
len += 1 ;
1819
1819
}
1820
- if self . oracle_participant_base_num != 0 {
1820
+ if ! self . allowed_oracle_participants . is_empty ( ) {
1821
1821
len += 1 ;
1822
1822
}
1823
1823
if self . oracle_participant_num != 0 {
1824
1824
len += 1 ;
1825
1825
}
1826
+ if self . oracle_participant_threshold != 0 {
1827
+ len += 1 ;
1828
+ }
1826
1829
if self . nonce_generation_batch_size != 0 {
1827
1830
len += 1 ;
1828
1831
}
@@ -1849,15 +1852,21 @@ impl serde::Serialize for Params {
1849
1852
& self . lending_event_nonce_queue_size ,
1850
1853
) ?;
1851
1854
}
1852
- if self . oracle_participant_base_num != 0 {
1855
+ if ! self . allowed_oracle_participants . is_empty ( ) {
1853
1856
struct_ser. serialize_field (
1854
- "oracleParticipantBaseNum " ,
1855
- & self . oracle_participant_base_num ,
1857
+ "allowedOracleParticipants " ,
1858
+ & self . allowed_oracle_participants ,
1856
1859
) ?;
1857
1860
}
1858
1861
if self . oracle_participant_num != 0 {
1859
1862
struct_ser. serialize_field ( "oracleParticipantNum" , & self . oracle_participant_num ) ?;
1860
1863
}
1864
+ if self . oracle_participant_threshold != 0 {
1865
+ struct_ser. serialize_field (
1866
+ "oracleParticipantThreshold" ,
1867
+ & self . oracle_participant_threshold ,
1868
+ ) ?;
1869
+ }
1861
1870
if self . nonce_generation_batch_size != 0 {
1862
1871
struct_ser. serialize_field (
1863
1872
"nonceGenerationBatchSize" ,
@@ -1885,10 +1894,12 @@ impl<'de> serde::Deserialize<'de> for Params {
1885
1894
"dateInterval" ,
1886
1895
"lending_event_nonce_queue_size" ,
1887
1896
"lendingEventNonceQueueSize" ,
1888
- "oracle_participant_base_num " ,
1889
- "oracleParticipantBaseNum " ,
1897
+ "allowed_oracle_participants " ,
1898
+ "allowedOracleParticipants " ,
1890
1899
"oracle_participant_num" ,
1891
1900
"oracleParticipantNum" ,
1901
+ "oracle_participant_threshold" ,
1902
+ "oracleParticipantThreshold" ,
1892
1903
"nonce_generation_batch_size" ,
1893
1904
"nonceGenerationBatchSize" ,
1894
1905
] ;
@@ -1900,8 +1911,9 @@ impl<'de> serde::Deserialize<'de> for Params {
1900
1911
DateEventNonceQueueSize ,
1901
1912
DateInterval ,
1902
1913
LendingEventNonceQueueSize ,
1903
- OracleParticipantBaseNum ,
1914
+ AllowedOracleParticipants ,
1904
1915
OracleParticipantNum ,
1916
+ OracleParticipantThreshold ,
1905
1917
NonceGenerationBatchSize ,
1906
1918
}
1907
1919
#[ cfg( feature = "serde" ) ]
@@ -1941,12 +1953,15 @@ impl<'de> serde::Deserialize<'de> for Params {
1941
1953
"lendingEventNonceQueueSize" | "lending_event_nonce_queue_size" => {
1942
1954
Ok ( GeneratedField :: LendingEventNonceQueueSize )
1943
1955
}
1944
- "oracleParticipantBaseNum " | "oracle_participant_base_num " => {
1945
- Ok ( GeneratedField :: OracleParticipantBaseNum )
1956
+ "allowedOracleParticipants " | "allowed_oracle_participants " => {
1957
+ Ok ( GeneratedField :: AllowedOracleParticipants )
1946
1958
}
1947
1959
"oracleParticipantNum" | "oracle_participant_num" => {
1948
1960
Ok ( GeneratedField :: OracleParticipantNum )
1949
1961
}
1962
+ "oracleParticipantThreshold" | "oracle_participant_threshold" => {
1963
+ Ok ( GeneratedField :: OracleParticipantThreshold )
1964
+ }
1950
1965
"nonceGenerationBatchSize" | "nonce_generation_batch_size" => {
1951
1966
Ok ( GeneratedField :: NonceGenerationBatchSize )
1952
1967
}
@@ -1974,8 +1989,9 @@ impl<'de> serde::Deserialize<'de> for Params {
1974
1989
let mut date_event_nonce_queue_size__ = None ;
1975
1990
let mut date_interval__ = None ;
1976
1991
let mut lending_event_nonce_queue_size__ = None ;
1977
- let mut oracle_participant_base_num__ = None ;
1992
+ let mut allowed_oracle_participants__ = None ;
1978
1993
let mut oracle_participant_num__ = None ;
1994
+ let mut oracle_participant_threshold__ = None ;
1979
1995
let mut nonce_generation_batch_size__ = None ;
1980
1996
while let Some ( k) = map_. next_key ( ) ? {
1981
1997
match k {
@@ -2024,16 +2040,13 @@ impl<'de> serde::Deserialize<'de> for Params {
2024
2040
. 0 ,
2025
2041
) ;
2026
2042
}
2027
- GeneratedField :: OracleParticipantBaseNum => {
2028
- if oracle_participant_base_num__ . is_some ( ) {
2043
+ GeneratedField :: AllowedOracleParticipants => {
2044
+ if allowed_oracle_participants__ . is_some ( ) {
2029
2045
return Err ( serde:: de:: Error :: duplicate_field (
2030
- "oracleParticipantBaseNum " ,
2046
+ "allowedOracleParticipants " ,
2031
2047
) ) ;
2032
2048
}
2033
- oracle_participant_base_num__ = Some (
2034
- map_. next_value :: < :: pbjson:: private:: NumberDeserialize < _ > > ( ) ?
2035
- . 0 ,
2036
- ) ;
2049
+ allowed_oracle_participants__ = Some ( map_. next_value ( ) ?) ;
2037
2050
}
2038
2051
GeneratedField :: OracleParticipantNum => {
2039
2052
if oracle_participant_num__. is_some ( ) {
@@ -2046,6 +2059,17 @@ impl<'de> serde::Deserialize<'de> for Params {
2046
2059
. 0 ,
2047
2060
) ;
2048
2061
}
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
+ }
2049
2073
GeneratedField :: NonceGenerationBatchSize => {
2050
2074
if nonce_generation_batch_size__. is_some ( ) {
2051
2075
return Err ( serde:: de:: Error :: duplicate_field (
@@ -2067,8 +2091,10 @@ impl<'de> serde::Deserialize<'de> for Params {
2067
2091
date_interval : date_interval__,
2068
2092
lending_event_nonce_queue_size : lending_event_nonce_queue_size__
2069
2093
. 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 ( ) ,
2071
2095
oracle_participant_num : oracle_participant_num__. unwrap_or_default ( ) ,
2096
+ oracle_participant_threshold : oracle_participant_threshold__
2097
+ . unwrap_or_default ( ) ,
2072
2098
nonce_generation_batch_size : nonce_generation_batch_size__. unwrap_or_default ( ) ,
2073
2099
} )
2074
2100
}
0 commit comments