| Crates.io | qf-polkavm-sdk |
| lib.rs | qf-polkavm-sdk |
| version | 0.2.1 |
| created_at | 2025-12-01 07:23:26.786484+00 |
| updated_at | 2025-12-03 09:12:05.363783+00 |
| description | Native Rust smart contract SDK for QF Network. Can work with other Substrate-based blockchains using pallet-revive. |
| homepage | https://qfnetwork.xyz |
| repository | https://github.com/QuantumFusion-network/qf-polkavm-sdk |
| max_upload_size | |
| id | 1959397 |
| size | 12,625 |
The SDK simplifies the development of native Rust smart contracts on QF Network. Smart contract functionality in QF Network is implemented using pallet-revive from Polkadot SDK / Substrate. See pallet-revive-uapi for reference documentation on the API available to smart contract developers.
To contribute to this project, please read the Contributing section.
Existing and planed features.
export macro which simplifies call and deploy definitionspallet-revive-uapi)To compile a smart contract we need to install a correct version of polkatool (it should match chain's pallet-revive version) and run a script that configures environment and invokes it with correct arguments.
Install polkatool
cargo install --git https://github.com/paritytech/polkavm.git --tag v0.21.0 polkatool
Build a smart contract from examples/increment-counter
./build_polkavm.sh increment-counter
The *.polkavm binary for the deployment should be available at the following path
output/increment-counter.polkavm
Run the node with pallet-revive logs and historical state.
qf-node --dev -lerror,runtime::revive::strace=trace,runtime::revive=debug --state-pruning archive
We welcome contributions of all kinds! Whether you're reporting or fixing a bug, adding a feature, or improving documentation, your help is greatly appreciated. For a bug or vulnerability report please open a new issue.
For code contributions please follow these steps:
your-github-name/descriptive-branch-name (e.g., qf-polkavm-sdk/fix-123).main branch and provide a concise description of your changes.By contributing, you agree to adhere to our Contributor Covenant Code of Conduct, which fosters a respectful and inclusive environment.
We appreciate your support and look forward to your contributions! 🚀