From 2338022f33111eaecb3322be59d7bf26937a6301 Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Sat, 14 May 2022 23:02:36 +0200 Subject: [PATCH] doc: update user calls doc --- docs/api/runtime-calls.md | 29 ++++++++++++++++++++++++++++- xtask/src/gen_calls_doc.rs | 1 + 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/docs/api/runtime-calls.md b/docs/api/runtime-calls.md index 8e594bb09..93f16bbe9 100644 --- a/docs/api/runtime-calls.md +++ b/docs/api/runtime-calls.md @@ -12,7 +12,7 @@ through on-chain governance mechanisms. ## User calls -There are **52** user calls organized in **17** pallets. +There are **53** user calls organized in **18** pallets. ### 2: Scheduler @@ -1453,6 +1453,33 @@ calls: Vec<<T as Config>::Call> </details> +### 65: Treasury + +<details><summary>0: propose_spend(value, beneficiary)</summary> +<p> + +### Index + +`0` + +### Documentation + +Put forward a suggestion for spending. A deposit proportional to the value +is reserved and slashed if the proposal is rejected. It is returned once the +proposal is awarded. + + +### Types of parameters + +```rust +value: BalanceOf<T, I>, +beneficiary: <T::Lookup as StaticLookup>::Source +``` + +</p> +</details> + + ## Root calls diff --git a/xtask/src/gen_calls_doc.rs b/xtask/src/gen_calls_doc.rs index 3f4380fb6..dbe1cbc72 100644 --- a/xtask/src/gen_calls_doc.rs +++ b/xtask/src/gen_calls_doc.rs @@ -66,6 +66,7 @@ impl CallCategory { } ("SmithsCollective", "set_members" | "disapprove_proposal") => Self::Root, ("Utility", "dispatch_as") => Self::Root, + ("Treasury", "approve_proposal" | "reject_proposal") => Self::OtherOrigin, _ => Self::User, } } -- GitLab