Documentation
    Preparing search index...

    Interface PredictPackages

    The published Move packages a Predict deployment spans.

    Delayed execution (DBU-885) ships as three packages: the Predict upgrade, the order-flow companion deepbook_predict_orders (a fresh publish), and the math library deepbook_predict_math (a fresh publish). The queued-order builders, reads and decoders need predictDelayedExecution, predictOrders, objects.orderDesk and objects.queueRegistry all recorded, and throw PredictInputError otherwise rather than address the wrong package. Pass a custom config (a localnet publish) to use them before a network record exists.

    interface PredictPackages {
        account: string;
        predict: string;
        predictDelayedExecution?: string;
        predictMath?: string;
        predictOrders?: string;
        predictOrdersV1?: string;
        predictV1?: string;
        propbook: string;
    }
    Index
    account: string
    predict: string

    Latest published package ID, used for Move calls.

    predictDelayedExecution?: string

    The Predict version that introduced delayed execution (Mainnet v4, Testnet v5): the defining ID of the Predict types and events that version added (ExpiryPnlRealized, FlushOperatorUpdated, OrderFlowUpdated, OrderReceipt). A later upgrade does not move it, so it is pinned once per network rather than read from the latest publication.

    predictMath?: string

    The deepbook_predict_math package ID, for its pure calls and layouts.

    predictOrders?: string

    Latest published deepbook_predict_orders package ID: the call target of every queued-order entry point (queue::enqueue_*, commit, resolve, refund, settle_step, …), the queue reads and the desk setters.

    predictOrdersV1?: string

    Original deepbook_predict_orders ID, which types MarketQueue, OrderDesk, the queue events and the OrderFlow witness. Omit until the package is first upgraded: it then defaults to predictOrders.

    predictV1?: string

    Original ID for v1 structs/events. Omit only for an unupgraded custom deployment.

    propbook: string