Welcome to the Web3 Parduscuk DApp project repository! ink! is a programming language for smart contracts; blockchains built with the Substrate framework can choose from a number of smart contract languages which one(s) they want to support. ink! is one of them. It is an opinionated language that we have built by extending the popular Rust programming language with functionality needed to make it smart contract compatible.
The Web3 Parduscuk DApp provides a user-friendly interface to participate in ink!-based application. ink! is an Embedded Domain Specific Language (EDSL) that you can use to write WebAssembly based smart contracts in the Rust programming language.
ink! is just standard Rust in a well defined "contract format" with specialized #[ink(…)]
attribute macros. These attribute macros tell ink! what the different parts of your Rust smart contract represent, and ultimately allow ink! to do all the magic needed to create Substrate compatible Wasm bytecode!
-
"Parduscuk" is the simplest "smart" contract you can run.
-
The Parduscuk contract is nothing more than a bool which gets flipped from true to false through the
flip()
function.
Follow these steps to set up the project locally and start participating in Web3 flipping.
- Node.js: Ensure Node.js is installed. Download it from nodejs.org.
- Rust Toolchain: Ensure Rust Toolchain is installed. Check it from Rustup.
- Substrate Node Template: Ensure Substrate Node Template is installed. Check it from Substrate Node Template.
- Yarn: Ensure Yarn is installed.
- Substrate Front End Template: Ensure Substrate Front End Template is installed. Check it from Substrate Front End Template.
- Rust-SRC: Ensure rust-src is installed.
- Web-Assembly: Ensure wasm32 is installed.
- Cargo-Contract: Ensure cargo contract is installed.
- Contracts Node:Ensure substrate-contracts-node is installed. Check it from Contracts-Node.
Contributions to this project are welcome! To contribute:
- Fork the repository.
- Create a new branch for your feature/bug fix.
- Make changes and test thoroughly.
- Commit with clear and concise messages.
- Push changes to your fork.
- Submit a pull request describing your changes.
This project is licensed under the MIT License.
Thank you for your interest in the Web3 Parduscuk project! For questions or suggestions, reach out to us.
Enjoy on the blockchain! 🚀