Typeberry by Fluffy Labs - v0.4.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 & pvm.WithOpaque<"AuthorizerHash">)[] & pvm.WithOpaque<
                "At most 8",
            >,
            SequenceView<
                OpaqueHash & pvm.WithOpaque<"AuthorizerHash">,
                OpaqueHash & pvm.WithOpaque<"AuthorizerHash">,
            >,
        >;
        authQueuesView(): SequenceView<
            AuthorizationQueue,
            SequenceView<
                OpaqueHash & pvm.WithOpaque<"AuthorizerHash">,
                OpaqueHash & pvm.WithOpaque<"AuthorizerHash">,
            >,
        >;
        availabilityAssignmentView(): SequenceView;
        currentValidatorDataView(): SequenceView<
            ValidatorData,
            ViewOf<
                ValidatorData,
                {
                    bandersnatch: Descriptor<
                        Bytes<32> & pvm.WithOpaque<"BandersnatchKey">,
                        Bytes<32>,
                    >;
                    bls: Descriptor<Bytes<144> & pvm.WithOpaque<"BlsKey">, Bytes<144>>;
                    ed25519: Descriptor<Bytes<32> & pvm.WithOpaque<"Ed25519Key">, Bytes<32>>;
                    metadata: Descriptor<Bytes<128>, Bytes<128>>;
                },
            >,
        >;
        designatedValidatorDataView(): SequenceView<
            ValidatorData,
            ViewOf<
                ValidatorData,
                {
                    bandersnatch: Descriptor<
                        Bytes<32> & pvm.WithOpaque<"BandersnatchKey">,
                        Bytes<32>,
                    >;
                    bls: Descriptor<Bytes<144> & pvm.WithOpaque<"BlsKey">, Bytes<144>>;
                    ed25519: Descriptor<Bytes<32> & pvm.WithOpaque<"Ed25519Key">, Bytes<32>>;
                    metadata: Descriptor<Bytes<128>, Bytes<128>>;
                },
            >,
        >;
        getServiceInfoView(
            id: number & WithBytesRepresentation<4> & pvm.WithOpaque<
                "ServiceId[u32]",
            >,
        ): | ViewOf<
            ServiceAccountInfo,
            {
                accumulateMinGas: Descriptor<
                    bigint & WithBytesRepresentation<8> & pvm.WithOpaque<
                        "ServiceGas[u64]",
                    >,
                    Bytes<8>,
                >;
                balance: Descriptor<U64, Bytes<8>>;
                codeHash: Descriptor<Bytes<32> & pvm.WithOpaque<"CodeHash">, Bytes<32>>;
                created: Descriptor<
                    number & WithBytesRepresentation<4> & pvm.WithOpaque<"TimeSlot[u32]">,
                    Bytes<4>,
                >;
                gratisStorage: Descriptor<U64, Bytes<8>>;
                lastAccumulation: Descriptor<
                    number & WithBytesRepresentation<4> & pvm.WithOpaque<"TimeSlot[u32]">,
                    Bytes<4>,
                >;
                onTransferMinGas: Descriptor<
                    bigint & WithBytesRepresentation<8> & pvm.WithOpaque<
                        "ServiceGas[u64]",
                    >,
                    Bytes<8>,
                >;
                parentService: Descriptor<
                    number & WithBytesRepresentation<4> & pvm.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> & pvm.WithOpaque<"BandersnatchKey">,
                        Bytes<32>,
                    >;
                    bls: Descriptor<Bytes<144> & pvm.WithOpaque<"BlsKey">, Bytes<144>>;
                    ed25519: Descriptor<Bytes<32> & pvm.WithOpaque<"Ed25519Key">, Bytes<32>>;
                    metadata: Descriptor<Bytes<128>, Bytes<128>>;
                },
            >,
        >;
        recentBlocksView(): ViewOf;
        recentlyAccumulatedView(): SequenceView;
        safroleDataView(): ViewOf;
        statisticsView(): ViewOf;
    }

    Implemented by

    Index

    Methods