-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat : added different proxy versions in proxy client #20
Conversation
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
There was a problem hiding this comment.
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> { |
There was a problem hiding this comment.
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>, |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let type_of_proxy = match proxy_type { | |
let proxy_code = match proxy_type { |