Typeberry by Fluffy Labs - v0.5.0
    Preparing search index...

    Variable protocolConst

    protocol: LousyProtocol<
        {
            finish: {
                request: Descriptor<void, void>;
                response: Descriptor<void, void>;
            };
            getBestStateRootHash: {
                request: Descriptor<void, void>;
                response: Descriptor<Bytes<32> & WithOpaque<"StateRootHash">, Bytes<32>>;
            };
            getStateEntries: {
                request: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
                response: Descriptor<StateEntries | null, StateEntries | null>;
            };
            importBlock: {
                request: Descriptor<
                    ViewOf<
                        Block,
                        {
                            extrinsic: Descriptor<
                                Extrinsic,
                                ViewOf<
                                    Extrinsic,
                                    {
                                        assurances: Descriptor<
                                            (...) & (...),
                                            SequenceView<(...), (...)>,
                                        >;
                                        disputes: Descriptor<DisputesExtrinsic, ViewOf<(...), (...)>>;
                                        guarantees: Descriptor<(...) & (...), SequenceView<(...), (...)>>;
                                        preimages: Descriptor<(...)[], SequenceView<(...), (...)>>;
                                        tickets: Descriptor<(...) & (...), SequenceView<(...), (...)>>;
                                    },
                                >,
                            >;
                            header: Descriptor<
                                Header & CodecRecord<Header>,
                                ViewOf<
                                    Header & CodecRecord<Header>,
                                    {
                                        bandersnatchBlockAuthorIndex: Descriptor<
                                            (...) & (...) & (...),
                                            Bytes<(...)>,
                                        >;
                                        entropySource: Descriptor<(...) & (...), Bytes<(...)>>;
                                        epochMarker: Descriptor<(...) | (...), (...) | (...)>;
                                        extrinsicHash: Descriptor<(...) & (...), Bytes<(...)>>;
                                        offendersMarker: Descriptor<(...)[], SequenceView<(...), (...)>>;
                                        parentHeaderHash: Descriptor<(...) & (...), Bytes<(...)>>;
                                        priorStateRoot: Descriptor<(...) & (...), Bytes<(...)>>;
                                        seal: Descriptor<(...) & (...), Bytes<(...)>>;
                                        ticketsMarker: Descriptor<(...) | (...), (...) | (...)>;
                                        timeSlotIndex: Descriptor<(...) & (...) & (...), Bytes<(...)>>;
                                    },
                                >,
                            >;
                        },
                    >,
                    ViewOf<
                        Block,
                        {
                            extrinsic: Descriptor<
                                Extrinsic,
                                ViewOf<
                                    Extrinsic,
                                    {
                                        assurances: Descriptor<
                                            (...) & (...),
                                            SequenceView<(...), (...)>,
                                        >;
                                        disputes: Descriptor<DisputesExtrinsic, ViewOf<(...), (...)>>;
                                        guarantees: Descriptor<(...) & (...), SequenceView<(...), (...)>>;
                                        preimages: Descriptor<(...)[], SequenceView<(...), (...)>>;
                                        tickets: Descriptor<(...) & (...), SequenceView<(...), (...)>>;
                                    },
                                >,
                            >;
                            header: Descriptor<
                                Header & CodecRecord<Header>,
                                ViewOf<
                                    Header & CodecRecord<Header>,
                                    {
                                        bandersnatchBlockAuthorIndex: Descriptor<
                                            (...) & (...) & (...),
                                            Bytes<(...)>,
                                        >;
                                        entropySource: Descriptor<(...) & (...), Bytes<(...)>>;
                                        epochMarker: Descriptor<(...) | (...), (...) | (...)>;
                                        extrinsicHash: Descriptor<(...) & (...), Bytes<(...)>>;
                                        offendersMarker: Descriptor<(...)[], SequenceView<(...), (...)>>;
                                        parentHeaderHash: Descriptor<(...) & (...), Bytes<(...)>>;
                                        priorStateRoot: Descriptor<(...) & (...), Bytes<(...)>>;
                                        seal: Descriptor<(...) & (...), Bytes<(...)>>;
                                        ticketsMarker: Descriptor<(...) | (...), (...) | (...)>;
                                        timeSlotIndex: Descriptor<(...) & (...) & (...), Bytes<(...)>>;
                                    },
                                >,
                            >;
                        },
                    >,
                >;
                response: Descriptor<
                    utils.Result<OpaqueHash & WithOpaque<"HeaderHash">, string>,
                    utils.Result<OpaqueHash & WithOpaque<"HeaderHash">, string>,
                >;
            };
        },
        {
            bestHeaderAnnouncement: {
                request: Descriptor<
                    WithHash<
                        OpaqueHash & WithOpaque<"HeaderHash">,
                        ViewOf<
                            Header & CodecRecord<Header>,
                            {
                                bandersnatchBlockAuthorIndex: Descriptor<
                                    number & WithBytesRepresentation<2> & WithOpaque<
                                        "ValidatorIndex[u16]",
                                    >,
                                    Bytes<2>,
                                >;
                                entropySource: Descriptor<
                                    Bytes<96> & WithOpaque<"BandersnatchVrfSignature">,
                                    Bytes<96>,
                                >;
                                epochMarker: Descriptor<
                                    EpochMarker
                                    | null,

                                        | ViewOf<
                                            EpochMarker,
                                            { entropy: ...; ticketsEntropy: ...; validators: ... },
                                        >
                                        | null,
                                >;
                                extrinsicHash: Descriptor<
                                    Bytes<32> & WithOpaque<"ExtrinsicHash">,
                                    Bytes<32>,
                                >;
                                offendersMarker: Descriptor<
                                    (Bytes<(...)> & WithOpaque<(...)>)[],
                                    SequenceView<Bytes<(...)> & WithOpaque<(...)>, Bytes<32>>,
                                >;
                                parentHeaderHash: Descriptor<
                                    Bytes<32> & WithOpaque<"HeaderHash">,
                                    Bytes<32>,
                                >;
                                priorStateRoot: Descriptor<
                                    Bytes<32> & WithOpaque<"StateRootHash">,
                                    Bytes<32>,
                                >;
                                seal: Descriptor<
                                    Bytes<96> & WithOpaque<"BandersnatchVrfSignature">,
                                    Bytes<96>,
                                >;
                                ticketsMarker: Descriptor<
                                    TicketsMarker
                                    | null,
                                    ViewOf<TicketsMarker, { tickets: ... }> | null,
                                >;
                                timeSlotIndex: Descriptor<
                                    number & WithBytesRepresentation<4> & WithOpaque<"TimeSlot[u32]">,
                                    Bytes<4>,
                                >;
                            },
                        >,
                    >,
                    ViewOf<
                        WithHash<
                            OpaqueHash & WithOpaque<"HeaderHash">,
                            ViewOf<
                                Header & CodecRecord<Header>,
                                {
                                    bandersnatchBlockAuthorIndex: Descriptor<
                                        number & WithBytesRepresentation<(...)> & WithOpaque<(...)>,
                                        Bytes<2>,
                                    >;
                                    entropySource: Descriptor<
                                        Bytes<(...)> & WithOpaque<(...)>,
                                        Bytes<96>,
                                    >;
                                    epochMarker: Descriptor<
                                        EpochMarker
                                        | null,
                                        ViewOf<(...), (...)> | null,
                                    >;
                                    extrinsicHash: Descriptor<
                                        Bytes<(...)> & WithOpaque<(...)>,
                                        Bytes<32>,
                                    >;
                                    offendersMarker: Descriptor<
                                        ((...) & (...))[],
                                        SequenceView<(...) & (...), Bytes<(...)>>,
                                    >;
                                    parentHeaderHash: Descriptor<
                                        Bytes<(...)> & WithOpaque<(...)>,
                                        Bytes<32>,
                                    >;
                                    priorStateRoot: Descriptor<
                                        Bytes<(...)> & WithOpaque<(...)>,
                                        Bytes<32>,
                                    >;
                                    seal: Descriptor<Bytes<(...)> & WithOpaque<(...)>, Bytes<96>>;
                                    ticketsMarker: Descriptor<
                                        TicketsMarker
                                        | null,
                                        ViewOf<(...), (...)> | null,
                                    >;
                                    timeSlotIndex: Descriptor<
                                        number & WithBytesRepresentation<(...)> & WithOpaque<(...)>,
                                        Bytes<4>,
                                    >;
                                },
                            >,
                        >,
                        {
                            data: Descriptor<
                                ViewOf<
                                    Header & CodecRecord<Header>,
                                    {
                                        bandersnatchBlockAuthorIndex: Descriptor<
                                            (...) & (...) & (...),
                                            Bytes<(...)>,
                                        >;
                                        entropySource: Descriptor<(...) & (...), Bytes<(...)>>;
                                        epochMarker: Descriptor<(...) | (...), (...) | (...)>;
                                        extrinsicHash: Descriptor<(...) & (...), Bytes<(...)>>;
                                        offendersMarker: Descriptor<(...)[], SequenceView<(...), (...)>>;
                                        parentHeaderHash: Descriptor<(...) & (...), Bytes<(...)>>;
                                        priorStateRoot: Descriptor<(...) & (...), Bytes<(...)>>;
                                        seal: Descriptor<(...) & (...), Bytes<(...)>>;
                                        ticketsMarker: Descriptor<(...) | (...), (...) | (...)>;
                                        timeSlotIndex: Descriptor<(...) & (...) & (...), Bytes<(...)>>;
                                    },
                                >,
                                ViewOf<
                                    Header & CodecRecord<Header>,
                                    {
                                        bandersnatchBlockAuthorIndex: Descriptor<
                                            (...) & (...) & (...),
                                            Bytes<(...)>,
                                        >;
                                        entropySource: Descriptor<(...) & (...), Bytes<(...)>>;
                                        epochMarker: Descriptor<(...) | (...), (...) | (...)>;
                                        extrinsicHash: Descriptor<(...) & (...), Bytes<(...)>>;
                                        offendersMarker: Descriptor<(...)[], SequenceView<(...), (...)>>;
                                        parentHeaderHash: Descriptor<(...) & (...), Bytes<(...)>>;
                                        priorStateRoot: Descriptor<(...) & (...), Bytes<(...)>>;
                                        seal: Descriptor<(...) & (...), Bytes<(...)>>;
                                        ticketsMarker: Descriptor<(...) | (...), (...) | (...)>;
                                        timeSlotIndex: Descriptor<(...) & (...) & (...), Bytes<(...)>>;
                                    },
                                >,
                            >;
                            hash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
                        },
                    >,
                >;
                response: Descriptor<void, void>;
            };
        },
    > = ...