GithubHelp home page GithubHelp logo

sijepo2 / zksync-deploy-hardhat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcuswentz/zksync-deploy-hardhat

0.0 0.0 0.0 109 KB

License: MIT License

JavaScript 20.20% TypeScript 66.51% Solidity 13.28%

zksync-deploy-hardhat's Introduction

zkSync Hardhat project

Install dependencies

yarn

Prepare contract for deployment with zksolc compiler to generate artifacts-zk

npx hardhat compile

Deploy contract to zkSync Era Goerli Network with artifacts-zk from compilation

npx hardhat deploy-zksync --script deploy-simple-storage.ts

Verify contract at address on zkSync Era Goerli Network

⚠️ It is recommended to lock in Solidity compiler versions to make it simpler to verify contract bytecode. ⚠️

npx hardhat verify <CONTRACT_ADDRESS>

Deployed and verified contract

Greeter.sol:

https://goerli.explorer.zksync.io/address/0x7755EF17bea2793429cfa1b8AAF535a839612112#contract

bulkerSender.sol:

https://goerli.explorer.zksync.io/address/0x974489D9ae3a5EEC1c3bbaa1D9626A0bb8C40756#contract

SimpleStorage.sol

https://goerli.explorer.zksync.io/address/0x1bb6aF5061f4Bf6ad40B48d85C5E6AaD30de1F24#contract

Read Write Subscribe To Smart Contract

⚠️ Websocket RPC endpoints are needed to subscribe to smart contract events. ⚠️

node scripts/SimpleStorage/readWriteSubscribe.js

zksync-deploy-hardhat's People

Contributors

marcuswentz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.