https://github.com/akagi201/pallet-template
A template boilerplate code to start a pallet development
https://github.com/akagi201/pallet-template
frame pallet pallet-template polkadot substrate template
Last synced: 8 months ago
JSON representation
A template boilerplate code to start a pallet development
- Host: GitHub
- URL: https://github.com/akagi201/pallet-template
- Owner: Akagi201
- License: apache-2.0
- Created: 2022-10-18T09:04:41.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T20:20:56.000Z (almost 3 years ago)
- Last Synced: 2025-01-08T23:26:16.120Z (9 months ago)
- Topics: frame, pallet, pallet-template, polkadot, substrate, template
- Language: Rust
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pallet-template
[](https://github.com/Akagi201/pallet-template/actions/workflows/ci.yml)
A template boilerplate code to start a pallet development
## Pallet 依赖库注意事项
* Substrate FRAME 支持任何可以编译为 Wasm 的 Rust 库。通常,这表示这些库需要启用 `no_std` feature.
* 只有当这个 pallet 启用 `std` feature 时,依赖库才能启用相应的 `std` feature.
* 添加库时需要添加 `default-features = false`,以确保 pallet 依赖的库不会启用 `std` feature.
* `dev-dependencies` 通常用在测试以及 benchmark 中,总是使用 `std` feature, 所以你不应该添加 `default-features = false`.## Build && Test
```sh
# build
cargo build [--release]
# test
cargo test
```## Substrate Learning Resources
*
*