From d144cc6cfeaa5a033741a075dc9979f127ee1fce Mon Sep 17 00:00:00 2001 From: Trubnikov Sergey Date: Tue, 02 Aug 2022 15:16:31 +0000 Subject: [PATCH] docs --- --- a/pallets/evm-contract-helpers/src/lib.rs +++ b/pallets/evm-contract-helpers/src/lib.rs @@ -72,13 +72,22 @@ pub(super) type SelfSponsoring = StorageMap; + /// Store for sponsoring mode. + /// + /// ### Usage + /// Prefer to delete collection from storage if mode chaged to [`Disabled`](SponsoringModeT::Disabled). + /// + /// * **Key** - contract address. + /// * **Value** - [`sponsoring mode`](SponsoringModeT). #[pallet::storage] - #[deprecated] pub(super) type SponsoringMode = StorageMap; + /// Storage for sponsoring rate limit in blocks. + /// + /// * **Key** - contract address. + /// * **Value** - amount of sponsored blocks. #[pallet::storage] - #[deprecated] pub(super) type SponsoringRateLimit = StorageMap< Hasher = Twox128, Key = H160, @@ -98,8 +107,14 @@ QueryKind = OptionQuery, >; + /// Storege for contracts with [`Allowlisted`](SponsoringModeT::Allowlisted) sponsoring mode. + /// + /// ### Usage + /// Prefer to delete collection from storage if mode chaged to non `Allowlisted`, than set **Value** to **false**. + /// + /// * **Key** - contract address. + /// * **Value** - is contract in [`Allowlisted`](SponsoringModeT::Allowlisted) mode. #[pallet::storage] - #[deprecated] pub(super) type AllowlistEnabled = StorageMap; -- gitstuff