Trait noble_example_offchain_worker::Config [−][src]
This noble’s configuration trait
Associated Types
type AuthorityId: AppCrypto<Self::Public, Self::Signature>
[src]
The identifier type for an offchain worker.
type Event: From<Event<Self>> + Into<Self::Event>
[src]
The overarching event type.
type Call: From<Call<Self>>
[src]
The overarching dispatch call type.
type GracePeriod: Get<Self::BlockNumber>
[src]
A grace period after we send transaction.
To avoid sending too many transactions, we only attempt to send one
every GRACE_PERIOD
blocks. We use Local Storage to coordinate
sending between distinct runs of this offchain worker.
type UnsignedInterval: Get<Self::BlockNumber>
[src]
Number of blocks of cooldown after unsigned transaction is included.
This ensures that we only accept unsigned transactions once, every UnsignedInterval
blocks.
type UnsignedPriority: Get<TransactionPriority>
[src]
A configuration for base priority of unsigned transactions.
This is exposed so that it can be tuned for particular runtime, when multiple nobles send unsigned transactions.