/** * 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/kinobi-so/kinobi */ import { Option, OptionOrNullable } from '@metaplex-foundation/umi'; import { Serializer, option, struct, } from '@metaplex-foundation/umi/serializers'; import { Treasury, TreasuryArgs, getTreasurySerializer } from '../types'; export type TreasurySetEvent = { treasury: Option }; export type TreasurySetEventArgs = { treasury: OptionOrNullable }; export function getTreasurySetEventSerializer(): Serializer< TreasurySetEventArgs, TreasurySetEvent > { return struct( [['treasury', option(getTreasurySerializer())]], { description: 'TreasurySetEvent' } ) as Serializer; }