Skip to content

Commit

Permalink
update : proxy client
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun Jangra authored and Arun Jangra committed Jul 2, 2024
1 parent 4770a16 commit f8fb4da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ use crate::interfaces::manager::StarkgateManager;
use utils::{LocalWalletSignerMiddleware, StarknetContractClient};

use ethers::types::Address;
use starknet_proxy_client::clients::proxy_3_0_2::ProxySupport;
use starknet_proxy_client::clients::proxy_5_0_0::ProxySupportLatest;

pub struct StarkgateManagerContractClient {
manager: StarkgateManager<LocalWalletSignerMiddleware>,
proxy_support: ProxySupport<LocalWalletSignerMiddleware>,
proxy_support: ProxySupportLatest<LocalWalletSignerMiddleware>,
manager_implementation: Address,
}

Expand All @@ -20,7 +20,7 @@ impl StarkgateManagerContractClient {
) -> Self {
Self {
manager: StarkgateManager::new(address, client.clone()),
proxy_support: ProxySupport::new(address, client.clone()),
proxy_support: ProxySupportLatest::new(address, client.clone()),
manager_implementation: implementation_address,
}
}
Expand All @@ -32,8 +32,8 @@ impl AsRef<StarkgateManager<LocalWalletSignerMiddleware>> for StarkgateManagerCo
}
}

impl AsRef<ProxySupport<LocalWalletSignerMiddleware>> for StarkgateManagerContractClient {
fn as_ref(&self) -> &ProxySupport<LocalWalletSignerMiddleware> {
impl AsRef<ProxySupportLatest<LocalWalletSignerMiddleware>> for StarkgateManagerContractClient {
fn as_ref(&self) -> &ProxySupportLatest<LocalWalletSignerMiddleware> {
&self.proxy_support
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ use crate::interfaces::registry::StarkgateRegistry;
use utils::{LocalWalletSignerMiddleware, StarknetContractClient};

use ethers::types::Address;
use starknet_proxy_client::clients::proxy_3_0_2::ProxySupport;
use starknet_proxy_client::clients::proxy_5_0_0::ProxySupportLatest;

pub struct StarkgateRegistryContractClient {
registry: StarkgateRegistry<LocalWalletSignerMiddleware>,
proxy_support: ProxySupport<LocalWalletSignerMiddleware>,
proxy_support: ProxySupportLatest<LocalWalletSignerMiddleware>,
registry_implementation: Address,
}

Expand All @@ -20,7 +20,7 @@ impl StarkgateRegistryContractClient {
) -> Self {
Self {
registry: StarkgateRegistry::new(address, client.clone()),
proxy_support: ProxySupport::new(address, client.clone()),
proxy_support: ProxySupportLatest::new(address, client.clone()),
registry_implementation: implementation_address,
}
}
Expand All @@ -31,8 +31,8 @@ impl AsRef<StarkgateRegistry<LocalWalletSignerMiddleware>> for StarkgateRegistry
}
}

impl AsRef<ProxySupport<LocalWalletSignerMiddleware>> for StarkgateRegistryContractClient {
fn as_ref(&self) -> &ProxySupport<LocalWalletSignerMiddleware> {
impl AsRef<ProxySupportLatest<LocalWalletSignerMiddleware>> for StarkgateRegistryContractClient {
fn as_ref(&self) -> &ProxySupportLatest<LocalWalletSignerMiddleware> {
&self.proxy_support
}
}
Expand Down

0 comments on commit f8fb4da

Please sign in to comment.