Documentation
    Preparing search index...

    Interface AccountConfig

    The deployed ids of the shared account package this contract builds against.

    Kept deliberately minimal — ids only — so any consumer of the shared account primitive (DeepBook core's account wrapper, Predict, …) can drive these builders with its OWN deployment's ids without constructing a full product-SDK config.

    Extends the codegen-generated config interface so there is exactly one config shape and casing: the generated bindings resolve options.config against these same keys, and if codegen adds, drops, or renames a key this file stops compiling instead of silently building a PTB against the wrong object. The ids are narrowed to string — codegen types the package id as optional and the registry as the wider ConfigValue, but the wrapper-address derivation needs plain ids.

    interface AccountConfig {
        accountPackageId: string;
        accountPackageIdLatest?: string;
        accountRegistry: string;
    }

    Hierarchy

    • AccountConfig
      • AccountConfig
    Index
    accountPackageId: string

    The ORIGINAL account Move package id. Type tags and the derived wrapper address are built from it, so it never moves to an upgraded package: that would derive addresses nothing lives at, and a coin sent to one is lost.

    accountPackageIdLatest?: string

    The latest account package, once the network has upgraded it: the call target of every builder here. A PTB can't call account at an older version than another package in it links (Predict's Version 5 links account v2), and receiveCoin / receiveCoinAtAccountId exist only from v2. Absent while the network runs v1: calls then target accountPackageId.

    accountRegistry: string

    The shared AccountRegistry object id.