git.delta.rocks / unique-network / refs/commits / d144cc6cfeaa

difftreelog

docs

Trubnikov Sergey2022-08-02parent: #c396bdd.patch.diff
in: master

1 file changed

modifiedpallets/evm-contract-helpers/src/lib.rsdiffbeforeafterboth
72 pub(super) type SelfSponsoring<T: Config> =72 pub(super) type SelfSponsoring<T: Config> =
73 StorageMap<Hasher = Twox128, Key = H160, Value = bool, QueryKind = ValueQuery>;73 StorageMap<Hasher = Twox128, Key = H160, Value = bool, QueryKind = ValueQuery>;
7474
75 /// Store for sponsoring mode.
76 ///
77 /// ### Usage
78 /// Prefer to delete collection from storage if mode chaged to [`Disabled`](SponsoringModeT::Disabled).
79 ///
80 /// * **Key** - contract address.
81 /// * **Value** - [`sponsoring mode`](SponsoringModeT).
75 #[pallet::storage]82 #[pallet::storage]
76 #[deprecated]
77 pub(super) type SponsoringMode<T: Config> =83 pub(super) type SponsoringMode<T: Config> =
78 StorageMap<Hasher = Twox128, Key = H160, Value = SponsoringModeT, QueryKind = OptionQuery>;84 StorageMap<Hasher = Twox128, Key = H160, Value = SponsoringModeT, QueryKind = OptionQuery>;
7985
86 /// Storage for sponsoring rate limit in blocks.
87 ///
88 /// * **Key** - contract address.
89 /// * **Value** - amount of sponsored blocks.
80 #[pallet::storage]90 #[pallet::storage]
81 #[deprecated]
82 pub(super) type SponsoringRateLimit<T: Config> = StorageMap<91 pub(super) type SponsoringRateLimit<T: Config> = StorageMap<
83 Hasher = Twox128,92 Hasher = Twox128,
84 Key = H160,93 Key = H160,
98 QueryKind = OptionQuery,107 QueryKind = OptionQuery,
99 >;108 >;
100109
110 /// Storege for contracts with [`Allowlisted`](SponsoringModeT::Allowlisted) sponsoring mode.
111 ///
112 /// ### Usage
113 /// Prefer to delete collection from storage if mode chaged to non `Allowlisted`, than set **Value** to **false**.
114 ///
115 /// * **Key** - contract address.
116 /// * **Value** - is contract in [`Allowlisted`](SponsoringModeT::Allowlisted) mode.
101 #[pallet::storage]117 #[pallet::storage]
102 #[deprecated]
103 pub(super) type AllowlistEnabled<T: Config> =118 pub(super) type AllowlistEnabled<T: Config> =
104 StorageMap<Hasher = Twox128, Key = H160, Value = bool, QueryKind = ValueQuery>;119 StorageMap<Hasher = Twox128, Key = H160, Value = bool, QueryKind = ValueQuery>;
105120