/** * 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 { PublicKey } from '@metaplex-foundation/umi'; import { Serializer, bytes, publicKey as publicKeySerializer, struct, u32, } from '@metaplex-foundation/umi/serializers'; export type PacketSentEvent = { encodedPacket: Uint8Array; options: Uint8Array; sendLibrary: PublicKey; }; export type PacketSentEventArgs = PacketSentEvent; export function getPacketSentEventSerializer(): Serializer< PacketSentEventArgs, PacketSentEvent > { return struct( [ ['encodedPacket', bytes({ size: u32() })], ['options', bytes({ size: u32() })], ['sendLibrary', publicKeySerializer()], ], { description: 'PacketSentEvent' } ) as Serializer; }