Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat : added different proxy versions in proxy client #20

Merged

Conversation

ocdbytes
Copy link
Collaborator

@ocdbytes ocdbytes commented Jul 2, 2024

  • Added different proxy versions :
    • OpenZeppelin proxy
    • Starknet Proxy 3.0.2
    • Starknet Proxy 5.0.0
    • Unsafe Proxy (for fast testing or dev environment)
  • Added proxy client functions :
    • deploy_contract_behind_safe_proxy_3_0_2
    • deploy_contract_behind_safe_proxy_5_0_0

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's move this code into an interfaces folder with different files depending on version number

function proxyAcceptGovernance() external
]"#,
);

#[async_trait]
pub trait ProxySupportTrait<M: Middleware> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's rename this with the version number as well


pub struct StarkgateManagerContractClient {
manager: StarkgateManager<LocalWalletSignerMiddleware>,
proxy_support: ProxySupport<LocalWalletSignerMiddleware>,
proxy_support: ProxySupportLatest<LocalWalletSignerMiddleware>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's rename this as well according to versions

@@ -62,8 +57,14 @@ pub async fn deploy_contract_behind_safe_proxy<T: Tokenize>(

log::debug!("ℹ️ Contract deployed : {:?}", contract.address().clone());

let type_of_proxy = match proxy_type {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let type_of_proxy = match proxy_type {
let proxy_code = match proxy_type {

@apoorvsadana apoorvsadana merged commit 71dec05 into keep-starknet-strange:main Jul 3, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants