@cfxlabsinc/b2b-services
    Preparing search index...

    What the token-discovery schedule reads and writes: EVM mints with no token row.

    Index
    instance: (...args: []) => TokenDiscoveryAdminService = ...

    The process default: built from each dependency's own instance().

    • Adds the token, DISABLED unless status says otherwise. A symbol taken on the chain retries as SYMBOL:0xabcd, then SYMBOL:<address>; a racing duplicate address inserts nothing.

      Parameters

      • __namedParameters: {
            address: string;
            chainKey: string;
            decimals: number;
            logoUri?: string | null;
            name: string;
            status?: "ACTIVE" | "DISABLED";
            symbol: string;
        }
        • address: string
        • chainKey: string
        • decimals: number
        • OptionallogoUri?: string | null

          The registry's logo, stored as data.logoSource.

        • name: string
        • Optionalstatus?: "ACTIVE" | "DISABLED"
        • symbol: string

      Returns Promise<{ ok: true; value: { created: boolean } }>

    • Links up to pageSize unlinked EVM rows to the token row of their contract, whatever its status, so enabling a token later needs no relink. Returns how many it linked.

      Parameters

      • __namedParameters: { pageSize: number }

      Returns Promise<{ ok: true; value: number }>

    • The listed contracts no token row of their chain holds, as given.

      Type Parameters

      • T extends { address: string; chainKey: string }

      Parameters

      • __namedParameters: { tokens: T[] }

      Returns Promise<{ ok: true; value: T[] }>

    • Up to pageSize tokens whose logoSource has no mirror, or a mirror of another URL: tokens some wallet row holds first, then oldest row first. A recorded failure of the current logoSource holds it back: for good, unless it was LOGO_FETCH_FAILED, which is tried again 1 hour after the first failure, 6 hours after the second, then daily.

      Parameters

      • __namedParameters: { pageSize: number }

      Returns Promise<{ ok: true; value: { id: string; logoSource: string }[] }>

    • Sets each listed token's data.logoSource where its row holds another, or none. Returns how many rows changed.

      Parameters

      • __namedParameters: { tokens: { address: string; chainKey: string; logoUri: string }[] }

      Returns Promise<{ ok: true; value: number }>