> ## Documentation Index
> Fetch the complete documentation index at: https://docs.genlabs.co/llms.txt
> Use this file to discover all available pages before exploring further.

# AbiEnumDef

Defined in: [metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/rpc-types/types.ts:482](https://github.com/gen-bc/gen/blob/main/metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/rpc-types/types.ts#L482)

Named enum definition with strongly typed variants.

The wire-format discriminant is derived from the variant's position in the variants array (0, 1, 2, ...). This matches Borsh's default wire format, which writes the variant's position as a u8 byte.

Explicit discriminant values do not affect the ABI; only the declaration order matters. Maximum 256 variants (Borsh uses u8 for the index).

## Properties

### variants

> **variants**: [`AbiVariant`](/reference/sdk/typescript/index/interfaces/AbiVariant)\[]

Defined in: [metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/rpc-types/types.ts:486](https://github.com/gen-bc/gen/blob/main/metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/rpc-types/types.ts#L486)

Ordered variants, preserving source order.
