@thruputchain/client
    Preparing search index...

    Function buildNamedCodecs

    • Build codecs for named contract-spec types.

      The returned map is required by encodeCalldata, decodeCalldata, and resolveCodec whenever a method argument references a named struct, enum, or union. It is keyed by specIdKey of each type's spec id.

      Parameters

      • typeDefs: ContractTypeDef[]

      Returns Record<string, XdrCodec<unknown>>

      If two definitions share a spec id.