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

    Function blockViewFromJson

    • Parameters

      Returns FromJsonWithParser<
          unknown,
          ViewOf<
              Block,
              {
                  extrinsic: Descriptor<
                      Extrinsic,
                      ViewOf<
                          Extrinsic,
                          {
                              assurances: Descriptor<
                                  readonly AvailabilityAssurance[] & WithOpaque<
                                      "[0 .. ValidatorsCount)",
                                  >,
                                  SequenceView<
                                      AvailabilityAssurance,
                                      ViewOf<
                                          AvailabilityAssurance,
                                          {
                                              anchor: Descriptor<(...), (...)>;
                                              bitfield: Descriptor<(...), (...)>;
                                              signature: Descriptor<(...), (...)>;
                                              validatorIndex: Descriptor<(...), (...)>;
                                          },
                                      >,
                                  >,
                              >;
                              disputes: Descriptor<
                                  DisputesExtrinsic,
                                  ViewOf<
                                      DisputesExtrinsic,
                                      {
                                          culprits: Descriptor<(...)[], SequenceView<(...), (...)>>;
                                          faults: Descriptor<(...)[], SequenceView<(...), (...)>>;
                                          verdicts: Descriptor<(...)[], SequenceView<(...), (...)>>;
                                      },
                                  >,
                              >;
                              guarantees: Descriptor<
                                  readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">,
                                  SequenceView<
                                      ReportGuarantee,
                                      ViewOf<
                                          ReportGuarantee,
                                          {
                                              credentials: Descriptor<(...), (...)>;
                                              report: Descriptor<(...), (...)>;
                                              slot: Descriptor<(...), (...)>;
                                          },
                                      >,
                                  >,
                              >;
                              preimages: Descriptor<
                                  Preimage[],
                                  SequenceView<
                                      Preimage,
                                      ViewOf<
                                          Preimage,
                                          {
                                              blob: Descriptor<(...), (...)>;
                                              requester: Descriptor<(...), (...)>;
                                          },
                                      >,
                                  >,
                              >;
                              tickets: Descriptor<
                                  readonly SignedTicket[] & WithOpaque<
                                      "Size: [0..chainSpec.maxTicketsPerExtrinsic)",
                                  >,
                                  SequenceView<
                                      SignedTicket,
                                      ViewOf<
                                          SignedTicket,
                                          {
                                              attempt: Descriptor<(...), (...)>;
                                              signature: Descriptor<(...), (...)>;
                                          },
                                      >,
                                  >,
                              >;
                          },
                      >,
                  >;
                  header: Descriptor<
                      Header & CodecRecord<Header>,
                      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: Descriptor<(...), (...)>;
                                              ticketsEntropy: Descriptor<(...), (...)>;
                                              validators: Descriptor<(...), (...)>;
                                          },
                                      >
                                      | null,
                              >;
                              extrinsicHash: Descriptor<
                                  Bytes<32> & WithOpaque<"ExtrinsicHash">,
                                  Bytes<32>,
                              >;
                              offendersMarker: Descriptor<
                                  (Bytes<32> & WithOpaque<"Ed25519Key">)[],
                                  SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, 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: Descriptor<(...), (...)> }> | null,
                              >;
                              timeSlotIndex: Descriptor<
                                  number & WithBytesRepresentation<4> & WithOpaque<"TimeSlot[u32]">,
                                  Bytes<4>,
                              >;
                          },
                      >,
                  >;
              },
          >,
      >