mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-22 02:07:55 +00:00
[19] docs init commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
name: substrate-runtimes
|
||||
title: Substrate Runtime Templates
|
||||
version: 0.8.0
|
||||
nav:
|
||||
- modules/ROOT/nav.adoc
|
||||
asciidoc:
|
||||
attributes:
|
||||
page-sidebar-collapse-default: true
|
||||
@@ -0,0 +1,3 @@
|
||||
* Runtime Descriptions
|
||||
* Pallet guides
|
||||
** xref:pallets/pallet.adoc[pallet2]
|
||||
@@ -0,0 +1,36 @@
|
||||
:source-highlighter: highlight.js
|
||||
:highlightjs-languages: rust
|
||||
:github-icon: pass:[<svg class="icon"><use href="#github-icon"/></svg>]
|
||||
= Pallet Name
|
||||
|
||||
== Purpose
|
||||
|
||||
This is a freeform description of the tasks that this pallet fulfills
|
||||
|
||||
== Config
|
||||
|
||||
* `ConfigType` -- desription of config. Include the possible values if there is a set of them.
|
||||
|
||||
== Dispatchables
|
||||
|
||||
[[add_proxy]]
|
||||
=== `++dispatchable_name++` link:https://google.com[{github-icon},role=heading-link]
|
||||
```rust
|
||||
pub fn dispatchable_name(
|
||||
param1: Type1,
|
||||
param2: Type2
|
||||
) -> DispatchResult
|
||||
```
|
||||
Freeform description of the dispatchable. It is good to include the important things that should be included there.
|
||||
|
||||
**Params:**
|
||||
|
||||
* `param1: Type1` -- description of the parameter
|
||||
|
||||
**Errors:**
|
||||
|
||||
* `ErrorName` -- description of conditions, when this error happens
|
||||
|
||||
**Events:**
|
||||
|
||||
* `EventName(param1, param2)` -- description of event, if needed (they are often self-explanatory)
|
||||
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
:source-highlighter: highlight.js
|
||||
:highlightjs-languages: rust
|
||||
:github-icon: pass:[<svg class="icon"><use href="#github-icon"/></svg>]
|
||||
= Pallet Name
|
||||
|
||||
== Purpose
|
||||
|
||||
This is a freeform description of the tasks that this pallet fulfills
|
||||
|
||||
== Config
|
||||
|
||||
* `ConfigType` -- desription of config. Include the possible values if there is a set of them.
|
||||
|
||||
== Dispatchables
|
||||
|
||||
[[add_proxy]]
|
||||
=== `++dispatchable_name++` link:https://google.com[{github-icon},role=heading-link]
|
||||
```rust
|
||||
pub fn dispatchable_name(
|
||||
param1: Type1,
|
||||
param2: Type2
|
||||
) -> DispatchResult
|
||||
```
|
||||
Freeform description of the dispatchable. It is good to include the important things that should be included there.
|
||||
|
||||
**Params:**
|
||||
|
||||
* `param1: Type1` -- description of the parameter
|
||||
|
||||
**Errors:**
|
||||
|
||||
* `ErrorName` -- description of conditions, when this error happens
|
||||
|
||||
**Events:**
|
||||
|
||||
* `EventName(param1, param2)` -- description of event, if needed (they are often self-explanatory)
|
||||
Reference in New Issue
Block a user