Skip to content

Commit

Permalink
Merge pull request #21 from karnotxyz/feat/added_proxy_versions
Browse files Browse the repository at this point in the history
feat : updated trait names as per version
  • Loading branch information
apoorvsadana authored Jul 3, 2024
2 parents 71dec05 + 04e5b40 commit aa18f67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/l2/starknet-proxy-client/src/clients/proxy_3_0_2.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::interfaces::proxy::{ProxyInitializeData, ProxySupportTrait};
use crate::interfaces::proxy::{ProxyInitializeData, ProxySupport3_0_2Trait};
use async_trait::async_trait;
use ethers::addressbook::Address;
use ethers::contract::{abigen, ContractError};
Expand All @@ -20,7 +20,7 @@ abigen!(
);

#[async_trait]
impl<T, M: Middleware> ProxySupportTrait<M> for T
impl<T, M: Middleware> ProxySupport3_0_2Trait<M> for T
where
T: AsRef<ProxySupport3_0_2<M>> + Send + Sync,
{
Expand Down
4 changes: 2 additions & 2 deletions crates/l2/starknet-proxy-client/src/clients/proxy_5_0_0.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::interfaces::proxy::{ProxyInitializeData, ProxySupportLatestTrait};
use crate::interfaces::proxy::{ProxyInitializeData, ProxySupport5_0_0Trait};
use async_trait::async_trait;
use ethers::addressbook::Address;
use ethers::contract::{abigen, ContractError};
Expand Down Expand Up @@ -29,7 +29,7 @@ abigen!(
);

#[async_trait]
impl<T, M: Middleware> ProxySupportLatestTrait<M> for T
impl<T, M: Middleware> ProxySupport5_0_0Trait<M> for T
where
T: AsRef<ProxySupport5_0_0<M>> + Send + Sync,
{
Expand Down
4 changes: 2 additions & 2 deletions crates/l2/starknet-proxy-client/src/interfaces/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use ethers::prelude::{Bytes, TransactionReceipt, I256, U256};
use utils::errors::Error;

#[async_trait]
pub trait ProxySupportTrait<M: Middleware> {
pub trait ProxySupport3_0_2Trait<M: Middleware> {
async fn is_frozen(&self) -> Result<bool, Error<M>>;
async fn initialize(&self, data: Bytes) -> Result<Option<TransactionReceipt>, Error<M>>;
async fn initialize_with<const N: usize>(
Expand Down Expand Up @@ -38,7 +38,7 @@ pub trait ProxySupportTrait<M: Middleware> {
}

#[async_trait]
pub trait ProxySupportLatestTrait<M: Middleware> {
pub trait ProxySupport5_0_0Trait<M: Middleware> {
async fn is_frozen(&self) -> Result<bool, Error<M>>;
async fn initialize(&self, data: Bytes) -> Result<Option<TransactionReceipt>, Error<M>>;
async fn initialize_with<const N: usize>(
Expand Down

0 comments on commit aa18f67

Please sign in to comment.