This repository contains example smart contracts for the Partisia Blockchain, showcasing various use cases and functionalities.
Official documentation: https://partisiablockchain.gitlab.io/documentation/smart-contracts/compile-and-deploy-contracts.html
This guide assumes you're using an Ubuntu system. Adjustments may be needed for other Linux distributions.
- Git
- Rust and Cargo
- Node.js and npm (if interacting with contracts via JavaScript)
- Docker (optional, for containerized environments)
-
Install Rust and Cargo using rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Follow the on-screen instructions to complete the installation.
-
Configure your current shell to access cargo commands:
source $HOME/.cargo/env
Clone this repository to your local machine:
git clone https://github.com/oktaykurt/partisia-blockchain-example-contracts.git
cd partisia-blockchain-example-contracts
To compile the smart contracts, run:
cargo build --release
If your project includes tests, describe how to run them:
cargo test
Contributions are welcome! Please open an issue or submit a pull request with your improvements.
This project is licensed under the MIT License - see the LICENSE file for details.