Skip to content

Commit

Permalink
feat : updated enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun Jangra authored and Arun Jangra committed Jul 3, 2024
1 parent 7a72a86 commit 6d53b51
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion crates/l2/starkgate-manager-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub async fn deploy_starkgate_manager_behind_safe_proxy(
client.clone(),
STARKGATE_MANAGER,
NO_CONSTRUCTOR_ARG,
ProxyVersion::SafeProxyLatest,
ProxyVersion::SafeProxy5_0_0,
)
.await?;

Expand Down
2 changes: 1 addition & 1 deletion crates/l2/starkgate-registry-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub async fn deploy_starkgate_registry_behind_safe_proxy(
client.clone(),
STARKGATE_REGISTRY,
NO_CONSTRUCTOR_ARG,
ProxyVersion::SafeProxyLatest,
ProxyVersion::SafeProxy5_0_0,
)
.await?;

Expand Down
4 changes: 2 additions & 2 deletions crates/l2/starknet-core-contract-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub async fn deploy_starknet_sovereign_behind_safe_proxy(
client.clone(),
STARKNET_SOVEREIGN,
NO_CONSTRUCTOR_ARG,
ProxyVersion::SafeProxy,
ProxyVersion::SafeProxy3_0_2,
)
.await?;

Expand Down Expand Up @@ -84,7 +84,7 @@ pub async fn deploy_starknet_validity_behind_safe_proxy(
client.clone(),
STARKNET,
NO_CONSTRUCTOR_ARG,
ProxyVersion::SafeProxy,
ProxyVersion::SafeProxy3_0_2,
)
.await?;

Expand Down
2 changes: 1 addition & 1 deletion crates/l2/starknet-eth-bridge-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub async fn deploy_starknet_eth_bridge_behind_safe_proxy(
client.clone(),
STARKNET_ETH_BRIDGE,
NO_CONSTRUCTOR_ARG,
ProxyVersion::SafeProxy,
ProxyVersion::SafeProxy3_0_2,
)
.await?;

Expand Down
8 changes: 4 additions & 4 deletions crates/l2/starknet-proxy-client/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ pub enum ProxyVersion {
/// deploys unsafe proxy.
UnsafeProxy,
/// deploys safe proxy (starknet proxy version 3.0.2)
SafeProxy,
SafeProxy3_0_2,
/// deploys safe proxy (starknet proxy version 5.0.0)
SafeProxyLatest,
SafeProxy5_0_0,
}

pub async fn deploy_contract_behind_proxy<T: Tokenize>(
Expand All @@ -58,8 +58,8 @@ pub async fn deploy_contract_behind_proxy<T: Tokenize>(
log::debug!("ℹ️ Contract deployed : {:?}", contract.address().clone());

let type_of_proxy = match proxy_type {
ProxyVersion::SafeProxy => SAFE_PROXY_3_0_2,
ProxyVersion::SafeProxyLatest => SAFE_PROXY_5_0_0,
ProxyVersion::SafeProxy3_0_2 => SAFE_PROXY_3_0_2,
ProxyVersion::SafeProxy5_0_0 => SAFE_PROXY_5_0_0,
ProxyVersion::UnsafeProxy => UNSAFE_PROXY,
};

Expand Down
2 changes: 1 addition & 1 deletion crates/l2/starknet-token-bridge-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub async fn deploy_starknet_token_bridge_behind_safe_proxy(
client.clone(),
STARKNET_TOKEN_BRIDGE,
NO_CONSTRUCTOR_ARG,
ProxyVersion::SafeProxyLatest,
ProxyVersion::SafeProxy5_0_0,
)
.await?;

Expand Down

0 comments on commit 6d53b51

Please sign in to comment.