Skip to content

Commit

Permalink
feat: deploy scripts for zkstack node
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstevens19 committed Jan 10, 2025
1 parent ed3d1cf commit 28685cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const verifyContract = async (data: {
bytecode: string;
}) => {
// Skip verification for local networks
if (hre.network.name === 'inMemoryNode') {
if (hre.network.name === 'inMemoryNode' || hre.network.name === "zkstackMigrationNode") {
console.log('Skipping contract verification on local network');
return 0;
}
Expand Down
6 changes: 6 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ const config: HardhatUserConfig = {
ethNetwork: 'localhost', // in-memory node doesn't support eth node; removing this line will cause an error
zksync: true,
},
zkstackMigrationNode: {
url: 'http://localhost:3050',
chainId: 271,
zksync: true,
ethNetwork: 'sepolia',
},
hardhat: {
zksync: true,
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"deploy:local:fr": "DEPLOY_FR=true hardhat deploy-zksync --script deploy.ts --network inMemoryNode",
"deploy:local:migration": "DEPLOY_MIGRATION=true hardhat deploy-zksync --script deploy.ts --network inMemoryNode",
"deploy:local:migration:fr": "DEPLOY_MIGRATION=true DEPLOY_FR=true hardhat deploy-zksync --script deploy.ts --network inMemoryNode",
"deploy:zkstack::migration": "DEPLOY_MIGRATION=true DEPLOY_FR=true hardhat deploy-zksync --script deploy.ts --network zkstackMigrationNode",
"interact": "hardhat deploy-zksync --script interact.ts",
"compile": "hardhat compile",
"clean": "hardhat clean",
Expand Down

0 comments on commit 28685cb

Please sign in to comment.