/** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ import { combineCodec, getEnumDecoder, getEnumEncoder, type Codec, type Decoder, type Encoder, } from '@solana/kit'; export enum ChannelVisibility { Public, Private, Restricted, } export type ChannelVisibilityArgs = ChannelVisibility; export function getChannelVisibilityEncoder(): Encoder { return getEnumEncoder(ChannelVisibility); } export function getChannelVisibilityDecoder(): Decoder { return getEnumDecoder(ChannelVisibility); } export function getChannelVisibilityCodec(): Codec< ChannelVisibilityArgs, ChannelVisibility > { return combineCodec( getChannelVisibilityEncoder(), getChannelVisibilityDecoder() ); }