pub trait ProposalHandlerTrait {
    type BatchId;
    type MaxProposalLength: Get<u32>;
    type MaxProposals: Get<u32>;
    type MaxSignatureLen: Get<u32>;

    // Provided methods
    fn handle_unsigned_proposal(
        _prop: Proposal<Self::MaxProposalLength>
    ) -> Result<(), DispatchError> { ... }
    fn handle_signed_proposal_batch(
        _prop: SignedProposalBatch<Self::BatchId, Self::MaxProposalLength, Self::MaxProposals, Self::MaxSignatureLen>
    ) -> Result<(), DispatchError> { ... }
}

Required Associated Types§

type BatchId

type MaxProposalLength: Get<u32>

type MaxProposals: Get<u32>

type MaxSignatureLen: Get<u32>

Provided Methods§

fn handle_unsigned_proposal( _prop: Proposal<Self::MaxProposalLength> ) -> Result<(), DispatchError>

fn handle_signed_proposal_batch( _prop: SignedProposalBatch<Self::BatchId, Self::MaxProposalLength, Self::MaxProposals, Self::MaxSignatureLen> ) -> Result<(), DispatchError>

Implementations on Foreign Types§

§

impl ProposalHandlerTrait for ()

§

type BatchId = u32

§

type MaxProposalLength = CustomU32Getter<10000>

§

type MaxProposals = ConstU32<0>

§

type MaxSignatureLen = ConstU32<0>

Implementors§