Giter Club home page Giter Club logo

zksync-messages's Introduction

zksync-messages

Ethereum zkSync messages dapp (proof of concept)

zinc contract code

This contract should allow you to create an account and post short messages.

Later, once the contract starts getting into some stable phase, some frontend will be added here.

Updates

2021-09-16

Trying to deploy first test version of the contract.

2021-09-15

Started working on the contract as a zkSync learning.

ZINC installation

This is an example installation for macOS and zsh. You're free to do it in your way, but the concept stays the same - download, unzip and add directory to the PATH.

Check the latest release https://github.com/matter-labs/zinc/releases

Then download it and unzip in some place:

curl -L -o zinc-0.2.3-macos.zip "https://github.com/matter-labs/zinc/releases/download/0.2.3/zinc-0.2.3-macos.zip" && \
  unzip zinc-0.2.3-macos.zip -d ~/ && \
  rm -f zinc-0.2.3-macos.zip

Then add this new directory to your PATH (zsh):

echo -n 'export PATH=~/zinc-0.2.3-macos:$PATH' >> ~/.zshrc

Now this will be available for you:

  • zargo package manager
  • znc Zinc compiler
  • zvm Zinc virtual machine

Install VSCode zinc extension:

Useful resources:

Notes

Creating the "messages" contract:

The contract name needs to be unique on the network

zargo new --type contract messages

Checking all the contracts deployed to the network

zargo download --list --network rinkeby

Deploying the contract

if you don't have it, create a private_key file with a private key to your test account:

touch ./messages/private_key
code ./messages/private_key

Edit ./messages/Zargo.toml file to adjust contract details. Edit ./messages/data/input.json file to adjust contract arguments.

cd ./messages
zargo publish --network rinkeby --instance default

zksync-messages's People

Contributors

michal-wrzosek avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.