UNPKG

@kamino-finance/farms-sdk

Version:
42 lines (35 loc) 1.01 kB
/** * 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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from "@solana/kit"; export enum GlobalConfigOption { SetPendingGlobalAdmin, SetTreasuryFeeBps, } export type GlobalConfigOptionArgs = GlobalConfigOption; export function getGlobalConfigOptionEncoder(): FixedSizeEncoder<GlobalConfigOptionArgs> { return getEnumEncoder(GlobalConfigOption); } export function getGlobalConfigOptionDecoder(): FixedSizeDecoder<GlobalConfigOption> { return getEnumDecoder(GlobalConfigOption); } export function getGlobalConfigOptionCodec(): FixedSizeCodec< GlobalConfigOptionArgs, GlobalConfigOption > { return combineCodec( getGlobalConfigOptionEncoder(), getGlobalConfigOptionDecoder(), ); }