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

    Interface PartialState

    U: state components mutated by the accumulation.

    • d: service accounts state
    • i: upcoming validator keys
    • q: queue of work reports
    • x: priviliges state

    https://graypaper.fluffylabs.dev/#/579bd12/163602163602

    interface PartialState {
        checkpoint(): void;
        checkPreimageStatus(
            hash: Blake2bHash & pvm.WithOpaque<"PreimageHash">,
            length: U64,
        ): jam_host_calls.PreimageStatus | null;
        eject(
            from:
                | number & WithBytesRepresentation<4> & pvm.WithOpaque<
                    "ServiceId[u32]",
                >
                | null,
            previousCode: Blake2bHash & pvm.WithOpaque<"PreimageHash">,
        ): pvm.Result<typeof pvm.OK, jam_host_calls.EjectError>;
        forgetPreimage(
            hash: Blake2bHash & pvm.WithOpaque<"PreimageHash">,
            length: U64,
        ): pvm.Result<typeof pvm.OK, jam_host_calls.ForgetPreimageError>;
        newService(
            codeHash: OpaqueHash & pvm.WithOpaque<"CodeHash">,
            codeLength: U64,
            gas: bigint & WithBytesRepresentation<8> & pvm.WithOpaque<
                "ServiceGas[u64]",
            >,
            allowance: bigint & WithBytesRepresentation<8> & pvm.WithOpaque<
                "ServiceGas[u64]",
            >,
            gratisStorage: U64,
            wantedServiceId: U64,
        ): pvm.Result<
            number & WithBytesRepresentation<4> & pvm.WithOpaque<"ServiceId[u32]">,
            jam_host_calls.NewServiceError,
        >;
        providePreimage(
            service:
                | number & WithBytesRepresentation<4> & pvm.WithOpaque<
                    "ServiceId[u32]",
                >
                | null,
            preimage: BytesBlob,
        ): pvm.Result<typeof pvm.OK, jam_host_calls.ProvidePreimageError>;
        requestPreimage(
            hash: Blake2bHash & pvm.WithOpaque<"PreimageHash">,
            length: U64,
        ): pvm.Result<typeof pvm.OK, jam_host_calls.RequestPreimageError>;
        transfer(
            destination:
                | number & WithBytesRepresentation<4> & pvm.WithOpaque<
                    "ServiceId[u32]",
                >
                | null,
            amount: U64,
            gas: bigint & WithBytesRepresentation<8> & pvm.WithOpaque<
                "ServiceGas[u64]",
            >,
            memo: Bytes<128>,
        ): pvm.Result<typeof pvm.OK, jam_host_calls.TransferError>;
        updateAuthorizationQueue(
            coreIndex: number & WithBytesRepresentation<2> & pvm.WithOpaque<
                "CoreIndex[u16]",
            >,
            authQueue: AuthorizationQueue,
            assigner:
                | number & WithBytesRepresentation<4> & pvm.WithOpaque<
                    "ServiceId[u32]",
                >
                | null,
        ): pvm.Result<typeof pvm.OK, jam_host_calls.UpdatePrivilegesError>;
        updatePrivilegedServices(
            m:
                | number & WithBytesRepresentation<4> & pvm.WithOpaque<
                    "ServiceId[u32]",
                >
                | null,
            a: PerCore<
                number & WithBytesRepresentation<4> & pvm.WithOpaque<"ServiceId[u32]">,
            >,
            v:
                | number & WithBytesRepresentation<4> & pvm.WithOpaque<
                    "ServiceId[u32]",
                >
                | null,
            r:
                | number & WithBytesRepresentation<4> & pvm.WithOpaque<
                    "ServiceId[u32]",
                >
                | null,
            z: Map<
                number & WithBytesRepresentation<4> & pvm.WithOpaque<"ServiceId[u32]">,
                bigint & WithBytesRepresentation<8> & pvm.WithOpaque<"ServiceGas[u64]">,
            >,
        ): pvm.Result<typeof pvm.OK, jam_host_calls.UpdatePrivilegesError>;
        updateValidatorsData(
            validatorsData: PerValidator<ValidatorData>,
        ): pvm.Result<typeof pvm.OK, typeof jam_host_calls.UnprivilegedError>;
        upgradeService(
            codeHash: OpaqueHash & pvm.WithOpaque<"CodeHash">,
            gas: U64,
            allowance: U64,
        ): void;
        yield(hash: OpaqueHash): void;
    }
    Index

    Methods