mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 00:37:57 +00:00
3b7a8c75bb
Part of https://github.com/paritytech/polkadot-sdk/issues/239. Invariant 1. The number of entries in `Tips` should be equal to `Reasons`. 2. If `OpenTip.finders_fee` is true, then `OpenTip.deposit` should be greater than zero. 3. Reasons exists for each Tip[`OpenTip.reason`], implying equal length of storage. polkadot address: 12zsKEDVcHpKEWb99iFt3xrTCQQXZMu477nJQsTBBrof5k2h --------- Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
13 lines
414 B
Plaintext
13 lines
414 B
Plaintext
title: Adding `try-state` hook to tips pallet
|
|
|
|
doc:
|
|
- audience: Runtime User
|
|
description: |
|
|
Enforces the following invariants;
|
|
1. The number of entries in Tips should be equal to Reasons.
|
|
2. If OpenTip.finders_fee is true, then OpenTip.deposit should be greater than zero.
|
|
3. Reasons exists for each Tip[OpenTip.reason], implying equal length of storage.
|
|
|
|
crates:
|
|
- name: pallet-tips
|