Coder Social home page Coder Social logo

pranjalrana11 / dapp-playground Goto Github PK

View Code? Open in Web Editor NEW

This project forked from partisiablockchain/dapp-playground

0.0 0.0 0.0 681 KB

Development environment for the Partisia Blockchain, made for creating applications and smart contracts.

Home Page: https://partisiablockchain.com/

Shell 0.38% JavaScript 2.89% Rust 7.43% TypeScript 81.78% HTML 7.14% Dockerfile 0.38%

dapp-playground's Introduction

The DApp Playground for Partisia Blockchain

This a development environment for the Partisia Blockchain, made for creating applications and smart contracts utilizing the Zk Rust and public blockchain.

Read the documentation to better understand the fundamentals of the Partisia Blockchain

The repo contains two simple smart contracts with simple front-ends: The petition contact and the average salary contract This is provided in a codespace, where all the tooling needed for developing smart contracts and front-ends is installed.

To develop in your browser create a codespace for a repository, select the main branch. You can read more here

Inside the codespace you can run predefined tasks by pressing Ctrl+Shift+B.

It is an Automated setup

To interact with the Partisia Blockchain you need an account with gas. The codespace automatically provides you with three new accounts, Account-A.pk, Account-B.pk and Account-C.pk.

The created accounts have test_coins pre-minted which gives you 100.000.000 gas on the Testnet to interact, deploy and play around with as part of the codespace. You can continue using these outside of the codespace, just remember the private keys, because they are not saved when you delete the codespace.

Read how addresses works for accounts and smart contracts.

It is your own online personalized DApp playground

To use the codespace to develop your own DApps, fork the repository. On the fork you can modify the contract- and client code, to make your own DApp. To save your changes, use git to commit those changes to your forked repository.

Read about using codespaces in a forked repository here.

When forking the repository you can drastically decrease boot up time for new dev containers by configuring prebuilds.

If you want to do local development read the dev container documentation.

Try, Learn and Interact with Partisia Blockchain

We have included 2 challenge-based tutorials as part of your codespace, to help you learn and experiment.

The first one explores the Petition example application, showing how to collect signatures for showing interests in making specific changes in the world. The application consists of a smart contract written in Rust and a web frontend written in TypeScript.

The second one explores the Average Salary example application, showing how to compute the average salary of a group, without revealing the salary of any individual. This example uses the superpower of Partisia Blockchain, Zk contracts. The application consists of a smart contract written in Rust and Zk Rust and a web frontend written in TypeScript.

If you want to know more about the blockchain, ZK Rust or just contracts in general, we urge you to visit our documentation and participate in our active community on Discord.

dapp-playground's People

Contributors

jensscheel avatar mikey-bruun avatar mikeyandersen avatar jg-partisia 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.