/**
 * 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,
  getAddressDecoder,
  getAddressEncoder,
  getStructDecoder,
  getStructEncoder,
  type Address,
  type FixedSizeCodec,
  type FixedSizeDecoder,
  type FixedSizeEncoder,
} from "@solana/kit";

export type MinFeeControllerSet = { newMinFeeController: Address };

export type MinFeeControllerSetArgs = MinFeeControllerSet;

export function getMinFeeControllerSetEncoder(): FixedSizeEncoder<MinFeeControllerSetArgs> {
  return getStructEncoder([["newMinFeeController", getAddressEncoder()]]);
}

export function getMinFeeControllerSetDecoder(): FixedSizeDecoder<MinFeeControllerSet> {
  return getStructDecoder([["newMinFeeController", getAddressDecoder()]]);
}

export function getMinFeeControllerSetCodec(): FixedSizeCodec<
  MinFeeControllerSetArgs,
  MinFeeControllerSet
> {
  return combineCodec(
    getMinFeeControllerSetEncoder(),
    getMinFeeControllerSetDecoder(),
  );
}
