11use {
22 crate :: {
33 api:: { get_register_uri, ChainId } ,
4- chain:: ethereum:: { ProviderInfo , SignablePythContract } ,
4+ chain:: ethereum:: { EntropyStructsV2ProviderInfo , SignablePythContract } ,
55 command:: register_provider:: { register_provider_from_config, CommitmentMetadata } ,
66 config:: { Config , EthereumConfig , SetupProviderOptions } ,
77 state:: { HashChainState , PebbleHashChain } ,
@@ -178,7 +178,7 @@ async fn setup_chain_provider(
178178
179179async fn sync_uri (
180180 contract : & Arc < SignablePythContract > ,
181- provider_info : & ProviderInfo ,
181+ provider_info : & EntropyStructsV2ProviderInfo ,
182182 uri : String ,
183183) -> Result < ( ) > {
184184 let uri_as_bytes: Bytes = AbiBytes :: from ( uri. as_str ( ) ) . into ( ) ;
@@ -198,7 +198,7 @@ async fn sync_uri(
198198
199199async fn sync_fee (
200200 contract : & Arc < SignablePythContract > ,
201- provider_info : & ProviderInfo ,
201+ provider_info : & EntropyStructsV2ProviderInfo ,
202202 provider_fee : u128 ,
203203) -> Result < ( ) > {
204204 if provider_info. fee_in_wei != provider_fee {
@@ -217,7 +217,7 @@ async fn sync_fee(
217217
218218async fn sync_fee_manager (
219219 contract : & Arc < SignablePythContract > ,
220- provider_info : & ProviderInfo ,
220+ provider_info : & EntropyStructsV2ProviderInfo ,
221221 fee_manager : Address ,
222222) -> Result < ( ) > {
223223 if provider_info. fee_manager != fee_manager {
@@ -231,7 +231,7 @@ async fn sync_fee_manager(
231231
232232async fn sync_max_num_hashes (
233233 contract : & Arc < SignablePythContract > ,
234- provider_info : & ProviderInfo ,
234+ provider_info : & EntropyStructsV2ProviderInfo ,
235235 max_num_hashes : u32 ,
236236) -> Result < ( ) > {
237237 if provider_info. max_num_hashes != max_num_hashes {
0 commit comments