-
Notifications
You must be signed in to change notification settings - Fork 1
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: zksync deployment logic [ZK-002] #21
base: feat/zksync-sdk-provider
Are you sure you want to change the base?
feat: zksync deployment logic [ZK-002] #21
Conversation
…eat/zksync-deployment-functions
typescript/sdk/src/deploy/proxy.ts
Outdated
@@ -7,6 +8,8 @@ import { transferOwnershipTransactions } from '../contracts/contracts.js'; | |||
import { AnnotatedEV5Transaction } from '../providers/ProviderType.js'; | |||
import { DeployedOwnableConfig } from '../types.js'; | |||
|
|||
type Provider = ethers.providers.Provider | ZKSyncProvider; |
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.
ethers Provider and ZKSync Provider are not compatible with each other
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.
Can we maybe pick a more descriptive name for the Union 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.
picked NetworkProvider
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.
lgtm, but would like @yorhodes to double check the ISM related logic
typescript/sdk/src/deploy/proxy.ts
Outdated
@@ -7,6 +8,8 @@ import { transferOwnershipTransactions } from '../contracts/contracts.js'; | |||
import { AnnotatedEV5Transaction } from '../providers/ProviderType.js'; | |||
import { DeployedOwnableConfig } from '../types.js'; | |||
|
|||
type Provider = ethers.providers.Provider | ZKSyncProvider; |
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.
Can we maybe pick a more descriptive name for the Union type?
typescript/sdk/src/ism/types.ts
Outdated
@@ -67,6 +67,16 @@ export const MUTABLE_ISM_TYPE = [ | |||
IsmType.PAUSABLE, | |||
]; | |||
|
|||
// ISM types that require static deployment | |||
export const STATIC_ISM_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.
Nit:
export const STATIC_ISM_TYPE = [ | |
export const STATIC_ISM_TYPES = [ |
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.
Resolved. Made a separate commit, since its used in multiple places
…in ISM type definitions
…eat/zksync-deployment-functions
…eat/zksync-deployment-functions
…eat/zksync-deployment-functions
…eat/zksync-deployment-functions
…eat/zksync-deployment-functions
…eat/zksync-deployment-functions
…eat/zksync-deployment-functions
…eat/zksync-deployment-functions
…eat/zksync-deployment-functions
…eat/zksync-deployment-functions
Description
This PR adds ZKSync-specific deployment logic to the SDK, introducing specialized utilities for contract deployment, artifact management, and technical stack compatibility checks for ZKSync.
Drive-by changes
Related issues
None
Backward compatibility
Yes
Testing
Build passing