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

    Type Alias StateView

    A non-decoding version of the State.

    Note we don't require all fields to have view accessors, since it's only beneficial for large collections to be read via views.

    https://graypaper.fluffylabs.dev/#/579bd12/08f10008f100

    type StateView = {
        accumulationQueueView(): SequenceView;
        authPoolsView(): SequenceView<
            readonly (OpaqueHash & WithOpaque<"AuthorizerHash">)[] & WithOpaque<
                "At most 8",
            >,
            SequenceView<
                OpaqueHash & WithOpaque<"AuthorizerHash">,
                OpaqueHash & WithOpaque<"AuthorizerHash">,
            >,
        >;
        authQueuesView(): SequenceView<
            AuthorizationQueue,
            SequenceView<
                OpaqueHash & WithOpaque<"AuthorizerHash">,
                OpaqueHash & WithOpaque<"AuthorizerHash">,
            >,
        >;
        availabilityAssignmentView(): SequenceView;
        currentValidatorDataView(): SequenceView<
            ValidatorData,
            ViewOf<
                ValidatorData,
                {
                    bandersnatch: Descriptor<
                        Bytes<32> & WithOpaque<"BandersnatchKey">,
                        Bytes<32>,
                    >;
                    bls: Descriptor<Bytes<144> & WithOpaque<"BlsKey">, Bytes<144>>;
                    ed25519: Descriptor<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>;
                    metadata: Descriptor<Bytes<128>, Bytes<128>>;
                },
            >,
        >;
        designatedValidatorDataView(): SequenceView<
            ValidatorData,
            ViewOf<
                ValidatorData,
                {
                    bandersnatch: Descriptor<
                        Bytes<32> & WithOpaque<"BandersnatchKey">,
                        Bytes<32>,
                    >;
                    bls: Descriptor<Bytes<144> & WithOpaque<"BlsKey">, Bytes<144>>;
                    ed25519: Descriptor<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>;
                    metadata: Descriptor<Bytes<128>, Bytes<128>>;
                },
            >,
        >;
        getServiceInfoView(
            id: number & WithBytesRepresentation<4> & WithOpaque<"ServiceId[u32]">,
        ):
            | ViewOf<
                ServiceAccountInfo,
                {
                    accumulateMinGas: Descriptor<
                        bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">,
                        Bytes<8>,
                    >;
                    balance: Descriptor<U64, Bytes<8>>;
                    codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
                    created: Descriptor<
                        number & WithBytesRepresentation<4> & WithOpaque<"TimeSlot[u32]">,
                        Bytes<4>,
                    >;
                    gratisStorage: Descriptor<U64, Bytes<8>>;
                    lastAccumulation: Descriptor<
                        number & WithBytesRepresentation<4> & WithOpaque<"TimeSlot[u32]">,
                        Bytes<4>,
                    >;
                    onTransferMinGas: Descriptor<
                        bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">,
                        Bytes<8>,
                    >;
                    parentService: Descriptor<
                        number & WithBytesRepresentation<4> & WithOpaque<"ServiceId[u32]">,
                        Bytes<4>,
                    >;
                    storageUtilisationBytes: Descriptor<U64, Bytes<8>>;
                    storageUtilisationCount: Descriptor<U32, Bytes<4>>;
                },
            >
            | null;
        previousValidatorDataView(): SequenceView<
            ValidatorData,
            ViewOf<
                ValidatorData,
                {
                    bandersnatch: Descriptor<
                        Bytes<32> & WithOpaque<"BandersnatchKey">,
                        Bytes<32>,
                    >;
                    bls: Descriptor<Bytes<144> & WithOpaque<"BlsKey">, Bytes<144>>;
                    ed25519: Descriptor<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>;
                    metadata: Descriptor<Bytes<128>, Bytes<128>>;
                },
            >,
        >;
        recentBlocksView(): ViewOf;
        recentlyAccumulatedView(): SequenceView;
        safroleDataView(): ViewOf;
        statisticsView(): ViewOf;
    }

    Implemented by

    Index

    Methods