Comments (3)
You have to use the hardhat plugin to compile the contract. Python SDK is the client for interaction with ZkSync node
I can provide an example soon
from zksync2-python.
Here are the steps that you may compile your contracts
- create folder for example zksync_contracts
- inside it run:
yarn init
- add to it the hardhat.config.ts file that is listed below
- create sub folder like contracts and organize contract files there
- run
yarn add --dev ts-node typescript
- run
npm i @matterlabs/hardhat-zksync-solc
- run
npm i @openzeppelin/contracts
if you are going to use it - run
yarn hardhat compile
hardhat.config.ts:
import '@matterlabs/hardhat-zksync-solc';
export default {
zksolc: {
version: '1.3.8',
compilerSource: 'binary',
settings: {
isSystem: true
}
},
networks: {
hardhat: {
zksync: true
}
},
solidity: {
version: '0.8.16'
}
};
from zksync2-python.
There is a guide how to use docker to compile solidity smart contracts.
from zksync2-python.
Related Issues (20)
- The block explorer always says "Fail with error 'mv'" error HOT 8
- timeout with withdraw HOT 3
- insufficient funds HOT 3
- deposit.py module errors HOT 2
- Issues when interacting with a local node HOT 1
- eth_estimate_gas: web3.exceptions.ContractLogicError: execution reverted: Failed to submit transaction: insufficient balance for transfer HOT 5
- Example deposit testnet transaction fails on chain: "Fail with error 'qp'" HOT 7
- Unable to install zksync2-python SDK on Python 3.10 on Mac HOT 3
- eth_estimate_gas always return web3.exceptions.ContractLogicError: execution reverted: Failed to submit transaction: cannot estimate gas HOT 4
- version on pypi 0.4.0 while there is 0.5.0 available HOT 1
- pip install zksync2 fail HOT 2
- INTERNAL_ERROR: insufficient funds HOT 1
- transfer eth {'code': 3, 'message': 'failed to validate the transaction. reason: Validation revert: Failed to pay for the transaction: Failed to pay the fee to the operator', 'data': '0x'}
- Unable to verify compiled and deployed contract HOT 1
- Make target fails with: 17.62 Processing pydantic_core-2.4.0.tar.gz HOT 1
- eth_estimate_gas error in testnet HOT 3
- pysha3 conflict HOT 5
- web3 version dependency has a bug HOT 4
- The automated release is failing 🚨
- txn 113 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zksync2-python.