/** * 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, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; export type SettleAndSealArgs = { hasVoucher: number }; export type SettleAndSealArgsArgs = SettleAndSealArgs; export function getSettleAndSealArgsEncoder(): FixedSizeEncoder { return getStructEncoder([['hasVoucher', getU8Encoder()]]); } export function getSettleAndSealArgsDecoder(): FixedSizeDecoder { return getStructDecoder([['hasVoucher', getU8Decoder()]]); } export function getSettleAndSealArgsCodec(): FixedSizeCodec { return combineCodec(getSettleAndSealArgsEncoder(), getSettleAndSealArgsDecoder()); }