This repository was archived by the owner on Nov 15, 2023. It is now read-only.
File tree 2 files changed +8
-2
lines changed
offchain-worker-ping-pong/src
offchain-worker-price-oracle/src
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -158,12 +158,14 @@ pub mod pallet {
158
158
use frame_system:: pallet_prelude:: * ;
159
159
160
160
/// This pallet's configuration trait
161
- #[ pallet:: config]
161
+ #[ pallet:: config( with_default ) ]
162
162
pub trait Config : CreateSignedTransaction < Call < Self > > + frame_system:: Config {
163
163
/// The identifier type for an offchain worker.
164
+ #[ pallet:: no_default]
164
165
type AuthorityId : AppCrypto < Self :: Public , Self :: Signature > ;
165
166
166
167
/// The overarching event type.
168
+ #[ pallet:: no_default]
167
169
type RuntimeEvent : From < Event < Self > > + IsType < <Self as frame_system:: Config >:: RuntimeEvent > ;
168
170
169
171
// Configuration parameters
@@ -172,6 +174,7 @@ pub mod pallet {
172
174
///
173
175
/// This ensures that we only accept unsigned transactions once, every `UnsignedInterval`
174
176
/// blocks.
177
+ #[ pallet:: no_default]
175
178
#[ pallet:: constant]
176
179
type UnsignedInterval : Get < Self :: BlockNumber > ;
177
180
Original file line number Diff line number Diff line change @@ -133,19 +133,22 @@ pub mod pallet {
133
133
use frame_system:: pallet_prelude:: * ;
134
134
135
135
/// This pallet's configuration trait
136
- #[ pallet:: config]
136
+ #[ pallet:: config( with_default ) ]
137
137
pub trait Config : CreateSignedTransaction < Call < Self > > + frame_system:: Config {
138
138
/// The identifier type for an offchain worker.
139
+ #[ pallet:: no_default]
139
140
type AuthorityId : AppCrypto < Self :: Public , Self :: Signature > ;
140
141
141
142
/// The overarching event type.
143
+ #[ pallet:: no_default]
142
144
type RuntimeEvent : From < Event < Self > > + IsType < <Self as frame_system:: Config >:: RuntimeEvent > ;
143
145
144
146
/// A grace period after we send transaction.
145
147
///
146
148
/// To avoid sending too many transactions, we only attempt to send one
147
149
/// every `GRACE_PERIOD` blocks. We use Local Storage to coordinate
148
150
/// sending between distinct runs of this offchain worker.
151
+ #[ pallet:: no_default]
149
152
#[ pallet:: constant]
150
153
type GracePeriod : Get < Self :: BlockNumber > ;
151
154
You can’t perform that action at this time.
0 commit comments