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

    Return remaining gas to the PVM.

    NOTE it should be the gas left is AFTER this function is invoked.

    https://graypaper.fluffylabs.dev/#/9a08063/311301311301?v=0.6.6

    Implements

    Index

    Constructors

    Properties

    basicGasCost: number & WithBytesRepresentation<4> & WithOpaque<"SmallGas[U32]"> = ...

    The gas cost of invocation of that host call.

    NOTE: ((reg: HostCallRegisters) => Gas) function is for compatibility reasons: pre GP 0.7.2

    currentServiceId: number & WithBytesRepresentation<4> & WithOpaque<
        "ServiceId[u32]",
    >

    Currently executing service id.

    index: number & WithBytesRepresentation<4> & WithOpaque<"HostCallIndex[U32]"> = ...

    Index of that host call (i.e. what PVM invokes via ecalli)

    tracedRegisters: (number & WithOpaque<"register index">)[] = ...

    Input&Output registers that we should add to tracing log.

    Methods