Skip to content

Commit

Permalink
Add encode/decode, serialize (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone authored Feb 7, 2024
1 parent d46546b commit 7b25b6a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions runtime/mainnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1158,17 +1158,17 @@ impl JobToFee<AccountId, BlockNumber, MaxParticipants, MaxSubmissionLen> for Moc

parameter_types! {
pub const JobsPalletId: PalletId = PalletId(*b"py/jobss");
#[derive(Clone, Debug, Eq, PartialEq, TypeInfo)]
#[derive(Clone, Debug, Eq, PartialEq, Encode, Decode, sp_runtime::Serialize, TypeInfo)]
pub const MaxParticipants: u32 = 10;
#[derive(Clone, Debug, Eq, PartialEq, TypeInfo)]
#[derive(Clone, Debug, Eq, PartialEq, Encode, Decode, sp_runtime::Serialize, TypeInfo)]
pub const MaxSubmissionLen: u32 = 256;
#[derive(Clone, Debug, Eq, PartialEq, TypeInfo)]
#[derive(Clone, Debug, Eq, PartialEq, Encode, Decode, sp_runtime::Serialize, TypeInfo)]
pub const MaxKeyLen: u32 = 256;
#[derive(Clone, Debug, Eq, PartialEq, TypeInfo)]
#[derive(Clone, Debug, Eq, PartialEq, Encode, Decode, sp_runtime::Serialize, TypeInfo)]
pub const MaxDataLen: u32 = 256;
#[derive(Clone, Debug, Eq, PartialEq, TypeInfo)]
#[derive(Clone, Debug, Eq, PartialEq, Encode, Decode, sp_runtime::Serialize, TypeInfo)]
pub const MaxSignatureLen: u32 = 256;
#[derive(Clone, Debug, Eq, PartialEq, TypeInfo)]
#[derive(Clone, Debug, Eq, PartialEq, Encode, Decode, sp_runtime::Serialize, TypeInfo)]
pub const MaxProofLen: u32 = 256;
#[derive(Clone, Debug, Eq, PartialEq, TypeInfo)]
pub const MaxActiveJobsPerValidator: u32 = 100;
Expand Down

0 comments on commit 7b25b6a

Please sign in to comment.