@@ -155,14 +155,14 @@ impl PythReceiver {
155155 Ok ( ( ) )
156156 }
157157
158- // pub fn update_price_feeds_if_necessary(
159- // &mut self,
160- // _update_data: Vec<Vec<u8>>,
161- // _price_ids: Vec<[u8; 32]>,
162- // _publish_times: Vec<u64>,
163- // ) {
164- // // dummy implementation
165- // }
158+ pub fn update_price_feeds_if_necessary (
159+ & mut self ,
160+ _update_data : Vec < Vec < u8 > > ,
161+ _price_ids : Vec < [ u8 ; 32 ] > ,
162+ _publish_times : Vec < u64 > ,
163+ ) {
164+ // dummy implementation
165+ }
166166
167167
168168 // fn update_price_feeds_internal(&mut self, update_data: Vec<u8>, price_ids: Vec<Address>, min_publish_time: u64, max_publish_time: u64, unique: bool) -> Result<(), PythReceiverError> {
@@ -256,54 +256,54 @@ impl PythReceiver {
256256 U256 :: from ( num_updates) . saturating_mul ( self . single_update_fee_in_wei . get ( ) )
257257 }
258258
259- // pub fn get_update_fee(&self, _update_data: Vec<Vec<u8>>) -> U256 {
260- // U256::from(0u8)
261- // }
262-
263- // pub fn get_twap_update_fee(&self, _update_data: Vec<Vec<u8>>) -> U256 {
264- // U256::from(0u8)
265- // }
266-
267- // pub fn parse_price_feed_updates(
268- // &mut self,
269- // _update_data: Vec<Vec<u8>>,
270- // _price_ids: Vec<[u8; 32]>,
271- // _min_publish_time: u64,
272- // _max_publish_time: u64,
273- // ) -> Vec<PriceInfoReturn> {
274- // Vec::new()
275- // }
276-
277- // pub fn parse_price_feed_updates_with_config(
278- // &mut self,
279- // _update_data: Vec<Vec<u8>>,
280- // _price_ids: Vec<[u8; 32]>,
281- // _min_allowed_publish_time: u64,
282- // _max_allowed_publish_time: u64,
283- // _check_uniqueness: bool,
284- // _check_update_data_is_minimal: bool,
285- // _store_updates_if_fresh: bool,
286- // ) -> (Vec<PriceInfoReturn>, Vec<u64>) {
287- // (Vec::new(), Vec::new())
288- // }
289-
290- // pub fn parse_twap_price_feed_updates(
291- // &mut self,
292- // _update_data: Vec<Vec<u8>>,
293- // _price_ids: Vec<[u8; 32]>,
294- // ) -> Vec<PriceInfoReturn> {
295- // Vec::new()
296- // }
297-
298- // pub fn parse_price_feed_updates_unique(
299- // &mut self,
300- // _update_data: Vec<Vec<u8>>,
301- // _price_ids: Vec<[u8; 32]>,
302- // _min_publish_time: u64,
303- // _max_publish_time: u64,
304- // ) -> Vec<PriceInfoReturn> {
305- // Vec::new()
306- // }
259+ pub fn get_update_fee ( & self , _update_data : Vec < Vec < u8 > > ) -> U256 {
260+ U256 :: from ( 0u8 )
261+ }
262+
263+ pub fn get_twap_update_fee ( & self , _update_data : Vec < Vec < u8 > > ) -> U256 {
264+ U256 :: from ( 0u8 )
265+ }
266+
267+ pub fn parse_price_feed_updates (
268+ & mut self ,
269+ _update_data : Vec < Vec < u8 > > ,
270+ _price_ids : Vec < [ u8 ; 32 ] > ,
271+ _min_publish_time : u64 ,
272+ _max_publish_time : u64 ,
273+ ) -> Vec < PriceInfoReturn > {
274+ Vec :: new ( )
275+ }
276+
277+ pub fn parse_price_feed_updates_with_config (
278+ & mut self ,
279+ _update_data : Vec < Vec < u8 > > ,
280+ _price_ids : Vec < [ u8 ; 32 ] > ,
281+ _min_allowed_publish_time : u64 ,
282+ _max_allowed_publish_time : u64 ,
283+ _check_uniqueness : bool ,
284+ _check_update_data_is_minimal : bool ,
285+ _store_updates_if_fresh : bool ,
286+ ) -> ( Vec < PriceInfoReturn > , Vec < u64 > ) {
287+ ( Vec :: new ( ) , Vec :: new ( ) )
288+ }
289+
290+ pub fn parse_twap_price_feed_updates (
291+ & mut self ,
292+ _update_data : Vec < Vec < u8 > > ,
293+ _price_ids : Vec < [ u8 ; 32 ] > ,
294+ ) -> Vec < PriceInfoReturn > {
295+ Vec :: new ( )
296+ }
297+
298+ pub fn parse_price_feed_updates_unique (
299+ & mut self ,
300+ _update_data : Vec < Vec < u8 > > ,
301+ _price_ids : Vec < [ u8 ; 32 ] > ,
302+ _min_publish_time : u64 ,
303+ _max_publish_time : u64 ,
304+ ) -> Vec < PriceInfoReturn > {
305+ Vec :: new ( )
306+ }
307307
308308 #[ inline]
309309 fn is_no_older_than ( & self , publish_time : U64 , max_age : u64 ) -> bool {
0 commit comments