/** * 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, getArrayDecoder, getArrayEncoder, getStructDecoder, getStructEncoder, type Codec, type Decoder, type Encoder, } from '@solana/kit'; import { getDistributionEntryDecoder, getDistributionEntryEncoder, type DistributionEntry, type DistributionEntryArgs, } from './index.js'; export type DistributeArgs = { recipients: Array }; export type DistributeArgsArgs = { recipients: Array }; export function getDistributeArgsEncoder(): Encoder { return getStructEncoder([['recipients', getArrayEncoder(getDistributionEntryEncoder())]]); } export function getDistributeArgsDecoder(): Decoder { return getStructDecoder([['recipients', getArrayDecoder(getDistributionEntryDecoder())]]); } export function getDistributeArgsCodec(): Codec { return combineCodec(getDistributeArgsEncoder(), getDistributeArgsDecoder()); }