Skip to content
Snippets Groups Projects
Commit 16263cc0 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

document burn as disabled

parent 73c8b3cf
No related branches found
No related tags found
1 merge request!307mint UD instead of deposit + disable burn
Pipeline #39532 failed
...@@ -12,7 +12,7 @@ Calls are categorized according to the dispatch origin they require: ...@@ -12,7 +12,7 @@ Calls are categorized according to the dispatch origin they require:
We only document user calls below. We only document user calls below.
There are **64** user calls from **17** pallets. There are **63** user calls from **17** pallets.
## Account - 1 ## Account - 1
...@@ -105,28 +105,6 @@ The dispatch origin of this call must be Signed. ...@@ -105,28 +105,6 @@ The dispatch origin of this call must be Signed.
transfer everything except at least the existential deposit, which will guarantee to transfer everything except at least the existential deposit, which will guarantee to
keep the sender account alive (true). keep the sender account alive (true).
### burn - 10
<details><summary><code>burn(value, keep_alive)</code></summary>
No weight available.
```rust
value: T::Balance
keep_alive: bool
```
</details>
Burn the specified liquid free balance from the origin account.
If the origin's account ends up below the existential deposit as a result
of the burn and `keep_alive` is false, the account will be reaped.
Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
this `burn` operation will reduce total issuance by the amount _burned_.
## OneshotAccount - 7 ## OneshotAccount - 7
### create_oneshot_account - 0 ### create_oneshot_account - 0
......
...@@ -232,6 +232,7 @@ impl CallCategory { ...@@ -232,6 +232,7 @@ impl CallCategory {
| "force_unreserve" | "force_unreserve"
| "force_adjust_total_issuance", | "force_adjust_total_issuance",
) => Self::Root, ) => Self::Root,
("Balances", "burn") => Self::Disabled,
("Sudo", _) => Self::Sudo, ("Sudo", _) => Self::Sudo,
("Treasury", "approve_proposal" | "reject_proposal") => Self::OtherOrigin, ("Treasury", "approve_proposal" | "reject_proposal") => Self::OtherOrigin,
("Utility", "dispatch_as" | "with_weight") => Self::Root, ("Utility", "dispatch_as" | "with_weight") => Self::Root,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment