/**
 * This code was AUTOGENERATED using the kinobi library.
 * Please DO NOT EDIT THIS FILE, instead use visitors
 * to add features, then rerun kinobi to update it.
 *
 * @see https://github.com/metaplex-foundation/kinobi
 */

import {
  Serializer,
  scalarEnum,
  u32,
} from '@metaplex-foundation/umi/serializers';

export enum NonceVersion {
  Legacy,
  Current,
}

export type NonceVersionArgs = NonceVersion;

export function getNonceVersionSerializer(): Serializer<
  NonceVersionArgs,
  NonceVersion
> {
  return scalarEnum<NonceVersion>(NonceVersion, {
    size: u32(),
    description: 'NonceVersion',
  }) as Serializer<NonceVersionArgs, NonceVersion>;
}
