Skip to content

Commit

Permalink
feat: zksync make targets for clean, build, deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-99 committed Feb 16, 2024
1 parent e1e259a commit 40ba812
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 44 deletions.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,25 @@ starknet-pause:
starknet-unpause:
@. ./contracts/starknet/.env && ./contracts/starknet/change_pause_state.sh unpause

## new zksync make targets:
install zksync:
@cd ./contracts/zksync/ && yarn install

zksync-clean:
@cd ./contracts/zksync/ && yarn clean

zksync-build: zksync-clean
@cd ./contracts/zksync/ && yarn compile

zksync-test:
@cd ./contracts/zksync/ && yarn test

zksync-deploy:
@cd ./contracts/zksync/ && yarn deploy

# zksync-upgrade:


test:
make starknet-test
make ethereum-test
Expand Down
10 changes: 5 additions & 5 deletions contracts/zksync/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# zkSync Hardhat project template
# zkSync Escrow

This project was scaffolded with [zksync-cli](https://github.com/matter-labs/zksync-cli).
This project was initialized with [zksync-cli](https://github.com/matter-labs/zksync-cli).

## Project Layout

- `/contracts`: Contains solidity smart contracts.
- `/deploy`: Scripts for contract deployment and interaction.
- `/test`: Test files.
- `/src`: Contains source files, solidity smart contracts.
- `/scripts`: Scripts for contract deployment and interaction.
- `/tests`: Test files.
- `hardhat.config.ts`: Configuration settings.

## How to Use
Expand Down
4 changes: 2 additions & 2 deletions contracts/zksync/contracts/escrow.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

//import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
//import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
// import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
// import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
//import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";


Expand Down
1 change: 0 additions & 1 deletion contracts/zksync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"repository": "https://github.com/matter-labs/zksync-hardhat-template.git",
"scripts": {
"deploy": "hardhat deploy-zksync --script deploy.ts",
"interact": "hardhat deploy-zksync --script interact.ts",
"compile": "hardhat compile",
"clean": "hardhat clean",
"test": "hardhat test --network hardhat"
Expand Down
36 changes: 0 additions & 36 deletions contracts/zksync/scripts/interact.ts

This file was deleted.

0 comments on commit 40ba812

Please sign in to comment.