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: zksync deployment logic [ZK-002] #21

Open
wants to merge 20 commits into
base: feat/zksync-sdk-provider
Choose a base branch
from

Conversation

ljankovic-txfusion
Copy link
Collaborator

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

  • Introduced ZKSyncDeployer class and utils for fetching zksync contract artifacts
  • Added ZkSync to ExplorerFamily enum
  • Added checks for ISM Compatibility

Related issues

None

Backward compatibility

Yes

Testing

Build passing

@@ -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;
Copy link
Collaborator Author

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

Copy link

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

picked NetworkProvider

Copy link

@nambrot nambrot left a 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

@@ -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;
Copy link

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?

@@ -67,6 +67,16 @@ export const MUTABLE_ISM_TYPE = [
IsmType.PAUSABLE,
];

// ISM types that require static deployment
export const STATIC_ISM_TYPE = [
Copy link

Choose a reason for hiding this comment

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

Nit:

Suggested change
export const STATIC_ISM_TYPE = [
export const STATIC_ISM_TYPES = [

Copy link
Collaborator Author

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

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